commit c8ddb2713c624f432fa5fe3c7ecffcdda46ea0d4 Author: Linus Torvalds Date: Mon Nov 1 07:54:12 2010 -0400 Linux 2.6.37-rc1 commit b3b2b6351a3f3342e6669b5c2defc85f6af75ee3 Merge: 90ae83f 395bc51 Author: Linus Torvalds Date: Mon Nov 1 07:53:19 2010 -0400 Merge branch 'for-linus' of git://www.jni.nu/cris * 'for-linus' of git://www.jni.nu/cris: CRIS: Add paths for CRISv10 serial driver CRIS: Fix RS485 delay handling. Add missing "struct" to in sizeof. commit 90ae83f7fc32733e5829d806306c0c590f1a383f Merge: 47c5ba5 65289d6 Author: Linus Torvalds Date: Mon Nov 1 07:50:43 2010 -0400 Merge branch 'next-spi' of git://git.secretlab.ca/git/linux-2.6 * 'next-spi' of git://git.secretlab.ca/git/linux-2.6: spi/pl022: fix erroneous platform data in U300 spi: fixed odd static string conventions in core code spi/bfin_spi: only request GPIO on first load spi/bfin_spi: handle error/status changes after data interrupts spi: enable spi_board_info to be registered after spi_master commit 395bc5121828e570bd4bb6455c82b80e2f2b05b4 Author: Jesper Nilsson Date: Mon Nov 1 11:01:14 2010 +0100 CRIS: Add paths for CRISv10 serial driver Signed-off-by: Jesper Nilsson commit 65289d6345d93abd860e43fd2119ac176d6cc697 Author: Linus Walleij Date: Thu Oct 21 21:05:25 2010 +0200 spi/pl022: fix erroneous platform data in U300 This fixes an erroneous use of LSB first in the U300 machine, the PL022 used in U300 is a standard ARM core that doesn't support this bit so it should never have been set. Cc: Kevin Wells OA Signed-off-by: Linus Walleij Signed-off-by: Grant Likely commit 47c5ba53bc5e5f88b5d1bbb97acd25afc27f74eb Author: Dmitry Torokhov Date: Sun Oct 31 15:18:42 2010 -0700 Input: ir-keytable - fix uninitialized variable warning We were forgetting to set up proper return value in success path causing ir_getkeycode() to fail intermittently: drivers/media/IR/ir-keytable.c: In function 'ir_getkeycode': drivers/media/IR/ir-keytable.c:363: warning: 'retval' may be used uninitialized in this function Reported-by: Stefan Richter Signed-off-by: Dmitry Torokhov Signed-off-by: Linus Torvalds commit 50440c6dcccbf90ee3629407cb13ca09cab7d900 Merge: 09d692e 55fee8d Author: Linus Torvalds Date: Sun Oct 31 21:03:23 2010 -0400 Merge branch 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging: i2c-i801: Add PCI idents for Patsburg 'IDF' SMBus controllers i2c-i801: Handle multiple instances instead of keeping global state i2c-i801: Add Intel Patsburg device ID i2c: Drop unused I2C_CLASS_TV flags commit 09d692e6ff50e455f936e7e114e11f6ec5e0ea33 Merge: ce9d8d9 d745b53 Author: Linus Torvalds Date: Sun Oct 31 21:02:39 2010 -0400 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: appletouch - remove extra KERN_DEBUG use from dprintk Input: bu21013_ts - fix null dereference in error handling Input: ad7879 - prevent invalid finger data reports commit ce9d8d9f7214c7b74a5dd7be8221545269a31155 Merge: 82279e6 592488a Author: Linus Torvalds Date: Sun Oct 31 20:43:12 2010 -0400 Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (70 commits) [SCSI] pmcraid: add support for set timestamp command and other fixes [SCSI] pmcraid: remove duplicate struct member [SCSI] qla4xxx: Fix cmd check in qla4xxx_cmd_wait [SCSI] megaraid_sas: Version and documentation update [SCSI] megaraid_sas: Add three times Online controller reset [SCSI] megaraid_sas: Add input parameter for max_sectors [SCSI] megaraid_sas: support devices update flag [SCSI] libosd: write/read_sg_kern API [SCSI] libosd: Support for scatter gather write/read commands [SCSI] libosd: Free resources in reverse order of allocation [SCSI] libosd: Fix bug in attr_page handling [SCSI] lpfc 8.3.18: Update lpfc driver version to 8.3.18 [SCSI] lpfc 8.3.18: Add new WQE support [SCSI] lpfc 8.3.18: Fix critical errors [SCSI] lpfc 8.3.18: Adapter Shutdown and Unregistration cleanup [SCSI] lpfc 8.3.18: Add logic to detect last devloss timeout [SCSI] lpfc 8.3.18: Add support of received ELS commands [SCSI] lpfc 8.3.18: FC/FCoE Discovery fixes [SCSI] ipr: add definitions for a new adapter [SCSI] bfa: fix comments for c files ... commit 82279e6bd7643da1b3fbda42555c3238c7b00d38 Merge: bb8430a 4600d7c 4882720b Author: Linus Torvalds Date: Sun Oct 31 20:40:24 2010 -0400 Merge branches 'irq-core-for-linus' and 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: genirq: Fix up irq_node() for irq_data changes. genirq: Add single IRQ reservation helper genirq: Warn if enable_irq is called before irq is set up * 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: semaphore: Remove mutex emulation staging: Final semaphore cleanup jbd2: Convert jbd2_slab_create_sem to mutex hpfs: Convert sbi->hpfs_creation_de to mutex Fix up trivial change/delete conflicts with deleted 'dream' drivers (drivers/staging/dream/camera/{mt9d112.c,mt9p012_fox.c,mt9t013.c,s5k3e2fx.c}) commit 55fee8d7f7cb011d7f161cf816220ac74e34b6b1 Author: David Woodhouse Date: Sun Oct 31 21:07:00 2010 +0100 i2c-i801: Add PCI idents for Patsburg 'IDF' SMBus controllers These are the extra 'Integrated Device Function' SMBus controllers found on the Patsburg chipset. Mention the absence of slave mode support. Signed-off-by: David Woodhouse Signed-off-by: Jean Delvare commit 0cd96eb0a74791cacb27ace902b991cfd0e72abe Author: David Woodhouse Date: Sun Oct 31 21:06:59 2010 +0100 i2c-i801: Handle multiple instances instead of keeping global state It's poor form to keep driver state in global variables rather than per-instance. It never really mattered in practice when there was only one controller on the chipset, but the latest chipsets do have more than one controller, so now we care. Signed-off-by: David Woodhouse Signed-off-by: Jean Delvare commit e30d9859cf08920ae711f57ecd9726804451d29f Author: Seth Heasley Date: Sun Oct 31 21:06:59 2010 +0100 i2c-i801: Add Intel Patsburg device ID Add support for the Intel Patsburg PCH SMBus Controller. Signed-off-by: Seth Heasley Signed-off-by: Jean Delvare commit cbf4bd380a9caa72118525eabe7b82c6a3c8da78 Author: Jean Delvare Date: Sun Oct 31 21:06:59 2010 +0100 i2c: Drop unused I2C_CLASS_TV flags There are no users left for I2C_CLASS_TV_ANALOG and I2C_CLASS_TV_DIGITAL, so we can get rid of them. Signed-off-by: Jean Delvare commit d745b5326dd1960bf1d9ce2cb8408561a81a7271 Author: Joe Perches Date: Sat Oct 30 17:19:49 2010 -0700 Input: appletouch - remove extra KERN_DEBUG use from dprintk Signed-off-by: Joe Perches Signed-off-by: Dmitry Torokhov commit bb8430a2c8fe2b726033017daadf73c69b0348ea Author: Christoph Hellwig Date: Sun Oct 31 08:35:31 2010 -0400 locks: remove fl_copy_lock lock_manager operation This one was only used for a nasty hack in nfsd, which has recently been removed. Signed-off-by: Christoph Hellwig Signed-off-by: Linus Torvalds commit 51ee4b84f5c86935b438d6636f34b523edb415a8 Author: Christoph Hellwig Date: Sun Oct 31 08:35:10 2010 -0400 locks: let the caller free file_lock on ->setlease failure The caller allocated it, the caller should free it. The only issue so far is that we could change the flp pointer even on an error return if the fl_change callback failed. But we can simply move the flp assignment after the fl_change invocation, as the callers don't care about the flp return value if the setlease call failed. Signed-off-by: Christoph Hellwig Signed-off-by: Linus Torvalds commit 96f935934591b72f5b05fd6923bc8cdcae92f2e5 Author: Geert Uytterhoeven Date: Sun Oct 31 10:56:23 2010 +0100 initramfs: Fix initramfs size for 32-bit arches Commit ffe8018c3424 ("initramfs: fix initramfs size calculation") broke 32-bit big-endian arches like (on ARAnyM): VFS: Cannot open root device "hda1" or unknown-block(3,1) Please append a correct "root=" boot option; here are the available partitions: fe80 1059408 nfhd8 (driver?) fe81 921600 nfhd8p1 00000000-0000-0000-0000-000000000nfhd8p1 fe82 137807 nfhd8p2 00000000-0000-0000-0000-000000000nfhd8p2 0200 3280 fd0 (driver?) 0201 3280 fd1 (driver?) 0300 1059408 hda driver: ide-gd 0301 921600 hda1 00000000-0000-0000-0000-000000000hda1 0302 137807 hda2 00000000-0000-0000-0000-000000000hda2 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1) As pointed out by Kerstin Jonsson , this is due to CONFIG_32BIT not being defined, so the initramfs size field is done as a 64-bit quad. On little-endian (like x86) this doesn matter, but on a big-endian machine the 32-bit reads will see the (zero) high bits. Only mips, s390, and score set CONFIG_32BIT for 32-bit builds, so fix it for all other 32-bit arches by inverting the logic and testing for CONFIG_64BIT, which should be defined on all 64-bit arches. Signed-off-by: Geert Uytterhoeven [ I think we should just make it "u64" on all architectures and get rid of the whole #ifdef CONFIG_xxBIT - Linus ] Signed-off-by: Linus Torvalds commit 3985c7ce85039adacdf882904ca096f091d39346 Merge: fcf744a ce384d9 Author: Linus Torvalds Date: Sat Oct 30 18:42:58 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: isdn: mISDN: socket: fix information leak to userland netdev: can: Change mail address of Hans J. Koch pcnet_cs: add new_id net: Truncate recvfrom and sendto length to INT_MAX. RDS: Let rds_message_alloc_sgs() return NULL RDS: Copy rds_iovecs into kernel memory instead of rereading from userspace RDS: Clean up error handling in rds_cmsg_rdma_args RDS: Return -EINVAL if rds_rdma_pages returns an error net: fix rds_iovec page count overflow can: pch_can: fix section mismatch warning by using a whitelisted name can: pch_can: fix sparse warning netxen_nic: Fix the tx queue manipulation bug in netxen_nic_probe ip_gre: fix fallback tunnel setup vmxnet: trivial annotation of protocol constant vmxnet3: remove unnecessary byteswapping in BAR writing macros ipv6/udp: report SndbufErrors and RcvbufErrors phy/marvell: rename 88ec048 to 88e1318s and fix mscr1 addr commit fcf744a96c66ca6ad7301a372034b771e57f30c4 Author: J. Bruce Fields Date: Sat Oct 30 17:31:16 2010 -0400 nfsd4: initialize delegation pointer to lease The NFSv4 server was initializing the dp->dl_flock pointer by the somewhat ridiculous method of a locks_copy_lock callback. Now that setlease uses the passed-in lock instead of doing a copy, dl_flock no longer gets set, resulting in the lock leaking on delegation release, and later possible hangs (among other problems). So, initialize dl_flock and get rid of the callback. Signed-off-by: J. Bruce Fields Acked-by: Arnd Bergmann Signed-off-by: Linus Torvalds commit 05fa3135fdc7b9b510b502a35b6b97d2b38c6f48 Author: J. Bruce Fields Date: Sat Oct 30 17:31:15 2010 -0400 locks: fix setlease methods to free passed-in lock We modified setlease to require the caller to allocate the new lease in the case of creating a new lease, but forgot to fix up the filesystem methods. Cc: Steven Whitehouse Cc: Steve French Cc: Trond Myklebust Signed-off-by: J. Bruce Fields Acked-by: Arnd Bergmann Signed-off-by: Linus Torvalds commit 096657b65e1ac197e20be5ce7cff6b6ca2532787 Author: J. Bruce Fields Date: Sat Oct 30 17:31:14 2010 -0400 locks: fix leaks on setlease errors We're depending on setlease to free the passed-in lease on failure. Signed-off-by: J. Bruce Fields Acked-by: Arnd Bergmann Signed-off-by: Linus Torvalds commit 0ceaf6c700f8245946a163e387add8675a0c302f Author: J. Bruce Fields Date: Sat Oct 30 17:31:13 2010 -0400 locks: prevent ENOMEM on lease unlock Removing a lock shouldn't require any allocations; a failure due to ENOMEM leaves the caller with a choice between retrying or giving up and leaking an unused lease. Next we should split the other lease calls into add and delete cases. I wanted to start with just the bugfix. Signed-off-by: J. Bruce Fields Acked-by: Arnd Bergmann Signed-off-by: Linus Torvalds commit 0d07025effd3da8b9c74f18448823175f4c63a73 Author: David Härdeman Date: Sat Oct 30 22:17:44 2010 +0200 drivers/media/IR/ir-keytable.c: fix binary search The input-large-scancode patches changed the binary search in drivers/media/IR/ir-keytable.c to use unsigned integers, but signed integers are actually necessary for the algorithm to work. Signed-off-by: David Härdeman Cc: Dmitry Torokhov Signed-off-by: Linus Torvalds commit ce384d91cd7a4269a1ed5d4307a70aa4c6fa14f2 Author: Kulikov Vasiliy Date: Fri Oct 29 23:04:33 2010 +0000 isdn: mISDN: socket: fix information leak to userland Structure mISDN_devinfo is copied to userland with the field "name" that has the last elements unitialized. It leads to leaking of contents of kernel stack memory. Signed-off-by: Vasiliy Kulikov Signed-off-by: David S. Miller commit 3e9ebd3cf48d9181e0931c6fd8f1a7dc4d6cb27c Author: Hans J. Koch Date: Fri Oct 29 12:33:57 2010 +0000 netdev: can: Change mail address of Hans J. Koch My old mail address doesn't exist anymore. This changes all occurrences to my new address. Signed-off-by: Hans J. Koch Signed-off-by: David S. Miller commit 62391f97babb7fe0c769830b6f0e0bd184bd0704 Author: Ken Kawasaki Date: Fri Oct 29 12:17:51 2010 +0000 pcnet_cs: add new_id pcnet_cs: add new_id: "corega Ether CF-TD" 10Base-T PCMCIA card. Signed-off-by: Ken Kawasaki Signed-off-by: David S. Miller commit 253eacc070b114c2ec1f81b067d2fed7305467b0 Author: Linus Torvalds Date: Sat Oct 30 16:43:10 2010 -0700 net: Truncate recvfrom and sendto length to INT_MAX. Signed-off-by: Linus Torvalds Signed-off-by: David S. Miller commit d139ff0907dac9ef72fb2cf301e345bac3aec42f Author: Andy Grover Date: Thu Oct 28 15:40:59 2010 +0000 RDS: Let rds_message_alloc_sgs() return NULL Even with the previous fix, we still are reading the iovecs once to determine SGs needed, and then again later on. Preallocating space for sg lists as part of rds_message seemed like a good idea but it might be better to not do this. While working to redo that code, this patch attempts to protect against userspace rewriting the rds_iovec array between the first and second accesses. The consequences of this would be either a too-small or too-large sg list array. Too large is not an issue. This patch changes all callers of message_alloc_sgs to handle running out of preallocated sgs, and fail gracefully. Signed-off-by: Andy Grover Signed-off-by: David S. Miller commit fc8162e3c034af743d8def435fda6396603d321f Author: Andy Grover Date: Thu Oct 28 15:40:58 2010 +0000 RDS: Copy rds_iovecs into kernel memory instead of rereading from userspace Change rds_rdma_pages to take a passed-in rds_iovec array instead of doing copy_from_user itself. Change rds_cmsg_rdma_args to copy rds_iovec array once only. This eliminates the possibility of userspace changing it after our sanity checks. Implement stack-based storage for small numbers of iovecs, based on net/socket.c, to save an alloc in the extremely common case. Although this patch reduces iovec copies in cmsg_rdma_args to 1, we still do another one in rds_rdma_extra_size. Getting rid of that one will be trickier, so it'll be a separate patch. Signed-off-by: Andy Grover Signed-off-by: David S. Miller commit f4a3fc03c1d73753879fb655b8cd628b29f6706b Author: Andy Grover Date: Thu Oct 28 15:40:57 2010 +0000 RDS: Clean up error handling in rds_cmsg_rdma_args We don't need to set ret = 0 at the end -- it's initialized to 0. Also, don't increment s_send_rdma stat if we're exiting with an error. Signed-off-by: Andy Grover Signed-off-by: David S. Miller commit a09f69c49b84b161ebd4dd09d3cce1b68297f1d3 Author: Andy Grover Date: Thu Oct 28 15:40:56 2010 +0000 RDS: Return -EINVAL if rds_rdma_pages returns an error rds_cmsg_rdma_args would still return success even if rds_rdma_pages returned an error (or overflowed). Signed-off-by: Andy Grover Signed-off-by: David S. Miller commit 1b1f693d7ad6d193862dcb1118540a030c5e761f Author: Linus Torvalds Date: Thu Oct 28 15:40:55 2010 +0000 net: fix rds_iovec page count overflow As reported by Thomas Pollet, the rdma page counting can overflow. We get the rdma sizes in 64-bit unsigned entities, but then limit it to UINT_MAX bytes and shift them down to pages (so with a possible "+1" for an unaligned address). So each individual page count fits comfortably in an 'unsigned int' (not even close to overflowing into signed), but as they are added up, they might end up resulting in a signed return value. Which would be wrong. Catch the case of tot_pages turning negative, and return the appropriate error code. Reported-by: Thomas Pollet Signed-off-by: Linus Torvalds Signed-off-by: Andy Grover Signed-off-by: David S. Miller commit bdfa3d8fe123a940be121daf374581727b3b6547 Author: Marc Kleine-Budde Date: Sat Oct 30 16:28:16 2010 -0700 can: pch_can: fix section mismatch warning by using a whitelisted name This patch fixes the following section mismatch warning: WARNING: drivers/net/can/pch_can.o(.data+0x18): Section mismatch in reference from the variable pch_can_pcidev to the variable .devinit.rodata:pch_pci_tbl The variable pch_can_pcidev references the variable __devinitconst pch_pci_tbl This is actually a false positive which is fixed by giving the offending variable a whitelisted name, it's renamed to "pch_can_pci_driver". This makes sense because the variable is of the type "struct pci_driver". Signed-off-by: Marc Kleine-Budde Acked-by: Uwe Kleine-König Signed-off-by: David S. Miller commit 526de53cf78d325351904eefb9624f933924df75 Author: Marc Kleine-Budde Date: Sat Oct 30 16:27:48 2010 -0700 can: pch_can: fix sparse warning This patch fixes the following sparse warning: drivers/net/can/pch_can.c:231:26: warning: incorrect type in argument 1 (different address spaces) drivers/net/can/pch_can.c:231:26: expected unsigned int [usertype] *addr drivers/net/can/pch_can.c:231:26: got unsigned int [noderef] * Let pch_can_bit_{set,clear} first parameter be a void __iomem pointer. Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit c117e4a2bb49116b0b51df06bbabe638d28dfae7 Author: Denis Kirjanov Date: Sat Oct 30 16:24:25 2010 -0700 netxen_nic: Fix the tx queue manipulation bug in netxen_nic_probe We should not stop the egress queue during probe because it is wrong. Signed-off-by: Denis Kirjanov Signed-off-by: David S. Miller commit 3285ee3bb2e158299ff19b947e41da735980d954 Author: Eric Dumazet Date: Sat Oct 30 16:21:28 2010 -0700 ip_gre: fix fallback tunnel setup Before making the fallback tunnel visible to lookups, we should make sure it is completely setup, once ipgre_tunnel_init() had been called and tstats per_cpu pointer allocated. move rcu_assign_pointer(ign->tunnels_wc[0], tunnel); from ipgre_fb_tunnel_init() to ipgre_init_net() Based on a patch from Pavel Emelyanov Reported-by: Pavel Emelyanov Signed-off-by: Eric Dumazet Acked-by: Pavel Emelyanov Signed-off-by: David S. Miller commit 1b803fbfcd1c35857fe52844158213507a8a5bfa Author: Harvey Harrison Date: Sat Oct 30 16:19:45 2010 -0700 vmxnet: trivial annotation of protocol constant Noticed by sparse: drivers/net/vmxnet3/vmxnet3_drv.c:876:38: warning: cast from restricted __be16 drivers/net/vmxnet3/vmxnet3_drv.c:876:38: warning: cast from restricted __be16 drivers/net/vmxnet3/vmxnet3_drv.c:876:24: warning: restricted __be16 degrades to integer Signed-off-by: Harvey Harrison Signed-off-by: David S. Miller commit b8744cabb79a6522bb2e1c22c4edd8fb39fcfc7e Author: Harvey Harrison Date: Sat Oct 30 16:19:18 2010 -0700 vmxnet3: remove unnecessary byteswapping in BAR writing macros readl/writel swap to little-endian internally. Signed-off-by: Harvey Harrison Signed-off-by: David S. Miller commit 870be39258cf84b65accf629f5f9e816b1b8512e Author: Eric Dumazet Date: Sat Oct 30 16:17:23 2010 -0700 ipv6/udp: report SndbufErrors and RcvbufErrors commit a18135eb9389 (Add UDP_MIB_{SND,RCV}BUFERRORS handling.) forgot to make the necessary changes in net/ipv6/proc.c to report additional counters in /proc/net/snmp6 Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 1792f17b7210280a3d7ff29da9614ba779cfcedb Merge: f02a38d 6bff7ec Author: Linus Torvalds Date: Sat Oct 30 11:50:37 2010 -0700 Merge branch 'for-linus' of git://git.infradead.org/users/eparis/notify * 'for-linus' of git://git.infradead.org/users/eparis/notify: (22 commits) Ensure FMODE_NONOTIFY is not set by userspace make fanotify_read() restartable across signals fsnotify: remove alignment padding from fsnotify_mark on 64 bit builds fs/notify/fanotify/fanotify_user.c: fix warnings fanotify: Fix FAN_CLOSE comments fanotify: do not recalculate the mask if the ignored mask changed fanotify: ignore events on directories unless specifically requested fsnotify: rename FS_IN_ISDIR to FS_ISDIR fanotify: do not send events for irregular files fanotify: limit number of listeners per user fanotify: allow userspace to override max marks fanotify: limit the number of marks in a single fanotify group fanotify: allow userspace to override max queue depth fsnotify: implement a default maximum queue depth fanotify: ignore fanotify ignore marks if open writers fanotify: allow userspace to flush all marks fsnotify: call fsnotify_parent in perm events fsnotify: correctly handle return codes from listeners fanotify: use __aligned_u64 in fanotify userspace metadata fanotify: implement fanotify listener ordering ... commit f02a38d86a14b6e544e218d806ffb0442785f62b Merge: 925d169 169ed55 7b79462 Author: Linus Torvalds Date: Sat Oct 30 11:43:26 2010 -0700 Merge branches 'perf-fixes-for-linus' and 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: jump label: Add work around to i386 gcc asm goto bug x86, ftrace: Use safe noops, drop trap test jump_label: Fix unaligned traps on sparc. jump label: Make arch_jump_label_text_poke_early() optional jump label: Fix error with preempt disable holding mutex oprofile: Remove deprecated use of flush_scheduled_work() oprofile: Fix the hang while taking the cpu offline jump label: Fix deadlock b/w jump_label_mutex vs. text_mutex jump label: Fix module __init section race * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: Check irq_remapped instead of remapping_enabled in destroy_irq() commit 6bff7eccb0d9bdef4123aad5399e73cbc26683a6 Author: Lino Sanfilippo Date: Fri Oct 29 12:02:17 2010 +0200 Ensure FMODE_NONOTIFY is not set by userspace In fsnotify_open() ensure that FMODE_NONOTIFY is never set by userspace. Also always call fsnotify_parent and fsnotify. Signed-off-by: Lino Sanfilippo Signed-off-by: Eric Paris commit 1a5cea7215f7c6bd3c960d7b44e864f3a73d1ad4 Author: Lino Sanfilippo Date: Fri Oct 29 12:06:42 2010 +0200 make fanotify_read() restartable across signals In fanotify_read() return -ERESTARTSYS instead of -EINTR to make read() restartable across signals (BSD semantic). Signed-off-by: Eric Paris commit 925d169f5b86fe57e2f5264ea574cce9a89b719d Merge: cdf01dd 6418c96 Author: Linus Torvalds Date: Sat Oct 30 09:05:48 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable: (39 commits) Btrfs: deal with errors from updating the tree log Btrfs: allow subvol deletion by unprivileged user with -o user_subvol_rm_allowed Btrfs: make SNAP_DESTROY async Btrfs: add SNAP_CREATE_ASYNC ioctl Btrfs: add START_SYNC, WAIT_SYNC ioctls Btrfs: async transaction commit Btrfs: fix deadlock in btrfs_commit_transaction Btrfs: fix lockdep warning on clone ioctl Btrfs: fix clone ioctl where range is adjacent to extent Btrfs: fix delalloc checks in clone ioctl Btrfs: drop unused variable in block_alloc_rsv Btrfs: cleanup warnings from gcc 4.6 (nonbugs) Btrfs: Fix variables set but not read (bugs found by gcc 4.6) Btrfs: Use ERR_CAST helpers Btrfs: use memdup_user helpers Btrfs: fix raid code for removing missing drives Btrfs: Switch the extent buffer rbtree into a radix tree Btrfs: restructure try_release_extent_buffer() Btrfs: use the flusher threads for delalloc throttling Btrfs: tune the chunk allocation to 5% of the FS as metadata ... Fix up trivial conflicts in fs/btrfs/super.c and fs/fs-writeback.c, and remove use of INIT_RCU_HEAD in fs/btrfs/extent_io.c (that init macro was useless and removed in commit 5e8067adfdba: "rcu head remove init") commit cdf01dd5443d0befc8c6a32cb2e3d2f568fd2558 Author: Linus Torvalds Date: Sat Oct 30 08:55:52 2010 -0700 fs-writeback.c: unify some common code The btrfs merge looks like hell, because it changes fs-writeback.c, and the crazy code has this repeated "estimate number of dirty pages" counting that involves three different helper functions. And it's done in two different places. Just unify that whole calculation as a "get_nr_dirty_pages()" helper function, and the merge result will look half-way decent. Signed-off-by: Linus Torvalds commit 847f877600313e65c5659476b30d74a6f66e388e Merge: 7934650 120a795 Author: Linus Torvalds Date: Sat Oct 30 08:35:35 2010 -0700 Merge branch 'audit.b64' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current * 'audit.b64' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current: audit mmap audit: make link()/linkat() match "attribute change" predicate audit: Use rcu for task lookup protection audit: Do not send uninitialized data for AUDIT_TTY_GET audit: Call tty_audit_push_task() outside preempt disabled in untag_chunk() we need to do alloc_chunk() a bit earlier audit: make functions static Audit: add support to match lsm labels on user audit messages commit 79346507ad48895f41b438fa562b1965721f36b9 Merge: 706d4b1 4084743 Author: Linus Torvalds Date: Sat Oct 30 08:31:35 2010 -0700 Merge git://git.infradead.org/mtd-2.6 * git://git.infradead.org/mtd-2.6: (82 commits) mtd: fix build error in m25p80.c mtd: Remove redundant mutex from mtd_blkdevs.c MTD: Fix wrong check register_blkdev return value Revert "mtd: cleanup Kconfig dependencies" mtd: cfi_cmdset_0002: make sector erase command variable mtd: cfi_cmdset_0002: add CFI detection for SST 38VF640x chips mtd: cfi_util: add support for switching SST 39VF640xB chips into QRY mode mtd: cfi_cmdset_0001: use defined value of P_ID_INTEL_PERFORMANCE instead of hardcoded one block2mtd: dubious assignment P4080/mtd: Fix the freescale lbc issue with 36bit mode P4080/eLBC: Make Freescale elbc interrupt common to elbc devices mtd: phram: use KBUILD_MODNAME mtd: OneNAND: S5PC110: Fix double call suspend & resume function mtd: nand: fix MTD_MODE_RAW writes jffs2: use kmemdup mtd: sm_ftl: cosmetic, use bool when possible mtd: r852: remove useless pci powerup/down from suspend/resume routines mtd: blktrans: fix a race vs kthread_stop mtd: blktrans: kill BKL mtd: allow to unload the mtdtrans module if its block devices aren't open ... Fix up trivial whitespace-introduced conflict in drivers/mtd/mtdchar.c commit 706d4b12f8d7edd28d7e879a77235472da393edb Merge: 3af54c9 9bafc74 Author: Linus Torvalds Date: Sat Oct 30 08:26:25 2010 -0700 Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (215 commits) ARM: memblock: setup lowmem mappings using memblock ARM: memblock: move meminfo into find_limits directly ARM: memblock: convert free_highpages() to use memblock ARM: move freeing of highmem pages out of mem_init() ARM: memblock: convert memory detail printing to use memblock ARM: memblock: use memblock to free memory into arm_bootmem_init() ARM: memblock: use memblock when initializing memory allocators ARM: ensure membank array is always sorted ARM: 6466/1: implement flush_icache_all for the rest of the CPUs ARM: 6464/2: fix spinlock recursion in adjust_pte() ARM: fix memblock breakage ARM: 6465/1: Fix data abort accessing proc_info from __lookup_processor_type ARM: 6460/1: ixp2000: fix type of ixp2000_timer_interrupt ARM: 6449/1: Fix for compiler warning of uninitialized variable. ARM: 6445/1: fixup TCM memory types ARM: imx: Add wake functionality to GPIO ARM: mx5: Add gpio-keys to mx51 babbage board ARM: imx: Add gpio-keys to plat-mxc mx31_3ds: Fix spi registration mx31_3ds: Fix the logic for detecting the debug board ... commit 3af54c9bd9e6f14f896aac1bb0e8405ae0bc7a44 Author: Vasiliy Kulikov Date: Sat Oct 30 18:22:49 2010 +0400 ipc: shm: fix information leak to userland The shmid_ds structure is copied to userland with shm_unused{,2,3} fields unitialized. It leads to leaking of contents of kernel stack memory. Signed-off-by: Vasiliy Kulikov Acked-by: Al Viro Cc: stable@kernel.org Signed-off-by: Linus Torvalds commit 504b701bb1655747575095543c083267418e02ac Author: wu zhangjin Date: Sat Oct 30 08:19:35 2010 -0700 fs/compat.c: fix build on MIPS/s390 The definition of PAGE_CACHE_MASK in is needed to use MAX_RW_COUNT, and on x86-64 that gets done indirectly through the architecture header includes. But on MIPS and s390 that doesn't happen, and we need to make sure that fs/compat.c includes pagemap.h explicitly. Introduced in commit 435f49a518c7 ("readv/writev: do the same MAX_RW_COUNT truncation that read/write does"). Reported-by: Sachin Sant (S390) Reported-by: wu zhangjin (MIPS) Signed-off-by: Linus Torvalds commit 120a795da07c9a02221ca23464c28a7c6ad7de1d Author: Al Viro Date: Sat Oct 30 02:54:44 2010 -0400 audit mmap Normal syscall audit doesn't catch 5th argument of syscall. It also doesn't catch the contents of userland structures pointed to be syscall argument, so for both old and new mmap(2) ABI it doesn't record the descriptor we are mapping. For old one it also misses flags. Signed-off-by: Al Viro commit af2951325bd6c26cb2c91943c7b11aed53504056 Author: Al Viro Date: Wed Nov 11 10:09:41 2009 -0500 audit: make link()/linkat() match "attribute change" predicate Signed-off-by: Al Viro commit ab263f47c9781a644de8b28013434b645082922e Author: Thomas Gleixner Date: Wed Dec 9 14:19:41 2009 +0000 audit: Use rcu for task lookup protection Protect the task lookups in audit_receive_msg() with rcu_read_lock() instead of tasklist_lock and use lock/unlock_sighand to protect against the exit race. Signed-off-by: Thomas Gleixner Cc: Al Viro Cc: Eric Paris Cc: Oleg Nesterov Signed-off-by: Al Viro commit 207032051a5ed38df332729ba42e98e9a1e60434 Author: Thomas Gleixner Date: Wed Dec 9 14:19:35 2009 +0000 audit: Do not send uninitialized data for AUDIT_TTY_GET audit_receive_msg() sends uninitialized data for AUDIT_TTY_GET when the task was not found. Send reply only when task was found. Signed-off-by: Thomas Gleixner Cc: Al Viro Cc: Eric Paris Signed-off-by: Al Viro commit 3c80fe4ac9cfb13b1bfa4edf1544e8b656716694 Author: Thomas Gleixner Date: Wed Dec 9 14:19:31 2009 +0000 audit: Call tty_audit_push_task() outside preempt disabled While auditing all tasklist_lock read_lock sites I stumbled over the following call chain: audit_prepare_user_tty() read_lock(&tasklist_lock); tty_audit_push_task(); mutex_lock(&buf->mutex); --> buf->mutex is locked with preemption disabled. Solve this by acquiring a reference to the task struct under rcu_read_lock and call tty_audit_push_task outside of the preempt disabled region. Move all code which needs to be protected by sighand lock into tty_audit_push_task() and use lock/unlock_sighand as we do not hold tasklist_lock. Signed-off-by: Thomas Gleixner Cc: Al Viro Cc: Eric Paris Cc: Oleg Nesterov Signed-off-by: Al Viro commit 40847437f15221b5822ba70550e8b9fcccfb9bb3 Author: Andres Salomon Date: Fri Oct 29 21:04:19 2010 -0700 mtd: fix build error in m25p80.c While building an x86 distro kernel, I hit the following: Kernel: arch/x86/boot/bzImage is ready (#7) ERROR: "of_mtd_parse_partitions" [drivers/mtd/devices/m25p80.ko] undefined! of_mtd_parse_partitions is defined with MTD_OF_PARTS, and that's only built on PPC and microblaze. The code in question should be wrapped w/ a stricter #ifdef. Signed-off-by: Andres Salomon Acked-by: Grant Likely Signed-off-by: David Woodhouse commit 8cc9de3ebdf654601db51a516267dff89c49acc3 Author: David Woodhouse Date: Sat Oct 30 12:39:21 2010 +0100 mtd: Remove redundant mutex from mtd_blkdevs.c In commit 2a48fc0ab24241755dc93bfd4f01d68efab47f5a ('block: autoconvert trivial BKL users to private mutex'), Arnd replaced the BKL usage with a mutex. However, Maxim has already provided a better fix in commit 480792b7bf188c29b8d4b10fee65c3a06ec5dbf7 ('mtd: blktrans: kill BKL'), which was simply to remove the BKL without replacing it — since he'd already made it do all necessary locking for itself. Signed-off-by: David Woodhouse commit 67577927e8d7a1f4b09b4992df640eadc6aacb36 Merge: 6fe4c59 51f00a4 Author: David Woodhouse Date: Sat Oct 30 12:35:11 2010 +0100 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git Conflicts: drivers/mtd/mtd_blkdevs.c Merge Grant's device-tree bits so that we can apply the subsequent fixes. Signed-off-by: David Woodhouse commit 6418c96107a2b399848bb8cfc6e29f11ca74fb94 Author: Chris Mason Date: Sat Oct 30 07:34:24 2010 -0400 Btrfs: deal with errors from updating the tree log During unlink we remove any references to the inode from the tree log. It can return -ENOENT and other errors, and this changes the unlink code to deal with it. Signed-off-by: Chris Mason commit 6fe4c590313133ebd5dadb769031489ff178ece1 Author: Frank Li Date: Tue Oct 26 11:02:19 2010 +0800 MTD: Fix wrong check register_blkdev return value register_blkdev return 1..255 when major = 0. if (ret ) { printk(KERN_WARNING "Unable to register %s block device on major %d: %d\n", tr->name, tr->major, ret); mutex_unlock(&mtd_table_mutex); return ret; } Above code will return fail when register_blkdev return allocated major number. Signed-off-by: Frank Li Signed-off-by: David Woodhouse commit 4882720b267b7b1d1b0ce08334b205f0329d4615 Author: Thomas Gleixner Date: Tue Sep 7 14:34:01 2010 +0000 semaphore: Remove mutex emulation Semaphores used as mutexes have been deprecated for years. Now that all users are either converted to real semaphores or to mutexes remove the cruft. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig LKML-Reference: <20100907125057.562399240@linutronix.de> commit 45f4d0243525b6bc747c946937ced437b135a84d Author: Thomas Gleixner Date: Sat Oct 30 11:06:57 2010 +0200 staging: Final semaphore cleanup Fixup the last remaining users of DECLARE_MUTEX and init_MUTEX. Scripted conversion, resulting code is binary equivalent. Signed-off-by: Thomas Gleixner Cc: Greg Kroah-Hartman LKML-Reference: <20100907125057.278833764@linutronix.de> commit 51dfacdef38b1dd6fc58b03dd1725d517516b115 Author: Thomas Gleixner Date: Sat Oct 16 22:34:39 2010 +0200 jbd2: Convert jbd2_slab_create_sem to mutex jbd2_slab_create_sem is used as a mutex, so make it one. [ akpm muttered: We may as well make it local to jbd2_journal_create_slab() also. ] Signed-off-by: Thomas Gleixner Cc: Ted Ts'o Cc: Andrew Morton LKML-Reference: Signed-off-by: Thomas Gleixner commit 169ed55bd30305b933f52bfab32a58671d44ab68 Merge: 3d7851b 45f81b1 Author: Ingo Molnar Date: Sat Oct 30 10:43:08 2010 +0200 Merge branch 'tip/perf/jump-label-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/urgent commit 7b79462a20826a7269322113c68ca78d5f67c0bd Author: Yinghai Lu Date: Sat Oct 30 01:19:29 2010 -0700 x86: Check irq_remapped instead of remapping_enabled in destroy_irq() Russ Anderson reported: | There is a regression that is causing a NULL pointer dereference | in free_irte when shutting down xpc. git bisect narrowed it down | to git commit d585d06(intr_remap: Simplify the code further), which | changed free_irte(). Reverse applying the patch fixes the problem. We need to use irq_remapped() for each irq instead of checking only intr_remapping_enabled as there might be non remapped irqs even when remapping is enabled. [ tglx: use cfg instead of retrieving it again. Massaged changelog ] Reported-bisected-and-tested-by: Russ Anderson Signed-off-by: Yinghai Lu Cc: Suresh Siddha LKML-Reference: <4CCBD511.40607@kernel.org> Signed-off-by: Thomas Gleixner commit 117bf5fbdbdc7a5394e5718b3354238961c83067 Author: Thomas Gleixner Date: Tue Sep 7 14:32:56 2010 +0000 hpfs: Convert sbi->hpfs_creation_de to mutex sbi->hpfs_creation_de is used as mutex so make it a mutex. Signed-off-by: Thomas Gleixner Acked-by: Christoph Hellwig Cc: Peter Zijlstra Cc: Al Viro Cc: linux-fsdevel@vger.kernel.org LKML-Reference: <20100907125056.228874895@linutronix.de> commit f7a998a9491f2da1d3e44d150aa611d10093da4f Author: Al Viro Date: Sat Oct 30 02:18:32 2010 -0400 in untag_chunk() we need to do alloc_chunk() a bit earlier ... while we are not holding spinlocks. Signed-off-by: Al Viro commit b8800aa5d9c7e4e2869321c77b80f322a0d9663a Author: Stephen Hemminger Date: Wed Oct 20 17:23:50 2010 -0700 audit: make functions static I was doing some namespace checks and found some simple stuff in audit that could be cleaned up. Make some functions static, and put const on make_reply payload arg. Signed-off-by: Stephen Hemminger Signed-off-by: Al Viro commit d29be158a68254f58cf1fbf60ce1e89557a321aa Author: Miloslav Trmac Date: Thu Sep 16 18:14:11 2010 -0400 Audit: add support to match lsm labels on user audit messages Add support for matching by security label (e.g. SELinux context) of the sender of an user-space audit record. The audit filter code already allows user space to configure such filters, but they were ignored during evaluation. This patch implements evaluation of these filters. For example, after application of this patch, PAM authentication logs caused by cron can be disabled using auditctl -a user,never -F subj_type=crond_t Signed-off-by: Miloslav Trmac Acked-by: Eric Paris Signed-off-by: Al Viro commit 2d10d8737ccdba752d60106abbc6ed4f37404923 Merge: c0f62ed 404ba5d 0520bd8 Author: Linus Torvalds Date: Fri Oct 29 18:58:00 2010 -0700 Merge branches 'x86-fixes-for-linus' and 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, alternative: Call stop_machine_text_poke() on all cpus x86-32: Restore irq stacks NUMA-aware allocations x86, memblock: Fix early_node_mem with big reserved region. * 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, uv: More Westmere support on SGI UV x86, uv: Enable Westmere support on SGI UV commit c0f62edd400115e54c52692c1dc6f5bf58ea0ba6 Merge: e4dd654 4ee7a6c 17f52ed Author: Linus Torvalds Date: Fri Oct 29 18:57:04 2010 -0700 Merge branches 'msm-fixes' and 'msm-video' of git://codeaurora.org/quic/kernel/dwalker/linux-msm * 'msm-fixes' of git://codeaurora.org/quic/kernel/dwalker/linux-msm: msm: Kconfig: drop unused config options msm: fix compile failure when no debug uart is selected msm: fix debug-macro.S build failure msm: timer: Decrease shift on timer clocksource arm: mach-msm: fix error handling in msm_iommu_probe() msm: fix Kconfig target board selection msm: fix compile failure on struct membank node member * 'msm-video' of git://codeaurora.org/quic/kernel/dwalker/linux-msm: drivers/video/msm/mddi.c: Remove multiple KERN_ uses drivers: msm: video: add dev_set_name call drivers: video: msm: fix hang on disable_irq commit 4260f7c7516f4c209cf0ca34fda99cc9a0847772 Author: Sage Weil Date: Fri Oct 29 15:46:43 2010 -0400 Btrfs: allow subvol deletion by unprivileged user with -o user_subvol_rm_allowed Add a mount option user_subvol_rm_allowed that allows users to delete a (potentially non-empty!) subvol when they would otherwise we allowed to do an rmdir(2). We duplicate the may_delete() checks from the core VFS code to implement identical security checks (minus the directory size check). We additionally require that the user has write+exec permission on the subvol root inode. Signed-off-by: Sage Weil Signed-off-by: Chris Mason commit 531cb13f1e417c060b54f979e1659ecd69bea650 Author: Sage Weil Date: Fri Oct 29 15:41:32 2010 -0400 Btrfs: make SNAP_DESTROY async There is no reason to force an immediate commit when deleting a snapshot. Users have some expectation that space from a deleted snapshot be freed immediately, but even if we do commit the reclaim is a background process. If users _do_ want the deletion to be durable, they can call 'sync'. Signed-off-by: Sage Weil Signed-off-by: Chris Mason commit 72fd032e94240d001b1d22f2c1dfd2592b02e44e Author: Sage Weil Date: Fri Oct 29 15:41:32 2010 -0400 Btrfs: add SNAP_CREATE_ASYNC ioctl Create a snap without waiting for it to commit to disk. The ioctl is ordered such that subsequent operations will not be contained by the created snapshot, and the commit is initiated, but the ioctl does not wait for the snapshot to commit to disk. We return the specific transid to userspace so that an application can wait for this specific snapshot creation to commit via the WAIT_SYNC ioctl. Signed-off-by: Sage Weil Signed-off-by: Chris Mason commit e4dd65496f6d09cbf4372d69b3b079848fe82ce3 Merge: 44234d0 d7b4e42 Author: Linus Torvalds Date: Fri Oct 29 16:49:34 2010 -0700 Merge branch 'for-2637/s3c24xx-all' of git://git.fluff.org/bjdooks/linux * 'for-2637/s3c24xx-all' of git://git.fluff.org/bjdooks/linux: ARM: h1940: add UDA1380 to i2c devices list ARM: h1940: Fix backlight and LCD power functions ARM: S3C2440: fix boot failure introduced by recent changes in gpiolib ARM: S3C2440: various fixes in Kconfig file ARM: rx1950: Add UDA1380 to i2c devices list ARM: rx1950: Add LEDs support ARM: rx1950: Add battery device ARM: h1940: Implement mmc_power function ARM: h1940: Use gpiolib for latch access commit d7b4e421a5be88f2f5b3cfe9aec638d90c62bc0f Merge: 7c1552d bdf5005 Author: Ben Dooks Date: Sat Oct 30 00:46:55 2010 +0100 ARM: Merge for-2637/s3c24xx/misc commit 7c1552d196682f05abaa8e49f81c40a9b6459b67 Merge: 8f08bfd 68730b4 Author: Ben Dooks Date: Sat Oct 30 00:46:49 2010 +0100 ARM: Merge for-2637/s3c24xx/h1940 commit 8f08bfd4777a2953d18db756938d90a5b532eb1a Merge: b18cae4 2cc857f Author: Ben Dooks Date: Sat Oct 30 00:46:34 2010 +0100 ARM: Merge for-2637/s3c24xx/rx1950 commit 68730b451b7d44a9e85b76aac2d8c1aa751d38a4 Author: Vasily Khoruzhick Date: Mon Sep 27 09:32:49 2010 +0300 ARM: h1940: add UDA1380 to i2c devices list Register UDA1380 codec during H1940 machine init Signed-off-by: Vasily Khoruzhick Signed-off-by: Ben Dooks commit 53193dd3ba3c7dfdd7fdf2b068c8f92cc46a5693 Author: Vasily Khoruzhick Date: Mon Sep 27 09:28:00 2010 +0300 ARM: h1940: Fix backlight and LCD power functions Current implementation of LCD and backlight power control functions is not complete, as result PDA consumes power in suspend. Fix this issue by managing state of some latch bits, just like WinMobile does. Signed-off-by: Vasily Khoruzhick Signed-off-by: Ben Dooks commit 404ba5d7bb958d3d788bdaa0debc0bdf60f13ffe Author: Jason Baron Date: Thu Oct 28 11:20:27 2010 -0400 x86, alternative: Call stop_machine_text_poke() on all cpus Currently, text_poke_smp() passes a NULL as the third argument to __stop_machine(), which will only run stop_machine_text_poke() on 1 cpu. Change NULL -> cpu_online_mask, as stop_machine_text_poke() is intended to be run on all cpus. I actually didn't notice any problems with stop_machine_text_poke() only being called on 1 cpu, but found this via code inspection. Signed-off-by: Jason Baron LKML-Reference: <20101028152026.GB2875@redhat.com> Acked-by: Mathieu Desnoyers Acked-by: Masami Hiramatsu Signed-off-by: H. Peter Anvin commit bdf5005b738c1542a30b41a83069329313fc61f6 Author: Abdoulaye Walsimou Gaye Date: Sat Oct 16 13:55:52 2010 +0200 ARM: S3C2440: fix boot failure introduced by recent changes in gpiolib Recent changes in s3c gpio break mini2440 board and may be others. The problem is that mach-mini2440.c: mini2440_init() (where we call s3c_gpio_setpull()) is called before s3c2440.c: s3c2440_init() (where we initialize s3c24xx_gpiocfg_default.set_pull function pointer). This causes dereferencing of NULL pointer at boot time and a kernel panic. Signed-off-by: Abdoulaye Walsimou Gaye Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Ben Dooks commit e33ffd4d28a2d516e32126ebabf4d9e930254cf5 Author: Abdoulaye Walsimou Gaye Date: Sat Oct 16 13:55:51 2010 +0200 ARM: S3C2440: various fixes in Kconfig file * kconfig symbols defined in arch/arm/mach-s3c2440/Kconfig are only available when ARCH_S3C2410 is selected, so no need to make some of them depend on ARCH_S3C2410. * fix CPU_S3C24405B typo in "config S3C2440_DMA". * mini2440: remove unconditionally select of SND_S3C24XX_SOC_S3C24XX_UDA134X. Those fixes avoid the following warnings at make time: scripts/kconfig/qconf arch/arm/Kconfig warning: (MACH_MINI2440 && ARCH_S3C2410) selects SND_S3C24XX_SOC_S3C24XX_UDA134X which has unmet direct dependencies (SND_S3C24XX_SOC && ARCH_S3C2410) warning: (CPU_S3C2440 && ARCH_S3C2410 && S3C2410_DMA) selects S3C2440_DMA which has unmet direct dependencies (ARCH_S3C2410 && CPU_S3C24405B) warning: (CPU_S3C2440 && ARCH_S3C2410 || CPU_S3C2442 && ARCH_S3C2410) selects CPU_S3C244X which has unmet direct dependencies (!ARCH_S3C2410) Signed-off-by: Abdoulaye Walsimou Gaye Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Ben Dooks commit 44234d0c465d996145e9c821fa28a981f2e8309d Merge: 91ab9bf 9cc11de Author: Linus Torvalds Date: Fri Oct 29 16:15:57 2010 -0700 Merge branch 'for-2637/i2c-all' of git://git.fluff.org/bjdooks/linux * 'for-2637/i2c-all' of git://git.fluff.org/bjdooks/linux: i2c-intel-mid: Driver depends on PCI i2c-intel-mid: support for Moorestown and Medfield platform i2c-nomadik: fixup bus delays i2c-nomadik: support smbus emulation i2c-nomadik: dynamic clocking i2c-nomadik: documentation fixes i2c-s3c2410: Enable i2c clock only when doing some transfert commit 4ee7a6c2d1e8679fc557ee5af1aee96393acb1dc Author: Daniel Walker Date: Wed Oct 27 13:10:34 2010 -0700 msm: Kconfig: drop unused config options These two config options don't exist, and aren't ever going to. So I simply delete them. Signed-off-by: Daniel Walker commit 06125ff051d535eaa993d83db66ab893248861af Author: Daniel Walker Date: Wed Oct 27 13:04:58 2010 -0700 msm: fix compile failure when no debug uart is selected If the board has a debug uart the user is given a choice of which uart to use. The user can also select NONE, which means not to use one. In most of our header files when NONE is selected nothing is defined for MSM_DEBUG_UART_PHYS or MSM_DEBUG_UART_BASE. This causes a compile failure in debug-macro.S which expect something to be defined there. Example of the failure, arch/arm/kernel/built-in.o: In function `hexbuf': linux-2.6/arch/arm/kernel/debug.S:186: undefined reference to `MSM_DEBUG_UART_PHYS' linux-2.6/arch/arm/kernel/debug.S:186: undefined reference to `MSM_DEBUG_UART_BASE' This fixes the compile failure by adding an ifdef to debug-macro.S that removes all the debug uart code in the case of NONE. Signed-off-by: Daniel Walker commit bcd72c3e0aff4b68d648d37ece423f2ccaf95337 Author: Daniel Walker Date: Wed Oct 27 15:25:59 2010 -0700 msm: fix debug-macro.S build failure Originally there was an ifdef case to handle when no debug uart was selected. In commit 0ea1293009826da45e1019f45dfde1e557bb30df that case was removed which causes the following build failure, linux-2.6/arch/arm/kernel/debug.S: Assembler messages: linux-2.6/arch/arm/kernel/debug.S:174: Error: bad instruction `addruart r1,r2' linux-2.6/arch/arm/kernel/debug.S:176: Error: bad instruction `waituart r2,r3' linux-2.6/arch/arm/kernel/debug.S:177: Error: bad instruction `senduart r1,r3' linux-2.6/arch/arm/kernel/debug.S:178: Error: bad instruction `busyuart r2,r3' linux-2.6/arch/arm/kernel/debug.S:190: Error: bad instruction `addruart r1,r2' This is a partial revert to add back the case which was removed with two caveats. First the API for the addruart macro was updated, and the new addruart case now return 0xfff00000 so that a know IO mapping is created instead of a random one. Cc: Jeremy Kerr Cc: Lorenzo Pieralisi Cc: Jason Wang Cc: Tony Lindgren Cc: Nicolas Pitre Cc: Russell King - ARM Linux Signed-off-by: Daniel Walker commit 9cc11dee3ddf140e39b0088688bfe5ee45d63b41 Author: Randy Dunlap Date: Fri Oct 29 13:37:09 2010 -0700 i2c-intel-mid: Driver depends on PCI i2c-intel-mid driver uses PCI data structs and interfaces, so it should depend on PCI. Fixes these build errors: drivers/i2c/busses/i2c-intel-mid.c:977: error: implicit declaration of function 'pci_request_region' drivers/i2c/busses/i2c-intel-mid.c:1077: error: implicit declaration of function 'pci_release_region' Signed-off-by: Randy Dunlap Cc: Ba Zheng Cc: Jean Delvare Cc: Ben Dooks Cc: linux-i2c@vger.kernel.org Signed-off-by: Ben Dooks commit 91ab9bf7c5322128d3b29c04393268658631e26a Merge: b7bdcc4 78ca7c3 Author: Linus Torvalds Date: Fri Oct 29 15:09:56 2010 -0700 Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6: PM / Runtime: Fix typo in status comparison causing warning commit b7bdcc47114595b4b359fe0f7d941bb901e9261d Merge: 1840897 8ef17fa Author: Linus Torvalds Date: Fri Oct 29 14:43:30 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-kconfig * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-kconfig: kconfig: Have streamline_config process menuconfigs too kconfig: Fix streamline_config to read multi line deps in Kconfig files kconfig: Fix missing declaration of variable $dir in streamline_config.pl kconfig: Fix variable name typo %prompts in streamline_config.pl kconfig: Make localmodconfig handle environment variables commit 1840897ab5d39b2e510c610ee262ded79919e718 Merge: d56f84e a4765fa Author: Linus Torvalds Date: Fri Oct 29 14:17:12 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (34 commits) b43: Fix warning at drivers/mmc/core/core.c:237 in mmc_wait_for_cmd mac80211: fix failure to check kmalloc return value in key_key_read libertas: Fix sd8686 firmware reload ath9k: Fix incorrect access of rate flags in RC netfilter: xt_socket: Make tproto signed in socket_mt6_v1(). stmmac: enable/disable rx/tx in the core with a single write. net: atarilance - flags should be unsigned long netxen: fix kdump pktgen: Limit how much data we copy onto the stack. net: Limit socket I/O iovec total length to INT_MAX. USB: gadget: fix ethernet gadget crash in gether_setup fib: Fix fib zone and its hash leak on namespace stop cxgb3: Fix panic in free_tx_desc() cxgb3: fix crash due to manipulating queues before registration 8390: Don't oops on starting dev queue dccp ccid-2: Stop polling dccp: Refine the wait-for-ccid mechanism dccp: Extend CCID packet dequeueing interface dccp: Return-value convention of hc_tx_send_packet() igbvf: fix panic on load ... commit d56f84e7e317c69adefb2454a3d538a6d7e11e4b Merge: 12462f2 3414df8 Author: Linus Torvalds Date: Fri Oct 29 14:16:08 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: Staging: dream: remove dream driver and arch from tree commit 12462f2df4d10ea4f6d55b9d438ff788badec3f0 Merge: d2df408 8747f95 Author: Linus Torvalds Date: Fri Oct 29 14:15:12 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6: eCryptfs: Print mount_auth_tok_only param in ecryptfs_show_options ecryptfs: added ecryptfs_mount_auth_tok_only mount parameter ecryptfs: checking return code of ecryptfs_find_auth_tok_for_sig() ecryptfs: release keys loaded in ecryptfs_keyring_auth_tok_for_sig() eCryptfs: Clear LOOKUP_OPEN flag when creating lower file ecryptfs: call vfs_setxattr() in ecryptfs_setxattr() commit d2df40857fd57f02906e6ac1484d10cb7accbc86 Author: Valdis.Kletnieks@vt.edu Date: Fri Oct 29 17:03:46 2010 -0400 drivers/dma/Kconfig: add part number for Topcliff. Product codenames are OK, but once an actual product name is available, it should be referenced as well. http://ark.intel.com/chipset.aspx?familyID=52499 Signed-off-by: Valdis Kletnieks Signed-off-by: Linus Torvalds commit 337ac9d5218cc19f40fca13fa4deb3c658c4241b Author: Cyril Chemparathy Date: Fri Oct 29 13:50:25 2010 -0700 phy/marvell: rename 88ec048 to 88e1318s and fix mscr1 addr The marvell 88ec048's official part number is 88e1318s. This patch renames definitions in the driver to reflect this. In addition, a minor bug fix has been added to write back the MSCR1 register value properly. Signed-off-by: Cyril Chemparathy Signed-off-by: David S. Miller commit 3414df8ca38b203c8a5ad8efc32d4a3836a0596d Author: Greg Kroah-Hartman Date: Fri Oct 29 12:42:18 2010 -0700 Staging: dream: remove dream driver and arch from tree This code is stalled, with no one working on it anymore, and the main msm code is now going through the proper channels to get merged correctly. So remove it as it contains a number of kernel information leaks and it is doubtful if it even still builds anymore. Acked-by: Pavel Machek Acked-by: Bryan Huntsman Signed-off-by: Greg Kroah-Hartman commit 462045928bda777c86919a396a42991fcf235378 Author: Sage Weil Date: Fri Oct 29 15:41:32 2010 -0400 Btrfs: add START_SYNC, WAIT_SYNC ioctls START_SYNC will start a sync/commit, but not wait for it to complete. Any modification started after the ioctl returns is guaranteed not to be included in the commit. If a non-NULL pointer is passed, the transaction id will be returned to userspace. WAIT_SYNC will wait for any in-progress commit to complete. If a transaction id is specified, the ioctl will block and then return (success) when the specified transaction has committed. If it has already committed when we call the ioctl, it returns immediately. If the specified transaction doesn't exist, it returns EINVAL. If no transaction id is specified, WAIT_SYNC will wait for the currently committing transaction to finish it's commit to disk. If there is no currently committing transaction, it returns success. These ioctls are useful for applications which want to impose an ordering on when fs modifications reach disk, but do not want to wait for the full (slow) commit process to do so. Picky callers can take the transid returned by START_SYNC and feed it to WAIT_SYNC, and be certain to wait only as long as necessary for the transaction _they_ started to reach disk. Sloppy callers can START_SYNC and WAIT_SYNC without a transid, and provided they didn't wait too long between the calls, they will get the same result. However, if a second commit starts before they call WAIT_SYNC, they may end up waiting longer for it to commit as well. Even so, a START_SYNC+WAIT_SYNC still guarantees that any operation completed before the START_SYNC reaches disk. Signed-off-by: Sage Weil Signed-off-by: Chris Mason commit bb9c12c945cbd1b0eaa1589546dde772ccabeeba Author: Sage Weil Date: Fri Oct 29 15:37:34 2010 -0400 Btrfs: async transaction commit Add support for an async transaction commit that is ordered such that any subsequent operations will join the following transaction, but does not wait until the current commit is fully on disk. This avoids much of the latency associated with the btrfs_commit_transaction for callers concerned with serialization and not safety. The wait_for_unblock flag controls whether we wait for the 'middle' portion of commit_transaction to complete, which is necessary if the caller expects some of the modifications contained in the commit to be available (this is the case for subvol/snapshot creation). Signed-off-by: Sage Weil Signed-off-by: Chris Mason commit 99d16cbcaf694c803a1b6bf7e851694ffe1d255d Author: Sage Weil Date: Fri Oct 29 15:37:34 2010 -0400 Btrfs: fix deadlock in btrfs_commit_transaction We calculate timeout (either 1 or MAX_SCHEDULE_TIMEOUT) based on whether num_writers > 1 or should_grow at the top of the loop. Then, much much later, we wait for that timeout if either num_writers or should_grow is true. However, it's possible for a racing process (calling btrfs_end_transaction()) to decrement num_writers such that we wait forever instead of for 1. Fix this by deciding how long to wait when we wait. Include a smp_mb() before checking if the waitqueue is active to ensure the num_writers is visible. Signed-off-by: Sage Weil Signed-off-by: Chris Mason commit fccdae435c1b295cca546f23f6f43126a28ffac3 Author: Sage Weil Date: Fri Oct 29 15:37:33 2010 -0400 Btrfs: fix lockdep warning on clone ioctl I'm no lockdep expert, but this appears to make the lockdep warning go away for the i_mutex locking in the clone ioctl. Signed-off-by: Sage Weil Signed-off-by: Chris Mason commit 050006a753bab8ba05f2113cc57ba49398cd5521 Author: Sage Weil Date: Fri Oct 29 15:37:33 2010 -0400 Btrfs: fix clone ioctl where range is adjacent to extent We had an edge case issue where the requested range was just following an existing extent. Instead of skipping to the next extent, we used the previous one which lead to having zero sized extents. Signed-off-by: Yehuda Sadeh Signed-off-by: Chris Mason commit 9a019196ecaa57780141ef5d1f0bb31050d6ed5b Author: Sage Weil Date: Fri Oct 29 15:37:33 2010 -0400 Btrfs: fix delalloc checks in clone ioctl The lookup_first_ordered_extent() was done on the wrong inode, and the ->delalloc_bytes test was wrong, as the following btrfs_wait_ordered_range() would only invoke a range write and wouldn't write the entire file data range. Also, a bad parameter was passed to btrfs_wait_ordered_range(). Signed-off-by: Yehuda Sadeh Signed-off-by: Chris Mason commit a4765fa7bfb92d5b9de19a503674b6624f95a7ae Merge: 089282f 9f2a0fa Author: David S. Miller Date: Fri Oct 29 12:23:15 2010 -0700 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 commit d8e39c457bc1ca2a7304bc086c7b0f0c10854921 Author: Chris Mason Date: Fri Oct 29 15:17:41 2010 -0400 Btrfs: drop unused variable in block_alloc_rsv The alloc_target variable is not really used. Signed-off-by: Chris Mason commit 559af8211433b8c0b20e6c43c61409cb9c9c2996 Author: Andi Kleen Date: Fri Oct 29 15:14:37 2010 -0400 Btrfs: cleanup warnings from gcc 4.6 (nonbugs) These are all the cases where a variable is set, but not read which are not bugs as far as I can see, but simply leftovers. Still needs more review. Found by gcc 4.6's new warnings Signed-off-by: Andi Kleen Cc: Chris Mason Signed-off-by: Andrew Morton Signed-off-by: Chris Mason commit 411fc6bcef54f828a5458f4730c68abdf13c6bf0 Author: Andi Kleen Date: Fri Oct 29 15:14:31 2010 -0400 Btrfs: Fix variables set but not read (bugs found by gcc 4.6) These are all the cases where a variable is set, but not read which are really bugs. - Couple of incorrect error handling fixed. - One incorrect use of a allocation policy - Some other things Still needs more review. Found by gcc 4.6's new warnings. [akpm@linux-foundation.org: fix build. Might have been bitrot] Signed-off-by: Andi Kleen Cc: Chris Mason Signed-off-by: Andrew Morton Signed-off-by: Chris Mason commit d0b678cb0a26783ab7238784f1e7e608e5caafa3 Author: Julia Lawall Date: Fri Oct 29 15:14:23 2010 -0400 Btrfs: Use ERR_CAST helpers Use ERR_CAST(x) rather than ERR_PTR(PTR_ERR(x)). The former makes more clear what is the purpose of the operation, which otherwise looks like a no-op. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ type T; T x; identifier f; @@ T f (...) { <+... - ERR_PTR(PTR_ERR(x)) + x ...+> } @@ expression x; @@ - ERR_PTR(PTR_ERR(x)) + ERR_CAST(x) // Signed-off-by: Julia Lawall Cc: Chris Mason Signed-off-by: Andrew Morton Signed-off-by: Chris Mason commit 2354d08fe9aeec3e451b85cb5387a6b28dbca0b1 Author: Julia Lawall Date: Fri Oct 29 15:14:18 2010 -0400 Btrfs: use memdup_user helpers Use memdup_user when user data is immediately copied into the allocated region. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression from,to,size,flag; position p; identifier l1,l2; @@ - to = \(kmalloc@p\|kzalloc@p\)(size,flag); + to = memdup_user(from,size); if ( - to==NULL + IS_ERR(to) || ...) { <+... when != goto l1; - -ENOMEM + PTR_ERR(to) ...+> } - if (copy_from_user(to, from, size) != 0) { - <+... when != goto l2; - -EFAULT - ...+> - } // Signed-off-by: Julia Lawall Cc: Chris Mason Signed-off-by: Andrew Morton Signed-off-by: Chris Mason commit 1e431a9d6478940c0b5fcfa1c17a336fc0683409 Merge: 75d7312 ff10b88 Author: Linus Torvalds Date: Fri Oct 29 11:49:38 2010 -0700 Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb: kgdb,ppc: Individual register get/set for ppc kgdbts: prevent re-entry to kgdbts before it unregisters debug_core,x86,blackfin: Clean up hw debug disable API kdb: Fix early debugging crash regression kgdb,arm: fix register dump kdb: fix per_cpu command to remove supress mask kdb: Add kdb kernel module sample commit 75d73126fd490e26a9bdfc2338ca068e71563e0b Merge: b77d643 6a915c2 Author: Linus Torvalds Date: Fri Oct 29 11:47:11 2010 -0700 Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6 * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6: parisc-agp: fix missing slab.h include commit 45f81b1c96d9793e47ce925d257ea693ce0b193e Author: Steven Rostedt Date: Fri Oct 29 12:33:43 2010 -0400 jump label: Add work around to i386 gcc asm goto bug On i386 (not x86_64) early implementations of gcc would have a bug with asm goto causing it to produce code like the following: (This was noticed by Peter Zijlstra) 56 pushl 0 67 nopl jmp 0x6f popl jmp 0x8c 6f mov test je 0x8c 8c mov call *(%esp) The jump added in the asm goto skipped over the popl that matched the pushl 0, which lead up to a quick crash of the system when the jump was enabled. The nopl is defined in the asm goto () statement and when tracepoints are enabled, the nop changes to a jump to the label that was specified by the asm goto. asm goto is suppose to tell gcc that the code in the asm might jump to an external label. Here gcc obviously fails to make that work. The bug report for gcc is here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46226 The bug only appears on x86 when not compiled with -maccumulate-outgoing-args. This option is always set on x86_64 and it is also the work around for a function graph tracer i386 bug. (See commit: 746357d6a526d6da9d89a2ec645b28406e959c2e) This explains why the bug only showed up on i386 when function graph tracer was not enabled. This patch now adds a CONFIG_JUMP_LABEL option that is default off instead of using jump labels by default. When jump labels are enabled, the -maccumulate-outgoing-args will be used (causing a slightly larger kernel image on i386). This option will exist until we have a way to detect if the gcc compiler in use is safe to use on all configurations without the work around. Note, there exists such a test, but for now we will keep the enabling of jump label as a manual option. Archs that know the compiler is safe with asm goto, may choose to select JUMP_LABEL and enable it by default. Reported-by: Ingo Molnar Cause-discovered-by: Peter Zijlstra Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Jason Baron Cc: H. Peter Anvin Cc: David Daney Cc: Mathieu Desnoyers Cc: Masami Hiramatsu Cc: David Miller Cc: Richard Henderson LKML-Reference: <1288028746.3673.11.camel@laptop> Signed-off-by: Steven Rostedt commit 9f2a0fac625bcef9c579bcf0b0c904ab1a56e7c4 Author: Larry Finger Date: Thu Oct 28 10:43:26 2010 -0500 b43: Fix warning at drivers/mmc/core/core.c:237 in mmc_wait_for_cmd On module removal, the sdio version of b43 generates the following warning: [ 851.560519] ------------[ cut here ]------------ [ 851.560531] WARNING: at drivers/mmc/core/core.c:237 mmc_wait_for_cmd+0x88/0x90() [ 851.560534] Hardware name: 20552PG [ 851.560536] Modules linked in: b43(-) ssb mmc_block binfmt_misc rfcomm sco bnep ppdev l2cap ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp kvm_intel kvm arc4 iwlagn snd_hda_codec_conexant snd_hda_intel snd_hda_codec iwlcore snd_hwdep snd_pcm thinkpad_acpi mac80211 snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq r852 joydev snd_timer sm_common pcmcia nand snd_seq_device cfg80211 sdhci_pci btusb psmouse tpm_tis yenta_socket nand_ids lp snd pcmcia_rsrc nand_ecc bluetooth sdhci tpm pcmcia_core parport mtd snd_page_alloc serio_raw tpm_bios soundcore nvram led_class sha256_generic aes_i586 aes_generic dm_crypt i915 drm_kms_helper drm ahci intel_agp i2c_algo_bit intel_gtt e1000e libahci video agpgart output [ 851.560620] Pid: 2504, comm: rmmod Not tainted 2.6.36-titan0+ #1 [ 851.560622] Call Trace: [ 851.560631] [] warn_slowpath_common+0x72/0xa0 [ 851.560636] [] ? mmc_wait_for_cmd+0x88/0x90 [ 851.560641] [] ? mmc_wait_for_cmd+0x88/0x90 [ 851.560645] [] warn_slowpath_null+0x22/0x30 [ 851.560649] [] mmc_wait_for_cmd+0x88/0x90 [ 851.560655] [] ? device_release+0x25/0x80 [ 851.560660] [] mmc_io_rw_direct_host+0xa0/0x150 [ 851.560665] [] mmc_io_rw_direct+0x30/0x40 [ 851.560669] [] sdio_disable_func+0x37/0xa0 [ 851.560683] [] b43_sdio_remove+0x30/0x50 [b43] [ 851.560687] [] sdio_bus_remove+0x1c/0x60 [ 851.560692] [] ? blocking_notifier_call_chain+0x1f/0x30 [ 851.560697] [] __device_release_driver+0x51/0xb0 [ 851.560701] [] driver_detach+0x8f/0xa0 [ 851.560705] [] bus_remove_driver+0x63/0xa0 [ 851.560709] [] driver_unregister+0x49/0x80 [ 851.560713] [] ? driver_unregister+0x49/0x80 [ 851.560718] [] sdio_unregister_driver+0x17/0x20 [ 851.560727] [] b43_sdio_exit+0x12/0x20 [b43] [ 851.560734] [] b43_exit+0x17/0x3c [b43] [ 851.560740] [] sys_delete_module+0x13d/0x200 [ 851.560747] [] ? do_munmap+0x212/0x300 [ 851.560752] [] sysenter_do_call+0x12/0x28 [ 851.560757] ---[ end trace 31e14488072d2f7d ]--- [ 851.560759] ------------[ cut here ]------------ The warning is caused by b43 not claiming the device before calling sdio_disable_func(). Signed-off-by: Larry Finger Reported-by: Arnd Hannemann Tested-by: Arnd Hannemann Cc: Stable Signed-off-by: John W. Linville commit 520efd1ace3f826120482e57a95d649b4e1c1684 Author: Jesper Juhl Date: Fri Oct 29 16:10:26 2010 +0200 mac80211: fix failure to check kmalloc return value in key_key_read I noticed two small issues in mac80211/debugfs_key.c::key_key_read while reading through the code. Patch below. The key_key_read() function returns ssize_t and the value that's actually returned is the return value of simple_read_from_buffer() which also returns ssize_t, so let's hold the return value in a ssize_t local variable rather than a int one. Also, memory is allocated dynamically with kmalloc() which can fail, but the return value of kmalloc() is not checked, so we may end up operating on a null pointer further on. So check for a NULL return and bail out with -ENOMEM in that case. Signed-off-by: Jesper Juhl Signed-off-by: John W. Linville commit 731b2034999bbfe86c9074f1b0d611940bf7c323 Author: Paul Fox Date: Fri Oct 29 14:57:28 2010 +0100 libertas: Fix sd8686 firmware reload For the SD8686, we cannot rely on the scratch register to read the firmware load status, because the same register is used for storing RX packet length. Broaden the check to account for this. The module can now be unloaded/reloaded successfully. Based on the implementation from libertas_tf. Signed-off-by: Daniel Drake Acked-by: Dan Williams Signed-off-by: Steve deRosier Signed-off-by: John W. Linville commit 4fc4fbd1d9a05fa4f348b499aca3a6f8d3c9bbe6 Author: Mohammed Shafi Shajakhan Date: Thu Oct 28 19:51:47 2010 +0530 ath9k: Fix incorrect access of rate flags in RC The index variable to access the rate flags should be obtained from the inner loop counter which corresponds to the rate table structure.This fixes the invalid rate selection i.e when the supported basic rate is invalid on a particular band and also the following warning message. Thanks to Raj for finding this out. Call Trace: [] warn_slowpath_common+0x7a/0xb0 [] warn_slowpath_null+0x15/0x20 [] ath_get_rate+0x595/0x5b0 [ath9k] [] ? cpumask_next_and+0x36/0x50 [] rate_control_get_rate+0x86/0x160 [mac80211] [] invoke_tx_handlers+0x81c/0x12d0 [mac80211] [] ieee80211_tx+0x89/0x2b0 [mac80211] [] ? pskb_expand_head+0x1cc/0x1f0 [] ieee80211_xmit+0xb5/0x1c0 [mac80211] [] ieee80211_tx_skb+0x4f/0x60 [mac80211] [] ieee80211_send_nullfunc+0x46/0x60 [mac80211] [] ieee80211_offchannel_stop_station+0x107/0x150 [mac80211] [] ? pskb_expand_head+0x1cc/0x1f0 [] ieee80211_xmit+0xb5/0x1c0 [mac80211] [] ieee80211_tx_skb+0x4f/0x60 [mac80211] [] ieee80211_send_nullfunc+0x46/0x60 [mac80211] [] ieee80211_offchannel_stop_station+0x107/0x150 [mac80211] [] ieee80211_scan_work+0x146/0x600 [mac80211] [] ? schedule+0x2f5/0x8e0 [] ? ieee80211_scan_work+0x0/0x600 [mac80211] [] process_one_work+0x10f/0x380 [] worker_thread+0x162/0x340 [] ? worker_thread+0x0/0x340 Cc: stable@kernel.org Signed-off-by: Mohammed Shafi Shajakhan Signed-off-by: John W. Linville commit ff10b88b5a05c8f1646dd15fb9f6093c1384ff6d Author: Dongdong Deng Date: Wed Oct 27 21:47:00 2010 -0500 kgdb,ppc: Individual register get/set for ppc commit 534af1082329392bc29f6badf815e69ae2ae0f4c(kgdb,kdb: individual register set and and get API) introduce dbg_get_reg/dbg_set_reg API for individual register get and set. This patch implement those APIs for ppc. Signed-off-by: Dongdong Deng Signed-off-by: Jason Wessel commit 4dacd5c073150cd78dfb6004cbfa71986f0258a4 Author: Dongdong Deng Date: Mon Aug 30 21:06:00 2010 -0500 kgdbts: prevent re-entry to kgdbts before it unregisters The "kgdb_connected" variable of debug_core just indicates whether or not kgdbts is connected to the debug_core. It does not completely prevent a script from trying invoke kgdbts again and possibly crashing the system (see Call Trace below). The configured variable in kgtbts can be used instead of kgdb_connected instead of kgdb_connected. The cleanup_kgdbts() can also be removed because there is no possible way to build kgdbts as a kernel module that you could unload with rmmod. Call Trace: ----------------------------------------------------------------- root:/$ echo kgdbts=V1S1000 > /sys/module/kgdbts/parameters/kgdbts kgdb: Unregistered I/O driver kgdbts, debugger disabled. ------------[ cut here ]------------ WARNING: at kernel/debug/debug_core.c:1002 kgdb_unregister_io_module+0xec/0x100() Hardware name: Moon Creek platform Modules linked in: Pid: 664, comm: sh Not tainted 2.6.34.1-WR4.0.0.0_standard #58 Call Trace: [] warn_slowpath_common+0x6d/0xa0 [] ? kgdb_unregister_io_module+0xec/0x100 [] ? kgdb_unregister_io_module+0xec/0x100 [] ? param_attr_store+0x0/0x20 [] warn_slowpath_null+0x15/0x20 [] kgdb_unregister_io_module+0xec/0x100 [] cleanup_kgdbts+0x1a/0x20 [] param_set_kgdbts_var+0x6d/0xb0 [] ? param_set_kgdbts_var+0x0/0xb0 [] param_attr_store+0x17/0x20 [] module_attr_store+0x2c/0x40 [] sysfs_write_file+0x94/0xf0 [] vfs_write+0x96/0x130 [] ? sysfs_write_file+0x0/0xf0 [] sys_write+0x46/0xd0 [] system_call_done+0x0/0x4 ---[ end trace 4eb028c6ee43154c ]--- kgdb: Unregistered I/O driver kgdbts, debugger disabled. ----------------------------------------------------------------- [jason.wessel@windriver.com: remove cleanup_kgdbts() ] Signed-off-by: Dongdong Deng Signed-off-by: Jason Wessel commit d7ba979d45272385ce0fdf141d922e61ff48e07b Author: Dongdong Deng Date: Wed Aug 18 06:02:00 2010 -0500 debug_core,x86,blackfin: Clean up hw debug disable API The kgdb_disable_hw_debug() was an architecture specific function for disabling all hardware breakpoints on a per cpu basis when entering the debug core. This patch will remove the weak function kdbg_disable_hw_debug() and change it into a call back which lives with the rest of hw breakpoint call backs in struct kgdb_arch. Signed-off-by: Dongdong Deng Signed-off-by: Jason Wessel commit 578bd4dfcda63d2ef15f025f1d5d55c0e56b9660 Author: Jason Wessel Date: Fri Oct 29 13:14:41 2010 -0500 kdb: Fix early debugging crash regression The kdb_current legally be equal to NULL in the early boot of the x86 arch. The problem pcan be observed by booting with the kernel arguments: earlyprintk=vga ekgdboc=kbd kgdbwait The kdb shell will oops on entry and recursively fault because it cannot get past the final stage of shell initialization. Signed-off-by: Jason Wessel commit 834b2964b7ab047610da038e42d61dc8dac6339a Author: Rabin Vincent Date: Tue Oct 26 12:49:00 2010 -0500 kgdb,arm: fix register dump DBG_MAX_REG_NUM incorrectly had the number of indices in the GDB regs array rather than the number of registers, leading to an oops when the "rd" command is used in KDB. Cc: stable@kernel.org Signed-off-by: Rabin Vincent Signed-off-by: Jason Wessel commit 931ea24819f2bd40cca2dc214558bfcc3c91549e Author: Jason Wessel Date: Fri Oct 29 08:04:16 2010 -0500 kdb: fix per_cpu command to remove supress mask Rusty pointed out that the per_cpu command uses up lots of space on the stack and the cpu supress mask is probably not needed. This patch removes the need for the supress mask as well as fixing up the following problems with the kdb per_cpu command: * The per_cpu command should allow an address as an argument * When you have more data than can be displayed on one screen allow the user to break out of the print loop. Reported-by: Rusty Russell Signed-off-by: Jason Wessel commit 4aad8f51d0672f1c95e2cf0e1bc7b9ab42d8e1ea Author: Jason Wessel Date: Mon Oct 25 10:14:05 2010 -0500 kdb: Add kdb kernel module sample Add an example of how to add a dynamic kdb shell command via a kernel module. Signed-off-by: Jason Wessel commit b77d643ced576bdd1e918aebda869de74696cde9 Merge: b4020c1 64575f9 Author: Linus Torvalds Date: Fri Oct 29 11:13:10 2010 -0700 Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus * 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus: (46 commits) ftrace/MIPS: Enable C Version of recordmcount ftrace/MIPS: Add module support for C version of recordmcount ftrace/MIPS: Add MIPS64 support for C version of recordmcount MIPS: Make TASK_SIZE reflect proper size for both 32 and 64 bit processes. MIPS: Allow UserLocal on MIPS_R1 processors MIPS: Honor L2 bypass bit MIPS: Add BMIPS CP0 register definitions MIPS: Add BMIPS processor types to Kconfig MIPS: Decouple BMIPS CPU support from bcm47xx/bcm63xx SoC code MIPS: Add support for hardware performance events (mipsxx) MIPS: Perf-events: Add callchain support MIPS: add support for hardware performance events (skeleton) MIPS: add support for software performance events MIPS: define local_xchg from xchg_local to atomic_long_xchg MIPS: AR7: Add support for Titan (TNETV10xx) SoC variant MIPS: AR7: Initialize GPIO earlier MIPS: Add platform device and Kconfig for Octeon USB EHCI / OHCI USB: Add EHCI and OHCH glue for OCTEON II SOCs. MIPS: Octeon: Add register definitions for EHCI / OHCI USB glue logic. MIPS: Octeon: Apply CN63XXP1 errata workarounds. ... commit 64575f918f3279d8487cf670dbefa956ce16a526 Author: Wu Zhangjin Date: Wed Oct 27 18:59:09 2010 +0800 ftrace/MIPS: Enable C Version of recordmcount Selects HAVE_C_RECORDMCOUNT to use the C version of the recordmcount intead of the old Perl Version of recordmcount. Signed-off-by: Wu Zhangjin LKML-Reference: Signed-off-by: Steven Rostedt Signed-off-by: Ralf Baechle commit 412910cd046c1f14f0fba9c0aec401d47e57dcd1 Author: Wu Zhangjin Date: Wed Oct 27 18:59:08 2010 +0800 ftrace/MIPS: Add module support for C version of recordmcount Since MIPS modules' address space differs from the core kernel space, to access the _mcount in the core kernel, the kernel functions in modules must use long call (-mlong-calls): load the _mcount address into one register and jump to the address stored by the register: c: 3c030000 lui v1,0x0 <--------> b label c: R_MIPS_HI16 _mcount c: R_MIPS_NONE *ABS* c: R_MIPS_NONE *ABS* 10: 64630000 daddiu v1,v1,0 10: R_MIPS_LO16 _mcount 10: R_MIPS_NONE *ABS* 10: R_MIPS_NONE *ABS* 14: 03e0082d move at,ra 18: 0060f809 jalr v1 label: In the old Perl version of recordmcount, we only need to record the position of the 1st R_MIPS_HI16 type of _mcount, and later, in ftrace_make_nop(), replace the instruction in this position by a "b label" and in ftrace_make_call(), replace it back. But, the default C version of recordmcount records all of the _mcount symbols, so, we must filter the 2nd _mcount like the Perl version of recordmcount does. The C version of recordmcount copes with the symbols before they are linked, So It doesn't know the type of the symbols and therefore can not filter the symbols as the Perl version of recordmcount does. But as we can see above, the 2nd _mcount symbols of the long call alawys follows the 1st _mcount symbol of the same long call, which means the offset from the 1st to the 2nd is fixed, it is 0x10-0xc = 4 here, 4 is the length of the 1st load instruciton, for MIPS has fixed length of instructions, this offset is always 4. And as we know, the _mcount is inserted into the entry of every kernel function, the offset between the other _mcount's is expected to be always bigger than 4. So, to filter the 2ns _mcount symbol of the long call, we can simply check the offset between two _mcount symbols, If it is 4, then, filter the 2nd _mcount symbol. To avoid touching too much code, an 'empty' function fn_is_fake_mcount() is added for all of the archs, and the specific archs can override it via chaning the function pointer: is_fake_mcount in do_file() with the e_machine. e.g. This patch adds MIPS_is_fake_mcount() to override the default fn_is_fake_mcount() pointed by is_fake_mcount. This fn_is_fake_mcount() checks if the _mcount symbol is fake, e.g. the 2nd _mcount symbol of the long call is fake, for there are 2 _mcount symbols mapped to one real mcount call, so, one of them is fake and must be filtered. This fn_is_fake_mcount() is called in sift_rel_mcount() after finding the _mcount symbols and before adding the _mcount symbol into mrelp, so, it can prevent the fake mcount symbol going into the last __mcount_loc table. Signed-off-by: Wu Zhangjin LKML-Reference: Signed-off-by: Steven Rostedt Signed-off-by: Ralf Baechle commit a2d49358ba9bc93204dc001d5568c5bdb299b77d Author: John Reiser Date: Wed Oct 27 18:59:07 2010 +0800 ftrace/MIPS: Add MIPS64 support for C version of recordmcount MIPS64 has 'weird' Elf64_Rel.r_info[1,2], which must be used instead of the generic Elf64_Rel.r_info, otherwise, the C version of recordmcount will not work for "segmentation fault". Usage of "union mips_r_info" and the functions MIPS64_r_sym() and MIPS64_r_info() written by Maciej W. Rozycki ---- [1] http://techpubs.sgi.com/library/manuals/4000/007-4658-001/pdf/007-4658-001.pdf [2] arch/mips/include/asm/module.h Tested-by: Wu Zhangjin Signed-off-by: John Reiser Signed-off-by: Maciej W. Rozycki LKML-Reference: LKML-Reference: <910dc2d5ae1ed042df4f96815fe4a433078d1c2a.1288176026.git.wuzhangjin@gmail.com> Signed-off-by: Steven Rostedt Signed-off-by: Ralf Baechle commit 949e51bea342da838be5295628e4a7ada8bae833 Author: David Daney Date: Thu Oct 14 11:32:33 2010 -0700 MIPS: Make TASK_SIZE reflect proper size for both 32 and 64 bit processes. The TASK_SIZE macro should reflect the size of a user process virtual address space. Previously for 64-bit kernels, this was not the case. The immediate cause of pain was in hugetlbfs/inode.c:hugetlb_get_unmapped_area() where 32-bit processes trying to mmap a huge page would be served a page with an address outside of the 32-bit address range. But there are other uses of TASK_SIZE in the kernel as well that would like an accurate value. The new definition is nice because it now makes TASK_SIZE and TASK_SIZE_OF() yield the same value for any given process. For 32-bit kernels there should be no change, although I did factor out some code in asm/processor.h that became identical for the 32-bit and 64-bit cases. __UA_LIMIT is now set to ~((1 << SEGBITS) - 1) for 64-bit kernels. This should eliminate the possibility of getting a AddressErrorException in the kernel for addresses that pass the access_ok() test. With the patch applied, I can still run o32, n32 and n64 processes, and have an o32 shell fork/exec both n32 and n64 processes. Signed-off-by: David Daney To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/1701/ commit 18d693b3598fdebdd5c65a613221793456a7ce45 Author: Kevin Cernekee Date: Sat Oct 16 14:22:38 2010 -0700 MIPS: Allow UserLocal on MIPS_R1 processors Some MIPS32R1 processors implement UserLocal (RDHWR $29) to accelerate programs that make extensive use of thread-local storage. Therefore, setting up the HWRENA register should not depend on cpu_has_mips_r2. Signed-off-by: Kevin Cernekee Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org commit ea31a6b203710c03d1fc025377a19572e620588a Author: Kevin Cernekee Date: Wed Oct 20 20:05:42 2010 -0700 MIPS: Honor L2 bypass bit On many of the newer MIPS32 cores, CP0 CONFIG2 bit 12 (L2B) indicates that the L2 cache is disabled and therefore Linux should not attempt to use it. [Ralf: Moved the code added by Kevin's original patch into a separate function that can easily be replaced for platforms that need more a different probe.] Signed-off-by: Kevin Cernekee Cc: linux-mips@linux-mips.org> Cc: Patchwork: https://patchwork.linux-mips.org/patch/1723/ Signed-off-by: Ralf Baechle commit af231172634b5c0923fa7484a043fadcc07e899e Author: Kevin Cernekee Date: Sat Oct 16 14:22:32 2010 -0700 MIPS: Add BMIPS CP0 register definitions Signed-off-by: Kevin Cernekee Cc: mbizon@freebox.fr Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Tested-by: Florian Fainelli Patchwork: https://patchwork.linux-mips.org/patch/1708/ Signed-off-by: Ralf Baechle Date: Sun Oct 17 10:56:53 2010 -0700 MIPS: Add BMIPS processor types to Kconfig [v2: add "VIPER" marketing name for BMIPS4350] Add processor feature definitions for BMIPS3300, BMIPS4350, BMIPS4380, and BMIPS5000. Signed-off-by: Kevin Cernekee Cc: mbizon@freebox.fr Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Tested-by: Florian Fainelli Patchwork: https://patchwork.linux-mips.org/patch/1716/ Signed-off-by: Ralf Baechle Date: Sat Oct 16 14:22:30 2010 -0700 MIPS: Decouple BMIPS CPU support from bcm47xx/bcm63xx SoC code BMIPS processor cores are used in 50+ different chipsets spread across 5+ product lines. In many cases the chipsets do not share the same peripheral register layouts, the same register blocks, the same interrupt controllers, the same memory maps, or much of anything else. But, across radically different SoCs that share nothing more than the same BMIPS CPU, a few things are still mostly constant: SMP operations Access to performance counters DMA cache coherency quirks Cache and memory bus configuration So, it makes sense to treat each BMIPS processor type as a generic "building block," rather than tying it to a specific SoC. This makes it easier to support a large number of BMIPS-based chipsets without unnecessary duplication of code, and provides the infrastructure needed to support BMIPS-proprietary features. Signed-off-by: Kevin Cernekee Cc: mbizon@freebox.fr Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Tested-by: Florian Fainelli Patchwork: https://patchwork.linux-mips.org/patch/1706/ Signed-off-by: Ralf Baechle Date: Tue Oct 12 19:37:24 2010 +0800 MIPS: Add support for hardware performance events (mipsxx) This patch adds the mipsxx Perf-events support based on the skeleton. Generic hardware events and cache events are now fully implemented for the 24K/34K/74K/1004K cores. To support other cores in mipsxx (such as R10000/SB1), the generic hardware event tables and cache event tables need to be filled out. To support other CPUs which have different PMU than mipsxx, such as RM9000 and LOONGSON2, the additional files perf_event_$cpu.c need to be created. Raw event is an important part of Perf-events. It helps the user collect performance data for events that are not listed as the generic hardware events and cache events but ARE supported by the CPU's PMU. This patch also adds this feature for mipsxx 24K/34K/74K/1004K. For how to use it, please refer to processor core software user's manual and the comments for mipsxx_pmu_map_raw_event() for more details. Please note that this is a "precise" implementation, which means the kernel will check whether the requested raw events are supported by this CPU and which hardware counters can be assigned for them. To test the functionality of Perf-event, you may want to compile the tool "perf" for your MIPS platform. You can refer to the following URL: http://www.linux-mips.org/archives/linux-mips/2010-10/msg00126.html You also need to customize the CFLAGS and LDFLAGS in tools/perf/Makefile for your libs, includes, etc. In case you encounter the boot failure in SMVP kernel on multi-threading CPUs, you may take a look at: http://www.linux-mips.org/git?p=linux-mti.git;a=commitdiff;h=5460815027d802697b879644c74f0e8365254020 Signed-off-by: Deng-Cheng Zhu To: linux-mips@linux-mips.org Cc: a.p.zijlstra@chello.nl Cc: paulus@samba.org Cc: mingo@elte.hu Cc: acme@redhat.com Cc: jamie.iles@picochip.com Cc: ddaney@caviumnetworks.com Cc: matt@console-pimps.org Patchwork: https://patchwork.linux-mips.org/patch/1689/ Signed-off-by: Ralf Baechle create mode 100644 arch/mips/kernel/perf_event_mipsxx.c commit 7e788d967c092343cca773542565c362991c87c0 Author: Deng-Cheng Zhu Date: Tue Oct 12 19:37:23 2010 +0800 MIPS: Perf-events: Add callchain support Adds callchain support for MIPS Perf-events. For more info on this feature, please refer to tools/perf/Documentation/perf-report.txt and tools/perf/design.txt. Currently userspace callchain data is not recorded, because we do not have a safe way to do this. Signed-off-by: Deng-Cheng Zhu Acked-by: David Daney To: linux-mips@linux-mips.org Cc: a.p.zijlstra@chello.nl Cc: paulus@samba.org Cc: mingo@elte.hu Cc: acme@redhat.com Cc: jamie.iles@picochip.com Cc: matt@console-pimps.org Patchwork: https://patchwork.linux-mips.org/patch/1690/ Signed-off-by: Ralf Baechle commit 14f7001284185bffeb796a181664906f7160f593 Author: Deng-Cheng Zhu Date: Tue Oct 12 19:37:22 2010 +0800 MIPS: add support for hardware performance events (skeleton) This patch provides the skeleton of the HW perf event support. To enable this feature, we can not choose the SMTC kernel; Oprofile should be disabled; kernel performance events be selected. Then we can enable it in Kernel type menu. Oprofile for MIPS platforms initializes irq at arch init time. Currently we do not change this logic to allow PMU reservation. If a platform has EIC, we can use the irq base and perf counter irq offset defines for the interrupt controller in specific init_hw_perf_events(). Based on this skeleton patch, the 3 different kinds of MIPS PMU, namely, mipsxx/loongson2/rm9000, can be supported by adding corresponding lower level C files at the bottom. The suggested names of these files are perf_event_mipsxx.c/perf_event_loongson2.c/perf_event_rm9000.c. So, for example, we can do this by adding "#include perf_event_mipsxx.c" at the bottom of perf_event.c. In addition, PMUs with 64bit counters are also considered in this patch. Signed-off-by: Deng-Cheng Zhu To: linux-mips@linux-mips.org Cc: a.p.zijlstra@chello.nl Cc: paulus@samba.org Cc: mingo@elte.hu Cc: acme@redhat.com Cc: jamie.iles@picochip.com Cc: ddaney@caviumnetworks.com Cc: matt@console-pimps.org Patchwork: https://patchwork.linux-mips.org/patch/1688/ Signed-off-by: Ralf Baechle commit 7f788d2d53085815d474559cd51ef1f38b0a9bb8 Author: Deng-Cheng Zhu Date: Tue Oct 12 19:37:21 2010 +0800 MIPS: add support for software performance events Software events are required as part of the measurable stuff by the Linux performance counter subsystem. Here is the list of events added by this patch: PERF_COUNT_SW_PAGE_FAULTS PERF_COUNT_SW_PAGE_FAULTS_MIN PERF_COUNT_SW_PAGE_FAULTS_MAJ PERF_COUNT_SW_ALIGNMENT_FAULTS PERF_COUNT_SW_EMULATION_FAULTS Signed-off-by: Deng-Cheng Zhu To: linux-mips@linux-mips.org Cc: a.p.zijlstra@chello.nl Cc: paulus@samba.org Cc: mingo@elte.hu Cc: acme@redhat.com Cc: jamie.iles@picochip.com Acked-by: David Daney Reviewed-by: Matt Fleming Patchwork: https://patchwork.linux-mips.org/patch/1686/ Signed-off-by: Ralf Baechle commit 6dbd972850c092e50e10bd14a3324e2abe88997a Author: Deng-Cheng Zhu Date: Tue Oct 12 19:37:20 2010 +0800 MIPS: define local_xchg from xchg_local to atomic_long_xchg Perf-events is now using local_t helper functions internally. There is a use of local_xchg(). On MIPS, this is defined to xchg_local() which is missing in asm/system.h. This patch re-defines local_xchg() in asm/local.h to atomic_long_xchg(). Then Perf-events can pass the build. Signed-off-by: Deng-Cheng Zhu To: linux-mips@linux-mips.org Cc: a.p.zijlstra@chello.nl Cc: paulus@samba.org Cc: mingo@elte.hu Cc: acme@redhat.com Cc: jamie.iles@picochip.com Cc: ddaney@caviumnetworks.com Cc: matt@console-pimps.org Patchwork: https://patchwork.linux-mips.org/patch/1687/ Signed-off-by: Ralf Baechle commit 238dd317f74250983aefbde6dc0a1f345a717993 Author: Florian Fainelli Date: Sun Aug 29 17:08:44 2010 +0200 MIPS: AR7: Add support for Titan (TNETV10xx) SoC variant Add support for Titan TNETV1050,1055,1056,1060 variants. This SoC is almost completely identical to AR7 except on a few points: - a second bank of gpios is available - vlynq0 on titan is vlynq1 on ar7 - different PHY addresses for cpmac0 This SoC can be found on commercial products like the Linksys WRTP54G Original patch by Xin with improvments by Florian. Signed-off-by: Xin Zhen Signed-off-by: Florian Fainelli Patchwork: http://patchwork.linux-mips.org/patch/1563/ Signed-off-by: Ralf Baechle --- commit 3bc6968adc7b1926f4582a33a33ad42d9b302ce0 Author: Florian Fainelli Date: Sun Aug 29 17:08:41 2010 +0200 MIPS: AR7: Initialize GPIO earlier In order to detect the Titan variant, we must initialize GPIOs earlier since detection relies on some GPIO values to be set. Signed-off-by: Florian Fainelli Patchwork: http://patchwork.linux-mips.org/patch/1562/ Signed-off-by: Ralf Baechle --- commit 340fbb8b12dd24c83b1e8ff094b8e2c218144217 Author: David Daney Date: Fri Oct 8 14:47:53 2010 -0700 MIPS: Add platform device and Kconfig for Octeon USB EHCI / OHCI Declare that OCTEON reference boards have both OHCI and EHCI. Add platform devices for the corresponding hardware. Signed-off-by: David Daney To: linux-usb@vger.kernel.org To: dbrownell@users.sourceforge.net Patchwork: http://patchwork.linux-mips.org/patch/1676/ Acked-by: Greg Kroah-Hartman Signed-off-by: Ralf Baechle commit 1643accdaad4625c2877f7ceefa39c1cb3e90117 Author: David Daney Date: Fri Oct 8 14:47:52 2010 -0700 USB: Add EHCI and OHCH glue for OCTEON II SOCs. The OCTEON II SOC has USB EHCI and OHCI controllers connected directly to the internal I/O bus. This patch adds the necessary 'glue' logic to allow ehci-hcd and ohci-hcd drivers to work on OCTEON II. The OCTEON normally runs big-endian, and the ehci/ohci internal registers have host endianness, so we need to select USB_EHCI_BIG_ENDIAN_MMIO. The ehci and ohci blocks share a common clocking and PHY infrastructure. Initialization of the host controller and PHY clocks is common between the two and is factored out into the octeon2-common.c file. Setting of USB_ARCH_HAS_OHCI and USB_ARCH_HAS_EHCI is done in arch/mips/Kconfig in a following patch. Signed-off-by: David Daney To: linux-usb@vger.kernel.org To: dbrownell@users.sourceforge.net Patchwork: http://patchwork.linux-mips.org/patch/1675/ Acked-by: Greg Kroah-Hartman Signed-off-by: Ralf Baechle commit 4169b86324fbefdf137a0bd69154d0e874f2bec2 Author: David Daney Date: Fri Oct 8 14:47:51 2010 -0700 MIPS: Octeon: Add register definitions for EHCI / OHCI USB glue logic. The EHCI and OHCI blocks connection to the I/O bus is controlled by these registers. Signed-off-by: David Daney To: linux-usb@vger.kernel.org To: dbrownell@users.sourceforge.net Patchwork: http://patchwork.linux-mips.org/patch/1674/ Acked-by: Greg Kroah-Hartman Signed-off-by: Ralf Baechle create mode 100644 arch/mips/include/asm/octeon/cvmx-uctlx-defs.h commit c9941158fd8a539a56b0e8a4740ec1f6beb23ea3 Author: David Daney Date: Thu Oct 7 16:03:53 2010 -0700 MIPS: Octeon: Apply CN63XXP1 errata workarounds. The CN63XXP1 needs a couple of workarounds to ensure memory is not written in unexpected ways. All PREF with hints in the range 0-4,6-24 are replaced with PREF 28. We pass a flag to the assembler to cover compiler generated code, and patch uasm for the dynamically generated code. The write buffer threshold is reduced to 4. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1672/ Signed-off-by: Ralf Baechle commit 468ffde46d429fbd291b0ef43a06afe9c837629f Author: David Daney Date: Thu Oct 7 16:03:52 2010 -0700 WATCHDOG: octeon-wdt: Use I/O clock rate for timing calculations. The creation of the I/O clock domain requires some adjustments. Since the watchdog counters are clocked by the I/O clock, use its rate for timing calculations. Signed-off-by: David Daney Cc: Wim Van Sebroeck Cc: linux-watchdog@vger.kernel.org Patchwork: http://patchwork.linux-mips.org/patch/1659/ Acked-by: Wim Van Sebroeck Signed-off-by: Ralf Baechle commit 1fa25ab2caf79b99094c3da6e09f20a35e8f01f8 Author: David Daney Date: Thu Oct 7 16:03:51 2010 -0700 ATA: pata_octeon_cf: Use I/O clock rate for timing calculations. The creation of the I/O clock domain requires some adjustments. Since the CF bus timing logic is clocked by the I/O clock, use its rate for delay calculations. Signed-off-by: David Daney Cc: Jeff Garzik Cc: linux-ide@vger.kernel.org Patchwork: http://patchwork.linux-mips.org/patch/1660/ Acked-by: Jeff Garzik Signed-off-by: Ralf Baechle commit 4b8bca7028fbed182c78b4f86769e365f2075d8e Author: David Daney Date: Thu Oct 7 16:03:50 2010 -0700 MIPS: Octeon: Use I/O clock rate for calculations. The I2C and UARTS are clocked by the I/O clock, use its rate for these devices. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1670/ Signed-off-by: Ralf Baechle commit e195aa3039c5c4eeb60c415a7a0f3006d5cdcd3b Author: David Daney Date: Thu Oct 7 16:03:49 2010 -0700 MIPS: Octeon: Add octeon_get_io_clock_rate() for cn63xx Starting with cn63xx Octeon I/O blocks are clocked at a different rate than the CPU. Add a new function octeon_get_io_clock_rate() that yields the I/O clock rate. Also rearrange octeon_get_clock_rate() to get the value from the saved sysinfo structure. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1671/ Signed-off-by: Ralf Baechle commit 3b29dadff98887ecdc5db458c2961777016b7b86 Author: David Daney Date: Thu Oct 7 16:03:48 2010 -0700 MIPS: Octeon: Remove bogus code from octeon_get_clock_rate() We can run with any simulator clock rate. Get rid of the code overriding it to 6MHz. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1669/ Signed-off-by: Ralf Baechle commit 54954a6d6ba1c2f44375d2992d50f1db56a8857d Author: David Daney Date: Thu Oct 7 16:03:47 2010 -0700 MIPS: Octeon: Scale Octeon2 clocks in octeon_init_cvmcount() The per-CPU clocks are synchronized from IPD_CLK_COUNT, on cn63XX it must be scaled by the clock frequency ratio. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1667/ Signed-off-by: Ralf Baechle commit f92a6b0875977132074a696e8d44c95e8472d8ac Author: David Daney Date: Thu Oct 7 16:03:46 2010 -0700 MIPS: Octeon: Enable Read Inhibit / eXecute Inhibit on Octeon II. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1666/ Signed-off-by: Ralf Baechle commit 0e56b3852b1c3be83d1f07a82a86084fabacf789 Author: David Daney Date: Thu Oct 7 16:03:45 2010 -0700 MIPS: Octeon: Probe for Octeon II CPUs. The OCTEON II ISA extends the original OCTEON ISA, so give it its own __elf_platform string so optimized libraries can be selected in userspace. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1665/ Signed-off-by: Ralf Baechle commit f8bf7e688c226ba83b35a1547146e296e14b33c7 Author: David Daney Date: Thu Oct 7 16:03:44 2010 -0700 MIPS: Octeon: Handle Octeon II caches. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1664/ Signed-off-by: Ralf Baechle commit 1584d7f2d58999c00066a4afc4ad95e07b2a04e8 Author: David Daney Date: Thu Oct 7 16:03:43 2010 -0700 MIPS: Add identifiers for Octeon II CPUs. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1662/ Signed-off-by: Ralf Baechle commit b8db85b5b5c22236d168eb03a67c2641bf7fa651 Author: David Daney Date: Thu Oct 7 16:03:42 2010 -0700 MIPS: Octeon: Update L2 Cache code for CN63XX The CN63XX has a different L2 cache architecture. Update the helper functions to reflect this. Some joining of split lines was also done to improve readability, as well as reformatting of comments. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1663/ Signed-off-by: Ralf Baechle commit a70b13a9f07ae0e21870ed3e9b6829f556579c5c Author: David Daney Date: Thu Oct 7 16:03:41 2010 -0700 MIPS: Octeon: Add cn63XX to Octeon chip detection macros. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1661/ Signed-off-by: Ralf Baechle commit aa32a955ae46d4117e880417c89a2efcc88579c2 Author: David Daney Date: Thu Oct 7 16:03:40 2010 -0700 MIPS: Octeon: Update register definitions for CN63XX chips The CN63XX is a new 6-CPU SOC based on the new OCTEON II CPU cores. Join some lines back together. This makes some of them exceed 80 columns, but they are uninteresting and this unclutters things. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1668/ Signed-off-by: Ralf Baechle commit b93b2abce497873be97d765b848e0a955d29f200 Author: David Daney Date: Fri Oct 1 13:27:34 2010 -0700 MIPS: Octeon: Rewrite DMA mapping functions. All Octeon chips can support more than 4GB of RAM. Also due to how Octeon PCI is setup, even some configurations with less than 4GB of RAM will have portions that are not accessible from 32-bit devices. Enable the swiotlb code to handle the cases where a device cannot directly do DMA. This is a complete rewrite of the Octeon DMA mapping code. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1639/ Signed-off-by: Ralf Baechle commit ee71b7d2f834d5e4b3a43001b2fa88743ed71a2c Author: David Daney Date: Fri Oct 1 13:27:33 2010 -0700 MIPS: Add a platform hook for swiotlb setup. This allows platforms that are using the swiotlb to initialize it. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1638/ Signed-off-by: Ralf Baechle commit 48e1fd5a81416a037f5a48120bf281102f2584e2 Author: David Daney Date: Fri Oct 1 13:27:32 2010 -0700 MIPS: Convert DMA to use dma-mapping-common.h Use asm-generic/dma-mapping-common.h to handle all DMA mapping operations and establish a default get_dma_ops() that forwards all operations to the existing code. Augment dev_archdata to carry a pointer to the struct dma_map_ops, allowing DMA operations to be overridden on a per device basis. Currently this is never filled in, so the default dma_map_ops are used. A follow-on patch sets this for Octeon PCI devices. Also initialize the dma_debug system as it is now used if it is configured. Includes fixes by Kevin Cernekee . Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1637/ Patchwork: http://patchwork.linux-mips.org/patch/1678/ Signed-off-by: Ralf Baechle commit 43e4f7ae4b4a96b5e84f6e1592d2e9353138e88c Author: David Daney Date: Fri Oct 1 13:27:31 2010 -0700 MIPS: ip32, ip27, jazz: Make static functions in dma-coherence.h inline. Any function defined in a header file should be inline. This helps us avoid 'unused' compiler warnings when we include the files in more places in subsequent patches. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1636/ Signed-off-by: Ralf Baechle commit f00e001e9c98c55bdd582f8bc6adcd99335e1a09 Author: David Daney Date: Fri Oct 1 13:27:30 2010 -0700 MIPS: Octeon: Select ZONE_DMA32 Give us a nice place to allocate coherent DMA memory for 32-bit devices. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1635/ Signed-off-by: Ralf Baechle commit 57575b5c81d9ced1133719bba82a65440371a010 Author: David Daney Date: Fri Oct 1 13:27:29 2010 -0700 MIPS: Octeon: Adjust top of DMA32 zone. On OCTEON, we reserve the last 256MB of 32-bit PCI address space, mapping the RAM in this region at a high DMA address. This makes memory in this region unavailable for 32-bit DMA. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1634/ Signed-off-by: Ralf Baechle commit cfd570990f863de90a86da73ef7b7d84e5190647 Author: David Daney Date: Fri Oct 1 13:27:28 2010 -0700 MIPS: Allow MAX_DMA32_PFN to be overridden. DMA mapping may reduce the usable physical address range usable for 32-bit DMA. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1633/ Signed-off-by: Ralf Baechle commit f12990720c5f9bc156ab3e992d3a1c2f43d8d51a Author: David Daney Date: Fri Oct 1 13:27:27 2010 -0700 MIPS: Octeon: Set dma_masks for octeon_mgmt device. This allows follow-on patches to dma mapping functions to work with the octeon mgmt device.. Signed-off-by: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1632/ Signed-off-by: Ralf Baechle commit 334c86c494b9a5754d4c0ffa3110b18c9771013b Author: From: jiang.adam@gmail.com Date: Fri Aug 27 18:32:06 2010 +0900 MIPS: IRQ: Add stackoverflow detection Add stackoverflow detection to mips arch Signed-off-by: Adam Jiang Cc: dmitri.vorobiev@movial.com Cc: wuzhangjin@gmail.com Cc: ddaney@caviumnetworks.com Cc: peterz@infradead.org Cc: fweisbec@gmail.com Cc: tj@kernel.org Cc: tglx@linutronix.de Cc: mingo@elte.hu Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/1559/ Patchwork: https://patchwork.linux-mips.org/patch/1651/ Signed-off-by: Ralf Baechle commit b78807158be93c4756f88b5fc0790863f2690fdc Author: Thomas Gleixner Date: Wed Sep 8 15:39:14 2010 +0200 MIPS: Kconfig cleanup arch/mips/Kconfig already sets GENERIC_HARDIRQS_NO__DO_IRQ unconditionally. Remove the redundant select from the Loongson Kconfig. Signed-off-by: Thomas Gleixner Signed-off-by: Ralf Baechle commit 48a26e60c6a5adb0d2f3ba56ea7c5bbb58d2118e Author: Ralf Baechle Date: Fri Oct 29 19:08:25 2010 +0100 MIPS: Remove wait argument of r4k_on_each_cpu All callers were passing in 1 anyway. Signed-off-by: Ralf Baechle commit c8c5f3fd9f0518cef58c9114513eee61855dec44 Author: Ralf Baechle Date: Fri Oct 29 19:08:25 2010 +0100 MIPS: More detailed description of r4k_on_each_cpu Signed-off-by: Ralf Baechle commit 7837314d141c661c70bc13c5050694413ecfe14a Author: Ralf Baechle Date: Fri Oct 29 19:08:24 2010 +0100 MIPS: Get rid of branches to .subsections. It was a nice optimization - on paper at least. In practice it results in branches that may exceed the maximum legal range for a branch. We can fight that problem with -ffunction-sections but -ffunction-sections again is incompatible with -pg used by the function tracer. By rewriting the loop around all simple LL/SC blocks to C we reduce the amount of inline assembler and at the same time allow GCC to often fill the branch delay slots with something sensible or whatever else clever optimization it may have up in its sleeve. With this optimization gone we also no longer need -ffunction-sections, so drop it. This optimization was originally introduced in 2.6.21, commit 5999eca25c1fd4b9b9aca7833b04d10fe4bc877d (linux-mips.org) rsp. f65e4fa8e0c6022ad58dc88d1b11b12589ed7f9f (kernel.org). Original fix for the issues which caused me to pull this optimization by Paul Gortmaker . Signed-off-by: Ralf Baechle commit b4020c1b198c0f0c0b0ff0cfdd824a26b93edd6f Merge: 435f49a d3686d5 Author: Linus Torvalds Date: Fri Oct 29 10:37:27 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: cifs: Cleanup and thus reduce smb session structure and fields used during authentication NTLM auth and sign - Use appropriate server challenge cifs: add kfree() on error path NTLM auth and sign - minor error corrections and cleanup NTLM auth and sign - Use kernel crypto apis to calculate hashes and smb signatures NTLM auth and sign - Define crypto hash functions and create and send keys needed for key exchange cifs: cifs_convert_address() returns zero on error NTLM auth and sign - Allocate session key/client response dynamically cifs: update comments - [s/GlobalSMBSesLock/cifs_file_list_lock/g] cifs: eliminate cifsInodeInfo->write_behind_rc (try #6) [CIFS] Fix checkpatch warnings and bump cifs version number cifs: wait for writeback to complete in cifs_flush cifs: convert cifsFileInfo->count to non-atomic counter commit 435f49a518c78eec8e2edbbadd912737246cbe20 Author: Linus Torvalds Date: Fri Oct 29 10:36:49 2010 -0700 readv/writev: do the same MAX_RW_COUNT truncation that read/write does We used to protect against overflow, but rather than return an error, do what read/write does, namely to limit the total size to MAX_RW_COUNT. This is not only more consistent, but it also means that any broken low-level read/write routine that still keeps counts in 'int' can't break. Signed-off-by: Linus Torvalds commit 6a915c2bf073743dd31229f1ec2eaa7a2b13c1c3 Author: Kyle McMartin Date: Fri Oct 29 12:48:01 2010 -0400 parisc-agp: fix missing slab.h include Commit 338e4fab added a missing kfree if the alloc_pci_dev failed but forgot to include for the definition of kfree. Signed-off-by: Kyle McMartin commit 2d1d7126bbde53989f1d7de174816c123bb7ecb0 Author: H. Peter Anvin Date: Wed Oct 27 21:09:15 2010 -0700 x86, ftrace: Use safe noops, drop trap test Always use a safe 5-byte noop sequence. Drop the trap test, since it is known to return false negatives on some virtualization platforms on 32 bits. The resulting code is both simpler and safer. Cc: Daniel Drake Cc: Jason Baron Cc: Mathieu Desnoyers Signed-off-by: H. Peter Anvin Signed-off-by: Steven Rostedt commit 592488a32b87daf27b92d2c1c5cdc440d1a1beae Author: Anil Ravindranath Date: Wed Oct 13 14:11:02 2010 -0700 [SCSI] pmcraid: add support for set timestamp command and other fixes The following are the fixes in this patch: 1. Added support of set timestamp command in the driver 2. Pass all status code to mgmt application. Earlier we were passing only failed ones. 3. Call class_destroy after unregister_chrdev and pci_unregister_driver Signed-off-by: Anil Ravindranath Signed-off-by: James Bottomley commit f0daed0242d514033b9ecca9187108d3c4e281a5 Author: David Miller Date: Sat Oct 23 11:06:24 2010 -0700 jump_label: Fix unaligned traps on sparc. The vmlinux.lds.h knobs to emit the __jump_table section in the main kernel image takes care to align the section, but this doesn't help for the __jump_table section that gets emitted into modules. Fix the resulting lack of section alignment by explicitly specifying it in the assembler. Signed-off-by: David S. Miller LKML-Reference: <20101023.110624.226758370.davem@davemloft.net> Signed-off-by: Steven Rostedt commit 95bcd683fb694a3e2d0538bf486430a0dfbb4111 Author: Steven Rostedt Date: Fri Oct 29 11:02:43 2010 -0400 jump label: Make arch_jump_label_text_poke_early() optional Some archs do not need to do anything special for jump labels on startup (like MIPS). This patch adds a weak function stub for arch_jump_label_text_poke_early(); Cc: Jason Baron Cc: David Miller Cc: David Daney Suggested-by: Thomas Gleixner LKML-Reference: <1286218615-24011-2-git-send-email-ddaney@caviumnetworks.com> LKML-Reference: <20101015201037.703989993@goodmis.org> Signed-off-by: Steven Rostedt commit de31c3ca8179d7c21def7ecb56e4fec0c8659d36 Author: Steven Rostedt Date: Mon Oct 18 10:38:58 2010 -0400 jump label: Fix error with preempt disable holding mutex Kprobes and jump label were having a race between mutexes that was fixed by reordering the jump label. But this reordering moved the jump label mutex into a preempt disable location. This patch does a little fiddling to move the grabbing of the jump label mutex from inside the preempt disable section and still keep the order correct between the mutex and the kprobes lock. Reported-by: Ingo Molnar Acked-by: Masami Hiramatsu Cc: Jason Baron Signed-off-by: Steven Rostedt commit f56f44001cb5b40089deac094dbb74e5c9f64d81 Merge: 162164f 9ec2708 Author: Linus Torvalds Date: Fri Oct 29 08:49:18 2010 -0700 Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6 * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: [S390] fix kprobes single stepping [S390] tape: fix dbf usage [S390] dasd: provide a Sense Path Group ID ioctl [S390] ftrace: select HAVE_C_RECORDMCOUNT [S390] vdso: get rid of redefinition warnings [S390] facility detection: remove unused variable [S390] hypfs: Fix error handling in hypfs_diag initialization [S390] topology: fix cpu masks for topology=off case [S390] topology: add SCHED_MC config option [S390] Kconfig: add machine type number to code generation options [S390] Add z196 machine type to setup_hwcaps commit 162164f7e92da970666e7492fd58644f3c1f8574 Merge: d8d048f 5f3b321 Author: Linus Torvalds Date: Fri Oct 29 08:48:58 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus * git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus: Squashfs: fix function prototype Squashfs: fix use of __le64 annotated variable commit d8d048f69a618c531575cb1f398a7186f0532ef2 Merge: 53113b0 f3ac8bf Author: Linus Torvalds Date: Fri Oct 29 08:47:36 2010 -0700 Merge branch 'for-linus' of git://neil.brown.name/md * 'for-linus' of git://neil.brown.name/md: md: tidy up device searches in read_balance. md/raid1: fix some typos in comments. md/raid1: discard unused variable. md: unplug writes to external bitmaps. md: use separate bio pool for each md device. md: change type of first arg to sync_page_io. md/raid1: perform mem allocation before disabling writes during resync. md: use bio_kmalloc rather than bio_alloc when failure is acceptable. md: Fix possible deadlock with multiple mempool allocations. md: fix and update workqueue usage md: use sector_t in bitmap_get_counter md: remove md_mutex locking. md: Fix regression with raid1 arrays without persistent metadata. commit 8747f954817212b4623f9067d4909cbde04b4d89 Author: Tyler Hicks Date: Fri Oct 15 16:43:41 2010 -0500 eCryptfs: Print mount_auth_tok_only param in ecryptfs_show_options When printing mount options, print the new ecryptfs_mount_auth_tok_only mount option. Signed-off-by: Tyler Hicks commit f16feb5119a87f5e683be7e8916c060abfb0e8d6 Author: Roberto Sassu Date: Wed Oct 6 18:31:32 2010 +0200 ecryptfs: added ecryptfs_mount_auth_tok_only mount parameter This patch adds a new mount parameter 'ecryptfs_mount_auth_tok_only' to force ecryptfs to use only authentication tokens which signature has been specified at mount time with parameters 'ecryptfs_sig' and 'ecryptfs_fnek_sig'. In this way, after disabling the passthrough and the encrypted view modes, it's possible to make available to users only files encrypted with the specified authentication token. Signed-off-by: Roberto Sassu Cc: Dustin Kirkland Cc: James Morris [Tyler: Clean up coding style errors found by checkpatch] Signed-off-by: Tyler Hicks commit 39fac853a758306285404368fbe392408057b136 Author: Roberto Sassu Date: Wed Oct 6 18:31:15 2010 +0200 ecryptfs: checking return code of ecryptfs_find_auth_tok_for_sig() This patch replaces the check of the 'matching_auth_tok' pointer with the exit status of ecryptfs_find_auth_tok_for_sig(). This avoids to use authentication tokens obtained through the function ecryptfs_keyring_auth_tok_for_sig which are not valid. Signed-off-by: Roberto Sassu Cc: Dustin Kirkland Cc: James Morris Signed-off-by: Tyler Hicks commit aee683b9e77e17237b0e146025c3d363c9203634 Author: Roberto Sassu Date: Wed Oct 6 18:31:06 2010 +0200 ecryptfs: release keys loaded in ecryptfs_keyring_auth_tok_for_sig() This patch allows keys requested in the function ecryptfs_keyring_auth_tok_for_sig()to be released when they are no longer required. In particular keys are directly released in the same function if the obtained authentication token is not valid. Further, a new function parameter 'auth_tok_key' has been added to ecryptfs_find_auth_tok_for_sig() in order to provide callers the key pointer to be passed to key_put(). Signed-off-by: Roberto Sassu Cc: Dustin Kirkland Cc: James Morris [Tyler: Initialize auth_tok_key to NULL in ecryptfs_parse_packet_set] Signed-off-by: Tyler Hicks commit 2e21b3f124eceb6ab5a07c8a061adce14ac94e14 Author: Tyler Hicks Date: Thu Sep 23 02:35:04 2010 -0500 eCryptfs: Clear LOOKUP_OPEN flag when creating lower file eCryptfs was passing the LOOKUP_OPEN flag through to the lower file system, even though ecryptfs_create() doesn't support the flag. A valid filp for the lower filesystem could be returned in the nameidata if the lower file system's create() function supported LOOKUP_OPEN, possibly resulting in unencrypted writes to the lower file. However, this is only a potential problem in filesystems (FUSE, NFS, CIFS, CEPH, 9p) that eCryptfs isn't known to support today. https://bugs.launchpad.net/ecryptfs/+bug/641703 Reported-by: Kevin Buhr Cc: stable Signed-off-by: Tyler Hicks commit 48b512e6857139393cdfce26348c362b87537018 Author: Roberto Sassu Date: Tue Oct 5 18:53:45 2010 +0200 ecryptfs: call vfs_setxattr() in ecryptfs_setxattr() Ecryptfs is a stackable filesystem which relies on lower filesystems the ability of setting/getting extended attributes. If there is a security module enabled on the system it updates the 'security' field of inodes according to the owned extended attribute set with the function vfs_setxattr(). When this function is performed on a ecryptfs filesystem the 'security' field is not updated for the lower filesystem since the call security_inode_post_setxattr() is missing for the lower inode. Further, the call security_inode_setxattr() is missing for the lower inode, leading to policy violations in the security module because specific checks for this hook are not performed (i. e. filesystem 'associate' permission on SELinux is not checked for the lower filesystem). This patch replaces the call of the setxattr() method of the lower inode in the function ecryptfs_setxattr() with vfs_setxattr(). Signed-off-by: Roberto Sassu Cc: stable Cc: Dustin Kirkland Acked-by: James Morris Signed-off-by: Tyler Hicks commit 18e503d695ff8ff9a43768555aa74575bf6b77f3 Author: Chris Mason Date: Thu Oct 28 15:30:42 2010 -0400 Btrfs: fix raid code for removing missing drives When btrfs is mounted in degraded mode, it has some internal structures to track the missing devices. This missing device is setup as readonly, but the mapping code can get upset when we try to write to it. This changes the mapping code to return -EIO instead of oops when we try to write to the readonly device. Signed-off-by: Chris Mason commit 19fe0a8b787d7c7f9318975b5a8c6e7e5e54e925 Author: Miao Xie Date: Tue Oct 26 20:57:29 2010 -0400 Btrfs: Switch the extent buffer rbtree into a radix tree This patch reduces the CPU time spent in the extent buffer search by using the radix tree instead of the rbtree and using the rcu lock instead of the spin lock. I did a quick test by the benchmark tool[1] and found the patch improve the file creation/deletion performance problem that I have reported[2]. Before applying this patch: Create files: Total files: 50000 Total time: 0.971531 Average time: 0.000019 Delete files: Total files: 50000 Total time: 1.366761 Average time: 0.000027 After applying this patch: Create files: Total files: 50000 Total time: 0.927455 Average time: 0.000019 Delete files: Total files: 50000 Total time: 1.292280 Average time: 0.000026 [1] http://marc.info/?l=linux-btrfs&m=128212635122920&q=p3 [2] http://marc.info/?l=linux-btrfs&m=128212635122920&w=2 Signed-off-by: Miao Xie Signed-off-by: Chris Mason commit 897ca6e9b4fef86d5dfb6b31fd9f592ce6a47a42 Author: Miao Xie Date: Tue Oct 26 20:57:29 2010 -0400 Btrfs: restructure try_release_extent_buffer() restructure try_release_extent_buffer() and write a function to release the extent buffer. It will be used later. Signed-off-by: Miao Xie Signed-off-by: Chris Mason commit bf9022e06af553553bc8f4e21ce36147ca6eae68 Author: Chris Mason Date: Tue Oct 26 13:40:45 2010 -0400 Btrfs: use the flusher threads for delalloc throttling We have a fairly complex set of loops around walking our list of delalloc inodes when we find metadata delalloc space running low. It doesn't work very well, can use large amounts of CPU and doesn't do very efficient writeback. This switches us to kick the bdi flusher threads instead. All dirty data in btrfs is accounted as delalloc data, so this is very similar in terms of what it writes, but we're able to just kick off the IO and wait for progress. Signed-off-by: Chris Mason commit e5bc2458293b2af6c0b94435965c68cc70974b56 Author: Chris Mason Date: Tue Oct 26 13:37:56 2010 -0400 Btrfs: tune the chunk allocation to 5% of the FS as metadata An earlier commit tried to keep us from allocating too many empty metadata chunks. It was somewhat too restrictive and could lead to ENOSPC errors on empty filesystems. This increases the limits to about 5% of the FS size, allowing more metadata chunks to be preallocated. Signed-off-by: Chris Mason commit 3259f8bed2f0f57c2fdcdac1b510c3fa319ef97e Author: Chris Mason Date: Fri Oct 29 11:16:17 2010 -0400 Add new functions for triggering inode writeback When btrfs is running low on metadata space, it needs to force delayed allocation pages to disk. It currently does this with a suboptimal walk of a private list of inodes with delayed allocation, and it would be much better if we used the generic flusher threads. writeback_inodes_sb_if_idle would be ideal, but it waits for the flusher thread to start IO on all the dirty pages in the FS before it returns. This adds variants of writeback_inodes_sb* that allow the caller to control how many pages get sent down. Signed-off-by: Chris Mason commit 53113b06e48c6c38f7612c1f8043b8a0d2adf72b Merge: 37542b6a a4cdbd8 Author: Linus Torvalds Date: Fri Oct 29 08:06:25 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (29 commits) braino in internal.h convert simple cases of nfs-related ->get_sb() to ->mount() convert btrfs convert ceph convert gfs2 convert afs convert ecryptfs convert sysfs convert cgroup and cpuset switch get_sb_ns() users switch procfs to ->mount() setting ->proc_mnt doesn't belong in proc_get_sb() convert cifs convert nilfs switch logfs to ->mount() logfs: fix a leak in get_sb logfs get_sb, part 3 logfs get_sb, part 2 logfs get_sb massage, part 1 convert v9fs ... commit 37542b6a7e73e81f8c066a48e6911e476ee3b22f Merge: c07724e d4a6f3c Author: Linus Torvalds Date: Fri Oct 29 08:05:33 2010 -0700 Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: sched_stat: Update sched_info_queue/dequeue() code comments sched, cgroup: Fixup broken cgroup movement commit c07724e5b868c603f2a65f3855c77b23454db3ed Merge: 302f5bc e69f58c Author: Linus Torvalds Date: Fri Oct 29 08:03:48 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6: kbuild: add ARCH=sparc32 target sparc32: fix build failure on CONFIG_SPARC_LEON sparc: Fixed random SPARC/LEON SMP CPU Stuck problem. sparc32: remove CONFIG_HAVE_PERF_EVENTS option sparc: don't #include asm/system.h in asm/jump_label.h sparc32: Fix unaligned stack handling on trap return. sparc: keep calling do_signal() as long as pending signals remain commit 302f5bc54448bd2b37d5a8be9b6abc29397827ef Merge: 18cb657 dd8717d Author: Linus Torvalds Date: Fri Oct 29 08:03:30 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-2.6: ide: clean up timed out request handling hpt366: fix clock turnaround hpt366: add debounce delay to cable_detect() method commit 9ec2708053b647969bee862902872d44a5f9b439 Author: Martin Schwidefsky Date: Fri Oct 29 16:50:45 2010 +0200 [S390] fix kprobes single stepping Fix kprobes after git commit 1e54622e0403891b10f2105663e0f9dd595a1f17 broke it. The kprobe_handler is now called with interrupts in the state at the time of the breakpoint. The single step of the replaced instruction is done with interrupts off which makes it necessary to enable and disable the interupts in the kprobes code. Signed-off-by: Martin Schwidefsky commit f2166bb117952404689f0dc42624ee0b54a66e5e Author: Sebastian Ott Date: Fri Oct 29 16:50:44 2010 +0200 [S390] tape: fix dbf usage Get rid of the format string "%s" usage with volatile strings to prevent use after free errors in the s390dbf. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit 196339f1733726ffd69ab81ec1c66678585f5846 Author: Stefan Weinhuber Date: Fri Oct 29 16:50:43 2010 +0200 [S390] dasd: provide a Sense Path Group ID ioctl The BIODASDSNID ioctl executes a 'Sense Path Group ID' command on a DASD ECKD device. The returned path group data allows user space programs to determine path state and path group ID of the channel paths to the device. Signed-off-by: Stefan Weinhuber Signed-off-by: Martin Schwidefsky commit b25c477b3456ce87a5938d2ea511bf13187d0f0d Author: Heiko Carstens Date: Fri Oct 29 16:50:42 2010 +0200 [S390] ftrace: select HAVE_C_RECORDMCOUNT Select HAVE_C_RECORDMCOUNT for the fast C version of recordmcount. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit b3423982bd2ecb7160856ffd6618dbb929c786cc Author: Heiko Carstens Date: Fri Oct 29 16:50:41 2010 +0200 [S390] vdso: get rid of redefinition warnings The CLOCK_* defines in asm-offsets.c are only used for the vdso code however in the meantime they cause other trouble. Just rename them to get permanently rid of this: In file included from /home2/heicarst/linux-2.6/arch/s390/include/asm/asm-offsets.h:1:0, from arch/s390/mm/fault.c:33: include/generated/asm-offsets.h:53:0: warning: "CLOCK_REALTIME" redefined include/linux/time.h:286:0: note: this is the location of the previous definition include/generated/asm-offsets.h:54:0: warning: "CLOCK_MONOTONIC" redefined include/linux/time.h:287:0: note: this is the location of the previous definition Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit e03172476ce773dd4491868b232a9239a42dd49e Author: Heiko Carstens Date: Fri Oct 29 16:50:40 2010 +0200 [S390] facility detection: remove unused variable arch/s390/kernel/early.c: In function 'setup_hpage': arch/s390/kernel/early.c:285:15: warning: unused variable 'facilities' Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 3c8ebca0453c71a2a8be79e6dd40e7be2d6167cb Author: Michael Holzheu Date: Fri Oct 29 16:50:39 2010 +0200 [S390] hypfs: Fix error handling in hypfs_diag initialization Fix the following two error handling bugs in hypfs_diag_init(): * No need for calling diag204_free_buffer() * Initialize name table only in case of LPAR and prevent error message on non-LPAR systems. Signed-off-by: Michael Holzheu Signed-off-by: Martin Schwidefsky commit 0b52783d4feb14d6ff990a63512a66d6131d41f9 Author: Heiko Carstens Date: Fri Oct 29 16:50:38 2010 +0200 [S390] topology: fix cpu masks for topology=off case Fix cpu masks for 'topology=off' case. Folding of the scheduling domains happen in such a way that everything belongs to the MC domain instead of the CPU doimain. This should fix a performance regression introduced with eafd2b6d "[S390] topology: use default MC domain initializer" and also makes sure we have the same behavious as if CONFIG_SCHED_MC was not selected at all. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 8d11e0218321fccc6912c4dcfbaf2095bad5d33a Author: Heiko Carstens Date: Fri Oct 29 16:50:37 2010 +0200 [S390] topology: add SCHED_MC config option This allows us to easily check for performance differences seen with !CONFIG_SCHED_MC and topology=off. Actually there shouldn't be any (besides a small overhead because of additional code). Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit db81a23d8003d1ca4452c6d728502780f0234368 Author: Heiko Carstens Date: Fri Oct 29 16:50:36 2010 +0200 [S390] Kconfig: add machine type number to code generation options Add machine type number to code generation options. Also clean up and shorten quite a lot of help texts with respect to machine type and architecture terminology. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit c84b9051d6b97d8c6533a194aedcd484c003d278 Author: Heiko Carstens Date: Fri Oct 29 16:50:35 2010 +0200 [S390] Add z196 machine type to setup_hwcaps Add machine type for zEnterprise 196 to elf platform detection. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit cb44921a09221f0a90217b44044448f63190f3e5 Author: Chris Mason Date: Sun Oct 24 11:01:27 2010 -0400 Btrfs: don't loop forever on bad btree blocks When btrfs discovers the generation number in a btree block is incorrect, it can loop forever without forcing the RAID code to try a valid mirror, and without returning EIO. This changes things to properly kick out the EIO. Signed-off-by: Chris Mason commit 78ca7c37efaa541006269aa3d3e560ea7926e245 Author: Kevin Winchester Date: Fri Oct 29 15:29:55 2010 +0200 PM / Runtime: Fix typo in status comparison causing warning GCC version 4.5.1 gives the following warning: drivers/base/power/runtime.c: In function ‘rpm_check_suspend_allowed’: drivers/base/power/runtime.c:146:25: warning: comparison between ‘enum dpm_state’ and ‘enum rpm_status’ which seems to be a typo in that dev->power.runtime_status should be compared instead of dev->power.status. Signed-off-by: Kevin Winchester Signed-off-by: Rafael J. Wysocki commit 6b5b817f103450444f3f658a498f435d92a197e5 Merge: 8216ef8 e9bb7f1 Author: Chris Mason Date: Fri Oct 29 09:27:49 2010 -0400 Merge branch 'bug-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-work Conflicts: fs/btrfs/extent-tree.c Signed-off-by: Chris Mason commit 8216ef866df1119fd5a72372b8b29bce49c18590 Author: Josef Bacik Date: Thu Oct 28 16:55:47 2010 -0400 Btrfs: let the user know space caching is enabled If you mount -o space_cache, the option will be persistent across mounts, but to make sure the user knows that they did this, emit a message telling them if they didn't mount with -o space_cache but the feature is still used. Signed-off-by: Josef Bacik commit 88c2ba3b069f1e0f4694124d02985fa7620a19f1 Author: Josef Bacik Date: Tue Sep 21 14:21:34 2010 -0400 Btrfs: Add a clear_cache mount option If something goes wrong with the free space cache we need a way to make sure it's not loaded on mount and that it's cleared for everybody. When you pass the clear_cache option it will make it so all block groups are setup to be cleared, which keeps them from being loaded and then they will be truncated when the transaction is committed. Thanks, Signed-off-by: Josef Bacik commit 67377734fd24c32cbdfeb697c2e2bd7fed519e75 Author: Josef Bacik Date: Thu Sep 16 16:19:09 2010 -0400 Btrfs: add support for mixed data+metadata block groups There are just a few things that need to be fixed in the kernel to support mixed data+metadata block groups. Mostly we just need to make sure that if we are using mixed block groups that we continue to allocate mixed block groups as we need them. Also we need to make sure __find_space_info will find our space info if we search for DATA or METADATA only. Tested this with xfstests and it works nicely. Thanks, Signed-off-by: Josef Bacik commit dde5abee12327d59f968bbfc8151e1b04082a2c4 Author: Josef Bacik Date: Thu Sep 16 16:17:03 2010 -0400 Btrfs: check cache->caching_ctl before returning if caching has started With the free space disk caching we can mark the block group as started with the caching, but we don't have a caching ctl. This can race with anybody else who tries to get the caching ctl before we cache (this is very hard to do btw). So instead check to see if cache->caching_ctl is set, and if not return NULL. Thanks, Signed-off-by: Josef Bacik commit 9d66e233c7042da27ec699453770f41e567a0442 Author: Josef Bacik Date: Wed Aug 25 16:54:15 2010 -0400 Btrfs: load free space cache if it exists This patch actually loads the free space cache if it exists. The only thing that really changes here is that we need to cache the block group if we're going to remove an extent from it. Previously we did not do this since the caching kthread would pick it up. With the on disk cache we don't have this luxury so we need to make sure we read the on disk cache in first, and then remove the extent, that way when the extent is unpinned the free space is added to the block group. This has been tested with all sorts of things. Signed-off-by: Josef Bacik commit 0cb59c9953171e9adf6da8142a5c85ceb77bb60d Author: Josef Bacik Date: Fri Jul 2 12:14:14 2010 -0400 Btrfs: write out free space cache This is a simple bit, just dump the free space cache out to our preallocated inode when we're writing out dirty block groups. There are a bunch of changes in inode.c in order to account for special cases. Mostly when we're doing the writeout we're holding trans_mutex, so we need to use the nolock transacation functions. Also we can't do asynchronous completions since the async thread could be blocked on already completed IO waiting for the transaction lock. This has been tested with xfstests and btrfs filesystem balance, as well as my ENOSPC tests. Thanks, Signed-off-by: Josef Bacik commit 3d7851b3cdd43a734e5cc4c643fd886ab28ad4d5 Author: Tejun Heo Date: Fri Oct 15 09:51:08 2010 -0400 oprofile: Remove deprecated use of flush_scheduled_work() flush_scheduled_work() is deprecated and scheduled to be removed. sync_stop() currently cancels cpu_buffer works inside buffer_mutex and flushes the system workqueue outside. Instead, split end_cpu_work() into two parts - stopping further work enqueues and flushing works - and do the former inside buffer_mutex and latter outside. For stable kernels v2.6.35.y and v2.6.36.y. Signed-off-by: Tejun Heo Cc: stable@kernel.org Signed-off-by: Robert Richter commit 4ac3dbec800d93485a5c84e37af676278eea657c Author: Santosh Shilimkar Date: Wed Oct 27 11:17:15 2010 -0400 oprofile: Fix the hang while taking the cpu offline The kernel build with CONFIG_OPROFILE and CPU_HOTPLUG enabled. The oprofile is initialised using system timer in absence of hardware counters supports. Oprofile isn't started from userland. In this setup while doing a CPU offline the kernel hangs in infinite for loop inside lock_hrtimer_base() function This happens because as part of oprofile_cpu_notify(, it tries to stop an hrtimer which was never started. These per-cpu hrtimers are started when the oprfile is started. echo 1 > /dev/oprofile/enable This problem also existwhen the cpu is booted with maxcpus parameter set. When bringing the remaining cpus online the timers are started even if oprofile is not yet enabled. This patch fix this issue by adding a state variable so that these hrtimer start/stop is only attempted when oprofile is started For stable kernels v2.6.35.y and v2.6.36.y. Reported-by: Jan Sebastien Tested-by: sricharan Signed-off-by: Santosh Shilimkar Cc: stable@kernel.org Signed-off-by: Robert Richter commit a4cdbd8bfb87ceff455aae85727077889b75001b Author: Al Viro Date: Fri Oct 29 05:49:13 2010 -0400 braino in internal.h wrong return type... Signed-off-by: Al Viro commit 31f43471e97eff7801251e2c3c8fc03219f85d87 Author: Al Viro Date: Fri Oct 29 03:38:12 2010 -0400 convert simple cases of nfs-related ->get_sb() to ->mount() Signed-off-by: Al Viro commit 061dbc6b9010bc1a30ef9a1da5469aefa83abd7f Author: Al Viro Date: Mon Jul 26 16:21:33 2010 +0400 convert btrfs Signed-off-by: Al Viro commit a7f9fb205a88ab9af675a68fc554cf51dafc8b60 Author: Al Viro Date: Mon Jul 26 16:17:55 2010 +0400 convert ceph Signed-off-by: Al Viro commit 8bcbbf0009dd467afd6bed1fedfcb1d2463f55a7 Author: Al Viro Date: Mon Jul 26 16:03:58 2010 +0400 convert gfs2 Signed-off-by: Al Viro commit f7442b3be65bfcabbb5d6e896e65d69e8b261583 Author: Al Viro Date: Mon Jul 26 14:16:21 2010 +0400 convert afs Signed-off-by: Al Viro commit 4d143beb0429e8c9c5f1dc66c7ff8ee70dde45a4 Author: Al Viro Date: Mon Jul 26 13:33:36 2010 +0400 convert ecryptfs Signed-off-by: Al Viro commit d0e46f88b2f73828faf00d559c7e5b3ce9e39a4b Author: Al Viro Date: Mon Jul 26 13:30:36 2010 +0400 convert sysfs Signed-off-by: Al Viro commit f7e835710ab5f6e43933c983f38f2d2e262b718c Author: Al Viro Date: Mon Jul 26 13:23:11 2010 +0400 convert cgroup and cpuset Signed-off-by: Al Viro commit ceefda6931806972ecf550bd8231dce4a4178953 Author: Al Viro Date: Mon Jul 26 13:16:50 2010 +0400 switch get_sb_ns() users Signed-off-by: Al Viro commit aed1d84f98738bcc1c605e1ff442de9890441315 Author: Al Viro Date: Mon Jul 26 13:12:54 2010 +0400 switch procfs to ->mount() Signed-off-by: Al Viro commit 579441a39bbbbc408acd5b228d63e76cff708fe6 Author: Al Viro Date: Mon Jul 26 13:09:36 2010 +0400 setting ->proc_mnt doesn't belong in proc_get_sb() take that to kern_mount_data()-using callers Signed-off-by: Al Viro commit d753ed975953a4e97a356bcd59ff146919f29235 Author: Al Viro Date: Mon Jul 26 12:52:33 2010 +0400 convert cifs Signed-off-by: Al Viro commit e4c59d61e80529aebca4a3690b4378f2c6fc4e82 Author: Al Viro Date: Mon Jul 26 12:19:34 2010 +0400 convert nilfs Signed-off-by: Al Viro commit a1da9e8ab687e6496482b7b2aa17d0da31e55b20 Author: Al Viro Date: Mon Jul 26 12:14:03 2010 +0400 switch logfs to ->mount() Signed-off-by: Al Viro commit e5a0726a953daf224ae42bcf5edaa64f71b4e8a7 Author: Al Viro Date: Mon Jul 26 12:06:00 2010 +0400 logfs: fix a leak in get_sb a) switch ->put_device() to logfs_super * b) actually call it on early failures in logfs_get_sb_device() Signed-off-by: Al Viro commit 7d945a3aa7608f68dba04083d3421e0b43052660 Author: Al Viro Date: Mon Jul 26 11:53:30 2010 +0400 logfs get_sb, part 3 take logfs_get_sb_device() calls to logfs_get_sb() itself Signed-off-by: Al Viro commit 0d85c799623cb6022adb1317ed2987ab9c097c2e Author: Al Viro Date: Mon Jul 26 11:33:39 2010 +0400 logfs get_sb, part 2 take setting s_bdev/s_mtd/s_devops to callers of logfs_get_sb_device(), don't bother passing them separately Signed-off-by: Al Viro commit 71a1c0125f132b2a4656689ca585c5d8931e539c Author: Al Viro Date: Mon Jul 26 11:25:05 2010 +0400 logfs get_sb massage, part 1 move allocation of logfs_super to logfs_get_sb, pass it to logfs_get_sb_...(). Signed-off-by: Al Viro commit d2d1ea93069bd7706206b9c124e438ab2795612c Author: Al Viro Date: Sun Jul 25 23:56:43 2010 +0400 convert v9fs Signed-off-by: Al Viro commit 157d81e7ffe04f2c97c3580e185787c2d29463bb Author: Al Viro Date: Sun Jul 25 23:52:42 2010 +0400 convert ubifs Signed-off-by: Al Viro commit 51139adac92f7160ad3ca1cab2de1b4b8d19dc96 Author: Al Viro Date: Sun Jul 25 23:47:46 2010 +0400 convert get_sb_pseudo() users Signed-off-by: Al Viro commit 3c26ff6e499ee7e6f9f2bc7da5f2f30d80862ecf Author: Al Viro Date: Sun Jul 25 11:46:36 2010 +0400 convert get_sb_nodev() users Signed-off-by: Al Viro commit fc14f2fef682df677d64a145256dbd263df2aa7b Author: Al Viro Date: Sun Jul 25 01:48:30 2010 +0400 convert get_sb_single() users Signed-off-by: Al Viro commit 848b83a59b772b8f102bc5e3f1187c2fa5676959 Author: Al Viro Date: Sun Jul 25 00:56:46 2010 +0400 convert get_sb_mtd() users to ->mount() Signed-off-by: Al Viro commit 152a08366671080f27b32e0c411ad620c5f88b57 Author: Al Viro Date: Sun Jul 25 00:46:55 2010 +0400 new helper: mount_bdev() ... and switch of the obvious get_sb_bdev() users to ->mount() Signed-off-by: Al Viro commit c96e41e92b4aaf11e1f9775ecf0d1c8cbff829ed Author: Al Viro Date: Sun Jul 25 00:17:56 2010 +0400 beginning of transtion: ->mount() eventual replacement for ->get_sb() - does *not* get vfsmount, return ERR_PTR(error) or root of subtree to be mounted. Signed-off-by: Al Viro commit d893f1bc2a9f0f7dcb4b433452c59f9bedac0d7d Author: Al Viro Date: Fri Oct 29 03:30:42 2010 -0400 fix open/umount race nameidata_to_filp() drops nd->path or transfers it to opened file. In the former case it's a Bad Idea(tm) to do mnt_drop_write() on nd->path.mnt, since we might race with umount and vfsmount in question might be gone already. Fix: don't drop it, then... IOW, have nameidata_to_filp() grab nd->path in case it transfers it to file and do path_drop() in callers. After they are through with accessing nd->path... Reported-by: Miklos Szeredi Signed-off-by: Al Viro commit a4118ee1d80b527c385cadd14db79559efb8a493 Author: Al Viro Date: Wed Oct 27 11:00:08 2010 -0400 a couple of open-coded ihold() introduced by nfs merge Signed-off-by: Al Viro commit 5c1eb08936693cd78c71164c8bea0b086ae72c67 Author: Eric Dumazet Date: Thu Oct 28 16:40:54 2010 +0200 x86-32: Restore irq stacks NUMA-aware allocations Commit 22d4cd4c4d ("Allocate irq stacks seperate from percpu area") removed NUMA affinity of IRQ stacks as side-effect of the fix. Using alloc_pages_node() instead of __get_free_pages() is safe, even if the target node has no available LOWMEM pages : alloc_pages_node() fallbacks to another node. Signed-off-by: Eric Dumazet Acked-by: Brian Gerst Cc: tj@kernel.org Cc: torvalds@linux-foundation.org Cc: Peter Zijlstra LKML-Reference: <1288276854.2649.607.camel@edumazet-laptop> Signed-off-by: Ingo Molnar commit f3ac8bf7ce1c5abd763ea762e95d1cdcf7799372 Author: NeilBrown Date: Mon Sep 6 14:10:08 2010 +1000 md: tidy up device searches in read_balance. The code for searching through the device list to read-balance in raid1 is rather clumsy and hard to follow. Try to simplify it a bit. No important functionality change here. Signed-off-by: NeilBrown commit 046abeede717909feec38587d667cde1fc6c459c Author: NeilBrown Date: Tue Oct 26 15:46:20 2010 +1100 md/raid1: fix some typos in comments. Signed-off-by: NeilBrown commit 9b19553e0bd342957846037c996861d280ed694d Author: NeilBrown Date: Wed Oct 27 15:39:14 2010 +1100 md/raid1: discard unused variable. This structure field (flushing_bio_list) is never used, so remove it. Signed-off-by: NeilBrown commit be2a2656eef95c32ca73e7a6a8c85671aa92e3f1 Author: NeilBrown Date: Wed Oct 27 15:37:41 2010 +1100 md: unplug writes to external bitmaps. When writing to an 'external' bitmap we don't currently unplug the device before waiting, so we can get a 3msec delay each time; So use REQ_UNPLUG to force and unplug. Signed-off-by: NeilBrown commit 0520bd8438f18f2b1b2af5fd1c4ecc070a1bf837 Author: Russ Anderson Date: Thu Oct 28 17:41:32 2010 -0500 x86, uv: More Westmere support on SGI UV Enable Westmere support for all APIC modes on SGI UV. Signed-off-by: Russ Anderson LKML-Reference: <20101028224132.GB15804@sgi.com> Signed-off-by: H. Peter Anvin commit bac64d0f8cfd45f1027b6e946785a56e8d694fba Author: Dan Carpenter Date: Thu Oct 28 15:09:28 2010 -0700 Input: bu21013_ts - fix null dereference in error handling bu21013_data could be NULL so better not reference it. Signed-off-by: Dan Carpenter Signed-off-by: Dmitry Torokhov commit b584efc9ea7575d3235cfd745e8a28201d2c37f6 Author: Michael Hennerich Date: Thu Oct 28 14:59:05 2010 -0700 Input: ad7879 - prevent invalid finger data reports Considering following scenario - the touch is present on the screen at the beginning of the last conversion sequence, but by the time the last sequence is finished, the finger is lift off. The AD7879 data available interrupt signals (DAV) completion, however some X,Y values are not valid because the screen inputs were floating during the acquisition. The AD7877 acts differently here, since it only asserts DAV if the touch is still present when the conversion sequence finished. Based on the fact that this can only happen in the last sample of the repeated conversion sequence, we simply skip the last (short glitches are filtered by the AD7879 internal median and average filters). This doesn't cause noticeable side effects, since the minimum conversion interval is 9.44ms. We receive ~100 waypoint samples per second, so we simply delay the result by 9.44ms. We also reject samples where pressure is greater than pressure_max. Signed-off-by: Michael Hennerich Signed-off-by: Dmitry Torokhov commit 8ef17fa2ef8be74b946e725c2afb0e2a54981da1 Author: Steven Rostedt Date: Thu Oct 28 22:21:57 2010 -0400 kconfig: Have streamline_config process menuconfigs too Some menuconfigs in the Kconfig files have prompts and dependencies. Currently, streamline_config misses these, and this can cause streamline_config to keep modules enabled that should not be, and even worse, not enable those that should. This patch makes streamline_config process menuconfigs just like it would process a config. Reported-by: member graysky Signed-off-by: Steven Rostedt commit 20d190473328b90755eb2434cf2d26b73a53ef23 Author: Steven Rostedt Date: Thu Oct 28 22:13:51 2010 -0400 kconfig: Fix streamline_config to read multi line deps in Kconfig files I noticed that some Kconfig files have multi line dependencies that continue with a backslash. Those dependencies on the next line will be missed by streamline_config. For example: config CS89x0 tristate "CS89x0 support" depends on NET_ETHERNET && (ISA || EISA || MACH_IXDP2351 \ || ARCH_IXDP2X01 || MACH_MX31ADS) The "|| ARCH_IXDP2X01 || MACH_MX31ADS)" will not be processed. This patch adds code to handle this case. Signed-off-by: Steven Rostedt commit cf5a189d4a02efb3712cfb424452f4ce3ab7c4a2 Author: hiromu Date: Tue Aug 17 19:49:18 2010 +0900 kconfig: Fix missing declaration of variable $dir in streamline_config.pl On Fri, Aug 17, 2010 at 01:43PM +0800, Américo Wang wrote: > Acked-by: WANG Cong > > BTW, I think we should add "use strict;" too. Then I added "use strict;" to streamline_config.pl, I saw another warning. > Global symbol "$dir" requires explicit package name at scripts/kconfig/streamline_config.pl line 286. > Global symbol "$dir" requires explicit package name at scripts/kconfig/streamline_config.pl line 287. > Global symbol "$dir" requires explicit package name at scripts/kconfig/streamline_config.pl line 288. Then I added "my $dir;" to line 285. Cc: Américo Wang Cc: Toralf Foerster Cc: KAMEZAWA Hiroyuki Cc: YOSHIFUJI Hideaki Signed-off-by: Hiromu Yakura LKML-Reference: <1282042158.7160.9.camel@hiromu-Macbook> [ changed to just add my in front of $dir instead of new line ] Signed-off-by: Steven Rostedt commit ccece60ac69608c496b07c0d31a68894db0a22b3 Author: hiromu yagura Date: Sun Aug 15 13:13:17 2010 +0900 kconfig: Fix variable name typo %prompts in streamline_config.pl When I added "use strict;" to streamline_config.pl, I saw the following warnings: > Global symbol "%prompt" requires explicit package name at scripts/kconfig/streamline_config.pl line 183. > Global symbol "%prompt" requires explicit package name at scripts/kconfig/streamline_config.pl line 368. The declaration of %prompt was incorrect, and should have been %prompts. Cc: Toralf Foerster Cc: KAMEZAWA Hiroyuki Cc: YOSHIFUJI Hideaki Signed-off-by: Hiromu Yakura LKML-Reference: <1281845597.11566.5.camel@camp10-laptop> Signed-off-by: Steven Rostedt commit 4908980b241bc639b71ef47b727b4bc7c0174afe Author: Steven Rostedt Date: Fri Oct 29 00:56:46 2010 -0400 kconfig: Make localmodconfig handle environment variables The commit 838a2e55e6a4e9e8a10451ed2ef0f7a08dabdb04 kbuild: migrate all arch to the kconfig mainmenu upgrade Broke make localmodconfig. The reason was that it added a environment variable to the kconfig source, which the streamline_config.pl could not handle. This patch changes streamline_config.pl to handle kconfig sources using environment variables in their names. Cc: Arnaud Lacombe Cc: Sam Ravnborg Cc: Michal Marek Signed-off-by: Steven Rostedt commit d3686d54c7902a303bd65d751226aa1647319863 Author: Shirish Pargaonkar Date: Thu Oct 28 09:53:07 2010 -0500 cifs: Cleanup and thus reduce smb session structure and fields used during authentication Removed following fields from smb session structure cryptkey, ntlmv2_hash, tilen, tiblob and ntlmssp_auth structure is allocated dynamically only if the auth mech in NTLMSSP. response field within a session_key structure is used to initially store the target info (either plucked from type 2 challenge packet in case of NTLMSSP or fabricated in case of NTLMv2 without extended security) and then to store Message Authentication Key (mak) (session key + client response). Server challenge or cryptkey needed during a NTLMSSP authentication is now part of ntlmssp_auth structure which gets allocated and freed once authenticaiton process is done. Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French commit d3ba50b17aa7a391bb5b3dcd8d6ba7a02c4f031c Author: Shirish Pargaonkar Date: Wed Oct 27 15:20:36 2010 -0500 NTLM auth and sign - Use appropriate server challenge Need to have cryptkey or server challenge in smb connection (struct TCP_Server_Info) for ntlm and ntlmv2 auth types for which cryptkey (Encryption Key) is supplied just once in Negotiate Protocol response during an smb connection setup for all the smb sessions over that smb connection. For ntlmssp, cryptkey or server challenge is provided for every smb session in type 2 packet of ntlmssp negotiation, the cryptkey provided during Negotiation Protocol response before smb connection does not count. Rename cryptKey to cryptkey and related changes. Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French commit 18cb657ca1bafe635f368346a1676fb04c512edf Merge: 2301b65 e28c31a Author: Linus Torvalds Date: Thu Oct 28 17:11:17 2010 -0700 Merge branch 'stable/xen-pcifront-0.8.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen and branch 'for-linus' of git://xenbits.xen.org/people/sstabellini/linux-pvhvm * 'for-linus' of git://xenbits.xen.org/people/sstabellini/linux-pvhvm: xen: register xen pci notifier xen: initialize cpu masks for pv guests in xen_smp_init xen: add a missing #include to arch/x86/pci/xen.c xen: mask the MTRR feature from the cpuid xen: make hvc_xen console work for dom0. xen: add the direct mapping area for ISA bus access xen: Initialize xenbus for dom0. xen: use vcpu_ops to setup cpu masks xen: map a dummy page for local apic and ioapic in xen_set_fixmap xen: remap MSIs into pirqs when running as initial domain xen: remap GSIs as pirqs when running as initial domain xen: introduce XEN_DOM0 as a silent option xen: map MSIs into pirqs xen: support GSI -> pirq remapping in PV on HVM guests xen: add xen hvm acpi_register_gsi variant acpi: use indirect call to register gsi in different modes xen: implement xen_hvm_register_pirq xen: get the maximum number of pirqs from xen xen: support pirq != irq * 'stable/xen-pcifront-0.8.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen: (27 commits) X86/PCI: Remove the dependency on isapnp_disable. xen: Update Makefile with CONFIG_BLOCK dependency for biomerge.c MAINTAINERS: Add myself to the Xen Hypervisor Interface and remove Chris Wright. x86: xen: Sanitse irq handling (part two) swiotlb-xen: On x86-32 builts, select SWIOTLB instead of depending on it. MAINTAINERS: Add myself for Xen PCI and Xen SWIOTLB maintainer. xen/pci: Request ACS when Xen-SWIOTLB is activated. xen-pcifront: Xen PCI frontend driver. xenbus: prevent warnings on unhandled enumeration values xenbus: Xen paravirtualised PCI hotplug support. xen/x86/PCI: Add support for the Xen PCI subsystem x86: Introduce x86_msi_ops msi: Introduce default_[teardown|setup]_msi_irqs with fallback. x86/PCI: Export pci_walk_bus function. x86/PCI: make sure _PAGE_IOMAP it set on pci mappings x86/PCI: Clean up pci_cache_line_size xen: fix shared irq device passthrough xen: Provide a variant of xen_poll_irq with timeout. xen: Find an unbound irq number in reverse order (high to low). xen: statically initialize cpu_evtchn_mask_p ... Fix up trivial conflicts in drivers/pci/Makefile commit 2301b65b86df8b80e6779ce9885ad62a5c4adc38 Merge: e596c79 c2d5a73 Author: Linus Torvalds Date: Thu Oct 28 16:19:38 2010 -0700 Merge branch 'packaging' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 * 'packaging' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: scripts/package: don't break if %{_smp_mflags} isn't set kbuild, deb-pkg: Check if KBUILD_IMAGE exists before copying it commit e596c79050eafea89cf9fe26b7a807643a2a9904 Merge: 51399a3 9231d9e Author: Linus Torvalds Date: Thu Oct 28 16:18:59 2010 -0700 Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: (39 commits) Revert "namespace: add source file location exceptions" Coccinelle: Add contextual message Coccinelle: Fix documentation Coccinelle: Find doubled arguments to boolean or bit operators. Coccinelle: Find nested lock+irqsave functions that use the same flags variables. namespace: add source file location exceptions scripts/extract-ikconfig: add support for bzip2, lzma and lzo kbuild: check return value of asprintf() scripts/namespace.pl: improve to get more correct results scripts/namespace.pl: some bug fixes scripts/namespace.pl: update file exclusion list scripts/namespace.pl: fix wrong source path Coccinelle: Use the -no_show_diff option for org and report mode Coccinelle: Add a new mode named 'chain' Coccinelle: Use new comment format to explain kfree.cocci Coccinelle: Improve user information with a new kind of comment Coccinelle: Update documentation MAINTAINERS: Coccinelle: Update email address Documentation/kbuild: modules.txt cleanup Documentation/kbuild: major edit of modules.txt sections 5-8 ... commit 51399a391940e676877c7a791138081f13a0bab7 Merge: b779b33 df4d303 Author: Linus Torvalds Date: Thu Oct 28 16:16:39 2010 -0700 Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 * 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: (38 commits) kbuild: convert `arch/tile' to the kconfig mainmenu upgrade README: cite nconfig Revert "kconfig: Temporarily disable dependency warnings" kconfig: Use PATH_MAX instead of 128 for path buffer sizes. kconfig: Fix realloc usage() kconfig: Propagate const kconfig: Don't go out from read config loop when you read new symbol kconfig: fix menuconfig on debian lenny kbuild: migrate all arch to the kconfig mainmenu upgrade kconfig: expand file names kconfig: use the file's name of sourced file kconfig: constify file name kconfig: don't emit warning upon rootmenu's prompt redefinition kconfig: replace KERNELVERSION usage by the mainmenu's prompt kconfig: delay gconf window initialization kconfig: expand by default the rootmenu's prompt kconfig: add a symbol string expansion helper kconfig: regen parser kconfig: implement the `mainmenu' directive kconfig: allow PACKAGE to be defined on the compiler's command-line ... Fix up trivial conflict in arch/mn10300/Kconfig commit b779b332d0e1ef68f40867948ae5526a3e925163 Merge: a0cadc2 0f48285 Author: Linus Torvalds Date: Thu Oct 28 15:54:04 2010 -0700 Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6 * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (73 commits) power: Revert "power_supply: Mark twl4030_charger as broken" mfd: Fix a memory leak when unload mc13xxx-core module mfd: Fix resource reclaim for max8998 mfd: Remove unneeded ret value checking for max8998 register updates mfd: Add free max8998->ono irq in max8998_irq_exit() mfd: Fix resource reclaim in pcf50633_remove() omap4: pandaboard: fix up mmc card detect logic mfd: Fix ezx_pcap_probe error path mfd: Fix off-by-one value range checking for tps6507x mfd: Remove __devinitdata from tc6393xb_mmc_resources mfd: Add WM831x SPI support mfd: Factor out WM831x I2C I/O from the core driver mfd: Remove DEBUG defines from mc13xxx-core mfd: Fix jz4740_adc_set_enabled mfd: Add TPS658621C device ID mfd: Fix twl-irq function declaration warnings regulator: max8998 BUCK1/2 voltage change with use of GPIOs mfd: Voltages and GPIOs platform_data definitions for max8998 regulator: max8998 BUCK1/2 internal voltages and indexes defined mfd: Support for ICs compliant with max8998 ... commit 419db274bed4269f475a8e78cbe9c917192cfe8b Author: Yinghai Lu Date: Thu Oct 28 09:50:17 2010 -0700 x86, memblock: Fix early_node_mem with big reserved region. Xen can reserve huge amounts of memory for pre-ballooning, but that still shows as RAM in the e820 memory map. early_node_mem could not find range because of start/end adjusting, and will go through the fallback path. However, the fallback patch is still using memblock_x86_find_range_node(), and it is partially top-down because it go through active_range entries from low to high. Let's use memblock_find_in_range instead memblock_x86_find_range_node. So get real top down in fallback path. We may still need to make memblock_x86_find_range_node to do overall top_down work. Reported-by: Jeremy Fitzhardinge Tested-by: Jeremy Fitzhardinge Tested-by: Konrad Rzeszutek Wilk Signed-off-by: Yinghai Lu LKML-Reference: <4CC9A9C9.8020700@kernel.org> Signed-off-by: H. Peter Anvin commit a0cadc2777a71b1fde62e6417284b38e52128e88 Merge: 671f837 ad1d3a2 Author: Linus Torvalds Date: Thu Oct 28 15:47:21 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog: watchdog: iTCO_wdt.c: remove extra pci_dev_put()'s from init code watchdog: add support for Broadcom BCM63xx built-in watchdog watchdog: f71808e_wdt: add support for the F71889FG watchdog: MachZ: fix debug macro watchdog: it8712f_wdt: Add module parameter for alternative reset sources watchdog: it8712f_wdt: Add comments for config/control register names watchdog: it87_wdt: Add support for watchdogs with 8b timers watchdog: it87_wdt: Add support for IT8720F watchdog watchdog: Use static const char * const where possible watchdog: iTCO_wdt: Cleanup warning messages watchdog: iTCO_wdt: TCO Watchdog patch for Intel Patsburg DeviceIDs commit 671f837a04cbcaaa10e8404989cf08ca3fdf1c80 Merge: c9e2a72 b1142e8 Author: Linus Torvalds Date: Thu Oct 28 15:46:57 2010 -0700 Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: ext4: BUG_ON fix: check if page has buffers before calling page_buffers() commit ad1d3a26cdb9a0eaa0bf8351a000df0f256b0baa Author: Prarit Bhargava Date: Wed Oct 27 09:50:22 2010 -0400 watchdog: iTCO_wdt.c: remove extra pci_dev_put()'s from init code The iTCO_wdt driver erroneously releases the pci_dev, and causes PCI hotremove to fail because of an incorrect usage count. The probe for this driver does a for_each_pci_dev() which gets a reference for a pci_dev when iTCO_wdt_init() is successful. The for_each_pci_dev() loop puts a reference for a pci_dev when iTCO_wdt_init() fails, so the iTCO_wdt_init() does not need to do any pci_dev_put()'s. The only pci_dev_put() that is required is in the iTCO_wdt_cleanup() function. Signed-off-by: Prarit Bhargava Signed-off-by: Wim Van Sebroeck commit 0f48285755991b73c14b6eeeee464590f490ac25 Author: Samuel Ortiz Date: Thu Oct 28 23:30:28 2010 +0200 power: Revert "power_supply: Mark twl4030_charger as broken" The missing definitions are now in. This reverts commit 23886839a752401aba66517bff8a8b91549279ce. Signed-off-by: Samuel Ortiz commit cef92fe63836dcc63db6ccfbea0a6d9255f491a9 Author: Axel Lin Date: Fri Oct 22 12:29:21 2010 +0200 mfd: Fix a memory leak when unload mc13xxx-core module Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz commit 7484552eb24e3c62ef55a4ff0133d8450adea206 Author: Axel Lin Date: Fri Oct 22 08:31:49 2010 +0800 mfd: Fix resource reclaim for max8998 Properly free irq and unregister max8998->rtc device in max8998_i2c_probe() error path and max8998_i2c_remove(). Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz commit 25d950714781f34e7ae1292f38889cf39983cb38 Author: Axel Lin Date: Fri Oct 22 08:30:26 2010 +0800 mfd: Remove unneeded ret value checking for max8998 register updates i2c_smbus_write_byte_data() returns zero or negative value, therefore no need to check if ret is greater than zero or not. Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz commit 1558b51eb7c813b3d90bdd68057403f7cac191fa Author: Axel Lin Date: Wed Oct 20 17:09:56 2010 +0800 mfd: Add free max8998->ono irq in max8998_irq_exit() Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz commit 8220fe4cb25d0177bd0795a516d2023799008ca0 Author: Axel Lin Date: Wed Oct 20 16:56:59 2010 +0800 mfd: Fix resource reclaim in pcf50633_remove() Calling sysfs_remove_group() to remove sysfs entries and unregister bl_pdev in pcf50633_remove(). Signed-off-by: Axel Lin Acked-by: Harald Welte Signed-off-by: Samuel Ortiz commit bf56f0a6668cd399b5136d2216f24ec97f0ce716 Author: Menon, Nishanth Date: Tue Oct 19 09:50:25 2010 -0500 omap4: pandaboard: fix up mmc card detect logic For MMC1 Controller, card detect interrupt source is twl6030 which is non-gpio. The card detect call back function provides card present/absent status by reading MMC Control register present on twl6030. This functionality was introduced in mfd tree on track to kernel.org Sync pandaboard to the same and make mmc work. Cc: Tony Lindgren Cc: Madhusudhan Chikkature Cc: Adrian Hunter Cc: Samuel Ortiz Acked-by: Kishore Kadiyala Signed-off-by: Nishanth Menon Tested-by: Jarkko Nikula Acked-by: Madhusudhan Chikkature Acked-by: Tony Lindgren Signed-off-by: Samuel Ortiz commit 47dabaeedb4d6e841ac4d66ef249ce9c61303049 Author: Axel Lin Date: Tue Oct 19 20:28:24 2010 +0800 mfd: Fix ezx_pcap_probe error path return -ENOMEM if create_singlethread_workqueue failed. Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz commit a8d6aa08dd3e004df6a6e63a61698d834a191ad3 Author: Axel Lin Date: Wed Oct 13 10:44:39 2010 +0800 mfd: Fix off-by-one value range checking for tps6507x If bytes == (TPS6507X_MAX_REGISTER + 1), we have a buffer overflow when doing memcpy(&msg[1], src, bytes). Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz commit 7745cc8c3b977203c1b7483c09d05b58c8e88728 Author: Marek Vasut Date: Sun Oct 10 03:55:43 2010 +0200 mfd: Remove __devinitdata from tc6393xb_mmc_resources This static struct resource tc6393xb_mmc_resources[] is used in resume function, therefore the data can not be wiped after init. Also, this causes a section mismatch. Signed-off-by: Marek Vasut Acked-by: Ian Molton Signed-off-by: Samuel Ortiz commit 2aa13b9e8096ab7f12c67f3a5b9a38b194a30ce9 Author: Mark Brown Date: Wed Oct 20 00:00:11 2010 +0200 mfd: Add WM831x SPI support Implement support for controlling WM831x and WM832x devices using SPI. Signed-off-by: Mark Brown Signed-off-by: Samuel Ortiz commit e5b486841d572c5ac83c798f82f4f67cbbac5320 Author: Mark Brown Date: Tue Oct 19 23:57:56 2010 +0200 mfd: Factor out WM831x I2C I/O from the core driver In preparation for the addition of SPI support for the WM831x move the I2C specific code into a separate file with a separate Kconfig option so the I2C support can be excluded from the build. Also update the 1133-EV1 PMIC module support for SMDK6410 to use the new symbol. Signed-off-by: Mark Brown Signed-off-by: Samuel Ortiz commit 00969f23dae70f62d7ce3f7abbbfb6d09ef92739 Author: Samuel Ortiz Date: Tue Oct 19 11:14:33 2010 +0200 mfd: Remove DEBUG defines from mc13xxx-core DEBUG and VERBOSE_DEBUG are not used. Reported-by: David Jander Signed-off-by: Samuel Ortiz commit f9c28019d44a97272ef0f382e8d0d1a85dd1cf3e Author: Axel Lin Date: Thu Oct 7 15:51:20 2010 +0800 mfd: Fix jz4740_adc_set_enabled When enabled is false, clear BIT(engine) of JZ_REG_ADC_ENABLE register. Signed-off-by: Axel Lin Acked-by: Lars-Peter Clausen Signed-off-by: Samuel Ortiz commit d1f92f05754116fc65cb1165d4942d25df6f200e Author: Andrew Chew Date: Tue Oct 19 11:08:36 2010 +0200 mfd: Add TPS658621C device ID The interface for this device should be identical to that of the TPS658521A. Signed-off-by: Andrew Chew Acked-by: Mike Rapoport Signed-off-by: Samuel Ortiz commit b0b4a7c28ebee0763cae90d470cfff501a83be37 Author: G, Manjunath Kondaiah Date: Tue Oct 19 11:02:48 2010 +0200 mfd: Fix twl-irq function declaration warnings Fixes following sparse warnings for twl4030 and twl6030 irq files. drivers/mfd/twl4030-irq.c:783:5: warning: symbol 'twl4030_init_irq' was not declared. Should it be static? drivers/mfd/twl4030-irq.c:863:5: warning: symbol 'twl4030_exit_irq' was not declared. Should it be static? drivers/mfd/twl4030-irq.c:873:5: warning: symbol 'twl4030_init_chip_irq' was not declared. Should it be static? drivers/mfd/twl6030-irq.c:226:5: warning: symbol 'twl6030_init_irq' was not declared. Should it be static? drivers/mfd/twl6030-irq.c:290:5: warning: symbol 'twl6030_exit_irq' was not declared. Should it be static? Signed-off-by: G, Manjunath Kondaiah Cc: linux-arm-kernel@lists.infradead.org Cc: Tony Lindgren Cc: Nishanth Menon Signed-off-by: Samuel Ortiz commit 50f19a45961ffa0445db02777ad9342119ceb2aa Author: Lukasz Majewski Date: Mon Sep 27 14:32:27 2010 +0200 regulator: max8998 BUCK1/2 voltage change with use of GPIOs max8998_pmic_probe: - modified to check if valid pins are defined at platform data - maximal voltage values (predefined at platform data) are uploaded to max8998 device max8998_set_voltage_buck: - BUCK1/2 voltages change between values already defined - Checks if valid GPIO pins are passed from platform data - If requested voltage cannot be satisfied from already defined values, then one of free slots is used - Predefined maximum voltages (as defined at platform data) are always available Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Acked-by: Mark Brown Acked-by: Liam Girdwood Signed-off-by: Samuel Ortiz commit 58aa6334fbf5cf420a47cfd2718a0b299f40a379 Author: Lukasz Majewski Date: Mon Sep 27 14:32:26 2010 +0200 mfd: Voltages and GPIOs platform_data definitions for max8998 Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Acked-by: Mark Brown Acked-by: Liam Girdwood Signed-off-by: Samuel Ortiz commit 889cd5a60f880e0a56b7b769d0b74eb222e6896c Author: Lukasz Majewski Date: Mon Sep 27 14:32:25 2010 +0200 regulator: max8998 BUCK1/2 internal voltages and indexes defined BUCK1/2 internal voltages and indexes defined in the struct max8998_data max_get_voltage_register now uses index values to chose proper register More generic BUCK1/2 registers names provided Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Acked-by: Mark Brown Acked-by: Liam Girdwood Signed-off-by: Samuel Ortiz commit 509bd4764c110b89bb3d09a5b6621fd31dc58044 Author: Lukasz Majewski Date: Mon Sep 27 14:32:24 2010 +0200 mfd: Support for ICs compliant with max8998 Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Acked-by: Mark Brown Acked-by: Liam Girdwood Signed-off-by: Samuel Ortiz commit 9d92492fb753f01caa31dc502f69c189c0c22ad0 Author: Lukasz Majewski Date: Mon Sep 27 14:32:23 2010 +0200 regulator: Separate set_voltage for max8998 ldo and buck Signed-off-by: Lukasz Majewski Signed-off-by: Kyungmin Park Acked-by: Mark Brown Acked-by: Liam Girdwood Signed-off-by: Samuel Ortiz commit 8e52e279b241d3a22d52c10a5f934db18b7d0a1b Author: Grazvydas Ignotas Date: Tue Sep 28 16:22:19 2010 +0300 mfd: Fix TWL4030 COR bit polarity for BCI SIH block The chip TRM documentation contradicts itself about this bit, page 174 of swcu050e says bit should be 0 for clear-on-read behavior, while page 487 says it should be 1. Testing shows it should be 1, so set the .set_cor flag accordingly. This is needed for upcoming BCI charging driver to function. Signed-off-by: Grazvydas Ignotas Acked-by: Tony Lindgren Signed-off-by: Samuel Ortiz commit a28dbea0ad3bd8144f3348eb5c20fabc2f12b4b5 Author: Brian Harring Date: Tue Oct 19 01:21:06 2010 +0200 mfd: Add devices platform data when the cell data size is not 0 When the cell data_size is 0, the resulting platform_data pointer will be set to ZERO_SIZE_PTR. That could be misleading for device drivers running a NULL check on thei platform_data pointer before dereferencing it. Signed-off-by: Brian Harring Signed-off-by: Samuel Ortiz commit 11c39c4bde7acb727f7a7c6a4d7ffeb95b64dbb4 Author: Grazvydas Ignotas Date: Fri Oct 1 13:17:50 2010 +0300 mfd: Add twl4030_bci platform_data back Now that we have twl4030 charger driver, add back it's platform_data (which was removed by f7ea2dc59ed46dcd0f1cfaccda02211f4507207b as unused). Signed-off-by: Grazvydas Ignotas Acked-by: Tony Lindgren Signed-off-by: Samuel Ortiz commit 1c97872b80691f6bd3e46ec431a0d59dc75cb8da Author: Uwe Kleine-König Date: Thu Oct 28 12:30:53 2010 +0200 rtc: Add support for the rtc found in the MC13892 PMIC The mfd driver for MC13783 recently got support for MC13892 and was renamed accordingly from mc13783-core to mc13xxx-core. Do the same for rtc-mc13783. The only relevant change is to use platform id's to tell the platform bus that this driver is responsible for mc13892-rtc devices, too. Acked-by: Alessandro Zummo Signed-off-by: Uwe Kleine-König Signed-off-by: Samuel Ortiz commit 72f2e2c763edc41f8eead042b6ff933acb0378e2 Author: kishore kadiyala Date: Fri Sep 24 17:13:20 2010 +0000 mfd: Adding twl6030 mmc card detect support for MMC1 Adding card detect callback function and card detect configuration function for MMC1 Controller on OMAP4. Card detect configuration function does initial configuration of the MMC Control & PullUp-PullDown registers of Phoenix. For MMC1 Controller, card detect interrupt source is twl6030 which is non-gpio. The card detect call back function provides card present/absent status by reading MMC Control register present on twl6030. Since OMAP4 doesn't use any GPIO line as used in OMAP3 for card detect, the suspend/resume initialization which was done in omap_hsmmc_gpio_init previously is moved to the probe thus making it generic for both OMAP3 & OMAP4. Cc: Tony Lindgren Cc: Andrew Morton Cc: Madhusudhan Chikkature Cc: Adrian Hunter Signed-off-by: Kishore Kadiyala Signed-off-by: Samuel Ortiz commit 8e00593557c3c5a7bc6f636412a1cadcf4624232 Author: Uwe Kleine-König Date: Tue Sep 28 16:37:20 2010 +0200 mfd: Add mc13892 support to mc13xxx mc13892 is the companion PMIC for Freescale's i.MX51. It's similar enough to mc13782 to support it in a single driver. This patch introduces enough compatibility cruft to keep all users of the superseded mc13783 driver unchanged. Signed-off-by: Uwe Kleine-König Signed-off-by: Samuel Ortiz commit b4e017e332b873133602f47ae8cacfae64ab82c5 Author: Uwe Kleine-König Date: Tue Sep 28 16:38:41 2010 +0200 mfd: Remove deprecated mc13783 functions The last user is gone since v2.6.34-rc1~40 Signed-off-by: Uwe Kleine-König Signed-off-by: Samuel Ortiz commit 7e2bb82ee0d74b621bab452888cc3e7e8a013d0b Author: Uwe Kleine-König Date: Tue Sep 28 14:50:18 2010 +0200 mfd: Remove obsolete mc13783 private data The regulator driver was converted to get the needed data directly from platform_data by a10099b (regulator/mc13783: various cleanups) so regulators and num_regulators can go away. Then apart from the flag indicating that the adc does a conversion, flags is only a copy of the flags member of platform_data. This flag isn't needed to be returned by mc13783_get_flags, so mc13783_get_flags now gets the flags from platform_data, too and the driver private member is renamed for clearity. Signed-off-by: Uwe Kleine-König Signed-off-by: Samuel Ortiz commit 99ea2626a75e13ce926af69d96e9ae5bfb62b7ba Author: Daniel Drake Date: Thu Sep 30 21:55:48 2010 +0100 gpio: Add VIA VX855 GPIO driver This is needed for supporting the upcoming VX855 camera and OLPC DCON drivers, as well as the advanced viafb features on non-OLPC hardware based on this chip. Based on earlier work by Harald Welte. Signed-off-by: Daniel Drake Signed-off-by: Samuel Ortiz commit 375fc77ba950e388f29d11cb3279ada5e5c1580c Author: Daniel Drake Date: Thu Sep 30 21:55:41 2010 +0100 mfd: Add VIA VX855 multi-function device support This device has GPIO, SPI and I2C capabilities. The hardware can be found in the OLPC XO-1.5 laptop. Based on earlier work by Harald Welte. Signed-off-by: Daniel Drake Signed-off-by: Samuel Ortiz commit 5f2545fa156f3d4d327038d7664608e146809a3c Author: Daniel Drake Date: Thu Sep 30 21:55:36 2010 +0100 mfd: Allow for bypass of cell resource conflict check The upcoming VIA VX855 MFD driver needs to communicate resources to subdevices where the resources may be claimed by ACPI. Add a flag to mfd_cell to request that resources are not policed. Signed-off-by: Daniel Drake Signed-off-by: Samuel Ortiz commit 2d95ae3bbffe54b2e73e0d291e1d67e09d5e448f Author: Haojian Zhuang Date: Wed Sep 8 09:44:35 2010 -0400 input: Monitor both onkey up and down event Remove original 3-second ONKEY event. Detect ONKEY changing event directly. So both UP and DOWN event of ONKEY in max8925 are monitered. Signed-off-by: Haojian Zhuang Cc: Dmitry Torokhov Signed-off-by: Samuel Ortiz commit f5d59fc575e22f54069628586bf4b31c85bb2f31 Author: Haojian Zhuang Date: Wed Sep 8 09:44:33 2010 -0400 leds: Remove auto blink in 88pm860x 88pm860x supports auto-blink LED in hardware. It messed with timer trigger. Now disable the auto-blink function. Signed-off-by: Haojian Zhuang Cc: Richard Purdie Signed-off-by: Samuel Ortiz commit 0b3158842f1f22277bc5cb0968c09a833f9d15c1 Author: Mark Brown Date: Tue Sep 28 09:13:39 2010 -0700 mfd: Add WM8325 support The WM8325 is a PMIC for low power, high performance applications. From a software point of view the device is identical to the WM8320, all the differences are at the hardware level. Signed-off-by: Mark Brown Signed-off-by: Samuel Ortiz commit c6252e9ce7f51a2af66bd69c93afb37191467c96 Author: Mark Brown Date: Wed Sep 22 14:58:30 2010 +0100 mfd: Declare abx500_remove_ops() Otherwise sparse warns about a public symbol with no declaration and the compiler can't spot if the callers and users have different signatures for the function. Signed-off-by: Mark Brown Signed-off-by: Samuel Ortiz commit 2cfcce18bb09667f583f4a29e814cbadf1d4e525 Author: G, Manjunath Kondaiah Date: Tue Sep 21 15:31:17 2010 +0530 mfd: Fix twl-core sparse warning Fixes below sparse warning. drivers/mfd/twl-core.c:258:20: warning: symbol 'twl_map' was not declared. Should it be static? Signed-off-by: G, Manjunath Kondaiah Cc: linux-arm-kernel@lists.infradead.org Cc: Tony Lindgren Cc: Nishanth Menon Signed-off-by: Samuel Ortiz commit 6901ffd97d3d820c608dd579dd908ac77128efef Author: Richard Röjfors Date: Wed Sep 15 16:49:24 2010 +0200 mfd: Use DMA for timberdale's ks8842 This patch defines platform data for the ks8842 int the timberdale MFD. The platform data contains DMA channels to be used by the driver. Signed-off-by: Richard Röjfors Signed-off-by: Samuel Ortiz commit 208c4343192c052048ddf096d8e189162e5ee219 Author: Sundar Iyer Date: Wed Sep 15 10:30:54 2010 +0530 mfd: Add PM support to STMPE devices Add PM helpers to STMPE and add support to enable wakeup from low power states Acked-by: Rabin VINCENT Acked-by: Linus WALLEIJ Signed-off-by: Sundar Iyer Signed-off-by: Samuel Ortiz commit 02bf07492341d94e29890082201dd69dbf406570 Author: Vasiliy Kulikov Date: Sun Sep 12 22:57:19 2010 +0400 gpio: Fix stmpe error path Free allocated memory. Call stmpe_disable() if it was enabled. Signed-off-by: Vasiliy Kulikov Acked-by: Wolfram Sang Acked-by: Rabin Vincent Signed-off-by: Samuel Ortiz commit 1819ebcf1dc5ba9a19dab1f51a21af6274bbd829 Author: Samuel Ortiz Date: Mon Sep 20 00:19:27 2010 +0200 mfd: msp430 expects I2C to be built-in msp430 being a bool, it will only work with I2C=y Signed-off-by: Samuel Ortiz commit d5a0514e5fdba59e759d42be2f752366d5b6c03f Author: Arun Murthy Date: Wed Sep 15 13:37:18 2010 +0200 mfd: Update kconfig for ab8500 core driver This patch add a dependancy for ab8500-core driver so as to depend on u8500 platform. This patch also fixes the build issues(powerpc_allyesconfig) for the patch 03f582a93ecca6e9584b622570022abf08ed03ec (misc: Add ab8500 pwm driver) Signed-off-by: Arun Murthy Acked-by: Linus Walleij Signed-off-by: Samuel Ortiz commit c26448c48448266480e1b6c371f897167060ceaf Author: Gary King Date: Mon Sep 20 00:18:27 2010 +0200 mfd: Add basic tps6586x interrupt support Add support for enabling and disabling tps6586x subdevice interrupts Signed-off-by: Gary King Acked-by: Mike Rapoport Signed-off-by: Samuel Ortiz commit 39368eda96c0a54ea0b3c6066b08e46b37f7905f Author: Mattias Wallin Date: Wed Sep 15 13:12:03 2010 +0200 mfd: AB8500 register access via PRCMU I2C This patch adds the choice of accessing the AB8500 registers via prcmu I2C. Access either via SPI or I2C is supported. Signed-off-by: Mattias Wallin Acked-by: Linus Walleij Signed-off-by: Samuel Ortiz commit 5814fc35e1837e30b82c3d57f41310d4c4c52824 Author: Mattias Wallin Date: Mon Sep 13 16:05:04 2010 +0200 mfd: AB8500 debugfs This patch adds the possibility to read and write registers via the debug_fs. It also adds ranges of registers sorted by bank which makes it possible to read all defined registers in a bank. Signed-off-by: Mattias Wallin Acked-by: Linus Walleij Reviewed-by: Mark Brown Signed-off-by: Samuel Ortiz commit 38b340527aa44bb8d1b88ef1e5a4e26b27695c2b Author: Haojian Zhuang Date: Wed Sep 8 09:44:34 2010 -0400 mfd: Update chip id of 88pm8607 Chipid of 88pm8607 is 0x40 or 0x50. Signed-off-by: Haojian Zhuang Signed-off-by: Samuel Ortiz commit f0f05b1c751772d19c9c8f36d75e97b1d9687407 Author: Arun Murthy Date: Mon Sep 6 12:24:52 2010 +0530 misc: Add ab8500 pwm driver This patch adds a Pulse Width Modulation driver for Analog Baseband Chip AB8500. Signed-off-by: Arun Murthy Acked-by: Linus Walleij Acked-by: Mike Rapoport Signed-off-by: Samuel Ortiz commit 47c1697508f2ec9f6b31ce6c825fe1017871dea6 Author: Mattias Wallin Date: Fri Sep 10 17:47:56 2010 +0200 mfd: Align ab8500 with the abx500 interface This patch makes the ab8500 mixed signal chip expose the same interface for register access as the ab3100, ab3550 and ab5500 chip. The ab8500_read() and ab8500_write() is removed and replaced with abx500_get_register_interruptible() and abx500_set_register_interruptible(). Signed-off-by: Mattias Wallin Acked-by: Linus Walleij Acked-by: Mark Brown Signed-off-by: Samuel Ortiz commit f4ebcab36088d45a5e8889e9b63d77e01c808076 Author: Virupax Sadashivpetimath Date: Tue Aug 31 10:04:56 2010 +0530 gpio: Handle stmpe-gpio platform data with no gpio base This patch removes the requirement that gpio base be supplied in platform data. Signed-off-by: Virupax Sadashivpetimath Acked-by: Linus Walleij Acked-by: Wolfram Sang Signed-off-by: Samuel Ortiz commit f1334fb3c3006ba109886158c0ad79512f928bc1 Author: Yusuke Goda Date: Mon Aug 30 11:50:19 2010 +0100 mmc: Allow 2 byte requests in 4-bit mode for tmio_mmc Adjust the tmio_mmc block size check to accept 2-byte requests in 4-bit mode if the hardware supports it. Tested with the SDHI hardware block included in sh7724. Signed-off-by: Yusuke Goda Signed-off-by: Matt Fleming Acked-by: Magnus Damm Tested-by: Arnd Hannemann Signed-off-by: Samuel Ortiz commit 68accd7370a90b899ea6563ba9032e5a102ec1b5 Author: Arnd Hannemann Date: Fri Sep 10 18:54:20 2010 +0200 ARM: mach-shmobile: ap4evb: Fix hotplug for SDHI1 On AP4EVB the card detect pin of the top SD/MMC slot is not directly connected to the tmio/mmcif controller but to a GPIO pin, so polling needs to be done for SDHI1 and MMCIF in order to support hotplug for that slot. SHDI1 and MMCIF share that slot, and the used controller is selected by a DIP switch. This patch adds a helper function to check if a card is present in that particular slot, registers this function with SDHI1 and MMCIF and enables polling for SDHI1. Signed-off-by: Arnd Hannemann Tested-by: Yusuke Goda Signed-off-by: Samuel Ortiz commit 777271d0f33da306575ef776c75f66fc27246bf0 Author: Arnd Hannemann Date: Tue Aug 24 17:27:01 2010 +0200 mmc: Allow the platform to specify the sh_mmcif get_cd handler In some platforms (e.g. AP4EVB) the card detect pin of a slot is not directly connected to the sh_mmcif controller, so that polling needs to be used. To overcome the overhead induced by querying the controller on each poll cycle, card detection can be handled in the platform code more efficiently. This patch exposes a get_cd hook for that purpose. Signed-off-by: Arnd Hannemann Tested-by: Yusuke Goda Signed-off-by: Samuel Ortiz commit 998283e2e359249133f2f47db26669a55ff25c98 Author: Arnd Hannemann Date: Tue Aug 24 17:27:00 2010 +0200 mfd: Allow the platform to specify the sh_mobile_sdhi get_cd handler On some platforms (e.g. AP4EVB) the card detect pin of a slot is not directly connected to the sdhi hardware, so that polling needs to be used with tmio_mmc and card detection is handled in the platform code. This patch allows to set tmio_mmc capabilities (to pass the MMC_CAP_NEEDS_POLL flag) and exposes a get_cd hook for that purpose. Signed-off-by: Arnd Hannemann Signed-off-by: Samuel Ortiz commit 19ca7502c508595edfb963e5dbcf62854a926506 Author: Arnd Hannemann Date: Tue Aug 24 17:26:59 2010 +0200 mmc: Allow the tmio_mmc mfd driver to specify get_cd handler Some controllers, supported by the tmio_mmc driver do not have the card detect pin of a slot connected, so that polling needs to be used and card detection is handled by other means. This patch exposes a get_cd hook for that purpose. Signed-off-by: Arnd Hannemann Signed-off-by: Samuel Ortiz commit 9b16c0a43b74393cc18666a7748293812c61af1f Author: Joonyoung Shim Date: Fri Aug 6 11:28:08 2010 +0900 rtc: Add MAX8998 rtc driver This adds support for the RTC provided by the Maxim 8998 chip. This driver was tested on a GONI board by using the rtc-test application from the Documentation/rtc.txt. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Acked-by: Alessandro Zummo Signed-off-by: Samuel Ortiz commit 2c7e6f5797140b33ec2b967ff28941e1c7eff4b2 Author: Joonyoung Shim Date: Fri Sep 10 18:36:39 2010 +0200 mfd: Add MAX8998 interrupts support Use genirq and provide seperated file for interrupts support. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Reviewed-by: Mark Brown Signed-off-by: Samuel Ortiz commit 676e02d7a2ed9bb02994670a07df533a29a99de6 Author: Joonyoung Shim Date: Fri Aug 6 11:28:06 2010 +0900 mfd: Use i2c_client as an argument on MAX8998 i2c routines The MAX8998 chip have regulator and rtc features. The i2c slave address of regulator and rtc is different, so needs each i2c client on i2c operation functions. Also, this patch exports i2c operation functions instead of callback to make easy to read. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Signed-off-by: Samuel Ortiz commit 1203a1e6424d502e9c12d29512218487af5fdd1c Author: Axel Lin Date: Wed Aug 25 11:20:25 2010 +0800 mfd: Remove redundant code to get htc_pasic3 irq There is no reason to get irq twice. Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz commit 929980ab1b90b5a5c93db9b9b7d58cc6e93049c8 Author: Axel Lin Date: Tue Aug 24 13:47:22 2010 +0800 mfd: Fix tps6586x_add_subdevs error path 1. return -ENOMEM if platform_device_alloc() fail. 2. call platform_device_put() if platform_device_add() fail. Signed-off-by: Axel Lin Acked-by: Mike Rapoport Signed-off-by: Samuel Ortiz commit 09ff21e0f670a71ea43765cedaab9246fd81540e Author: Axel Lin Date: Tue Aug 24 13:45:49 2010 +0800 mfd: Fix pcap_add_subdev error path 1. return -ENOMEM if platform_device_alloc() fail. 2. call platform_device_put() if platform_device_add() fail. Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz commit b59cedeffaef54dd091baf01fd5e276ac50a3176 Author: Axel Lin Date: Tue Aug 24 13:44:05 2010 +0800 mfd: Fix da903x_add_subdevs error path This patch fixes da903x_add_subdevs error path: 1. return -ENOMEM if platform_device_alloc() fail. 2. call platform_device_put() if platform_device_add() fail. Signed-off-by: Axel Lin Acked-by: Eric Miao Acked-by: Mike Rapoport Signed-off-by: Samuel Ortiz commit 2c36af7b57540ea52d74dbbe71bf860aca910bb9 Author: Haojian Zhuang Date: Thu Aug 12 11:59:33 2010 +0800 mfd: Add codec resource into 88pm860x driver Add codec IRQ resources that are used in 88pm860x codec driver. Signed-off-by: Haojian Zhuang Acked-by: Mark Brown Signed-off-by: Samuel Ortiz commit 4b751cf5de975a91246110f3da1299f9e466646d Author: Axel Lin Date: Tue Aug 24 15:18:58 2010 +0800 mfd: Free tps6586x allocated resources when unload the module For the resources allocated in tps6586x_i2c_probe(), we need to free it in tps6586x_i2c_remove(). Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz commit e7944d820b1e13a5b17c3047e033bf744bcf01f1 Author: Felipe Balbi Date: Wed Aug 18 09:19:37 2010 +0300 usb: otg: twl4030-usb: switch over to defines in twl.h use the new definitions on twl header for code consistency. Signed-off-by: Felipe Balbi Signed-off-by: Samuel Ortiz commit 71084406bc605621c61e3ec4776bd84f265d5df3 Author: Felipe Balbi Date: Wed Aug 18 09:19:36 2010 +0300 mfd: Switch twl4030-power over to defines in twl.h use the new definitions on twl header for code consistency. Signed-off-by: Felipe Balbi Signed-off-by: Samuel Ortiz commit 49e6f87eb6bcdc40663958f938e4b919dca47f40 Author: Felipe Balbi Date: Wed Aug 18 09:19:35 2010 +0300 mfd: Switch twl-core over to defines in twl.h use the new definitions on twl header for code consistency. Signed-off-by: Felipe Balbi Signed-off-by: Samuel Ortiz commit 89712059c09ff12f1e60e444d05d2ca257dd00ef Author: Felipe Balbi Date: Fri Sep 10 17:10:21 2010 +0200 i2c: twl: add register defines for pm master module Some modules already need to talk to at least PROTECT_KEY register, while at that, add defines to the entire register space. Signed-off-by: Felipe Balbi Signed-off-by: Samuel Ortiz commit f8539ddcbbbca7b6a06e0c2cdfbd116ba43a2fe0 Author: Kyungmin Park Date: Mon Aug 23 13:46:49 2010 +0900 mfd: LP3974 PMIC support LP3974 PMIC support. It has same functionality as max8998. Signed-off-by: Kyungmin Park Signed-off-by: Samuel Ortiz commit b8e9cf0b28173fc25dae9f3ac44de6fc4e9fc385 Author: Wolfram Sang Date: Mon Aug 16 17:14:44 2010 +0200 gpio: Add bitmask to block requests to unavailable stmpe GPIOs GPIOs on these controller are multi-functional. If you decided to use some of them e.g. as input channels for the ADC, you surely don't want those pins to be reassigned as simple GPIOs (which may be triggered even from userspace via 'export'). Same for the touchscreen controller pins. Since knowledge about the hardware is needed to decide which GPIOs to reserve, let this bitmask be inside platform_data and provide some defines to assist potential users. Signed-off-by: Wolfram Sang Acked-by: Rabin Vincent Cc: Linus Walleij Signed-off-by: Samuel Ortiz commit 8c96aefbe79becf940d27cd8ad2c5aba48322162 Author: Linus Walleij Date: Fri Aug 20 10:27:12 2010 +0200 mfd: Switch AB3100 to use MFD cells This switches the AB3100 core driver to using MFD cells for subdevices instead of spawning common platform devices. Signed-off-by: Linus Walleij Signed-off-by: Samuel Ortiz commit 2524468ee586e7ba25bd5a0551acf1fea7e9a0b3 Author: Linus Walleij Date: Fri Aug 20 10:26:56 2010 +0200 mfd: Move AB3100 to __devinit Since there is no discardable probe() function in the I2C device framework, let's just tag it __devinit and take the footprint hit rather than seeing the compilation warnings every day. Signed-off-by: Linus Walleij Signed-off-by: Samuel Ortiz commit deb26e92f9494c4da2f3c66a93f3744da96a9cee Author: Mark Brown Date: Tue Aug 17 13:13:37 2010 +0100 gpiolib: Hook up WM8994 gpio_to_irq() Not sure where this went. Signed-off-by: Mark Brown Signed-off-by: Samuel Ortiz commit f337134ff0cfe60fb1e347bc45b8e7190ef90a82 Author: Mark Brown Date: Tue Aug 17 13:13:36 2010 +0100 mfd: Move PCF50633 IRQ protoypes where the definitions can see them Fixed warnings about unprototyped global functions. Signed-off-by: Mark Brown Signed-off-by: Samuel Ortiz commit c9e2a72ff1acfdffdecb338b3d997f90c507e665 Merge: 9aca0e7 d63f6d1 Author: Linus Torvalds Date: Thu Oct 28 15:13:55 2010 -0700 Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: initramfs: Fix build break on symbol-prefixed archs initramfs: fix initramfs size calculation initramfs: generalize initramfs_data.xxx.S variants scripts/kallsyms: Enable error messages while hush up unnecessary warnings scripts/setlocalversion: update comment kbuild: Use a single clean rule for kernel and external modules kbuild: Do not run make clean in $(srctree) scripts/mod/modpost.c: fix commentary accordingly to last changes kbuild: Really don't clean bounds.h and asm-offsets.h commit 9aca0e7c8c3a8f1fa6e3058abc5465b0509f0f8e Merge: a0e3390 ec10b0e Author: Linus Torvalds Date: Thu Oct 28 15:13:24 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6: regulator: max8952 - fix max8952_set_voltage regulator: max8952 - fix max8952_pmic_probe error path regulator: fix build when CONFIG_REGULATOR_DUMMY=n regulator: avoid deadlock when disabling regulator with supply regulator: Add option for machine drivers to enable the dummy regulator Regulator: lp3972 cleanup Regulator: LP3972 PMIC regulator driver MAX8952 PMIC Driver Initial Release commit a0e3390787ef523699ae1f3f3ea0ca953e630be2 Merge: 2d3b07c 12364a4 Author: Linus Torvalds Date: Thu Oct 28 15:13:05 2010 -0700 Merge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6: nfs4: The difference of 2 pointers is ptrdiff_t nfs: testing the wrong variable nfs: handle lock context allocation failures in nfs_create_request Fixed Regression in NFS Direct I/O path commit b63aa731cd9e3fed7694a99f9c233f5f4b244f03 Author: Florian Fainelli Date: Sat Aug 28 22:03:45 2010 +0200 watchdog: add support for Broadcom BCM63xx built-in watchdog This patch adds support for the Broadcom BCM63xx SoC built-in watchdog, it uses one of the BCM63xx hardware timer id. Signed-off-by: Miguel Gaio Signed-off-by: Florian Fainelli Signed-off-by: Wim Van Sebroeck commit dee00abbbcab97b8ee3bbafb5e786dde83e26741 Author: Giel van Schijndel Date: Mon Oct 4 10:45:28 2010 +0200 watchdog: f71808e_wdt: add support for the F71889FG Signed-off-by: Giel van Schijndel Signed-off-by: Wim Van Sebroeck commit 29c3e8c8d16b74e91da9be445ff3e14136957753 Author: Nicolas Kaiser Date: Sat Oct 9 14:19:46 2010 +0200 watchdog: MachZ: fix debug macro Fix debug macro line wrapping. Signed-off-by: Nicolas Kaiser Signed-off-by: Wim Van Sebroeck commit a422088db21333ba02a0f4fe4f5abfb08c802d35 Author: Timo Juhani Lindfors Date: Thu Sep 30 17:08:04 2010 +0300 watchdog: it8712f_wdt: Add module parameter for alternative reset sources On iEi PCISA-9652-R10 (BIOS version 1.5) single board computer reads from the game port do not seem to reset the watchdog timer. This patch adds a module parameter wdt_config_reg to specify alternative reset sources. At least WDT_RESET_KBD has been tested, even just running while true; do setleds -L +scroll sleep 1 setleds -L -scroll sleep 1 done is enough to keep the watchdog happy. Signed-off-by: Timo Juhani Lindfors Signed-off-by: Wim Van Sebroeck commit f0fc10745a48c766ea5d6d83a6a371a223986bb0 Author: Timo Juhani Lindfors Date: Thu Sep 30 17:08:03 2010 +0300 watchdog: it8712f_wdt: Add comments for config/control register names Signed-off-by: Timo Juhani Lindfors Signed-off-by: Wim Van Sebroeck commit dfb0b8eae1f78c7d0cf7c8abe6c84ff8cefde50e Author: Ondrej Zajicek Date: Tue Sep 14 02:54:16 2010 +0200 watchdog: it87_wdt: Add support for watchdogs with 8b timers This patch adds support for watchdogs with 8b timers, like ones in IT8702F and older revisions of IT8712F Super IO chip, to it87_wdt driver. This patch should be used after the patch 'it87_wdt: Add support for IT8720F watchdog'. Signed-off-by: Ondrej Zajicek Signed-off-by: Wim Van Sebroeck Signed-off-by: Andrew Morton commit ec10b0e94ebe7de3b301d60e6f7f4a12d3d280c6 Author: Axel Lin Date: Tue Oct 26 07:55:54 2010 +0800 regulator: max8952 - fix max8952_set_voltage In current implementation, vid is declared as u8, then "vid == -1" is always false, and "vid >= 0" is always true. Thus change it to s8. Signed-off-by: Axel Lin Acked-by: Mark Brown Acked-by: Kyungmin Park Signed-off-by: Liam Girdwood commit da05738e94b644d759f28184a9f0bf875b271c55 Author: Axel Lin Date: Mon Oct 25 10:11:07 2010 +0800 regulator: max8952 - fix max8952_pmic_probe error path Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit f5ee10ab42c76f36eea1bd6f7a35da387635ebf9 Author: Anand Gadiyar Date: Mon Oct 11 22:05:55 2010 +0530 regulator: fix build when CONFIG_REGULATOR_DUMMY=n Commit f03f91826 (regulator: Add option for machine drivers to enable the dummy regulator) in the regulators tree seems to have introduced the following build break when CONFIG_REGULATOR_DUMMY is disabled. Fix this. CC drivers/regulator/dummy.o drivers/regulator/dummy.c:41: error: redefinition of 'regulator_dummy_init' drivers/regulator/dummy.h:28: note: previous definition of 'regulator_dummy_init' was here make[2]: *** [drivers/regulator/dummy.o] Error 1 make[1]: *** [drivers/regulator] Error 2 make: *** [drivers] Error 2 Signed-off-by: Anand Gadiyar Cc: Liam Girdwood Cc: Mark Brown Acked-by: Randy Dunlap Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 8cbf811dfd027bde8504e541d0009c5722b98be5 Author: Jeffrey Carlyle Date: Fri Oct 8 14:49:19 2010 -0500 regulator: avoid deadlock when disabling regulator with supply I have a regulator A that sets regulator B as its supply. When I call set_supply to add B as the supply for A, regulator A gets added to the supply_list for regulator B. When I call regulator_disable(A), I end up with a call chain like this: regulator_disable(A) > mutex_lock(A) > _regulator_disable(A) >> _regulator_disable(B) >>> _notifier_call_chain(B) >>>> mutex_lock(A) Which results in dead lock since we are trying to acquire the mutex lock for regulator A which we already hold. This patch addresses this issue by moving the call to disable regulator B outside of the lock aquired inside the initial call to regulator_disable. This change also addresses the issue of not acquiring the mutex for regulator B before calling _regulator_disable(B). Signed-off-by: Jeffrey Carlyle Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 688fe99a439f7c9dfcc52fbf7cb347f140a2dc8b Author: Mark Brown Date: Tue Oct 5 19:18:32 2010 -0700 regulator: Add option for machine drivers to enable the dummy regulator Allow machine drivers to explicitly enable the use of the dummy regulator, enabling simpler support for systems with only a few specific supplies visible to software. It is strongly recommended that this is not used on systems with substantial software control over their PMICs, for maximum functionality constrints should be as fully specified as possible. Signed-off-by: Mark Brown Signed-off-by: Liam Girdwood commit 993af7c048f414121bc81e0d6e69456e3862a06b Author: Axel Lin Date: Sat Sep 18 13:13:28 2010 +0800 Regulator: lp3972 cleanup This patch includes below fixes based on Mark's comment. - Return actual error if i2c_smbus_read_byte_data() fail - Add spaces around bitwise AND operator(&) to improve readability - Add comment to explain why we need to update voltage change control register for LDO1 and LDO5 - Logging the value for diagnostics if chip reported incorrect voltage value - Add __devinit annotation for setup_regulators() - Show system control register1 value if the value is mismatched - Logging the value for diagnostics if failed to detect device Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 5976f0959d5251ae5b4db848eaa2f42a19e98652 Author: Axel Lin Date: Thu Sep 16 16:48:49 2010 +0800 Regulator: LP3972 PMIC regulator driver This patch adds regulator drivers for National Semiconductors LP3972 PMIC. This LP3972 PMIC controller has 3 DC/DC voltage converters and 5 low drop-out (LDO) regulators. LP3972 PMIC controller uses I2C interface. Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 202f4f53e503ae09b431459131b5b3a99fa6d839 Author: MyungJoo Ham Date: Fri Aug 20 14:43:56 2010 +0900 MAX8952 PMIC Driver Initial Release MAX8952 PMIC is used to provide voltage output between 770mV - 1400mV with DVS support. In this initial release, users can set voltages for four DVS modes, RAMP delay values, and SYNC frequency. Controlling FPWM/SYNC_MODE/Pull-Down/Ramp Modes and reading CHIP_ID is not supported in this release. If GPIO of EN is not valid in platform data, the driver assumes that it is always-on. If GPIO of VID0 or VID1 is invalid, the driver pulls down VID0 and VID1 to fix DVS mode as 0 and disables DVS support. We assume that V_OUT is capable to provide every voltage from 770mV to 1.40V in 10mV steps although the data sheet has some ambiguity on it. Signed-off-by: MyungJoo Ham Signed-off-by: Kyungmin Park Acked-by: Mark Brown -- v2: - Style correction - Can accept platform_data with invalid GPIOs - Removed unnecessary features - Improved error handling Signed-off-by: Liam Girdwood commit ee3e96583e42dcb4bd406ce4e5f824bd5bb80013 Author: Ondrej Zajicek Date: Tue Sep 14 02:47:28 2010 +0200 watchdog: it87_wdt: Add support for IT8720F watchdog This simple patch adds support for a watchdog in IT8720F Super IO chip to it87_wdt driver. Signed-off-by: Ondrej Zajicek Signed-off-by: Wim Van Sebroeck Signed-off-by: Andrew Morton commit a2b89cd85ed55029400521a93dde868ac7150b31 Author: Joe Perches Date: Mon Sep 13 21:23:59 2010 -0700 watchdog: Use static const char * const where possible Signed-off-by: Joe Perches Signed-off-by: Wim Van Sebroeck commit b1142e8fec6a594723e5054055a7b53379b90490 Author: Theodore Ts'o Date: Thu Oct 28 17:33:57 2010 -0400 ext4: BUG_ON fix: check if page has buffers before calling page_buffers() We need to make check if a page does not have buffes by checking page_has_buffers(page) before calling page_buffers(page) in ext4_writepage(). Otherwise page_buffers() could throw a BUG_ON. Thanks also to Markus Trippelsdorf and Avinash Kurup who also reported the problem. Signed-off-by: "Theodore Ts'o" Reported-by: Sedat Dilek Tested-by: Sedat Dilek commit 641912f479962e50b29573a8c0e8c514eb02e9b8 Author: Prarit Bhargava Date: Fri Aug 6 11:41:24 2010 -0400 watchdog: iTCO_wdt: Cleanup warning messages The current iTCO_wdt driver warnings are confusing. Currently when the device driver returns an error the console contains: iTCO_vendor_support: vendor-support=0 iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05 iTCO_wdt: failed to reset NO_REBOOT flag, reboot disabled by hardware iTCO_wdt: No card detected After the patch, iTCO_vendor_support: vendor-support=0 iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05 iTCO_wdt: failed to reset NO_REBOOT flag, device disabled by hardware/BIOS Clean this up and use the word "device" to describe the device. Signed-off-by: Prarit Bhargava Signed-off-by: Wim Van Sebroeck commit cad0df370048f7980d4cbc9e88b74db0d87cfc56 Author: Seth Heasley Date: Thu Sep 9 09:58:03 2010 -0700 watchdog: iTCO_wdt: TCO Watchdog patch for Intel Patsburg DeviceIDs This patch adds the Intel Patsburg (PCH) DeviceIDs for iTCO Watchdog. Signed-off-by: Seth Heasley Signed-off-by: Wim Van Sebroeck commit d8c0fca68da25ca3df534dfb12ce628675c828e4 Author: Richard Kennedy Date: Thu Oct 28 17:21:59 2010 -0400 fsnotify: remove alignment padding from fsnotify_mark on 64 bit builds Reorder struct fsnotfiy_mark to remove 8 bytes of alignment padding on 64 bit builds. Shrinks fsnotfiy_mark to 128 bytes allowing more objects per slab in its kmem_cache and reduces the number of cachelines needed for each structure. Signed-off-by: Richard Kennedy Cc: Eric Paris Signed-off-by: Andrew Morton Signed-off-by: Eric Paris commit 19ba54f4645f8c5edae4b08919a37a409b8793aa Author: Andrew Morton Date: Thu Oct 28 17:21:59 2010 -0400 fs/notify/fanotify/fanotify_user.c: fix warnings fs/notify/fanotify/fanotify_user.c: In function 'fanotify_release': fs/notify/fanotify/fanotify_user.c:375: warning: unused variable 'lre' fs/notify/fanotify/fanotify_user.c:375: warning: unused variable 're' this is really ugly. Cc: Eric Paris Signed-off-by: Andrew Morton Signed-off-by: Eric Paris commit 50e4a98914de13c6f38f50fd1afa06e2c18b3cf7 Author: Stefan Hajnoczi Date: Thu Oct 28 17:21:59 2010 -0400 fanotify: Fix FAN_CLOSE comments The comments for FAN_CLOSE_WRITE and FAN_CLOSE_NOWRITE do not match FS_CLOSE_WRITE and FS_CLOSE_NOWRITE, respectively. WRITE is for writable files while NOWRITE is for non-writable files. Signed-off-by: Stefan Hajnoczi Signed-off-by: Eric Paris commit 192ca4d1941228e69c1fbeebab317725407e6e65 Author: Eric Paris Date: Thu Oct 28 17:21:59 2010 -0400 fanotify: do not recalculate the mask if the ignored mask changed If fanotify sets a new bit in the ignored mask it will cause the generic fsnotify layer to recalculate the real mask. This is stupid since we didn't change that part. Signed-off-by: Eric Paris commit 8fcd65280abc4699510f1853ede31f43e8a3783a Author: Eric Paris Date: Thu Oct 28 17:21:59 2010 -0400 fanotify: ignore events on directories unless specifically requested fanotify has a very limited number of events it sends on directories. The usefulness of these events is yet to be seen and still we send them. This is particularly painful for mount marks where one might receive many of these useless events. As such this patch will drop events on IS_DIR() inodes unless they were explictly requested with FAN_ON_DIR. This means that a mark on a directory without FAN_EVENT_ON_CHILD or FAN_ON_DIR is meaningless and will result in no events ever (although it will still be allowed since detecting it is hard) Signed-off-by: Eric Paris commit b29866aab8489487f11cc4506590ac31bdbae22a Author: Eric Paris Date: Thu Oct 28 17:21:58 2010 -0400 fsnotify: rename FS_IN_ISDIR to FS_ISDIR The _IN_ in the naming is reserved for flags only used by inotify. Since I am about to use this flag for fanotify rename it to be generic like the rest. Signed-off-by: Eric Paris commit e1c048ba786789afdc66f32d8394bb5a0014bbba Author: Eric Paris Date: Thu Oct 28 17:21:58 2010 -0400 fanotify: do not send events for irregular files fanotify_should_send_event has a test to see if an object is a file or directory and does not send an event otherwise. The problem is that the test is actually checking if the object with a mark is a file or directory, not if the object the event happened on is a file or directory. We should check the latter. Signed-off-by: Eric Paris commit 4afeff8505cb8a38e36c1ef2bd3447c4b8f87367 Author: Eric Paris Date: Thu Oct 28 17:21:58 2010 -0400 fanotify: limit number of listeners per user fanotify currently has no limit on the number of listeners a given user can have open. This patch limits the total number of listeners per user to 128. This is the same as the inotify default limit. Signed-off-by: Eric Paris commit ac7e22dcfafd04c842a02057afd6541c1d613ef9 Author: Eric Paris Date: Thu Oct 28 17:21:58 2010 -0400 fanotify: allow userspace to override max marks Some fanotify groups, especially those like AV scanners, will need to place lots of marks, particularly ignore marks. Since ignore marks do not pin inodes in cache and are cleared if the inode is removed from core (usually under memory pressure) we expose an interface for listeners, with CAP_SYS_ADMIN, to override the maximum number of marks and be allowed to set and 'unlimited' number of marks. Programs which make use of this feature will be able to OOM a machine. Signed-off-by: Eric Paris commit e7099d8a5a34d2876908a9fab4952dabdcfc5909 Author: Eric Paris Date: Thu Oct 28 17:21:57 2010 -0400 fanotify: limit the number of marks in a single fanotify group There is currently no limit on the number of marks a given fanotify group can have. Since fanotify is gated on CAP_SYS_ADMIN this was not seen as a serious DoS threat. This patch implements a default of 8192, the same as inotify to work towards removing the CAP_SYS_ADMIN gating and eliminating the default DoS'able status. Signed-off-by: Eric Paris commit 5dd03f55fd2f21916ce248bb2e68bbfb39d94fe5 Author: Eric Paris Date: Thu Oct 28 17:21:57 2010 -0400 fanotify: allow userspace to override max queue depth fanotify has a defualt max queue depth. This patch allows processes which explicitly request it to have an 'unlimited' queue depth. These processes need to be very careful to make sure they cannot fall far enough behind that they OOM the box. Thus this flag is gated on CAP_SYS_ADMIN. Signed-off-by: Eric Paris commit 2529a0df0f64dab1f60ae08e038b89c53a6b4c02 Author: Eric Paris Date: Thu Oct 28 17:21:57 2010 -0400 fsnotify: implement a default maximum queue depth Currently fanotify has no maximum queue depth. Since fanotify is CAP_SYS_ADMIN only this does not pose a normal user DoS issue, but it certianly is possible that an fanotify listener which can't keep up could OOM the box. This patch implements a default 16k depth. This is the same default depth used by inotify, but given fanotify's better queue merging in many situations this queue will contain many additional useful events by comparison. Signed-off-by: Eric Paris commit 5322a59f14e4cae5f878b9c0c5612d403c230d7f Author: Eric Paris Date: Thu Oct 28 17:21:57 2010 -0400 fanotify: ignore fanotify ignore marks if open writers fanotify will clear ignore marks if a task changes the contents of an inode. The problem is with the races around when userspace finishes checking a file and when that result is actually attached to the inode. This race was described as such: Consider the following scenario with hostile processes A and B, and victim process C: 1. Process A opens new file for writing. File check request is generated. 2. File check is performed in userspace. Check result is "file has no malware". 3. The "permit" response is delivered to kernel space. 4. File ignored mark set. 5. Process A writes dummy bytes to the file. File ignored flags are cleared. 6. Process B opens the same file for reading. File check request is generated. 7. File check is performed in userspace. Check result is "file has no malware". 8. Process A writes malware bytes to the file. There is no cached response yet. 9. The "permit" response is delivered to kernel space and is cached in fanotify. 10. File ignored mark set. 11. Now any process C will be permitted to open the malware file. There is a race between steps 8 and 10 While fanotify makes no strong guarantees about systems with hostile processes there is no reason we cannot harden against this race. We do that by simply ignoring any ignore marks if the inode has open writers (aka i_writecount > 0). (We actually do not ignore ignore marks if the FAN_MARK_SURV_MODIFY flag is set) Reported-by: Vasily Novikov Signed-off-by: Eric Paris commit bbf2aba50f6ed7c8dd53623fa1437b539928ac39 Author: Eric Paris Date: Thu Oct 28 17:21:57 2010 -0400 fanotify: allow userspace to flush all marks fanotify is supposed to be able to flush all marks. This is mostly useful for the AV community to flush all cached decisions on a security policy change. This functionality has existed in the kernel but wasn't correctly exposed to userspace. Signed-off-by: Eric Paris commit 52420392c81c8712f555e6bcd116d8bd214ce43a Author: Eric Paris Date: Thu Oct 28 17:21:56 2010 -0400 fsnotify: call fsnotify_parent in perm events fsnotify perm events do not call fsnotify parent. That means you cannot register a perm event on a directory and enforce permissions on all inodes in that directory. This patch fixes that situation. Signed-off-by: Eric Paris commit ff8bcbd03da881bf1171910c6c07d44bd3c0a234 Author: Eric Paris Date: Thu Oct 28 17:21:56 2010 -0400 fsnotify: correctly handle return codes from listeners When fsnotify groups return errors they are ignored. For permissions events these should be passed back up the stack, but for most events these should continue to be ignored. Signed-off-by: Eric Paris commit 2868201965419b9011f3f07fd80e765181343cb1 Author: Eric Paris Date: Thu Oct 28 17:21:56 2010 -0400 fanotify: use __aligned_u64 in fanotify userspace metadata Currently the userspace struct exposed by fanotify uses __attribute__((packed)) to make sure that alignment works on multiarch platforms. Since this causes a severe performance penalty on some platforms we are going to switch to using explicit alignment notation on the 64bit values so we don't have to use 'packed' Signed-off-by: Eric Paris commit 4231a23530a30e86eb32fbe869bbef1b3e54d5aa Author: Eric Paris Date: Thu Oct 28 17:21:56 2010 -0400 fanotify: implement fanotify listener ordering The fanotify listeners needs to be able to specify what types of operations they are going to perform so they can be ordered appropriately between other listeners doing other types of operations. They need this to be able to make sure that things like hierarchichal storage managers will get access to inodes before processes which need the data. This patch defines 3 possible uses which groups must indicate in the fanotify_init() flags. FAN_CLASS_PRE_CONTENT FAN_CLASS_CONTENT FAN_CLASS_NOTIF Groups will receive notification in that order. The order between 2 groups in the same class is undeterministic. FAN_CLASS_PRE_CONTENT is intended to be used by listeners which need access to the inode before they are certain that the inode contains it's final data. A hierarchical storage manager should choose to use this class. FAN_CLASS_CONTENT is intended to be used by listeners which need access to the inode after it contains its intended contents. This would be the appropriate level for an AV solution or document control system. FAN_CLASS_NOTIF is intended for normal async notification about access, much the same as inotify and dnotify. Syncronous permissions events are not permitted at this class. Signed-off-by: Eric Paris commit 6ad2d4e3e97ee4bfde0b45e8dfe37911330fc4aa Author: Eric Paris Date: Thu Oct 28 17:21:56 2010 -0400 fsnotify: implement ordering between notifiers fanotify needs to be able to specify that some groups get events before others. They use this idea to make sure that a hierarchical storage manager gets access to files before programs which actually use them. This is purely infrastructure. Everything will have a priority of 0, but the infrastructure will exist for it to be non-zero. Signed-off-by: Eric Paris commit 9343919c1495b085a4a1cf4cbada8d7888daf099 Author: Eric Paris Date: Thu Oct 28 17:21:56 2010 -0400 fanotify: allow fanotify to be built We disabled the ability to build fanotify in commit 7c5347733dcc4ba0ba. This reverts that commit and allows people to build fanotify. Signed-off-by: Eric Paris commit d63f6d1b4d3ad0d88685a5f8eb1c3cac01ddd0db Author: Mike Frysinger Date: Tue Oct 19 16:11:53 2010 -0400 initramfs: Fix build break on symbol-prefixed archs Signed-off-by: Mike Frysinger Signed-off-by: Michal Marek commit df4d303647ebe5e2f7e473e32ccef9f8549e9d45 Author: Arnaud Lacombe Date: Wed Oct 27 22:24:49 2010 -0400 kbuild: convert `arch/tile' to the kconfig mainmenu upgrade Signed-off-by: Arnaud Lacombe Signed-off-by: Michal Marek commit 089282fb028198169a0f62f8f833ab6d06bdbb3c Author: David S. Miller Date: Thu Oct 28 12:59:53 2010 -0700 netfilter: xt_socket: Make tproto signed in socket_mt6_v1(). Otherwise error indications from ipv6_find_hdr() won't be noticed. This required making the protocol argument to extract_icmp6_fields() signed too. Reported-by: Geert Uytterhoeven Signed-off-by: David S. Miller commit 0af3d00bad38d3bb9912a60928ad0669f17bdb76 Author: Josef Bacik Date: Mon Jun 21 14:48:16 2010 -0400 Btrfs: create special free space cache inode In order to save free space cache, we need an inode to hold the data, and we need a special item to point at the right inode for the right block group. So first, create a special item that will point to the right inode, and the number of extent entries we will have and the number of bitmaps we will have. We truncate and pre-allocate space everytime to make sure it's uptodate. This feature will be turned on as soon as you mount with -o space_cache, however it is safe to boot into old kernels, they will just generate the cache the old fashion way. When you boot back into a newer kernel we will notice that we modified and not the cache and automatically discard the cache. Signed-off-by: Josef Bacik commit 12364a4f05295cb1e4a161d36b486c248c11c485 Author: Geert Uytterhoeven Date: Thu Oct 28 20:06:19 2010 +0200 nfs4: The difference of 2 pointers is ptrdiff_t On m68k, which is 32-bit: fs/nfs/nfs4proc.c: In function ‘nfs41_sequence_done’: fs/nfs/nfs4proc.c:432: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘int’ fs/nfs/nfs4proc.c: In function ‘nfs4_setup_sequence’: fs/nfs/nfs4proc.c:576: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘int’ On 32-bit, ptrdiff_t is int; on 64-bit, ptrdiff_t is long. Introduced by commit dfb4f309830359352539919f23accc59a20a3758 ("NFSv4.1: keep seq_res.sr_slot as pointer rather than an index") Signed-off-by: Geert Uytterhoeven Signed-off-by: Trond Myklebust commit 9bafc74163d8bccca9810159aab39be926fb877c Merge: 8df6516 b377330 Author: Russell King Date: Thu Oct 28 20:39:13 2010 +0100 Merge branch 'devel-stable' into devel commit 2d3b07c07b39c4b7d9b6641052a02d996cd5d87c Merge: 150cd84 8654b1c Author: Linus Torvalds Date: Thu Oct 28 12:25:42 2010 -0700 Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: Move olpc to platform x86: Move uv to platform x86: Move mrst to platform x86: Move scx200 to platform x86: Move visws to platform x86: Move efi to platform x86: Move sfi to platform x86: Add platform directory commit 150cd843fac0160fce616fb3e5cbe64e9db7481e Merge: f063a0c 44c1bcd Author: Linus Torvalds Date: Thu Oct 28 12:17:00 2010 -0700 Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging: (68 commits) hwmon: (it87) Add support for the IT8721F/IT8758E hwmon: (it87) Move conversion functions hwmon: Remove many EXPERIMENTAL flags hwmon: (lm85) Add support for ADT7468 high-frequency PWM mode hwmon: (lm85) Document the ADT7468 as supported hwmon: (lm85) Fix ADT7468 frequency table hwmon: I2C addresses are constant Move ams driver to macintosh hwmon: (pcf8591) Don't attempt to detect devices hwmon: (pcf8591) Register as a hwmon device hwmon: (w83795) Use standard attributes for chassis intrusion hwmon: (w83795) Exclude fan control feature by default hwmon: (w83795) Add myself as co-author and maintainer hwmon: (w83795) More style cleanups hwmon: (w83795) Fix LSB reading of voltage limits hwmon: (w83795) Use dev_get_drvdata() where possible hwmon: (w83795) Delay reading pwm config registers hwmon: (w83795) Delay reading limit registers hwmon: (w83795) Move register reads to dedicated functions hwmon: (w83795) Pack similar register reads ... commit b3773301c4290f054aa2aa5379e59a1bf4f78bdf Merge: be6786a 1a0b1ea Author: Russell King Date: Thu Oct 28 20:14:38 2010 +0100 Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/genesis-2.6 into devel-stable Conflicts: drivers/video/sh_mobile_hdmi.c commit f063a0c0c995d010960efcc1b2ed14b99674f25c Merge: 3c37629 5af6347 Author: Linus Torvalds Date: Thu Oct 28 12:13:00 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (841 commits) Staging: brcm80211: fix usage of roundup in structures Staging: bcm: fix up network device reference counting Staging: keucr: fix up US_ macro change staging: brcm80211: brcmfmac: Removed codeversion from firmware filenames. staging: brcm80211: Remove unnecessary header files. staging: brcm80211: Remove unnecessary includes from bcmutils.c staging: brcm80211: Removed unnecessary pktsetprio() function. Staging: brcm80211: remove typedefs.h Staging: brcm80211: remove uintptr typedef usage Staging: hv: remove struct vmbus_channel_interface Staging: hv: remove Open from struct vmbus_channel_interface Staging: hv: storvsc: call vmbus_open directly Staging: hv: netvsc: call vmbus_open directly Staging: hv: channel: export vmbus_open to modules Staging: hv: remove Close from struct vmbus_channel_interface Staging: hv: netvsc: call vmbus_close directly Staging: hv: storvsc: call vmbus_close directly Staging: hv: channel: export vmbus_close to modules Staging: hv: remove SendPacket from struct vmbus_channel_interface Staging: hv: storvsc: call vmbus_sendpacket directly ... Fix up conflicts in drivers/staging/cx25821/cx25821-audio-upstream.c drivers/staging/cx25821/cx25821-audio.h due to warring whitespace cleanups (neither of which were all that great) commit 3c3762957818dc902222733a8184f23102e24472 Merge: e9f29c9 63111a3 Author: Linus Torvalds Date: Thu Oct 28 12:06:51 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (32 commits) sh: intc: switch irq_desc iteration to new active IRQ iterator. sh: fix up cpu hotplug IRQ migration for irq_data changes. sh: oprofile: Make sure the backtrace op is available for timer-fallback. sh64: oprofile: Fix up kernel stack pointer size mismatch. sh: oprofile: Fix up and extend op_name_from_perf_id(). sh: lockless get_user_pages_fast() sh64: _PAGE_SPECIAL support. sound: sh: ctrl_in/outX to __raw_read/writeX conversion. sh: disable deprecated genirq support. sh: update show_interrupts() for irq_data chip lookup. sh: intc: irq_data conversion. sh64: irq_data conversion. sh64: update for IRQ flag handling naming changes. rtc: rtc-rs5c313: ctrl_in/outX to __raw_read/writeX conversion. sh: mach-se: irq_data conversion. input: hp680_ts_input: ctrl_in/outX to __raw_read/writeX conversion. input: jornada680_kbd: ctrl_in/outX to __raw_read/writeX conversion. sh: hd64461: irq_data conversion. sh: mach-x3proto: irq_data conversion. sh: mach-systemh: irq_data conversion. ... commit e9f29c9a56ca06d0effa557823a737cbe7ec09f7 Merge: 800416f 1af3c2e Author: Linus Torvalds Date: Thu Oct 28 11:59:52 2010 -0700 Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 * 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: (27 commits) x86: allocate space within a region top-down x86: update iomem_resource end based on CPU physical address capabilities x86/PCI: allocate space from the end of a region, not the beginning PCI: allocate bus resources from the top down resources: support allocating space within a region from the top down resources: handle overflow when aligning start of available area resources: ensure callback doesn't allocate outside available space resources: factor out resource_clip() to simplify find_resource() resources: add a default alignf to simplify find_resource() x86/PCI: MMCONFIG: fix region end calculation PCI: Add support for polling PME state on suspended legacy PCI devices PCI: Export some PCI PM functionality PCI: fix message typo PCI: log vendor/device ID always PCI: update Intel chipset names and defines PCI: use new ccflags variable in Makefile PCI: add PCI_MSIX_TABLE/PBA defines PCI: add PCI vendor id for STmicroelectronics x86/PCI: irq and pci_ids patch for Intel Patsburg DeviceIDs PCI: OLPC: Only enable PCI configuration type override on XO-1 ... commit 19449bfc10d163f0024dd5ae5808e28cda32e7b4 Author: avisconti Date: Mon Oct 25 18:58:14 2010 +0000 stmmac: enable/disable rx/tx in the core with a single write. This patch enables and disables the rx and tx bits in the MAC control reg by using a single write operation. This also solves a possible problem (spotted on SPEAr platforms) at 10Mbps where two consecutive writes to a MAC control register can take more than 4 phy_clk cycles. Signed-off-by: Armando Visconti Acked-by: Giuseppe Cavallaro Signed-off-by: David S. Miller commit d1abc9a9aca06ceb795eb5405264eaafe016ec5c Author: Geert Uytterhoeven Date: Thu Oct 28 11:34:58 2010 -0700 net: atarilance - flags should be unsigned long drivers/net/atarilance.c: In function ‘addr_accessible’: drivers/net/atarilance.c:413: warning: comparison of distinct pointer types lacks a cast drivers/net/atarilance.c:450: warning: comparison of distinct pointer types lacks a cast Signed-off-by: Geert Uytterhoeven Signed-off-by: David S. Miller commit 683b65f89a7c26d9a9180d25066815ef5a31bd71 Author: Rajesh Borundia Date: Tue Oct 26 22:51:50 2010 +0000 netxen: fix kdump Reset the whole hw instead of freeing hw resources consumed by each pci function. Signed-off-by: Rajesh Borundia Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 448d7b5daf043d109df98e3e8f8deb165c2e8896 Author: Nelson Elhage Date: Thu Oct 28 11:31:07 2010 -0700 pktgen: Limit how much data we copy onto the stack. A program that accidentally writes too much data to the pktgen file can overflow the kernel stack and oops the machine. This is only triggerable by root, so there's no security issue, but it's still an unfortunate bug. printk() won't print more than 1024 bytes in a single call, anyways, so let's just never copy more than that much data. We're on a fairly shallow stack, so that should be safe even with CONFIG_4KSTACKS. Signed-off-by: Nelson Elhage Signed-off-by: David S. Miller commit 8acfe468b0384e834a303f08ebc4953d72fb690a Author: David S. Miller Date: Thu Oct 28 11:41:55 2010 -0700 net: Limit socket I/O iovec total length to INT_MAX. This helps protect us from overflow issues down in the individual protocol sendmsg/recvmsg handlers. Once we hit INT_MAX we truncate out the rest of the iovec by setting the iov_len members to zero. This works because: 1) For SOCK_STREAM and SOCK_SEQPACKET sockets, partial writes are allowed and the application will just continue with another write to send the rest of the data. 2) For datagram oriented sockets, where there must be a one-to-one correspondance between write() calls and packets on the wire, INT_MAX is going to be far larger than the packet size limit the protocol is going to check for and signal with -EMSGSIZE. Based upon a patch by Linus Torvalds. Signed-off-by: David S. Miller commit 349f6c5c5d827db909a69e5b9e844e8623c8e881 Author: Dmitry Artamonow Date: Thu Oct 28 10:31:58 2010 -0700 USB: gadget: fix ethernet gadget crash in gether_setup Crash is triggered by commit e6484930d7 ("net: allocate tx queues in register_netdevice"), which moved tx netqueue creation into register_netdev. So now calling netif_stop_queue() before register_netdev causes an oops. Move netif_stop_queue() after net device registration to fix crash. Signed-off-by: Dmitry Artamonow Signed-off-by: David S. Miller commit 44c1bcd4bcde32b2a31a6775a277706ab489c0dc Author: Jean Delvare Date: Thu Oct 28 20:31:51 2010 +0200 hwmon: (it87) Add support for the IT8721F/IT8758E Add support for the IT8721F/IT8758E. These new chips differ from the older IT87xxF chips in the following ways: * ADC LSB is 12 mV instead of 16 mV. * PWM values are 8-bit instead of 7-bit. There are other minor changes we don't have to care about in the driver. Another change is that we will handle internal voltage scaling in the driver instead of delegating the work to user-space. Signed-off-by: Jean Delvare commit 0df6454da937548594774788b009616ed27607ed Author: Jean Delvare Date: Thu Oct 28 20:31:51 2010 +0200 hwmon: (it87) Move conversion functions Move conversion functions until after structure defintions. This is needed for future changes which make use of the structures in the conversion funtcions. Signed-off-by: Jean Delvare commit 0b22ce3b7de718882e2c2ca979490a50d798a838 Author: Jean Delvare Date: Thu Oct 28 20:31:50 2010 +0200 hwmon: Remove many EXPERIMENTAL flags Remove the dependency on EXPERIMENTAL for all drivers which are in the kernel tree for a long time, are known to work properly and for which we have documentation. Signed-off-by: Jean Delvare Cc: Corentin Labbe Cc: Riku Voipio Cc: Juerg Haefliger Acked-by: Guenter Roeck commit f6c61cff8bcb58b8dfb645d4243a049908c02024 Author: Jean Delvare Date: Thu Oct 28 20:31:50 2010 +0200 hwmon: (lm85) Add support for ADT7468 high-frequency PWM mode The ADT7468 supports a high-frequency PWM output mode where all PWM outputs are driven by a 22.5 kHz clock. Add support for this mode, and document it, as it may surprise the user that setting one PWM output frequency also affects the other PWM outputs. Signed-off-by: Jean Delvare Cc: Darrick J. Wong Acked-by: Guenter Roeck commit c36364dbf38382ef6be2fb99a3ce361a679c0ecb Author: Jean Delvare Date: Thu Oct 28 20:31:50 2010 +0200 hwmon: (lm85) Document the ADT7468 as supported Signed-off-by: Jean Delvare Cc: Darrick J. Wong Acked-by: Guenter Roeck commit fa7a5797e57d2ed71f9a6fb44f0ae42c2d7b74b7 Author: Jean Delvare Date: Thu Oct 28 20:31:50 2010 +0200 hwmon: (lm85) Fix ADT7468 frequency table The ADT7468 uses the same frequency table as the ADT7463. Signed-off-by: Jean Delvare Cc: stable@kernel.org Cc: Darrick J. Wong Acked-by: Guenter Roeck commit 918ee91c071d6248c48bc6457a6dea286146e3ad Author: Jean Delvare Date: Thu Oct 28 20:31:50 2010 +0200 hwmon: I2C addresses are constant We can mark normal_i2c const. Almost all drivers do that already, so fix the 3 remaining ones before they are used as (bad) examples for new drivers. Signed-off-by: Jean Delvare Cc: George Joseph Reviewed-by: Guenter Roeck commit bd5f47ec961594b1091839333600008f8166fd00 Author: Jean Delvare Date: Thu Oct 28 20:31:50 2010 +0200 Move ams driver to macintosh The ams driver isn't a hardware monitoring driver, so it shouldn't live under driver/hwmon. drivers/macintosh seems much more appropriate, as the driver is only useful on PowerBooks and iBooks. Signed-off-by: Jean Delvare Cc: Guenter Roeck Cc: Stelian Pop Cc: Michael Hanselmann Cc: Benjamin Herrenschmidt Cc: Grant Likely commit 6dfee85397a47063291fe199eaf950bee7944454 Author: Jean Delvare Date: Thu Oct 28 20:31:50 2010 +0200 hwmon: (pcf8591) Don't attempt to detect devices The PCF8591 can't be detected, don't even try. There are plenty of other means to instantiate i2c devices these days. Signed-off-by: Jean Delvare Reviewed-by: Guenter Roeck Cc: Aurelien Jarno commit 4275fcd65d3b4a504b7779e532c81a927afd28c0 Author: Jean Delvare Date: Thu Oct 28 20:31:49 2010 +0200 hwmon: (pcf8591) Register as a hwmon device Register PCF8591 devices as hwmon devices. There's little point in implementing the standard sysfs interface if we don't register it in a way libsensors will pick it. Signed-off-by: Jean Delvare Reviewed-by: Guenter Roeck Cc: Aurelien Jarno commit 24377101023d3c66136123bd8b20441814da6a90 Author: Jean Delvare Date: Thu Oct 28 20:31:49 2010 +0200 hwmon: (w83795) Use standard attributes for chassis intrusion Follow the standard attribute naming for the chassis intrusion feature. I couldn't test the beeping (my board apparently doesn't do that) but the alarm works fine. Signed-off-by: Jean Delvare Acked-by: Guenter Roeck commit 00030af23153f1958f015df8b9fec8c29fcca8b8 Author: Jean Delvare Date: Thu Oct 28 20:31:49 2010 +0200 hwmon: (w83795) Exclude fan control feature by default The fan control feature of the w83795 driver is insufficiently reviewed and tested for public consumption at this time, so make it optional and disabled by default. We will change the default when review and testing is deemed sufficient. Ultimately the option will go away. Signed-off-by: Jean Delvare Acked-by: Guenter Roeck commit e3760b432d589ddd9bdb8c337539b815125bc7aa Author: Jean Delvare Date: Thu Oct 28 20:31:49 2010 +0200 hwmon: (w83795) Add myself as co-author and maintainer I've made so many changes to the w83795 driver that it's only fair to list myself as a co-author. I'll also maintain the driver for some time. There's more work needed on the driver for sure. Signed-off-by: Jean Delvare Acked-by: Guenter Roeck commit eb02755a50f8f3508030b311e3788426fbdc23b7 Author: Jean Delvare Date: Thu Oct 28 20:31:49 2010 +0200 hwmon: (w83795) More style cleanups Cleanups suggested by Guenter Roeck, falling into 4 categories: * Swapping test orders, because if (var == CONSTANT) is much easier to read than if (CONSTANT == var). * Simplifying comparisons with 0. * Dropping unneeded masks. * Dropping unneeded parentheses and curly braces. Signed-off-by: Jean Delvare Acked-by: Guenter Roeck commit 5d2cd958f777e533fa2809527836996f59b2d823 Author: Jean Delvare Date: Thu Oct 28 20:31:49 2010 +0200 hwmon: (w83795) Fix LSB reading of voltage limits Wrong index caused the wrong register value to be read, resulting in random LSB for voltage limits. Signed-off-by: Jean Delvare commit 21fc977551da43ec21ae0ebb859411afd4243d2b Author: Jean Delvare Date: Thu Oct 28 20:31:49 2010 +0200 hwmon: (w83795) Use dev_get_drvdata() where possible When we don't need the client pointer, calling dev_get_drvdata() is more efficient that calling to_i2c_client() and then i2c_get_clientdata(). Signed-off-by: Jean Delvare commit 1bb3450ce5050bc677c1995a60a0ddfe9e33e7b6 Author: Jean Delvare Date: Thu Oct 28 20:31:48 2010 +0200 hwmon: (w83795) Delay reading pwm config registers Wait until we need the pwm config register values, instead of pre-reading them. This saves over 1 second on modprobe on my test system. Obviously this time is added when first accessing pwm config attributes, however not everybody will use them, so it seems unfair to slow down driver loading (and thus boot) for an optional feature. Signed-off-by: Jean Delvare commit 2ae61de90545fe3dadae8119181c430d89a8627b Author: Jean Delvare Date: Thu Oct 28 20:31:48 2010 +0200 hwmon: (w83795) Delay reading limit registers Wait until we need the limit register values, instead of pre-reading them. This saves 544 ms on modprobe on my test system. Obviously this time is added when first running "sensors" or any other monitoring application, but I think it is better than slowing down the boot. Signed-off-by: Jean Delvare commit 0d7237bfd13a0a8df270654223c15a16b368a3bd Author: Jean Delvare Date: Thu Oct 28 20:31:48 2010 +0200 hwmon: (w83795) Move register reads to dedicated functions Move initial register reads out of probe, to dedicated functions. This makes the code clearer, and will be needed if we want to delay calling these functions until they are needed, or want to call them periodically. Signed-off-by: Jean Delvare Acked-by: Guenter Roeck commit 476a4e5d3768ac72bb342166db294c0a9d2c010f Author: Jean Delvare Date: Thu Oct 28 20:31:48 2010 +0200 hwmon: (w83795) Pack similar register reads Pack similar register reads using for loops. Signed-off-by: Jean Delvare commit fd7f82b8a37ff4d400c2db9c9fa8f9467dc54a08 Author: Jean Delvare Date: Thu Oct 28 20:31:48 2010 +0200 hwmon: (w83795) Make W83795_REG_PWM more efficient Cascaded conditionals are inefficient. Reorder the fields so that PWM register addresses can be computed more efficiently. Signed-off-by: Jean Delvare Acked-by: Guenter Roeck commit 5f7b77cbd4599b6a90d18981d9883a3e20e689fb Author: Jean Delvare Date: Thu Oct 28 20:31:48 2010 +0200 hwmon: (w83795) Don't pre-read values we'll update later There is no point in reading registers during initialization if we will refresh the values in the update function later. This is only slowing down the driver loading with no benefit, stop doing it. This change saves 480 ms on driver load on my test system. Signed-off-by: Jean Delvare commit 39deb6993e7c22274c272c95013eef886f7004e8 Author: Jean Delvare Date: Thu Oct 28 20:31:48 2010 +0200 hwmon: (w83795) Simplify temperature sensor type handling All 3 temperature sensor type sysfs functions (show_temp_mode, store_temp_mode and show_dts_mode) can be simplified. We don't create these files when the correponding input isn't in temperature monitoring mode, so there is no point in handling that case. Likewise, we don't allow changing inputs from temperature to voltage, so the code handling this case is dead and can be removed. Signed-off-by: Jean Delvare commit cd316df582925f3dab1ce5863651b3e260687035 Author: Jean Delvare Date: Thu Oct 28 20:31:48 2010 +0200 hwmon: (w83795) Drop _NUM constants Consistently use ARRAY_SIZE() to control for loops. Signed-off-by: Jean Delvare commit 49c7347a44224b5b87c7e6a3c6c92619d77c06d5 Author: Jean Delvare Date: Thu Oct 28 20:31:48 2010 +0200 hwmon: (w83795) Drop REST_VLT_BEGIN/END Get rid of REST_VLT_BEGIN and REST_VLT_END, they don't make the code more readable. Signed-off-by: Jean Delvare commit 7eb8d508b5cfabbb147670ee063438469d94c465 Author: Jean Delvare Date: Thu Oct 28 20:31:47 2010 +0200 hwmon: (w83795) Fix parity checks x % 1 is obviously wrong, as it always evaluates to 0. You want x % 2, or x & 1, for parity checking. Signed-off-by: Jean Delvare commit a654b9d4e7152b06557e2f22bcf0a245bc88bc98 Author: Jean Delvare Date: Thu Oct 28 20:31:47 2010 +0200 hwmon: (w83795) Get rid of VRLSB_SHIFT VRLSB_SHIFT is a non-sense, the actual shift depends on the sensor type (fans need 4, other sensors need 6). Get rid of it to prevent any confusion. Also get rid of the useless masking, the meaningful bits are always the MSb so there's nothing to mask out after shifting. Signed-off-by: Jean Delvare commit c1a792a6eea42d88a99e6ace215b22fbdb76c7b6 Author: Jean Delvare Date: Thu Oct 28 20:31:47 2010 +0200 hwmon: (w83795) Avoid reading the same register twice Shorten driver load time by avoiding duplicate register access during initialization. This saves 112 ms on modprobe on my test system. Signed-off-by: Jean Delvare commit 02728ffef9c2cf067e654e832b8c282a8a4d0b16 Author: Jean Delvare Date: Thu Oct 28 20:31:47 2010 +0200 hwmon: (w83795) Rework beep_enable implementation Handle beep_enable just like all other beep bits. It doesn't need anything special, so let's avoid redundant code. This also saves a duplicate register read at initialization time. Signed-off-by: Jean Delvare commit 54891a3c135b30ca0718dbf81f78260795a5b2fe Author: Jean Delvare Date: Thu Oct 28 20:31:47 2010 +0200 hwmon: (w83795) Report PECI agent Tbase values On systems with PECI, report PECI agent Tbase temperature values. This is informative only. Signed-off-by: Jean Delvare commit dd127f5ccd7c61eb7ee215120a7809eb67c1ed7f Author: Jean Delvare Date: Thu Oct 28 20:31:47 2010 +0200 hwmon: (w83795) Properly handle negative temperatures The temperature registers hold regular 2's complement values, no need to add any arithmetics. Signed-off-by: Jean Delvare commit a0ce402fb006bd694436be8c8522fbe5e6823ac1 Author: Jean Delvare Date: Thu Oct 28 20:31:47 2010 +0200 hwmon: (w83795) Rename temperature limit attributes Follow the standard for temperature limit attribute naming, so that libsensors will pick the values. Signed-off-by: Jean Delvare commit 01879a855fb6bdb3fb820344a7a145de8a5cdbda Author: Jean Delvare Date: Thu Oct 28 20:31:47 2010 +0200 hwmon: (w83795) Fix PWM duty cycle frequency attributes The PWM duty cycle frequenty attributes are improperly named (fanN_div instead of pwmN_div) and contain raw values instead of actual frequencies. Rename them and fix their contents. Also improve the logic when the user asks for a new frequency, to always pick the closest supported frequency. The algorithm could certainly be optimized, but the operation is infrequent enough that I don't think it's worth the effort. Signed-off-by: Jean Delvare commit 0e256018b0f35d1b22ca37e1d0e207f7ba3d0076 Author: Jean Delvare Date: Thu Oct 28 20:31:46 2010 +0200 hwmon: (w83795) Add support for dynamic in0-2 limits The W83795G can be configured to set the in0, in1 and/or in2 voltage limits dynamically based on VID input pins. Switch the respective sysfs attributes to read-only. Signed-off-by: Jean Delvare commit 6c82b2f3fb31e43a9b898769afd2151ca64986a4 Author: Jean Delvare Date: Thu Oct 28 20:31:46 2010 +0200 hwmon: (w83795) Fix LSB reading of fan speeds Misplaced parentheses caused the wrong register value to be read, resulting in random LSB for fan speed values and limits. Signed-off-by: Jean Delvare commit 71caf46fbf39207a324a16ddb6d8ef37c05777b9 Author: Jean Delvare Date: Thu Oct 28 20:31:46 2010 +0200 hwmon: (w83795) Clean up probe function * The data structure is zalloc'd, so no need to set individual fields to 0 explicitly. * Refactor the handling of pins that can be used for either temperature or voltage monitoring. * Misc other clean-ups. Signed-off-by: Jean Delvare commit 6f9dfd85f7b14dd3ea87106909dc54def08947b1 Author: Jean Delvare Date: Thu Oct 28 20:31:46 2010 +0200 hwmon: (w83795) Fix in17-in20 gain factor Gain bit set means 1x gain and cleared means 8x gain, not the other way around. Signed-off-by: Jean Delvare commit 80646b95863ba282330d07290c79254c2f002139 Author: Jean Delvare Date: Thu Oct 28 20:31:46 2010 +0200 hwmon: (w83795) Only start monitoring if needed This saves an SMBus write if monitoring was already enabled. Signed-off-by: Jean Delvare commit 86ef4d2fd5921ff0bcfd1c0d88403a08862087bc Author: Jean Delvare Date: Thu Oct 28 20:31:46 2010 +0200 hwmon: (w83795) Add const markers Attribute structures can be made const. Same for the I2C address list. Signed-off-by: Jean Delvare commit b2cc528e5838d744892b30c5104bd872a439088f Author: Jean Delvare Date: Thu Oct 28 20:31:46 2010 +0200 hwmon: (w83795) Only create fan[1-8]_target files when needed Only create fan[1-8]_target files when the fan in question can be controlled (PWM output is present.) Also name these files according to the standard. Signed-off-by: Jean Delvare commit b5f6a90a0bbedc07a0b0b82b83aa716c7203fcd2 Author: Jean Delvare Date: Thu Oct 28 20:31:46 2010 +0200 hwmon: (w83795) Move PWM attributes to a dedidated array Use a dedicated 2D array for PWM attributes. This way, PWM attributes are handled the same way as other attributes, this is more consistent. Signed-off-by: Jean Delvare commit 87df0dad3e024538d2d0d2ce786230e639c2ea8b Author: Jean Delvare Date: Thu Oct 28 20:31:45 2010 +0200 hwmon: (w83795) Use 2D arrays for many device attributes Use 2D arrays for in, fan, temp and dts device attributes. Using linear arrays is too risky as we have to skip some groups depending on the device model and configuration. Adding or removing an attribute would let the driver build silently but then it would crash at runtime. With 2D arrays, the consistency checking happens at build time, which is much safer. Signed-off-by: Jean Delvare commit 6f3dcde9c6dcbbe781a2a98900552bcb989733e3 Author: Jean Delvare Date: Thu Oct 28 20:31:45 2010 +0200 hwmon: (w83795) Merge w83795_create_files and w83795_remove_files Functions w83795_create_files and w83795_remove_files iterate over the same set of files, just calling a different function. Merge them into a single function which takes the action as a parameter. This saves code, and also ensure that file creation and deletion are in sync. Signed-off-by: Jean Delvare commit 892514a6372d49ffe9749fb86cc587b4dce90733 Author: Jean Delvare Date: Thu Oct 28 20:31:45 2010 +0200 hwmon: (w83795) Move file creation to a separate function too Function w83795_probe() is way too big, move file creation to a separate function to make it more readable. Signed-off-by: Jean Delvare commit 2fa09878ba1dc458b8cb6e9c8fbc8f2e5401d2b2 Author: Jean Delvare Date: Thu Oct 28 20:31:45 2010 +0200 hwmon: (w83795) Move files removal to a separate function Sysfs files must be removed on device removal but also when device registration fails. Move the code to a separate function to avoid code redundancy. Signed-off-by: Jean Delvare commit 2be381de0f1e5e0324e8b373e7a84fc9d25d05d3 Author: Jean Delvare Date: Thu Oct 28 20:31:45 2010 +0200 hwmon: (w83795) Improve detection routine Check for additional identification registers. Improve debugging messages on failed detection. Signed-off-by: Jean Delvare commit b2469f422f9ee2054359c4ec609c3bdb1f2d52f5 Author: Jean Delvare Date: Thu Oct 28 20:31:45 2010 +0200 hwmon: (w83795) Refactor bank selection Move the bank selection code to a separate function, to avoid duplicating it in read and write functions. Improve error reporting on register access error. Signed-off-by: Jean Delvare commit 093d1a4794cc23dd221019eb1cdf42b16b48abcc Author: Jean Delvare Date: Thu Oct 28 20:31:45 2010 +0200 hwmon: (w83795) Drop duplicate enum Enum chips and chip_types are redundant, get rid of the former. Fix the detection code to properly identify the chip variant and name the client accordingly. Signed-off-by: Jean Delvare commit 315bacfdbe5a77309c256b296f30bee13d59462b Author: Jean Delvare Date: Thu Oct 28 20:31:45 2010 +0200 hwmon: (w83795) Misc cleanups * Improve driver description. * Drop unused macro. * Drop unreachable code. Signed-off-by: Jean Delvare commit 792d376b4f3f6af302d40373fa864f8b8e691c53 Author: Wei Song Date: Thu Oct 28 20:31:44 2010 +0200 hwmon: New driver for the W83795G/ADG monitoring chips There is still much work needed, but I wanted to give Wei the credit he deserves. I've merged some of my own fixes already, to make gcc and checkpatch happy. Individual fixes and improvements from me will follow. [JD: Fix build errors] [JD: Coding style cleanups] [JD: Get rid of forward declarations] [JD: Drop VID support] [JD: Drop fault output control feature] [JD: Use lowercase for inline function names] [JD: Use strict variants of the strtol/ul functions] [JD: Shorten the read and write function names] Signed-off-by: Jean Delvare commit 62991f7ab395b57b86512d47a6017266e2e615f2 Author: Maurus Cuelenaere Date: Thu Oct 28 20:31:44 2010 +0200 hwmon: (s3c-hwmon) Depend on S3C_ADC This way we don't need to modify Kconfig every time a new SoC comes along to make this driver support it. Also fix some typos while I'm at it. Signed-off-by: Maurus Cuelenaere Reviewed-by: Guenter Roeck Signed-off-by: Jean Delvare commit 9c627e3be3e8f36eda73ed9e8aa4763582841c1f Author: Thomas Gleixner Date: Thu Oct 28 20:31:44 2010 +0200 hwmon: (s3c-hwmon) Use a real mutex The semaphore which protects the ADC is semantically a mutex. Use a real mutex. Signed-off-by: Thomas Gleixner Cc: Ben Dooks Signed-off-by: Jean Delvare commit caaa0f36c378c6fec6fd5260a63566e002ac4a84 Author: Shubhrajyoti D Date: Thu Oct 28 20:31:44 2010 +0200 hwmon: (lm75) Trivial changes to pacify the checkpatch Some trivial changes to pacify the checkpatch. Signed-off-by: Shubhrajyoti D Signed-off-by: Jean Delvare commit e3cd9528af4d1fd404eefe16e52ae421f99a7817 Author: Shubhrajyoti D Date: Thu Oct 28 20:31:44 2010 +0200 hwmon: (lm75) Make the writing to sysfs more robust Currently we get the checkpatch warning consider using strict_strtol in preference to simple_strtol. Also we should not allow any partially numeric values. Signed-off-by: Shubhrajyoti D Signed-off-by: Jean Delvare commit c4f99a2b8fb4c564865f0037a2b7be690d4409f3 Author: Jean Delvare Date: Thu Oct 28 20:31:44 2010 +0200 hwmon: (lm90) Add support for the W83L771W/G I was wondering if that chip ever existed publicly... Apparently yes, so add support for it. Signed-off-by: Jean Delvare Tested-by: Alexander Stein Acked-by: Guenter Roeck commit 0c01b644f77a3df892a48a59901997469aeab0a7 Author: Guenter Roeck Date: Thu Oct 28 20:31:44 2010 +0200 hwmon: (lm90) Add support for update_interval sysfs attribute Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 1179324c411edcefb28a5293f8cc6a5bd9567448 Author: Guenter Roeck Date: Thu Oct 28 20:31:44 2010 +0200 hwmon: (lm90) Introduce capability flag to indicate broken ALERT functionality Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 4667bcb8d8fc081a804a798df70dc91241946e0a Author: Guenter Roeck Date: Thu Oct 28 20:31:43 2010 +0200 hwmon: (lm90) Introduce chip parameter structure Instead of using switch/case and if statements in probe, define chip specific functionality in a parameter structure array. Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 15b66ab69051c014d0ba9f46f7081a8a7e6ad1c3 Author: Guenter Roeck Date: Thu Oct 28 20:31:43 2010 +0200 hwmon: (lm90) Rearrange code to no longer require forward declarations Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 06e1c0a2167d48442d0bd06373390886670aa6e5 Author: Guenter Roeck Date: Thu Oct 28 20:31:43 2010 +0200 hwmon: (lm90) Add support for max6695 and max6696 Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 6948708dd07573c578aa99f80915cd1867334abe Author: Guenter Roeck Date: Thu Oct 28 20:31:43 2010 +0200 hwmon: (lm90) Add support for extra features of max6659 Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 13c84951a3d75ba820adf47eb2a3b1c5ab1fa635 Author: Guenter Roeck Date: Thu Oct 28 20:31:43 2010 +0200 hwmon: (lm90) Add explicit support for max6659 Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 96512861c3733609ac3d558602574674fa95ebf4 Author: Guenter Roeck Date: Thu Oct 28 20:31:43 2010 +0200 hwmon: (lm90) Simplify set_temp11 register calculations Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit b6fc1bacc7eae99d276d096fe0c702b1e13e4499 Author: Guenter Roeck Date: Thu Oct 28 20:31:43 2010 +0200 hwmon: (lm90) Introduce function to delete sysfs files Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 88073bb1ba969d4e3c41dc5f35c902c6b7dab0a7 Author: Guenter Roeck Date: Thu Oct 28 20:31:43 2010 +0200 hwmon: (lm90) Introduce device feature bits Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 11e578129af74c4866cf559e62e981c6415fffd9 Author: Guenter Roeck Date: Thu Oct 28 20:31:42 2010 +0200 hwmon: (lm90) Fix checkpatch errors Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 28e7438faacbd47aaf3e3b43c3074c64be98f5be Author: Guenter Roeck Date: Thu Oct 28 20:31:42 2010 +0200 hwmon: Add tempX_emergency attribute to sysfs ABI Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 628b4504cf69fbe262b41c16a4a3fd61b091d61c Author: Andreas Herrmann Date: Thu Oct 28 20:31:42 2010 +0200 hwmon: (k8temp) Remove superfluous CPU family check The family check in k8temp is not required because the driver is already bound to a northbridge device only used with K8 CPUs. Signed-off-by: Andreas Herrmann Signed-off-by: Jean Delvare commit 4aa2c466a7733af093a526e9d1cdd0b3b90d47e9 Author: Pavel Emelyanov Date: Thu Oct 28 02:00:43 2010 +0000 fib: Fix fib zone and its hash leak on namespace stop When we stop a namespace we flush the table and free one, but the added fn_zone-s (and their hashes if grown) are leaked. Need to free. Tries releases all its stuff in the flushing code. Shame on us - this bug exists since the very first make-fib-per-net patches in 2.6.27 :( Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller commit b1424ed91076db0b19ba4141856150df9b717dde Author: Krishna Kumar Date: Wed Oct 27 19:10:31 2010 +0000 cxgb3: Fix panic in free_tx_desc() I got a few of these panics (on 2.6.36-rc7) when running high number of netperf sessions: BUG: unable to handle kernel paging request at 0000100000000000 IP: [] skb_release_data+0xa0/0xd0 Oops: 0000 [#1] SMP Pid: 2155, comm: vhost-2115 Not tainted 2.6.36-rc7-ORG #1 49Y6512 /System x3650 M2 -[7947AC1]- RIP: 0010:[] [] skb_release_data+0xa0/0xd0 RSP: 0018:ffff880001803738 EFLAGS: 00010206 RAX: ffff880179b0fc00 RBX: ffff880178b441c0 RCX: 0000000000000000 RSP: 0018:ffff880001803738 EFLAGS: 00010206 RAX: ffff880179b0fc00 RBX: ffff880178b441c0 RCX: 0000000000000000 RDX: ffff880179b0fd40 RSI: 0000000000000000 RDI: 0000100000000000 RBP: ffff880001803748 R08: 0000000000000001 R09: ffff88017f117000 R10: ffff88017b990608 R11: ffff88017f117090 R12: ffff880178b441c0 R13: ffff88017f117090 R14: 0000000000000000 R15: ffff880178b441c0 FS: 0000000000000000(0000) GS:ffff880001800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 0000100000000000 CR3: 000000017ea64000 CR4: 00000000000026e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process vhost-2115 (pid: 2155, threadinfo ffff88017d872000, task ffff88017e954680) Stack: ffff880178b441c0 0000000000000007 ffff880001803768 ffffffff81312119 <0> 0000000000000000 0000000000000002 ffff880001803778 ffffffff813121f9 <0> ffff880001803818 ffffffffa012d14c ffffffffa02de076 ffff880001803700 Call Trace: [] __kfree_skb+0x19/0xa0 [] kfree_skb+0x19/0x40 [] free_tx_desc+0x2fc/0x350 [cxgb3] [] ? vhost_poll_wakeup+0x16/0x20 [vhost_net] [] t3_eth_xmit+0x28b/0x380 [cxgb3] [] dev_hard_start_xmit+0x377/0x5a0 [] sch_direct_xmit+0xfa/0x1d0 [] dev_queue_xmit+0x139/0x450 [] neigh_resolve_output+0x125/0x340 [] ip_finish_output+0x14c/0x320 [] ip_output+0xae/0xc0 [] ip_forward_finish+0x3f/0x50 [] ip_forward+0x1ff/0x400 [] ip_rcv_finish+0x119/0x3e0 [] ip_rcv+0x22d/0x300 [] __netif_receive_skb+0x29b/0x570 [] ? netif_receive_skb+0x0/0x80 [] netif_receive_skb+0x78/0x80 [] br_handle_frame_finish+0x198/0x260 [bridge] [] br_nf_pre_routing_finish+0x238/0x380 [bridge] [] ? nf_hook_slow+0x6c/0x100 [] ? br_nf_pre_routing_finish+0x0/0x380 [bridge] [] br_nf_pre_routing+0x698/0x7a0 [bridge] [] nf_iterate+0x64/0xa0 [] ? br_handle_frame_finish+0x0/0x260 [bridge] [] nf_hook_slow+0x6c/0x100 [] ? br_handle_frame_finish+0x0/0x260 [bridge] [] br_handle_frame+0x191/0x240 [bridge] [] ? br_handle_frame+0x0/0x240 [bridge] [] __netif_receive_skb+0x1a3/0x570 [] ? dma_issue_pending_all+0x76/0xa0 [] process_backlog+0x102/0x200 [] net_rx_action+0x100/0x220 [] __do_softirq+0xaf/0x140 [] call_softirq+0x1c/0x30 [] ? do_softirq+0x65/0xa0 [] netif_rx_ni+0x28/0x30 [] tun_sendmsg+0x2cd/0x4b0 [tun] [] handle_tx+0x1df/0x340 [vhost_net] [] handle_tx_kick+0x10/0x20 [vhost_net] [] vhost_worker+0xbb/0x130 [vhost_net] [] ? vhost_worker+0x0/0x130 [vhost_net] [] ? vhost_worker+0x0/0x130 [vhost_net] [] kthread+0x96/0xa0 [] kernel_thread_helper+0x4/0x10 [] ? kthread+0x0/0xa0 [] ? kernel_thread_helper+0x0/0x10 Code: 8b 94 24 d0 00 00 00 49 8b 84 24 d8 00 00 00 48 8d 14 10 0f b7 0a 39 d9 7f d1 48 8b 7a 10 48 85 ff 74 20 48 c7 42 10 00 00 00 00 <48> 8b 1f e8 e8 fb ff ff 48 85 db 48 89 df 75 f0 49 8b 84 24 d8 Patch below fixes the panic. cxgb4 and cxgb4vf already have this fix. Signed-off-by: Krishna Kumar Signed-off-by: David S. Miller commit 69dcfc8aad24fa95ae0a0ad1405cf6847e3ec14a Author: Nishanth Aravamudan Date: Wed Oct 27 19:06:30 2010 +0000 cxgb3: fix crash due to manipulating queues before registration Along the same lines as "cxgb4: fix crash due to manipulating queues before registration" (8f6d9f40476895571df039b6f1f5230ec7faebad), before commit "net: allocate tx queues in register_netdevice" netif_tx_stop_all_queues and related functions could be used between device allocation and registration but now only after registration. cxgb4 has such a call before registration and crashes now. Move it after register_netdev. Signed-off-by: Nishanth Aravamudan Cc: eric.dumazet@gmail.com Cc: sonnyrao@us.ibm.com Cc: Divy Le Ray Cc: Dimitris Michailidis Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Tested-by: Nishanth Aravamudan Acked-by: Divy Le Ray Signed-off-by: David S. Miller commit b7126d8c70a1d4656f1c351de8528df22dfd2d46 Author: Pavel Emelyanov Date: Wed Oct 27 23:01:02 2010 +0000 8390: Don't oops on starting dev queue The __NS8390_init tries to start the device queue before the device is registered. This results in an oops (snipped): [ 2.865493] BUG: unable to handle kernel NULL pointer dereference at 0000000000000010 [ 2.866106] IP: [] netif_start_queue+0xb/0x12 [8390] [ 2.881267] Call Trace: [ 2.881437] [] __NS8390_init+0x102/0x15a [8390] [ 2.881999] [] NS8390_init+0x9/0xb [8390] [ 2.882237] [] ne2k_pci_init_one+0x297/0x354 [ne2k_pci] [ 2.882955] [] local_pci_probe+0x12/0x16 [ 2.883308] [] pci_device_probe+0xc3/0xef [ 2.884049] [] driver_probe_device+0xbe/0x14b [ 2.884937] [] __driver_attach+0x46/0x62 [ 2.885170] [] bus_for_each_dev+0x49/0x78 [ 2.885781] [] driver_attach+0x1c/0x1e [ 2.886089] [] bus_add_driver+0xba/0x227 [ 2.886330] [] driver_register+0x9e/0x115 [ 2.886933] [] __pci_register_driver+0x50/0xac [ 2.887785] [] ne2k_pci_init+0x2c/0x2e [ne2k_pci] [ 2.888093] [] do_one_initcall+0x7c/0x130 [ 2.888693] [] sys_init_module+0x99/0x1da [ 2.888946] [] system_call_fastpath+0x16/0x1b This happens because the netif_start_queue sets respective bit on the dev->_tx array which is not yet allocated. As far as I understand the code removing the netif_start_queue from __NS8390_init is OK, since queue will be started later on device open. Plz, correct me if I'm wrong. Found in the Dave's current tree, so he's in Cc. Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller commit 1c0e0a0569e925220c2948ea9b92fc013895917f Author: Gerrit Renker Date: Wed Oct 27 19:16:28 2010 +0000 dccp ccid-2: Stop polling This updates CCID-2 to use the CCID dequeuing mechanism, converting from previous continuous-polling to a now event-driven mechanism. Signed-off-by: Gerrit Renker Signed-off-by: David S. Miller commit b1fcf55eea541af9efa5d39f5a0d1aec8ceca55d Author: Gerrit Renker Date: Wed Oct 27 19:16:27 2010 +0000 dccp: Refine the wait-for-ccid mechanism This extends the existing wait-for-ccid routine so that it may be used with different types of CCID, addressing the following problems: 1) The queue-drain mechanism only works with rate-based CCIDs. If CCID-2 for example has a full TX queue and becomes network-limited just as the application wants to close, then waiting for CCID-2 to become unblocked could lead to an indefinite delay (i.e., application "hangs"). 2) Since each TX CCID in turn uses a feedback mechanism, there may be changes in its sending policy while the queue is being drained. This can lead to further delays during which the application will not be able to terminate. 3) The minimum wait time for CCID-3/4 can be expected to be the queue length times the current inter-packet delay. For example if tx_qlen=100 and a delay of 15 ms is used for each packet, then the application would have to wait for a minimum of 1.5 seconds before being allowed to exit. 4) There is no way for the user/application to control this behaviour. It would be good to use the timeout argument of dccp_close() as an upper bound. Then the maximum time that an application is willing to wait for its CCIDs to can be set via the SO_LINGER option. These problems are addressed by giving the CCID a grace period of up to the `timeout' value. The wait-for-ccid function is, as before, used when the application (a) has read all the data in its receive buffer and (b) if SO_LINGER was set with a non-zero linger time, or (c) the socket is either in the OPEN (active close) or in the PASSIVE_CLOSEREQ state (client application closes after receiving CloseReq). In addition, there is a catch-all case of __skb_queue_purge() after waiting for the CCID. This is necessary since the write queue may still have data when (a) the host has been passively-closed, (b) abnormal termination (unread data, zero linger time), (c) wait-for-ccid could not finish within the given time limit. Signed-off-by: Gerrit Renker Signed-off-by: David S. Miller commit dc841e30eaea9f9f83c9ab1ee0b3ef9e5c95ce8a Author: Gerrit Renker Date: Wed Oct 27 19:16:26 2010 +0000 dccp: Extend CCID packet dequeueing interface This extends the packet dequeuing interface of dccp_write_xmit() to allow 1. CCIDs to take care of timing when the next packet may be sent; 2. delayed sending (as before, with an inter-packet gap up to 65.535 seconds). The main purpose is to take CCID-2 out of its polling mode (when it is network- limited, it tries every millisecond to send, without interruption). The mode of operation for (2) is as follows: * new packet is enqueued via dccp_sendmsg() => dccp_write_xmit(), * ccid_hc_tx_send_packet() detects that it may not send (e.g. window full), * it signals this condition via `CCID_PACKET_WILL_DEQUEUE_LATER', * dccp_write_xmit() returns without further action; * after some time the wait-condition for CCID becomes true, * that CCID schedules the tasklet, * tasklet function calls ccid_hc_tx_send_packet() via dccp_write_xmit(), * since the wait-condition is now true, ccid_hc_tx_packet() returns "send now", * packet is sent, and possibly more (since dccp_write_xmit() loops). Code reuse: the taskled function calls dccp_write_xmit(), the timer function reduces to a wrapper around the same code. Signed-off-by: Gerrit Renker Signed-off-by: David S. Miller commit fe84f4140f0d24deca8591e38926b95cfd097e62 Author: Gerrit Renker Date: Wed Oct 27 19:16:25 2010 +0000 dccp: Return-value convention of hc_tx_send_packet() This patch reorganises the return value convention of the CCID TX sending function, to permit more flexible schemes, as required by subsequent patches. Currently the convention is * values < 0 mean error, * a value == 0 means "send now", and * a value x > 0 means "send in x milliseconds". The patch provides symbolic constants and a function to interpret return values. In addition, it caps the maximum positive return value to 0xFFFF milliseconds, corresponding to 65.535 seconds. This is possible since in CCID-3/4 the maximum possible inter-packet gap is fixed at t_mbi = 64 sec. Signed-off-by: Gerrit Renker Signed-off-by: David S. Miller commit de7fe7874dc55e8226245c50f07dec3c7b285044 Author: Emil Tantilov Date: Thu Oct 28 00:59:51 2010 +0000 igbvf: fix panic on load Introduced by commit:e6484930d7c73d324bccda7d43d131088da697b9 net: allocate tx queues in register_netdevice Signed-off-by: Emil Tantilov Acked-by: Greg Rose Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit ec43a81cfa85b1ba0c9ac1aa995fe652f30fd4d6 Author: Emil Tantilov Date: Thu Oct 28 00:59:49 2010 +0000 ixgb: call pci_disable_device in ixgb_remove ixgb fails to work after reload on recent kernels: rmmod ixgb (dev->current_state = PCI_UNKNOWN) modprobe ixgb (pci_enable_device will bail leaving current_state to PCI_UNKNOWN) ifup eth0 do_IRQ: 2.82 No irq handler for vector (irq -1) The issue was exposed by commit fcd097f31a6ee207cc0c3da9cccd2a86d4334785 PCI: MSI: Remove unsafe and unnecessary hardware access which avoids HW writes for power states != PCI_D0 CC: Ben Hutchings Signed-off-by: Emil Tantilov Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 9806307a1c5a2a79e268ae4e78b437d38c8adf7f Author: John Fastabend Date: Thu Oct 28 00:59:57 2010 +0000 ixgbe: DCB, fix TX hang occurring in stress condition with PFC The DCB credits refill quantum _must_ be greater than half the max packet size. This is needed to guarantee that TX DMA operations are not attempted during a pause state. Additionally, the min IFG must be set correctly for DCB mode. If a DMA operation is requested unexpectedly during the pause state the HW data store may be corrupted leading to a DMA hang. The DMA hang requires a reset to correct. This fixes the HW configuration to avoid this condition. Signed-off-by: John Fastabend Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit affa9dfb04b7e2e3a0b0e6d844ea0c9ed97505f9 Author: Carolyn Wyborny Date: Thu Oct 28 00:59:55 2010 +0000 e1000e: Add check for reset flags before displaying reset message Some parts need to execute resets during normal operation. This flag check ensures that those parts reset without needlessly alarming the user. Other unexpected resets by other parts will dump debug info and message the reset action to the user, as originally intended. Signed-off-by: Carolyn Wyborny Acked-by: Bruce Allan Tested-by: Emil Tantilov Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit ff10e13cd06f3dbe90e9fffc3c2dd2057a116e4b Author: Carolyn Wyborny Date: Thu Oct 28 00:59:53 2010 +0000 e1000e: reset PHY after errors detected Some errors can be induced in the PHY via environmental testing (specifically extreme temperature changes and electro static discharge testing), and in the case of the PHY hanging due to this input, this detects the problem and resets to continue. This issue only applies to 82574 silicon. Signed-off-by: Jesse Brandeburg Signed-off-by: Carolyn Wyborny Tested-by: Emil Tantilov Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 116c1ea0aa871a2d6554e7fae124fc2880a596c1 Author: David S. Miller Date: Thu Oct 28 10:15:43 2010 -0700 pch_gbe: Select MII. Reported-by: Steven Rostedt Signed-off-by: David S. Miller commit 800416f799e0723635ac2d720ad4449917a1481c Author: Eric Dumazet Date: Wed Oct 27 19:33:43 2010 +0200 numa: fix slab_node(MPOL_BIND) When a node contains only HighMem memory, slab_node(MPOL_BIND) dereferences a NULL pointer. [ This code seems to go back all the way to commit 19770b32609b: "mm: filter based on a nodemask as well as a gfp_mask". Which was back in April 2008, and it got merged into 2.6.26. - Linus ] Signed-off-by: Eric Dumazet Cc: Mel Gorman Cc: Christoph Lameter Cc: Lee Schermerhorn Cc: Andrew Morton Cc: stable@kernel.org Signed-off-by: Linus Torvalds commit 5af634789c93b97cfb314a102436716be8fbc577 Author: Greg Kroah-Hartman Date: Thu Oct 28 09:55:53 2010 -0700 Staging: brcm80211: fix usage of roundup in structures Now that the roundup macro is sane, it can't be used in structure definitions, or the build breaks.. For now, create a "broken_roundup()" macro to get everything building again, but in the end, fixing these structures to use a proper size value is the correct thing to do. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit eebfc6055aba312f8b620a58fe1c23471cdcd149 Author: Greg Kroah-Hartman Date: Thu Oct 28 09:54:23 2010 -0700 Staging: bcm: fix up network device reference counting The way network devices are reference counted does not include poking around in the reference count itself. This breaks when the reference count is changed to be a different type. Fix the driver to do the proper function calls instead. Cc: Stephen Hemminger Signed-off-by: Greg Kroah-Hartman commit bceadddd92ceb4fd51e5e16c4f6699d8eb2e5604 Author: Greg Kroah-Hartman Date: Thu Oct 28 09:53:38 2010 -0700 Staging: keucr: fix up US_ macro change The usb tree renamed the USB storage defines to make more sense, so this driver needs the changes as well so that things will compile properly. Signed-off-by: Greg Kroah-Hartman commit e4c5bf8e3dca827a1b3a6fac494eae8c74b7e1e7 Merge: 8128057 a4ac0d8 Author: Greg Kroah-Hartman Date: Thu Oct 28 09:44:56 2010 -0700 Merge 'staging-next' to Linus's tree This merges the staging-next tree to Linus's tree and resolves some conflicts that were present due to changes in other trees that were affected by files here. Signed-off-by: Greg Kroah-Hartman commit 5f3b321da1aa5936c85ed6dec67358239a9d3cfd Author: Phillip Lougher Date: Mon Oct 25 00:17:24 2010 +0100 Squashfs: fix function prototype The fourth argument should be unsigned. Also add missing include so that the function prototype is defined in xattr_id.c This fixes a couple of sparse warnings. Signed-off-by: Phillip Lougher commit 07724586b44e69a08af3102be3f9afd350eda1e3 Author: Phillip Lougher Date: Sun Oct 24 23:13:57 2010 +0100 Squashfs: fix use of __le64 annotated variable This fixes a sparse with endian checking warning. Signed-off-by: Phillip Lougher commit 0851668fdd97e526b2a41f794b785c204dd3d3e0 Merge: 00ebb63 7655e59 Author: Linus Torvalds Date: Thu Oct 28 09:35:11 2010 -0700 Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (505 commits) [media] af9015: Fix max I2C message size when used with tda18271 [media] IR: initialize ir_raw_event in few more drivers [media] Guard a divide in v4l1 compat layer [media] imon: fix nomouse modprobe option [media] imon: remove redundant change_protocol call [media] imon: fix my egregious brown paper bag w/rdev/idev split [media] cafe_ccic: Configure ov7670 correctly [media] ov7670: allow configuration of image size, clock speed, and I/O method [media] af9015: support for DigitalNow TinyTwin v3 [1f4d:9016] [media] af9015: map DigitalNow TinyTwin v2 remote [media] DigitalNow TinyTwin remote controller [media] af9015: RC fixes and improvements videodev2.h.xml: Update to reflect the latest changes at videodev2.h [media] v4l: document new Bayer and monochrome pixel formats [media] DocBook/v4l: Add missing formats used on gspca cpia1 and sn9c2028 [media] firedtv: add parameter to fake ca_system_ids in CA_INFO [media] tm6000: fix a macro coding style issue tm6000: Remove some ugly debug code [media] Nova-S-Plus audio line input [media] [RFC,1/1] V4L2: Use new CAP bits in existing RDS capable drivers ... commit 00ebb6382b8d9c7c15b5f8ad230670d8161d38dd Merge: 11cc21f 536ac99 Author: Linus Torvalds Date: Thu Oct 28 09:33:42 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc: (66 commits) mmc: add new sdhci-pxa driver for Marvell SoCs mmc: make number of mmcblk minors configurable mmc_spi: Recover from CRC errors for r/w operation over SPI. mmc: sdhci-pltfm: add -pltfm driver for imx35/51 mmc: sdhci-of-esdhc: factor out common stuff mmc: sdhci_pltfm: pass more data on custom init call mmc: sdhci: introduce get_ro private write-protect hook mmc: sdhci-pltfm: move .h file into appropriate subdir mmc: sdhci-pltfm: Add structure for host-specific data mmc: fix cb710 kconfig dependency warning mmc: cb710: remove debugging printk (info duplicated from mmc-core) mmc: cb710: clear irq handler on init() error path mmc: cb710: remove unnecessary msleep() mmc: cb710: implement get_cd() callback mmc: cb710: partially demystify clock selection mmc: add a file to debugfs for changing host clock at runtime mmc: sdhci: allow for eMMC 74 clock generation by controller mmc: sdhci: highspeed: check for mmc as well as sd cards mmc: sdhci: Add Moorestown device support mmc: sdhci: Intel Medfield support ... commit 11cc21f5f5575b9abd14d53a6055ccbf72b67573 Merge: 19ef201 85b8fe8 Author: Linus Torvalds Date: Thu Oct 28 09:32:05 2010 -0700 Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/hfsplus * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/hfsplus: hfsplus: free space correcly for files unlinked while open hfsplus: fix double lock typo in ioctl commit 19ef20143ff86c8012270c619ac7b6c3b389a8fa Author: Ingo Molnar Date: Thu Oct 28 09:56:31 2010 +0200 ext4: fix compile with CONFIG_EXT4_FS_XATTR disabled Commit 5dabfc78dced ("ext4: rename {exit,init}_ext4_*() to ext4_{exit,init}_*()") causes fs/ext4/super.c:4776: error: implicit declaration of function ‘ext4_init_xattr’ when CONFIG_EXT4_FS_XATTR is disabled. It renamed init_ext4_xattr to ext4_init_xattr but forgot to update the dummy definition in fs/ext4/xattr.h. Signed-off-by: Ingo Molnar Acked-by: "Theodore Ts'o" Signed-off-by: Linus Torvalds commit 90a2b69c14d0f0b6cbd124caf429ae9033f0615c Merge: e430426 f6ac55b Author: Linus Torvalds Date: Thu Oct 28 09:25:11 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs: (28 commits) net/9p: Return error on read with NULL buffer 9p: Add datasync to client side TFSYNC/RFSYNC for dotl net/9p: Return error if we fail to encode protocol data fs/9p: Use generic_file_open with lookup_instantiate_filp fs/9p: Add missing iput in v9fs_vfs_lookup fs/9p: Use mknod 9p operation on create without open request net/9p: Add waitq to VirtIO transport. [net/9p]Serialize virtqueue operations to make VirtIO transport SMP safe. 9p: Implement TREADLINK operation for 9p2000.L 9p: Use V9FS_MAGIC in statfs 9p: Implement TGETLOCK 9p: Implement TLOCK [9p] Introduce client side TFSYNC/RFSYNC for dotl. [fs/9p] Add file_operations for cached mode in dotl protocol. fs/9p: Add access = client option to opt in acl evaluation. fs/9p: Implement create time inheritance fs/9p: Update ACL on chmod fs/9p: Implement setting posix acl fs/9p: Add xattr callbacks for POSIX ACL fs/9p: Implement POSIX ACL permission checking function ... commit e430426654c6a99fb1977bae71d4844e876c4a52 Merge: e732ff7 650a35f Author: Linus Torvalds Date: Thu Oct 28 09:24:14 2010 -0700 Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6 * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6: parisc: add tty driver to PDC console drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast parisc: remove homegrown L1_CACHE_ALIGN macro arch/parisc: Removing undead ifdef CONFIG_PA20 parisc: unwind - optimise linked-list searches for modules parisc: change to new flag variable drivers/char/agp/parisc-agp.c: eliminate memory leak parisc: kill __do_IRQ parisc: convert eisa interrupts to flow handlers parisc: convert gsc and dino pci interrupts to flow handlers parisc: convert suckyio interrupts to flow handlers parisc: convert iosapic interrupts to proper flow handlers parisc: convert cpu interrupts to proper flow handlers parisc: lay groundwork for killing __do_IRQ parisc: add prlimit64 syscall parisc: squelch warning when using dev_get_stats commit e732ff707743e5ceba6ae2bfc7e799a0bac30ffa Author: Figo.zhang Date: Tue Oct 26 21:01:47 2010 +0800 mmu_notifier.h: fix comment spelling Signed-off-by: Figo.zhang Signed-off-by: Linus Torvalds commit 27d6379894be4a81984da4d48002196a83939ca9 Author: Andi Kleen Date: Thu Oct 28 13:16:13 2010 +0100 Fix install_process_keyring error handling Fix an incorrect error check that returns 1 for error instead of the expected error code. Signed-off-by: Andi Kleen Signed-off-by: David Howells Signed-off-by: Linus Torvalds commit 765aaafe38050790301e89745b991dbdf3dded4c Author: James Bottomley Date: Thu Oct 28 10:14:41 2010 -0500 parisc: fix compile failure with kmap_atomic changes Commit 3e4d3af501cc ("mm: stack based kmap_atomic()") overlooked the fact that parisc uses kmap as a coherence mechanism, so even though we have no highmem, we do need to supply our own versions of kmap (and atomic). This patch converts the parisc kmap to the form which is needed to keep it compiling (it's a simple prototype and name change). Signed-off-by: James Bottomley Acked-by: Kyle McMartin Signed-off-by: Linus Torvalds commit b31d42a5af1818bdf31a5f023abe4d8b212542f2 Author: Ingo Molnar Date: Thu Oct 28 16:39:24 2010 +0200 Fix compile brekage with !CONFIG_BLOCK Today's git tree fails to build on !CONFIG_BLOCK, due to upstream commit 367a51a33902 ("fs: Add FITRIM ioctl"): include/linux/fs.h:36: error: expected specifier-qualifier-list before ‘uint64_t’ include/linux/fs.h:36: error: expected specifier-qualifier-list before ‘uint64_t’ include/linux/fs.h:36: error: expected specifier-qualifier-list before ‘uint64_t’ The commit adds uint64_t type usage to fs.h, but linux/types.h is not included explicitly - it's only included implicitly via linux/blk_types.h, and there only if CONFIG_BLOCK is enabled. Add the explicit #include to fix this. Signed-off-by: Ingo Molnar Signed-off-by: Linus Torvalds commit 1df1a4cbcd33cf66111293c654dcff0199d965f0 Merge: ed2e558 2388683 Author: Linus Torvalds Date: Thu Oct 28 08:35:15 2010 -0700 Merge git://git.infradead.org/battery-2.6 * git://git.infradead.org/battery-2.6: power_supply: Mark twl4030_charger as broken commit 8f0d97b41523fb85a2d230f6794121e5834f0cf9 Author: Dan Carpenter Date: Thu Oct 28 08:05:57 2010 +0200 nfs: testing the wrong variable The intent was to test "*desc" for allocation failures, but it tests "desc" which is always a valid pointer here. Signed-off-by: Dan Carpenter Signed-off-by: Trond Myklebust commit 015f0212d51d85bd281a831639a769b4a1a3307a Author: Jeff Layton Date: Thu Oct 28 10:10:37 2010 -0400 nfs: handle lock context allocation failures in nfs_create_request nfs_get_lock_context can return NULL on an allocation failure. Regression introduced by commit f11ac8db. Reported-by: Steve Dickson Signed-off-by: Jeff Layton Cc: stable@kernel.org Signed-off-by: Trond Myklebust commit 568a810d7edd58bd505222dd1c7e48895532290b Author: Steve Dickson Date: Thu Oct 28 08:17:54 2010 -0400 Fixed Regression in NFS Direct I/O path A typo, introduced by commit f11ac8db, in the nfs_direct_write() routine causes writes with O_DIRECT set to fail with a ENOMEM error. Found-by: Jeff Layton Signed-off-by: Steve Dickson Cc: stable@kernel.org Signed-off-by: Trond Myklebust commit ed2e5581d2702743460349e494f3ab8c4b0f28d8 Merge: 8128057 6fa9775 Author: Linus Torvalds Date: Thu Oct 28 07:53:04 2010 -0700 Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block * 'for-linus' of git://git.kernel.dk/linux-2.6-block: cciss: remove overlapping PCI IDs block: cciss: fix information leak to userland drivers/block/aoe/aoeblk.c: ratelimit a warning printk drivers/block/z2ram.c: correct printing of sector_t aoe: don't use flush_scheduled_work() drivers/block/drbd/drbd_main.c: fix error path loop: Properly clear sysfs in autoclear mode commit f6ac55b6c156cebf750376dc08e06ffdade82717 Author: Sanchit Garg Date: Wed Oct 27 09:41:01 2010 +0530 net/9p: Return error on read with NULL buffer This patch ensures that a read(fd, NULL, 10) returns EFAULT on a 9p file. Signed-off-by: Sanchit Garg Signed-off-by: Aneesh Kumar K.V Signed-off-by: Eric Van Hensbergen commit b165d60145b717261a0234f989c442c2b68b6ec0 Author: Venkateswararao Jujjuri (JV) Date: Fri Oct 22 10:13:12 2010 -0700 9p: Add datasync to client side TFSYNC/RFSYNC for dotl SYNOPSIS size[4] Tfsync tag[2] fid[4] datasync[4] size[4] Rfsync tag[2] DESCRIPTION The Tfsync transaction transfers ("flushes") all modified in-core data of file identified by fid to the disk device (or other permanent storage device) where that file resides. If datasync flag is specified data will be fleshed but does not flush modified metadata unless that metadata is needed in order to allow a subsequent data retrieval to be correctly handled. Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 7b3bb3fe166702b504f1068359c9550d3b277eaf Author: Aneesh Kumar K.V Date: Tue Oct 19 09:17:02 2010 +0530 net/9p: Return error if we fail to encode protocol data We need to return error in case we fail to encode data in protocol buffer. This patch also return error in case of a failed copy_from_user. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 877cb3d4dd73838adcc6b79f2a3d29b155e7ebbe Author: Aneesh Kumar K.V Date: Wed Sep 22 12:42:30 2010 +0530 fs/9p: Use generic_file_open with lookup_instantiate_filp We need to do O_LARGEFILE check even in case of 9p. Use the generic_file_open helper Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 9856af8b535aaf51d95dab2087e79508f551fbb8 Author: Aneesh Kumar K.V Date: Wed Sep 22 12:24:23 2010 +0530 fs/9p: Add missing iput in v9fs_vfs_lookup Make sure we drop inode reference in the error path Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit f5fc6145f385a6287d3d63ee5cf3499ef038c699 Author: Aneesh Kumar K.V Date: Tue Oct 12 13:02:25 2010 +0530 fs/9p: Use mknod 9p operation on create without open request A create without LOOKUP_OPEN flag set is due to mknod of regular files. Use mknod 9P operation for the same Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 52f44e0d08ff1a065bf06615483c608163575cb1 Author: Venkateswararao Jujjuri (JV) Date: Wed Sep 29 18:33:41 2010 -0700 net/9p: Add waitq to VirtIO transport. If there is not enough space for the PDU on the VirtIO ring, current code returns -EIO propagating the error to user. This patch introduced a wqit_queue on the channel, and lets the process wait on this queue until VirtIO ring frees up. Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 419b39561e698d73a42f8010655d22e0134486da Author: Venkateswararao Jujjuri (JV) Date: Wed Sep 29 18:06:54 2010 -0700 [net/9p]Serialize virtqueue operations to make VirtIO transport SMP safe. Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 329176cc2c50e63c580ddaabb385876db5af1360 Author: M. Mohan Kumar Date: Tue Sep 28 19:59:25 2010 +0530 9p: Implement TREADLINK operation for 9p2000.L Synopsis size[4] TReadlink tag[2] fid[4] size[4] RReadlink tag[2] target[s] Description Readlink is used to return the contents of the symoblic link referred by fid. Contents of symboic link is returned as a response. target[s] - Contents of the symbolic link referred by fid. Signed-off-by: M. Mohan Kumar Reviewed-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 368c09d2a303c39e9f37193b23e945e6754cf0a7 Author: M. Mohan Kumar Date: Mon Sep 27 14:17:24 2010 +0530 9p: Use V9FS_MAGIC in statfs Use V9FS_MAGIC as the file system type while filling kernel statfs strucutre instead of using host file system magic number. Also move the definition of V9FS_MAGIC from v9fs.h to standard magic.h file. Signed-off-by: M. Mohan Kumar Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 1d769cd192fc8c4097b1e2cd41fdee6ba3d1b2af Author: M. Mohan Kumar Date: Mon Sep 27 12:22:13 2010 +0530 9p: Implement TGETLOCK Synopsis size[4] TGetlock tag[2] fid[4] getlock[n] size[4] RGetlock tag[2] getlock[n] Description TGetlock is used to test for the existence of byte range posix locks on a file identified by given fid. The reply contains getlock structure. If the lock could be placed it returns F_UNLCK in type field of getlock structure. Otherwise it returns the details of the conflicting locks in the getlock structure getlock structure: type[1] - Type of lock: F_RDLCK, F_WRLCK start[8] - Starting offset for lock length[8] - Number of bytes to check for the lock If length is 0, check for lock in all bytes starting at the location 'start' through to the end of file pid[4] - PID of the process that wants to take lock/owns the task in case of reply client[4] - Client id of the system that owns the process which has the conflicting lock Signed-off-by: M. Mohan Kumar Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit a099027c779068b834f335cfdc3f2bf10f531dd9 Author: M. Mohan Kumar Date: Mon Sep 27 11:34:24 2010 +0530 9p: Implement TLOCK Synopsis size[4] TLock tag[2] fid[4] flock[n] size[4] RLock tag[2] status[1] Description Tlock is used to acquire/release byte range posix locks on a file identified by given fid. The reply contains status of the lock request flock structure: type[1] - Type of lock: F_RDLCK, F_WRLCK, F_UNLCK flags[4] - Flags could be either of P9_LOCK_FLAGS_BLOCK - Blocked lock request, if there is a conflicting lock exists, wait for that lock to be released. P9_LOCK_FLAGS_RECLAIM - Reclaim lock request, used when client is trying to reclaim a lock after a server restrart (due to crash) start[8] - Starting offset for lock length[8] - Number of bytes to lock If length is 0, lock all bytes starting at the location 'start' through to the end of file pid[4] - PID of the process that wants to take lock client_id[4] - Unique client id status[1] - Status of the lock request, can be P9_LOCK_SUCCESS(0), P9_LOCK_BLOCKED(1), P9_LOCK_ERROR(2) or P9_LOCK_GRACE(3) P9_LOCK_SUCCESS - Request was successful P9_LOCK_BLOCKED - A conflicting lock is held by another process P9_LOCK_ERROR - Error while processing the lock request P9_LOCK_GRACE - Server is in grace period, it can't accept new lock requests in this period (except locks with P9_LOCK_FLAGS_RECLAIM flag set) Signed-off-by: M. Mohan Kumar Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 920e65dc6911da28a58e17f4b683302636fc6d8e Author: Venkateswararao Jujjuri (JV) Date: Wed Sep 22 17:19:19 2010 -0700 [9p] Introduce client side TFSYNC/RFSYNC for dotl. SYNOPSIS size[4] Tfsync tag[2] fid[4] size[4] Rfsync tag[2] DESCRIPTION The Tfsync transaction transfers ("flushes") all modified in-core data of file identified by fid to the disk device (or other permanent storage device) where that file resides. Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit b04faaf3717307cd976a15667c8c24161c1d24ef Author: Venkateswararao Jujjuri (JV) Date: Wed Sep 22 16:30:52 2010 -0700 [fs/9p] Add file_operations for cached mode in dotl protocol. Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 76381a42e4a5606774fd48413e6282cd7130ff2c Author: Aneesh Kumar K.V Date: Tue Sep 28 00:27:41 2010 +0530 fs/9p: Add access = client option to opt in acl evaluation. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit ad77dbce567128d59b37a14c9562c8af6f63aeca Author: Aneesh Kumar K.V Date: Tue Sep 28 00:27:40 2010 +0530 fs/9p: Implement create time inheritance Inherit default ACL on create Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 6e8dc55550273084b7fb5846df2f44439f5d03d9 Author: Aneesh Kumar K.V Date: Tue Sep 28 00:27:40 2010 +0530 fs/9p: Update ACL on chmod We need update the acl value on chmod Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 22d8dcdf8f8a3882d98757e78169014bb0bc6b23 Author: Aneesh Kumar K.V Date: Tue Sep 28 00:27:40 2010 +0530 fs/9p: Implement setting posix acl This patch also update mode bits, as a normal file system. I am not sure wether we should do that, considering that a setxattr on the server will again update the ACL/mode value Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 7a4566b0b8fa67c7cd7be9f2969a085920356abb Author: Aneesh Kumar K.V Date: Tue Sep 28 00:27:39 2010 +0530 fs/9p: Add xattr callbacks for POSIX ACL This patch implement fetching POSIX ACL from the server Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 85ff872d3f4a62d076d698bd1fa15ca2a4d7c100 Author: Aneesh Kumar K.V Date: Tue Sep 28 00:27:39 2010 +0530 fs/9p: Implement POSIX ACL permission checking function The ACL value is fetched as a part of inode initialization from the server and the permission checking function use the cached value of the ACL Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 8e44a0805fc9d77475060280136aa491aa7d7060 Author: jvrao Date: Wed Aug 25 16:27:06 2010 +0000 net/9p: Add a Warning to catch NULL fids passed to p9_client_clunk(). Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 8d40fa2492eb3dcf02468eef2f6bba450be42b22 Author: jvrao Date: Mon Aug 30 13:23:20 2010 -0500 fs/9p: Remove the redundant rsize calculation in v9fs_file_write() the same calculation is done in p9_client_write Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Badari Pulavarty Signed-off-by: Eric Van Hensbergen commit 3e24ad2ff9d477f949acd0982cf12e58812210cb Author: jvrao Date: Tue Aug 24 15:43:28 2010 +0000 9p: Add a Direct IO support for non-cached operations. The presence of v9fs_direct_IO() in the address space ops vector allowes open() O_DIRECT flags which would have failed otherwise. In the non-cached mode, we shunt off direct read and write requests before the VFS gets them, so this method should never be called. Direct IO is not 'yet' supported in the cached mode. Hence when this routine is called through generic_file_aio_read(), the read/write fails with an error. Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 4f7ebe807242898ee08ed732d56982874442c304 Author: Arun R Bharadwaj Date: Wed Jul 28 14:17:26 2010 +0530 net/9p: This patch implements TLERROR/RLERROR on the 9P client. Signed-off-by: Arun R Bharadwaj Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen commit 7c7298cffc8f4417c95117c2a432f962c066499d Author: Harsh Prateek Bora Date: Wed Aug 18 06:01:52 2010 +0000 fs/9p: mkdir fix for setting S_ISGID bit as per parent directory The current implementation of 9p client mkdir function does not set the S_ISGID mode bit for the directory being created if the parent directory has this bit set. This patch fixes this problem so that the newly created directory inherits the gid from parent directory and not from the process creating this directory, when the S_ISGID bit is set in parent directory. Signed-off-by: Harsh Prateek Bora Signed-off-by: Eric Van Hensbergen commit 8812a3d5f873e28cd08ec8afe328c4182b72db49 Author: Sripathi Kodi Date: Mon Aug 9 11:33:10 2010 +0000 9p: Pass the correct end of buffer to p9dirent_read A patch was accepted recently for sending correct buffer size to p9stat_read. We need a similar patch in v9fs_dir_readdir_dotl to send correct end of buffer to p9dirent_read. Signed-off-by: Sripathi Kodi Signed-off-by: Eric Van Hensbergen commit 3834b12a18d51d6c535ea52e16355d75806ffe38 Author: Harsh Prateek Bora Date: Tue Aug 3 11:55:40 2010 +0000 fs/9p: setrlimit fix for 9p write Current 9p client file write code does not check for RLIMIT_FSIZE resource. This bug was found by running LTP test case for setrlimit. This bug is fixed by calling generic_write_checks before sending the write request to the server. Without this patch: the write function is allowed to write above the RLIMIT_FSIZE set by user. With this patch: the write function checks for RLIMIT_SIZE and writes upto the size limit. Signed-off-by: Harsh Prateek Bora Signed-off-by: Eric Van Hensbergen commit 57ee047b4d6bb4bcc74be0329441d1b242e57e61 Author: Dan Carpenter Date: Wed Aug 4 16:29:03 2010 +0000 9p: remove unneeded checks git_t is unsigned an can never be less than zero. Signed-off-by: Dan Carpenter Signed-off-by: Eric Van Hensbergen commit be6786ac738801d39cfd264ec88c352efd029578 Merge: f9cef50 ae69480 Author: Russell King Date: Thu Oct 28 14:42:06 2010 +0100 Merge branch 'l2x0-pull-rmk' of git://dev.omapzoom.org/pub/scm/santosh/kernel-omap4-base into devel-stable commit 91bad2f8d3057482b9afb599f14421b007136960 Author: Jason Baron Date: Fri Oct 1 17:23:48 2010 -0400 jump label: Fix deadlock b/w jump_label_mutex vs. text_mutex register_kprobe() downs the 'text_mutex' and then calls jump_label_text_reserved(), which downs the 'jump_label_mutex'. However, the jump label code takes those mutexes in the reverse order. Fix by requiring the caller of jump_label_text_reserved() to do the jump label locking via the newly added: jump_label_lock(), jump_label_unlock(). Currently, kprobes is the only user of jump_label_text_reserved(). Reported-by: Ingo Molnar Acked-by: Masami Hiramatsu Signed-off-by: Jason Baron LKML-Reference: <759032c48d5e30c27f0bba003d09bffa8e9f28bb.1285965957.git.jbaron@redhat.com> Signed-off-by: Steven Rostedt commit b842f8faf6c7dc2005c6a70631c1a91bac02f180 Author: Jason Baron Date: Fri Oct 1 17:23:41 2010 -0400 jump label: Fix module __init section race Jump label uses is_module_text_address() to ensure that the module __init sections are valid before updating them. However, between the check for a valid module __init section and the subsequent jump label update, the module's __init section could be freed out from under us. We fix this potential race by adding a notifier callback to the MODULE_STATE_LIVE state. This notifier is called *after* the __init section has been run but before it is going to be freed. In the callback, the jump label code zeros the key value for any __init jump code within the module, and we add a check for a non-zero key value when we update jump labels. In this way we require no additional data structures. Thanks to Mathieu Desnoyers for pointing out this race condition. Reported-by: Mathieu Desnoyers Cc: Masami Hiramatsu Signed-off-by: Jason Baron LKML-Reference: [ Renamed remove_module_init() to remove_jump_label_module_init() as suggested by Masami Hiramatsu. ] Signed-off-by: Steven Rostedt commit 8df6516864462cb7a6f87d5a46df68fb0faebbb5 Author: Russell King Date: Wed Oct 27 19:57:38 2010 +0100 ARM: memblock: setup lowmem mappings using memblock Use memblock information to setup lowmem mappings rather than the membank array. This allows platforms to manipulate the memblock information during initialization to reserve (and remove) memory from the kernel's view of memory - and thus allowing platforms to setup their own private mappings for this memory without causing problems with multiple aliasing mappings: size = min(size, SZ_2M); base = memblock_alloc(size, min(align, SZ_2M)); memblock_free(base, size); memblock_remove(base, size); This is needed because multiple mappings of regions with differing attributes (sharability, type, cache) are not permitted with ARMv6 and above. Signed-off-by: Russell King commit f25b4b4c89ff118df72421dd2cb080a6380896ac Author: Russell King Date: Wed Oct 27 19:49:33 2010 +0100 ARM: memblock: move meminfo into find_limits directly bootmem_init() no longer makes several uses of the membank information, so move this into the one remaining called function which does use it. Signed-off-by: Russell King commit df4f14c7b22e43e67c0e4e3b005ff897a0a72f4d Author: Russell King Date: Wed Oct 27 19:45:49 2010 +0100 ARM: memblock: convert free_highpages() to use memblock Free the high pages using the memblock memory lists - and more importantly, exclude any memblock allocations in highmem from the free'd memory. Signed-off-by: Russell King commit d0e775afb94d9b61ba6c63299169ef7a87b68189 Author: Russell King Date: Wed Oct 27 19:37:06 2010 +0100 ARM: move freeing of highmem pages out of mem_init() Signed-off-by: Russell King commit 47ea3c15498154f634c304e08dee284efdd7dceb Author: Russell King Date: Wed Oct 27 19:35:29 2010 +0100 ARM: memblock: convert memory detail printing to use memblock Signed-off-by: Russell King commit a801d2764033063b313d0c55704de8fb36e1efd1 Author: Russell King Date: Wed Oct 27 19:27:44 2010 +0100 ARM: memblock: use memblock to free memory into arm_bootmem_init() Switch arm_bootmem_init() to use memblock instead of membank to free memory into bootmem. Signed-off-by: Russell King commit a2c54d2af848fafd53f0314947d0741313205dbc Author: Russell King Date: Wed Oct 27 19:17:31 2010 +0100 ARM: memblock: use memblock when initializing memory allocators Signed-off-by: Russell King commit 7dc50ec7283391dd7a29a80e2a0fb76731a6a7c7 Author: Russell King Date: Wed Oct 27 18:14:56 2010 +0100 ARM: ensure membank array is always sorted This was missing from the noMMU code, so there was the possibility of things not working as expected if out of order memory information was passed. Signed-off-by: Russell King commit c8c90860cd3592fac83a349f84a20360a6498727 Author: Mika Westerberg Date: Thu Oct 28 11:27:40 2010 +0100 ARM: 6466/1: implement flush_icache_all for the rest of the CPUs Commit 81d11955bf0 ("ARM: 6405/1: Handle __flush_icache_all for CONFIG_SMP_ON_UP") added a new function to struct cpu_cache_fns: flush_icache_all(). It also implemented this for v6 and v7 but not for v5 and backwards. Without the function pointer in place, we will be calling wrong cache functions. For example with ep93xx we get following: Unable to handle kernel paging request at virtual address ee070f38 pgd = c0004000 [ee070f38] *pgd=00000000 Internal error: Oops: 80000005 [#1] PREEMPT last sysfs file: Modules linked in: CPU: 0 Not tainted (2.6.36+ #1) PC is at 0xee070f38 LR is at __dma_alloc+0x11c/0x2d0 pc : [] lr : [] psr: 60000013 sp : c581bde0 ip : 00000000 fp : c0472000 r10: c0472000 r9 : 000000d0 r8 : 00020000 r7 : 0001ffff r6 : 00000000 r5 : c0472400 r4 : c5980000 r3 : c03ab7e0 r2 : 00000000 r1 : c59a0000 r0 : c5980000 Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel Control: c000717f Table: c0004000 DAC: 00000017 Process swapper (pid: 1, stack limit = 0xc581a270) [] (__dma_alloc+0x11c/0x2d0) [] (dma_alloc_writecombine+0x1c/0x24) [] (ep93xx_pcm_preallocate_dma_buffer+0x44/0x60) [] (ep93xx_pcm_new+0x5c/0x88) [] (snd_soc_instantiate_cards+0x8a8/0xbc0) [] (soc_probe+0xfc/0x134) [] (platform_drv_probe+0x18/0x1c) [] (driver_probe_device+0xb0/0x16c) [] (bus_for_each_drv+0x48/0x84) [] (device_attach+0x50/0x68) [] (bus_probe_device+0x24/0x44) [] (device_add+0x2fc/0x44c) [] (platform_device_add+0x104/0x15c) [] (simone_init+0x60/0x94) [] (do_one_initcall+0xd0/0x1a4) __dma_alloc() calls (inlined) __dma_alloc_buffer() which ends up calling dmac_flush_range(). Now since the entries in the arm920_cache_fns are shifted by one, we jump into address 0xee070f38 which is actually next instruction after the arm920_cache_fns structure. So implement flush_icache_all() for the rest of the supported CPUs using a generic 'invalidate I cache' instruction. Signed-off-by: Mika Westerberg Signed-off-by: Russell King commit 4e54d93d3c9846ba1c2644ad06463dafa690d1b7 Author: Mika Westerberg Date: Thu Oct 28 11:45:22 2010 +0100 ARM: 6464/2: fix spinlock recursion in adjust_pte() When running following code in a machine which has VIVT caches and USE_SPLIT_PTLOCKS is not defined: fd = open("/etc/passwd", O_RDONLY); addr = mmap(NULL, 4096, PROT_READ, MAP_SHARED, fd, 0); addr2 = mmap(NULL, 4096, PROT_READ, MAP_SHARED, fd, 0); v = *((int *)addr); we will hang in spinlock recursion in the page fault handler: BUG: spinlock recursion on CPU#0, mmap_test/717 lock: c5e295d8, .magic: dead4ead, .owner: mmap_test/717, .owner_cpu: 0 [] (unwind_backtrace+0x0/0xec) [] (do_raw_spin_lock+0x40/0x140) [] (update_mmu_cache+0x208/0x250) [] (__do_fault+0x320/0x3ec) [] (handle_mm_fault+0x2f0/0x6d8) [] (do_page_fault+0xdc/0x1cc) [] (do_DataAbort+0x34/0x94) This comes from the fact that when USE_SPLIT_PTLOCKS is not defined, the only lock protecting the page tables is mm->page_table_lock which is already locked before update_mmu_cache() is called. Signed-off-by: Mika Westerberg Signed-off-by: Russell King commit 6fa977520871b1fc0be64247abad02b678c13fda Author: Mike Miller Date: Thu Oct 28 06:33:27 2010 -0600 cciss: remove overlapping PCI IDs This patch removes the controller overlap between cciss and hpsa. It was decided that no overlap should exist. All new controllers will use the hpsa SCSI based driver. Signed-off-by: Jens Axboe commit 7ab5118d7c2be650bc936894f159dc1c597badae Author: Vasiliy Kulikov Date: Thu Oct 28 06:31:55 2010 -0600 block: cciss: fix information leak to userland Structure IOCTL_Command_struct is copied to userland with some padding fields at the end of the struct unitialized. It leads to leaking of contents of kernel stack memory. Signed-off-by: Vasiliy Kulikov Signed-off-by: Jens Axboe commit 027b180d7405f2b2df25e2a8b1b796b00f3773cf Author: Andrew Morton Date: Thu Oct 28 06:15:26 2010 -0600 drivers/block/aoe/aoeblk.c: ratelimit a warning printk As described in https://bugzilla.kernel.org/show_bug.cgi?id=19922 : I had an AoE device go down overnight, and while a server was trying to : write to it, it was also writing this message to its logs: : : 209 printk(KERN_INFO "aoe: device %ld.%d is not up\n", : 210 d->aoemajor, d->aoeminor); : : The message appeared many times per second, and over several hours : produced about 7.5 gigabytes of log files, filling up all free space on : the root filesystem. Cc: "Ed L. Cashin" Suggested-by: Roman Mamedov Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe commit e1fbd9210d5d172f951b1d21eb58383919c4d10d Author: Geert Uytterhoeven Date: Thu Oct 28 06:15:26 2010 -0600 drivers/block/z2ram.c: correct printing of sector_t If CONFIG_LBDAF=y, `sector_t' becomes `u64' instead of `unsigned long': drivers/block/z2ram.c: In function ¡do_z2_request¢: drivers/block/z2ram.c:83: warning: format %lu expects type `long unsigned int', but argument 2 has type `sector_t' Hence always cast it to `unsigned long long' for printing. Also do the pr_err() dance, while we're at it. Signed-off-by: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe commit 5ad21a337420e82bffb7836ab34027dd7ad624b8 Author: Tejun Heo Date: Thu Oct 28 06:15:26 2010 -0600 aoe: don't use flush_scheduled_work() flush_scheduled_work() is deprecated and scheduled to be removed. Directly cancel aoedev->work on free instead of depending on flush_scheduled_works(). Signed-off-by: Tejun Heo Cc: "Ed L. Cashin" Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe commit 2027ae1fa914640c287171035cb607a03ad36e95 Author: Nicolas Kaiser Date: Thu Oct 28 06:15:26 2010 -0600 drivers/block/drbd/drbd_main.c: fix error path Failure to create drbd_ee_mempool appears not to get checked. Looks like a copy-and-paste problem to me. Signed-off-by: Nicolas Kaiser Cc: Lars Ellenberg Cc: Philipp Reisner Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe commit f9cef506815386df4bd7e463b59e0a0984ce0355 Merge: 9ae21ca cbff3eb Author: Russell King Date: Thu Oct 28 12:27:34 2010 +0100 Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into devel-stable Conflicts: arch/arm/mach-s3c64xx/dev-audio.c commit c7213fc4ed592070f1010da39b0bf0eb2395b619 Author: Jesper Nilsson Date: Thu Oct 28 12:08:27 2010 +0200 CRIS: Fix RS485 delay handling. Very recently, the RS485 interface has been fixed by adding two further fields (see commit 1b6331848b69d1ed165a6bdc75c4046d68767563). Check the value of the flag SER_RS485_RTS_BEFORE_SEND before delaying. Signed-off-by: Claudio Scordino Signed-off-by: Jesper Nilsson commit 94479c017b58f69e2304d88c2826ba445cd4cd99 Author: Jesper Nilsson Date: Thu Oct 28 12:04:55 2010 +0200 Add missing "struct" to in sizeof. Lead to a compile error when the struct was no longer typedef'd. Signed-off-by: Jesper Nilsson commit 9ae21ca362679757786f5abe556c7943e9001426 Merge: 12ba8d1 a3484ff Author: Russell King Date: Thu Oct 28 11:13:00 2010 +0100 Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable commit 4600d7c493f354a3e338a35bcf8a3bfbe815776a Author: Paul Mundt Date: Thu Oct 28 11:30:31 2010 +0900 genirq: Fix up irq_node() for irq_data changes. Now that the node ID is tracked in the irq_data structure, update the irq_node() definition accordingly. This fixes up irq_node() usage under GENERIC_HARDIRQS_NO_DEPRECATED && SMP. Signed-off-by: Paul Mundt LKML-Reference: <20101028023031.GB10365@linux-sh.org> Signed-off-by: Thomas Gleixner commit e0b11c3c38de5b40301645e4d9f25a167a18990c Merge: 3751638 d2360b8 Author: Ben Dooks Date: Thu Oct 28 10:07:14 2010 +0100 Merge branch 'for-2637/i2c/samsung' into next-i2c commit 375163854931694c2d2bd9c5da90daf3475c747b Merge: aa62f85 f868fc3 Author: Ben Dooks Date: Thu Oct 28 10:07:08 2010 +0100 Merge branch 'for-2637/i2c/i2c-nomadik' into next-i2c commit aa62f85d0c65712c24b4892e9eab929d5176cee2 Author: Alan Cox Date: Wed Oct 27 12:44:03 2010 +0100 i2c-intel-mid: support for Moorestown and Medfield platform (Updated to address Ben's comments. With regard to the message segment restriction it's not something we hit on the actual platform so while I will investigate that further I don't think its a blocker to submission. At worst its a spot over-restrictive) From: Wen Wang Initial release of the driver. Updated and verified on hardware. Cleaned up as follows Alan Cox: Squash down the switches into tables, and use the PCI ident field. We could perhaps take this further and put the platform and port number into this. uint32t -> u32 bracketing of case statements spacing and '!' usage Check the speed (which is now 0/1/2) is valid and ignore otherwise. Fix remaining problems/suggestions from Jean's review Fix items from Ben's review Arjan van de Ven: Initial power management hooks Yong Wang : Shared IRQ support Wen Wang : D3 support Fixes for OCT test runs Interrupt optimisations Hong Liu The runtime PM code is working on the wrong device (i2c_adapter->dev). The correct one should be pci_dev->dev. This breaks attached i2c slave devices with runtime PM enabled. Slave device needs to runtime resume parent device before runtime resuming itself, but we always get error since we don't have pm_runtime callback for i2c_adapter->dev. Bin Yang : Update speed table Saadi Maalem : Clear all interrupts in the hardware init Celine Chotard : Correct ordering of clear/disable of IRQs Signed-off-by: Wen Wang Signed-off-by: Yong Wang Signed-off-by: Hong Liu Signed-off-by: Bin Yang Signed-off-by: Arjan van de Ven Signed-off-by: Alan Cox Signed-off-by: Ben Dooks commit 23886839a752401aba66517bff8a8b91549279ce Author: Anton Vorontsov Date: Thu Oct 28 12:44:16 2010 +0400 power_supply: Mark twl4030_charger as broken The driver is not buildable without MFD changes. For now, let's disable the driver as it breaks build for major platforms (i.e. x86). CC [M] drivers/power/twl4030_charger.o drivers/power/twl4030_charger.c: In function 'twl4030_clear_set_boot_bci': drivers/power/twl4030_charger.c:105: error: 'TWL4030_PM_MASTER_BOOT_BCI' undeclared (first use in this function) drivers/power/twl4030_charger.c:105: error: (Each undeclared identifier is reported only once drivers/power/twl4030_charger.c:105: error: for each function it appears in.) drivers/power/twl4030_charger.c: In function 'twl4030_bci_have_vbus': drivers/power/twl4030_charger.c:137: error: 'TWL4030_PM_MASTER_STS_HW_CONDITIONS' undeclared (first use in this function) drivers/power/twl4030_charger.c: In function 'twl4030_bci_probe': drivers/power/twl4030_charger.c:477: warning: overflow in implicit constant conversion drivers/power/twl4030_charger.c:485: warning: overflow in implicit constant conversion make[2]: *** [drivers/power/twl4030_charger.o] Error 1 We can re-enable it if MFD tree will finally merge into 2.6.37. Reported-by: Ingo Molnar Signed-off-by: Anton Vorontsov commit a167f663243662aa9153c01086580a11cde9ffdc Author: NeilBrown Date: Tue Oct 26 18:31:13 2010 +1100 md: use separate bio pool for each md device. bio_clone and bio_alloc allocate from a common bio pool. If an md device is stacked with other devices that use this pool, or under something like swap which uses the pool, then the multiple calls on the pool can cause deadlocks. So allocate a local bio pool for each md array and use that rather than the common pool. This pool is used both for regular IO and metadata updates. Signed-off-by: NeilBrown commit 2b193363ef68667ad717a6723165e0dccf99470f Author: NeilBrown Date: Wed Oct 27 15:16:40 2010 +1100 md: change type of first arg to sync_page_io. Currently sync_page_io takes a 'bdev'. Every caller passes 'rdev->bdev'. We will soon want another field out of the rdev in sync_page_io, So just pass the rdev instead of the bdev out of it. Signed-off-by: NeilBrown commit 1c4588e9c19cae6209a28c9da2f16a18a610b935 Author: NeilBrown Date: Tue Oct 26 17:41:22 2010 +1100 md/raid1: perform mem allocation before disabling writes during resync. Though this mem alloc is GFP_NOIO an so will not deadlock, it seems better to do the allocation before 'raise_barrier' which stops any IO requests while the resync proceeds. raid10 always uses this order, so it is at least consistent to do the same in raid1. Signed-off-by: NeilBrown commit 6746557f0325a66f57d179126426e38a8ea66945 Author: NeilBrown Date: Tue Oct 26 17:33:54 2010 +1100 md: use bio_kmalloc rather than bio_alloc when failure is acceptable. bio_alloc can never fail (as it uses a mempool) but an block indefinitely, especially if the caller is holding a reference to a previously allocated bio. So these to places which both handle failure and hold multiple bios should not use bio_alloc, they should use bio_kmalloc. Signed-off-by: NeilBrown commit 4e78064f42ad474ce9c31760861f7fb0cfc22532 Author: NeilBrown Date: Tue Oct 19 12:54:01 2010 +1100 md: Fix possible deadlock with multiple mempool allocations. It is not safe to allocate from a mempool while holding an item previously allocated from that mempool as that can deadlock when the mempool is close to exhaustion. So don't use a bio list to collect the bios to write to multiple devices in raid1 and raid10. Instead queue each bio as it becomes available so an unplug will activate all previously allocated bios and so a new bio has a chance of being allocated. This means we must set the 'remaining' count to '1' before submitting any requests, then when all are submitted, decrement 'remaining' and possible handle the write completion at that point. Reported-by: Torsten Kaiser Tested-by: Torsten Kaiser Signed-off-by: NeilBrown commit e804ac780e2f01cb3b914daca2fd4780d1743db1 Author: Tejun Heo Date: Fri Oct 15 15:36:08 2010 +0200 md: fix and update workqueue usage Workqueue usage in md has two problems. * Flush can be used during or depended upon by memory reclaim, but md uses the system workqueue for flush_work which may lead to deadlock. * md depends on flush_scheduled_work() to achieve exclusion against completion of removal of previous instances. flush_scheduled_work() may incur unexpected amount of delay and is scheduled to be removed. This patch adds two workqueues to md - md_wq and md_misc_wq. The former is guaranteed to make forward progress under memory pressure and serves flush_work. The latter serves as the flush domain for other works. Signed-off-by: Tejun Heo Signed-off-by: NeilBrown commit 57dab0bdf689d42972975ec646d862b0900a4bf3 Author: NeilBrown Date: Tue Oct 19 10:03:39 2010 +1100 md: use sector_t in bitmap_get_counter bitmap_get_counter returns the number of sectors covered by the counter in a pass-by-reference variable. In some cases this can be very large, so make it a sector_t for safety. Signed-off-by: NeilBrown commit 4b532c9b8c87eb8e51605c4d08dfb5139c758dc5 Author: NeilBrown Date: Thu Oct 28 17:30:21 2010 +1100 md: remove md_mutex locking. lock_kernel calls were recently pushed down into open/release functions. md doesn't need that protection. Then the BKL calls were change to md_mutex. We don't need those either. So remove it all. Signed-off-by: NeilBrown commit d97a41dc9c44f5829b7af7aa69fda10fd82b6b4e Author: NeilBrown Date: Thu Oct 28 17:30:20 2010 +1100 md: Fix regression with raid1 arrays without persistent metadata. A RAID1 which has no persistent metadata, whether internal or external, will hang on the first write. This is caused by commit 070dc6dd7103b6b3f7e4d46e754354a5c15f366e In that case, MD_CHANGE_PENDING never gets cleared. So during md_update_sb, is neither persistent or external, clear MD_CHANGE_PENDING. This is suitable for 2.6.36-stable. Signed-off-by: NeilBrown Cc: stable@kernel.org commit 81280572ca6f54009edfa4deee563e8678784218 Merge: b83db1d a107e5a Author: Linus Torvalds Date: Wed Oct 27 21:54:31 2010 -0700 Merge branch 'upstream-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 * 'upstream-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (50 commits) ext4,jbd2: convert tracepoints to use major/minor numbers ext4: optimize orphan_list handling for ext4_setattr ext4: fix unbalanced mutex unlock in error path of ext4_li_request_new ext4: fix compile error in ext4_fallocate() ext4: move ext4_mb_{get,put}_buddy_cache_lock and make them static ext4: rename mark_bitmap_end() to ext4_mark_bitmap_end() ext4: move flush_completed_IO to fs/ext4/fsync.c and make it static ext4: rename {ext,idx}_pblock and inline small extent functions ext4: make various ext4 functions be static ext4: rename {exit,init}_ext4_*() to ext4_{exit,init}_*() ext4: fix kernel oops if the journal superblock has a non-zero j_errno ext4: update writeback_index based on last page scanned ext4: implement writeback livelock avoidance using page tagging ext4: tidy up a void argument in inode.c ext4: add batched_discard into ext4 feature list ext4: Add batched discard support for ext4 fs: Add FITRIM ioctl ext4: Use return value from sb_issue_discard() ext4: Check return value of sb_getblk() and friends ext4: use bio layer instead of buffer layer in mpage_da_submit_io ... commit a107e5a3a473a2ea62bd5af24e11b84adf1486ff Merge: e3e1288 a269029 Author: Theodore Ts'o Date: Wed Oct 27 23:44:47 2010 -0400 Merge branch 'next' into upstream-merge Conflicts: fs/ext4/inode.c fs/ext4/mballoc.c include/trace/events/ext4.h commit b83db1deb29eb4eea9bf5992431d26978e039ce6 Merge: 7d2f280 7e94250 Author: Linus Torvalds Date: Wed Oct 27 20:37:06 2010 -0700 Merge branch 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 * 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: drm/radeon/kms: enable unmappable vram for evergreen drm/radeon/kms: fix tiled db height calculation on 6xx/7xx drm/radeon/kms: fix handling of tex lookup disable in cs checker on r2xx commit 7d2f280e75f05919314e250cadf361a327ed555c Merge: e3e1288 4408ea4 Author: Linus Torvalds Date: Wed Oct 27 20:13:18 2010 -0700 Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6 * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6: (24 commits) quota: Fix possible oops in __dquot_initialize() ext3: Update kernel-doc comments jbd/2: fixed typos ext2: fixed typo. ext3: Fix debug messages in ext3_group_extend() jbd: Convert atomic_inc() to get_bh() ext3: Remove misplaced BUFFER_TRACE() in ext3_truncate() jbd: Fix debug message in do_get_write_access() jbd: Check return value of __getblk() ext3: Use DIV_ROUND_UP() on group desc block counting ext3: Return proper error code on ext3_fill_super() ext3: Remove unnecessary casts on bh->b_data ext3: Cleanup ext3_setup_super() quota: Fix issuing of warnings from dquot_transfer quota: fix dquot_disable vs dquot_transfer race v2 jbd: Convert bitops to buffer fns ext3/jbd: Avoid WARN() messages when failing to write the superblock jbd: Use offset_in_page() instead of manual calculation jbd: Remove unnecessary goto statement jbd: Use printk_ratelimited() in journal_alloc_journal_head() ... commit c1758012971e0410790b2bc96a77e26d7b286593 Author: Jesse Gross Date: Tue Oct 26 14:56:03 2010 +0000 igb: Fix unused variable warning. Commit eab6d18d "vlan: Don't check for vlan group before vlan_tx_tag_present" removed the need for the adapter variable in igb_xmit_frame_ring_adv(). This removes the variable as well to avoid the compiler warning. Reported-by: Stephen Rothwell Signed-off-by: Jesse Gross Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 63111a3a70fb4d80e3b54ed75f13795e98f7a467 Author: Paul Mundt Date: Thu Oct 28 11:36:31 2010 +0900 sh: intc: switch irq_desc iteration to new active IRQ iterator. There's no need to iterative over every single irq_desc when we can already work out which IRQs have a backing descriptor via the shiny new for_each_active_irq(). Switch to that instead. Signed-off-by: Paul Mundt commit fb41a49d96cd0fb6c63362ff1c8de22e9e7399af Author: Paul Mundt Date: Thu Oct 28 11:33:21 2010 +0900 sh: fix up cpu hotplug IRQ migration for irq_data changes. This fixes up the __cpu_disable() path's IRQ migration for the irq_data changes. Signed-off-by: Paul Mundt commit a269029d0e2192046be4c07ed78a45022469ee4c Author: Theodore Ts'o Date: Wed Oct 27 22:08:50 2010 -0400 ext4,jbd2: convert tracepoints to use major/minor numbers Unfortunately perf can't deal with anything other than direct structure accesses in the TP_printk() section. It will drop dead when it sees jbd2_dev_to_name() in the "print fmt" section of the tracepoint. Addresses-Google-Bug: 3138508 Signed-off-by: "Theodore Ts'o" commit 3d287de3b828226e5a450c7fd5bf4283792dc2b0 Author: Dmitry Monakhov Date: Wed Oct 27 22:08:46 2010 -0400 ext4: optimize orphan_list handling for ext4_setattr Surprisingly chown() on ext4 is not SMP scalable operation. Due to unconditional orphan_del(NULL, inode) in ext4_setattr() result in significant performance overhead because of global orphan mutex, especially in no-journal mode (where orphan_add() is noop). It is possible to skip explicit orphan_del if possible. Results of fchown() micro-benchmark in no-journal mode while (1) { iteration++; fchown(fd, uid, gid); fchown(fd, uid + 1, gid + 1) } measured: iterations per millisecond | nr_tasks | w/o patch | with patch | | 1 | 142 | 185 | | 4 | 109 | 642 | Signed-off-by: Dmitry Monakhov Signed-off-by: "Theodore Ts'o" commit beed5ecbaa377fa8bb6a54a6608e8725a21efdbc Author: Nicolas Kaiser Date: Wed Oct 27 22:08:42 2010 -0400 ext4: fix unbalanced mutex unlock in error path of ext4_li_request_new Signed-off-by: Nicolas Kaiser Signed-off-by: "Theodore Ts'o" commit e3e1288e86a07cdeb0aee5860a2dff111c6eff79 Merge: 9ae6d03 964dc25 Author: Linus Torvalds Date: Wed Oct 27 19:04:36 2010 -0700 Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx: (48 commits) DMAENGINE: move COH901318 to arch_initcall dma: imx-dma: fix signedness bug dma/timberdale: simplify conditional ste_dma40: remove channel_type ste_dma40: remove enum for endianess ste_dma40: remove TIM_FOR_LINK option ste_dma40: move mode_opt to separate config ste_dma40: move channel mode to a separate field ste_dma40: move priority to separate field ste_dma40: add variable to indicate valid dma_cfg async_tx: make async_tx channel switching opt-in move async raid6 test to lib/Kconfig.debug dmaengine: Add Freescale i.MX1/21/27 DMA driver intel_mid_dma: change the slave interface intel_mid_dma: fix the WARN_ONs intel_mid_dma: Add sg list support to DMA driver intel_mid_dma: Allow DMAC2 to share interrupt intel_mid_dma: Allow IRQ sharing intel_mid_dma: Add runtime PM support DMAENGINE: define a dummy filter function for ste_dma40 ... commit 9ae6d039224def926656206725ae6e89d1331417 Merge: bdab225 51f4332 Author: Linus Torvalds Date: Wed Oct 27 19:02:41 2010 -0700 Merge branch 'viafb-next' of git://github.com/schandinat/linux-2.6 * 'viafb-next' of git://github.com/schandinat/linux-2.6: (29 commits) viafb: add initial VX900 support viafb: fix hardware acceleration for suspend & resume viafb: make suspend and resume work (on all machines?) viafb: restore display on resume Minimal support for viafb suspend/resume viafb: use proper register for colour when doing fill ops viafb: add documentation for proc interface viafb: rename output devices viafb: add a mapping of supported output devices viafb: set sync polarity for all output devices viafb: add function to change sync polarity per device viafb: reduce I2C timeout and delay viafb: enable I2C for CRT viafb: fix i2c_transfer error handling viafb: vt1636 cleanup viafb: introduce per output device power management viafb: limit LCD code impact viafb: add interface for output device configuration viafb: merge the remaining output path with enable functions viafb: use new device routing ... commit bdab225015fbbb45ccd8913f5d7c01b2bf67d8b2 Merge: 7c5814c 7c7fcf7 Author: Linus Torvalds Date: Wed Oct 27 18:53:26 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-2.6-mn10300 * git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-2.6-mn10300: (44 commits) MN10300: Save frame pointer in thread_info struct rather than global var MN10300: Change "Matsushita" to "Panasonic". MN10300: Create a defconfig for the ASB2364 board MN10300: Update the ASB2303 defconfig MN10300: ASB2364: Add support for SMSC911X and SMC911X MN10300: ASB2364: Handle the IRQ multiplexer in the FPGA MN10300: Generic time support MN10300: Specify an ELF HWCAP flag for MN10300 Atomic Operations Unit support MN10300: Map userspace atomic op regs as a vmalloc page MN10300: And Panasonic AM34 subarch and implement SMP MN10300: Delete idle_timestamp from irq_cpustat_t MN10300: Make various interrupt priority settings configurable MN10300: Optimise do_csum() MN10300: Implement atomic ops using atomic ops unit MN10300: Make the FPU operate in non-lazy mode under SMP MN10300: SMP TLB flushing MN10300: Use the [ID]PTEL2 registers rather than [ID]PTEL for TLB control MN10300: Make the use of PIDR to mark TLB entries controllable MN10300: Rename __flush_tlb*() to local_flush_tlb*() MN10300: AM34 erratum requires MMUCTR read and write on exception entry ... commit 7c5814c7199851c5fe9395d08fc1ab3c8c1531ea Merge: a042e26 89e1e66 Author: Linus Torvalds Date: Wed Oct 27 18:52:49 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: ALSA: usb-audio: automatically detect feedback format ASoC: sound/wm9090: add missing __devexit marker ASoC: sound/max98088: add missing __devexit marker ASoC: sound/ad73311: add missing __devexit marker ASoC: fsl - fix build error in pcm030-audio-fabric.c sound/oss/sb_ess.c: delete double assignment ALSA: hda - Change BTL amp level on some HP notebooks commit 51a0bb0c2e614659132fce272c8a1815a12c5c2a Author: Milan Broz Date: Wed Oct 27 19:51:30 2010 -0600 loop: Properly clear sysfs in autoclear mode In autoclear mode bdev is NULL but the sysfs entry should be destroyed otherwise this warning appears: WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x82/0x95() sysfs: cannot create duplicate filename '/devices/virtual/block/loop0/loop' Fixes commit ee86273062cbb310665fe49e1f1937d2cf85b0b9 Signed-off-by: Milan Broz Signed-off-by: Jens Axboe commit a042e26137d7674ac04b1cd2d5c06b9ebc1ee2d5 Merge: f66dd53 e25804a Author: Linus Torvalds Date: Wed Oct 27 18:48:00 2010 -0700 Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (50 commits) perf python scripting: Add futex-contention script perf python scripting: Fixup cut'n'paste error in sctop script perf scripting: Shut up 'perf record' final status perf record: Remove newline character from perror() argument perf python scripting: Support fedora 11 (audit 1.7.17) perf python scripting: Improve the syscalls-by-pid script perf python scripting: print the syscall name on sctop perf python scripting: Improve the syscalls-counts script perf python scripting: Improve the failed-syscalls-by-pid script kprobes: Remove redundant text_mutex lock in optimize x86/oprofile: Fix uninitialized variable use in debug printk tracing: Fix 'faild' -> 'failed' typo perf probe: Fix format specified for Dwarf_Off parameter perf trace: Fix detection of script extension perf trace: Use $PERF_EXEC_PATH in canned report scripts perf tools: Document event modifiers perf tools: Remove direct slang.h include perf_events: Fix for transaction recovery in group_sched_in() perf_events: Revert: Fix transaction recovery in group_sched_in() perf, x86: Use NUMA aware allocations for PEBS/BTS/DS allocations ... commit f66dd539feb849a3a00f7fac67c026e0935e373a Merge: 17bb51d 87acf5a Author: Linus Torvalds Date: Wed Oct 27 18:47:39 2010 -0700 Merge branch 'module' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus * 'module' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus: NULL-terminate all pci_device_id tables (trivial) Fix compiler warning in kernel/modules.c commit 17bb51d56cdc8cbf252031db3107de034cfeb44c Merge: 0671b76 95aac7b Author: Linus Torvalds Date: Wed Oct 27 18:42:52 2010 -0700 Merge branch 'akpm-incoming-2' * akpm-incoming-2: (139 commits) epoll: make epoll_wait() use the hrtimer range feature select: rename estimate_accuracy() to select_estimate_accuracy() Remove duplicate includes from many files ramoops: use the platform data structure instead of module params kernel/resource.c: handle reinsertion of an already-inserted resource kfifo: fix kfifo_alloc() to return a signed int value w1: don't allow arbitrary users to remove w1 devices alpha: remove dma64_addr_t usage mips: remove dma64_addr_t usage sparc: remove dma64_addr_t usage fuse: use release_pages() taskstats: use real microsecond granularity for CPU times taskstats: split fill_pid function taskstats: separate taskstats commands delayacct: align to 8 byte boundary on 64-bit systems delay-accounting: reimplement -c for getdelays.c to report information on a target command namespaces Kconfig: move namespace menu location after the cgroup namespaces Kconfig: remove the cgroup device whitelist experimental tag namespaces Kconfig: remove pointless cgroup dependency namespaces Kconfig: make namespace a submenu ... commit 0671b7674f42ab3a200401ea0e48d6f47d34acae Merge: 0b2d8d9 47f19a0 Author: Linus Torvalds Date: Wed Oct 27 18:38:55 2010 -0700 Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: percpu: Remove the multi-page alignment facility x86-32: Allocate irq stacks seperate from percpu area x86-32, mm: Remove duplicated #include x86, printk: Get rid of <0> from stack output x86, kexec: Make sure to stop all CPUs before exiting the kernel x86/vsmp: Eliminate kconfig dependency warning commit 0b2d8d9e562de3ee2476f549549e4fefbb7a4213 Author: Linus Torvalds Date: Wed Oct 27 18:34:59 2010 -0700 proc_bus_pci_ioctl: remove pointless BKL usage The BKL was pushed into this function when it was converted to use the unlocked_ioctl interface, but nothing that the function touches is actually protected by the BKL. So just remove the BKL entirely, so that we finally can get a realistic system build without the BKL being enabled at all. Signed-off-by: Linus Torvalds commit a6371b636f9f007ee5c90f85de048bc1b675424a Author: Kazuya Mio Date: Wed Oct 27 21:30:15 2010 -0400 ext4: fix compile error in ext4_fallocate() When I compiled 2.6.36-rc3 kernel with EXT4FS_DEBUG definition, I got the following compile error. CC [M] fs/ext4/extents.o fs/ext4/extents.c: In function 'ext4_fallocate': fs/ext4/extents.c:3772: error: 'block' undeclared (first use in this function) fs/ext4/extents.c:3772: error: (Each undeclared identifier is reported only once fs/ext4/extents.c:3772: error: for each function it appears in.) make[2]: *** [fs/ext4/extents.o] Error 1 The patch fixes this problem. Signed-off-by: Kazuya Mio Signed-off-by: "Theodore Ts'o" commit eee4adc709afe40d8c02fa154c63dbeb55d911e3 Author: Eric Sandeen Date: Wed Oct 27 21:30:15 2010 -0400 ext4: move ext4_mb_{get,put}_buddy_cache_lock and make them static These functions are only used within fs/ext4/mballoc.c, so move them so they are used after they are defined, and then make them be static. Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" commit 61d08673de1fe68bfba86203258377bf39f234b6 Author: Theodore Ts'o Date: Wed Oct 27 21:30:15 2010 -0400 ext4: rename mark_bitmap_end() to ext4_mark_bitmap_end() Fix a namespace leak from fs/ext4 Signed-off-by: "Theodore Ts'o" commit 4a873a472b3bbcfd425d7ae210afdec28c04e2e5 Author: Theodore Ts'o Date: Wed Oct 27 21:30:14 2010 -0400 ext4: move flush_completed_IO to fs/ext4/fsync.c and make it static Fix a namespace leak by moving the function to the file where it is used and making it static. Signed-off-by: "Theodore Ts'o" commit bf89d16f6ef5389f1b9d8046e838ec87b9b3f8b9 Author: Theodore Ts'o Date: Wed Oct 27 21:30:14 2010 -0400 ext4: rename {ext,idx}_pblock and inline small extent functions Cleanup namespace leaks from fs/ext4 and the inline trivial functions ext4_{ext,idx}_pblock() and ext4_{ext,idx}_store_pblock() since the code size actually shrinks when we make these functions inline, they're so trivial. Signed-off-by: "Theodore Ts'o" commit 1f109d5a17b438c4a54cbf6fd87a249e3d72fb21 Author: Theodore Ts'o Date: Wed Oct 27 21:30:14 2010 -0400 ext4: make various ext4 functions be static These functions have no need to be exported beyond file context. No functions needed to be moved for this commit; just some function declarations changed to be static and removed from header files. (A similar patch was submitted by Eric Sandeen, but I wanted to handle code movement in separate patches to make sure code changes didn't accidentally get dropped.) Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" commit 5dabfc78dcedbe46cb2e4872dde448de3cec2979 Author: Theodore Ts'o Date: Wed Oct 27 21:30:14 2010 -0400 ext4: rename {exit,init}_ext4_*() to ext4_{exit,init}_*() This is a cleanup to avoid namespace leaks out of fs/ext4 Signed-off-by: "Theodore Ts'o" commit 7f93cff90fa9be6ed45f6189e136153d1d8631b0 Author: Theodore Ts'o Date: Wed Oct 27 21:30:13 2010 -0400 ext4: fix kernel oops if the journal superblock has a non-zero j_errno Commit 84061e0 fixed an accounting bug only to introduce the possibility of a kernel OOPS if the journal has a non-zero j_errno field indicating that the file system had detected a fs inconsistency. After the journal replay, if the journal superblock indicates that the file system has an error, this indication is transfered to the file system and then ext4_commit_super() is called to write this to the disk. But since the percpu counters are now initialized after the journal replay, the call to ext4_commit_super() will cause a kernel oops since it needs to use the percpu counters the ext4 superblock structure. The fix is to skip setting the ext4 free block and free inode fields if the percpu counter has not been set. Thanks to Ken Sumrall for reporting and analyzing the root causes of this bug. Addresses-Google-Bug: #3054080 Signed-off-by: "Theodore Ts'o" commit 72f84e6560d18d60a091df27edf81409be6641cb Author: Eric Sandeen Date: Wed Oct 27 21:30:13 2010 -0400 ext4: update writeback_index based on last page scanned As pointed out in a prior patch, updating the mapping's writeback_index based on pages written isn't quite right; what the writeback index is really supposed to reflect is the next page which should be scanned for writeback during periodic flush. As in write_cache_pages(), write_cache_pages_da() does this scanning for us as we assemble the mpd for later writeout. If we keep track of the next page after the current scan, we can easily update writeback_index without worrying about pages written vs. pages skipped, etc. Without this, an fsync will reset writeback_index to 0 (its starting index) + however many pages it wrote, which can mess up the progress of periodic flush. Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" commit 5b41d92437f1ae19b3f3ffa3b16589fd5df50ac0 Author: Eric Sandeen Date: Wed Oct 27 21:30:13 2010 -0400 ext4: implement writeback livelock avoidance using page tagging This is analogous to Jan Kara's commit, f446daaea9d4a420d16c606f755f3689dcb2d0ce mm: implement writeback livelock avoidance using page tagging but since we forked write_cache_pages, we need to reimplement it there (and in ext4_da_writepages, since range_cyclic handling was moved to there) If you start a large buffered IO to a file, and then set fsync after it, you'll find that fsync does not complete until the other IO stops. If you continue re-dirtying the file (say, putting dd with conv=notrunc in a loop), when fsync finally completes (after all IO is done), it reports via tracing that it has written many more pages than the file contains; in other words it has synced and re-synced pages in the file multiple times. This then leads to problems with our writeback_index update, since it advances it by pages written, and essentially sets writeback_index off the end of the file... With the following patch, we only sync as much as was dirty at the time of the sync. Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" commit bbd08344e3df8c7c1d7aa04bc0c8c9367806e12d Author: Eric Sandeen Date: Wed Oct 27 21:30:12 2010 -0400 ext4: tidy up a void argument in inode.c This doesn't fix anything at all, it just removes a vestige of prior use from __mpage_da_writepage() __mpage_da_writepage() had a *void argument leftover from its previous life as a callback; make it reflect the actual type. Fixing this up makes it slightly more obvious to read, and enables proper typechecking. Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" commit 27ee40df2b17c84aa7855907df12befe6869b7a7 Author: Lukas Czerner Date: Wed Oct 27 21:30:12 2010 -0400 ext4: add batched_discard into ext4 feature list Should be applied on the top of "lazy inode table initialization" and "batched discard support" patch-sets. Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" commit 7360d1731e5dc78aec867e65e55f9fb58782b5fe Author: Lukas Czerner Date: Wed Oct 27 21:30:12 2010 -0400 ext4: Add batched discard support for ext4 Walk through allocation groups and trim all free extents. It can be invoked through FITRIM ioctl on the file system. The main idea is to provide a way to trim the whole file system if needed, since some SSD's may suffer from performance loss after the whole device was filled (it does not mean that fs is full!). It search for free extents in allocation groups specified by Byte range start -> start+len. When the free extent is within this range, blocks are marked as used and then trimmed. Afterwards these blocks are marked as free in per-group bitmap. Since fstrim is a long operation it is good to have an ability to interrupt it by a signal. This was added by Dmitry Monakhov. Thanks Dimitry. Signed-off-by: Lukas Czerner Signed-off-by: Dmitry Monakhov Reviewed-by: Jan Kara Reviewed-by: Dmitry Monakhov Signed-off-by: "Theodore Ts'o" commit 367a51a339020ba4d9edb0ce0f21d65bd50b00c9 Author: Lukas Czerner Date: Wed Oct 27 21:30:11 2010 -0400 fs: Add FITRIM ioctl Adds an filesystem independent ioctl to allow implementation of file system batched discard support. I takes fstrim_range structure as an argument. fstrim_range is definec in the include/fs.h and its definition is as follows. struct fstrim_range { start; len; minlen; } start - first Byte to trim len - number of Bytes to trim from start minlen - minimum extent length to trim, free extents shorter than this number of Bytes will be ignored. This will be rounded up to fs block size. It is also possible to specify NULL as an argument. In this case the arguments will set itself as follows: start = 0; len = ULLONG_MAX; minlen = 0; So it will trim the whole file system at one run. After the FITRIM is done, the number of actually discarded Bytes is stored in fstrim_range.len to give the user better insight on how much storage space has been really released for wear-leveling. Signed-off-by: Lukas Czerner Reviewed-by: Dmitry Monakhov Signed-off-by: "Theodore Ts'o" commit 77ca6cdf0ab8a42f481ec997911bc89e79138723 Author: Lukas Czerner Date: Wed Oct 27 21:30:11 2010 -0400 ext4: Use return value from sb_issue_discard() Use return value from sb_issue_discard() as return value in ext4_issue_discard(). Since sb_issue_discard() may result in more serious errors than just -EOPNOTSUPP it is worth to inform user of this function about them to handle error cases properly. Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" commit 877836905da55e8f2426234f42a89287184949e9 Author: Namhyung Kim Date: Wed Oct 27 21:30:11 2010 -0400 ext4: Check return value of sb_getblk() and friends Fail block allocation if sb_getblk() returns NULL. In that case, sb_find_get_block() also likely to fail so that it should skip calling ext4_forget(). Signed-off-by: Namhyung Kim Signed-off-by: "Theodore Ts'o" commit bd2d0210cf22f2bd0cef72eb97cf94fc7d31d8cc Author: Theodore Ts'o Date: Wed Oct 27 21:30:10 2010 -0400 ext4: use bio layer instead of buffer layer in mpage_da_submit_io Call the block I/O layer directly instad of going through the buffer layer. This should give us much better performance and scalability, as well as lowering our CPU utilization when doing buffered writeback. Signed-off-by: "Theodore Ts'o" commit 1de3e3df917459422cb2aecac440febc8879d410 Author: Theodore Ts'o Date: Wed Oct 27 21:30:10 2010 -0400 ext4: move mpage_put_bnr_to_bhs()'s functionality to mpage_da_submit_io() This massively simplifies the ext4_da_writepages() code path by completely removing mpage_put_bnr_bhs(), which is almost 100 lines of code iterating over a set of pages using pagevec_lookup(), and folds that functionality into mpage_da_submit_io()'s existing pagevec_lookup() loop. Signed-off-by: "Theodore Ts'o" commit 3ecdb3a193a5f224f084c04a63aa28cdccf4d7d0 Author: Theodore Ts'o Date: Wed Oct 27 21:30:10 2010 -0400 ext4: inline walk_page_buffers() into mpage_da_submit_io Expand the call: if (walk_page_buffers(NULL, page_bufs, 0, len, NULL, ext4_bh_delay_or_unwritten)) goto redirty_page into mpage_da_submit_io(). This will allow us to merge in mpage_put_bnr_to_bhs() in the next patch. Signed-off-by: "Theodore Ts'o" commit cb20d5188366f04d96d2e07b1240cc92170ade40 Author: Theodore Ts'o Date: Wed Oct 27 21:30:09 2010 -0400 ext4: inline ext4_writepage() into mpage_da_submit_io() As a prepratory step to switching to bio_submit, inline ext4_writepage() into mpage_da_submit() and then simplify things a bit. This makes it clearer what mpage_da_submit needs to do. Also, move the ClearPageChecked(page) call into __ext4_journalled_writepage(), as a minor bit of cleanup refactoring. This also allows us to pull i_size_read() and ext4_should_journal_data() out of the loop, which should be a very minor CPU savings. Signed-off-by: "Theodore Ts'o" commit a42afc5f56f319107e987aa6adf2f65d93d527c7 Author: Theodore Ts'o Date: Wed Oct 27 21:30:09 2010 -0400 ext4: simplify ext4_writepage() The actual code in ext4_writepage() is unnecessarily convoluted. Simplify it so it is easier to understand, but otherwise logically equivalent. Signed-off-by: "Theodore Ts'o" commit 5a87b7a5da250c9be6d757758425dfeaf8ed3179 Author: Theodore Ts'o Date: Wed Oct 27 21:30:09 2010 -0400 ext4: call mpage_da_submit_io() from mpage_da_map_blocks() Eventually we need to completely reorganize the ext4 writepage callpath, but for now, we simplify things a little by calling mpage_da_submit_io() from mpage_da_map_blocks(), since all of the places where we call mpage_da_map_blocks() it is followed up by a call to mpage_da_submit_io(). We're also a wee bit better with respect to error handling, but there are still a number of issues where it's not clear what the right thing is to do with ext4 functions deep in the writeback codepath fails. Signed-off-by: "Theodore Ts'o" commit 16828088f9e518158edecb6cde7e6fa38e4c889b Author: Theodore Ts'o Date: Wed Oct 27 21:30:09 2010 -0400 ext4: use KMEM_CACHE instead of kmem_cache_create Also remove the SLAB_RECLAIM_ACCOUNT flag from the system zone kmem cache. This slab tends to be fairly static, so it shouldn't be marked as likely to have free pages that can be reclaimed. Signed-off-by: "Theodore Ts'o" commit 7845c0497536c566bfef08db1a38ae1ad2c25464 Author: Theodore Ts'o Date: Wed Oct 27 21:30:08 2010 -0400 ext4: use search_dirblock() in ext4_dx_find_entry() Use the search_dirblock() in ext4_dx_find_entry(). It makes the code easier to read, and it takes advantage of common code. It also saves 100 bytes or so of text space. Signed-off-by: "Theodore Ts'o" Cc: Brad Spengler commit 8941ec8bb6443d28d5c25311870aeaa809cf1538 Author: Theodore Ts'o Date: Wed Oct 27 21:30:08 2010 -0400 ext4: avoid uninitialized memory references in ext3_htree_next_block() If the first block of htree directory is missing '.' or '..' but is otherwise a valid directory, and we do a lookup for '.' or '..', it's possible to dereference an uninitialized memory pointer in ext4_htree_next_block(). We avoid this by moving the special case from ext4_dx_find_entry() to ext4_find_entry(); this also means we can optimize ext4_find_entry() slightly when NFS looks up "..". Thanks to Brad Spengler for pointing a Clang warning that led me to look more closely at this code. The warning was harmless, but it was useful in pointing out code that was too ugly to live. This warning was also reported by Roman Borisov. Signed-off-by: "Theodore Ts'o" Cc: Brad Spengler commit 640e9396566a1e1f52f2db294755a23f1e62cc97 Author: Eric Sandeen Date: Wed Oct 27 21:30:08 2010 -0400 ext4: remove unused ext4_sb_info members Not that these take up a lot of room, but the structure is long enough as it is, and there's no need to confuse people with these various undocumented & unused structure members... Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" commit c999af2b347a55174f702702e0df814d05ef5491 Author: Eric Sandeen Date: Wed Oct 27 21:30:07 2010 -0400 ext4: queue conversion after adding to inode's completed IO list By queuing the io end on the unwritten workqueue before adding it to our inode's list of completed IOs, I think we run the risk of the work getting completed, and the IO freed, before we try to add it to the inode's i_completed_io_list. It should be safe to add it to the inode's list of completed IOs, and -then- queue it for completion, I think. Thanks to Dave Chinner for pointing out the race. Signed-off-by: Eric Sandeen Reviewed-by: Jiaying Zhang Signed-off-by: "Theodore Ts'o" commit 3e1e5f501632460184a98237d5460c521510535e Author: Eric Sandeen Date: Wed Oct 27 21:30:07 2010 -0400 ext4: don't use ext4_allocation_contexts for tracing Many tracepoints were populating an ext4_allocation_context to pass in, but this requires a slab allocation even when tracepoints are off. In fact, 4 of 5 of these allocations were only for tracing. In addition, we were only using a small fraction of the 144 bytes of this structure for this purpose. We can do away with all these alloc/frees of the ac and simply pass in the bits we care about, instead. I tested this by turning on tracing and running through xfstests on x86_64. I did not actually do anything with the trace output, however. Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" commit 4d5476164a052e80d4ef430e368e76dbde96801f Author: Eric Sandeen Date: Wed Oct 27 21:30:07 2010 -0400 ext4: fix oops in trace_ext4_mb_release_group_pa Our QA reported an oops in the ext4_mb_release_group_pa tracing, and Josef Bacik pointed out that it was because we may have a non-null but uninitialized ac_inode in the allocation context. I can reproduce it when running xfstests with ext4 tracepoints on, on a CONFIG_SLAB_DEBUG kernel. We call trace_ext4_mb_release_group_pa from 2 places, ext4_mb_discard_group_preallocations and ext4_mb_discard_lg_preallocations In both cases we allocate an ac as a container just for tracing (!) and never fill in the ac_inode. There's no reason to be assigning, testing, or printing it as far as I can see, so just remove it from the tracepoint. Signed-off-by: Eric Sandeen Reviewed-by: Josef Bacik Signed-off-by: "Theodore Ts'o" commit 0c9169ccad4aed233fdd49e95da4eada2536a06d Author: Toshiyuki Okajima Date: Wed Oct 27 21:30:07 2010 -0400 ext4: fix potential infinite loop in ext4_da_writepages() On linux-2.6.36-rc2, if we execute the following script, we can hang the system when the /bin/sync command is executed: ======================================================================== #!/bin/sh echo -n "HANG UP TEST: " /bin/dd if=/dev/zero of=/tmp/img bs=1k count=1 seek=1M 2> /dev/null /sbin/mkfs.ext4 -Fq /tmp/img /bin/mount -o loop -t ext4 /tmp/img /mnt /bin/dd if=/dev/zero of=/mnt/file bs=1 count=1 \ seek=$((16*1024*1024*1024*1024-4096)) 2> /dev/null /bin/sync /bin/umount /mnt echo "DONE" exit 0 ======================================================================== We can see the following backtrace if we get the kdump when this hangup occurs: ====================================================================== kthread() => bdi_writeback_thread() => wb_do_writeback() => wb_writeback() => writeback_inodes_wb() => writeback_sb_inodes() => writeback_single_inode() => ext4_da_writepages() ---+ ^ infinite | | loop | +-------------+ ====================================================================== The reason why this hangup happens is described as follows: 1) We write the last extent block of the file whose size is the filesystem maximum size. 2) "BH_Delay" flag is set on the buffer_head of its block. 3) - the member, "m_lblk" of struct mpage_da_data is 4294967295 (UINT_MAX) - the member, "m_len" of struct mpage_da_data is 1 mpage_put_bnr_to_bhs() which is called via ext4_da_writepages() cannot clear "BH_Delay" flag of the buffer_head because the type of m_lblk is ext4_lblk_t and then m_lblk + m_len is overflow. Therefore an infinite loop occurs because ext4_da_writepages() cannot write the page (which corresponds to the block) since "BH_Delay" flag isn't cleared. ---------------------------------------------------------------------- static void mpage_put_bnr_to_bhs(struct mpage_da_data *mpd, struct ext4_map_blocks *map) { ... int blocks = map->m_len; ... do { // cur_logical = 4294967295 // map->m_lblk = 4294967295 // blocks = 1 // *** map->m_lblk + blocks == 0 (OVERFLOW!) *** // (cur_logical >= map->m_lblk + blocks) => true if (cur_logical >= map->m_lblk + blocks) break; ---------------------------------------------------------------------- NOTE: Mounting with the nodelalloc option will avoid this codepath, and thus, avoid this hang Signed-off-by: Toshiyuki Okajima Signed-off-by: "Theodore Ts'o" commit e0d10bfa91b0a089a9e2c378b5c42f4e96171d95 Author: Toshiyuki Okajima Date: Wed Oct 27 21:30:06 2010 -0400 ext4: improve llseek error handling for overly large seek offsets The llseek system call should return EINVAL if passed a seek offset which results in a write error. What this maximum offset should be depends on whether or not the huge_file file system feature is set, and whether or not the file is extent based or not. If the file has no "EXT4_EXTENTS_FL" flag, the maximum size which can be written (write systemcall) is different from the maximum size which can be sought (lseek systemcall). For example, the following 2 cases demonstrates the differences between the maximum size which can be written, versus the seek offset allowed by the llseek system call: #1: mkfs.ext3 ; mount -t ext4 #2: mkfs.ext3 ; tune2fs -Oextent,huge_file ; mount -t ext4 Table. the max file size which we can write or seek at each filesystem feature tuning and file flag setting +============+===============================+===============================+ | \ File flag| | | | \ | !EXT4_EXTENTS_FL | EXT4_EXTETNS_FL | |case \| | | +------------+-------------------------------+-------------------------------+ | #1 | write: 2194719883264 | write: -------------- | | | seek: 2199023251456 | seek: -------------- | +------------+-------------------------------+-------------------------------+ | #2 | write: 4402345721856 | write: 17592186044415 | | | seek: 17592186044415 | seek: 17592186044415 | +------------+-------------------------------+-------------------------------+ The differences exist because ext4 has 2 maxbytes which are sb->s_maxbytes (= extent-mapped maxbytes) and EXT4_SB(sb)->s_bitmap_maxbytes (= block-mapped maxbytes). Although generic_file_llseek uses only extent-mapped maxbytes. (llseek of ext4_file_operations is generic_file_llseek which uses sb->s_maxbytes.) Therefore we create ext4 llseek function which uses 2 maxbytes. The new own function originates from generic_file_llseek(). If the file flag, "EXT4_EXTENTS_FL" is not set, the function alters inode->i_sb->s_maxbytes into EXT4_SB(inode->i_sb)->s_bitmap_maxbytes. Signed-off-by: Toshiyuki Okajima Signed-off-by: "Theodore Ts'o" Cc: Andreas Dilger commit c41303ced67c4ebf51bf2e7d0f139155e09e0939 Author: Maciej Żenczykowski Date: Wed Oct 27 21:30:06 2010 -0400 ext4: don't update sb journal_devnum when RO dev An ext4 filesystem on a read-only device, with an external journal which is at a different device number then recorded in the superblock will fail to honor the read-only setting of the device and trigger a superblock update (write). For example: - ext4 on a software raid which is in read-only mode - external journal on a read-write device which has changed device num - attempt to mount with -o journal_dev= - hits BUG_ON(mddev->ro = 1) in md.c Cc: Theodore Ts'o Signed-off-by: Maciej Żenczykowski Signed-off-by: "Theodore Ts'o" commit 2407518de63a2f80d9b850fb525f35df93bbbe53 Author: Lukas Czerner Date: Wed Oct 27 21:30:06 2010 -0400 ext4: use sb_issue_zeroout in ext4_ext_zeroout Change ext4_ext_zeroout to use sb_issue_zeroout instead of its own approach to zero out extents. Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" commit a31437b85aa2cbc4ea80f9ee5d603fdd5430980c Author: Lukas Czerner Date: Wed Oct 27 21:30:05 2010 -0400 ext4: use sb_issue_zeroout in setup_new_group_blocks Use sb_issue_zeroout to zero out inode table and descriptor table blocks instead of old approach which involves journaling. Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" commit 857ac889cce8a486d47874db4d2f9620e7e9e5de Author: Lukas Czerner Date: Wed Oct 27 21:30:05 2010 -0400 ext4: add interface to advertise ext4 features in sysfs User-space should have the opportunity to check what features doest ext4 support in each particular copy. This adds easy interface by creating new "features" directory in sys/fs/ext4/. In that directory files advertising feature names can be created. Add lazy_itable_init to the feature list. Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" commit bfff68738f1cb5c93dab1114634cea02aae9e7ba Author: Lukas Czerner Date: Wed Oct 27 21:30:05 2010 -0400 ext4: add support for lazy inode table initialization When the lazy_itable_init extended option is passed to mke2fs, it considerably speeds up filesystem creation because inode tables are not zeroed out. The fact that parts of the inode table are uninitialized is not a problem so long as the block group descriptors, which contain information regarding how much of the inode table has been initialized, has not been corrupted However, if the block group checksums are not valid, e2fsck must scan the entire inode table, and the the old, uninitialized data could potentially cause e2fsck to report false problems. Hence, it is important for the inode tables to be initialized as soon as possble. This commit adds this feature so that mke2fs can safely use the lazy inode table initialization feature to speed up formatting file systems. This is done via a new new kernel thread called ext4lazyinit, which is created on demand and destroyed, when it is no longer needed. There is only one thread for all ext4 filesystems in the system. When the first filesystem with inititable mount option is mounted, ext4lazyinit thread is created, then the filesystem can register its request in the request list. This thread then walks through the list of requests picking up scheduled requests and invoking ext4_init_inode_table(). Next schedule time for the request is computed by multiplying the time it took to zero out last inode table with wait multiplier, which can be set with the (init_itable=n) mount option (default is 10). We are doing this so we do not take the whole I/O bandwidth. When the thread is no longer necessary (request list is empty) it frees the appropriate structures and exits (and can be created later later by another filesystem). We do not disturb regular inode allocations in any way, it just do not care whether the inode table is, or is not zeroed. But when zeroing, we have to skip used inodes, obviously. Also we should prevent new inode allocations from the group, while zeroing is on the way. For that we take write alloc_sem lock in ext4_init_inode_table() and read alloc_sem in the ext4_claim_inode, so when we are unlucky and allocator hits the group which is currently being zeroed, it just has to wait. This can be suppresed using the mount option no_init_itable. Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" commit e6fa0be699449d28a20e815bfe9ce26725ec4962 Author: Lukas Czerner Date: Wed Oct 27 21:30:04 2010 -0400 Add helper function for blkdev_issue_zeroout (sb_issue_discard) This is done the same way as helper sb_issue_discard for blkdev_issue_discard. Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" commit 5c2178e785244341d1e6f2bc3b62f20a337cc44f Author: Theodore Ts'o Date: Wed Oct 27 21:30:04 2010 -0400 jbd2: Add sanity check for attempts to start handle during umount An attempt to modify the file system during the call to jbd2_destroy_journal() can lead to a system lockup. So add some checking to make it much more obvious when this happens to and to determine where the offending code is located. Signed-off-by: "Theodore Ts'o" commit a1c6c5698d53db4c47a25c3a8d11731a4d7b8370 Author: Sergey Senozhatsky Date: Wed Oct 27 21:30:04 2010 -0400 ext4: fix NULL pointer dereference in print_daily_error_info() Fix NULL pointer dereference in print_daily_error_info, when called on unmounted fs (EXT4_SB(sb) returns NULL), by removing error reporting timer in ext4_put_super. Google-Bug-Id: 3017663 Signed-off-by: Sergey Senozhatsky Signed-off-by: "Theodore Ts'o" commit 53fdcf992d616484d388a8ab9dad07dc8b8f1178 Author: Lukas Czerner Date: Wed Oct 27 21:30:04 2010 -0400 ext4: don't hold spinlock while calling ext4_issue_discard() We can't hold the block group spinlock because we ext4_issue_discard() calls wait and hence can get rescheduled. Google-Bug-Id: 3017678 Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" commit 582987098207f1182ed5c7d01d5fedf7a5f56286 Author: Lukas Czerner Date: Wed Oct 27 21:30:03 2010 -0400 ext4: check for negative error code from sb_issue_discard sb_issue_discard() is returning negative error code, so check for -EOPNOTSUPP. Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" commit b443e7339aa08574d30b0819b344618459c76214 Author: Eric Sandeen Date: Wed Oct 27 21:30:03 2010 -0400 ext4: don't bump up LONG_MAX nr_to_write by a factor of 8 I'm uneasy with lots of stuff going on in ext4_da_writepages(), but bumping nr_to_write from LLONG_MAX to -8 clearly isn't making anything better, so avoid the multiplier in that case. Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" commit 659c6009ca2e3a01acc9881bafe5f55ef09c965b Author: Eric Sandeen Date: Wed Oct 27 21:30:03 2010 -0400 ext4: stop looping in ext4_num_dirty_pages when max_pages reached Today we simply break out of the inner loop when we have accumulated max_pages; this keeps scanning forwad and doing pagevec_lookup_tag() in the while (!done) loop, this does potentially a lot of work with no net effect. When we have accumulated max_pages, just clean up and return. Signed-off-by: Eric Sandeen Signed-off-by: "Theodore Ts'o" commit fb1813f4a8a27bbd4735967e46931e61fc837a3e Author: Curt Wohlgemuth Date: Wed Oct 27 21:29:12 2010 -0400 ext4: use dedicated slab caches for group_info structures ext4_group_info structures are currently allocated with kmalloc(). With a typical 4K block size, these are 136 bytes each -- meaning they'll each consume a 256-byte slab object. On a system with many ext4 large partitions, that's a lot of wasted kernel slab space. (E.g., a single 1TB partition will have about 8000 block groups, using about 2MB of slab, of which nearly 1MB is wasted.) This patch creates an array of slab pointers created as needed -- depending on the superblock block size -- and uses these slabs to allocate the group info objects. Google-Bug-Id: 2980809 Signed-off-by: Curt Wohlgemuth Signed-off-by: "Theodore Ts'o" commit 22cdbd1d5789cc16c37102eb6f62c3ae377b849e Merge: 55f335a ce45b87 Author: Linus Torvalds Date: Wed Oct 27 18:28:00 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (108 commits) ehea: Fixing statistics bonding: Fix lockdep warning after bond_vlan_rx_register() tunnels: Fix tunnels change rcu protection caif-u5500: Build config for CAIF shared mem driver caif-u5500: CAIF shared memory mailbox interface caif-u5500: CAIF shared memory transport protocol caif-u5500: Adding shared memory include drivers/isdn: delete double assignment drivers/net/typhoon.c: delete double assignment drivers/net/sb1000.c: delete double assignment qlcnic: define valid vlan id range qlcnic: reduce rx ring size qlcnic: fix mac learning ehea: fix use after free inetpeer: __rcu annotations fib_rules: __rcu annotates ctarget tunnels: add __rcu annotations net: add __rcu annotations to protocol ipv4: add __rcu annotations to routes.c qlge: bugfix: Restoring the vlan setting. ... commit 7e94250312d8b32a18e7e96cee19f2795d224e8c Author: Alex Deucher Date: Tue Oct 19 00:36:19 2010 -0400 drm/radeon/kms: enable unmappable vram for evergreen Evergreen now has blit support, but unmappable vram support was disabled in c919b371cb734f42b1130e706ecee262f8d9261d (drm/radeon/kms: avoid corner case issue with unmappable vram V2) due to merge ordering. This re-enables unmappable vram on evergreen. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit b853fd364810a241050778124842a8c415c72a69 Author: Wen Congyang Date: Wed Oct 27 21:27:12 2010 -0400 ext4: avoid null dereference in trace_ext4_mballoc_discard ac->inode is set to null in function ext4_mb_release_group_pa(), and then trace_ext4_mballoc_discard(ac) is called, the kernel will panic. BUG: unable to handle kernel NULL pointer dereference at 000000a4 IP: [] ftrace_raw_event_ext4__mballoc+0x54/0xc0 [ext4] *pdpt = 0000000000abd001 *pde = 0000000000000000 Oops: 0000 [#1] SMP Pid: 550, comm: flush-8:16 Not tainted 2.6.36-rc1 #1 SE7320EP2/Altos G530 EIP: 0060:[] EFLAGS: 00010206 CPU: 1 EIP is at ftrace_raw_event_ext4__mballoc+0x54/0xc0 [ext4] EAX: f32ac840 EBX: f3f1cf88 ECX: f32ac840 EDX: 00000000 ESI: f32ac83c EDI: f880b9d8 EBP: 00000000 ESP: f4b77ae4 DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 Process flush-8:16 (pid: 550, ti=f4b76000 task=f613e540 task.ti=f4b76000) Call Trace: [] ? ext4_mb_release_group_pa+0x121/0x150 [ext4] [] ? ext4_mb_discard_group_preallocations+0x336/0x400 [ext4] [] ? ext4_mb_new_blocks+0x3d1/0x4f0 [ext4] [] ? __make_request+0x10b/0x440 [] ? ext4_ext_map_blocks+0x1334/0x1980 [ext4] [] ? rb_reserve_next_event+0xaa/0x3b0 [] ? ext4_map_blocks+0xd6/0x1d0 [ext4] [] ? mpage_da_map_blocks+0xc7/0x8a0 [ext4] [] ? find_get_pages_tag+0x38/0x110 [] ? __pagevec_release+0x15/0x20 [] ? ext4_da_writepages+0x2b5/0x5d0 [ext4] [] ? __writepage+0x0/0x30 [] ? do_writepages+0x14/0x30 [] ? writeback_single_inode+0xa0/0x240 [] ? writeback_sb_inodes+0xc1/0x180 [] ? writeback_inodes_wb+0x88/0x140 [] ? wb_writeback+0x20b/0x320 [] ? lock_timer_base+0x27/0x50 [] ? wb_do_writeback+0x150/0x190 [] ? bdi_writeback_thread+0x88/0x1f0 [] ? complete+0x40/0x60 [] ? bdi_writeback_thread+0x0/0x1f0 [] ? kthread+0x74/0x80 [] ? kthread+0x0/0x80 [] ? kernel_thread_helper+0x6/0x10 Signed-off-by: Wen Congyang Acked-by: Steven Rostedt Signed-off-by: "Theodore Ts'o" commit 2c7d81acf432fad02073c139355e94a6f7e4df45 Author: Alex Deucher Date: Wed Oct 27 01:44:35 2010 -0400 drm/radeon/kms: fix tiled db height calculation on 6xx/7xx Calculate height based on the slice bitfield rather than the size. Same as Dave's CB fix. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit 43b93fbffc2c080dba2e84df6fce8d7e6c0a2581 Author: Alex Deucher Date: Wed Oct 27 01:02:35 2010 -0400 drm/radeon/kms: fix handling of tex lookup disable in cs checker on r2xx There are cases when multiple texture units have to be enabled, but not actually used to sample. This patch checks to see if the lookup_disable bit is set and if so, skips the texture check. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=25544 Signed-off-by: Alex Deucher Cc: stable@kernel.org Signed-off-by: Dave Airlie commit 39e3ac2599a5f9aba499b5f8af809108e70a6163 Author: Brian King Date: Wed Oct 27 21:25:12 2010 -0400 jbd2: Fix I/O hang in jbd2_journal_release_jbd_inode This fixes a hang seen in jbd2_journal_release_jbd_inode on a lot of Power 6 systems running with ext4. When we get in the hung state, all I/O to the disk in question gets blocked where we stay indefinitely. Looking at the task list, I can see we are stuck in jbd2_journal_release_jbd_inode waiting on a wake up. I added some debug code to detect this scenario and dump additional data if we were stuck in jbd2_journal_release_jbd_inode for longer than 30 minutes. When it hit, I was able to see that i_flags was 0, suggesting we missed the wake up. This patch changes i_flags to be an unsigned long, uses bit operators to access it, and adds barriers around the accesses. Prior to applying this patch, we were regularly hitting this hang on numerous systems in our test environment. After applying the patch, the hangs no longer occur. Signed-off-by: Brian King Signed-off-by: "Theodore Ts'o" commit 58590b06d79f7ce5ab64ff3b6d537180fa50dc84 Author: Theodore Ts'o Date: Wed Oct 27 21:23:12 2010 -0400 ext4: fix EOFBLOCKS_FL handling It turns out we have several problems with how EOFBLOCKS_FL is handled. First of all, there was a fencepost error where we were not clearing the EOFBLOCKS_FL when fill in the last uninitialized block, but rather when we allocate the next block _after_ the uninitalized block. Secondly we were not testing to see if we needed to clear the EOFBLOCKS_FL when writing to the file O_DIRECT or when were converting an uninitialized block (which is the most common case). Google-Bug-Id: 2928259 Signed-off-by: "Theodore Ts'o" commit 55f335a8857db2ee22c068e7ab7141fc79928296 Author: Linus Torvalds Date: Wed Oct 27 18:17:02 2010 -0700 fasync: Fix placement of FASYNC flag comment In commit f7347ce4ee7c ("fasync: re-organize fasync entry insertion to allow it under a spinlock") Arnd took an earlier patch of mine that had the comment about the FASYNC flag above the wrong function. When the fasync_add_entry() function was split to introduce the new fasync_insert_entry() helper function, the code that actually cares about the FASYNC bit moved to that new helper. So just move the comment to the right point. Signed-off-by: Linus Torvalds commit 7420a8c0de8d99b201aeeab6fed16ca95ebf55a5 Merge: 12ba8d1 72f98e7 Author: Linus Torvalds Date: Wed Oct 27 18:13:34 2010 -0700 Merge branch 'flock' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl * 'flock' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl: locks: turn lock_flocks into a spinlock fasync: re-organize fasync entry insertion to allow it under a spinlock locks/nfsd: allocate file lock outside of spinlock lockd: fix nlmsvc_notify_blocked locking lockd: push lock_flocks down commit 95aac7b1cd224f568fb83937044cd303ff11b029 Author: Shawn Bohrer Date: Wed Oct 27 15:34:54 2010 -0700 epoll: make epoll_wait() use the hrtimer range feature This make epoll use hrtimers for the timeout value which prevents epoll_wait() from timing out up to a millisecond early. This mirrors the behavior of select() and poll(). Signed-off-by: Shawn Bohrer Cc: Al Viro Acked-by: Davide Libenzi Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 231f3d393f63f6e3b505afa179999bba491d0f08 Author: Andrew Morton Date: Wed Oct 27 15:34:53 2010 -0700 select: rename estimate_accuracy() to select_estimate_accuracy() Make it a subsystem-specific identifier because we wish to amke it non-static in the next patch ("epoll: make epoll_wait() use the hrtimer range feature"). Cc: Shawn Bohrer Cc: Al Viro Cc: Davide Libenzi Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 61d8e11e519ee7912ab59610fba1aaf08e3c1d84 Author: Zimny Lech Date: Wed Oct 27 15:34:53 2010 -0700 Remove duplicate includes from many files Signed-off-by: Zimny Lech Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c3b92ce9e75f6353104fc7f8e32fb9fdb2550ad0 Author: Kyungmin Park Date: Wed Oct 27 15:34:52 2010 -0700 ramoops: use the platform data structure instead of module params As each board and system has different memory for ramoops. It's better to define the platform data instead of module params. [akpm@linux-foundation.org: fix ramoops_remove() return type] Signed-off-by: Kyungmin Park Cc: Marco Stornelli Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5de1cb2d0f1c1e5475d2bedf65b76828f8cdde22 Author: Huang Shijie Date: Wed Oct 27 15:34:52 2010 -0700 kernel/resource.c: handle reinsertion of an already-inserted resource If the same resource is inserted to the resource tree (maybe not on purpose), a dead loop will be created. In this situation, The kernel does not report any warning or error :( The command below will show a endless print. #cat /proc/iomem [akpm@linux-foundation.org: add WARN_ON()] Signed-off-by: Huang Shijie Cc: Jesse Barnes Cc: Bjorn Helgaas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 144ecf310eb52d9df607b9b7eeb096743e232a96 Author: Stefani Seibold Date: Wed Oct 27 15:34:50 2010 -0700 kfifo: fix kfifo_alloc() to return a signed int value Add a new __kfifo_int_must_check_helper() helper function, which is needed for kfifo_alloc() to return the right signed integer value. The origin __kfifo_must_check_helper() helper was renamed into __kfifo_uint_must_check_helper() to show the sign which is expected and returned. (And revert the temporary disabling of __kfifo_must_check_helper()) Signed-off-by: Stefani Seibold Acked-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 12aa4c64174cb0d915cd1c7b763847c0ffa8e92c Author: Brian Swetland Date: Wed Oct 27 15:34:49 2010 -0700 w1: don't allow arbitrary users to remove w1 devices The search/pullup/add/remove device attributes were 0666 which would allow arbitrary users to affect the 1 wire bus. Change to 0664 to prevent that. I found this patch in the Android tree, apparently this has never been sent upstream so doing it now. Signed-off-by: Brian Swetland Signed-off-by: Linus Walleij Cc: Evgeniy Polyakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f49d2eb314f3f83270bef6aea2abb7a26d4218ee Author: FUJITA Tomonori Date: Wed Oct 27 15:34:48 2010 -0700 alpha: remove dma64_addr_t usage dma_addr_t is always 64 bit on alpha. So let's use dma_addr_t instead. Signed-off-by: FUJITA Tomonori Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c1c7438dbbd03442ff86066843485db7fadd67bd Author: FUJITA Tomonori Date: Wed Oct 27 15:34:47 2010 -0700 mips: remove dma64_addr_t usage dma64_addr_t looks pointless (at least there is no point that an architecture has the own dma64_addr_t typedef). dma_addr_t is set to 32 or 64 bits appropriately. You can use u64 at places where you know that 64 bit address is always necessary. Let's use u64 instead for mips. Signed-off-by: FUJITA Tomonori Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4ad9b208cf1d03c8c3c1e0063ee6eea88833118f Author: FUJITA Tomonori Date: Wed Oct 27 15:34:47 2010 -0700 sparc: remove dma64_addr_t usage dma64_addr_t looks pointless (at least there is no point that an architecture has the own dma64_addr_t typedef). dma_addr_t is set to 32 or 64 bits appropriately. You can use u64 at places where you know that 64 bit address is always necessary. Let's use u64 instead for sparc32. Looks like PCI654_REQUIRED_MASK or PCI64_ADR_BASE isn't used. They can be removed? Signed-off-by: FUJITA Tomonori Acked-by: David Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0be8557bcd34887d5a42c01c5659cab5ecf99f13 Author: Miklos Szeredi Date: Wed Oct 27 15:34:46 2010 -0700 fuse: use release_pages() Replace iterated page_cache_release() with release_pages(), which is faster and shorter. Needs release_pages() to be exported to modules. Suggested-by: Andrew Morton Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d57af9b2142f31a39dcfdeb30776baadfc802827 Author: Michael Holzheu Date: Wed Oct 27 15:34:45 2010 -0700 taskstats: use real microsecond granularity for CPU times The taskstats interface uses microsecond granularity for the user and system time values. The conversion from cputime to the taskstats values uses the cputime_to_msecs primitive which effectively limits the granularity to milliseconds. Add the cputime_to_usecs primitive for architectures that have better, more precise CPU time values. Remove cputime_to_msecs primitive because there are no more users left. Signed-off-by: Michael Holzheu Acked-by: Balbir Singh Cc: Luck Tony Cc: Shailabh Nagar Cc: Martin Schwidefsky Cc: Oleg Nesterov Cc: Benjamin Herrenschmidt Cc: Heiko Carstens Cc: Thomas Gleixner Cc: Shailabh Nagar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3d9e0cf1fe007b88db55d43dfdb6839e1a029ca5 Author: Michael Holzheu Date: Wed Oct 27 15:34:44 2010 -0700 taskstats: split fill_pid function Separate the finding of a task_struct by pid or tgid from filling the taskstats data. This makes the code more readable. Signed-off-by: Michael Holzheu Acked-by: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9323312592cca636d7c2580dc85fa4846efa86a2 Author: Michael Holzheu Date: Wed Oct 27 15:34:44 2010 -0700 taskstats: separate taskstats commands Move each taskstats command into a single function. This makes the code more readable and makes it easier to add new commands. Signed-off-by: Michael Holzheu Acked-by: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 85893120699f8bae8caa12a8ee18ab5fceac978e Author: Jeff Mahoney Date: Wed Oct 27 15:34:43 2010 -0700 delayacct: align to 8 byte boundary on 64-bit systems prepare_reply() sets up an skb for the response. The payload contains: +--------------------------------+ | genlmsghdr - 4 bytes | +--------------------------------+ | NLA header - 4 bytes | /* Aggregate header */ +-+------------------------------+ | | NLA header - 4 bytes | /* PID header */ | +------------------------------+ | | pid/tgid - 4 bytes | | +------------------------------+ | | NLA header - 4 bytes | /* stats header */ | + -----------------------------+ <- oops. aligned on 4 byte boundary | | struct taskstats - 328 bytes | +-+------------------------------+ The start of the taskstats struct must be 8 byte aligned on IA64 (and other systems with 8 byte alignment rules for 64-bit types) or runtime alignment warnings will be issued. This patch pads the pid/tgid field out to sizeof(long), which forces the alignment of taskstats. The getdelays userspace code is ok with this since it assumes 32-bit pid/tgid and then honors that header's length field. An array is used to avoid exposing kernel memory contents to userspace in the response. Signed-off-by: Jeff Mahoney Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit db9e5679d6aecb17253f41bd06d98194800f9c01 Author: Mel Gorman Date: Wed Oct 27 15:34:42 2010 -0700 delay-accounting: reimplement -c for getdelays.c to report information on a target command Task delay-accounting was identified as one means of determining how long a process spends in congestion_wait() without adding new statistics. For example, if the workload should not be doing IO, delay-accounting could reveal how long it was spending in unexpected IO or delays. Unfortunately, on closer examination it was clear that getdelays does not act as documented. Commit a3baf649 ("per-task-delay-accounting: documentation") added Documentation/accounting/getdelays.c with a -c switch that was documented to fork/exec a child and report statistics on it but for reasons that are unclear to me, commit 9e06d3f9 deleted support for this switch but did not update the documentation. It might be an oversight or it might be because the control flow of the program meant that accounting information would be printed once early in the lifetime of the program making it of limited use. This patch reimplements -c for getdelays.c to act as documented. Unlike the original version, it waits until the command completes before printing any information on it. An example of it being used looks like $ ./getdelays -d -c find /home/mel -name mel print delayacct stats ON /home/mel /home/mel/.notes-wine/drive_c/windows/profiles/mel /home/mel/.wine/drive_c/windows/profiles/mel /home/mel/git-configs/dot.kde/share/apps/konqueror/home/mel PID 5923 CPU count real total virtual total delay total 42779 5051232096 5164722692 564207988 IO count delay total 41727 97804147758 SWAP count delay total 0 0 RECLAIM count delay total 0 0 [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Mel Gorman Acked-by: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7af37bec41b19fcb9de2b42f355a39149641170e Author: Daniel Lezcano Date: Wed Oct 27 15:34:41 2010 -0700 namespaces Kconfig: move namespace menu location after the cgroup We have the namespaces as a menuconfig like the cgroup. The cgroup and the namespace are two base bricks for the containers. It is more logical to put the namespace menu right after the cgroup menu. Signed-off-by: Daniel Lezcano Cc: Li Zefan Cc: "Serge E. Hallyn" Cc: "Eric W. Biederman" Cc: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit eef691b36e9a6ee6e646c83af3f10bb60e926fa5 Author: Daniel Lezcano Date: Wed Oct 27 15:34:40 2010 -0700 namespaces Kconfig: remove the cgroup device whitelist experimental tag This subsystem is merged since a long time now, I think we can consider it mature enough. Signed-off-by: Daniel Lezcano Cc: Li Zefan Cc: "Serge E. Hallyn" Cc: "Eric W. Biederman" Cc: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 79ae9c29e4c80b781dd915d6f01be64e668be29c Author: Daniel Lezcano Date: Wed Oct 27 15:34:39 2010 -0700 namespaces Kconfig: remove pointless cgroup dependency The different cgroup subsystems are under the cgroup submenu. The dependency between the cgroups and the menu subsystems is pointless. Signed-off-by: Daniel Lezcano Acked-by: Li Zefan Cc: "Serge E. Hallyn" Cc: "Eric W. Biederman" Cc: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8dd2a82c29111bb8ad2a2933aa269b49f72d356d Author: Daniel Lezcano Date: Wed Oct 27 15:34:38 2010 -0700 namespaces Kconfig: make namespace a submenu Make the namespaces config option a submenu. Signed-off-by: Daniel Lezcano Cc: Li Zefan Cc: "Serge E. Hallyn" Cc: "Eric W. Biederman" Cc: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 17a6d4411a4dc7e436e1a71c24e10048452edd98 Author: Daniel Lezcano Date: Wed Oct 27 15:34:37 2010 -0700 namespaces: default all the namespaces to 'yes' when CONFIG_NAMESPACES is selected As the different namespaces depend on 'CONFIG_NAMESPACES', it is logical to enable all the namespaces when we enable NAMESPACES. Signed-off-by: Daniel Lezcano Cc: "Eric W. Biederman" Cc: David Miller Acked-By: Matt Helsley Acked-by: Serge Hallyn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9bd38c2cdaba1f3ab2e6f90ac1b3d72481477092 Author: Daniel Lezcano Date: Wed Oct 27 15:34:37 2010 -0700 namespaces: remove pid_ns and net_ns experimental status The pid namespace is in the kernel since 2.6.27 and the net_ns since 2.6.29. They are enabled in the distro by default and used by userspace component. They are mature enough to remove the 'experimental' label. Signed-off-by: Daniel Lezcano Cc: "Eric W. Biederman" Cc: David Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1548bf316f18090576f611c7318447c512ddbdd2 Author: Alexandre Bounine Date: Wed Oct 27 15:34:36 2010 -0700 rapidio: fix destructive port EM initialization for Tsi568 Replace possibly damaging broadcast writes into the per-port SP_MODE registers with individual writes for each port. This will preserve individual port configurations in case if ports are configured differently. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2d4da0fc0940625d59f014c3f85370f9b60ba7f4 Author: Alexandre Bounine Date: Wed Oct 27 15:34:35 2010 -0700 rapidio: fix maximum port number in tsi57x EM initialization Replace hardcoded maximum port number with actual reported number of switch ports. Signed-off-by: Alexandre Bounine Cc: Kumar Gala Cc: Matt Porter Cc: Li Yang Cc: Thomas Moll Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 388c45ccfaeec68e334ad79edeb0b5b0a43197ff Author: Alexandre Bounine Date: Wed Oct 27 15:34:35 2010 -0700 rapidio: fix IDLE2 bits corruption RapidIO spec v.2.1 adds Idle Sequence 2 into LP-Serial Physical Layer. The fix ensures that corresponding bits are not corrupted during error handling. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit af84ca38aff94061dd0711edbb99b0900a9c28fd Author: Alexandre Bounine Date: Wed Oct 27 15:34:34 2010 -0700 rapidio: add handling of redundant routes Detects RIO link to the already enumerated device and properly sets links between device objects. Changes to the enumeration/discovery logic: 1. Use Master Enable bit to signal end of the enumeration - agents may start their discovery process as soon as they see this bit set (Component Tag register was used before for this purpose). 2. Enumerator sets Component Tag (!= 0) immediately during device setup. This allows to identify the device if the redundant route exists in a RIO system. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a3725c45c114bd06e091802f90533332d1e93819 Author: Alexandre Bounine Date: Wed Oct 27 15:34:33 2010 -0700 rapidio: add support for IDT CPS Gen2 switches Add the RIO switch driver and definitions for IDT CPS-1848 and CPS-1616 Gen2 devices. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e274e0ed0a2ac31d5eaf7c891e4e1d99197517b2 Author: Alexandre Bounine Date: Wed Oct 27 15:34:32 2010 -0700 rapidio: add device access check into the enumeration Add explicit device access check before performing device enumeration. This gives a chance to clear possible link error conditions by issuing safe maintenance read request(s). Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6429cd49f45450cd77a57b70b0dfa98fe2794da0 Author: Alexandre Bounine Date: Wed Oct 27 15:34:32 2010 -0700 rapidio: add handling of orphan port-write message Add check for access to port-write (PW) message source device before processing the PW message. If source RIO device is not available (power down or RIO link failure) trace back to a last available switch/port on the PW message route and service failure at that point. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ac38d7232dfa3c71b129bab3318ba327bbcf8405 Author: Alexandre Bounine Date: Wed Oct 27 15:34:31 2010 -0700 rapidio: modify sysfs initialization for switches 1. Change to create attribute "routes" only for switches. 2. Add a switch-specific callback to create/remove proprietary attributes. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dd5648c9f53b5cbd9f948d752624400545f979fb Author: Alexandre Bounine Date: Wed Oct 27 15:34:30 2010 -0700 rapidio: add default handler for error-stopped state The default error-stopped state handler provides recovery mechanism as defined by RIO specification. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 68fe4df5d21294401959fa61d5a7094705ed8f6f Author: Alexandre Bounine Date: Wed Oct 27 15:34:29 2010 -0700 rapidio: add relation links between RIO device structures Create back and forward links between RIO devices. These links are intended for use by error management and hot-plug extensions. Links for redundant RIO connections between switches are not set (will be fixed in a separate patch). Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ae05cbd5adef897d405ce8f90484c1239f79e086 Author: Alexandre Bounine Date: Wed Oct 27 15:34:29 2010 -0700 rapidio: use stored ingress port number instead of register read The switch port information is obtained and stored during RIO device setup. Therefore repeated reads from Switch Port Information CAR may be removed. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 93e2cbd24e71f5eedf6e49e075973fda9b2135e8 Author: Alexandre Bounine Date: Wed Oct 27 15:34:28 2010 -0700 rapidio:powerpc/85xx: modify RIO port-write interrupt handler - Rearrange RIO port-write interrupt handling to perform message buffering as soon as possible. - Modify to disable port-write controller when clearing Transaction Error (TE) bit. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2c70f022e2e1b1493e157dbc3796b1f70a3ff162 Author: Alexandre Bounine Date: Wed Oct 27 15:34:26 2010 -0700 rapidio: fix RapidIO sysfs hierarchy This set of RapidIO patches extends support for standard error recovery mechanism and adds new IDT Gen2 sRIO switch devices - CPS-1848 and CPS-1616. Implementation of the standard error-stopped state recovery mechanism (as defined by the RapidIO specification) is required for the new switches. Version 2 of this set of patches addresses received comments and fixes an error notification setup issue found in the idt_gen2.c after the first version was released. This patch: Make RapidIO devices appear in /sys/devices/rapidio directory instead of top of /sys/devices directory. Signed-off-by: Alexandre Bounine Cc: Thomas Moll Cc: Matt Porter Cc: Li Yang Cc: Kumar Gala Cc: Micha Nelissen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e89d67cfbcc1ee32339da9e816489f69742c3a6e Author: Rakib Mullick Date: Wed Oct 27 15:34:26 2010 -0700 drivers/char/mxser.c: fix compilation warning in mxser.c Both mxser_disable_must_enchance_mode() and mxser_get_must_hardware_id() called from function CheckIsMoxaMust(), when CONFIG_PCI=y. So mark both the functions under CONFIG_PCI. We were warned by the following warning. drivers/char/mxser.c:306: warning: `mxser_disable_must_enchance_mode' defined but not used drivers/char/mxser.c:391: warning: `mxser_get_must_hardware_id' defined but not used Signed-off-by: Rakib Mullick Cc: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5a780fc096397f9b62bc6dddced509f012a97e78 Author: Tracey Dent Date: Wed Oct 27 15:34:25 2010 -0700 drivers/char/rio/Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Cc: Jiri Slaby Cc: Michal Marek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a222945eb1568687eec47113027586da47e1ee94 Author: Tracey Dent Date: Wed Oct 27 15:34:25 2010 -0700 drivers/char/pcmcia/ipwireless/Makefile: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Cc: Jiri Slaby Cc: Michal Marek Acked-by: Jiri Kosina Acked-by: David Sterba Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cb299ba8b5ef2239429484072fea394cd7581bd7 Author: Tracey Dent Date: Wed Oct 27 15:34:24 2010 -0700 drivers/char/mwave/Makefile: clean up Changed -objs to -y in Makefile and use ccflags-y option. Signed-off-by: Tracey Dent Cc: Jiri Slaby Cc: Michal Marek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7fa51743dcf176bcdca43603b4257748a222fe9b Author: Tracey Dent Date: Wed Oct 27 15:34:23 2010 -0700 drivers/char/ipmi/Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Cc: Jiri Slaby Cc: Michal Marek Cc: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 44cd4dffe28b18139fe76e2a7b39cd1fdb459619 Author: Tracey Dent Date: Wed Oct 27 15:34:23 2010 -0700 drivers/char/ip2/Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Cc: Jiri Slaby Cc: Michal Marek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9807224f1dce5fb746ee33fb67ea2e38dafe3e9c Author: Paul Fulghum Date: Wed Oct 27 15:34:22 2010 -0700 drivers/char/synclink_gt.c: add extended sync feature Add support for extended byte synchronous mode feature of hardware. Signed-off-by: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ed77ed6112f2d4b650f4be7dbaf14e06e1d393a5 Author: Vasiliy Kulikov Date: Wed Oct 27 15:34:22 2010 -0700 drivers/char/synclink_gt.c: fix information leak to userland Structures tmp_params and new_line are copied to userland with some padding fields unitialized. It leads to leaking of stack memory. Signed-off-by: Vasiliy Kulikov Acked-by: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b9b1134260e036fb75c468514569864dd6722f3e Author: Vasiliy Kulikov Date: Wed Oct 27 15:34:21 2010 -0700 drivers/char/ppdev.c: fix information leak to userland Structure par_timeout is copied to userland with some padding fields unitialized. Field tv_usec has type __kernel_suseconds_t, it differs from tv_sec's type on some architectures. It leads to leaking of stack memory. Signed-off-by: Vasiliy Kulikov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 19714a8af8fe8618a9beace1f7a3bb10d55d5e2f Author: Vasiliy Kulikov Date: Wed Oct 27 15:34:21 2010 -0700 drivers/char/applicom.c: fix information leak to userland Structure st_loc is copied to userland with some fields unitialized. It leads to leaking of stack memory. Signed-off-by: Vasiliy Kulikov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ffd7d6baa65e6161cfd996a59d55c48571c2a5f3 Author: Paul Fulghum Date: Wed Oct 27 15:34:20 2010 -0700 synclink_gt: fix per device locking Fix a long standing bug with per device locking. Each device has an associated spinlock for synchronizing access to hardware and state information with the ISR. A single hardware card has one or more devices. Bug: Non ISR code correctly acquires and releases the per device lock. ISR incorrectly always acquires and releases the lock of the first device on the card. The decoupled and list based nature of the ISR and deferred processing interaction allowed this to work in normal operation. Exceptional events like an application forcing hardware shutdown, reset, or reconfiguration while active can trigger the bug. Fixed ISR to acquire and release the per device lock. One exception is manipulation of the GPIO card resource which is global and effectively owned by the first device of the card. Non-ISR access to GPIO resource is changed to use lock of first device on card. Signed-off-by: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dcade5ed16cce572e375bf4e63dd2150c351bf49 Author: Dimitri Sivanich Date: Wed Oct 27 15:34:20 2010 -0700 SGI Altix IA64 mmtimer: eliminate long interval timer holdoffs This patch for SGI Altix/IA64 eliminates interval long timer holdoffs in cases where we don't start an interval timer before the expiration time. This sometimes happens when a number of interval timers on the same shub with the same interval run simultaneously. Signed-off-by: Dimitri Sivanich Cc: "Luck, Tony" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 656e17ea9d997db1bb37d90b7a447eb511af5a63 Author: Andrew Morton Date: Wed Oct 27 15:34:19 2010 -0700 drivers/char/hvc_console.c: remove unneeded __set_current_state(TASK_RUNNING) This doesn't do anything. Cc: Timur Tabi Cc: Benjamin Herrenschmidt Cc: Amit Shah Cc: Greg Kroah-Hartman Cc: Kumar Gala Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 713efa9a64fac01abc296228c5ca4f507217a8c9 Author: Dan Carpenter Date: Wed Oct 27 15:34:18 2010 -0700 drivers/char/rocket.c: release_region or error path There was a release_region() missing on the error path. Signed-off-by: Dan Carpenter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 60ee6d5faf5f7920ba88b82c072864596f5b88af Author: Corey Minyard Date: Wed Oct 27 15:34:18 2010 -0700 ipmi: fix __init and __exit attribute locations __init and __exit belong after the return type on functions, not before. Signed-off-by: Corey Minyard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 03145beb455cf5c20a761e8451e30b8a74ba58d9 Author: Dan Rosenberg Date: Wed Oct 27 15:34:17 2010 -0700 ipc: initialize structure memory to zero for compat functions This takes care of leaking uninitialized kernel stack memory to userspace from non-zeroed fields in structs in compat ipc functions. Signed-off-by: Dan Rosenberg Cc: Manfred Spraul Cc: Arnd Bergmann Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b795218075a1e1183169abb66a90dcdcf30367f9 Author: Helge Deller Date: Wed Oct 27 15:34:16 2010 -0700 ipc/shm.c: add RSS and swap size information to /proc/sysvipc/shm The kernel currently provides no functionality to analyze the RSS and swap space usage of each individual sysvipc shared memory segment. This patch adds this info for each existing shm segment by extending the output of /proc/sysvipc/shm by two columns for RSS and swap. Since shmctl(SHM_INFO) already provides a similiar calculation (it currently sums up all RSS/swap info for all segments), I did split out a static function which is now used by the /proc/sysvipc/shm output and shmctl(SHM_INFO). SAP products (esp. the SAP Netweaver ABAP Kernel) uses lots of big shared memory segments (we often have Linux systems with >= 16GB shm usage). Sometimes we get customer reports about "slow" system responses and while looking into their configurations we often find massive swapping activity on the system. With this patch it's now easy to see from the command line if and which shm segments gets swapped out (and how much) and can more easily give recommendations for system tuning. Without the patch it's currently not possible to do such shm analysis at all. Also... Add some spaces in front of the "size" field for 64bit kernels to get the columns correct if you cat the contents of the file. In sysvipc_shm_proc_show() the kernel prints the size value in "SPEC_SIZE" format, which is defined like this: #if BITS_PER_LONG <= 32 #define SIZE_SPEC "%10lu" #else #define SIZE_SPEC "%21lu" #endif So, if the header is not adjusted, the columns are not correctly aligned. I actually tested this on 32- and 64-bit and it seems correct now. Signed-off-by: Helge Deller Cc: Manfred Spraul Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 98391cf4dcf893e9e74e1c14189851dbc9c5ad0d Author: KOSAKI Motohiro Date: Wed Oct 27 15:34:16 2010 -0700 exec: don't turn PF_KTHREAD off when a target command was not found Presently do_execve() turns PF_KTHREAD off before search_binary_handler(). THis has a theorical risk of PF_KTHREAD getting lost. We don't have to turn PF_KTHREAD off in the ENOEXEC case. This patch moves this flag modification to after the finding of the executable file. This is only a theorical issue because kthreads do not call do_execve() directly. But fixing would be better. Signed-off-by: KOSAKI Motohiro Acked-by: Roland McGrath Acked-by: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 478735e38887077ac77a9756121b6ce0cb956e2f Author: KAMEZAWA Hiroyuki Date: Wed Oct 27 15:34:15 2010 -0700 /proc/stat: fix scalability of irq sum of all cpu In /proc/stat, the number of per-IRQ event is shown by making a sum each irq's events on all cpus. But we can make use of kstat_irqs(). kstat_irqs() do the same calculation, If !CONFIG_GENERIC_HARDIRQ, it's not a big cost. (Both of the number of cpus and irqs are small.) If a system is very big and CONFIG_GENERIC_HARDIRQ, it does for_each_irq() for_each_cpu() - look up a radix tree - read desc->irq_stat[cpu] This seems not efficient. This patch adds kstat_irqs() for CONFIG_GENRIC_HARDIRQ and change the calculation as for_each_irq() look up radix tree for_each_cpu() - read desc->irq_stat[cpu] This reduces cost. A test on (4096cpusp, 256 nodes, 4592 irqs) host (by Jack Steiner) %time cat /proc/stat > /dev/null Before Patch: 2.459 sec After Patch : .561 sec [akpm@linux-foundation.org: unexport kstat_irqs, coding-style tweaks] [akpm@linux-foundation.org: fix unused variable 'per_irq_sum'] Signed-off-by: KAMEZAWA Hiroyuki Tested-by: Jack Steiner Acked-by: Jack Steiner Cc: Yinghai Lu Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f2c66cd8eeddedb440f33bc0f5cec1ed7ae376cb Author: KAMEZAWA Hiroyuki Date: Wed Oct 27 15:34:13 2010 -0700 /proc/stat: scalability of irq num per cpu /proc/stat shows the total number of all interrupts to each cpu. But when the number of IRQs are very large, it take very long time and 'cat /proc/stat' takes more than 10 secs. This is because sum of all irq events are counted when /proc/stat is read. This patch adds "sum of all irq" counter percpu and reduce read costs. The cost of reading /proc/stat is important because it's used by major applications as 'top', 'ps', 'w', etc.... A test on a mechin (4096cpu, 256 nodes, 4592 irqs) shows %time cat /proc/stat > /dev/null Before Patch: 12.627 sec After Patch: 2.459 sec Signed-off-by: KAMEZAWA Hiroyuki Tested-by: Jack Steiner Acked-by: Jack Steiner Cc: Yinghai Lu Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 19cd56c48da58bebc3a638e036bcab69469acd27 Author: Davidlohr Bueso Date: Wed Oct 27 15:34:12 2010 -0700 procfs: fix /proc/softirqs formatting The length of the BLOCK_IPOLL string is making i's value be printed too far to the right. This patch fixes this and makes the output a bit neater. Currently: CPU0 HI: 0 TIMER: 599792 NET_TX: 2 NET_RX: 6 BLOCK: 80807 BLOCK_IOPOLL: 0 TASKLET: 20012 SCHED: 0 HRTIMER: 63 RCU: 619279 With patch: CPU0 HI: 0 TIMER: 585582 NET_TX: 2 NET_RX: 6 BLOCK: 80320 BLOCK_IOPOLL: 0 TASKLET: 19287 SCHED: 0 HRTIMER: 62 RCU: 604441 Signed-off-by: Davidlohr Bueso Acked-by: Keika Kobayashi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 03f890f8c2f5c9008d3d8f6d85267717ced4bd79 Author: Nikanth Karthikesan Date: Wed Oct 27 15:34:11 2010 -0700 /proc/pid/pagemap: document in Documentation/filesystems/proc.txt Document /proc/pid/pagemap in Documentation/filesystems/proc.txt Signed-off-by: Nikanth Karthikesan Cc: Richard Guenther Cc: Balbir Singh Cc: KOSAKI Motohiro Acked-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b40d4f84becd69275451baee7f0801c85eb58437 Author: Nikanth Karthikesan Date: Wed Oct 27 15:34:10 2010 -0700 /proc/pid/smaps: export amount of anonymous memory in a mapping Export the number of anonymous pages in a mapping via smaps. Even the private pages in a mapping backed by a file, would be marked as anonymous, when they are modified. Export this information to user-space via smaps. Exporting this count will help gdb to make a better decision on which areas need to be dumped in its coredump; and should be useful to others studying the memory usage of a process. Signed-off-by: Nikanth Karthikesan Acked-by: Hugh Dickins Reviewed-by: KOSAKI Motohiro Cc: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d16e15f5b029fc7d03540ba0e5fb23b0abb0ebe0 Author: Namhyung Kim Date: Wed Oct 27 15:34:10 2010 -0700 exit: add lock context annotation on find_new_reaper() find_new_reaper() releases and regrabs tasklist_lock but was missing proper annotations. Add it. This remove following sparse warning: warning: context imbalance in 'find_new_reaper' - unexpected unlock Signed-off-by: Namhyung Kim Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 895021552d6ffe8a4d076cb5c4b1e700c33e96e1 Author: Roland McGrath Date: Wed Oct 27 15:34:09 2010 -0700 coredump: default CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y The userland ELF tools have been coping with partial-segments core files for a few years now. Multiple distro builds are now setting this option. It behooves everyone who ever deals with core files to have more info dumped in there, especially as more and more people's compilers are producing build IDs. Make it the default. Anyone using older tools confused by these core files can configure this option off, or just change /proc/PID/coredump_filter after boot. Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1b0d300bd0f047e2edaf9d4b6784189e6c67c3d1 Author: Xiaotian Feng Date: Wed Oct 27 15:34:08 2010 -0700 core_pattern: fix truncation by core_pattern handler with long parameters We met a parameter truncated issue, consider following: > echo "|/root/core_pattern_pipe_test %p /usr/libexec/blah-blah-blah \ %s %c %p %u %g 11 12345678901234567890123456789012345678 %t" > \ /proc/sys/kernel/core_pattern This is okay because the strings is less than CORENAME_MAX_SIZE. "cat /proc/sys/kernel/core_pattern" shows the whole string. but after we run core_pattern_pipe_test in man page, we found last parameter was truncated like below: argc[10]=<12807486> The root cause is core_pattern allows % specifiers, which need to be replaced during parse time, but the replace may expand the strings to larger than CORENAME_MAX_SIZE. So if the last parameter is % specifiers, the replace code is using snprintf(out_ptr, out_end - out_ptr, ...), this will write out of corename array. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Xiaotian Feng Cc: Alexander Viro Cc: Oleg Nesterov Cc: KOSAKI Motohiro Reviewed-by: Neil Horman Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9b1bf12d5d51bca178dea21b04a0805e29d60cf1 Author: KOSAKI Motohiro Date: Wed Oct 27 15:34:08 2010 -0700 signals: move cred_guard_mutex from task_struct to signal_struct Oleg Nesterov pointed out we have to prevent multiple-threads-inside-exec itself and we can reuse ->cred_guard_mutex for it. Yes, concurrent execve() has no worth. Let's move ->cred_guard_mutex from task_struct to signal_struct. It naturally prevent multiple-threads-inside-exec. Signed-off-by: KOSAKI Motohiro Reviewed-by: Oleg Nesterov Acked-by: Roland McGrath Acked-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b84011508360d6885a9d95a235ec77d56f133377 Author: Namhyung Kim Date: Wed Oct 27 15:34:07 2010 -0700 signals: annotate lock context change on ptrace_stop() ptrace_stop() releases and regrabs current->sighand->siglock but was missing proper annotation. Add it. Signed-off-by: Namhyung Kim Acked-by: Roland McGrath Cc: Ingo Molnar Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b8ed374e202e23caaf9bd77dcadc9de6447faaa8 Author: Namhyung Kim Date: Wed Oct 27 15:34:06 2010 -0700 signals: annotate lock_task_sighand() lock_task_sighand() grabs sighand->siglock in case of returning non-NULL but unlock_task_sighand() releases it unconditionally. This leads sparse to complain about the lock context imbalance. Rename and wrap lock_task_sighand() using __cond_lock() macro to make sparse happy. Suggested-by: Eric Dumazet Signed-off-by: Namhyung Kim Cc: Ingo Molnar Cc: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5ef45079dd9c8f2e9c7aa788dc3121835ae52863 Author: Namhyung Kim Date: Wed Oct 27 15:34:06 2010 -0700 ptrace: cleanup arch_ptrace() on xtensa Use new 'datap' variable in order to remove unnecessary castings. Signed-off-by: Namhyung Kim Cc: Chris Zankel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0a3d763f1a68c97daae57e40c6d698986d1b38f4 Author: Namhyung Kim Date: Wed Oct 27 15:34:04 2010 -0700 ptrace: cleanup arch_ptrace() on um Remove unnecessary castings using void pointer and fix copy_to_user() return value. Also add missing __user markup on the argument of arch_ptrctl(). Signed-off-by: Namhyung Kim Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8c0acac3676103113a2e259291a07c073ac07879 Author: Namhyung Kim Date: Wed Oct 27 15:34:04 2010 -0700 ptrace: cleanup arch_ptrace() on tile Remove checking @addr less than 0 because @addr is now unsigned. Signed-off-by: Namhyung Kim Acked-by: Chris Metcalf Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a9384e23ab19eba0dedb861ebcba805b98a3b7a5 Author: Namhyung Kim Date: Wed Oct 27 15:34:03 2010 -0700 ptrace: cleanup arch_ptrace() on sparc Factor out struct fps and remove redundant castings. Signed-off-by: Namhyung Kim Acked-by: David S. Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9e1cb20619d8037248b6a776f777600c3584a8d5 Author: Namhyung Kim Date: Wed Oct 27 15:34:03 2010 -0700 ptrace: cleanup arch_ptrace() on sh Remove unnecessary castings and get rid of dummy pointer in favor of offsetof() macro in ptrace_32.c. Also use temporary variables and break long lines in order to improve readability. Signed-off-by: Namhyung Kim Cc: Paul Mundt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 41a2437eb1d175efe1958e283241a66a871dbdea Author: Namhyung Kim Date: Wed Oct 27 15:34:01 2010 -0700 ptrace: cleanup arch_ptrace() on score Remove unnecessary castings. Signed-off-by: Namhyung Kim Cc: Chen Liqin Cc: Lennox Wu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f68d2048206389603d646b06e3cc16f1bbc3ff88 Author: Namhyung Kim Date: Wed Oct 27 15:34:01 2010 -0700 ptrace: cleanup arch_ptrace() on powerpc Use new 'datavp' and 'datalp' variables in order to remove unnecessary castings. Signed-off-by: Namhyung Kim Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1cb4953c608d01d8ea522e2cf379e5e90f06d7a3 Author: Namhyung Kim Date: Wed Oct 27 15:33:59 2010 -0700 ptrace: cleanup arch_ptrace() on parisc Add missing __user markup on the argument of put_user(). Signed-off-by: Namhyung Kim Cc: Kyle McMartin Cc: Helge Deller Cc: "James E.J. Bottomley" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 261bb92054b9e0835c176a27967dd9eb326d010c Author: Namhyung Kim Date: Wed Oct 27 15:33:58 2010 -0700 ptrace: cleanup arch_ptrace() on mn10300 Use new 'datap' variable in order to remove unnecessary castings. Also remove checking @addr less than 0 because @addr is now unsigned. Signed-off-by: Namhyung Kim Cc: David Howells Cc: Koichi Yasutake Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb671139a27abc44303ef938c3811d910724c493 Author: Namhyung Kim Date: Wed Oct 27 15:33:58 2010 -0700 ptrace: cleanup arch_ptrace() on MIPS Use new 'addrp', 'datavp' and 'datalp' variables in order to remove unnecessary castings. Signed-off-by: Namhyung Kim Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cfd866f6bd1549fb25f826c469120a8eaee4fc1a Author: Namhyung Kim Date: Wed Oct 27 15:33:57 2010 -0700 ptrace: cleanup arch_ptrace() on microblaze Remove checking @addr greater than 0 because @addr is now unsigned. Signed-off-by: Namhyung Kim Cc: Michal Simek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bf60ef96072ebbf768bae1f9ab421ceef5b80676 Author: Namhyung Kim Date: Wed Oct 27 15:33:56 2010 -0700 ptrace: cleanup arch_ptrace() on m68knommu Use new 'regno', 'datap' variables in order to remove duplicated expressions and unnecessary castings. Alse remove checking @addr less than 0 because addr is now unsigned. Signed-off-by: Namhyung Kim Acked-by: Greg Ungerer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit add3d6e8b1372646f3cb8cb56d5840c91afc85e0 Author: Namhyung Kim Date: Wed Oct 27 15:33:55 2010 -0700 ptrace: cleanup arch_ptrace() on m68k Use new 'regno', 'datap' variables in order to remove duplicated expressions and unnecessary castings. Signed-off-by: Namhyung Kim Acked-by: Geert Uytterhoeven Cc: Roman Zippel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a68caa035a0ffb895baa829edec0545f17d88c07 Author: Namhyung Kim Date: Wed Oct 27 15:33:54 2010 -0700 ptrace: cleanup arch_ptrace() on m32r Use new 'datap' variable in order to remove duplicated castings. Signed-off-by: Namhyung Kim Cc: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 05fabdace41837a21f957507378b2954fe87ab61 Author: Namhyung Kim Date: Wed Oct 27 15:33:53 2010 -0700 ptrace: cleanup arch_ptrace() on h8300 Use new 'regno', 'datap' variables in order to remove duplicated expressions and unnecessary castings. Alse remove checking @addr less than 0 because addr is now unsigned. Signed-off-by: Namhyung Kim Cc: Yoshinori Sato Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 81d3285c96dd90044ffe2c2c5d56405a5423d753 Author: Namhyung Kim Date: Wed Oct 27 15:33:52 2010 -0700 ptrace: cleanup arch_ptrace() on frv Use new 'regno', 'datap' variables in order to remove duplicated expressions and unnecessary castings. Alse remove checking @addr less than 0 because addr is now unsigned. Signed-off-by: Namhyung Kim Cc: David Howells Cc: "Daniel K." Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 475a4b813816fe9af4cdf7833799036b679f46d0 Author: Namhyung Kim Date: Wed Oct 27 15:33:51 2010 -0700 ptrace: cleanup arch_ptrace() on cris Use new 'regno' variable in order to remove redandunt expression and remove checking @addr less than 0 because @addr is now unsigned. Also update 'datap' on PTRACE_GET/SETREGS to fix a bug on arch-v10. Signed-off-by: Namhyung Kim Acked-by: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aeebd3a3d9f5b67a254f04e6eac91a74c5e1065e Author: Namhyung Kim Date: Wed Oct 27 15:33:51 2010 -0700 ptrace: cleanup arch_ptrace() and friends on Blackfin Change signature of get/put_reg() according to the change of arch_ptrace() and remove unnecessary castings. Signed-off-by: Namhyung Kim Acked-by: Mike Frysinger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9f29b8fb416a0ad49d5077ab10ed780efdfcb126 Author: Namhyung Kim Date: Wed Oct 27 15:33:50 2010 -0700 ptrace: cleanup arch_ptrace() on avr32 use new 'datap' variable type of void pointer in order to remove unnecessary castings. Signed-off-by: Namhyung Kim Acked-by: Haavard Skinnemoen Cc: Hans-Christian Egtvedt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b640a0d192265c47bbf60951115bdb59d2c017d1 Author: Namhyung Kim Date: Wed Oct 27 15:33:48 2010 -0700 ptrace: cleanup arch_ptrace() on ARM use new 'datap' variable in order to remove unnecessary castings. Signed-off-by: Namhyung Kim Cc: Russell King Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit eb5a3699311ba8ed22b7b38ceb3bb1411e438e2a Author: Namhyung Kim Date: Wed Oct 27 15:33:48 2010 -0700 ptrace: cleanup arch_ptrace() on x86 Remove checking @addr less than 0 because @addr is now unsigned and use new udescp variable in order to remove unnecessary castings. [akpm@linux-foundation.org: fix unused variable 'udescp'] Signed-off-by: Namhyung Kim Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9b05a69e0534ec70bc94921936ffa05b330507cb Author: Namhyung Kim Date: Wed Oct 27 15:33:47 2010 -0700 ptrace: change signature of arch_ptrace() Fix up the arguments to arch_ptrace() to take account of the fact that @addr and @data are now unsigned long rather than long as of a preceding patch in this series. Signed-off-by: Namhyung Kim Cc: Acked-by: Roland McGrath Acked-by: David Howells Acked-by: Geert Uytterhoeven Acked-by: David S. Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9fed81dc40f5a1ac2783bcc78d4029873be72894 Author: Namhyung Kim Date: Wed Oct 27 15:33:46 2010 -0700 ptrace: cleanup ptrace_request() Use new 'datavp' and 'datalp' variables to remove unnecesary castings. Signed-off-by: Namhyung Kim Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4abf986960ecda6a87fc2f795aacf888a2f0127e Author: Namhyung Kim Date: Wed Oct 27 15:33:45 2010 -0700 ptrace: change signature of sys_ptrace() and friends Since userspace API of ptrace syscall defines @addr and @data as void pointers, it would be more appropriate to define them as unsigned long in kernel. Therefore related functions are changed also. 'unsigned long' is typically used in other places in kernel as an opaque data type and that using this helps cleaning up a lot of warnings from sparse. Suggested-by: Arnd Bergmann Signed-off-by: Namhyung Kim Acked-by: Arnd Bergmann Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c4b5ed250eebf854d40f27b43362c80f115cb57a Author: Namhyung Kim Date: Wed Oct 27 15:33:44 2010 -0700 ptrace: annotate lock context change on exit_ptrace() exit_ptrace() releases and regrabs tasklist_lock but was missing proper annotation. Add it. Signed-off-by: Namhyung Kim Acked-by: Roland McGrath Cc: Ingo Molnar Cc: Oleg Nesterov Signed-off-by: Linus Torvalds commit 26174efd42100eefac67732c0c12f41a205fa335 Author: KAMEZAWA Hiroyuki Date: Wed Oct 27 15:33:43 2010 -0700 memcg: generic filestat update interface This patch extracts the core logic from mem_cgroup_update_file_mapped() as mem_cgroup_update_file_stat() and adds a wrapper. As a planned future update, memory cgroup has to count dirty pages to implement dirty_ratio/limit. And more, the number of dirty pages is required to kick flusher thread to start writeback. (Now, no kick.) This patch is preparation for it and makes other statistics implementation clearer. Just a clean up. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Balbir Singh Reviewed-by: Greg Thelen Cc: Daisuke Nishimura Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1489ebad8b5b20300562f634f279cb9c435fd90b Author: KAMEZAWA Hiroyuki Date: Wed Oct 27 15:33:42 2010 -0700 memcg: cpu hotplug aware quick acount_move detection An event counter MEM_CGROUP_ON_MOVE is used for quick check whether file stat update can be done in async manner or not. Now, it use percpu counter and for_each_possible_cpu to update. This patch replaces for_each_possible_cpu to for_each_online_cpu and adds necessary synchronization logic at CPU HOTPLUG. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: KAMEZAWA Hiroyuki Cc: Balbir Singh Cc: Daisuke Nishimura Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 711d3d2c9bc3fb7cb5116352fecdb5b4adb6db6e Author: KAMEZAWA Hiroyuki Date: Wed Oct 27 15:33:42 2010 -0700 memcg: cpu hotplug aware percpu count updates Now, memcgroup's per cpu coutner uses for_each_possible_cpu() to get the value. It's better to use for_each_online_cpu() and a cpu hotplug handler. This patch only handles statistics counter. MEM_CGROUP_ON_MOVE will be handled in another patch. Signed-off-by: KAMEZAWA Hiroyuki Cc: Balbir Singh Cc: Daisuke Nishimura Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7d74b06f240f1bd1b4b68dd6fe84164d8bf4e315 Author: KAMEZAWA Hiroyuki Date: Wed Oct 27 15:33:41 2010 -0700 memcg: use for_each_mem_cgroup In memory cgroup management, we sometimes have to walk through subhierarchy of cgroup to gather informaiton, or lock something, etc. Now, to do that, mem_cgroup_walk_tree() function is provided. It calls given callback function per cgroup found. But the bad thing is that it has to pass a fixed style function and argument, "void*" and it adds much type casting to memcontrol.c. To make the code clean, this patch replaces walk_tree() with for_each_mem_cgroup_tree(iter, root) An iterator style call. The good point is that iterator call doesn't have to assume what kind of function is called under it. A bad point is that it may cause reference-count leak if a caller use "break" from the loop by mistake. I think the benefit is larger. The modified code seems straigtforward and easy to read because we don't have misterious callbacks and pointer cast. Signed-off-by: KAMEZAWA Hiroyuki Cc: Balbir Singh Cc: Daisuke Nishimura Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 32047e2a85f06633ee4c53e2d0346fbcd34e480b Author: KAMEZAWA Hiroyuki Date: Wed Oct 27 15:33:40 2010 -0700 memcg: avoid lock in updating file_mapped (Was fix race in file_mapped accouting flag management At accounting file events per memory cgroup, we need to find memory cgroup via page_cgroup->mem_cgroup. Now, we use lock_page_cgroup() for guarantee pc->mem_cgroup is not overwritten while we make use of it. But, considering the context which page-cgroup for files are accessed, we can use alternative light-weight mutual execusion in the most case. At handling file-caches, the only race we have to take care of is "moving" account, IOW, overwriting page_cgroup->mem_cgroup. (See comment in the patch) Unlike charge/uncharge, "move" happens not so frequently. It happens only when rmdir() and task-moving (with a special settings.) This patch adds a race-checker for file-cache-status accounting v.s. account moving. The new per-cpu-per-memcg counter MEM_CGROUP_ON_MOVE is added. The routine for account move 1. Increment it before start moving 2. Call synchronize_rcu() 3. Decrement it after the end of moving. By this, file-status-counting routine can check it needs to call lock_page_cgroup(). In most case, I doesn't need to call it. Following is a perf data of a process which mmap()/munmap 32MB of file cache in a minute. Before patch: 28.25% mmap mmap [.] main 22.64% mmap [kernel.kallsyms] [k] page_fault 9.96% mmap [kernel.kallsyms] [k] mem_cgroup_update_file_mapped 3.67% mmap [kernel.kallsyms] [k] filemap_fault 3.50% mmap [kernel.kallsyms] [k] unmap_vmas 2.99% mmap [kernel.kallsyms] [k] __do_fault 2.76% mmap [kernel.kallsyms] [k] find_get_page After patch: 30.00% mmap mmap [.] main 23.78% mmap [kernel.kallsyms] [k] page_fault 5.52% mmap [kernel.kallsyms] [k] mem_cgroup_update_file_mapped 3.81% mmap [kernel.kallsyms] [k] unmap_vmas 3.26% mmap [kernel.kallsyms] [k] find_get_page 3.18% mmap [kernel.kallsyms] [k] __do_fault 3.03% mmap [kernel.kallsyms] [k] filemap_fault 2.40% mmap [kernel.kallsyms] [k] handle_mm_fault 2.40% mmap [kernel.kallsyms] [k] do_page_fault This patch reduces memcg's cost to some extent. (mem_cgroup_update_file_mapped is called by both of map/unmap) Note: It seems some more improvements are required..but no idea. maybe removing set/unset flag is required. Signed-off-by: KAMEZAWA Hiroyuki Reviewed-by: Daisuke Nishimura Cc: Balbir Singh Cc: Greg Thelen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0c270f8f9988fb0d93ea214fdcff7ab90eb3d894 Author: KAMEZAWA Hiroyuki Date: Wed Oct 27 15:33:39 2010 -0700 memcg: fix race in file_mapped accouting flag management Presently memory cgroup accounts file-mapped by counter and flag. counter is working in the same way with zone_stat but FileMapped flag only exists in memcg (for helping move_account). This flag can be updated wrongly in a case. Assume CPU0 and CPU1 and a thread mapping a page on CPU0, another thread unmapping it on CPU1. CPU0 CPU1 rmv rmap (mapcount 1->0) add rmap (mapcount 0->1) lock_page_cgroup() memcg counter+1 (some delay) set MAPPED FLAG. unlock_page_cgroup() lock_page_cgroup() memcg counter-1 clear MAPPED flag In the above sequence counter is properly updated but FLAG is not. This means that representing a state by a flag which is maintained by counter needs some special care. To handle this, when clearing a flag, this patch check mapcount directly and clear the flag only when mapcount == 0. (if mapcount >0, someone will make it to zero later and flag will be cleared.) Reverse case, dec-after-inc cannot be a problem because page_table_lock() works well for it. (IOW, to make above sequence, 2 processes should touch the same page at once with map/unmap.) Signed-off-by: KAMEZAWA Hiroyuki Cc: Balbir Singh Cc: Daisuke Nishimura Cc: Greg Thelen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 45531757b45cae0ce64c5aff08c2534d5a0fa3e7 Author: Daniel Lezcano Date: Wed Oct 27 15:33:38 2010 -0700 cgroup: notify ns_cgroup deprecated The ns_cgroup will be removed very soon. Let's warn, for this version, ns_cgroup is deprecated. Make ns_cgroup and clone_children exclusive. If the clone_children is set and the ns_cgroup is mounted, let's fail with EINVAL when the ns_cgroup subsys is created (a printk will help the user to understand why the creation fails). Update the feature remove schedule file with the deprecated ns_cgroup. Signed-off-by: Daniel Lezcano Acked-by: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f4a2589feaef0a9b737a3e582b37ee96695bb25f Author: Evgeny Kuznetsov Date: Wed Oct 27 15:33:37 2010 -0700 cgroups: add check for strcpy destination string overflow Function "strcpy" is used without check for maximum allowed source string length and could cause destination string overflow. Check for string length is added before using "strcpy". Function now is return error if source string length is more than a maximum. akpm: presently considered NotABug, but add the check for general future-safeness and robustness. Signed-off-by: Evgeny Kuznetsov Acked-by: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 32a8cf235e2f192eb002755076994525cdbaa35a Author: Daniel Lezcano Date: Wed Oct 27 15:33:37 2010 -0700 cgroup: make the mount options parsing more accurate Current behavior: ================= (1) When we mount a cgroup, we can specify the 'all' option which means to enable all the cgroup subsystems. This is the default option when no option is specified. (2) If we want to mount a cgroup with a subset of the supported cgroup subsystems, we have to specify a subsystems name list for the mount option. (3) If we specify another option like 'noprefix' or 'release_agent', the actual code wants the 'all' or a subsystem name option specified also. Not critical but a bit not friendly as we should assume (1) in this case. (4) Logically, the 'all' option is mutually exclusive with a subsystem name, but this is not detected. In other words: succeed : mount -t cgroup -o all,freezer cgroup /cgroup => is it 'all' or 'freezer' ? fails : mount -t cgroup -o noprefix cgroup /cgroup => succeed if we do '-o noprefix,all' The following patches consolidate a bit the mount options check. New behavior: ============= (1) untouched (2) untouched (3) the 'all' option will be by default when specifying other than a subsystem name option (4) raises an error In other words: fails : mount -t cgroup -o all,freezer cgroup /cgroup succeed : mount -t cgroup -o noprefix cgroup /cgroup For the sake of lisibility, the if ... then ... else ... if ... indentation when parsing the options has been changed to: if ... then ... continue fi Signed-off-by: Daniel Lezcano Signed-off-by: Serge E. Hallyn Reviewed-by: Li Zefan Reviewed-by: Paul Menage Cc: Eric W. Biederman Cc: Jamal Hadi Salim Cc: Matt Helsley Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 97978e6d1f2da0073416870410459694fbdbfd9b Author: Daniel Lezcano Date: Wed Oct 27 15:33:35 2010 -0700 cgroup: add clone_children control file The ns_cgroup is a control group interacting with the namespaces. When a new namespace is created, a corresponding cgroup is automatically created too. The cgroup name is the pid of the process who did 'unshare' or the child of 'clone'. This cgroup is tied with the namespace because it prevents a process to escape the control group and use the post_clone callback, so the child cgroup inherits the values of the parent cgroup. Unfortunately, the more we use this cgroup and the more we are facing problems with it: (1) when a process unshares, the cgroup name may conflict with a previous cgroup with the same pid, so unshare or clone return -EEXIST (2) the cgroup creation is out of control because there may have an application creating several namespaces where the system will automatically create several cgroups in his back and let them on the cgroupfs (eg. a vrf based on the network namespace). (3) the mix of (1) and (2) force an administrator to regularly check and clean these cgroups. This patchset removes the ns_cgroup by adding a new flag to the cgroup and the cgroupfs mount option. It enables the copy of the parent cgroup when a child cgroup is created. We can then safely remove the ns_cgroup as this flag brings a compatibility. We have now to manually create and add the task to a cgroup, which is consistent with the cgroup framework. This patch: Sent as an answer to a previous thread around the ns_cgroup. https://lists.linux-foundation.org/pipermail/containers/2009-June/018627.html It adds a control file 'clone_children' for a cgroup. This control file is a boolean specifying if the child cgroup should be a clone of the parent cgroup or not. The default value is 'false'. This flag makes the child cgroup to call the post_clone callback of all the subsystem, if it is available. At present, the cpuset is the only one which had implemented the post_clone callback. The option can be set at mount time by specifying the 'clone_children' mount option. Signed-off-by: Daniel Lezcano Signed-off-by: Serge E. Hallyn Cc: Eric W. Biederman Acked-by: Paul Menage Reviewed-by: Li Zefan Cc: Jamal Hadi Salim Cc: Matt Helsley Acked-by: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2d3cbf8bc852ac1bc3d098186143c5973f87b753 Author: Tomasz Buchert Date: Wed Oct 27 15:33:34 2010 -0700 cgroup_freezer: update_freezer_state() does incorrect state transitions There are 4 state transitions possible for a freezer. Only FREEZING -> FROZEN transaction is done lazily. This patch allows update_freezer_state only to perform this transaction and renames the function to update_if_frozen. Moreover is_task_frozen_enough function is removed and its every occurence is replaced with frozen(). Therefore for a group to become FROZEN every task must be frozen. The previous version could trigger a following bug: When cgroup is in the process of freezing (but none of its tasks are frozen yet), update_freezer_state() (called from freezer_read or freezer_write) would incorrectly report that a group is 'THAWED' (because nfrozen = 0), allowing the transaction FREEZING -> THAWED without writing anything to 'freezer.state'. This is incorrect according to the documentation. This could result in a 'THAWED' cgroup with frozen tasks inside. A code to reproduce this bug is available here: http://pentium.hopto.org/~thinred/repos/linux-misc/freezer_bug2.c [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Tomasz Buchert Cc: Matt Helsley Cc: Paul Menage Cc: Li Zefan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0bdba580ab052a21e3eda2764ed22d9ee962392b Author: Tomasz Buchert Date: Wed Oct 27 15:33:33 2010 -0700 cgroup_freezer: fix can_attach() to prohibit moving from/to freezing/frozen cgroups It is possible to move a task from its cgroup even if this group is 'FREEZING'. This results in a nasty bug - the moved task will become frozen OUTSIDE its original cgroup and will remain in a permanent 'D' state. This patch allows to migrate the task only between THAWED cgroups. This behavior was observed and easily reproduced on a single core laptop. Notice that reproducibility depends highly on the machine used. Program and instructions how to reproduce the bug can be fetched from: http://pentium.hopto.org/~thinred/repos/linux-misc/freezer_bug.c Signed-off-by: Tomasz Buchert Cc: Matt Helsley Cc: Paul Menage Cc: Li Zefan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d5de4ddb1bc430289bede76c0d87cabee93f749a Author: Tomasz Buchert Date: Wed Oct 27 15:33:32 2010 -0700 cgroup_freezer: unnecessary test in cgroup_freezing_or_frozen() The root freezer_state is always CGROUP_THAWED so we can remove the special case from the code. The test itself can be handy and is extracted to static function. Signed-off-by: Tomasz Buchert Cc: Matt Helsley Cc: Paul Menage Cc: Li Zefan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit abffc0207f12563f17bbde96e4cc0d9f3d7e2a53 Author: Andrea Righi Date: Wed Oct 27 15:33:31 2010 -0700 doc: clarify the behaviour of dirty_ratio/dirty_bytes When dirty_ratio or dirty_bytes is written the other parameter is disabled and set to 0 (in dirty_bytes_handler() / dirty_ratio_handler()). We do the same for dirty_background_ratio and dirty_background_bytes. However, in the sysctl documentation, we say that the counterpart becomes a function of the old value, that is not correct. Clarify the documentation reporting the actual behaviour. Reviewed-by: Greg Thelen Acked-by: David Rientjes Signed-off-by: Andrea Righi Cc: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e45c9effed903ba3fdbd6ef0498ee8989c35af0a Author: Ondrej Zary Date: Wed Oct 27 15:33:30 2010 -0700 isofs: work-around for Rock Ridge+Joliet CDs with empty ISO root directory If a CD has both Rock Ridge and Joliet extensions and the ISO root directory is empty, no files are visible. Disable Rock Ridge extensions in this case and use Joliet root directory instead. Signed-off-by: Ondrej Zary Cc: Al Viro Cc: Guenter Roeck Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b4754ebc319ca2e8eb95e51a5d2e2d00047c4db9 Author: Nicolas Kaiser Date: Wed Oct 27 15:33:29 2010 -0700 drivers/video/omap/blizzard.c: suspected typo in assignment Untested, but looks like an obvious typo to me. Signed-off-by: Nicolas Kaiser Cc: Tomi Valkeinen Cc: Tony Lindgren Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f35691062a138484b51bf53b36ae8a4495d8fb91 Author: Julia Lawall Date: Wed Oct 27 15:33:28 2010 -0700 drivers/video/gbefb.c: eliminate memory leak This code is preceded by a call to framebuffer_alloc, which allocates memory, so this memory should be freed before leaving the function in an error case. out_release_framebuffer just frees the frame buffer and returns. A simplified version of the semantic match that finds this problem is: (http://coccinelle.lip6.fr/) // @r exists@ local idexpression x; expression E; identifier f1; iterator I; @@ x = framebuffer_alloc(...); <... when != x when != true (x == NULL || ...) when != if (...) { <+...x...+> } when != I (...) { <+...x...+> } ( x == NULL | x == E | x->f1 ) ...> * return ...; // Signed-off-by: Julia Lawall Cc: Ralf Baechle Cc: Arnaud Patard Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f11b478d461b7113eb4603b3914aaf15b7788e87 Author: James Hogan Date: Wed Oct 27 15:33:28 2010 -0700 fbmem: fix fb_read, fb_write unaligned accesses fb_{read,write} access the framebuffer using lots of fb_{read,write}l's but don't check that the file position is aligned which can cause problems on some architectures which do not support unaligned accesses. Since the operations are essentially memcpy_{from,to}io, new fb_memcpy_{from,to}fb macros have been defined and these are used instead. For Sparc, fb_{read,write} macros use sbus_{read,write}, so this defines new sbus_memcpy_{from,to}io functions the same as memcpy_{from,to}io but using sbus_{read,write}b instead of {read,write}b. Signed-off-by: James Hogan Acked-by: David S. Miller Acked-by: Florian Tobias Schandinat Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c9c62dce35e7fc54beebafb071393a0008989e49 Author: James Hogan Date: Wed Oct 27 15:33:27 2010 -0700 fbmem: fix whitespace Change a few lines of indentation to tabs. Signed-off-by: James Hogan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 847fb8aca3b79d03ef6c5f87f0843a30ed9e6627 Author: Julia Lawall Date: Wed Oct 27 15:33:26 2010 -0700 drivers/video/matrox/matroxfb_maven.c: fix unsigned return type The function has an unsigned return type, but returns a negative constant to indicate an error condition. The result of calling the function is only tested by comparison to 0, and thus unsigned is not needed and can be dropped from the return type. A sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @exists@ identifier f; constant C; @@ unsigned f(...) { <+... * return -C; ...+> } // Signed-off-by: Julia Lawall Cc: Petr Vandrovec Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f0a2f357d46a51f8066eb47b3dba40f87a680804 Author: Ondrej Zary Date: Wed Oct 27 15:33:25 2010 -0700 savagefb: fix DDC for Savage 4 I tested savagefb on 3 different Savage 4 cards: Diamond Stealth III S520 Number Nine SR9 Datapath Horizon 2S (two savage chips on a PCI card) it worked except the DDC which did not work on any of them. Looking at the BIOS code, it does not use MMIO register 0xff20 but CRT register 0xa0 or 0xb1 - depending on the chip revision and something in register 0xa6. With this patch, DDC works fine on all 3 cards (even on the second head of Horizon 2S - although it does not display anything as it's misconfigured because of missing BIOS). Signed-off-by: Ondrej Zary Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 09b599ddd467911ad6b43f3abe3c533446662417 Author: Christian Dietrich Date: Wed Oct 27 15:33:23 2010 -0700 drivers/video/matrox/matroxfb_DAC1064.c: remove undead ifdef CONFIG_FB_MATROX_G The CONFIG_FB_MATROX_G ifdef isn't necessary at this point, because it is checked in an outer ifdef level already and has no effect here. Signed-off-by: Christian Dietrich Acked-by: Jean Delvare Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 72b4379e9502e7bf64256af83a55f90bd13d1ce6 Author: Alan Cox Date: Wed Oct 27 15:33:23 2010 -0700 langwell_gpio: add support for whitney point In this case the logic is very similar but the IRQs are not exposed and the device is not picked up via PCI Based on a separate internal whitney point driver by Yin Kangkai. Signed-off-by: Alan Cox Cc: Yin Kangkai Cc: Alek Du Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fd0574cb54bf1dd068e4603f0d67d237aa1d718d Author: Andrew Morton Date: Wed Oct 27 15:33:22 2010 -0700 drivers/gpio/langwell_gpio.c: remove semicolons after function definitions Deweird this driver. Cc: Alek Du Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 04c17aa89380addf8d7df6f0fd269fc2bd87796c Author: Tomoya MORINAGA Date: Wed Oct 27 15:33:21 2010 -0700 gpio: add Topcliff PCH GPIO driver Topcliff PCH is the platform controller hub that is going to be used in Intel's upcoming general embedded platform. All IO peripherals in Topcliff PCH are actually devices sitting on AMBA bus. Topcliff PCH has GPIO I/F. Using this I/F, it is able to access system devices connected to GPIO. [akpm@linux-foundation.org: ese DEFINE_PCI_DEVICE_TABLE (per Joe Perches)] Signed-off-by: Tomoya MORINAGA Reviewed-by: Mark Brown Cc: Rabin Vincent Cc: Samuel Ortiz Cc: Linus Walleij Cc: Tomoya MORINAGA Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dc5ae4f2f58cfa98b67d2be379fc99080a8967af Author: Michael Hennerich Date: Wed Oct 27 15:33:20 2010 -0700 gpio: adp5588-gpio: add i2c forward declaration Some ADP5588 functions take a pointer to an i2c_client, but if the i2c header doesn't happen to be included first, we hit the standard "struct declared inside parameter list" warnings from gcc. So add a simple forward decl of the i2c_client struct. Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9ef8c8c51a7d76bae73e0259c356b24533b6b7c0 Author: Michael Hennerich Date: Wed Oct 27 15:33:20 2010 -0700 gpio: adp5588-gpio: gpio_start must be signed Common code interprets this as a signed value (a negative value is used to request dynamic ID allocation), so make sure the platform data has proper types to support that. Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 459773ae8dbbd480886d186181c6bc2e8556025f Author: Michael Hennerich Date: Wed Oct 27 15:33:19 2010 -0700 gpio: adp5588-gpio: support interrupt controller Implement irq_chip functionality on ADP5588/5587 GPIO expanders. Only level sensitive interrupts are supported. Interrupts provided by this irq_chip must be requested using request_threaded_irq(). Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ead6db084392349ad33323b1bb2916058dd7e82b Author: Miguel Gaio Date: Wed Oct 27 15:33:18 2010 -0700 gpio: add support for 74x164 serial-in/parallel-out 8-bit shift register Add support for generic 74x164 serial-in/parallel-out 8-bits shift register. This driver can be used as a GPIO output expander. [akpm@linux-foundation.org: remove unused local `refresh'] Signed-off-by: Miguel Gaio Signed-off-by: Juhos Gabor Signed-off-by: Florian Fainelli Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 76d800a5b6e198c4fda07b88bb42a545709f193b Author: Tomas Hallenberg Date: Wed Oct 27 15:33:17 2010 -0700 gpio: timbgpio: use a copy of the IER register to avoid it being trashed Some versions of the hardware can trash the IER register if simultaneous interrupts occur. This patch works around it by using a local copy of the register and restoring it after every interrupt. Signed-off-by: Tomas Hallenberg Acked-by: Richard Röjfors Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 09cd9527d621640d4dd231dff77b681e711d8e4b Author: Anton Vorontsov Date: Wed Oct 27 15:33:16 2010 -0700 gpiolib: fix HAVE_GPIO_LIB leftovers in asm-generic/gpio.h commit 7444a72effa632fcd8edc566f88 ("gpiolib: allow user-selection") removed HAVE_GPIO_LIB Kconfig symbol, but the header file still uses the name [to confuse readers wrt #ifdef/#else/#endif location]. The real Kconfig symbol nowadays is CONFIG_GPIOLIB. Signed-off-by: Anton Vorontsov Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aeec56e331c6d2750de02ef34b305338305ca690 Author: Anton Vorontsov Date: Wed Oct 27 15:33:15 2010 -0700 gpio: add driver for basic memory-mapped GPIO controllers The basic GPIO controllers may be found in various on-board FPGA and ASIC solutions that are used to control board's switches, LEDs, chip-selects, Ethernet/USB PHY power, etc. These controllers may not provide any means of pin setup (in/out/open drain). The driver supports: - 8/16/32/64 bits registers; - GPIO controllers with clear/set registers; - GPIO controllers with a single "data" register; - Big endian bits/GPIOs ordering (mostly used on PowerPC). Signed-off-by: Anton Vorontsov Reviewed-by: Mark Brown Cc: David Brownell Cc: Samuel Ortiz , Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d0f744c8cbd19a8d07eccb15bb08e6a29c4d5192 Author: Paul Cercueil Date: Wed Oct 27 15:33:12 2010 -0700 drivers/rtc/rtc-jz4740.c: add alarm function Add the "alarm" function to the jz4740 RTC. Interrupts will now be raised when the "alarm" time is reached. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Paul Cercueil Cc: Wan ZongShun Cc: Alessandro Zummo Cc: Lars-Peter Clausen Cc: Paul Gortmaker Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f46418c5cadfe76b15c630ff746ca859a8207d71 Author: Lan Chunhe-B25806 Date: Wed Oct 27 15:33:12 2010 -0700 drivers/rtc/rtc-ds3232.c: add alarm function The DS3232 RTC driver only has the tick function. Add an alarm function so the driver is complete. Signed-off-by: Lan Chunhe-B25806 Cc: Alessandro Zummo Cc: Wan ZongShun Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5b3ffddd8ddb4712dfe14ad3e23eb5494f11bf61 Author: Kukjin Kim Date: Wed Oct 27 15:33:11 2010 -0700 rtc: rtc-s3c: add rtc_valid_tm in s3c_rtc_gettime() Add "rtc_valid_tm" in s3c_rtc_gettime() as per Wan ZongShun's suggestion. Suggested-by: Wan ZongShun Signed-off-by: Kukjin Kim Cc: Ben Dooks Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e1df962e6cdc431acb6a8da409b6a7d89c4f782e Author: Changhwan Youn Date: Wed Oct 27 15:33:10 2010 -0700 rtc: rtc-s3c: fix RTC initialization method Change RTC initialization method in probe(). The 'rtc_valid_tm(tm)' can check whether RTC BCD is valid or not. And change the method of checking because the previous method cannot validate RTC BCD registers properly. Signed-off-by: Changhwan Youn Signed-off-by: Kukjin Kim Cc: Ben Dooks Cc: Wan ZongShun Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 30ffc40cf52cd68782b50cb699b5eca076ca23ab Author: Kukjin Kim Date: Wed Oct 27 15:33:09 2010 -0700 rtc: rtc-s3c: Fix debug message format on RTC Fix debug message format. Signed-off-by: Kukjin Kim Acked-by: Ben Dooks Cc: Wan ZongShun Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e6eb524e6e6df4027530b36f76b84a6a076a3249 Author: Changhwan Youn Date: Wed Oct 27 15:33:09 2010 -0700 rtc: rtc-s3c: fix on support RTC Alarm The alarm_irq_enable function should be implemented to support RTC alarm. And fix tabs instead of white space around the proc field. Signed-off-by: Changhwan Youn Signed-off-by: Kukjin Kim Acked-by: Ben Dooks Cc: Wan ZongShun Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dd061d1abe4e637bf755865f776f8088dacd1c0b Author: Changhwan Youn Date: Wed Oct 27 15:33:08 2010 -0700 rtc: rtc-s3c: fix setting missing field of getalarm Current s3c_rtc_getalarm() sets missing field of alarm time with 0xff. But this value should be -1 according to drivers/rtc/interface.c. Signed-off-by: Changhwan Youn Signed-off-by: Kukjin Kim Acked-by: Ben Dooks Cc: Wan ZongShun Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f61ae6711d69717558e882a78487527705603a74 Author: Changhwan Youn Date: Wed Oct 27 15:33:06 2010 -0700 rtc: rtc-s3c: fix access unit from byte to word on RTCCON S3C2410_RTCCON of TYPE_S3C64XX RTC should be read/written by readw and writew, because TYPE_S3C64XX RTC uses bit 8 and 9. And TYPE_S3C2410 RTC also can access it by readw and writew. [atul.dahiya@samsung.com: tested on smdk2416] [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Changhwan Youn Signed-off-by: Kukjin Kim Tested-by: Atul Dahiya Cc: Ben Dooks Cc: Wan ZongShun Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fa5b07820fe3a0fc06ac368516e71f10a59b9539 Author: Sekhar Nori Date: Wed Oct 27 15:33:05 2010 -0700 rtc: omap: let device wakeup capability be configured from chip init logic The rtc-omap driver currently hardcodes the RTC wakeup capability to be "not capable". While this seems to be true for existing OMAP1 boards which are not wired for this, the DA850/OMAP-L138 SoC, the RTC can always be wake up source from its "deep sleep" mode. This patch lets the wakeup capability be set from platform data and does not override the setting from the driver. For DA850/OMAP-L138, this is done from arch/arm/mach-davinci/devices-da8xx.c:da8xx_register_rtc() Note that this patch does not change the behavior on any existing OMAP1 board since the platform device registration sets the wakeup capability to 0 by default. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman Cc: Alessandro Zummo Cc: Wan ZongShun Cc: Tony Lindgren Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 59cca865f21e9e7beab73fcf79ba4eb776a4c228 Author: Vasiliy Kulikov Date: Wed Oct 27 15:33:04 2010 -0700 drivers/rtc/class.c: fix device_register() error handling If device_register() fails then call put_device(). See comment to device_register. Signed-off-by: Vasiliy Kulikov Cc: Alessandro Zummo Cc: Wan ZongShun Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d7c7ef908b6497bb871e2e113e66e8fb0f757543 Author: Mike Frysinger Date: Wed Oct 27 15:33:04 2010 -0700 rtc-bfin: add debug markers to suspend/resume paths The rest of the driver had debug markings already. This also standardizes the usage of "dev" a bit. Signed-off-by: Mike Frysinger Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 286f9f95fcb165919125ef51bae23ef7a9f24008 Author: Mike Frysinger Date: Wed Oct 27 15:33:03 2010 -0700 rtc-bfin: shrink/optimize interrupt handler a bit By unifying the RTC_ISTAT clearing steps, we shrink the interrupt handler and avoid multiple writes to the hardware registers. Signed-off-by: Mike Frysinger Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9aa449bed21515a3406f60238ce4747e4118b628 Author: Kevin Wells Date: Wed Oct 27 15:33:01 2010 -0700 rtc: rtc-lpc32xx: introduce RTC driver for the LPC32XX SoC Add an RTC driver for the built-in RTC in the LPC32XX SoC. This patch includes updates from the initial review comments and updates from the v3 review. Signed-off-by: Kevin Wells Signed-off-by: Durgesh Pattamatta Reviewed-by: Wolfram Sang Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1e0ad2881d50becaeea70ec696a80afeadf944d2 Author: Graham Gower Date: Wed Oct 27 15:33:00 2010 -0700 drivers/char/vt_ioctl.c: fix VT_OPENQRY error value When all VT's are in use, VT_OPENQRY casts -1 to unsigned char before returning it to userspace as an int. VT255 is not the next available console. Signed-off-by: Graham Gower Cc: Greg KH Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8881cdceb25b4fcebfb17a9548ed80c22cf8b066 Author: Bjorn Helgaas Date: Wed Oct 27 15:32:59 2010 -0700 dmi: log board, system, and BIOS information Put basic system information in the dmesg log. There are lots of dmesg logs on the web, and it would be useful if they contained this information for debugging platform problems. "BOARD/PRODUCT" format copied from show_regs_common(), which is used in the oops path. Signed-off-by: Bjorn Helgaas Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d31eb5194bbdcc7db9fd6956c293e45093bfb394 Author: FUJITA Tomonori Date: Wed Oct 27 15:32:58 2010 -0700 tile: enable ARCH_DMA_ADDR_T_64BIT Signed-off-by: FUJITA Tomonori Acked-by: Chris Metcalf Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 20273941f2129aa5a432796d98a276ed73d60782 Author: Peter Zijlstra Date: Wed Oct 27 15:32:58 2010 -0700 mm: fix race in kunmap_atomic() Christoph reported a nice splat which illustrated a race in the new stack based kmap_atomic implementation. The problem is that we pop our stack slot before we're completely done resetting its state -- in particular clearing the PTE (sometimes that's CONFIG_DEBUG_HIGHMEM). If an interrupt happens before we actually clear the PTE used for the last slot, that interrupt can reuse the slot in a dirty state, which triggers a BUG in kmap_atomic(). Fix this by introducing kmap_atomic_idx() which reports the current slot index without actually releasing it and use that to find the PTE and delay the _pop() until after we're completely done. Signed-off-by: Peter Zijlstra Reported-by: Christoph Hellwig Acked-by: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a8e23a291852cd7c4fb5ca696dbb93912185ad10 Author: Peter Zijlstra Date: Wed Oct 27 15:32:57 2010 -0700 mm,x86: fix kmap_atomic_push vs ioremap_32.c It appears i386 uses kmap_atomic infrastructure regardless of CONFIG_HIGHMEM which results in a compile error when highmem is disabled. Cure this by providing the needed few bits for both CONFIG_HIGHMEM and CONFIG_X86_32. Signed-off-by: Peter Zijlstra Reported-by: Chris Wilson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6b03590412c977ae8fa1635c9b80854ab19a5b78 Author: Dan Carpenter Date: Wed Oct 27 23:19:32 2010 +0200 cifs: add kfree() on error path We leak 256 bytes here on this error path. Signed-off-by: Dan Carpenter Acked-by: Jeff Layton Signed-off-by: Steve French commit 4408ea41c0ab4b711d4da44dd954fb06dce6c3f8 Author: Jan Kara Date: Tue Oct 19 00:24:21 2010 +0200 quota: Fix possible oops in __dquot_initialize() When quotaon(8) races with __dquot_initialize() or dqget() fails because of EIO, ENOSPC, or similar error, we could possibly dereference NULL pointer in inode->i_dquot[cnt]. Add proper checking. Reported-by: Dmitry Monakhov Signed-off-by: Jan Kara commit a4c18ad2eed93194a667cb9f6662c3b3e8f0bba9 Author: Namhyung Kim Date: Tue Oct 19 00:34:35 2010 +0900 ext3: Update kernel-doc comments Update missing/broken argument descriptions and fix formatting. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit bcf3d0bcff9c2ab5794d9a2c5f0ebc9ce63cc63f Author: Andrea Gelmini Date: Sat Oct 16 15:19:14 2010 +0200 jbd/2: fixed typos "wakup" Signed-off-by: Andrea Gelmini Signed-off-by: Jan Kara commit 58c6ed38a16cd235588ed4a5ca3b213f055bc14c Author: Andrea Gelmini Date: Sat Oct 16 15:19:11 2010 +0200 ext2: fixed typo. "excpet" Signed-off-by: Andrea Gelmini Signed-off-by: Jan Kara commit db50d20b1da6ebb62bc28172de142efd9e7b5d89 Author: Namhyung Kim Date: Sun Oct 17 01:11:23 2010 +0900 ext3: Fix debug messages in ext3_group_extend() Fix a typo, break long lines and use E3FSBLK on ext3_fsblk_t. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit e4d5e3a497e159be7c2dbe4c61cfb185d60cfde2 Author: Namhyung Kim Date: Sat Oct 16 17:11:02 2010 +0900 jbd: Convert atomic_inc() to get_bh() Convert atomic_inc(&bh->b_count) to get_bh(bh) for consistency. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit bfa01dfbe0a02f5ba434221c351f0510c06af392 Author: Namhyung Kim Date: Fri Oct 15 20:03:02 2010 +0900 ext3: Remove misplaced BUFFER_TRACE() in ext3_truncate() Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit b8ea49fa9baff99523aa51e680e76e8ccb5f25f3 Author: Namhyung Kim Date: Wed Oct 13 23:14:07 2010 +0900 jbd: Fix debug message in do_get_write_access() 'buffer_head' should be 'journal_head'. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit 2a0e33889b3f5e3c270dd1b746f4c0a75efa4790 Author: Namhyung Kim Date: Wed Oct 13 17:17:18 2010 +0900 jbd: Check return value of __getblk() Fail journal creation if __getblk() returns NULL. unlikely() is added because it is called in a loop and we've been OK without the check until now. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit 81a4e320e6ee29bde3fe880ab87b2122bc1de88b Author: Namhyung Kim Date: Mon Oct 11 19:38:39 2010 +0900 ext3: Use DIV_ROUND_UP() on group desc block counting Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit 4569cd1b0d91e4d7fa67f950201befc2acfecb34 Author: Namhyung Kim Date: Mon Oct 11 19:08:06 2010 +0900 ext3: Return proper error code on ext3_fill_super() Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit 57e94d8647e9aa60ad317ccd0cd54eefd603f1fe Author: Namhyung Kim Date: Mon Oct 11 02:10:45 2010 +0900 ext3: Remove unnecessary casts on bh->b_data bh->b_data is already a pointer to char so casts to 'char *' should be meaningless. Remove them. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit df0d6b8ff152b1a1aaae17c27a445ad025a358bd Author: Namhyung Kim Date: Sun Oct 10 21:36:59 2010 +0900 ext3: Cleanup ext3_setup_super() Fix mount-count check to emit warning only if s_max_mnt_count is greater than 0 according to man tune2fs(8). Also removes unnecessary casts. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit 86f3cbec4a193c04d0a31c13132c5956731af6ff Author: Jan Kara Date: Mon Oct 11 15:22:21 2010 +0200 quota: Fix issuing of warnings from dquot_transfer __dquot_transfer accidentally called flush_warnings for a wrong set of dquots which could result in quota warnings being issued with a wrong identification. Also when operation fails because of EDQUOT, there's no need check for issuing information message about user getting below limits (no transfer has actually happened). Signed-off-by: Jan Kara commit 9e32784b71c2c84895016ca6ab271591669c02aa Author: Dmitry Date: Sat Oct 9 23:15:30 2010 +0400 quota: fix dquot_disable vs dquot_transfer race v2 I've got following lockup: dquot_disable dquot_transfer ->dqget() sb_has_quota_active dqopt->flags &= ~dquot_state_flag(f, cnt) atomic_inc(dq->dq_count) ->drop_dquot_ref(sb, cnt); down_write(dqptr_sem) inode->i_dquot[cnt] = NULL ->__dquot_transfer invalidate_dquots(sb, cnt); down_write(&dqptr_sem) ->wait for dq_wait_unused inode->i_dquot = new_dquot /* wait forever */ ^^^^New quota user^^^^^^ We cannot allow new references to dquots from inodes after drop_dquot_ref() has removed them. We have to recheck quota state under dqptr_sem and before assignment, as we do it in dquot_initialize(). Signed-off-by: Dmitry Monakhov Signed-off-by: Jan Kara commit a910eefa511f9d1118effc13fba6773163502c4f Author: Namhyung Kim Date: Fri Oct 8 20:05:06 2010 +0900 jbd: Convert bitops to buffer fns Convert set/clear_bit(BH_JWrite, ...) to set/clear_buffer_jwrite() for consistency. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit dff6825e9fde93891e60751e01480337a991235e Author: Darrick J. Wong Date: Mon Oct 4 12:35:05 2010 -0700 ext3/jbd: Avoid WARN() messages when failing to write the superblock This fixes a WARN backtrace in mark_buffer_dirty() that occurs during unmount when the underlying block device is removed. This bug has been seen on System Z when removing all paths from a multipath-backed ext3 mount; on System P when injecting enough PCI EEH errors to make the SCSI controller go offline; and similar warnings have been seen (and patched) with ext2/ext4. The super block update from a previous operation has marked the buffer as in error, and the flag has to be cleared before doing the update. Similar changes have been made to ext4 by commit 914258bf2cb22bf4336a1b1d90c551b4b11ca5aa. Signed-off-by: Darrick J. Wong Signed-off-by: Jan Kara commit 8117f98c058dbe463eaba2b51b84d19bd5d78804 Author: Namhyung Kim Date: Tue Oct 5 01:03:40 2010 +0900 jbd: Use offset_in_page() instead of manual calculation Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit 2b23976908d9f8406f8b10b86c83b2cee302bc7d Author: Namhyung Kim Date: Tue Oct 5 00:13:59 2010 +0900 jbd: Remove unnecessary goto statement Remove goto statement which jumps to very next line. Also remove target label because it is no longer used anywhere. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit f81e3d4564a06c5a070337ba527d11865acecb67 Author: Namhyung Kim Date: Mon Oct 4 19:12:13 2010 +0900 jbd: Use printk_ratelimited() in journal_alloc_journal_head() Use printk_ratelimited() instead of doing it manually. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit c5639bef63a241d8d5a00e5243d7f304d7563c46 Author: Namhyung Kim Date: Mon Oct 4 17:26:53 2010 +0900 jbd: Move debug message into #ifdef area Move call to jbd_debug() into #ifdef CONFIG_JBD_DEBUG block because 'dropped' is declared there. The code could be compiled without this change anyway, simply because jbd_debug() expands to nothing if !CONFIG_JBD_DEBUG but IMHO it doesn't look good in general. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit 26f78b7a423aea094c536e94cbe1f1fa4641dd7b Author: Namhyung Kim Date: Sun Sep 26 15:31:00 2010 +0900 ext2: fix comment on ext2_try_to_allocate() @handle doesn't exist in ext2. Remove it. Also, fit comment header into kernel-doc format. Signed-off-by: Namhyung Kim Signed-off-by: Jan Kara commit 9231d9e02a1f92b52bbb1e4474bfd1903835a993 Author: Michal Marek Date: Thu Oct 28 00:59:56 2010 +0200 Revert "namespace: add source file location exceptions" This reverts commit 24a54f7974a616385b96cd939e004592e2cea484. Stephen Hemminger writes: > That patch should not be included. It causes more problems than it > solves, since then there are duplicate file locations which causes > false duplicate symbol reports. Reported-by: Stephen Hemminger Signed-off-by: Michal Marek commit 70c74e59db7450d5c9164abeb3b6752f8045288b Merge: b3235fe 42368c3 Author: Michal Marek Date: Thu Oct 28 00:54:25 2010 +0200 Merge branch 'message-callback' into kbuild/kconfig Conflicts: scripts/kconfig/nconf.c commit 062c1825a5f6673746efe5f0a5ea3803b0c316a9 Author: Nicolas Palix Date: Sun Oct 24 23:37:34 2010 +0200 Coccinelle: Add contextual message Change the message displayed to the user according to the current mode used. Fix trailing white-space and spelling Signed-off-by: Nicolas Palix Signed-off-by: Michal Marek commit 9dcf7990c2b8afe865d59f809a35a84d10f241f8 Author: Nicolas Palix Date: Sun Oct 24 23:37:33 2010 +0200 Coccinelle: Fix documentation A file used as example has been moved elsewhere. Update the documentation accordingly Signed-off-by: Nicolas Palix Reported-by: Julia Lawall Signed-off-by: Michal Marek commit 97c1cf8fdbce332bfacc3e38aae3fe2af1369906 Author: Julia Lawall Date: Sun Oct 24 23:37:32 2010 +0200 Coccinelle: Find doubled arguments to boolean or bit operators. Signed-off-by: Julia Lawall Signed-off-by: Nicolas Palix Signed-off-by: Michal Marek commit 10247179a7af4f000468e12ae73f3cf657b66235 Author: Julia Lawall Date: Sun Oct 24 23:37:31 2010 +0200 Coccinelle: Find nested lock+irqsave functions that use the same flags variables. Signed-off-by: Julia Lawall Signed-off-by: Nicolas Palix Signed-off-by: Michal Marek commit 24a54f7974a616385b96cd939e004592e2cea484 Author: Stephen Hemminger Date: Wed Oct 13 15:58:30 2010 -0700 namespace: add source file location exceptions Teach namespace checker about some special case files where the source is in unusual location. This fixes many of the source file not found errors (more can be added), and also prevents false positives for functions not being used. Signed-off-by: Stephen Hemminger Signed-off-by: Michal Marek commit 532cf2907ac3b9c2345d76251764f4f4e602c921 Author: Dick Streefland Date: Sat Oct 23 00:02:44 2010 +0200 scripts/extract-ikconfig: add support for bzip2, lzma and lzo Add support for kernels compressed with bzip2, lzma or lzo to the extract-ikconfig script. Fixes kernel bugzilla #19852: https://bugzilla.kernel.org/show_bug.cgi?id=19852 Signed-off-by: Dick Streefland Tested-by: Justin Signed-off-by: Michal Marek commit d0f95c782686dbfbb415d533881a06c2bde17ee0 Author: Namhyung Kim Date: Fri Oct 22 23:32:10 2010 +0900 kbuild: check return value of asprintf() Check return value of asprintf() in docsect() and exit if error occurs. This removes following warning: HOSTCC scripts/basic/docproc scripts/basic/docproc.c: In function ‘docsect’: scripts/basic/docproc.c:336: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result Signed-off-by: Namhyung Kim Acked-by: Randy Dunlap Signed-off-by: Michal Marek commit b74b953b998bcc2db91b694446f3a2619ec32de6 Merge: abb4385 f6f94e2 Author: Michal Marek Date: Thu Oct 28 00:15:57 2010 +0200 Merge commit 'v2.6.36' into kbuild/misc Update to be able to fix a recent change to scripts/basic/docproc.c (commit eda603f). commit abb438526201c6a79949ad45375c051b6681c253 Author: Amerigo Wang Date: Wed Oct 27 12:42:01 2010 -0700 scripts/namespace.pl: improve to get more correct results Exclude more symbols from arch/x86/vdso/ and arch/x86/boot/; add some more linker-defined symbols into exception list; add other cond_syscalls besides "sys_*". Signed-off-by: Amerigo Wang Cc: Stephen Hemminger Cc: Michal Marek Signed-off-by: Andrew Morton Signed-off-by: Michal Marek commit e8cf981346b78ee50c2bfce83be9ee55704b3d4f Author: Amerigo Wang Date: Wed Oct 27 12:42:01 2010 -0700 scripts/namespace.pl: some bug fixes 1. Teach namespace.pl to understand "V" and "v" 2. cond_syscalls are moved into kernel/sys_ni.c Signed-off-by: Amerigo Wang Cc: Stephen Hemminger Cc: Michal Marek Signed-off-by: Andrew Morton Signed-off-by: Michal Marek commit 43f683c9e465a64259c6058a7c313facc697b203 Author: Stephen Hemminger Date: Wed Oct 27 12:42:00 2010 -0700 scripts/namespace.pl: update file exclusion list Signed-off-by: Stephen Hemminger Signed-off-by: Amerigo Wang Cc: Michal Marek Signed-off-by: Andrew Morton Signed-off-by: Michal Marek commit c25f415751c0c5507561d997fe5f7f05f4342912 Author: Amerigo Wang Date: Wed Oct 27 12:42:00 2010 -0700 scripts/namespace.pl: fix wrong source path File::Find will do chdir automatically, so we need to get the absolute patch with $File::Find::dir. Reported-by: Stephen Hemminger Signed-off-by: Amerigo Wang Cc: Michal Marek Signed-off-by: Andrew Morton Signed-off-by: Michal Marek commit ce45b873028fdf94a24f0850cd554e6fda593e16 Author: Breno Leitao Date: Wed Oct 27 08:45:14 2010 +0000 ehea: Fixing statistics (Applied over Eric's "ehea: fix use after free" patch) Currently ehea stats are broken. The bytes counters are got from the hardware, while the packets counters are got from the device driver. Also, the device driver counters are resetted during the the down process, and the hardware aren't, causing some weird numbers. This patch just consolidates the packets and bytes on the device driver. Signed-off-by: Breno Leitao Reviewed-by: Eric Dumazet Signed-off-by: David S. Miller commit a71fb88145a03678fef3796930993e390db68a15 Author: Jarek Poplawski Date: Wed Oct 27 07:08:22 2010 +0000 bonding: Fix lockdep warning after bond_vlan_rx_register() Fix lockdep warning: [ 52.991402] ====================================================== [ 52.991511] [ INFO: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected ] [ 52.991569] 2.6.36-04573-g4b60626-dirty #65 [ 52.991622] ------------------------------------------------------ [ 52.991696] ip/4842 [HC0[0]:SC0[4]:HE1:SE0] is trying to acquire: [ 52.991758] (&bond->lock){++++..}, at: [] bond_set_multicast_list+0x60/0x2c0 [bonding] [ 52.991966] [ 52.991967] and this task is already holding: [ 52.992008] (&bonding_netdev_addr_lock_key){+.....}, at: [] dev_mc_sync+0x50/0xa0 [ 52.992008] which would create a new lock dependency: [ 52.992008] (&bonding_netdev_addr_lock_key){+.....} -> (&bond->lock){++++..} [ 52.992008] [ 52.992008] but this new dependency connects a SOFTIRQ-irq-safe lock: [ 52.992008] (&(&mc->mca_lock)->rlock){+.-...} [ 52.992008] ... which became SOFTIRQ-irq-safe at: [ 52.992008] [] __lock_acquire+0x96b/0x1960 [ 52.992008] [] lock_acquire+0x7e/0xf0 [ 52.992008] [] _raw_spin_lock_bh+0x3d/0x50 [ 52.992008] [] mld_ifc_timer_expire+0xf0/0x280 [ 52.992008] [] run_timer_softirq+0x146/0x310 [ 52.992008] [] __do_softirq+0xad/0x1c0 [ 52.992008] [ 52.992008] to a SOFTIRQ-irq-unsafe lock: [ 52.992008] (&bond->lock){++++..} [ 52.992008] ... which became SOFTIRQ-irq-unsafe at: [ 52.992008] ... [] __lock_acquire+0x9bb/0x1960 [ 52.992008] [] lock_acquire+0x7e/0xf0 [ 52.992008] [] _raw_write_lock+0x38/0x50 [ 52.992008] [] bond_vlan_rx_register+0x24/0x70 [bonding] [ 52.992008] [] register_vlan_dev+0xc0/0x280 [ 52.992008] [] vlan_newlink+0xaa/0xd0 [ 52.992008] [] rtnl_newlink+0x404/0x490 [ 52.992008] [] rtnetlink_rcv_msg+0x1e5/0x220 [ 52.992008] [] netlink_rcv_skb+0x8e/0xb0 [ 52.992008] [] rtnetlink_rcv+0x1c/0x30 [ 52.992008] [] netlink_unicast+0x24b/0x290 [ 52.992008] [] netlink_sendmsg+0x1f7/0x310 [ 52.992008] [] sock_sendmsg+0xac/0xe0 [ 52.992008] [] sys_sendmsg+0x130/0x230 [ 52.992008] [] sys_socketcall+0xde/0x280 [ 52.992008] [] sysenter_do_call+0x12/0x36 [ 52.992008] [ 52.992008] other info that might help us debug this: ... [ Full info at netdev: Wed, 27 Oct 2010 12:24:30 +0200 Subject: [BUG net-2.6 vlan/bonding] lockdep splats ] Use BH variant of write_lock(&bond->lock) (as elsewhere in bond_main) to prevent this dependency. Fixes commit f35188faa0fbabefac476536994f4b6f3677380f [v2.6.36] Reported-by: Eric Dumazet Tested-by: Eric Dumazet Signed-off-by: Jarek Poplawski Acked-by: Eric Dumazet Cc: Jay Vosburgh commit 6f9419619ef6de9d7781c1a312cf6099e5b44789 Author: Jeff Ohlstein Date: Thu Oct 21 02:25:45 2010 -0700 msm: timer: Decrease shift on timer clocksource The shift of 24 causes the shift and multiply operation to sometimes overflow, resulting in incorrect timer values and poor performance. Signed-off-by: Jeff Ohlstein Signed-off-by: Daniel Walker commit a86c44d48a03dcd73972ddadb55a77e6b308fa0b Author: Vasiliy Kulikov Date: Sun Oct 17 18:51:37 2010 +0400 arm: mach-msm: fix error handling in msm_iommu_probe() msm_iommu_probe() didn't free mem_region and mapped IO. Also if request_mem_region() failed then error handling code dereferenced NULL pointer. Signed-off-by: Vasiliy Kulikov Acked-by: Stepan Moskovchenko Signed-off-by: Daniel Walker commit efdfb2b118cc11c88adcbcb8036795eb34f419a8 Author: Daniel Walker Date: Tue Oct 12 11:52:14 2010 -0700 msm: fix Kconfig target board selection This prevents build failures since it's currently possible to select 8x50, 7x30, or 7x00 without selecting a specific board. These changes just force a target selection, which is currently defaulting to the most common one (7x30 only has one). Signed-off-by: Daniel Walker commit 79d98313e0985fa754fc50ea639cbafdfc0860a6 Author: Daniel Walker Date: Mon Oct 11 15:46:52 2010 -0700 msm: fix compile failure on struct membank node member In commit be370302742ff9948f2a42b15cb2ba174d97b930 "ARM: Remove DISCONTIGMEM support", it removed this "node" member which cased the following compile failure in mach-msm, linux/arch/arm/mach-msm/board-halibut.c: In function 'halibut_fixup': linux/arch/arm/mach-msm/board-halibut.c:86: error: 'struct membank' has no member named 'node' linux/arch/arm/mach-msm/board-halibut.c:86: error: implicit declaration of function 'PHYS_TO_NID' I've removed the access to the node member which corrects the compile failure. Signed-off-by: Daniel Walker commit 74b0b85b88aaa952023762e0280799aaae849841 Author: Pavel Emelyanov Date: Wed Oct 27 05:43:53 2010 +0000 tunnels: Fix tunnels change rcu protection After making rcu protection for tunnels (ipip, gre, sit and ip6) a bug was introduced into the SIOCCHGTUNNEL code. The tunnel is first unlinked, then addresses change, then it is linked back probably into another bucket. But while changing the parms, the hash table is unlocked to readers and they can lookup the improper tunnel. Respective commits are b7285b79 (ipip: get rid of ipip_lock), 1507850b (gre: get rid of ipgre_lock), 3a43be3c (sit: get rid of ipip6_lock) and 94767632 (ip6tnl: get rid of ip6_tnl_lock). The quick fix is to wait for quiescent state to pass after unlinking, but if it is inappropriate I can invent something better, just let me know. Signed-off-by: Pavel Emelyanov Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit 17f52ed7358dc54e5534f9ad495e90306c68cfcf Author: Joe Perches Date: Mon Oct 25 19:44:27 2010 -0700 drivers/video/msm/mddi.c: Remove multiple KERN_ uses Signed-off-by: Joe Perches Signed-off-by: Daniel Walker commit 4e929d2bcf13eeaa9636448c55690b383a910391 Author: Russell King Date: Wed Oct 27 18:09:59 2010 +0100 ARM: fix memblock breakage Will says: | Commit e63075a3 removed the explicit MEMBLOCK_REAL_LIMIT #define | and introduced the requirement that arch code calls | memblock_set_current_limit to ensure that the __va macro can | be used on physical addresses returned from memblock_alloc. Unfortunately, ARM was missed out of this change. Fix this. Reported-by: Will Deacon Signed-off-by: Russell King commit 88d927e94805ebeec11ec7687df7789b954e334e Author: Tony Lindgren Date: Tue Oct 26 19:52:21 2010 +0100 ARM: 6465/1: Fix data abort accessing proc_info from __lookup_processor_type Commit 5085f3ff458521045f7e43da62b8c30ea7df2e82 added better support for CONFIG_HOTPLUG_CPU by keeping proc_info around. However, depending on the Kconfig options selected, this can make the booting fail mysteriously early on. Turns out a data abort can happen in __lookup_processor in ldmia r5 {r3, r4}. When it happens the address loaded to r5 is not aligned. Fix the problem by aligning proc_info. Reported-by: Anand Gadiyar Tested-by: Anand Gadiyar Signed-off-by: Tony Lindgren Signed-off-by: Russell King commit d463f3633da7307c4162c4b45e0a94bb7fab44d3 Author: Uwe Kleine-König Date: Tue Oct 19 09:43:59 2010 +0100 ARM: 6460/1: ixp2000: fix type of ixp2000_timer_interrupt This fixes a build warning existing since at least 2.6.30: arch/arm/mach-ixp2000/core.c:217: warning: initialization from incompatible pointer type Signed-off-by: Uwe Kleine-König Signed-off-by: Russell King commit 521e9549d58ebcb53042c7aad6bc60d5c2fc975f Author: Marcelo Roberto Jimenez Date: Mon Oct 18 22:30:21 2010 +0100 ARM: 6449/1: Fix for compiler warning of uninitialized variable. ARM: mach-sa1100: Fix for compiler warning of uninitialized variable. This is a fix for the compiler warning: 'new_ppcr' may be used uninitialized in this function. Signed-off-by: Marcelo Roberto Jimenez Signed-off-by: Russell King commit f444fce3c0aa199facc8c2be7635a4a82b84b71e Author: Linus Walleij Date: Mon Oct 18 09:03:03 2010 +0100 ARM: 6445/1: fixup TCM memory types After Santosh's fixup of the generic MT_MEMORY and MT_MEMORY_NONCACHED I add this fix to the TCM memory types. The main change is that the ITCM memory is L_PTE_WRITE and DOMAIN_KERNEL which works just fine. The changed to the DTCM is just cosmetic to fit with surrounding code. Cc: Santosh Shilimkar Cc: Rickard Andersson Signed-off-by: Linus Walleij Signed-off-by: Russell King commit 72f98e72551fad573c6cace8e8551ef094f482dd Author: Arnd Bergmann Date: Wed Oct 27 21:39:58 2010 +0200 locks: turn lock_flocks into a spinlock Nothing depends on lock_flocks using the BKL any more, so we can do the switch over to a private spinlock. Signed-off-by: Arnd Bergmann commit f7347ce4ee7c65415f84be915c018473e7076f31 Author: Linus Torvalds Date: Wed Oct 27 12:38:12 2010 -0400 fasync: re-organize fasync entry insertion to allow it under a spinlock You currently cannot use "fasync_helper()" in an atomic environment to insert a new fasync entry, because it will need to allocate the new "struct fasync_struct". Yet fcntl_setlease() wants to call this under lock_flocks(), which is in the process of being converted from the BKL to a spinlock. In order to fix this, this abstracts out the actual fasync list insertion and the fasync allocations into functions of their own, and teaches fs/locks.c to pre-allocate the fasync_struct entry. That way the actual list insertion can happen while holding the required spinlock. Signed-off-by: Linus Torvalds [bfields@redhat.com: rebase on top of my changes to Arnd's patch] Tested-by: J. Bruce Fields Signed-off-by: Arnd Bergmann commit 3d435ad7218ff58c846d7e52d87c2daf115f50cd Author: Jones Desougi Date: Wed Oct 27 19:38:34 2010 +0200 ath5k: Fix double free on hw attach error path If ath5k_hw_attach fails it will free sc->ah (local variable ah) before returning. However, when it reports failure the caller (ath5k_pci_probe) will also free sc->ah. Let the caller handle the deallocation, it does so on further errors as well. Signed-off-by: Jones Desougi Signed-off-by: John W. Linville commit dc9f48ce7c7d345be31208def51572a8250a4a03 Author: Jouni Malinen Date: Wed Oct 27 13:40:33 2010 +0300 mac80211: Fix scan_ies_len to include DS Params Commit 651b52254fc061f02d965524e71de4333a009a5a added DS Parameter Set information into Probe Request frames that are transmitted on 2.4 GHz band, but it failed to increment local->scan_ies_len to cover this new information. This variable needs to be updated to match the maximum IE data length so that the extra buffer need gets reduced from the driver limit. Signed-off-by: Jouni Malinen Signed-off-by: John W. Linville commit d654567dec75782d6fd9add4b7b9c50e0926d369 Author: Rajkumar Manoharan Date: Wed Oct 27 12:02:54 2010 +0530 ath9k_htc: Set proper firmware offset for Netgear WNDA3200 Netgear WNDA3200 device uses ar7010 firmware but it is failed to set correct firmware offset on firmware download which causes device initialization failure. Cc: stable@kernel.org Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit e609e2ea2cdb3448e7849703179cd792a28dcc55 Author: Felix Fietkau Date: Wed Oct 27 02:15:05 2010 +0200 ath9k: fix tx aggregation flush on AR9003 Completing aggregate frames can lead to new buffers being pushed into the tid queues due to software retransmission. When the tx queues are being drained, all pending aggregates must be completed before the tid queues get drained, otherwise buffers might be leaked. Signed-off-by: Felix Fietkau Cc: stable@kernel.org Signed-off-by: John W. Linville commit 5e848f789d60000d39d9a5f26ab02dbdd963f6cd Author: Luis R. Rodriguez Date: Wed Oct 20 16:07:06 2010 -0700 ath9k: lock reset and PCU start/stopping Apart from locking the start and stop PCU we need to ensure we also content starting and stopping the PCU between hardware resets. This is part of a series that will help resolve the bug: https://bugzilla.kernel.org/show_bug.cgi?id=14624 For more details about this issue refer to: http://marc.info/?l=linux-wireless&m=128629803703756&w=2 Cc: stable@kernel.org Cc: Ben Greear Cc: Kyungwan Nam Signed-off-by: Luis R. Rodriguez Tested-by: Ben Greear Signed-off-by: John W. Linville commit c5b1f0d92c36851aca09ac6c7c0c4f9690ac14f3 Author: Arnd Bergmann Date: Wed Oct 27 15:46:08 2010 +0200 locks/nfsd: allocate file lock outside of spinlock As suggested by Christoph Hellwig, this moves allocation of new file locks out of generic_setlease into the callers, nfs4_open_delegation and fcntl_setlease in order to allow GFP_KERNEL allocations when lock_flocks has become a spinlock. Signed-off-by: Arnd Bergmann Acked-by: J. Bruce Fields commit b79b33c4baf2532aac2c0924dce5a738099b888c Author: Luis R. Rodriguez Date: Wed Oct 20 16:07:05 2010 -0700 ath9k: rename rxflushlock to pcu_lock The real way to lock RX is to contend on the PCU and reset, this will be fixed in the next patch but for now just do the renames so that the next patch which changes the locking order is crystal clear. This is part of a series that will help resolve the bug: https://bugzilla.kernel.org/show_bug.cgi?id=14624 For more details about this issue refer to: http://marc.info/?l=linux-wireless&m=128629803703756&w=2 Cc: stable@kernel.org Cc: Ben Greear Cc: Kyungwan Nam Signed-off-by: Luis R. Rodriguez Tested-by: Ben Greear Signed-off-by: John W. Linville commit 7583c550c3e635dcc61ab127c36ecefd59fb8dc8 Author: Luis R. Rodriguez Date: Wed Oct 20 16:07:04 2010 -0700 ath9k: add locking for starting the PCU on RX There was some locking for starting some parts of RX but not for starting the PCU. Include this otherwise we can content against stopping the PCU. This can potentially lead to races against different buffers on the PCU which can lead to to the DMA RX engine writing to buffers which are already freed. This is part of a series that will help resolve the bug: https://bugzilla.kernel.org/show_bug.cgi?id=14624 For more details about this issue refer to: http://marc.info/?l=linux-wireless&m=128629803703756&w=2 Cc: stable@kernel.org Cc: Ben Greear Cc: Kyungwan Nam Signed-off-by: Luis R. Rodriguez Tested-by: Ben Greear Signed-off-by: John W. Linville commit 1e450285281bdf766272c181ecd43d4f2f0711ce Author: Luis R. Rodriguez Date: Wed Oct 20 16:07:03 2010 -0700 ath9k: add locking for stopping RX ath9k locks for starting RX but not for stopping RX. We could potentially run into a situation where tried to stop RX but immediately started RX. This allows for races on the the RX engine deciding what buffer we last left off on and could potentially cause ath9k to DMA into already free'd memory or in the worst case at a later time to already given memory to other drivers. Fix this by locking stopping RX. This is part of a series that will help resolve the bug: https://bugzilla.kernel.org/show_bug.cgi?id=14624 For more details about this issue refer to: http://marc.info/?l=linux-wireless&m=128629803703756&w=2 Cc: stable@kernel.org Cc: Ben Greear Cc: Kyungwan Nam Signed-off-by: Luis R. Rodriguez Tested-by: Ben Greear Signed-off-by: John W. Linville commit a282a1fa6b23bd21ba0b86e53ed2a316b001836f Author: J. Bruce Fields Date: Tue Oct 26 18:25:30 2010 -0400 lockd: fix nlmsvc_notify_blocked locking nlmsvc_notify_blocked walks the nlm_blocked list, which requires nlm_blocked_lock. Signed-off-by: J. Bruce Fields Signed-off-by: Arnd Bergmann commit 763641d81202834e9d64de2019d1edec12868f4f Author: Arnd Bergmann Date: Tue Oct 26 22:55:40 2010 +0200 lockd: push lock_flocks down lockd should use lock_flocks() instead of lock_kernel() to lock against posix locks accessing the i_flock list. This is a prerequisite to turning lock_flocks into a spinlock. Signed-off-by: Arnd Bergmann Acked-by: J. Bruce Fields commit 1933f0c09438ed8ccfee2281b814d9b26cef336c Author: Amarnath Revanna Date: Wed Oct 27 08:34:42 2010 +0000 caif-u5500: Build config for CAIF shared mem driver Signed-off-by: Sjur Braendeland Signed-off-by: David S. Miller commit e57731f4dda7a5d0c82ec3cc9ba91691b826b76e Author: Amarnath Revanna Date: Wed Oct 27 08:34:41 2010 +0000 caif-u5500: CAIF shared memory mailbox interface Signed-off-by: Sjur Braendeland Signed-off-by: David S. Miller commit dfae55d6a5873718fe0d996fc929519073a85ff7 Author: sjur.brandeland@stericsson.com Date: Wed Oct 27 08:34:40 2010 +0000 caif-u5500: CAIF shared memory transport protocol Signed-off-by: Sjur Braendeland Signed-off-by: David S. Miller commit a10c02036f82b1fa30d69a62f7c7d9a927e8adbc Author: Amarnath Revanna Date: Wed Oct 27 08:34:39 2010 +0000 caif-u5500: Adding shared memory include Signed-off-by: Sjur Braendeland Signed-off-by: David S. Miller commit 4101e976e0376a1820ae55adf8bca7dda5089a7d Author: Julia Lawall Date: Tue Oct 26 02:20:56 2010 +0000 drivers/isdn: delete double assignment Delete successive assignments to the same location. In the first case, the hscx array has two elements, so change the assignment to initialize the second one. In the second case, the two assignments are simply identical. Furthermore, neither is necessary, because the effect of the assignment is only visible in the next line, in the assignment in the if test. The patch inlines the right hand side value in the latter assignment and pulls that assignment out of the if test. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = ...; i = ...; // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller commit 13c3ab86f27967488b8182a173ebc899c9111bf0 Author: Julia Lawall Date: Tue Oct 26 00:25:36 2010 +0000 drivers/net/typhoon.c: delete double assignment Delete successive assignments to the same location. The current definition does not initialize the respRing structure, which has the same type as the cmdRing structure, so initialize that one instead. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = ...; i = ...; // Signed-off-by: Julia Lawall Acked-by: David Dillow Signed-off-by: David S. Miller commit d58c0e95622c0de271ae57c083ad25ff4eb032c8 Author: Julia Lawall Date: Tue Oct 26 00:25:34 2010 +0000 drivers/net/sb1000.c: delete double assignment The other code around these duplicated assignments initializes the 0 1 2 and 3 elements of an array, so change the initialization of the rx_session_id array to do the same. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = ...; i = ...; // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller commit 0184bbba1cb535dec2eaacacabe188964fbddd7c Author: Sony Chacko Date: Tue Oct 26 17:53:09 2010 +0000 qlcnic: define valid vlan id range 4095 vlan id is reserved and should not be use. Signed-off-by: Sony Chacko Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 90d190055589b35986c2ff3f56e2f47613b9a67f Author: Sony Chacko Date: Tue Oct 26 17:53:08 2010 +0000 qlcnic: reduce rx ring size If eswitch is enabled, rcv ring size can be reduce, as physical port is partition-ed. Signed-off-by: Sony Chacko Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit e5edb7b19fd207f78adfdf4d9d5e1dd74a7eabd3 Author: amit salecha Date: Tue Oct 26 17:53:07 2010 +0000 qlcnic: fix mac learning In failover bonding case, same mac address can be programmed on other slave function. Fw will delete old entry (original func) associated with that mac address. Need to reporgram mac address, if failover again happen to original function. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit e5ccd96110d5ac0f73b695ba606feb6d69472f26 Author: Eric Dumazet Date: Tue Oct 26 19:21:07 2010 +0000 ehea: fix use after free ehea_start_xmit() dereferences skb after its freeing in ehea_xmit3() to get vlan tags. Move the offending block before the potential ehea_xmit3() call. Signed-off-by: Eric Dumazet Signed-off-by: Breno Leitao Signed-off-by: David S. Miller commit b914c4ea929a4ba6fb97967800dc473c31552b98 Author: Eric Dumazet Date: Mon Oct 25 23:55:38 2010 +0000 inetpeer: __rcu annotations Adds __rcu annotations to inetpeer (struct inet_peer)->avl_left (struct inet_peer)->avl_right This is a tedious cleanup, but removes one smp_wmb() from link_to_pool() since we now use more self documenting rcu_assign_pointer(). Note the use of RCU_INIT_POINTER() instead of rcu_assign_pointer() in all cases we dont need a memory barrier. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 7a2b03c5175e9ddcc2a2d48ca86dea8a88b68383 Author: Eric Dumazet Date: Tue Oct 26 09:24:55 2010 +0000 fib_rules: __rcu annotates ctarget Adds __rcu annotation to (struct fib_rule)->ctarget Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit b33eab08445d86c3d0dec3111ce10df561328705 Author: Eric Dumazet Date: Mon Oct 25 21:01:26 2010 +0000 tunnels: add __rcu annotations Add __rcu annotations to : (struct ip_tunnel)->prl (struct ip_tunnel_prl_entry)->next (struct xfrm_tunnel)->next struct xfrm_tunnel *tunnel4_handlers struct xfrm_tunnel *tunnel64_handlers And use appropriate rcu primitives to reduce sparse warnings if CONFIG_SPARSE_RCU_POINTER=y Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit e0ad61ec867fdd262804afa7a68e11fc9930c2b9 Author: Eric Dumazet Date: Mon Oct 25 21:02:28 2010 +0000 net: add __rcu annotations to protocol Add __rcu annotations to : struct net_protocol *inet_protos struct net_protocol *inet6_protos And use appropriate casts to reduce sparse warnings if CONFIG_SPARSE_RCU_POINTER=y Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 1c31720a74e19bb57f301350a3b03210fa2ba9e3 Author: Eric Dumazet Date: Mon Oct 25 21:02:07 2010 +0000 ipv4: add __rcu annotations to routes.c Add __rcu annotations to : (struct dst_entry)->rt_next (struct rt_hash_bucket)->chain And use appropriate rcu primitives to reduce sparse warnings if CONFIG_SPARSE_RCU_POINTER=y Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit c1b60092cf307fef12f793abf7cf8167e26a6ccf Author: Ron Mercer Date: Wed Oct 27 04:58:12 2010 +0000 qlge: bugfix: Restoring the vlan setting. Signed-off-by: Jitendra Kalsaria Signed-off-by: Ron Mercer Signed-off-by: David S. Miller commit f203af7088cad0845ee128bb736bd372158c3e22 Author: Somnath Kotur Date: Mon Oct 25 23:01:03 2010 +0000 be2net: Schedule/Destroy worker thread in probe()/remove() rather than open()/close() When async mcc compls are rcvd on an i/f that is down (and so interrupts are disabled) they just lie unprocessed in the compl queue.The compl queue can eventually get filled up and cause the BE to lock up.The fix is to use be_worker to reap mcc compls when the i/f is down.be_worker is now launched in be_probe() and canceled in be_remove(). Signed-off-by: Somnath Kotur Signed-off-by: David S. Miller commit 853dc2e03ddd0c49885ed55c48755d2b1073122a Author: Ursula Braun Date: Sun Oct 24 23:06:43 2010 +0000 ipv6: fix refcnt problem related to POSTDAD state After running this bonding setup script modprobe bonding miimon=100 mode=0 max_bonds=1 ifconfig bond0 10.1.1.1/16 ifenslave bond0 eth1 ifenslave bond0 eth3 on s390 with qeth-driven slaves, modprobe -r fails with this message unregister_netdevice: waiting for bond0 to become free. Usage count = 1 due to twice detection of duplicate address. Problem is caused by a missing decrease of ifp->refcnt in addrconf_dad_failure. An extra call of in6_ifa_put(ifp) solves it. Problem has been introduced with commit f2344a131bccdbfc5338e17fa71a807dee7944fa. Signed-off-by: Ursula Braun Cc: David S. Miller Cc: Herbert Xu Acked-by: Herbert Xu Signed-off-by: David S. Miller commit 66c68bcc489fadd4f5e8839e966e3a366e50d1d5 Author: Ben Hutchings Date: Fri Oct 22 04:38:26 2010 +0000 net: NETIF_F_HW_CSUM does not imply FCoE CRC offload NETIF_F_HW_CSUM indicates the ability to update an TCP/IP-style 16-bit checksum with the checksum of an arbitrary part of the packet data, whereas the FCoE CRC is something entirely different. Signed-off-by: Ben Hutchings Cc: stable@kernel.org [2.6.32+] Signed-off-by: David S. Miller commit af1905dbec44445d75851996819ac2203670bd0f Author: Ben Hutchings Date: Fri Oct 22 04:12:19 2010 +0000 net: Fix some corner cases in dev_can_checksum() dev_can_checksum() incorrectly returns true in these cases: 1. The skb has both out-of-band and in-band VLAN tags and the device supports checksum offload for the encapsulated protocol but only with one layer of encapsulation. 2. The skb has a VLAN tag and the device supports generic checksumming but not in conjunction with VLAN encapsulation. Rearrange the VLAN tag checks to avoid these. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit cd0ea2419544cfc4ccbf8ee0087d0d9f109852d2 Author: Jarek Poplawski Date: Tue Oct 19 00:06:36 2010 +0000 gianfar: Fix crashes on RX path (Was Re: [Bugme-new] [Bug 19692] New: linux-2.6.36-rc5 crash with gianfar ethernet at full line rate traffic) The rx_recycle queue is global per device but can be accesed by many napi handlers at the same time, so it needs full skb_queue primitives (with locking). Otherwise, various crashes caused by broken skbs are possible. This patch resolves, at least partly, bugzilla bug 19692. (Because of some doubts that there could be still something around which is hard to reproduce my proposal is to leave this bug opened for a month.) Fixes commit: 0fd56bb5be6455d0d42241e65aed057244665e5e ("gianfar: Add support for skb recycling") Reported-by: emin ak Tested-by: emin ak Signed-off-by: Jarek Poplawski CC: Andy Fleming Signed-off-by: David S. Miller commit e28c31a96b1570f17731b18e8efabb7308d0c22c Author: Weidong Han Date: Wed Oct 27 17:55:04 2010 +0100 xen: register xen pci notifier Register a pci notifier to add (or remove) pci devices to Xen via hypercalls. Xen needs to know the pci devices present in the system to handle pci passthrough and even MSI remapping in the initial domain. Signed-off-by: Weidong Han Signed-off-by: Qing He Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Stefano Stabellini commit 7655e594945289b418af39f6669fea4666a7b520 Author: Mauro Carvalho Chehab Date: Wed Oct 27 14:55:34 2010 -0200 [media] af9015: Fix max I2C message size when used with tda18271 Changeset 1724c8fa7eb33d68898e060a08a8e6a88348b62f added an option to change the maximum I2C size to 8 bytes. However, it forgot to replace the previous usage at af9015 to use the newly defined macro value (TDA18271_16_BYTE_CHUNK_INIT). A latter changeset (e350d44fed8eb86a7192a579e3687fcd76a4645b) extended the possible values for .small_i2c field and, instead of using a random sequence of numbers, it used a number that makes more sense (e. g. the actual limit, in terms of bytes). However, as af9015 were using .small_i2c = 1, this become undefined, and the restriction of a max size of 16 was gone. While here, fix the reported msg size at tda18271-common.c. Reported-by: Jiri Slaby Tested-by: Jiri Slaby Signed-off-by: Mauro Carvalho Chehab commit 7c7fcf762e405eb040ee10d22d656a791f616122 Author: David Howells Date: Wed Oct 27 17:29:01 2010 +0100 MN10300: Save frame pointer in thread_info struct rather than global var Save the current exception frame pointer in the thread_info struct rather than in a global variable as the latter makes SMP tricky, especially when preemption is also enabled. This also replaces __frame with current_frame() and rearranges header file inclusions to make it all compile. Signed-off-by: David Howells Acked-by: Akira Takeuchi commit a5e03ca2fd57a5823b759981bff8d19b46ddad4d Author: Akira Takeuchi Date: Wed Oct 27 17:29:00 2010 +0100 MN10300: Change "Matsushita" to "Panasonic". Change externally visible "Matsushita" instances to "Panasonic" throughout the MN10300 arch code. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 72d36faffbe2f12233026118e169fc1a10c6cb8e Author: Akira Takeuchi Date: Wed Oct 27 17:29:00 2010 +0100 MN10300: Create a defconfig for the ASB2364 board Create a defconfig for the ASB2364 board. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 711beda5cfd91c148cab98c18bded3b8dea52111 Author: Akira Takeuchi Date: Wed Oct 27 17:28:59 2010 +0100 MN10300: Update the ASB2303 defconfig Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 62747cd27ee241ffa32d501e45980cdc441d4a09 Author: Akira Takeuchi Date: Wed Oct 27 17:28:58 2010 +0100 MN10300: ASB2364: Add support for SMSC911X and SMC911X Add support for SMSC911X and SMC911X for the ASB2364 unit. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells cc: steve.glendinning@smsc.com cc: netdev@vger.kernel.org commit 6044cf1d9426dfd5cdc1e7b9cf8eaed6418e1ff6 Author: David Howells Date: Wed Oct 27 17:28:58 2010 +0100 MN10300: ASB2364: Handle the IRQ multiplexer in the FPGA Handle the IRQ multiplexer in the FPGA by implementing a cascade interrupt driver for it. Signed-off-by: David Howells commit 730c1fad0ee22a170d2ee76a904709ee304931c0 Author: Mark Salter Date: Wed Oct 27 17:28:57 2010 +0100 MN10300: Generic time support Implement generic time support for MN10300. Signed-off-by: Mark Salter Signed-off-by: David Howells commit 2502c64eeb125c5d57e3e7dc38320b500d69e088 Author: Mark Salter Date: Wed Oct 27 17:28:56 2010 +0100 MN10300: Specify an ELF HWCAP flag for MN10300 Atomic Operations Unit support Use an ELF HWCAP flag to indicate to the process that the CPU provides LL/SC equivalent atomic operations unit support in addition to BSET/BCLR. Signed-off-by: Mark Salter Signed-off-by: David Howells commit 5a226c6f5c374a0d565dac609907085b944979b5 Author: Mark Salter Date: Wed Oct 27 17:28:56 2010 +0100 MN10300: Map userspace atomic op regs as a vmalloc page The AM34 processor has an atomic operation that's the equivalent of LL/SC on other architectures. However, rather than being done through a pair of instructions, it's driven by writing to a pair of memory-mapped CPU control registers. One set of these registers (AARU/ADRU/ASRU) is available for use by userspace, but for userspace to access them a PTE must be set up to cover the region. This is done by dedicating the first vmalloc region page to this purpose, setting the permissions on its PTE such that userspace can access the page. glibc is hardcoded to expect the registers to be there. The way atomic ops are done through these registers is straightforward: (1) Write the address of the word you wish to access into AARU. This causes the CPU to go and fetch that word and load it into ADRU. The status bits are also cleared in ASRU. (2) The current data value is read from the ADRU register and modified. (3) To alter the data in RAM, the revised data is written back to the ADRU register, which causes the CPU to attempt to write it back. (4) The ASRU.RW flag (ASRU read watch), ASRU.LW flag (bus lock watch), ASRU.IW (interrupt watch) and the ASRU.BW (bus error watch) flags then must be checked to confirm that the operation wasn't aborted. If any of the watches have been set to true, the operation was aborted. Signed-off-by: Mark Salter Signed-off-by: David Howells commit 368dd5acd154b09c043cc4392a74da01599b37d5 Author: Akira Takeuchi Date: Wed Oct 27 17:28:55 2010 +0100 MN10300: And Panasonic AM34 subarch and implement SMP Implement the Panasonic MN10300 AM34 CPU subarch and implement SMP support for MN10300. Also implement support for the MN2WS0060 processor and the ASB2364 evaluation board which are AM34 based. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 04157a6e7df99fd5ed64955233d6e00ab6613614 Author: Akira Takeuchi Date: Wed Oct 27 17:28:54 2010 +0100 MN10300: Delete idle_timestamp from irq_cpustat_t Delete idle_timestamp from irq_cpustat_t as it's an unread relic. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 37e4ec96365a4b1179b994861e824e3c2fce32a1 Author: Akira Takeuchi Date: Wed Oct 27 17:28:54 2010 +0100 MN10300: Make various interrupt priority settings configurable Make the settings of interrupt priorities used by various services configurable at run time. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit ab244c1a08a4e234cd3761a8aba3cb5a7bbe525a Author: Akira Takeuchi Date: Wed Oct 27 17:28:53 2010 +0100 MN10300: Optimise do_csum() Optimise do_csum() to gang up the loads so they're less likely to get interruptions between. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 4f81ca13532981192c83da95ed8c8cb285817d99 Author: Mark Salter Date: Wed Oct 27 17:28:52 2010 +0100 MN10300: Implement atomic ops using atomic ops unit Implement atomic ops using the atomic ops unit available in the AM34 CPU. This allows the equivalent of the LL/SC instructions to be found on other CPUs. Signed-off-by: Mark Salter Signed-off-by: David Howells commit 278d91c4609d55202c1e63d5fc5f01466cc7bbab Author: Akira Takeuchi Date: Wed Oct 27 17:28:52 2010 +0100 MN10300: Make the FPU operate in non-lazy mode under SMP Make the FPU operate in non-lazy mode under SMP so that when the process that is currently using the FPU migrates to a different CPU, we don't have to ping its previous CPU to flush the FPU context. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 965ea4bbb9ae926358273368144ba838c561bc38 Author: Akira Takeuchi Date: Wed Oct 27 17:28:51 2010 +0100 MN10300: SMP TLB flushing Implement global TLB flushing for MN10300. This will be used by the AM34 which is SMP capable. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit dccbf4853a31a3f774f38c402209d23388d99f52 Author: Akira Takeuchi Date: Wed Oct 27 17:28:50 2010 +0100 MN10300: Use the [ID]PTEL2 registers rather than [ID]PTEL for TLB control Use the [ID]PTEL2 registers rather than [ID]PTEL for TLB control as the bits are a more suitable layout. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit a9bc60ebfd5766ce5f6095d0fed3d9978990122f Author: Akira Takeuchi Date: Wed Oct 27 17:28:49 2010 +0100 MN10300: Make the use of PIDR to mark TLB entries controllable Make controllable the use of the PIDR register to mark TLB entries as belonging to particular processes. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 492e675116003b99dfcf0fa70084027e86bc0161 Author: David Howells Date: Wed Oct 27 17:28:49 2010 +0100 MN10300: Rename __flush_tlb*() to local_flush_tlb*() Rename __flush_tlb*() to local_flush_tlb*() as it's more appropriate, and ready to differentiate local from global TLB flushes when SMP is introduced. Whilst we're at it, get rid of __flush_tlb_global() and make local_flush_tlb_page() take an mm_struct pointer rather than VMA pointer. Signed-off-by: David Howells commit 8f19e3daf3fffee9e18a8812067a6a4b538ae6c8 Author: Akira Takeuchi Date: Wed Oct 27 17:28:48 2010 +0100 MN10300: AM34 erratum requires MMUCTR read and write on exception entry An AM34 erratum requires MMUCTR read and write on entry to certain exceptions, prior to EPSW.NMID being cleared to allow NMIs to happen. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 633171861a3120af011bb1ee8dd40069951dfeac Author: Akira Takeuchi Date: Wed Oct 27 17:28:47 2010 +0100 MN10300: Make the boot wrapper able to use writeback caching Make the boot wrapper able to use writeback caching, including flushing the cache before jumping to the main kernel. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 8be062892365b09f41d64cda7fa63d306e95e0c9 Author: Akira Takeuchi Date: Wed Oct 27 17:28:47 2010 +0100 MN10300: Cache: Implement SMP global cache flushing Implement SMP global cache flushing for MN10300. This will be used by the AM34 which is SMP capable. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit b478491f2628114b2eae76587f22ce3789b66012 Author: David Howells Date: Wed Oct 27 17:28:46 2010 +0100 MN10300: Allow some cacheflushes to be avoided if cache snooping is available The AM34 core is able to do cache snooping, and so can skip some of the cache flushing. Signed-off-by: David Howells commit 9731d23710736b96786d68c2e63148ff3f22e6eb Author: Akira Takeuchi Date: Wed Oct 27 17:28:45 2010 +0100 MN10300: AM34: Add cacheflushing by using the AM34 purge registers The AM34 CPU core provides an automated way of purging the cache rather than manually iterating over all the tags in the cache. Make it possible to use these. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 0bd3eb6ca772775da6125ea5b044d4257473d18d Author: Akira Takeuchi Date: Wed Oct 27 17:28:45 2010 +0100 MN10300: SMP: Differentiate local cache flushing Differentiate local cache flushing from global cache flushing so that they can be done differently on SMP systems. Rename the cache functions from: mn10300_[id]cache_*() to: mn10300_[id]_localcache_*() and on a UP system, assign the global labels to the local labels. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 9b287bf9924cedaf1accd7293db3627bef7c46e3 Author: Akira Takeuchi Date: Wed Oct 27 17:28:44 2010 +0100 MN10300: Cacheflush functions should take unsigned long addresses The functions that perform cache flushing should take addresses of unsigned long type, not unsigned int. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 518d4bb7464dd3c04aeb23874dc360b54058c01e Author: David Howells Date: Wed Oct 27 17:28:43 2010 +0100 MN10300: AM34: The current cacheflush routines operate by controlling tag regs The current cache flush and invalidate routines operate by controlling the cache tag registers. Rename the files and add config items to select them. This makes it easier to support the use of other cache flush methods instead, such as the use of AM34's area purge registers, if available. Signed-off-by: David Howells commit 93c10d3d68c469c1addacbc541da5518f1de021d Author: David Howells Date: Wed Oct 27 17:28:43 2010 +0100 MN10300: Reorder asm/cacheflush.h to put primitives first Reorder asm/cacheflush.h to put arch primitives first, before the main functions so that the main functions can be inline asm rather than #defines when non-trivial. Signed-off-by: David Howells commit 344af921e6f23ea82487d76918d2643fcc88c311 Author: David Howells Date: Wed Oct 27 17:28:42 2010 +0100 MN10300: Provide a MN10300_CACHE_ENABLED config option Provide a MN10300_CACHE_ENABLED config option as inverted logic of MN10300_CACHE_DISABLED to make things simpler. Signed-off-by: David Howells commit 0bc42d7fcb0acaab4202db97ff2de475424bf9b4 Author: David Howells Date: Wed Oct 27 17:28:41 2010 +0100 MN10300: Cache: Split cache bits out of arch Kconfig Split the cache bits out of arch/mn10300/Kconfig as they're quite complex. Signed-off-by: David Howells commit 86c0f935c1eee1d778b43895f80c9d27a896dfd9 Author: Akira Takeuchi Date: Wed Oct 27 17:28:41 2010 +0100 MN10300: Remove monitor/JTAG functions Remove the monitor trap function and the set_jtag_stub function as they're not really necessary. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 8fbbf7c76a0c89cede075ab7e231970a42e55456 Author: Akira Takeuchi Date: Wed Oct 27 17:28:40 2010 +0100 MN10300: Add CPU register bits for AM34 Add CPU register declarations for the AM34 subarch. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 06019be31a1b5812eec5bb3e1dbdeced04950e8e Author: Akira Takeuchi Date: Wed Oct 27 17:28:39 2010 +0100 MN10300: Don't hard code the cacheline size in register defs Don't hard code the cacheline size in the cache control register definitions. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit a116956423e1cdc4398110bdc66d66ae4c5ba90f Author: Akira Takeuchi Date: Wed Oct 27 17:28:39 2010 +0100 MN10300: Move DMA engine control reg defs to MN103E010 processor directory Move the DMA engine control register definitions to the MN103E010 processor directory so that the MN2WS0050 processor can have its own. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 22d4225f6176c44d3fd3565df748651de24497e0 Author: Akira Takeuchi Date: Wed Oct 27 17:28:38 2010 +0100 MN10300: Differentiate AM33_2 and AM33_3 in config Differentiate AM33_2 and AM33_3 CPU cores in configuration. The MN103E010 processor contains an AM33_2 core. Whilst we're at it, prepare for AM34-based stuff by declaring AM34_2 too. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 9f200d3fed9ca34e94ee03df049f7dcd71538acf Author: Akira Takeuchi Date: Wed Oct 27 17:28:37 2010 +0100 MN10300: Provide the functions to fully disable maskable interrupts The local_irq_disable() function and co. merely raise the interrupt mask on the MN10300 arch to exclude normal interrupts. This still lets other, higher priority maskable interrupts through, such as are used to service gdbstub's serial port and the MN10300 on-chip serial port virtual FIFOs. Provide functions to allow the maskable interrupts to be fully disabled, which will exclude those interrupts. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 9f59f7d23c912f10ff8767b354a4c5f672a99d76 Author: Akira Takeuchi Date: Wed Oct 27 17:28:37 2010 +0100 MN10300: Add reads[bwl]() and writes[bwl]() Add reads[bwl]() and writes[bwl]() for MN10300. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 3195d0b564c4aa3f8ff13b536e3c09a9ffed8f12 Author: Akira Takeuchi Date: Wed Oct 27 17:28:36 2010 +0100 MN10300: Don't cast away the volatile in test_bit() Don't cast away the volatile in test_bit()'s parameter when we change its type from const volatile void * so that we can dereference it. Signed-off-by: Akira Takeuchi Signed-off-by: Kiyoshi Owada Signed-off-by: David Howells commit 3a5f65df5a0fcbaa35e5417c0420d691fee4ac56 Author: David Howells Date: Wed Oct 27 17:28:36 2010 +0100 Typedef SMP call function pointer Typedef the pointer to the function to be called by smp_call_function() and friends: typedef void (*smp_call_func_t)(void *info); as it is used in a fair number of places. Signed-off-by: David Howells cc: linux-arch@vger.kernel.org commit 3b950de9c94b4b9fde4f1340358ab52ce0f34be0 Author: David Howells Date: Wed Oct 27 17:28:35 2010 +0100 MN10300: Prevent cnt32_to_63() from being preempted in sched_clock() Prevent cnt32_to_63() from being preempted in sched_clock() because it may read its internal counter, get preempted, get delayed for more than the half period of the 'TSC' and then write the internal counter, thus corrupting it. Whilst some callers of sched_clock() have interrupts disabled or hold spinlocks, not all do, and so preemption must be held here. Note that sched_clock() is called from lockdep, but that shouldn't be a problem because although preempt_disable() calls into lockdep, lockdep has a recursion counter to deal with this. Signed-off-by: David Howells commit dcd42ed3ea829aa99cf00d34c61e082ce575b193 Author: David Howells Date: Wed Oct 27 17:28:34 2010 +0100 mn10300: Use pci_claim_resource Instead of open-coding pci_find_parent_resource and request_resource, just call pci_claim_resource. Signed-off-by: Matthew Wilcox Signed-off-by: David Howells commit e4acfcac0f3e3b575bb1819052b91b579988c59b Author: Justin Chen Date: Wed Oct 27 17:28:34 2010 +0100 bitops: Change the bitmap index from int to unsigned long [mn10300] Change the index to unsigned long in all bitops for [mn10300] Signed-off-by: Justin Chen Reviewed-by: Bjorn Helgaas Signed-off-by: David Howells commit 292aa141277b142148d15bf28104f8890616e291 Author: Stoyan Gaydarov Date: Wed Oct 27 17:28:33 2010 +0100 MN10300: BUG to BUG_ON changes Signed-off-by: Stoyan Gaydarov Signed-off-by: David Howells commit 95a2f6f72d37762ba1b3d6c8031f66a6467a63df Author: David Howells Date: Wed Oct 27 17:28:32 2010 +0100 Partially revert patch that encloses asm-offset.h numbers in brackets Partially revert patch: commit 3234282f33b29d349bcada40204fc7c8fda7fe72 Author: Jan Beulich Date: Tue Oct 19 14:52:26 2010 +0100 x86, asm: Fix CFI macro invocations to deal with shortcomings in gas This breaks MN10300 arch as this changes many instances of instructions similar to the following: MOV number,D0 which represents an immediate value load into: MOV (number),D0 which the assembler then interprets as a load from absolute address. arch/mn10300/kernel/entry.S:64: Error: Invalid opcode/operands arch/mn10300/kernel/entry.S:65: Error: junk at end of line, first unrecognized character is `0' arch/mn10300/kernel/entry.S:74: Error: Invalid opcode/operands arch/mn10300/kernel/entry.S:74: Error: junk at end of line, first unrecognized character is `1' arch/mn10300/kernel/entry.S:75: Error: Invalid opcode/operands arch/mn10300/kernel/entry.S:76: Error: junk at end of line, first unrecognized character is `0' cc: Jan Beulich cc: Alexander van Heukelum cc: H. Peter Anvin cc: Ingo Molnar Signed-off-by: David Howells commit 47f19a0814e80e1d4e5c17d61b70fca85ea09162 Author: Ingo Molnar Date: Wed Oct 27 17:41:17 2010 +0200 percpu: Remove the multi-page alignment facility [DECLARE|DEFINE]_PER_CPU_MULTIPAGE_ALIGNED never really worked because the head percpu section was only page aligned. Now that the last user is gone (32-bit IRQ stacks), remove the generic percpu facility. Cc: Brian Gerst Acked-by: Tejun Heo Acked-by: Linus Torvalds LKML-Reference: <1288158182-1753-1-git-send-email-brgerst@gmail.com> Signed-off-by: Ingo Molnar commit 22d4cd4c4dce6d7b7d9a7e396aa4f87fe7a649b1 Author: Brian Gerst Date: Wed Oct 27 01:43:02 2010 -0400 x86-32: Allocate irq stacks seperate from percpu area The percpu allocator cannot handle alignments larger than one page. Allocate the irq stacks seperately, and only keep the pointers as percpu data. Signed-off-by: Brian Gerst Acked-by: Linus Torvalds Cc: tj@kernel.org LKML-Reference: <1288158182-1753-1-git-send-email-brgerst@gmail.com> Signed-off-by: Ingo Molnar commit 8654b1c2de1465120974899fc1c8aa00e91d4b7e Author: Thomas Gleixner Date: Sat Oct 23 11:28:42 2010 +0200 x86: Move olpc to platform Signed-off-by: Thomas Gleixner Cc: Andres Salomon commit 329b84e42e3ee348b114fd0bfe4b2421e6139257 Author: Thomas Gleixner Date: Sat Oct 23 11:23:37 2010 +0200 x86: Move uv to platform Signed-off-by: Thomas Gleixner Cc: Mike Travis commit 9694d4afc1ebe1e46cacfb78b107cd8f9fb550ba Author: Thomas Gleixner Date: Sat Oct 16 10:38:13 2010 +0200 x86: Move mrst to platform Signed-off-by: Thomas Gleixner Cc: Jacob Pan Cc: Alan Cox commit 3b3da9d25ae9d8cac99302ad66834499cf324d08 Author: Thomas Gleixner Date: Sat Oct 16 10:35:51 2010 +0200 x86: Move scx200 to platform Signed-off-by: Thomas Gleixner commit c4e72ad6bbbbbf1f826df3a5d3e3c4af2f4d48c9 Author: Thomas Gleixner Date: Sat Oct 16 10:33:09 2010 +0200 x86: Move visws to platform Signed-off-by: Thomas Gleixner commit b17ed48040d9e8b6ae35bc492015bf0fe1c8bae4 Author: Thomas Gleixner Date: Sat Oct 16 10:19:54 2010 +0200 x86: Move efi to platform Signed-off-by: Thomas Gleixner Cc: Huang Ying commit 937f961a6539b0ac5ebf31472b90810bc1f02200 Author: Thomas Gleixner Date: Sat Oct 16 10:16:59 2010 +0200 x86: Move sfi to platform Signed-off-by: Thomas Gleixner Cc: Len Brown Cc: Alan Cox commit 3adbb7f4a32dd34993ebe3829c69694f0c5fc85b Author: Thomas Gleixner Date: Sat Oct 16 10:11:22 2010 +0200 x86: Add platform directory x86 has finally arrived in the embedded nightmare and will rapidly grow SoC platform support in various flavours. So we need a place for the platform support files. That also allows us to clean up the dumpground which arch/x86/kernel has become over time. Signed-off-by: Thomas Gleixner commit 85b8fe8cc47b0dc1068475ba95f29ddff10a8efc Author: Christoph Hellwig Date: Wed Oct 27 13:45:50 2010 +0200 hfsplus: free space correcly for files unlinked while open hfsplus_delete_inode only truncates away all block allocations if i_nlink is zero. Make sure we properly drop the unlink count even when doing the rename hack for open but unlinked files. Signed-off-by: Christoph Hellwig commit 87acf5ad87b275660e2508e6935b570a20b6a073 Author: Dzianis Kahanovich Date: Wed Oct 27 20:33:05 2010 -0600 NULL-terminate all pci_device_id tables NULL-terminating pci_device_id in pch_dma.c and scx200_acb.c for appying MODULE_DEVICE_TABLE (to publish modalias-es). Signed-off-by: Dzianis Kahanovich Signed-off-by: Rusty Russell commit abbce906d05ec37289cd0c3b4e35b2db26eab19b Author: Michał Mirosław Date: Mon Sep 20 01:58:08 2010 +0200 (trivial) Fix compiler warning in kernel/modules.c Building with CONFIG_KALLSYMS=n gives following warning: /mnt/src/linux-git/kernel/module.c: In function ‘post_relocation’: /mnt/src/linux-git/kernel/module.c:2534:2: warning: passing argument 2 of ‘add_kallsyms’ discards qualifiers from pointer target type /mnt/src/linux-git/kernel/module.c:2038:13: note: expected ‘struct load_info *’ but argument is of type ‘const struct load_info *’ Signed-off-by: Michał Mirosław Signed-off-by: Rusty Russell commit 7c842470f3ec7457585c277b9c5f535e94796f59 Author: Paul Mundt Date: Wed Oct 13 07:43:50 2010 +0900 sh: oprofile: Make sure the backtrace op is available for timer-fallback. Presently with hardware counter support disabled the backtrace op never gets initialized. This is a regression over the previous behaviour, so simply add it back in. Signed-off-by: Paul Mundt commit d1ba71f7645696020864fe3cea3049befbe50408 Author: Paul Mundt Date: Wed Oct 27 16:58:22 2010 +0900 sh64: oprofile: Fix up kernel stack pointer size mismatch. For the backtrace code its assumed that the stack pointer is 32-bits, which is not the case with the sh64 registers. Use the shared kernel_stack_pointer() helper to get at the actual register, which already takes care of the necessary typecasting. Signed-off-by: Paul Mundt commit 2e4f17d230d84579fef07836fb5f69bf1a0a47ad Author: Paul Mundt Date: Wed Oct 13 03:46:25 2010 +0900 sh: oprofile: Fix up and extend op_name_from_perf_id(). op_name_from_perf_id() currently returns a local variable, which isn't terribly productive. As we only handle a single PMU case for now, simply allocate and free the string from the arch init/exit context and have op_name_from_perf_id() hand back the cached string. This also takes UTS_MACHINE in to account, given that we build for multiple architectures. Signed-off-by: Paul Mundt commit 667b279baa529a1b5bd120d4ce3df643a5749263 Author: Paul Mundt Date: Wed Oct 27 16:43:08 2010 +0900 sh: lockless get_user_pages_fast() Implement get_user_pages_fast without locking in the fastpath on sh. Signed-off-by: Paul Mundt commit a16382ce1cbcc3ab12274e20f92c09c439629162 Author: Paul Mundt Date: Wed Oct 27 16:40:19 2010 +0900 sh64: _PAGE_SPECIAL support. Now that sh64 has grown extended page flag support we finally have a free bit for _PAGE_SPECIAL. Wire it up. Signed-off-by: Paul Mundt commit 89e1e66d6be8a520cdcd26043cda2cc870a34015 Author: Clemens Ladisch Date: Tue Oct 26 17:14:41 2010 +0200 ALSA: usb-audio: automatically detect feedback format There are two USB Audio Class specifications (v1 and v2), but neither of them clearly defines the feedback format for high-speed UAC v1 devices. Add to this whatever the Creative and M-Audio firmware writers have been smoking, and it becomes impossible to predict the exact feedback format used by a particular device. Therefore, automatically detect the feedback format by looking at the magnitude of the first received feedback value. Also, this allows us to get rid of some special cases for E-Mu devices. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit 48ccb2ceec6fb1d46d1bc92dadc602d4341a0149 Author: Paul Mundt Date: Wed Oct 27 15:53:50 2010 +0900 sound: sh: ctrl_in/outX to __raw_read/writeX conversion. The ctrl_xxx routines are deprecated, switch over to the __raw_xxx versions. Signed-off-by: Paul Mundt commit 1e5cefd01af079d8efadfde78c045be15e6c1b23 Author: Paul Mundt Date: Wed Oct 27 15:44:19 2010 +0900 sh: disable deprecated genirq support. Now that all of the controllers have been fixed up, we can finally select GENERIC_HARDIRQS_NO_DEPRECATED. Signed-off-by: Paul Mundt commit faadfb04d92387bd7823d81e09d9b976332f9e44 Author: Paul Mundt Date: Wed Oct 27 15:43:01 2010 +0900 sh: update show_interrupts() for irq_data chip lookup. Presently the irq chip is found through the irq_desc, but as this is going away convert over to an irq_data lookup instead. Signed-off-by: Paul Mundt commit 26599a94dcadbed528a3e32a4f482a9766332f5b Author: Paul Mundt Date: Wed Oct 27 15:42:10 2010 +0900 sh: intc: irq_data conversion. Signed-off-by: Paul Mundt commit 815db1477a2ce44d248a4ff853a2bef3616c7478 Author: Paul Mundt Date: Wed Oct 27 15:38:59 2010 +0900 sh64: irq_data conversion. Signed-off-by: Paul Mundt commit 31b37c73c56b4129ff22436af97b77719a4db852 Author: Paul Mundt Date: Wed Oct 27 15:34:51 2010 +0900 sh64: update for IRQ flag handling naming changes. irq_32.c was updated for the new API, while irq_64.c was overlooked. This syncs them up and gets things building again. Signed-off-by: Paul Mundt commit 071a1e33bac5c4ff8667d074be58365bd164b350 Author: Paul Mundt Date: Wed Oct 27 15:30:32 2010 +0900 rtc: rtc-rs5c313: ctrl_in/outX to __raw_read/writeX conversion. The ctrl_xxx routines are deprecated, switch over to the __raw_xxx versions. Signed-off-by: Paul Mundt commit 15ff2c67ab5c45c7382374bc43a5ad218a36045f Author: Paul Mundt Date: Wed Oct 27 15:30:07 2010 +0900 sh: mach-se: irq_data conversion. Signed-off-by: Paul Mundt commit e28abafbab4205bda07087ea29cde39a14ba82c9 Author: Paul Mundt Date: Wed Oct 27 15:25:42 2010 +0900 input: hp680_ts_input: ctrl_in/outX to __raw_read/writeX conversion. The ctrl_xxx routines are deprecated, switch over to the __raw_xxx versions. Signed-off-by: Paul Mundt commit e25804a0327dad954f7d43803178fdef2fd35b4e Merge: 5c16d2c 00204c3 Author: Ingo Molnar Date: Wed Oct 27 08:25:15 2010 +0200 Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/urgent commit 0af2840892ead5e07c7b08fef61881ef45b8b9c2 Author: Paul Mundt Date: Wed Oct 27 15:24:49 2010 +0900 input: jornada680_kbd: ctrl_in/outX to __raw_read/writeX conversion. The ctrl_xxx routines are deprecated, switch over to the __raw_xxx versions. Signed-off-by: Paul Mundt commit 19add7e11656dc0ae8d0187e1ed02deb3b077815 Author: Paul Mundt Date: Wed Oct 27 15:18:15 2010 +0900 sh: hd64461: irq_data conversion. Signed-off-by: Paul Mundt commit 79c981283ba344f7f51b6aa82e1b8e71bad123b4 Author: Paul Mundt Date: Wed Oct 27 15:11:01 2010 +0900 sh: mach-x3proto: irq_data conversion. Signed-off-by: Paul Mundt commit 5f0103847325dc22fda8749626b56f8b71b98440 Author: Paul Mundt Date: Wed Oct 27 15:09:31 2010 +0900 sh: mach-systemh: irq_data conversion. Signed-off-by: Paul Mundt commit 949bf16648ff657839893f88ce296a3c4d89cd1a Author: Paul Mundt Date: Wed Oct 27 14:54:50 2010 +0900 sh: imask IRQs irq_data conversion. Signed-off-by: Paul Mundt commit d6138832ed8d86c5b8da63f40e8c6fffeeaf4129 Author: Paul Mundt Date: Wed Oct 27 14:54:10 2010 +0900 sh: mach-microdev: irq_data conversion. Signed-off-by: Paul Mundt commit 0d040df9984c8fcb6a777a8f6d5dc513eaefd2de Author: Arnaud Lacombe Date: Tue Oct 26 16:04:36 2010 -0400 ASoC: sound/wm9090: add missing __devexit marker This fixes the following warning: sound/soc/codecs/wm9090.c:668:12: warning: 'wm9090_i2c_remove' defined but not used Signed-off-by: Arnaud Lacombe Signed-off-by: Takashi Iwai commit f3607aef0d3370ae9edbfecfc7182233397cb0aa Author: Arnaud Lacombe Date: Tue Oct 26 16:04:35 2010 -0400 ASoC: sound/max98088: add missing __devexit marker This fixes the following warning: sound/soc/codecs/max98088.c:2054:12: warning: 'max98088_i2c_remove' defined but not used Signed-off-by: Arnaud Lacombe Signed-off-by: Takashi Iwai commit 836f5394061830a9d1ece4aafc437c098774522f Author: Arnaud Lacombe Date: Tue Oct 26 16:04:34 2010 -0400 ASoC: sound/ad73311: add missing __devexit marker This fixes the following warning: sound/soc/codecs/ad73311.c:50:12: warning: 'ad73311_remove' defined but not used Signed-off-by: Arnaud Lacombe Signed-off-by: Takashi Iwai commit 2803a1c681a808a7893539fa0b85558b2afc471a Author: Paul Mundt Date: Wed Oct 27 14:53:01 2010 +0900 sh: mach-landisk: irq_data conversion. Signed-off-by: Paul Mundt commit 8df3a615da1a9fee6c3e0dc561e56a499072213f Author: Paul Mundt Date: Wed Oct 27 14:41:39 2010 +0900 sh: IPR IRQs irq_data conversion. Signed-off-by: Paul Mundt commit 0d338071f2fff7551f9afe22016d9b34b45900b5 Author: Paul Mundt Date: Wed Oct 27 14:36:28 2010 +0900 sh: mach-dreamcast: irq_data conversion. Signed-off-by: Paul Mundt commit c053784454550cf750399caa65482b31ffbe3c57 Author: Paul Mundt Date: Wed Oct 27 14:34:41 2010 +0900 sh: maple: ctrl_in/outX to __raw_read/writeX conversion. The ctrl_xxx routines are deprecated, switch over to the __raw_xxx versions. Signed-off-by: Paul Mundt commit 9eb79bb3f54ce1843d579ef42ded61e0c607e850 Author: Paul Mundt Date: Wed Oct 27 14:33:39 2010 +0900 cdrom: gdrom: ctrl_in/outX to __raw_read/writeX conversion. The ctrl_xxx routines are deprecated, switch over to the __raw_xxx versions. Signed-off-by: Paul Mundt commit 9cc1cf380e15f7314f8defb849b8e926d5755f8b Author: Paul Mundt Date: Wed Oct 27 14:24:34 2010 +0900 sh: Fix the sparsemem disabled build. The introduction of MAX_PHYSMEM_BITS in to the initial cpuinfo struct causes a build error when sparsemem is disabled and asm/sparsemem.h is not brought in by other means. Include it explicitly. Signed-off-by: Paul Mundt commit 12ba8d1e9262ce81a695795410bd9ee5c9407ba1 Author: Al Viro Date: Wed Oct 27 04:19:36 2010 +0100 fix braino in fs: do not assign default i_ino in new_inode usbfs_get_inode() is something completely different... Bogosity introduced by commit 85fe4025c616 ("fs: do not assign default i_ino in new_inode"). Signed-off-by: Al Viro Cc: Christoph Hellwig Signed-off-by: Linus Torvalds commit f7c5445a9deecffea8a4fffc0163bf582411ac8a Author: Shirish Pargaonkar Date: Tue Oct 26 18:10:24 2010 -0500 NTLM auth and sign - minor error corrections and cleanup Minor cleanup - Fix spelling mistake, make meaningful (goto) label In function setup_ntlmv2_rsp(), do not return 0 and leak memory, let the tiblob get freed. For function find_domain_name(), pass already available nls table pointer instead of loading and unloading the table again in this function. For ntlmv2, the case sensitive password length is the length of the response, so subtract session key length (16 bytes) from the .len. Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French commit c48c43e422c1404fd72c57d1d21a6f6d01e18900 Merge: 520045d 135cba0 Author: Linus Torvalds Date: Tue Oct 26 18:57:59 2010 -0700 Merge branch 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 * 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (476 commits) vmwgfx: Implement a proper GMR eviction mechanism drm/radeon/kms: fix r6xx/7xx 1D tiling CS checker v2 drm/radeon/kms: properly compute group_size on 6xx/7xx drm/radeon/kms: fix 2D tile height alignment in the r600 CS checker drm/radeon/kms/evergreen: set the clear state to the blit state drm/radeon/kms: don't poll dac load detect. gpu: Add Intel GMA500(Poulsbo) Stub Driver drm/radeon/kms: MC vram map needs to be >= pci aperture size drm/radeon/kms: implement display watermark support for evergreen drm/radeon/kms/evergreen: add some additional safe regs v2 drm/radeon/r600: fix tiling issues in CS checker. drm/i915: Move gpu_write_list to per-ring drm/i915: Invalidate the to-ring, flush the old-ring when updating domains drm/i915/ringbuffer: Write the value passed in to the tail register agp/intel: Restore valid PTE bit for Sandybridge after bdd3072 drm/i915: Fix flushing regression from 9af90d19f drm/i915/sdvo: Remove unused encoding member i915: enable AVI infoframe for intel_hdmi.c [v4] drm/i915: Fix current fb blocking for page flip drm/i915: IS_IRONLAKE is synonymous with gen == 5 ... Fix up conflicts in - drivers/gpu/drm/i915/{i915_gem.c, i915/intel_overlay.c}: due to the new simplified stack-based kmap_atomic() interface - drivers/gpu/drm/vmwgfx/vmwgfx_drv.c: added .llseek entry due to BKL removal cleanups. commit 520045db940a381d2bee1c1b2179f7921b40fb10 Merge: 426e1f5 9387377 45263cb Author: Linus Torvalds Date: Tue Oct 26 18:20:19 2010 -0700 Merge branches 'upstream/xenfs' and 'upstream/core' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen * 'upstream/xenfs' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen: xen/privcmd: make privcmd visible in domU xen/privcmd: move remap_domain_mfn_range() to core xen code and export. privcmd: MMAPBATCH: Fix error handling/reporting xenbus: export xen_store_interface for xenfs xen/privcmd: make sure vma is ours before doing anything to it xen/privcmd: print SIGBUS faults xen/xenfs: set_page_dirty is supposed to return true if it dirties xen/privcmd: create address space to allow writable mmaps xen: add privcmd driver xen: add variable hypercall caller xen: add xen_set_domain_pte() xen: add /proc/xen/xsd_{kva,port} to xenfs * 'upstream/core' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen: (29 commits) xen: include xen/xen.h for definition of xen_initial_domain() xen: use host E820 map for dom0 xen: correctly rebuild mfn list list after migration. xen: improvements to VIRQ_DEBUG output xen: set up IRQ before binding virq to evtchn xen: ensure that all event channels start off bound to VCPU 0 xen/hvc: only notify if we actually sent something xen: don't add extra_pages for RAM after mem_end xen: add support for PAT xen: make sure xen_max_p2m_pfn is up to date xen: limit extra memory to a certain ratio of base xen: add extra pages for E820 RAM regions, even if beyond mem_end xen: make sure xen_extra_mem_start is beyond all non-RAM e820 xen: implement "extra" memory to reserve space for pages not present at boot xen: Use host-provided E820 map xen: don't map missing memory xen: defer building p2m mfn structures until kernel is mapped xen: add return value to set_phys_to_machine() xen: convert p2m to a 3 level tree xen: make install_p2mtop_page() static ... Fix up trivial conflict in arch/x86/xen/mmu.c, and fix the use of 'reserve_early()' - in the new memblock world order it is now 'memblock_x86_reserve_range()' instead. Pointed out by Jeremy. commit 135cba0dc399fdd47bd3ae305c1db75fcd77243f Author: Thomas Hellstrom Date: Tue Oct 26 21:21:47 2010 +0200 vmwgfx: Implement a proper GMR eviction mechanism Use Ben's new range manager hooks to implement a manager for GMRs that manages ids rather than ranges. This means we can use the standard TTM code for binding, unbinding and eviction. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit 426e1f5cec4821945642230218876b0e89aafab1 Merge: 9e5fca2 63997e9 Author: Linus Torvalds Date: Tue Oct 26 17:58:44 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (52 commits) split invalidate_inodes() fs: skip I_FREEING inodes in writeback_sb_inodes fs: fold invalidate_list into invalidate_inodes fs: do not drop inode_lock in dispose_list fs: inode split IO and LRU lists fs: switch bdev inode bdi's correctly fs: fix buffer invalidation in invalidate_list fsnotify: use dget_parent smbfs: use dget_parent exportfs: use dget_parent fs: use RCU read side protection in d_validate fs: clean up dentry lru modification fs: split __shrink_dcache_sb fs: improve DCACHE_REFERENCED usage fs: use percpu counter for nr_dentry and nr_dentry_unused fs: simplify __d_free fs: take dcache_lock inside __d_path fs: do not assign default i_ino in new_inode fs: introduce a per-cpu last_ino allocator new helper: ihold() ... commit 9e5fca251f44832cb996961048ea977f80faf6ea Merge: 56083ab 116e953 Author: Linus Torvalds Date: Tue Oct 26 17:54:22 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (63 commits) IB/qib: clean up properly if pci_set_consistent_dma_mask() fails IB/qib: Allow driver to load if PCIe AER fails IB/qib: Fix uninitialized pointer if CONFIG_PCI_MSI not set IB/qib: Fix extra log level in qib_early_err() RDMA/cxgb4: Remove unnecessary KERN_ use RDMA/cxgb3: Remove unnecessary KERN_ use IB/core: Add link layer type information to sysfs IB/mlx4: Add VLAN support for IBoE IB/core: Add VLAN support for IBoE IB/mlx4: Add support for IBoE mlx4_en: Change multicast promiscuous mode to support IBoE mlx4_core: Update data structures and constants for IBoE mlx4_core: Allow protocol drivers to find corresponding interfaces IB/uverbs: Return link layer type to userspace for query port operation IB/srp: Sync buffer before posting send IB/srp: Use list_first_entry() IB/srp: Reduce number of BUSY conditions IB/srp: Eliminate two forward declarations IB/mlx4: Signal node desc changes to SM by using FW to generate trap 144 IB: Replace EXTRA_CFLAGS with ccflags-y ... commit 8f895da57da80b307efa2f94b5d4caf801e959a5 Author: Alex Deucher Date: Tue Oct 26 20:22:42 2010 -0400 drm/radeon/kms: fix r6xx/7xx 1D tiling CS checker v2 broken by: drm/radeon/r600: fix tiling issues in CS checker. v2: only apply it to 1D tiling case. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit 56083ab17e0075e538270823c374b59cc97e73b9 Author: Randy Dunlap Date: Tue Oct 26 14:19:08 2010 -0700 docbook: add idr/ida to kernel-api docbook Add idr/ida to kernel-api docbook. Fix typos and kernel-doc notation. Signed-off-by: Randy Dunlap Acked-by: Tejun Heo Cc: Naohiro Aota Cc: Jiri Kosina Signed-off-by: Linus Torvalds commit ee2f154a598e96df2ebb01648a7699373bc085c7 Author: Randy Dunlap Date: Tue Oct 26 14:17:25 2010 -0700 docbook: add more wait/wake/completion to device-drivers docbook Add more wait, wake, and completion interfaces to the device-drivers docbook. Fix kernel-doc notation in the added files. Signed-off-by: Randy Dunlap Signed-off-by: Linus Torvalds commit 003bb8ab7cecbfd1830bbccf9c6a9e2047d27c5c Author: Randy Dunlap Date: Tue Oct 26 14:20:40 2010 -0700 documentation: update sysrq.txt magic sysrq keys Update Documentation/sysrq.txt magic sysrq keys: - 'g' is for kgdb (not arch-specific); - add 2 new uses for 'v', remove the Voyager info; - add 'y' info (SPARC-64 specific); Signed-off-by: Randy Dunlap Cc: Jason Wessel Cc: "David S. Miller" Cc: "James E.J. Bottomley" Cc: David Airlie Acked-by: Alexander Shishkin Signed-off-by: Linus Torvalds commit d2d8f66bb991757e360728da77920e18bd678767 Merge: 474829e d63be5f Author: Linus Torvalds Date: Tue Oct 26 17:31:05 2010 -0700 Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6: PM / Runtime: fix recursive locking warning of lockdep from rpm_resume() commit 474829e875ab93512dbe0a713f564d3cd3874bc9 Merge: 27afe58 7e31842 Author: Linus Torvalds Date: Tue Oct 26 17:28:37 2010 -0700 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (53 commits) ACPI: install ACPI table handler before any dynamic tables being loaded ACPI / PM: Blacklist another machine that needs acpi_sleep=nonvs ACPI: Page based coalescing of I/O remappings optimization ACPI: Convert simple locking to RCU based locking ACPI: Pre-map 'system event' related register blocks ACPI: Add interfaces for ioremapping/iounmapping ACPI registers ACPI: Maintain a list of ACPI memory mapped I/O remappings ACPI: Fix ioremap size for MMIO reads and writes ACPI / Battery: Return -ENODEV for unknown values in get_property() ACPI / PM: Fix reference counting of power resources Subject: [PATCH] ACPICA: Fix Scope() op in module level code ACPI battery: support percentage battery remaining capacity ACPI: Make Embedded Controller command timeout delay configurable ACPI dock: move some functions to .init.text ACPI: thermal: remove unused limit code ACPI: static sleep_states[] and acpi_gts_bfs_check ACPI: remove dead code ACPI: delete dedicated MAINTAINERS entries for ACPI EC and BATTERY drivers ACPI: Only processor needs CPU_IDLE ACPICA: Update version to 20101013 ... commit 27afe58fe60fbf71a25f1f592472c0e7b72b3502 Merge: 7eb901e c25d299 Author: Linus Torvalds Date: Tue Oct 26 17:28:07 2010 -0700 Merge branch 'idle-release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-idle-2.6 * 'idle-release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-idle-2.6: intel_idle: do not use the LAPIC timer for ATOM C2 intel_idle: add initial Sandy Bridge support acpi_idle: delete bogus data from cpuidle_state.power_usage intel_idle: delete bogus data from cpuidle_state.power_usage intel_idle: simplify test for leave_mm() commit 7eb901e79129d457b72b3876a948a28c34557285 Merge: e404f91 82acf2a Author: Linus Torvalds Date: Tue Oct 26 17:27:14 2010 -0700 Merge branch 'sfi-release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-sfi-2.6 * 'sfi-release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-sfi-2.6: SFI: remove the v0.7 related definitions from sfi.h commit e404f91ed2180dfecbab15dd4d39c543353385fb Merge: 18a043f e18105c Author: Linus Torvalds Date: Tue Oct 26 17:25:38 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile * git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile: arch/tile: convert a BUG_ON to BUILD_BUG_ON arch/tile: make ptrace() work properly for TILE-Gx COMPAT mode arch/tile: support new info op generated by compiler arch/tile: minor whitespace/naming changes for string support files arch/tile: enable single-step support for TILE-Gx arch/tile: parameterize system PLs to support KVM port arch/tile: add Tilera's header as an open-source header arch/tile: Bomb C99 comments to C89 comments in tile's arch/tile: prevent corrupt top frame from causing backtracer runaway arch/tile: various top-level Makefile cleanups arch/tile: change lower bound on syscall error return to -4095 arch/tile: properly export __mb_incoherent for modules arch/tile: provide a definition of MAP_STACK kmemleak: add TILE to the list of supported architectures. char: hvc: check for error case arch/tile: Add a warning if we try to allocate too much vmalloc memory. arch/tile: update some comments to clarify register usage. arch/tile: use better "punctuation" for VMSPLIT_3_5G and friends arch/tile: Use tile: replace some BUG_ON checks with BUILD_BUG_ON checks commit 18a043f9413277523cf5011e594caa1747db4948 Merge: 31453a9 eb1c86b Author: Linus Torvalds Date: Tue Oct 26 17:24:28 2010 -0700 Merge branch 'nfs-for-2.6.37' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 * 'nfs-for-2.6.37' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6: NFS: rename nfs.upcall -> nfs.idmap NFS: Fix a compile issue in nfs_root commit 31453a9764f7e2a72a6e2c502ace586e2663a68c Merge: f9ba537 93ed0e2 Author: Linus Torvalds Date: Tue Oct 26 17:15:20 2010 -0700 Merge branch 'akpm-incoming-1' * akpm-incoming-1: (176 commits) scripts/checkpatch.pl: add check for declaration of pci_device_id scripts/checkpatch.pl: add warnings for static char that could be static const char checkpatch: version 0.31 checkpatch: statement/block context analyser should look at sanitised lines checkpatch: handle EXPORT_SYMBOL for DEVICE_ATTR and similar checkpatch: clean up structure definition macro handline checkpatch: update copyright dates checkpatch: Add additional attribute #defines checkpatch: check for incorrect permissions checkpatch: ensure kconfig help checks only apply when we are adding help checkpatch: simplify and consolidate "missing space after" checks checkpatch: add check for space after struct, union, and enum checkpatch: returning errno typically should be negative checkpatch: handle casts better fixing false categorisation of : as binary checkpatch: ensure we do not collapse bracketed sections into constants checkpatch: suggest cleanpatch and cleanfile when appropriate checkpatch: types may sit on a line on their own checkpatch: fix regressions in "fix handling of leading spaces" div64_u64(): improve precision on 32bit platforms lib/parser: cleanup match_number() ... commit 93ed0e2d07b25aff4db1d61bfbcd1e82074c0ad5 Author: Joe Perches Date: Tue Oct 26 14:23:21 2010 -0700 scripts/checkpatch.pl: add check for declaration of pci_device_id Signed-off-by: Joe Perches Cc: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cb710eca6820493add0ddd3d7e8e3ee53f2b6e57 Author: Joe Perches Date: Tue Oct 26 14:23:20 2010 -0700 scripts/checkpatch.pl: add warnings for static char that could be static const char Add warnings for possible missing const uses of static char foo[] = "bar" that could be static const char foo[] = "bar" and static const char *foo[] = {"bar", "baz"} that could be static const char * const foo[] = {"bar", "baz"} Signed-off-by: Joe Perches Cc: Mike Frysinger Cc: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 267ad8f42644c2fa4ff6c2e7596d2b02c7397c85 Author: Andy Whitcroft Date: Tue Oct 26 14:23:19 2010 -0700 checkpatch: version 0.31 Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 01464f30a97c5c30bf9633309b27cce055cef8fd Author: Andy Whitcroft Date: Tue Oct 26 14:23:19 2010 -0700 checkpatch: statement/block context analyser should look at sanitised lines When tracking context to find a block or statement we need to use the sanitised lines, else perentheses '(' & ')' and braces '{' & '}' can throw the scanner out. Also fix up a couple of error outputs which include those sanitised lines incorrectly. Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3cbf62df3a8ce61cb1aa20b7dae964058988bfdd Author: Andy Whitcroft Date: Tue Oct 26 14:23:18 2010 -0700 checkpatch: handle EXPORT_SYMBOL for DEVICE_ATTR and similar Handly definitions similar to below. The definition macro spits out a symbol with a prefix. Add matching of any identifier prefix: DEVICE_ATTR(link_power_management_policy, S_IRUGO | S_IWUSR, ata_scsi_lpm_show, ata_scsi_lpm_put); EXPORT_SYMBOL_GPL(dev_attr_link_power_management_policy); Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5eaa20b984eb316533b4a098d8de3912e434df6a Author: Andy Whitcroft Date: Tue Oct 26 14:23:18 2010 -0700 checkpatch: clean up structure definition macro handline Handle definitions such as the following correctly, it is not a complex statement: #define PREALLOC(NAME, START, END, FLAGS) { \ .name = (NAME), \ .start = (START), \ .end = (END), \ .flags = (FLAGS) \ }, Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 015830be9779aeae7de7060b07a3157a8e41bcb4 Author: Andy Whitcroft Date: Tue Oct 26 14:23:17 2010 -0700 checkpatch: update copyright dates Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 03f1df7da5696ddfa6e167b37e0c0ce5aad3de79 Author: Joe Perches Date: Tue Oct 26 14:23:16 2010 -0700 checkpatch: Add additional attribute #defines On Wed, 2010-08-11 at 12:35 -0400, Dave Jones wrote: > I just got this from a patch I merged.. > > ERROR: need consistent spacing around '*' (ctx:WxV) > #121: FILE: arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c:113: > +static struct pcc_cpu __percpu *pcc_cpu_info; > ^ > which doesn't seem right. Perhaps these need to be added to checkpatch. [apw@canonical.com: added tests] Signed-off-by: Joe Perches Signed-off-by: Andy Whitcroft Cc: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3bf9a009fccea422bc355414a3bdf5f35fff9f36 Author: Rabin Vincent Date: Tue Oct 26 14:23:16 2010 -0700 checkpatch: check for incorrect permissions Throw an error when a source file has been given execute permissions using the mode change line present in git diffs. Also alow the filename matching to use the "diff" line in addition to the "+++" line, since the mode change lines appear before any "+++" lines. [apw@canonical.com: simplified filename logic slightly, added tests] Cc: Andy Whitcroft Acked-by: Linus Walleij Signed-off-by: Rabin Vincent Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9fe287d79b0af983050d24e7916cf3d1f019f553 Author: Andy Whitcroft Date: Tue Oct 26 14:23:15 2010 -0700 checkpatch: ensure kconfig help checks only apply when we are adding help When checking the length of the help we need to be sure we are seeing the whole story before erroring. Firstly we only want to check when adding the help in the first place. Second we need to be sure that we are seeing the end of the entry, nominally when there is no context below or that context shows the start of the next entry. Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0c73b4eb7a825a5aff16d8a9701f6c28056de058 Author: Andy Whitcroft Date: Tue Oct 26 14:23:15 2010 -0700 checkpatch: simplify and consolidate "missing space after" checks Commonise the code for missing spaces after struct, union, and enum such that they share the same code. Ensure we cover all the common cases in each case. Check against the sanitised line to ensure we do not report on comments and strings. Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8cf6de7145943caa38c56c61cd83b17687afd900 Author: Andy Whitcroft Date: Tue Oct 26 14:23:14 2010 -0700 checkpatch: add check for space after struct, union, and enum Add spacing checks for struct, union, and enum definitions. Check the spacing after type and before the equals (=) and open brace ({). Based on a patch by Joe Perches. Cc: Joe Perches Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 53a3c4487a05b8f26ef72fe434a750a3402c998f Author: Andy Whitcroft Date: Tue Oct 26 14:23:14 2010 -0700 checkpatch: returning errno typically should be negative Add a (strict mode only) test to check for non-negative returns of what appear to be errno values as the majority case these should indeed be negative. Suggested-by: Andrew Morton Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 9446ef569c288e683225fec8337a0b2b81e75cc5 Author: Andy Whitcroft Date: Tue Oct 26 14:23:13 2010 -0700 checkpatch: handle casts better fixing false categorisation of : as binary The following incantation is triggering categorisation of its colon (:) as a binary form, which it is not: return foo ? (s8)bar : baz; Handle casts differently from types in the categoriser, allowing us to better track (s8)bar as a value and not a declaration. Reported-by: Jean Delvare Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fb2d2c1b5825503d30fb6f2dc328dbe4a47d9794 Author: Andy Whitcroft Date: Tue Oct 26 14:23:12 2010 -0700 checkpatch: ensure we do not collapse bracketed sections into constants When determining if a return () sequence is a function style bracketing we simplify the expression one bracket at a time replacing each with a constant. However this can trigger a false merge with expressions as below: return (foo)0; Prevent this false merging. Reported-by: Hitoshi Mitake Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d2c0a23514d8ac4ed10a8e742467cfb72ca3bed8 Author: Andy Whitcroft Date: Tue Oct 26 14:23:12 2010 -0700 checkpatch: suggest cleanpatch and cleanfile when appropriate When we hit types of whitespace which may be fixed by scripts/cleanpatch and scripts/cleanfile suggest their use in our report. Suggested-by: Bartlomiej Zolnierkiewicz Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e91b6e263ed6735c766cb14bbe63b9c7bd774526 Author: Andy Whitcroft Date: Tue Oct 26 14:23:11 2010 -0700 checkpatch: types may sit on a line on their own When the following form is used we have a type which fully fills a line. This means that a type may end at the end of line as well as at the following identifier. int ** foo; Reported-by: Daniel Walker Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6b4c5bebcebb0a48d29947e9aa749650751a7696 Author: Andy Whitcroft Date: Tue Oct 26 14:23:11 2010 -0700 checkpatch: fix regressions in "fix handling of leading spaces" The patch "checkpatch: fix handling of leading spaces" added checks for leading spaces on lines, but this introduces regressions. Firstly it does not correctly detect when we are in a comment. Secondly it does not allow for preprocessor command spacing. Finally it does not allow for label indentation which is required to be less than one tab. Fix these up: Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 658716d19f8f155c67d4677ba68034b8e492dfbe Author: Brian Behlendorf Date: Tue Oct 26 14:23:10 2010 -0700 div64_u64(): improve precision on 32bit platforms The current implementation of div64_u64 for 32bit systems returns an approximately correct result when the divisor exceeds 32bits. Since doing 64bit division using 32bit hardware is a long since solved problem we just use one of the existing proven methods. Additionally, add a div64_s64 function to correctly handle doing signed 64bit division. Addresses https://bugzilla.redhat.com/show_bug.cgi?id=616105 Signed-off-by: Brian Behlendorf Signed-off-by: Oleg Nesterov Cc: Ben Woodard Cc: Jeremy Fitzhardinge Cc: Mark Grondona Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5d051decfc27cdf33fbbd2bfca958d0d2c903569 Author: Namhyung Kim Date: Tue Oct 26 14:23:09 2010 -0700 lib/parser: cleanup match_number() Use new variable 'len' to make code more readable. Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ea00c30b5b31baa91be29bee966204eccc15e9d3 Author: Christoph Lameter Date: Tue Oct 26 14:23:09 2010 -0700 percpu_counter: use this_cpu_ptr() instead of per_cpu_ptr() this_cpu_ptr() avoids an array lookup and can use the percpu offset of the local cpu directly. Signed-off-by: Christoph Lameter Cc: Eric Dumazet Cc: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 041b78f232bb87b2de8ca3fed50384bc7dc9c2de Author: Artem Bityutskiy Date: Tue Oct 26 14:23:08 2010 -0700 lib/list_sort: test: check element addresses Improve 'lib_sort()' test and check that: o 'cmp()' is called only for elements which were present in the original list, i.e., the 'a' and 'b' parameters are valid o the resulted (sorted) list consists onlly of the original elements o intdoruce "poison" fields to make sure data around 'struc list_head' field are not corrupted. Signed-off-by: Artem Bityutskiy Cc: Don Mullis Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 014afa943d44f0df8e65bc4bd071c67772277d93 Author: Artem Bityutskiy Date: Tue Oct 26 14:23:08 2010 -0700 lib/list_sort: test: unify test messages This patch unifies 'list_sort_test()' messages a bit and makes sure all of them start with the "list_sort_test:" prefix to make it obvious for users where the messages come from. Signed-off-by: Artem Bityutskiy Cc: Don Mullis Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f3dc0e384248ea6fda0987f909007fa9ab5fb51a Author: Artem Bityutskiy Date: Tue Oct 26 14:23:07 2010 -0700 lib/list_sort: test: improve errors handling The 'lib_sort()' test does not free memory if it fails, and it makes the kernel panic if it cannot allocate memory. This patch fixes the problem. This patch also changes several small things: o use 'list_add()' helper instead of adding manually o introduce temporary 'el1' variable to avoid ugly and unreadalbe "if" statement o make 'head' to be stack variable instead of 'kmalloc()'ed, which simplifies code a bit Overall, this patch is of clean-up type. Signed-off-by: Artem Bityutskiy Cc: Don Mullis Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit eeee9ebb54b76a33a13d2c926ffb018a4aea410f Author: Artem Bityutskiy Date: Tue Oct 26 14:23:06 2010 -0700 lib/list_sort: test: use generic random32 Instead of using own pseudo-random generator, use generic linux 'random32()' function. Presumably, this should improve test coverage. At the same time, do the following changes: o Use shorter macro name for test list length o Do not use strange 'l_h' name for 'struct list_head' element, use 'list', because it is traditional name and thus, makes the code more obvious and readable. Signed-off-by: Artem Bityutskiy Cc: Don Mullis Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bb2ab10fa693110cffa7087ffe2749d6e9a27d5f Author: Artem Bityutskiy Date: Tue Oct 26 14:23:06 2010 -0700 lib/list_sort: test: use more reasonable printk levels I do not see any reason to use KERN_WARN for normal messages and KERN_EMERG for error messages in the lib_sort testing routine. Let's use more reasonable KERN_NORM and KERN_ERR levels. Signed-off-by: Artem Bityutskiy Cc: Don Mullis Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6d411e6c01608cefb7b9ea6712110538a1432f9f Author: Artem Bityutskiy Date: Tue Oct 26 14:23:05 2010 -0700 lib/Kconfig.debug: add list_sort debugging switch While hunting a non-existing bug in 'list_sort()', I've improved the 'list_sort_test()' function which tests the 'list_sort()' library call. Although at the end I found a bug in my code, but not in 'list_sort()', I think my clean-ups and improvements are worth merging because they make the test function better. This patch: Make the self-tests selectable via Kconfig rather than by manual enabling of DEBUG_LIST_SORT. Signed-off-by: Artem Bityutskiy Cc: Don Mullis Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e2852ae825dba5ebc159788720baec1a28a57125 Author: Tejun Heo Date: Tue Oct 26 14:23:05 2010 -0700 percpu_counter: add debugobj support All percpu counters are linked to a global list on initialization and removed from it on destruction. The list is walked during CPU up/down. If a percpu counter is freed without being properly destroyed, the system will oops only on the next CPU up/down making it pretty nasty to track down. This patch adds debugobj support for percpu counters so that such problems can be found easily. As percpu counters don't make sense on stack and can't be statically initialized, debugobj support is pretty simple. It's initialized and activated on counter initialization, and deactivatd and destroyed on counter destruction. With this patch applied, the bug fixed by commit 602586a83b719df0fbd94196a1359ed35aeb2df3 (shmem: put_super must percpu_counter_destroy) triggers the following warning on tmpfs unmount and the system won't oops on the next cpu up/down operation. ------------[ cut here ]------------ WARNING: at lib/debugobjects.c:259 debug_print_object+0x5c/0x70() Hardware name: Bochs ODEBUG: free active (active state 0) object type: percpu_counter Modules linked in: Pid: 3999, comm: umount Not tainted 2.6.36-rc2-work+ #5 Call Trace: [] warn_slowpath_common+0x7f/0xc0 [] warn_slowpath_fmt+0x46/0x50 [] debug_print_object+0x5c/0x70 [] debug_check_no_obj_freed+0x125/0x210 [] kfree+0xb3/0x2f0 [] shmem_put_super+0x1d/0x30 [] generic_shutdown_super+0x56/0xe0 [] kill_anon_super+0x16/0x60 [] kill_litter_super+0x27/0x30 [] deactivate_locked_super+0x45/0x60 [] deactivate_super+0x4a/0x70 [] mntput_no_expire+0x86/0xe0 [] sys_umount+0x6f/0x360 [] system_call_fastpath+0x16/0x1b ---[ end trace cce2a341ba3611a7 ]--- Signed-off-by: Tejun Heo Acked-by: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 066a9be6c0124edc9527088231f03c6236be375d Author: Naohiro Aota Date: Tue Oct 26 14:23:03 2010 -0700 idr: fix idr_pre_get() locking description Despite the idr_pre_get() kernel-doc, there are some cases where you can call idr_pre_get() from within locked regions. Add a description for such cases. See also: http://lkml.org/lkml/2010/9/16/462 [akpm@linux-foundation.org: cleanups, grammatical fixes] Signed-off-by: Naohiro Aota Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 66f1991bc2357436498ac990302b6f5bf403d7ef Author: Andy Shevchenko Date: Tue Oct 26 14:23:03 2010 -0700 lib/bitmap.c: use hex_to_bin() Signed-off-by: Andy Shevchenko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1fa7e5473cba543b02a396ced9e407f614bb117c Author: Joe Perches Date: Tue Oct 26 14:23:02 2010 -0700 MAINTAINERS: use "T: git" and whitespace trivia Add missing git as a prefix for git repositories in the few places it wasn't already used. Convert a space delimiter to a tab. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit be8c268a221cbe25025f30e697968cfcd8e78c94 Author: Joe Perches Date: Tue Oct 26 14:23:02 2010 -0700 MAINTAINERS: remove USB ZC0301 DRIVER Removed by commit 0d58cef664e01f ("V4L/DVB: Remove obsolete zc0301 v4l driver"). Signed-off-by: Joe Perches Acked-by: Amerigo Wang Cc: Mauro Carvalho Chehab Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cefea792137c163529c12090c93b693d29166c60 Author: Joe Perches Date: Tue Oct 26 14:23:01 2010 -0700 MAINTAINERS: remove USB OV511 DRIVER Removed by commit 7373ab3669aec93 ("V4L/DVB: Remove obsolete ov511 driver"). Signed-off-by: Joe Perches Acked-by: Amerigo Wang Cc: Mauro Carvalho Chehab Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f996231b808f889df77561c86c01cee3c45e254e Author: Joe Perches Date: Tue Oct 26 14:23:01 2010 -0700 MAINTAINERS: merge s3c6400 and 6410 to 64xx Removed by commit 431107ea5b680a24a ("ARM: S3C64XX: Merge mach-s3c6400 and mach-s3c6410"). Signed-off-by: Joe Perches Acked-by: Ben Dooks Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 85743532a8ffa826edba3d1ca7d8f0dbf3f2a67d Author: Joe Perches Date: Tue Oct 26 14:23:00 2010 -0700 MAINTAINERS: merge s3c-244x sections Removed by commit 70556b143ae4c ("ARM: S3C24XX: Remove old mach-s3c2442"). Signed-off-by: Joe Perches Acked-by: Ben Dooks Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 838553c5a151f0d76c5558b85d6a4131c835a20c Author: Joe Perches Date: Tue Oct 26 14:22:59 2010 -0700 MAINTAINERS: merge imote2 and stargate Removed by commit dcd925f95194da4 ("pxa: merge stargate2 and imote2 board files"). Signed-off-by: Joe Perches Acked-by: Jonathan Cameron Acked-by: Eric Miao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ec15408206e6b87a11dc1560b2bd758d2ad7ccb1 Author: Joe Perches Date: Tue Oct 26 14:22:59 2010 -0700 MAINTAINERS: fix Colibri PXA270 file pattern The original commit 403d29713e0a ("pxa/income: Add Income SBC support") started with the wrong file pattern. Signed-off-by: Joe Perches Acked-by: Marek Vasut Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fae99206769b6bbf8a20ab883726b164945771d7 Author: Joe Perches Date: Tue Oct 26 14:22:58 2010 -0700 scripts/get_maintainer.pl: don't deduplicate unnamed addresses ie: mailing lists Fix a defect with the first mailing list address being used for each subsequent mailing list. Updated to 0.26-beta6. Signed-off-by: Joe Perches Cc: Florian Mickler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b9e2331dd1e0e04f7f2a6f8aa0c05bac2a7f0d7b Author: Joe Perches Date: Tue Oct 26 14:22:58 2010 -0700 scripts/get_maintainer.pl: use mailmap in name deduplication and other updates Use Florian Mickler's mailmap routine to reduce name duplication. o Add subroutine deduplicate_email to centralize code o Add hashes for deduplicate_(name|address)_hash o Remove now unused @interactive_to o Whitespace neatening o Add command line --help text o Add --mailmap command line option control o Interactive changes: - Add toggles for maintainer, git and list selections - Default selection is all - Add mailmap control Update to 0.26-beta5 Signed-off-by: Joe Perches Cc: Florian Mickler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 47abc7225761faf28be52b3ac4dc26ffeac7b750 Author: Joe Perches Date: Tue Oct 26 14:22:57 2010 -0700 scripts/get_maintainer.pl: correct indentation in a few places And a miscellaneous conversion of You to you in a help message Signed-off-by: Joe Perches Cc: Florian Mickler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7fa8ff2e0c0f326cdaaa4ae7d00f5d021e43ffa2 Author: Florian Mickler Date: Tue Oct 26 14:22:56 2010 -0700 scripts/get_maintainer.pl: fix mailmap handling Implement it, like it is described in git-shortlog. Signed-off-by: Florian Mickler Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6ef1c52e122b675acc88a8b016d6477f67988b91 Author: Joe Perches Date: Tue Oct 26 14:22:56 2010 -0700 scripts/get_maintainer.pl: use case insensitive name de-duplication Case insensitive name and email address matching can help reduce duplication when authors don't always use the exact same signature. o Add a --interactive per-file exact_match hash so git history can be checked on per-file only when there is no direct maintainer o Make @interactive_to list global so save_commits_by_ can check email names & addresses against this list for duplication o Don't allow --interactive and --sections o rename subroutine get_maintainer to get_maintainers o Added help text option to --interactive menu prompt Update version to 0.26-beta4 Signed-off-by: Joe Perches Cc: Florian Mickler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 683c6f8fcbcb6de8d07545ba70aff49e50d8bcf2 Author: Joe Perches Date: Tue Oct 26 14:22:55 2010 -0700 scripts/get_maintainer.pl: improve --interactive UI o Added searching by git-blame as well as git-history o Added different selection toggles o Added ability to list commits by author or by sign-off-type o Use custom git and hg formats to make searching for subject/author a bit easier. o Move inlined section matching and searching git/hg history to new get_maintainer subroutine o Added subroutines save_commits_by_author and save_commits_by_signer o Removed subroutines vcs_get_shortlog and vcs_email_shortlog o Rename camelcase signaturePattern to signature_pattern Update to 0.26 beta3 Signed-off-by: Joe Perches Cc: Florian Mickler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dace8e300d6820c2842de750d12b498a743bcfe5 Author: Florian Mickler Date: Tue Oct 26 14:22:54 2010 -0700 scripts/get_maintainer.pl: add interactive mode This is a first version of an interactive mode for scripts/get_maintainer.pl. It allows the user to interact with the script. Each cc candidate can be selected and deselected and a shortlog of authored commits can be displayed for each candidate. The menu is displayed via STDERR, the end result is outputted to STDOUT. This unusual mechanism allows using get_maintainer.pl in interactive mode via git send-email --cc-cmd. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bcde44ed7d2a58733efdf04b5392c027d1348bac Author: Joe Perches Date: Tue Oct 26 14:22:53 2010 -0700 scripts/get_maintainer.pl: use .get_maintainer.conf from . then $HOME then scripts On Mon, 2010-09-13 at 00:01 -0400, Valdis.Kletnieks@vt.edu wrote: > Any chance of getting that to be ~/.get_maintainer.conf rather than > ./.get_maintainer.conf? I've just gotten bit like the 3rd or 4th time by > "oh but you didn't create that file in *this* tree" > (I usually have a linus git tree, a linux-next tree, and 3-4 -mm trees) Sure. Add a search path for the .conf file. 3 paths are added: . customized per-tree configurations $HOME user global configuration when per-tree configs don't exist ./scripts lk defaults to override script Signed-off-by: Joe Perches Cc: Valdis Kletnieks Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e3e9d11479737692f797bad1762f71468d577a93 Author: Joe Perches Date: Tue Oct 26 14:22:53 2010 -0700 scripts/get_maintainer.pl: add default --git-fallback, remove default --git Adding commit signers when there is a listed MAINTAINER for a file can make the output list longer than necessary. Change the --git default from on to off. Add a new --git-fallback option (default on) used to add commit signers only when there is no MAINTAINER for a file. git history is used when --git-fallback is enabled and the pattern directory depth is not the same as the file directory depth. For instance: X86 ARCHITECTURE (32-BIT AND 64-BIT) M: Thomas Gleixner M: Ingo Molnar M: "H. Peter Anvin" M: x86@kernel.org T: git git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86.git S: Maintained F: Documentation/x86/ F: arch/x86/ If using "./scripts/get_maintainer -f arch/x86/lib/atomic64_32.c", the pattern for "arch/x86/" does not match the directory depth of "arch/x86/lib" so the MAINTAINERS entries and git history is used to produce: $ ./scripts/get_maintainer.pl -f --rolestats arch/x86/lib/atomic64_32.c Thomas Gleixner (maintainer:X86 ARCHITECTURE...) Ingo Molnar (maintainer:X86 ARCHITECTURE...) "H. Peter Anvin" (maintainer:X86 ARCHITECTURE...,commit_signer:1/1=100%) x86@kernel.org (maintainer:X86 ARCHITECTURE...) Luca Barbieri (commit_signer:1/1=100%) linux-kernel@vger.kernel.org (open list) Luca Barbieri is added because he signed the only commit to arch/x86/lib/atomic64_32.c during the last year and he meets the other default qualifications. --git-min-percent (default:10) --git-min-signatures (default:1) If current users of ./scripts/get_maintainers.pl have scripts that use --nogit that expect git history to be excluded, those scripts should be updated to include --nogit-fallback or a .get_maintainer.conf file should be created with --nogit-fallback. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit fab9ed12fcd0c182a72509382c3da55c527963e3 Author: Joe Perches Date: Tue Oct 26 14:22:52 2010 -0700 scripts/get_maintainer.pl: don't search MAINTAINERS for keywords or emails Keyword matching uses K: patterns from MAINTAINERS, so if looking for the MAINTAINERS maintainer, don't search MAINTAINERS for pattern matches. MAINTAINERS also has rather a lot of email addresses and is easily searched using grep "^M:", so skip it. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6ffd9485f5c9c0b2d2aea9f904dff08e7088010a Author: Joe Perches Date: Tue Oct 26 14:22:51 2010 -0700 scripts/get_maintainer.pl: use correct indentation Fix an overly indented block. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 63ab52db5ba7f362266cfed03109387ca73e5eb5 Author: Joe Perches Date: Tue Oct 26 14:22:51 2010 -0700 scripts/get_maintainer.pl: Add --git-blame --rolestats "Authored lines" information When options --git-blame and --rolestats are specified, add the maintainers with the qualifying --git-min-percent amount of lines authored of the complete file. Does not add more authors than specified by --git-max-maintainers. For anyone using hg, this option works but is _very_ slow. It's orders of magnitude slower than git slow. The get_maintainer.pl version was incremented to 0.25. This can be used with or without --git. For instance: $ ./scripts/get_maintainer.pl --git-blame --nogit --rolestats -f lib/bitmap.c Paul Jackson (authored lines:406/613=66%,commits:7/20=35%) Akinobu Mita (authored lines:87/613=14%,commits:3/20=15%) Reinette Chatre (authored lines:42/613=7%) Andrew Morton (commits:16/20=80%) Paul Mundt (commits:3/20=15%) Randy Dunlap (commits:2/20=10%) $ ./scripts/get_maintainer.pl --git-blame --git --rolestats -f lib/bitmap.c Andrew Morton (commit_signer:4/5=80%,commits:16/20=80%) Akinobu Mita (commit_signer:2/5=40%,authored lines:87/613=14%,commits:3/20=15%) Jack Steiner (commit_signer:1/5=20%) Ben Hutchings (commit_signer:1/5=20%) Lee Schermerhorn (commit_signer:1/5=20%) Paul Jackson (authored lines:406/613=66%,commits:7/20=35%) Reinette Chatre (authored lines:42/613=7%) Paul Mundt (commits:3/20=15%) Randy Dunlap (commits:2/20=10%) linux-kernel@vger.kernel.org (open list) Signed-off-by: Joe Perches Cc: Mark Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b903c0b8899b46829a9b80ba55b61079b35940ec Author: Changli Gao Date: Tue Oct 26 14:22:50 2010 -0700 lib: fix scnprintf() if @size is == 0 scnprintf() should return 0 if @size is == 0. Update the comment for it, as @size is unsigned. Signed-off-by: Changli Gao Cc: Ingo Molnar Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5e0579812834ab7fa072db4a15ebdff68d62e2e7 Author: Joe Perches Date: Tue Oct 26 14:22:50 2010 -0700 vsprintf.c: use default pointer field size for "(null)" strings It might be nicer to align the output. For instance, ACPI messages sometimes have "(null)" pointers. $ dmesg | grep "(null)" -A 1 -B 1 [ 0.198733] ACPI: Dynamic OEM Table Load: [ 0.198745] ACPI: SSDT (null) 00239 (v02 PmRef Cpu0Ist 00003000 INTL 20051117) [ 0.199294] ACPI: SSDT 7f596e10 001C7 (v02 PmRef Cpu0Cst 00003001 INTL 20051117) [ 0.200708] ACPI: Dynamic OEM Table Load: [ 0.200721] ACPI: SSDT (null) 001C7 (v02 PmRef Cpu0Cst 00003001 INTL 20051117) [ 0.201950] ACPI: SSDT 7f597f10 000D0 (v02 PmRef Cpu1Ist 00003000 INTL 20051117) [ 0.203386] ACPI: Dynamic OEM Table Load: [ 0.203398] ACPI: SSDT (null) 000D0 (v02 PmRef Cpu1Ist 00003000 INTL 20051117) [ 0.203871] ACPI: SSDT 7f595f10 00083 (v02 PmRef Cpu1Cst 00003000 INTL 20051117) [ 0.205301] ACPI: Dynamic OEM Table Load: [ 0.205315] ACPI: SSDT (null) 00083 (v02 PmRef Cpu1Cst 00003000 INTL 20051117) [akpm@linux-foundation.org: add code comment] Signed-off-by: Joe Perches Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 77006a0a828249dd69341f960043ee41e7487aa0 Author: Andrew Morton Date: Tue Oct 26 14:22:49 2010 -0700 ratelimit: add comment warning people off printk_ratelimit() printk_ratelimit() was a bad idea - we don't want subsytem A causing ratelimiting of subsystem B's messages. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f5d87d851d76a390d0fab2f77bd1d563d69ee586 Author: Namhyung Kim Date: Tue Oct 26 14:22:49 2010 -0700 printk: declare printk_ratelimit_state in ratelimit.h Adding declaration of printk_ratelimit_state in ratelimit.h removes potential build breakage and following sparse warning: kernel/printk.c:1426:1: warning: symbol 'printk_ratelimit_state' was not declared. Should it be static? [akpm@linux-foundation.org: remove unneeded ifdef] Signed-off-by: Namhyung Kim Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 674dff6507d3f9b110219ea125cf5e1213c9acef Author: Namhyung Kim Date: Tue Oct 26 14:22:48 2010 -0700 printk: change type of 'boot_delay' to int * get_option() takes its 2nd arg as int * so passing boot_delay to it caused following warnings from sparse: kernel/printk.c:223:27: warning: incorrect type in argument 2 (different signedness) kernel/printk.c:223:27: expected int *pint kernel/printk.c:223:27: got unsigned int static [toplevel] * Since boot_delay can't grow more than 10,000 changing it to 'int *' will not produce any problem. Signed-off-by: Namhyung Kim Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8155c02a44a95562e1ae0999360eb31288d7195a Author: Namhyung Kim Date: Tue Oct 26 14:22:47 2010 -0700 printk: add lock context annotation acquire_console_semaphore_for_printk() releases logbuf_lock but was missing proper annotation. Add it. Signed-off-by: Namhyung Kim Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6c095efd82e8f6a98515426a733110f91cf0a709 Author: Namhyung Kim Date: Tue Oct 26 14:22:47 2010 -0700 printk: fixup declaration of kmsg_reasons Move redundant 'const' after '*' to make pointer itself const Signed-off-by: Namhyung Kim Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5f2365d8c24aec8dbedf49c69b7601c7cfaee2c1 Author: Borislav Petkov Date: Tue Oct 26 14:22:46 2010 -0700 misc devices: do not enable by default Do not enable this Kconfig menu by default since it contains devices not present on the majority of systems. This is becoming a pain and a waste of time especially when doing a bunch of kernel builds on different systems daily and have to answer "make oldconfig" prompts for strange devices. Signed-off-by: Borislav Petkov Acked-by: Mike Frysinger Cc: Michael Hennerich Cc: Andres Salomon Cc: Jean Delvare Cc: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 766f9164193f6dda1497bbf3861060198421fb92 Author: Peter Zijlstra Date: Tue Oct 26 14:22:45 2010 -0700 kernel: remove PF_FLUSHER PF_FLUSHER is only ever set, not tested, remove it. Signed-off-by: Peter Zijlstra Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4ce6494dbd8909718840bb88d5a699ef6ce5c212 Author: Akinobu Mita Date: Tue Oct 26 14:22:45 2010 -0700 stop_machine: convert cpu notifier to return encapsulate errno value In commit e6bde73b07edeb703d4c89c1daabc09c303de11f ("cpu-hotplug: return better errno on cpu hotplug failure"), the cpu notifier can return an encapsulated errno value. This converts the cpu notifier to return an encapsulated errno value for stop_machine(). Signed-off-by: Akinobu Mita Cc: Rusty Russell Cc: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ca51c5a76345b28c6f1b742f9f5f0a6fc9afd9ca Author: Rakib Mullick Date: Tue Oct 26 14:22:44 2010 -0700 kernel/stop_machine.c: fix unused variable warning kernel/stop_machine.c: In function `cpu_stopper_thread': kernel/stop_machine.c:265: warning: unused variable `ksym_buf' ksym_buf[] is unused if WARN_ON() is a no-op. Signed-off-by: Rakib Mullick Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 518de9b39e854542de59bfb8b9f61c8f7ecf808b Author: Eric Dumazet Date: Tue Oct 26 14:22:44 2010 -0700 fs: allow for more than 2^31 files Robin Holt tried to boot a 16TB system and found af_unix was overflowing a 32bit value : We were seeing a failure which prevented boot. The kernel was incapable of creating either a named pipe or unix domain socket. This comes down to a common kernel function called unix_create1() which does: atomic_inc(&unix_nr_socks); if (atomic_read(&unix_nr_socks) > 2 * get_max_files()) goto out; The function get_max_files() is a simple return of files_stat.max_files. files_stat.max_files is a signed integer and is computed in fs/file_table.c's files_init(). n = (mempages * (PAGE_SIZE / 1024)) / 10; files_stat.max_files = n; In our case, mempages (total_ram_pages) is approx 3,758,096,384 (0xe0000000). That leaves max_files at approximately 1,503,238,553. This causes 2 * get_max_files() to integer overflow. Fix is to let /proc/sys/fs/file-nr & /proc/sys/fs/file-max use long integers, and change af_unix to use an atomic_long_t instead of atomic_t. get_max_files() is changed to return an unsigned long. get_nr_files() is changed to return a long. unix_nr_socks is changed from atomic_t to atomic_long_t, while not strictly needed to address Robin problem. Before patch (on a 64bit kernel) : # echo 2147483648 >/proc/sys/fs/file-max # cat /proc/sys/fs/file-max -18446744071562067968 After patch: # echo 2147483648 >/proc/sys/fs/file-max # cat /proc/sys/fs/file-max 2147483648 # cat /proc/sys/fs/file-nr 704 0 2147483648 Reported-by: Robin Holt Signed-off-by: Eric Dumazet Acked-by: David Miller Reviewed-by: Robin Holt Tested-by: Robin Holt Cc: Al Viro Cc: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 571428be550fbe37160596995e96ad398873fcbd Author: Namhyung Kim Date: Tue Oct 26 14:22:43 2010 -0700 kernel/user.c: add lock release annotation on free_user() free_user() releases uidhash_lock but was missing annotation. Add it. This removes following sparse warnings: include/linux/spinlock.h:339:9: warning: context imbalance in 'free_user' - unexpected unlock kernel/user.c:120:6: warning: context imbalance in 'free_uid' - wrong count at exit Signed-off-by: Namhyung Kim Cc: Ingo Molnar Cc: Dhaval Giani Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 562f5e638de4ef451226552fe8dd7847bacea24e Author: Namhyung Kim Date: Tue Oct 26 14:22:42 2010 -0700 init: mark __user address space on string literals When calling syscall service routines in kernel, some of arguments should be user pointers but were missing __user markup on string literals. Add it. Removes some sparse warnings. Signed-off-by: Namhyung Kim Cc: Phillip Lougher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f0cfec11180973e4f4b2b6909623e47eaaf7ecfe Author: Hong Liu Date: Tue Oct 26 14:22:42 2010 -0700 drivers/misc/apds9802als.c: add runtime PM support Update the driver for the needed runtime power features. Remove the old user controlled power functions. [akpm@linux-foundation.org: put PM code under CONFIG_PM] Signed-off-by: Hong Liu Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 22d96aa59cf120db3584e4c3365554cae77d2441 Author: anantha Date: Tue Oct 26 14:22:41 2010 -0700 drivers/misc/apds9802als.c: ALS drivers for the apds9802als This adds support for the ADPS9802ALS sensor. Cleanup by Alan Cox - move mutexes to cover more things - report I/O errors back to user space - report range and values in LUX Signed-off-by: Anantha Narayanan [The 4K and 64K in the hw spec actually means 4095 (12bit) and 65535 (16bit).] Signed-off-by: Hong Liu [Updated to match the ALS light API interface convention from Samu] Signed-off-by: Alan Cox Acked-by: Jonathan Cameron Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8a233f01b7d7dd587f85fa581274f168f1e88bb8 Author: Alek Du Date: Tue Oct 26 14:22:41 2010 -0700 pca953x: pca953x driver fixes for x86 mrst Our Moorestown platform has two max7315 chips which is covered by pca953x i2c gpio driver. A while ago this driver got updated with nested irq thread support, and it broke the compatibity with "request_irq". For example, the gpio_keys.c driver can not work with this driver now. This patch fixes the issue by switching to generic_handle_irq. Also fix the irq_base issue: irq_base == 0 is valid, and a "-1" value should mean invalid. IRQ 0 is not a valid IRQ, irq_base of 0 is valid. Signed-off-by: Alek Du Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2e85c4ddd3f32d3e1da51f4129473399e505ffa3 Author: Kalhan Trisal Date: Tue Oct 26 14:22:40 2010 -0700 drivers/misc/isl29020.c: ambient light sensor The LS driver will read the latest Lux measurement based upon the light brightness and will report the LUX output through sysfs interface. This hardware isn't quite the same as the ISL29003 so has a different driver. [akpm@linux-foundation.org: put PM code under #ifdef CONFIG_PM] Signed-off-by: Kalhan Trisal [Runtime power management support added] Signed-off-by: Arjan van de Ven [Fixes to runtime PM] Signed-off-by: Liu Hong [Cleanups and added checks for I2C errors, reworked the API to match the saner one agreed for other sensors] Signed-off-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 93e2f585c149b5056d5c5eaffcaf747bbe9c3015 Author: Namhyung Kim Date: Tue Oct 26 14:22:40 2010 -0700 lkdtm: prefix enum constants Prefix cname and ctype constants with CN/CT_. This is especially for the conflict on BUG which causes a build break if arch defines it as a inline function, i.e. MIPS. Signed-off-by: Namhyung Kim Cc: Ankita Garg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3f0f4a3f2008613c601e97f773dbd80ac400e459 Author: Samu Onkalo Date: Tue Oct 26 14:22:39 2010 -0700 Documentation: short descriptions for bh1770glc and apds990x drivers Add short documentation for two ALS / proximity chip drivers. Signed-off-by: Samu Onkalo Acked-by: Jonathan Cameron Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 92b1f84d46b24675493d95a239eea2b07e5f13f8 Author: Samu Onkalo Date: Tue Oct 26 14:22:38 2010 -0700 drivers/misc: driver for APDS990X ALS and proximity sensors This is a driver for Avago APDS990X combined ALS and proximity sensor. Interface is sysfs based. The driver uses interrupts to provide new data. The driver supports pm_runtime and regulator frameworks. See Documentation/misc-devices/apds990x.txt for details Signed-off-by: Samu Onkalo Acked-by: Jonathan Cameron Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 190420ab34ab4c077c641893ac19f364cf3606e4 Author: Samu Onkalo Date: Tue Oct 26 14:22:37 2010 -0700 drivers/misc: driver for bh1770glc / sfh7770 ALS and proximity sensor This is a driver for ROHM BH1770GLC and OSRAM SFH7770 combined ALS and proximity sensor. Interface is sysfs based. The driver uses interrupts to provide new data. The driver supports pm_runtime and regulator frameworks. See Documentation/misc-devices/bh1770glc.txt for details Signed-off-by: Samu Onkalo Acked-by: Jonathan Cameron Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4b068de9ab1c404734fde90ce5d3f4f5b4f0b9d5 Author: steven miao Date: Tue Oct 26 14:22:37 2010 -0700 ad525x_dpot: use correct rdac channel for ad5251/ad5252 The ad5251/ad5252 devices have rdac1 and rdac3, but no rdac0. So make sure we use the right channels so userspace gets correct data and not just garbage. Signed-off-by: steven miao Signed-off-by: Mike Frysinger Cc: Michael Hennerich Cc: Chris Verges Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a4bd394956f20d0bfc0ca6ecfac2af4150da274a Author: Michael Hennerich Date: Tue Oct 26 14:22:36 2010 -0700 drivers/misc/ad525x_dpot.c: new features Add support for AD5270, AD5271, AD5272, AD5274 digital potentiometers. Add 20-TP feature for AD5291 and AD5292 parts, and update feature list. AD5291 rdac read back must be shifted by two. Signed-off-by: Michael Hennerich Cc: Mike Frysinger Cc: Chris Verges Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 5f400cf40fc703673aa791966ffb1c628c1ff45a Author: Michael Hennerich Date: Tue Oct 26 14:22:35 2010 -0700 drivers/misc/ad525x_dpot.c: fix part name typos in defines There is no runtime effect by this change. It frees up namespace for defines erroneously used. This is required to actually support devices requiring the namespace, added with "drivers/misc/ad525x_dpot.c: new features". All defines touched have the same value defined, after the change. Signed-off-by: Michael Hennerich Cc: Mike Frysinger Cc: Chris Verges Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 10ad5278bbc961c9df8260f3e116d60eaaa3fb18 Author: Rahul Ruikar Date: Tue Oct 26 14:22:35 2010 -0700 drivers/misc/phantom.c: add missing warning messages in phantom_probe() phantom_probe() can fail in many places. Add missing warning messages in pci_enable_device() and pci_request_regions(). Signed-off-by: Rahul Ruikar Cc: Jiri Slaby Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ca1cab37d91cbe8a8333732540d43cabb54cfa85 Author: Andrew Morton Date: Tue Oct 26 14:22:34 2010 -0700 workqueues: s/ON_STACK/ONSTACK/ Silly though it is, completions and wait_queue_heads use foo_ONSTACK (COMPLETION_INITIALIZER_ONSTACK, DECLARE_COMPLETION_ONSTACK, __WAIT_QUEUE_HEAD_INIT_ONSTACK and DECLARE_WAIT_QUEUE_HEAD_ONSTACK) so I guess workqueues should do the same thing. s/INIT_WORK_ON_STACK/INIT_WORK_ONSTACK/ s/INIT_DELAYED_WORK_ON_STACK/INIT_DELAYED_WORK_ONSTACK/ Cc: Peter Zijlstra Acked-by: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 99dc829256bb8cfcb1f58b7f118893fdbf608e60 Author: Jerome Marchand Date: Tue Oct 26 14:22:33 2010 -0700 procfs: fix numbering in /proc/locks The lock number in /proc/locks (first field) is implemented by a counter (private field of struct seq_file) which is incremented at each call of locks_show() and reset to 1 in locks_start() whatever the offset is. It should be reset according to the actual position in the list. Because of this, the numbering erratically restarts at 1 several times when reading a long /proc/locks file. Moreover, locks_show() can be called twice to print a single line thus skipping a number. The counter should be incremented in locks_next(). And last, pos is a loff_t, which can be bigger than a pointer, so we don't use the pointer as an integer anymore, and allocate a loff_t instead. Signed-off-by: Jerome Marchand Cc: Pavel Emelyanov Cc: Matthew Wilcox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4199ca77cc44c418972e8f30a36be7d26d21a0d2 Author: Randy Dunlap Date: Tue Oct 26 14:22:32 2010 -0700 fs: move exportfs since it is not a networking filesystem Move the EXPORTFS kconfig symbol out of the NETWORK_FILESYSTEMS block since it provides a library function that can be (and is) used by other (non-network) filesystems. This also eliminates a kconfig dependency warning: warning: (XFS_FS && BLOCK || NFSD && NETWORK_FILESYSTEMS && INET && FILE_LOCKING && BKL) selects EXPORTFS which has unmet direct dependencies (NETWORK_FILESYSTEMS) Signed-off-by: Randy Dunlap Cc: Dave Chinner Cc: Al Viro Cc: Alex Elder Reviewed-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1df79da85657aecde2ecff052ff0cf9910311078 Author: Namhyung Kim Date: Tue Oct 26 14:22:31 2010 -0700 fs/buffer.c: remove duplicated assignment to b_private bh->b_private is initialized within init_buffer(), thus this assignment is redundant. Signed-off-by: Namhyung Kim Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d88262623fb58853ed60fb110141c435de26e3de Author: Mike Frysinger Date: Tue Oct 26 14:22:30 2010 -0700 vmlinux.lds.h: lower init ramfs alignment to 4 The new init ramfs format (cpio based) requires an alignment of 4 (per the documentation and per the source files themselves). As for compressed sources, the decompressors can all deal with unaligned buffers. The cpio source is also found in the __init sections of the kernel, so once they are read and expanded into a tmpfs, the source is freed. That means there is no need to force page alignment here either. This has been used on Blackfin systems for many releases without issue. Signed-off-by: Mike Frysinger Cc: Al Viro Cc: Sam Ravnborg Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d356c0b680d15e0187de48aa303e541b461ea794 Author: Mike Frysinger Date: Tue Oct 26 14:22:29 2010 -0700 vmlinux.lds.h: gather .data..shared_aligned sections in DATA_DATA With the recent change "net: remove time limit in process_backlog()", the softnet_data variable changed from "DEFINE_PER_CPU()" to "DEFINE_PER_CPU_ALIGNED()" which moved it from the .data section to the .data.shared_align section. I'm not saying this patch is wrong, just that is what caused me to notice this larger problem. No one else in the kernel is using this aligned macro variant, so I imagine that's why no one has noticed yet. Since .data..shared_align isn't declared in any vmlinux files that I can see, the linker just places it last. This "just works" for most people, but when building a ROM kernel on Blackfin systems, it causes section overlap errors: bfin-uclinux-ld.real: section .init.data [00000000202e06b8 -> 00000000202e48b7] overlaps section .data.shared_aligned [00000000202e06b8 -> 00000000202e0723] I imagine other arches which support the ROM config option and thus do funky placement would see similar issues ... On x86, it is stuck in a dedicated section at the end: [8] .data PROGBITS ffffffff810ec000 2ec0000303a8 00 WA 0 0 4096 [9] .data.shared_alig PROGBITS ffffffff8111c3c0 31c3c00000c8 00 WA 0 0 64 So make sure we include this section in the DATA_DATA macro so that it is placed in the right location. Signed-off-by: Mike Frysinger Cc: Sam Ravnborg Cc: Jeremy Fitzhardinge Cc: Rusty Russell Cc: Alan Jenkins Cc: Greg Ungerer Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cd1c584f380183aca268d454c14b22d8454eac4f Author: Edward Shishkin Date: Tue Oct 26 14:22:28 2010 -0700 fs/direct-io.c: fix truncation error in dio_complete() return Fix up truncation (ssize_t->int). This only matters with >2G reads/writes, which the kernel doesn't permit. Signed-off-by: Edward Shishkin Reviewed-by: Christoph Hellwig Acked-by: Jeff Moyer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2473238eac95ba6dd2c4ba19cc36aaf01465076b Author: Mark Brown Date: Tue Oct 26 14:22:28 2010 -0700 ihex: add support for CS:IP/EIP records ihex firmwares can include a jump address for starting execution. Add a -j option which will cause this to be written into the generated file as a record with address zero and data consisting of the address to jump to, allowing drivers to make use of this information. This format is chosen because it most closely follows the original ihex format, though it may make more sense to write a record with length zero and the address stored as the address. The records are not omitted by default since our ihex format does not include record type information and so including additional records may lead to confusion. Signed-off-by: Mark Brown Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b6777c40c79168d938c30b5b7471fbd64bca109c Author: Miklos Szeredi Date: Tue Oct 26 14:22:27 2010 -0700 fuse: use clear_highpage() and KM_USER0 instead of KM_USER1 Commit 7909b1c640 ("fuse: don't use atomic kmap") removed KM_USER0 usage from fuse/dev.c. Switch KM_USER1 uses to KM_USER0 for clarity. Also replace open coded clear_highpage(). Signed-off-by: Miklos Szeredi Cc: Jan Beulich Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3ecb01df3261d3b1f02ccfcf8384e2a255d2a1d0 Author: Jan Beulich Date: Tue Oct 26 14:22:27 2010 -0700 use clear_page()/copy_page() in favor of memset()/memcpy() on whole pages After all that's what they are intended for. Signed-off-by: Jan Beulich Cc: Miklos Szeredi Cc: "Eric W. Biederman" Cc: "Rafael J. Wysocki" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b6472776816af1ed52848c93d26e3edb3b17adab Author: Jan Beulich Date: Tue Oct 26 14:22:26 2010 -0700 modules: no need to align .modinfo strings gcc aligns strings as a performance consideration for those cases where strings are being used a lot. Their use is not performance critical, and hence it seems better to save some space. Signed-off-by: Jan Beulich Acked-by: Rusty Russell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a55621f15bc61826969a29e111ba131a55ef45de Author: Andrew Morton Date: Tue Oct 26 14:22:25 2010 -0700 include/linux/kernel.h: add __must_check to strict_strto*() The whole point to using the strict functions is to check the return value. If you don't, strict_strto*() will return you uninitialised garbage. Offenders have been observed in the wild. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c925cf0b80cb486b31e1ec0e9f981d75a4b38453 Author: Philippe De Muyter Date: Tue Oct 26 14:22:23 2010 -0700 m68k{nommu}/blackfin : remove old assembler-only flags bit definitions Long ago, PT_TRACESYS_OFF and friends were introduced as hard defines to avoid straight constants in assembler parts of linux m68k. They are not used anymore, and were not updated to follow changes in linux kernel. Remove them. When similar constants are needed, they are now generated using asm-offsets.c. Signed-off-by: Philippe De Muyter Acked-by: Mike Frysinger Acked-by: Geert Uytterhoeven Acked-by: Greg Ungerer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 732eacc0542d0aa48797f675888b85d6065af837 Author: Hagen Paul Pfeifer Date: Tue Oct 26 14:22:23 2010 -0700 replace nested max/min macros with {max,min}3 macro Use the new {max,min}3 macros to save some cycles and bytes on the stack. This patch substitutes trivial nested macros with their counterpart. Signed-off-by: Hagen Paul Pfeifer Cc: Joe Perches Cc: Ingo Molnar Cc: Hartley Sweeten Cc: Russell King Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Herbert Xu Cc: Roland Dreier Cc: Sean Hefty Cc: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f27c85c56b32c42bcc54a43189c1e00fdceb23ec Author: Hagen Paul Pfeifer Date: Tue Oct 26 14:22:21 2010 -0700 kernel.h: add {min,max}3 macros Introduce two additional min/max macros to compare three operands. This will save some cycles as well as some bytes on the stack and last but not least more pleasing as macro nesting. [akpm@linux-foundation.org: fix warnings] Signed-off-by: Hagen Paul Pfeifer Cc: Joe Perches Cc: Ingo Molnar Cc: Hartley Sweeten Cc: Russell King Cc: Benjamin Herrenschmidt Cc: Thomas Gleixner Cc: Herbert Xu Cc: Roland Dreier Cc: Sean Hefty Cc: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit c5c6dd4e2dce3cb4d705d97183bc42b4e33e2606 Author: Richard Weinberger Date: Tue Oct 26 14:22:20 2010 -0700 hostfs: code cleanups Some code cleanups for hostfs. Signed-off-by: Richard Weinberger Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit be76d81f99c4c120adcd201a7316e4dd7dbe3c11 Author: Richard Weinberger Date: Tue Oct 26 14:22:20 2010 -0700 um: migrate from __do_IRQ() to generic_handle_irq() This patch removes __do_IRQ() from user mode linux. __do_IRQ is deprecated. Signed-off-by: Richard Weinberger Cc: Jeff Dike Cc: Thomas Gleixner Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aa5fb4dbfd121296ca97c68cf90043a7ea97579d Author: Roland McGrath Date: Tue Oct 26 14:22:19 2010 -0700 uml: fix CONFIG_STATIC_LINK=y build failure with newer glibc With glibc 2.11 or later that was built with --enable-multi-arch, the UML link fails with undefined references to __rel_iplt_start and similar symbols. In recent binutils, the default linker script defines these symbols (see ld --verbose). Fix the UML linker scripts to match the new defaults for these sections. Signed-off-by: Roland McGrath Cc: Jeff Dike Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d911202e3f722c29065942400ea108b7096bdac7 Author: FUJITA Tomonori Date: Tue Oct 26 14:22:18 2010 -0700 uml: define CONFIG_NO_DMA I think that it's better to detect DMA misuse at build time rather than calling BUG_ON. Architectures that can't do DMA need to define CONFIG_NO_DMA. Thanks to Sam Ravnborg for explaining how CONFIG_NO_DMA and CONFIG_HAS_DMA work: http://marc.info/?l=linux-kernel&m=128359913825550&w=2 HAS_DMA is defined like this: config HAS_DMA boolean depends on !NO_DMA default y So to set HAS_DMA to true an arch should do: 1) Do not define NO_DMA 2) Define NO_DMA abd set it to 'n' Must archs - including um - used principle 1). In the um case we want to say that we do NOT have any DMA. This can be done in two ways. a) define NO_DMA and set it to 'y' b) redefine HAS_DMA and set it to 'n'. The patch you provided used principle b) where other archs use principle a). So I suggest you should use principle a) for um too. Signed-off-by: FUJITA Tomonori Cc: Miklos Szeredi Cc: Jeff Dike Cc: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 98c532ecbe582586e204688c6cde7e27580cc43f Author: Ivan Kokshaysky Date: Tue Oct 26 14:22:17 2010 -0700 alpha: use single HAE window on T2 core logic (gamma, sable) T2 are the only alpha SMP systems that do HAE switching at runtime, which is fundamentally racy on SMP. This patch limits MMIO space on T2 to HAE0 only, like we did on MCPCIA (rawhide) long ago. This leaves us with only 112 Mb of PCI MMIO (128 Mb HAE aperture minus 16 Mb reserved for EISA), but since linux PCI allocations are reasonably tight, it should be enough for sane hardware configurations. Also, fix a typo in MCPCIA_FROB_MMIO macro which shouldn't call set_hae() if MCPCIA_ONE_HAE_WINDOW is defined. It's more for correctness, as set_hae() is a no-op anyway in that case. Signed-off-by: Ivan Kokshaysky Cc: Matt Turner Cc: Richard Henderson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 947272dd3e959c69ff0fc54e62e44163b729b796 Author: FUJITA Tomonori Date: Tue Oct 26 14:22:15 2010 -0700 alpha: enable ARCH_DMA_ADDR_T_64BIT Signed-off-by: FUJITA Tomonori Cc: Ivan Kokshaysky Cc: Richard Henderson Cc: Matt Turner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dae512edc6e945e127f0848aa757055265d70aa2 Author: Vasiliy Kulikov Date: Tue Oct 26 14:22:15 2010 -0700 drivers/char/hpet.c: fix information leak to userland Structure info is copied to userland with some padding fields unitialized. It leads to leaking of stack memory. [akpm@linux-foundation.org: remove now-unneeded zeroing of info->hi_ireqfreq] Signed-off-by: Vasiliy Kulikov Cc: Clemens Ladisch Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit aaaddfe0b3bb449b8734bf29bbd36141076e5277 Author: Jaswinder Singh Rajput Date: Tue Oct 26 14:22:14 2010 -0700 Documentation/timers/hpet_example.c: add supporting info for hpet_example $./hpet_example info /dev/hpet -hpet: executing info hpet_info: hi_irqfreq 0x0 hi_flags 0x0 hi_hpet 0 hi_timer 2 Signed-off-by: Jaswinder Singh Rajput Cc: Clemens Ladisch Cc: "Venkatesh Pallipadi (Venki)" Cc: john stultz Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0ca01763a028d0034042a9397534bc1f27848652 Author: Jaswinder Singh Rajput Date: Tue Oct 26 14:22:13 2010 -0700 hpet: fix style problems Fix the following style problems: WARNING: Use #include instead of WARNING: Use #include instead of ERROR: code indent should use tabs where possible ERROR: do not initialise statics to 0 or NULL Signed-off-by: Jaswinder Singh Rajput Cc: Clemens Ladisch Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 96e9694df446d1154ec2f4fdba8908588b9cba38 Author: Clemens Ladisch Date: Tue Oct 26 14:22:13 2010 -0700 hpet: fix unwanted interrupt due to stale irq status bit Jaswinder Singh Rajput wrote: > By executing Documentation/timers/hpet_example.c > > for polling, I requested for 3 iterations but it seems iteration work > for only 2 as first expired time is always very small. > > # ./hpet_example poll /dev/hpet 10 3 > -hpet: executing poll > hpet_poll: info.hi_flags 0x0 > hpet_poll: expired time = 0x13 > hpet_poll: revents = 0x1 > hpet_poll: data 0x1 > hpet_poll: expired time = 0x1868c > hpet_poll: revents = 0x1 > hpet_poll: data 0x1 > hpet_poll: expired time = 0x18645 > hpet_poll: revents = 0x1 > hpet_poll: data 0x1 Clearing the HPET interrupt enable bit disables interrupt generation but does not disable the timer, so the interrupt status bit will still be set when the timer elapses. If another interrupt arrives before the timer has been correctly programmed (due to some other device on the same interrupt line, or CONFIG_DEBUG_SHIRQ), this results in an extra unwanted interrupt event because the status bit is likely to be set from comparator matches that happened before the device was opened. Therefore, we have to ensure that the interrupt status bit is and stays cleared until we actually program the timer. Signed-off-by: Clemens Ladisch Reported-by: Jaswinder Singh Rajput Cc: Ingo Molnar Cc: Thomas Gleixner Cc: john stultz Cc: Bob Picco Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a56d5318716d120e040294bb258901ba89fb9c90 Author: Jiri Slaby Date: Tue Oct 26 14:22:11 2010 -0700 hpet: unmap unused I/O space When the initialization code in hpet finds a memory resource and does not find an IRQ, it does not unmap the memory resource previously mapped. There are buggy BIOSes which report resources exactly like this and what is worse the memory region bases point to normal RAM. This normally would not matter since the space is not touched. But when PAT is turned on, ioremap causes the page to be uncached and sets this bit in page->flags. Then when the page is about to be used by the allocator, it is reported as: BUG: Bad page state in process md5sum pfn:3ed00 page:ffffea0000dbd800 count:0 mapcount:0 mapping:(null) index:0x0 page flags: 0x20000001000000(uncached) Pid: 7956, comm: md5sum Not tainted 2.6.34-12-desktop #1 Call Trace: [] bad_page+0xb1/0x100 [] prep_new_page+0x1a5/0x1c0 [] get_page_from_freelist+0x3a1/0x640 [] __alloc_pages_nodemask+0x10f/0x6b0 ... In this particular case: 1) HPET returns 3ed00000 as memory region base, but it is not in reserved ranges reported by the BIOS (excerpt): BIOS-e820: 0000000000100000 - 00000000af6cf000 (usable) BIOS-e820: 00000000af6cf000 - 00000000afdcf000 (reserved) 2) there is no IRQ resource reported by HPET method. On the other hand, the Intel HPET specs (1.0a) says (3.2.5.1): _CRS ( // Report 1K of memory consumed by this Timer Block memory range consumed // Optional: only used if BIOS allocates Interrupts [1] IRQs consumed ) [1] For case where Timer Block is configured to consume IRQ0/IRQ8 AND Legacy 8254/Legacy RTC hardware still exists, the device objects associated with 8254 & RTC devices should not report IRQ0/IRQ8 as "consumed resources". So in theory we should check whether if it is the case and use those interrupts instead. Anyway the address reported by the BIOS here is bogus, so non-presence of IRQ doesn't mean the "optional" part in point 2). Since I got no reply previously, fix this by simply unmapping the space when IRQ is not found and memory region was mapped previously. It would be probably more safe to walk the resources again and unmap appropriately depending on type. But as we now use only ioremap for both 2 memory resource types, it is not necessarily needed right now. Addresses https://bugzilla.novell.com/show_bug.cgi?id=629908 Reported-by: Olaf Hering Signed-off-by: Jiri Slaby Acked-by: Clemens Ladisch Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f3ab2636c5c1dd9ab0ff53a46d8354d5769ffdd4 Author: Bob Liu Date: Tue Oct 26 14:22:10 2010 -0700 mm: do_migrate_range: reduce list_empty() check Simple code for reducing list_empty(&source) check. Signed-off-by: Bob Liu Acked-by: KAMEZAWA Hiroyuki Acked-by: Wu Fengguang Cc: KOSAKI Motohiro Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 809c444977adb7313e0612e9e3af4b73ba3f5746 Author: Bob Liu Date: Tue Oct 26 14:22:10 2010 -0700 mm: do_migrate_range: exit loop if not_managed is true If not_managed is true all pages will be putback to lru, so break the loop earlier to skip other pages isolate. Signed-off-by: Bob Liu Acked-by: KAMEZAWA Hiroyuki Acked-by: Wu Fengguang Cc: KOSAKI Motohiro Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f6a3607e5f30dc642bead8cd95c48d47b6b4bfbb Author: Bob Liu Date: Tue Oct 26 14:22:09 2010 -0700 mm: page_isolation: codeclean fix comment and rm unneeded val init __test_page_isolated_in_pageblock() returns 1 if all pages in the range are isolated, so fix the comment. Variable `pfn' will be initialised in the following loop so remove it. Signed-off-by: Bob Liu Acked-by: KAMEZAWA Hiroyuki Cc: Wu Fengguang Cc: KOSAKI Motohiro Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 572438f9b52236bd8938b1647cc15e027d27ef55 Author: KAMEZAWA Hiroyuki Date: Tue Oct 26 14:22:08 2010 -0700 mm: fix is_mem_section_removable() page_order BUG_ON check page_order() is called by memory hotplug's user interface to check the section is removable or not. (is_mem_section_removable()) It calls page_order() withoug holding zone->lock. So, even if the caller does if (PageBuddy(page)) ret = page_order(page) ... The caller may hit BUG_ON(). For fixing this, there are 2 choices. 1. add zone->lock. 2. remove BUG_ON(). is_mem_section_removable() is used for some "advice" and doesn't need to be 100% accurate. This is_removable() can be called via user program.. We don't want to take this important lock for long by user's request. So, this patch removes BUG_ON(). Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Wu Fengguang Acked-by: Michal Hocko Acked-by: Mel Gorman Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 44e2aa937e698ea95dd86b2a4fabd734ef2c76db Author: Dean Nelson Date: Tue Oct 26 14:22:08 2010 -0700 mm/hugetlb.c: add missing spin_lock() to hugetlb_cow() Add missing spin_lock() of the page_table_lock before an error return in hugetlb_cow(). Callers of hugtelb_cow() expect it to be held upon return. Signed-off-by: Dean Nelson Cc: Mel Gorman Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 70384dc6dcc6aa76762200262820bdb8b724ecd5 Author: Gleb Natapov Date: Tue Oct 26 14:22:07 2010 -0700 mm: fix error reporting in move_pages() syscall The vma returned by find_vma does not necessarily include the target address. If this happens the code tries to follow a page outside of any vma and returns ENOENT instead of EFAULT. Signed-off-by: Gleb Natapov Acked-by: Christoph Lameter Cc: Minchan Kim Cc: KAMEZAWA Hiroyuki Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 66d7dd518ae413a383ab2c6c263cc30617329842 Author: Kay Sievers Date: Tue Oct 26 14:22:06 2010 -0700 /proc/swaps: support polling System management wants to subscribe to changes in swap configuration. Make /proc/swaps pollable like /proc/mounts. [akpm@linux-foundation.org: document proc_poll_event] Signed-off-by: Kay Sievers Acked-by: Greg KH Cc: Jonathan Corbet Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e1ca7788dec6773b1a2bce51b7141948f2b8bccf Author: Dave Young Date: Tue Oct 26 14:22:06 2010 -0700 mm: add vzalloc() and vzalloc_node() helpers Add vzalloc() and vzalloc_node() to encapsulate the vmalloc-then-memset-zero operation. Use __GFP_ZERO to zero fill the allocated memory. Signed-off-by: Dave Young Cc: Christoph Lameter Acked-by: Greg Ungerer Cc: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7bbc0905ea4f7a471a7f79d0bea5d538f5114fc9 Author: Andrew Morton Date: Tue Oct 26 14:22:05 2010 -0700 mm/memory_hotplug.c: make scan_lru_pages() static Reported-by: KOSAKI Motohiro Cc: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 74ce002d9aee23031b4967e1dd1c1966ddc60749 Author: Andrew Morton Date: Tue Oct 26 14:22:05 2010 -0700 fs/fs-writeback.c: restore lost comment I had to go back to a 2.6.20 tree to work out why we're adding a number-of-inodes into a number-of-pages count. Restore the lost comment. Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 16b56cf4b8a0fa9acc21bd2ad19839b917999b96 Author: Namhyung Kim Date: Tue Oct 26 14:22:04 2010 -0700 mm: fix sparse warnings on GFP_ZONE_TABLE/BAD Introduce ___GFP_* masks in order for gfp_t to not be mixed with plain integers which causes a lot of warnings like the following: warning: restricted gfp_t degrades to integer Signed-off-by: Namhyung Kim Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 36deb0be314702627aeae1f5737fc84d01dc26c6 Author: Namhyung Kim Date: Tue Oct 26 14:22:04 2010 -0700 vmstat: include compaction.h when CONFIG_COMPACTION This removes following warning from sparse: mm/vmstat.c:466:5: warning: symbol 'fragmentation_index' was not declared. Should it be static? [akpm@linux-foundation.org: move the include to top-of-file] Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 92c09c041f15fc88b35f8628e07639f52e1fbb38 Author: Namhyung Kim Date: Tue Oct 26 14:22:03 2010 -0700 mm: declare some external symbols Declare 'bdi_pending_list' and 'tag_pages_for_writeback()' to remove following sparse warnings: mm/backing-dev.c:46:1: warning: symbol 'bdi_pending_list' was not declared. Should it be static? mm/page-writeback.c:825:6: warning: symbol 'tag_pages_for_writeback' was not declared. Should it be static? Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e199b5d1fed13f5e8f47a0ee8216f36244dad1f4 Author: Namhyung Kim Date: Tue Oct 26 14:22:03 2010 -0700 vmalloc: annotate lock context change on s_start/stop() s_start() and s_stop() grab/release vmlist_lock but were missing proper annotations. Add them. Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 170168d0a351c045adc0bee0987e51dfc82890c0 Author: Namhyung Kim Date: Tue Oct 26 14:22:02 2010 -0700 vmalloc: rename temporary variable in __insert_vmap_area() Rename redundant 'tmp' to fix following sparse warnings: mm/vmalloc.c:296:34: warning: symbol 'tmp' shadows an earlier one mm/vmalloc.c:293:24: originally declared here Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e574b5fd20027b422aa80790f710d695699b4fba Author: Namhyung Kim Date: Tue Oct 26 14:22:02 2010 -0700 rmap: make anon_vma_chain_free() static Make anon_vma_chain_free() static. It is called only in rmap.c and the corresponding alloc function is already static. Signed-off-by: Namhyung Kim Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e9a81a821d7f9c5d899cc3acdeafbd884c2c48bb Author: Namhyung Kim Date: Tue Oct 26 14:22:01 2010 -0700 rmap: wrap page_check_address() using __cond_lock() The page_check_address() conditionally grabs *@ptlp in case of returning non-NULL. Rename and wrap it using __cond_lock() removes following warnings from sparse: mm/rmap.c:472:9: warning: context imbalance in 'page_mapped_in_vma' - unexpected unlock mm/rmap.c:524:9: warning: context imbalance in 'page_referenced_one' - unexpected unlock mm/rmap.c:706:9: warning: context imbalance in 'page_mkclean_one' - unexpected unlock mm/rmap.c:1066:9: warning: context imbalance in 'try_to_unmap_one' - unexpected unlock Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ea4525b6008fb29553306ec6719f8e6930ac9499 Author: Namhyung Kim Date: Tue Oct 26 14:22:01 2010 -0700 rmap: annotate lock context change on page_[un]lock_anon_vma() The page_lock_anon_vma() conditionally grabs RCU and anon_vma lock but page_unlock_anon_vma() releases them unconditionally. This leads sparse to complain about context imbalance. Annotate them. Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1b36ba815bd91f17e31277a44dd5c6b6a5a8d97e Author: Namhyung Kim Date: Tue Oct 26 14:22:00 2010 -0700 mm: wrap follow_pte() using __cond_lock() The follow_pte() conditionally grabs *@ptlp in case of returning 0. Rename and wrap it using __cond_lock() removes following warnings: mm/memory.c:2337:9: warning: context imbalance in 'do_wp_page' - unexpected unlock mm/memory.c:3142:19: warning: context imbalance in 'handle_mm_fault' - different lock contexts for basic block Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e6219ec8195efd5640765e657810f262ad9d1a92 Author: Namhyung Kim Date: Tue Oct 26 14:22:00 2010 -0700 mm: add lock release annotation on do_wp_page() The do_wp_page() releases @ptl but was missing proper annotation. Add it. This removes following warnings from sparse: mm/memory.c:2337:9: warning: context imbalance in 'do_wp_page' - unexpected unlock mm/memory.c:3142:19: warning: context imbalance in 'handle_mm_fault' - different lock contexts for basic block Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 25ca1d6c02fe1c6d90d918867ef670d323725458 Author: Namhyung Kim Date: Tue Oct 26 14:21:59 2010 -0700 mm: wrap get_locked_pte() using __cond_lock() The get_locked_pte() conditionally grabs 'ptl' in case of returning non-NULL. This leads sparse to complain about context imbalance. Rename and wrap it using __cond_lock() to make sparse happy. Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e6223a3b19421e3a8df1352d21fd0d71093f44ae Author: Namhyung Kim Date: Tue Oct 26 14:21:59 2010 -0700 mm: add casts to/from gfp_t in gfp_to_alloc_flags() This removes following warning from sparse: mm/page_alloc.c:1934:9: warning: restricted gfp_t degrades to integer Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0116651c85e671a693dd2f56e95dd651f746c973 Author: Namhyung Kim Date: Tue Oct 26 14:21:58 2010 -0700 mm: remove temporary variable on generic_file_direct_write() 'end' shadows earlier one and is not necessary at all. Remove it and use 'pos' instead. This removes following sparse warnings: mm/filemap.c:2180:24: warning: symbol 'end' shadows an earlier one mm/filemap.c:2132:25: originally declared here Signed-off-by: Namhyung Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 68da336a14e16c2de95e987f3200995b707d7038 Author: Michel Lespinasse Date: Tue Oct 26 14:21:58 2010 -0700 x86: access_error API cleanup access_error() already takes error_code as an argument, so there is no need for an additional write flag. Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel Cc: Nick Piggin Acked-by: Wu Fengguang Cc: Ying Han Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Acked-by: "H. Peter Anvin" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d065bd810b6deb67d4897a14bfe21f8eb526ba99 Author: Michel Lespinasse Date: Tue Oct 26 14:21:57 2010 -0700 mm: retry page fault when blocking on disk transfer This change reduces mmap_sem hold times that are caused by waiting for disk transfers when accessing file mapped VMAs. It introduces the VM_FAULT_ALLOW_RETRY flag, which indicates that the call site wants mmap_sem to be released if blocking on a pending disk transfer. In that case, filemap_fault() returns the VM_FAULT_RETRY status bit and do_page_fault() will then re-acquire mmap_sem and retry the page fault. It is expected that the retry will hit the same page which will now be cached, and thus it will complete with a low mmap_sem hold time. Tests: - microbenchmark: thread A mmaps a large file and does random read accesses to the mmaped area - achieves about 55 iterations/s. Thread B does mmap/munmap in a loop at a separate location - achieves 55 iterations/s before, 15000 iterations/s after. - We are seeing related effects in some applications in house, which show significant performance regressions when running without this change. [akpm@linux-foundation.org: fix warning & crash] Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel Acked-by: Linus Torvalds Cc: Nick Piggin Reviewed-by: Wu Fengguang Cc: Ying Han Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Acked-by: "H. Peter Anvin" Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b522c94da5d9cbc73f708be5e530ebc3bbd4a031 Author: Michel Lespinasse Date: Tue Oct 26 14:21:56 2010 -0700 mm: filemap_fault: unique path for locking page Introduce a single location where filemap_fault() locks the desired page. There used to be two such places, depending if the initial find_get_page() was successful or not. Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel Acked-by: Linus Torvalds Cc: Nick Piggin Reviewed-by: Wu Fengguang Cc: Ying Han Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 182fea8f48332de085c0ae936605cb72671db9f2 Author: Richard Kennedy Date: Tue Oct 26 14:21:55 2010 -0700 mm: remove alignment padding from anon_vma on (some) 64 bit builds Reorder structure anon_vma to remove alignment padding on 64 builds when (CONFIG_KSM || CONFIG_MIGRATION). This will shrink the size of the anon_vma structure from 40 to 32 bytes & allow more objects per slab in its kmem_cache. Under slub the objects in the anon_vma kmem_cache will then be 40 bytes with 102 objects per slab. (On v2.6.36 without this patch,the size is 48 bytes and 85 objects/slab.) Signed-off-by: Richard Kennedy Reviewed-by: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ea05c8444e451f1cfbf78c68733e717ad7b8602b Author: Dima Zavin Date: Tue Oct 26 14:21:54 2010 -0700 mm: add a might_sleep_if() to dma_pool_alloc() Buggy drivers (e.g. fsl_udc) could call dma_pool_alloc from atomic context with GFP_KERNEL. In most instances, the first pool_alloc_page call would succeed and the sleeping functions would never be called. This allowed the buggy drivers to slip through the cracks. Add a might_sleep_if() checking for __GFP_WAIT in flags. Signed-off-by: Dima Zavin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d65bfacb046f3df8aa11a9cb9b6e448f6171174d Author: Peter Zijlstra Date: Tue Oct 26 14:21:54 2010 -0700 mm: highmem documentation Document outlining some of the highmem issues, started by me, edited by David. Signed-off-by: David Howells Signed-off-by: Peter Zijlstra Acked-by: Chris Metcalf Cc: Hugh Dickins Cc: Rik van Riel Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Steven Rostedt Cc: Russell King Cc: Ralf Baechle Cc: David Miller Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7a837d1bb7cb2bceb093ec639068626586a89234 Author: Peter Zijlstra Date: Tue Oct 26 14:21:53 2010 -0700 perf, x86: Fix up kmap_atomic() type Now that the KM_type stuff is history, clean up the compiler warning. Signed-off-by: Peter Zijlstra Acked-by: Chris Metcalf Cc: David Howells Cc: Hugh Dickins Cc: Rik van Riel Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Steven Rostedt Cc: Russell King Cc: Ralf Baechle Cc: David Miller Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ece0e2b6406a995c371e0311190631ea34ad851a Author: Peter Zijlstra Date: Tue Oct 26 14:21:52 2010 -0700 mm: remove pte_*map_nested() Since we no longer need to provide KM_type, the whole pte_*map_nested() API is now redundant, remove it. Signed-off-by: Peter Zijlstra Acked-by: Chris Metcalf Cc: David Howells Cc: Hugh Dickins Cc: Rik van Riel Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Steven Rostedt Cc: Russell King Cc: Ralf Baechle Cc: David Miller Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3e4d3af501cccdc8a8cca41bdbe57d54ad7e7e73 Author: Peter Zijlstra Date: Tue Oct 26 14:21:51 2010 -0700 mm: stack based kmap_atomic() Keep the current interface but ignore the KM_type and use a stack based approach. The advantage is that we get rid of crappy code like: #define __KM_PTE \ (in_nmi() ? KM_NMI_PTE : \ in_irq() ? KM_IRQ_PTE : \ KM_PTE0) and in general can stop worrying about what context we're in and what kmap slots might be appropriate for that. The downside is that FRV kmap_atomic() gets more expensive. For now we use a CPP trick suggested by Andrew: #define kmap_atomic(page, args...) __kmap_atomic(page) to avoid having to touch all kmap_atomic() users in a single patch. [ not compiled on: - mn10300: the arch doesn't actually build with highmem to begin with ] [akpm@linux-foundation.org: coding-style fixes] [akpm@linux-foundation.org: fix up drivers/gpu/drm/i915/intel_overlay.c] Acked-by: Rik van Riel Signed-off-by: Peter Zijlstra Acked-by: Chris Metcalf Cc: David Howells Cc: Hugh Dickins Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Steven Rostedt Cc: Russell King Cc: Ralf Baechle Cc: David Miller Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: Dave Airlie Cc: Li Zefan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 61ecdb801ef2cd28e32442383106d7837d76deac Author: Peter Zijlstra Date: Tue Oct 26 14:21:47 2010 -0700 mm: strictly nested kmap_atomic() Ensure kmap_atomic() usage is strictly nested Signed-off-by: Peter Zijlstra Reviewed-by: Rik van Riel Acked-by: Chris Metcalf Cc: David Howells Cc: Hugh Dickins Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Steven Rostedt Cc: Russell King Cc: Ralf Baechle Cc: David Miller Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2e30244a7cc1ff09013a1238d415b4076406388e Author: KOSAKI Motohiro Date: Tue Oct 26 14:21:46 2010 -0700 vmscan,tmpfs: treat used once pages on tmpfs as used once When a page has PG_referenced, shrink_page_list() discards it only if it is not dirty. This rule works fine if the backing filesystem is a regular one. PG_dirty is a good signal that the page was used recently because the flusher threads clean pages periodically. In addition, page writeback is costlier than simple page discard. However, when a page is on tmpfs this heuristic doesn't work because flusher threads don't write back tmpfs pages. Consequently tmpfs pages always rotate around the lru twice at least and adds unnecessary lru churn. Simple tmpfs streaming io shouldn't cause large anonymous page swap-out. Remove this unncessary reclaim bonus of tmpfs pages. Signed-off-by: KOSAKI Motohiro Cc: Hugh Dickins Reviewed-by: Johannes Weiner Reviewed-by: Rik van Riel Cc: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4cbec4c8b9fda9ec784086fe7f74cd32a8adda95 Author: Wu Fengguang Date: Tue Oct 26 14:21:45 2010 -0700 writeback: remove the internal 5% low bound on dirty_ratio The dirty_ratio was silently limited in global_dirty_limits() to >= 5%. This is not a user expected behavior. And it's inconsistent with calc_period_shift(), which uses the plain vm_dirty_ratio value. Let's remove the internal bound. At the same time, fix balance_dirty_pages() to work with the dirty_thresh=0 case. This allows applications to proceed when dirty+writeback pages are all cleaned. And ">" fits with the name "exceeded" better than ">=" does. Neil thinks it is an aesthetic improvement as well as a functional one :) Signed-off-by: Wu Fengguang Cc: Jan Kara Proposed-by: Con Kolivas Acked-by: Peter Zijlstra Reviewed-by: Rik van Riel Reviewed-by: Neil Brown Reviewed-by: KOSAKI Motohiro Cc: Michael Rubin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0e093d99763eb4cea09f8ca4f1d01f34e121d10b Author: Mel Gorman Date: Tue Oct 26 14:21:45 2010 -0700 writeback: do not sleep on the congestion queue if there are no congested BDIs or if significant congestion is not being encountered in the current zone If congestion_wait() is called with no BDI congested, the caller will sleep for the full timeout and this may be an unnecessary sleep. This patch adds a wait_iff_congested() that checks congestion and only sleeps if a BDI is congested else, it calls cond_resched() to ensure the caller is not hogging the CPU longer than its quota but otherwise will not sleep. This is aimed at reducing some of the major desktop stalls reported during IO. For example, while kswapd is operating, it calls congestion_wait() but it could just have been reclaiming clean page cache pages with no congestion. Without this patch, it would sleep for a full timeout but after this patch, it'll just call schedule() if it has been on the CPU too long. Similar logic applies to direct reclaimers that are not making enough progress. Signed-off-by: Mel Gorman Cc: Johannes Weiner Cc: Minchan Kim Cc: Wu Fengguang Cc: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Cc: Rik van Riel Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 08fc468f4eaf6683bae5bdb94743a09d8630cb80 Author: KOSAKI Motohiro Date: Tue Oct 26 14:21:44 2010 -0700 vmscan: isolate_lru_pages(): stop neighbour search if neighbour cannot be isolated isolate_lru_pages() does not just isolate LRU tail pages, but also isolates neighbour pages of the eviction page. The neighbour search does not stop even if neighbours cannot be isolated which is excessive as the lumpy reclaim will no longer result in a successful higher order allocation. This patch stops the PFN neighbour pages if an isolation fails and moves on to the next block. Signed-off-by: KOSAKI Motohiro Signed-off-by: Mel Gorman Reviewed-by: Wu Fengguang Reviewed-by: Minchan Kim Reviewed-by: KAMEZAWA Hiroyuki Cc: Johannes Weiner Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 47185052165a4c5de0a461018238375dd982c2ec Author: KOSAKI Motohiro Date: Tue Oct 26 14:21:43 2010 -0700 vmscan: remove dead code in shrink_inactive_list() After synchrounous lumpy reclaim, the page_list is guaranteed to not have active pages as page activation in shrink_page_list() disables lumpy reclaim. Remove the dead code. Signed-off-by: KOSAKI Motohiro Signed-off-by: Mel Gorman Reviewed-by: Minchan Kim Cc: Johannes Weiner Cc: Wu Fengguang Cc: Rik van Riel Cc: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 7d3579e8e61937cbba268ea9b218d006b6d64221 Author: KOSAKI Motohiro Date: Tue Oct 26 14:21:42 2010 -0700 vmscan: narrow the scenarios in whcih lumpy reclaim uses synchrounous reclaim shrink_page_list() can decide to give up reclaiming a page under a number of conditions such as 1. trylock_page() failure 2. page is unevictable 3. zone reclaim and page is mapped 4. PageWriteback() is true 5. page is swapbacked and swap is full 6. add_to_swap() failure 7. page is dirty and gfpmask don't have GFP_IO, GFP_FS 8. page is pinned 9. IO queue is congested 10. pageout() start IO, but not finished With lumpy reclaim, failures result in entering synchronous lumpy reclaim but this can be unnecessary. In cases (2), (3), (5), (6), (7) and (8), there is no point retrying. This patch causes lumpy reclaim to abort when it is known it will fail. Case (9) is more interesting. current behavior is, 1. start shrink_page_list(async) 2. found queue_congested() 3. skip pageout write 4. still start shrink_page_list(sync) 5. wait on a lot of pages 6. again, found queue_congested() 7. give up pageout write again So, it's useless time wasting. However, just skipping page reclaim is also notgood as x86 allocating a huge page needs 512 pages for example. It can have more dirty pages than queue congestion threshold (~=128). After this patch, pageout() behaves as follows; - If order > PAGE_ALLOC_COSTLY_ORDER Ignore queue congestion always. - If order <= PAGE_ALLOC_COSTLY_ORDER skip write page and disable lumpy reclaim. Signed-off-by: KOSAKI Motohiro Signed-off-by: Mel Gorman Reviewed-by: KAMEZAWA Hiroyuki Cc: Johannes Weiner Cc: Minchan Kim Cc: Wu Fengguang Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bc57e00f5e0b2480ef222c775c49552d3a930db7 Author: KOSAKI Motohiro Date: Tue Oct 26 14:21:41 2010 -0700 vmscan: synchronous lumpy reclaim should not call congestion_wait() congestion_wait() means "wait until queue congestion is cleared". However, synchronous lumpy reclaim does not need this congestion_wait() as shrink_page_list(PAGEOUT_IO_SYNC) uses wait_on_page_writeback() and it provides the necessary waiting. Signed-off-by: KOSAKI Motohiro Signed-off-by: Mel Gorman Reviewed-by: Minchan Kim Reviewed-by: Johannes Weiner Reviewed-by: Wu Fengguang Reviewed-by: KAMEZAWA Hiroyuki Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 52bb9198668968506f9d12bf35d7f5d3f094921e Author: Mel Gorman Date: Tue Oct 26 14:21:41 2010 -0700 writeback: account for time spent congestion_waited There is strong evidence to indicate a lot of time is being spent in congestion_wait(), some of it unnecessarily. This patch adds a tracepoint for congestion_wait to record when congestion_wait() was called, how long the timeout was for and how long it actually slept. Signed-off-by: Mel Gorman Reviewed-by: Minchan Kim Reviewed-by: Johannes Weiner Cc: Wu Fengguang Cc: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e11da5b4fdf01d71d73c21cb92b00595b917d7fd Author: Mel Gorman Date: Tue Oct 26 14:21:40 2010 -0700 tracing, vmscan: add trace events for LRU list shrinking There have been numerous reports of stalls that pointed at the problem being somewhere in the VM. There are multiple roots to the problems which means dealing with any of the root problems in isolation is tricky to justify on their own and they would still need integration testing. This patch series puts together two different patch sets which in combination should tackle some of the root causes of latency problems being reported. Patch 1 adds a tracepoint for shrink_inactive_list. For this series, the most important results is being able to calculate the scanning/reclaim ratio as a measure of the amount of work being done by page reclaim. Patch 2 accounts for time spent in congestion_wait. Patches 3-6 were originally developed by Kosaki Motohiro but reworked for this series. It has been noted that lumpy reclaim is far too aggressive and trashes the system somewhat. As SLUB uses high-order allocations, a large cost incurred by lumpy reclaim will be noticeable. It was also reported during transparent hugepage support testing that lumpy reclaim was trashing the system and these patches should mitigate that problem without disabling lumpy reclaim. Patch 7 adds wait_iff_congested() and replaces some callers of congestion_wait(). wait_iff_congested() only sleeps if there is a BDI that is currently congested. Patch 8 notes that any BDI being congested is not necessarily a problem because there could be multiple BDIs of varying speeds and numberous zones. It attempts to track when a zone being reclaimed contains many pages backed by a congested BDI and if so, reclaimers wait on the congestion queue. I ran a number of tests with monitoring on X86, X86-64 and PPC64. Each machine had 3G of RAM and the CPUs were X86: Intel P4 2-core X86-64: AMD Phenom 4-core PPC64: PPC970MP Each used a single disk and the onboard IO controller. Dirty ratio was left at 20. I'm just going to report for X86-64 and PPC64 in a vague attempt to keep this report short. Four kernels were tested each based on v2.6.36-rc4 traceonly-v2r2: Patches 1 and 2 to instrument vmscan reclaims and congestion_wait lowlumpy-v2r3: Patches 1-6 to test if lumpy reclaim is better waitcongest-v2r3: Patches 1-7 to only wait on congestion waitwriteback-v2r4: Patches 1-8 to detect when a zone is congested nocongest-v1r5: Patches 1-3 for testing wait_iff_congestion nodirect-v1r5: Patches 1-10 to disable filesystem writeback for better IO The tests run were as follows kernbench compile-based benchmark. Smoke test performance sysbench OLTP read-only benchmark. Will be re-run in the future as read-write micro-mapped-file-stream This is a micro-benchmark from Johannes Weiner that accesses a large sparse-file through mmap(). It was configured to run in only single-CPU mode but can be indicative of how well page reclaim identifies suitable pages. stress-highalloc Tries to allocate huge pages under heavy load. kernbench, iozone and sysbench did not report any performance regression on any machine. sysbench did pressure the system lightly and there was reclaim activity but there were no difference of major interest between the kernels. X86-64 micro-mapped-file-stream traceonly-v2r2 lowlumpy-v2r3 waitcongest-v2r3 waitwriteback-v2r4 pgalloc_dma 1639.00 ( 0.00%) 667.00 (-145.73%) 1167.00 ( -40.45%) 578.00 (-183.56%) pgalloc_dma32 2842410.00 ( 0.00%) 2842626.00 ( 0.01%) 2843043.00 ( 0.02%) 2843014.00 ( 0.02%) pgalloc_normal 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) pgsteal_dma 729.00 ( 0.00%) 85.00 (-757.65%) 609.00 ( -19.70%) 125.00 (-483.20%) pgsteal_dma32 2338721.00 ( 0.00%) 2447354.00 ( 4.44%) 2429536.00 ( 3.74%) 2436772.00 ( 4.02%) pgsteal_normal 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) pgscan_kswapd_dma 1469.00 ( 0.00%) 532.00 (-176.13%) 1078.00 ( -36.27%) 220.00 (-567.73%) pgscan_kswapd_dma32 4597713.00 ( 0.00%) 4503597.00 ( -2.09%) 4295673.00 ( -7.03%) 3891686.00 ( -18.14%) pgscan_kswapd_normal 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) pgscan_direct_dma 71.00 ( 0.00%) 134.00 ( 47.01%) 243.00 ( 70.78%) 352.00 ( 79.83%) pgscan_direct_dma32 305820.00 ( 0.00%) 280204.00 ( -9.14%) 600518.00 ( 49.07%) 957485.00 ( 68.06%) pgscan_direct_normal 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) pageoutrun 16296.00 ( 0.00%) 21254.00 ( 23.33%) 18447.00 ( 11.66%) 20067.00 ( 18.79%) allocstall 443.00 ( 0.00%) 273.00 ( -62.27%) 513.00 ( 13.65%) 1568.00 ( 71.75%) These are based on the raw figures taken from /proc/vmstat. It's a rough measure of reclaim activity. Note that allocstall counts are higher because we are entering direct reclaim more often as a result of not sleeping in congestion. In itself, it's not necessarily a bad thing. It's easier to get a view of what happened from the vmscan tracepoint report. FTrace Reclaim Statistics: vmscan traceonly-v2r2 lowlumpy-v2r3 waitcongest-v2r3 waitwriteback-v2r4 Direct reclaims 443 273 513 1568 Direct reclaim pages scanned 305968 280402 600825 957933 Direct reclaim pages reclaimed 43503 19005 30327 117191 Direct reclaim write file async I/O 0 0 0 0 Direct reclaim write anon async I/O 0 3 4 12 Direct reclaim write file sync I/O 0 0 0 0 Direct reclaim write anon sync I/O 0 0 0 0 Wake kswapd requests 187649 132338 191695 267701 Kswapd wakeups 3 1 4 1 Kswapd pages scanned 4599269 4454162 4296815 3891906 Kswapd pages reclaimed 2295947 2428434 2399818 2319706 Kswapd reclaim write file async I/O 1 0 1 1 Kswapd reclaim write anon async I/O 59 187 41 222 Kswapd reclaim write file sync I/O 0 0 0 0 Kswapd reclaim write anon sync I/O 0 0 0 0 Time stalled direct reclaim (seconds) 4.34 2.52 6.63 2.96 Time kswapd awake (seconds) 11.15 10.25 11.01 10.19 Total pages scanned 4905237 4734564 4897640 4849839 Total pages reclaimed 2339450 2447439 2430145 2436897 %age total pages scanned/reclaimed 47.69% 51.69% 49.62% 50.25% %age total pages scanned/written 0.00% 0.00% 0.00% 0.00% %age file pages scanned/written 0.00% 0.00% 0.00% 0.00% Percentage Time Spent Direct Reclaim 29.23% 19.02% 38.48% 20.25% Percentage Time kswapd Awake 78.58% 78.85% 76.83% 79.86% What is interesting here for nocongest in particular is that while direct reclaim scans more pages, the overall number of pages scanned remains the same and the ratio of pages scanned to pages reclaimed is more or less the same. In other words, while we are sleeping less, reclaim is not doing more work and as direct reclaim and kswapd is awake for less time, it would appear to be doing less work. FTrace Reclaim Statistics: congestion_wait Direct number congest waited 87 196 64 0 Direct time congest waited 4604ms 4732ms 5420ms 0ms Direct full congest waited 72 145 53 0 Direct number conditional waited 0 0 324 1315 Direct time conditional waited 0ms 0ms 0ms 0ms Direct full conditional waited 0 0 0 0 KSwapd number congest waited 20 10 15 7 KSwapd time congest waited 1264ms 536ms 884ms 284ms KSwapd full congest waited 10 4 6 2 KSwapd number conditional waited 0 0 0 0 KSwapd time conditional waited 0ms 0ms 0ms 0ms KSwapd full conditional waited 0 0 0 0 The vanilla kernel spent 8 seconds asleep in direct reclaim and no time at all asleep with the patches. MMTests Statistics: duration User/Sys Time Running Test (seconds) 10.51 10.73 10.6 11.66 Total Elapsed Time (seconds) 14.19 13.00 14.33 12.76 Overall, the tests completed faster. It is interesting to note that backing off further when a zone is congested and not just a BDI was more efficient overall. PPC64 micro-mapped-file-stream pgalloc_dma 3024660.00 ( 0.00%) 3027185.00 ( 0.08%) 3025845.00 ( 0.04%) 3026281.00 ( 0.05%) pgalloc_normal 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) pgsteal_dma 2508073.00 ( 0.00%) 2565351.00 ( 2.23%) 2463577.00 ( -1.81%) 2532263.00 ( 0.96%) pgsteal_normal 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) pgscan_kswapd_dma 4601307.00 ( 0.00%) 4128076.00 ( -11.46%) 3912317.00 ( -17.61%) 3377165.00 ( -36.25%) pgscan_kswapd_normal 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) pgscan_direct_dma 629825.00 ( 0.00%) 971622.00 ( 35.18%) 1063938.00 ( 40.80%) 1711935.00 ( 63.21%) pgscan_direct_normal 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) 0.00 ( 0.00%) pageoutrun 27776.00 ( 0.00%) 20458.00 ( -35.77%) 18763.00 ( -48.04%) 18157.00 ( -52.98%) allocstall 977.00 ( 0.00%) 2751.00 ( 64.49%) 2098.00 ( 53.43%) 5136.00 ( 80.98%) Similar trends to x86-64. allocstalls are up but it's not necessarily bad. FTrace Reclaim Statistics: vmscan Direct reclaims 977 2709 2098 5136 Direct reclaim pages scanned 629825 963814 1063938 1711935 Direct reclaim pages reclaimed 75550 242538 150904 387647 Direct reclaim write file async I/O 0 0 0 2 Direct reclaim write anon async I/O 0 10 0 4 Direct reclaim write file sync I/O 0 0 0 0 Direct reclaim write anon sync I/O 0 0 0 0 Wake kswapd requests 392119 1201712 571935 571921 Kswapd wakeups 3 2 3 3 Kswapd pages scanned 4601307 4128076 3912317 3377165 Kswapd pages reclaimed 2432523 2318797 2312673 2144616 Kswapd reclaim write file async I/O 20 1 1 1 Kswapd reclaim write anon async I/O 57 132 11 121 Kswapd reclaim write file sync I/O 0 0 0 0 Kswapd reclaim write anon sync I/O 0 0 0 0 Time stalled direct reclaim (seconds) 6.19 7.30 13.04 10.88 Time kswapd awake (seconds) 21.73 26.51 25.55 23.90 Total pages scanned 5231132 5091890 4976255 5089100 Total pages reclaimed 2508073 2561335 2463577 2532263 %age total pages scanned/reclaimed 47.95% 50.30% 49.51% 49.76% %age total pages scanned/written 0.00% 0.00% 0.00% 0.00% %age file pages scanned/written 0.00% 0.00% 0.00% 0.00% Percentage Time Spent Direct Reclaim 18.89% 20.65% 32.65% 27.65% Percentage Time kswapd Awake 72.39% 80.68% 78.21% 77.40% Again, a similar trend that the congestion_wait changes mean that direct reclaim scans more pages but the overall number of pages scanned while slightly reduced, are very similar. The ratio of scanning/reclaimed remains roughly similar. The downside is that kswapd and direct reclaim was awake longer and for a larger percentage of the overall workload. It's possible there were big differences in the amount of time spent reclaiming slab pages between the different kernels which is plausible considering that the micro tests runs after fsmark and sysbench. Trace Reclaim Statistics: congestion_wait Direct number congest waited 845 1312 104 0 Direct time congest waited 19416ms 26560ms 7544ms 0ms Direct full congest waited 745 1105 72 0 Direct number conditional waited 0 0 1322 2935 Direct time conditional waited 0ms 0ms 12ms 312ms Direct full conditional waited 0 0 0 3 KSwapd number congest waited 39 102 75 63 KSwapd time congest waited 2484ms 6760ms 5756ms 3716ms KSwapd full congest waited 20 48 46 25 KSwapd number conditional waited 0 0 0 0 KSwapd time conditional waited 0ms 0ms 0ms 0ms KSwapd full conditional waited 0 0 0 0 The vanilla kernel spent 20 seconds asleep in direct reclaim and only 312ms asleep with the patches. The time kswapd spent congest waited was also reduced by a large factor. MMTests Statistics: duration ser/Sys Time Running Test (seconds) 26.58 28.05 26.9 28.47 Total Elapsed Time (seconds) 30.02 32.86 32.67 30.88 With all patches applies, the completion times are very similar. X86-64 STRESS-HIGHALLOC traceonly-v2r2 lowlumpy-v2r3 waitcongest-v2r3waitwriteback-v2r4 Pass 1 82.00 ( 0.00%) 84.00 ( 2.00%) 85.00 ( 3.00%) 85.00 ( 3.00%) Pass 2 90.00 ( 0.00%) 87.00 (-3.00%) 88.00 (-2.00%) 89.00 (-1.00%) At Rest 92.00 ( 0.00%) 90.00 (-2.00%) 90.00 (-2.00%) 91.00 (-1.00%) Success figures across the board are broadly similar. traceonly-v2r2 lowlumpy-v2r3 waitcongest-v2r3waitwriteback-v2r4 Direct reclaims 1045 944 886 887 Direct reclaim pages scanned 135091 119604 109382 101019 Direct reclaim pages reclaimed 88599 47535 47863 46671 Direct reclaim write file async I/O 494 283 465 280 Direct reclaim write anon async I/O 29357 13710 16656 13462 Direct reclaim write file sync I/O 154 2 2 3 Direct reclaim write anon sync I/O 14594 571 509 561 Wake kswapd requests 7491 933 872 892 Kswapd wakeups 814 778 731 780 Kswapd pages scanned 7290822 15341158 11916436 13703442 Kswapd pages reclaimed 3587336 3142496 3094392 3187151 Kswapd reclaim write file async I/O 91975 32317 28022 29628 Kswapd reclaim write anon async I/O 1992022 789307 829745 849769 Kswapd reclaim write file sync I/O 0 0 0 0 Kswapd reclaim write anon sync I/O 0 0 0 0 Time stalled direct reclaim (seconds) 4588.93 2467.16 2495.41 2547.07 Time kswapd awake (seconds) 2497.66 1020.16 1098.06 1176.82 Total pages scanned 7425913 15460762 12025818 13804461 Total pages reclaimed 3675935 3190031 3142255 3233822 %age total pages scanned/reclaimed 49.50% 20.63% 26.13% 23.43% %age total pages scanned/written 28.66% 5.41% 7.28% 6.47% %age file pages scanned/written 1.25% 0.21% 0.24% 0.22% Percentage Time Spent Direct Reclaim 57.33% 42.15% 42.41% 42.99% Percentage Time kswapd Awake 43.56% 27.87% 29.76% 31.25% Scanned/reclaimed ratios again look good with big improvements in efficiency. The Scanned/written ratios also look much improved. With a better scanned/written ration, there is an expectation that IO would be more efficient and indeed, the time spent in direct reclaim is much reduced by the full series and kswapd spends a little less time awake. Overall, indications here are that allocations were happening much faster and this can be seen with a graph of the latency figures as the allocations were taking place http://www.csn.ul.ie/~mel/postings/vmscanreduce-20101509/highalloc-interlatency-hydra-mean.ps FTrace Reclaim Statistics: congestion_wait Direct number congest waited 1333 204 169 4 Direct time congest waited 78896ms 8288ms 7260ms 200ms Direct full congest waited 756 92 69 2 Direct number conditional waited 0 0 26 186 Direct time conditional waited 0ms 0ms 0ms 2504ms Direct full conditional waited 0 0 0 25 KSwapd number congest waited 4 395 227 282 KSwapd time congest waited 384ms 25136ms 10508ms 18380ms KSwapd full congest waited 3 232 98 176 KSwapd number conditional waited 0 0 0 0 KSwapd time conditional waited 0ms 0ms 0ms 0ms KSwapd full conditional waited 0 0 0 0 KSwapd full conditional waited 318 0 312 9 Overall, the time spent speeping is reduced. kswapd is still hitting congestion_wait() but that is because there are callers remaining where it wasn't clear in advance if they should be changed to wait_iff_congested() or not. Overall the sleep imes are reduced though - from 79ish seconds to about 19. MMTests Statistics: duration User/Sys Time Running Test (seconds) 3415.43 3386.65 3388.39 3377.5 Total Elapsed Time (seconds) 5733.48 3660.33 3689.41 3765.39 With the full series, the time to complete the tests are reduced by 30% PPC64 STRESS-HIGHALLOC traceonly-v2r2 lowlumpy-v2r3 waitcongest-v2r3waitwriteback-v2r4 Pass 1 17.00 ( 0.00%) 34.00 (17.00%) 38.00 (21.00%) 43.00 (26.00%) Pass 2 25.00 ( 0.00%) 37.00 (12.00%) 42.00 (17.00%) 46.00 (21.00%) At Rest 49.00 ( 0.00%) 43.00 (-6.00%) 45.00 (-4.00%) 51.00 ( 2.00%) Success rates there are *way* up particularly considering that the 16MB huge pages on PPC64 mean that it's always much harder to allocate them. FTrace Reclaim Statistics: vmscan stress-highalloc stress-highalloc stress-highalloc stress-highalloc traceonly-v2r2 lowlumpy-v2r3 waitcongest-v2r3waitwriteback-v2r4 Direct reclaims 499 505 564 509 Direct reclaim pages scanned 223478 41898 51818 45605 Direct reclaim pages reclaimed 137730 21148 27161 23455 Direct reclaim write file async I/O 399 136 162 136 Direct reclaim write anon async I/O 46977 2865 4686 3998 Direct reclaim write file sync I/O 29 0 1 3 Direct reclaim write anon sync I/O 31023 159 237 239 Wake kswapd requests 420 351 360 326 Kswapd wakeups 185 294 249 277 Kswapd pages scanned 15703488 16392500 17821724 17598737 Kswapd pages reclaimed 5808466 2908858 3139386 3145435 Kswapd reclaim write file async I/O 159938 18400 18717 13473 Kswapd reclaim write anon async I/O 3467554 228957 322799 234278 Kswapd reclaim write file sync I/O 0 0 0 0 Kswapd reclaim write anon sync I/O 0 0 0 0 Time stalled direct reclaim (seconds) 9665.35 1707.81 2374.32 1871.23 Time kswapd awake (seconds) 9401.21 1367.86 1951.75 1328.88 Total pages scanned 15926966 16434398 17873542 17644342 Total pages reclaimed 5946196 2930006 3166547 3168890 %age total pages scanned/reclaimed 37.33% 17.83% 17.72% 17.96% %age total pages scanned/written 23.27% 1.52% 1.94% 1.43% %age file pages scanned/written 1.01% 0.11% 0.11% 0.08% Percentage Time Spent Direct Reclaim 44.55% 35.10% 41.42% 36.91% Percentage Time kswapd Awake 86.71% 43.58% 52.67% 41.14% While the scanning rates are slightly up, the scanned/reclaimed and scanned/written figures are much improved. The time spent in direct reclaim and with kswapd are massively reduced, mostly by the lowlumpy patches. FTrace Reclaim Statistics: congestion_wait Direct number congest waited 725 303 126 3 Direct time congest waited 45524ms 9180ms 5936ms 300ms Direct full congest waited 487 190 52 3 Direct number conditional waited 0 0 200 301 Direct time conditional waited 0ms 0ms 0ms 1904ms Direct full conditional waited 0 0 0 19 KSwapd number congest waited 0 2 23 4 KSwapd time congest waited 0ms 200ms 420ms 404ms KSwapd full congest waited 0 2 2 4 KSwapd number conditional waited 0 0 0 0 KSwapd time conditional waited 0ms 0ms 0ms 0ms KSwapd full conditional waited 0 0 0 0 Not as dramatic a story here but the time spent asleep is reduced and we can still see what wait_iff_congested is going to sleep when necessary. MMTests Statistics: duration User/Sys Time Running Test (seconds) 12028.09 3157.17 3357.79 3199.16 Total Elapsed Time (seconds) 10842.07 3138.72 3705.54 3229.85 The time to complete this test goes way down. With the full series, we are allocating over twice the number of huge pages in 30% of the time and there is a corresponding impact on the allocation latency graph available at. http://www.csn.ul.ie/~mel/postings/vmscanreduce-20101509/highalloc-interlatency-powyah-mean.ps This patch: Add a trace event for shrink_inactive_list() and updates the sample postprocessing script appropriately. It can be used to determine how many pages were reclaimed and for non-lumpy reclaim where exactly the pages were reclaimed from. Signed-off-by: Mel Gorman Cc: Johannes Weiner Cc: Minchan Kim Cc: Wu Fengguang Cc: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 66d9a986cddbbc2ea5db013e7999c621a956cc47 Author: Shaohua Li Date: Tue Oct 26 14:21:37 2010 -0700 vmscan: delete dead code `priority' cannot be negative here. And the comment is obsolete. Signed-off-by: Shaohua Li Reviewed-by: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit bce54bbfde07e8b300f39dae14756c12a6ceca65 Author: Will Deacon Date: Tue Oct 26 14:21:37 2010 -0700 mm: fix typo in mm.h when NODE_NOT_IN_PAGE_FLAGS NODE_NOT_IN_PAGE_FLAGS is defined in mm.h when the node information is not stored in the page flags bitmap. Unfortunately, there's a typo in one of the checks for it. This patch fixes it (s/NODE_NOT_IN_PAGEFLAGS/NODE_NOT_IN_PAGE_FLAGS/). Since this has been around for ages, I doubt it's been causing any serious problems. Signed-off-by: Will Deacon Cc: Christoph Lameter Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 79da826aee6a10902ef411bc65864bd02102fa83 Author: Michael Rubin Date: Tue Oct 26 14:21:36 2010 -0700 writeback: report dirty thresholds in /proc/vmstat The kernel already exposes the user desired thresholds in /proc/sys/vm with dirty_background_ratio and background_ratio. But the kernel may alter the number requested without giving the user any indication that is the case. Knowing the actual ratios the kernel is honoring can help app developers understand how their buffered IO will be sent to the disk. $ grep threshold /proc/vmstat nr_dirty_threshold 409111 nr_dirty_background_threshold 818223 Signed-off-by: Michael Rubin Cc: Wu Fengguang Cc: Dave Chinner Cc: Jens Axboe Cc: KOSAKI Motohiro Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 2ac390370aac4aaa49cab17f328b478cbd5b3d8d Author: Michael Rubin Date: Tue Oct 26 14:21:35 2010 -0700 writeback: add /sys/devices/system/node//vmstat For NUMA node systems it is important to have visibility in memory characteristics. Two of the /proc/vmstat values "nr_written" and "nr_dirtied" are added here. # cat /sys/devices/system/node/node20/vmstat nr_written 0 nr_dirtied 0 Signed-off-by: Michael Rubin Reviewed-by: Wu Fengguang Cc: Dave Chinner Cc: Jens Axboe Cc: KOSAKI Motohiro Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit ea941f0e2a8c02ae876cd73deb4e1557248f258c Author: Michael Rubin Date: Tue Oct 26 14:21:35 2010 -0700 writeback: add nr_dirtied and nr_written to /proc/vmstat To help developers and applications gain visibility into writeback behaviour adding two entries to vm_stat_items and /proc/vmstat. This will allow us to track the "written" and "dirtied" counts. # grep nr_dirtied /proc/vmstat nr_dirtied 3747 # grep nr_written /proc/vmstat nr_written 3618 Signed-off-by: Michael Rubin Reviewed-by: Wu Fengguang Cc: Dave Chinner Cc: Jens Axboe Cc: KOSAKI Motohiro Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f629d1c9bd0dbc44a6c4f9a4a67d1646c42bfc6f Author: Michael Rubin Date: Tue Oct 26 14:21:33 2010 -0700 mm: add account_page_writeback() To help developers and applications gain visibility into writeback behaviour this patch adds two counters to /proc/vmstat. # grep nr_dirtied /proc/vmstat nr_dirtied 3747 # grep nr_written /proc/vmstat nr_written 3618 These entries allow user apps to understand writeback behaviour over time and learn how it is impacting their performance. Currently there is no way to inspect dirty and writeback speed over time. It's not possible for nr_dirty/nr_writeback. These entries are necessary to give visibility into writeback behaviour. We have /proc/diskstats which lets us understand the io in the block layer. We have blktrace for more in depth understanding. We have e2fsprogs and debugsfs to give insight into the file systems behaviour, but we don't offer our users the ability understand what writeback is doing. There is no way to know how active it is over the whole system, if it's falling behind or to quantify it's efforts. With these values exported users can easily see how much data applications are sending through writeback and also at what rates writeback is processing this data. Comparing the rates of change between the two allow developers to see when writeback is not able to keep up with incoming traffic and the rate of dirty memory being sent to the IO back end. This allows folks to understand their io workloads and track kernel issues. Non kernel engineers at Google often use these counters to solve puzzling performance problems. Patch #4 adds a pernode vmstat file with nr_dirtied and nr_written Patch #5 add writeback thresholds to /proc/vmstat Currently these values are in debugfs. But they should be promoted to /proc since they are useful for developers who are writing databases and file servers and are not debugging the kernel. The output is as below: # grep threshold /proc/vmstat nr_pages_dirty_threshold 409111 nr_pages_dirty_background_threshold 818223 This patch: This allows code outside of the mm core to safely manipulate page writeback state and not worry about the other accounting. Not using these routines means that some code will lose track of the accounting and we get bugs. Modify nilfs2 to use interface. Signed-off-by: Michael Rubin Reviewed-by: KOSAKI Motohiro Reviewed-by: Wu Fengguang Cc: KONISHI Ryusuke Cc: Jiro SEKIBA Cc: Dave Chinner Cc: Jens Axboe Cc: KOSAKI Motohiro Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0def08e3acc2c9c934e4671487029aed52202d42 Author: Vasiliy Kulikov Date: Tue Oct 26 14:21:32 2010 -0700 mm/mempolicy.c: check return code of check_range Function check_range may return ERR_PTR(...). Check for it. Signed-off-by: Vasiliy Kulikov Acked-by: David Rientjes Reviewed-by: Christoph Lameter Reviewed-by: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 74e3f3c3391d81a959f58a1191a560703a4415b4 Author: Minchan Kim Date: Tue Oct 26 14:21:31 2010 -0700 vmscan: prevent background aging of anon page in no swap system Ying Han reported that backing aging of anon pages in no swap system causes unnecessary TLB flush. When I sent a patch(69c8548175), I wanted this patch but Rik pointed out and allowed aging of anon pages to give a chance to promote from inactive to active LRU. It has a two problem. 1) non-swap system Never make sense to age anon pages. 2) swap configured but still doesn't swapon It doesn't make sense to age anon pages until swap-on time. But it's arguable. If we have aged anon pages by swapon, VM have moved anon pages from active to inactive. And in the time swapon by admin, the VM can't reclaim hot pages so we can protect hot pages swapout. But let's think about it. When does swap-on happen? It depends on admin. we can't expect it. Nonetheless, we have done aging of anon pages to protect hot pages swapout. It means we lost run time overhead when below high watermark but gain hot page swap-[in/out] overhead when VM decide swapout. Is it true? Let's think more detail. We don't promote anon pages in case of non-swap system. So even though VM does aging of anon pages, the pages would be in inactive LRU for a long time. It means many of pages in there would mark access bit again. So access bit hot/code separation would be pointless. This patch prevents unnecessary anon pages demotion in not-yet-swapon and non-configured swap system. Even, in non-configuared swap system inactive_anon_is_low can be compiled out. It could make side effect that hot anon pages could swap out when admin does swap on. But I think sooner or later it would be steady state. So it's not a big problem. We could lose someting but gain more thing(TLB flush and unnecessary function call to demote anon pages). Signed-off-by: Ying Han Signed-off-by: Minchan Kim Reviewed-by: Rik van Riel Reviewed-by: KOSAKI Motohiro Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 49ac825587f33afec8841b7fab2eb4db775014e6 Author: KAMEZAWA Hiroyuki Date: Tue Oct 26 14:21:30 2010 -0700 memory hotplug: unify is_removable and offline detection code Now, sysfs interface of memory hotplug shows whether the section is removable or not. But it checks only migrateype of pages and doesn't check details of cluster of pages. Next, memory hotplug's set_migratetype_isolate() has the same kind of check, too. This patch adds the function __count_unmovable_pages() and makes above 2 checks to use the same logic. Then, is_removable and hotremove code uses the same logic. No changes in the hotremove logic itself. TODO: need to find a way to check RECLAMABLE. But, considering bit, calling shrink_slab() against a range before starting memory hotremove sounds better. If so, this patch's logic doesn't need to be changed. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: KAMEZAWA Hiroyuki Reported-by: Michal Hocko Cc: Wu Fengguang Cc: Mel Gorman Cc: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 4b20477f588055fbe87e69435d3c2344d250f0d7 Author: KAMEZAWA Hiroyuki Date: Tue Oct 26 14:21:29 2010 -0700 memory hotplug: fix notifier's return value check Even if notifier cannot find any pages, it doesn't mean no pages are available...And, if there are no notifiers registered, this condition will be always true and memory hotplug will show -EBUSY. This is a bug but not critical. In most case, a pageblock which will be offlined is MIGRATE_MOVABLE This "notifier" is called only when the pageblock is _not_ MIGRATE_MOVABLE. But if not MIGRATE_MOVABLE, it's common case that memory hotplug will fail. So, no one notice this bug. Signed-off-by: KAMEZAWA Hiroyuki Cc: Michal Hocko Cc: Wu Fengguang Cc: Mel Gorman Cc: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit cf608ac19c95804dc2df43b1f4f9e068aa9034ab Author: Minchan Kim Date: Tue Oct 26 14:21:29 2010 -0700 mm: compaction: fix COMPACTPAGEFAILED counting Presently update_nr_listpages() doesn't have a role. That's because lists passed is always empty just after calling migrate_pages. The migrate_pages cleans up page list which have failed to migrate before returning by aaa994b3. [PATCH] page migration: handle freeing of pages in migrate_pages() Do not leave pages on the lists passed to migrate_pages(). Seems that we will not need any postprocessing of pages. This will simplify the handling of pages by the callers of migrate_pages(). At that time, we thought we don't need any postprocessing of pages. But the situation is changed. The compaction need to know the number of failed to migrate for COMPACTPAGEFAILED stat This patch makes new rule for caller of migrate_pages to call putback_lru_pages. So caller need to clean up the lists so it has a chance to postprocess the pages. [suggested by Christoph Lameter] Signed-off-by: Minchan Kim Cc: Hugh Dickins Cc: Andi Kleen Reviewed-by: Mel Gorman Reviewed-by: Wu Fengguang Acked-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e4455abb50a19562dbfdc51a8424fda9b588bd6d Author: Thadeu Lima de Souza Cascardo Date: Tue Oct 26 14:21:28 2010 -0700 mm: only build per-node scan_unevictable functions when NUMA is enabled Non-NUMA systems do never create these files anyway, since they are only created by driver subsystem when NUMA is configured. [akpm@linux-foundation.org: cleanup] Signed-off-by: Thadeu Lima de Souza Cascardo Reviewed-by: KOSAKI Motohiro Cc: Lee Schermerhorn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f19e77a3dc884510dba740caa6dee126b7d40156 Author: zeal Date: Tue Oct 26 14:21:27 2010 -0700 include/linux/pageblock-flags.h: fix set_pageblock_flags() macro definiton The presently-unused macro was missing one parameter. Signed-off-by: zeal Acked-by: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1b430beee5e388605dfb092b214ef0320f752cf6 Author: Wu Fengguang Date: Tue Oct 26 14:21:26 2010 -0700 writeback: remove nonblocking/encountered_congestion references This removes more dead code that was somehow missed by commit 0d99519efef (writeback: remove unused nonblocking and congestion checks). There are no behavior change except for the removal of two entries from one of the ext4 tracing interface. The nonblocking checks in ->writepages are no longer used because the flusher now prefer to block on get_request_wait() than to skip inodes on IO congestion. The latter will lead to more seeky IO. The nonblocking checks in ->writepage are no longer used because it's redundant with the WB_SYNC_NONE check. We no long set ->nonblocking in VM page out and page migration, because a) it's effectively redundant with WB_SYNC_NONE in current code b) it's old semantic of "Don't get stuck on request queues" is mis-behavior: that would skip some dirty inodes on congestion and page out others, which is unfair in terms of LRU age. Inspired by Christoph Hellwig. Thanks! Signed-off-by: Wu Fengguang Cc: Theodore Ts'o Cc: David Howells Cc: Sage Weil Cc: Steve French Cc: Chris Mason Cc: Jens Axboe Cc: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit d19d5476f4b9f91d2de92b91588bb118beba6c0d Author: David Rientjes Date: Tue Oct 26 14:21:26 2010 -0700 oom: fix locking for oom_adj and oom_score_adj The locking order in oom_adjust_write() and oom_score_adj_write() for task->alloc_lock and task->sighand->siglock is reversed, and lockdep notices that irqs could encounter an ABBA scenario. This fixes the locking order so that we always take task_lock(task) prior to lock_task_sighand(task). Signed-off-by: David Rientjes Reported-by: Andrew Morton Cc: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Cc: Rik van Riel Cc: Ying Han Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 723548bff1dde9ab6bdb23f4bb92277c4da49473 Author: David Rientjes Date: Tue Oct 26 14:21:25 2010 -0700 oom: rewrite error handling for oom_adj and oom_score_adj tunables It's better to use proper error handling in oom_adjust_write() and oom_score_adj_write() instead of duplicating the locking order on various exit paths. Suggested-by: Andrew Morton Signed-off-by: David Rientjes Cc: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Cc: Rik van Riel Cc: Ying Han Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1e99bad0d9c12a4aaa60cd812c84ef152564bcf5 Author: David Rientjes Date: Tue Oct 26 14:21:24 2010 -0700 oom: kill all threads sharing oom killed task's mm It's necessary to kill all threads that share an oom killed task's mm if the goal is to lead to future memory freeing. This patch reintroduces the code removed in 8c5cd6f3 (oom: oom_kill doesn't kill vfork parent (or child)) since it is obsoleted. It's now guaranteed that any task passed to oom_kill_task() does not share an mm with any thread that is unkillable. Thus, we're safe to issue a SIGKILL to any thread sharing the same mm. This is especially necessary to solve an mm->mmap_sem livelock issue whereas an oom killed thread must acquire the lock in the exit path while another thread is holding it in the page allocator while trying to allocate memory itself (and will preempt the oom killer since a task was already killed). Since tasks with pending fatal signals are now granted access to memory reserves, the thread holding the lock may quickly allocate and release the lock so that the oom killed task may exit. This mainly is for threads that are cloned with CLONE_VM but not CLONE_THREAD, so they are in a different thread group. Non-NPTL threads exist in the wild and this change is necessary to prevent the livelock in such cases. We care more about preventing the livelock than incurring the additional tasklist in the oom killer when a task has been killed. Systems that are sufficiently large to not want the tasklist scan in the oom killer in the first place already have the option of enabling /proc/sys/vm/oom_kill_allocating_task, which was designed specifically for that purpose. This code had existed in the oom killer for over eight years dating back to the 2.4 kernel. [akpm@linux-foundation.org: add nice comment] Signed-off-by: David Rientjes Acked-by: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Cc: Rik van Riel Cc: Ying Han Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit e18641e19a9204f241f04a5ac700168dcd18de4f Author: David Rientjes Date: Tue Oct 26 14:21:23 2010 -0700 oom: avoid killing a task if a thread sharing its mm cannot be killed The oom killer's goal is to kill a memory-hogging task so that it may exit, free its memory, and allow the current context to allocate the memory that triggered it in the first place. Thus, killing a task is pointless if other threads sharing its mm cannot be killed because of its /proc/pid/oom_adj or /proc/pid/oom_score_adj value. This patch checks whether any other thread sharing p->mm has an oom_score_adj of OOM_SCORE_ADJ_MIN. If so, the thread cannot be killed and oom_badness(p) returns 0, meaning it's unkillable. Signed-off-by: David Rientjes Cc: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Cc: Rik van Riel Cc: Ying Han Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 3d5992d2ac7dc09aed8ab537cba074589f0f0a52 Author: Ying Han Date: Tue Oct 26 14:21:23 2010 -0700 oom: add per-mm oom disable count It's pointless to kill a task if another thread sharing its mm cannot be killed to allow future memory freeing. A subsequent patch will prevent kills in such cases, but first it's necessary to have a way to flag a task that shares memory with an OOM_DISABLE task that doesn't incur an additional tasklist scan, which would make select_bad_process() an O(n^2) function. This patch adds an atomic counter to struct mm_struct that follows how many threads attached to it have an oom_score_adj of OOM_SCORE_ADJ_MIN. They cannot be killed by the kernel, so their memory cannot be freed in oom conditions. This only requires task_lock() on the task that we're operating on, it does not require mm->mmap_sem since task_lock() pins the mm and the operation is atomic. [rientjes@google.com: changelog and sys_unshare() code] [rientjes@google.com: protect oom_disable_count with task_lock in fork] [rientjes@google.com: use old_mm for oom_disable_count in exec] Signed-off-by: Ying Han Signed-off-by: David Rientjes Cc: KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 0f4d208f1975f16f269134cee5f44c1f048581da Author: Matt Mackall Date: Tue Oct 26 14:21:22 2010 -0700 Documentation/filesystems/proc.txt: improve smaps field documentation Signed-off-by: Matt Mackall Cc: Nikanth Karthikesan Cc: Balbir Singh Cc: Wu Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a4f7326da2bfe788b85509ec0c261e64596cdde4 Author: WANG Cong Date: Tue Oct 26 14:21:21 2010 -0700 vmcore: it is not experimental any more We use vmcore in our production kernel for a long time, it is pretty stable now. So I don't think we need to mark it as experimental any more. Signed-off-by: WANG Cong Acked-by: Neil Horman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit dbec921370ea049eccd38e34e067373fb3bd9b01 Author: Richard Weinberger Date: Tue Oct 26 14:21:21 2010 -0700 um: fix IRQ flag handling naming Commit df9ee292 ("Fix IRQ flag handling naming") changed the IRQ flag handling naming scheme and broke UML: In file included from arch/um/include/asm/fixmap.h:5, from arch/um/include/shared/um_uaccess.h:10, from arch/um/include/asm/uaccess.h:41, from arch/um/include/asm/thread_info.h:13, from include/linux/thread_info.h:56, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/stat.h:60, from include/linux/module.h:10, from init/main.c:13: arch/um/include/asm/system.h:11:1: warning: "local_save_flags" redefined This patch brings the new scheme to UML and makes it work again. Signed-off-by: Richard Weinberger Acked-by: David Howells Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 8474b591faf3bb0a1e08a60d21d6baac498f15e4 Author: Masanori ITOH Date: Tue Oct 26 14:21:20 2010 -0700 percpu: fix list_head init bug in __percpu_counter_init() WARNING: at lib/list_debug.c:26 __list_add+0x3f/0x81() Hardware name: Express5800/B120a [N8400-085] list_add corruption. next->prev should be prev (ffffffff81a7ea00), but was dead000000200200. (next=ffff88080b872d58). Modules linked in: aoe ipt_MASQUERADE iptable_nat nf_nat autofs4 sunrpc bridge 8021q garp stp llc ipv6 cpufreq_ondemand acpi_cpufreq freq_table dm_round_robin dm_multipath kvm_intel kvm uinput lpfc scsi_transport_fc igb ioatdma scsi_tgt i2c_i801 i2c_core dca iTCO_wdt iTCO_vendor_support pcspkr shpchp megaraid_sas [last unloaded: aoe] Pid: 54, comm: events/3 Tainted: G W 2.6.34-vanilla1 #1 Call Trace: [] warn_slowpath_common+0x7c/0x94 [] warn_slowpath_fmt+0x41/0x43 [] __list_add+0x3f/0x81 [] __percpu_counter_init+0x59/0x6b [] bdi_init+0x118/0x17e [] blk_alloc_queue_node+0x79/0x143 [] blk_alloc_queue+0x11/0x13 [] aoeblk_gdalloc+0x8e/0x1c9 [aoe] [] aoecmd_sleepwork+0x25/0xa8 [aoe] [] worker_thread+0x1a9/0x237 [] ? aoecmd_sleepwork+0x0/0xa8 [aoe] [] ? autoremove_wake_function+0x0/0x39 [] ? worker_thread+0x0/0x237 [] kthread+0x7f/0x87 [] kernel_thread_helper+0x4/0x10 [] ? kthread+0x0/0x87 [] ? kernel_thread_helper+0x0/0x10 It's because there is no initialization code for a list_head contained in the struct backing_dev_info under CONFIG_HOTPLUG_CPU, and the bug comes up when block device drivers calling blk_alloc_queue() are used. In case of me, I got them by using aoe. Signed-off-by: Masanori Itoh Cc: Tejun Heo Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 52c5171214ff3327961d0ce0db7e8d2ce55004fd Author: Andrew Morton Date: Tue Oct 26 14:21:19 2010 -0700 kfifo: disable __kfifo_must_check_helper() This helper is wrong: it coerces signed values into unsigned ones, so code such as if (kfifo_alloc(...) < 0) { error } will fail to detect the error. So let's disable __kfifo_must_check_helper() for 2.6.36. Cc: Randy Dunlap Cc: Stefani Seibold Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1b627d5771312c92404b66f0a0b16f66036dd2e1 Author: Richard Weinberger Date: Tue Oct 26 14:21:18 2010 -0700 hostfs: fix UML crash: remove f_spare from hostfs 365b1818 ("add f_flags to struct statfs(64)") resized f_spare within struct statfs which caused a UML crash. There is no need to copy f_spare. Signed-off-by: Richard Weinberger Reported-by: Toralf Förster Tested-by: Toralf Förster Cc: Christoph Hellwig Cc: Al Viro Cc: Jeff Dike Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit de5e2ddf9bb3ce7b643223b9b0718062254f302f Author: Eric Dumazet Date: Tue Oct 26 14:21:17 2010 -0700 ipmi: proper spinlock initialization Unloading ipmi module can trigger following error. (if CONFIG_DEBUG_SPINLOCK=y) [ 9633.779590] BUG: spinlock bad magic on CPU#1, rmmod/7170 [ 9633.779606] lock: f41f5414, .magic: 00000000, .owner: /-1, .owner_cpu: 0 [ 9633.779626] Pid: 7170, comm: rmmod Not tainted 2.6.36-rc7-11474-gb71eb1e-dirty #328 [ 9633.779644] Call Trace: [ 9633.779657] [] ? printk+0x18/0x1c [ 9633.779672] [] spin_bug+0xa3/0xf0 [ 9633.779685] [] do_raw_spin_lock+0x7d/0x160 [ 9633.779702] [] ? release_sysfs_dirent+0x47/0xb0 [ 9633.779718] [] ? sysfs_addrm_finish+0xa8/0xd0 [ 9633.779734] [] _raw_spin_lock_irqsave+0xc/0x20 [ 9633.779752] [] cleanup_one_si+0x6a/0x200 [ipmi_si] [ 9633.779768] [] ? sysfs_hash_and_remove+0x72/0x80 [ 9633.779786] [] ipmi_pnp_remove+0xd/0xf [ipmi_si] [ 9633.779802] [] pnp_device_remove+0x1b/0x40 Fix this by initializing spinlocks in a smi_info_alloc() helper function, right after memory allocation and clearing. Signed-off-by: Eric Dumazet Acked-by: David Miller Cc: Yinghai Lu Acked-by: Corey Minyard Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 1f9fa5216eacf4fdf9d3e4ab57feb8b642f0e78b Author: Michael Hennerich Date: Tue Oct 26 14:21:16 2010 -0700 drivers/misc/ad525x_dpot.c: fix typo in spi write16 and write24 transfer counts This is a bug fix. Some SPI connected devices using 16/24 bit accesses, previously failed, now work. This typo slipped in after testing, during some restructuring. Signed-off-by: Michael Hennerich Cc: Mike Frysinger Cc: Chris Verges Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 6915e04f8847bea16d0890f559694ad8eedd026c Author: Richard Weinberger Date: Tue Oct 26 14:21:16 2010 -0700 um: remove PAGE_SIZE alignment in linker script causing kernel segfault. The linker script cleanup that I did in commit 5d150a97f93 ("um: Clean up linker script using standard macros.") (2.6.32) accidentally introduced an ALIGN(PAGE_SIZE) when converting to use INIT_TEXT_SECTION; Richard Weinberger reported that this causes the kernel to segfault with CONFIG_STATIC_LINK=y. I'm not certain why this extra alignment is a problem, but it seems likely it is because previously __init_begin = _stext = _text = _sinittext and with the extra ALIGN(PAGE_SIZE), _sinittext becomes different from the rest. So there is likely a bug here where something is assuming that _sinittext is the same as one of those other symbols. But reverting the accidental change fixes the regression, so it seems worth committing that now. Signed-off-by: Tim Abbott Reported-by: Richard Weinberger Cc: Jeff Dike Tested by: Antoine Martin Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 09358972bff5ce99de496bbba97c85d417b3c054 Author: Robin Holt Date: Tue Oct 26 14:21:15 2010 -0700 sgi-xp: incoming XPC channel messages can come in after the channel's partition structures have been torn down Under some workloads, some channel messages have been observed being delayed on the sending side past the point where the receiving side has been able to tear down its partition structures. This condition is already detected in xpc_handle_activate_IRQ_uv(), but that information is not given to xpc_handle_activate_mq_msg_uv(). As a result, xpc_handle_activate_mq_msg_uv() assumes the structures still exist and references them, causing a NULL-pointer deref. Signed-off-by: Robin Holt Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 482db6df1746c4fa7d64a2441d4cb2610249c679 Author: Richard Weinberger Date: Tue Oct 26 14:21:13 2010 -0700 um: fix global timer issue when using CONFIG_NO_HZ This fixes a issue which was introduced by fe2cc53e ("uml: track and make up lost ticks"). timeval_to_ns() returns long long and not int. Due to that UML's timer did not work properlt and caused timer freezes. Signed-off-by: Richard Weinberger Acked-by: Pekka Enberg Cc: Jeff Dike Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit b7f50cfa3630b6e079929ffccfd442d65064ee1f Author: Mel Gorman Date: Tue Oct 26 14:21:11 2010 -0700 mm, page-allocator: do not check the state of a non-existant buddy during free There is a bug in commit 6dda9d55 ("page allocator: reduce fragmentation in buddy allocator by adding buddies that are merging to the tail of the free lists") that means a buddy at order MAX_ORDER is checked for merging. A page of this order never exists so at times, an effectively random piece of memory is being checked. Alan Curry has reported that this is causing memory corruption in userspace data on a PPC32 platform (http://lkml.org/lkml/2010/10/9/32). It is not clear why this is happening. It could be a cache coherency problem where pages mapped in both user and kernel space are getting different cache lines due to the bad read from kernel space (http://lkml.org/lkml/2010/10/13/179). It could also be that there are some special registers being io-remapped at the end of the memmap array and that a read has special meaning on them. Compiler bugs have been ruled out because the assembly before and after the patch looks relatively harmless. This patch fixes the problem by ensuring we are not reading a possibly invalid location of memory. It's not clear why the read causes corruption but one way or the other it is a buggy read. Signed-off-by: Mel Gorman Cc: Corrado Zoccolo Reported-by: Alan Curry Cc: KOSAKI Motohiro Cc: Christoph Lameter Cc: Rik van Riel Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit a75d377686037982cbec320bb770b19fe7be6a5d Author: Andrew Morton Date: Tue Oct 26 14:21:10 2010 -0700 types.h: move misplaced comment This comment landed in the wrong place. Cc: Andi Kleen Cc: Arnd Bergmann Cc: David Miller Cc: Eric Paris Cc: Jan Engelhardt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit f8f72ad5396987e05a42cf7eff826fb2a15ff148 Author: KAMEZAWA Hiroyuki Date: Tue Oct 26 14:21:10 2010 -0700 mm: fix return value of scan_lru_pages in memory unplug scan_lru_pages returns pfn. So, it's type should be "unsigned long" not "int". Note: I guess this has been work until now because memory hotplug tester's machine has not very big memory.... physical address < 32bit << PAGE_SHIFT. Reported-by: KOSAKI Motohiro Signed-off-by: KAMEZAWA Hiroyuki Reviewed-by: KOSAKI Motohiro Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds commit 116e9535fe5e00bafab7a637f306b110cf95cff5 Merge: fc4ec9b 97cb7e4 ca7cf94 aa1ad26 625fbd3 8ad330a c3aa9b1 7454159 d0d68b8 52106bd 2ca78d2 19081f3 Author: Roland Dreier Date: Tue Oct 26 16:09:11 2010 -0700 Merge branches 'amso1100', 'cma', 'cxgb3', 'cxgb4', 'ehca', 'iboe', 'ipoib', 'misc', 'mlx4', 'nes', 'qib' and 'srp' into for-next commit 2ca78d23a758d3299abd128556debff4c1fefb16 Author: Jason Gunthorpe Date: Mon Oct 25 21:19:06 2010 -0700 IB/qib: clean up properly if pci_set_consistent_dma_mask() fails Clean up properly if pci_set_consistent_dma_mask() fails. Signed-off-by: Jason Gunthorpe Signed-off-by: Roland Dreier commit 5d26a1df23f7e904e7b03bb2580288f6ae7cfe48 Author: Ralph Campbell Date: Fri Oct 22 15:29:54 2010 -0700 IB/qib: Allow driver to load if PCIe AER fails Some PCIe root complex chip sets don't support advanced error reporting. Allow the driver to load OK if pci_enable_pcie_error_reporting() fails. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier commit 9e43e0106d6f526724911e80adb97dbcec520b5d Author: Ralph Campbell Date: Fri Oct 22 15:29:46 2010 -0700 IB/qib: Fix uninitialized pointer if CONFIG_PCI_MSI not set If CONFIG_PCI_MSI is not set, and a QLE7140 is present, the pointer "dd" is uninitialized. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier commit 82fdb0ab54096b8dbc8558e2dd37e9e0ac180db8 Author: Jason Gunthorpe Date: Fri Oct 22 20:41:24 2010 +0000 IB/qib: Fix extra log level in qib_early_err() Noticed this odd looking thing in dmesg: ib_qib 0000:02:00.0: <3>ib_qib: Unable to enable pcie error reporting: -5 which is due to a bad use of dev_info. Signed-off-by: Jason Gunthorpe Acked-by: Ralph Campbell Signed-off-by: Roland Dreier commit 1af3c2e45e7a641e774bbb84fa428f2f0bf2d9c9 Author: Bjorn Helgaas Date: Tue Oct 26 15:41:54 2010 -0600 x86: allocate space within a region top-down Request that allocate_resource() use available space from high addresses first, rather than the default of using low addresses first. The most common place this makes a difference is when we move or assign new PCI device resources. Low addresses are generally scarce, so it's better to use high addresses when possible. This follows Windows practice for PCI allocation. Reference: https://bugzilla.kernel.org/show_bug.cgi?id=16228#c42 Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit 419afdf53cca794a190014593b4778e2e9d64cf3 Author: Bjorn Helgaas Date: Tue Oct 26 15:41:49 2010 -0600 x86: update iomem_resource end based on CPU physical address capabilities The iomem_resource map reflects the available physical address space. We statically initialize the end to -1, i.e., 0xffffffff_ffffffff, but of course we can only use as much as the CPU can address. This patch updates the end based on the CPU capabilities, so we don't mistakenly allocate space that isn't usable, as we're likely to do when allocating from the top-down. Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit dc9887dc02e37bcf83f4e792aa14b07782ef54cf Author: Bjorn Helgaas Date: Tue Oct 26 15:41:44 2010 -0600 x86/PCI: allocate space from the end of a region, not the beginning Allocate from the end of a region, not the beginning. For example, if we need to allocate 0x800 bytes for a device on bus 0000:00 given these resources: [mem 0xbff00000-0xdfffffff] PCI Bus 0000:00 [mem 0xc0000000-0xdfffffff] PCI Bus 0000:02 the available space at [mem 0xbff00000-0xbfffffff] is passed to the alignment callback (pcibios_align_resource()). Prior to this patch, we would put the new 0x800 byte resource at the beginning of that available space, i.e., at [mem 0xbff00000-0xbff007ff]. With this patch, we put it at the end, at [mem 0xbffff800-0xbfffffff]. Reference: https://bugzilla.kernel.org/show_bug.cgi?id=16228#c41 Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit b126b4703afa4010b161784a43650337676dd03b Author: Bjorn Helgaas Date: Tue Oct 26 15:41:39 2010 -0600 PCI: allocate bus resources from the top down Allocate space from the highest-address PCI bus resource first, then work downward. Previously, we looked for space in PCI host bridge windows in the order we discovered the windows. For example, given the following windows (discovered via an ACPI _CRS method): pci_root PNP0A03:00: host bridge window [mem 0x000a0000-0x000bffff] pci_root PNP0A03:00: host bridge window [mem 0x000c0000-0x000effff] pci_root PNP0A03:00: host bridge window [mem 0x000f0000-0x000fffff] pci_root PNP0A03:00: host bridge window [mem 0xbff00000-0xf7ffffff] pci_root PNP0A03:00: host bridge window [mem 0xff980000-0xff980fff] pci_root PNP0A03:00: host bridge window [mem 0xff97c000-0xff97ffff] pci_root PNP0A03:00: host bridge window [mem 0xfed20000-0xfed9ffff] we attempted to allocate from [mem 0x000a0000-0x000bffff] first, then [mem 0x000c0000-0x000effff], and so on. With this patch, we allocate from [mem 0xff980000-0xff980fff] first, then [mem 0xff97c000-0xff97ffff], [mem 0xfed20000-0xfed9ffff], etc. Allocating top-down follows Windows practice, so we're less likely to trip over BIOS defects in the _CRS description. On the machine above (a Dell T3500), the [mem 0xbff00000-0xbfffffff] region doesn't actually work and is likely a BIOS defect. The symptom is that we move the AHCI controller to 0xbff00000, which leads to "Boot has failed, sleeping forever," a BUG in ahci_stop_engine(), or some other boot failure. Reference: https://bugzilla.kernel.org/show_bug.cgi?id=16228#c43 Reference: https://bugzilla.redhat.com/show_bug.cgi?id=620313 Reference: https://bugzilla.redhat.com/show_bug.cgi?id=629933 Reported-by: Brian Bloniarz Reported-and-tested-by: Stefan Becker Reported-by: Denys Vlasenko Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit e7f8567db9a7f6b3151b0b275e245c1cef0d9c70 Author: Bjorn Helgaas Date: Tue Oct 26 15:41:33 2010 -0600 resources: support allocating space within a region from the top down Allocate space from the top of a region first, then work downward, if an architecture desires this. When we allocate space from a resource, we look for gaps between children of the resource. Previously, we always looked at gaps from the bottom up. For example, given this: [mem 0xbff00000-0xf7ffffff] PCI Bus 0000:00 [mem 0xbff00000-0xbfffffff] gap -- available [mem 0xc0000000-0xdfffffff] PCI Bus 0000:02 [mem 0xe0000000-0xf7ffffff] gap -- available we attempted to allocate from the [mem 0xbff00000-0xbfffffff] gap first, then the [mem 0xe0000000-0xf7ffffff] gap. With this patch an architecture can choose to allocate from the top gap [mem 0xe0000000-0xf7ffffff] first. We can't do this across the board because iomem_resource.end is initialized to 0xffffffff_ffffffff on 64-bit architectures, and most machines can't address the entire 64-bit physical address space. Therefore, we only allocate top-down if the arch requests it by clearing "resource_alloc_from_bottom". Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit a1862e31079149a52b6223776228c3aee493d4a7 Author: Bjorn Helgaas Date: Tue Oct 26 15:41:28 2010 -0600 resources: handle overflow when aligning start of available area If tmp.start is near ~0, ALIGN(tmp.start) may overflow, which would make us think there's more available space than there really is. We would likely return something that conflicts with a previous resource, which would cause a failure when allocate_resource() requests the newly- allocated region. Reference: https://bugzilla.redhat.com/show_bug.cgi?id=646027 Reported-by: Fabrice Bellet Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit 6909ba14c25b4db6be2ff89f4fa0fac2d70151a0 Author: Bjorn Helgaas Date: Tue Oct 26 15:41:23 2010 -0600 resources: ensure callback doesn't allocate outside available space The alignment callback returns a proposed location, which may have been adjusted to avoid ISA aliases or for other architecture-specific reasons. We already had a check ("tmp.start < tmp.end") to make sure the callback doesn't return an area that extends past the available area. This patch reworks the check to make sure it doesn't return an area that extends either below or above the available area. Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit 5d6b1fa301b13cc651ee717a9b518124dea2f814 Author: Bjorn Helgaas Date: Tue Oct 26 15:41:18 2010 -0600 resources: factor out resource_clip() to simplify find_resource() This factors out the min/max clipping to simplify find_resource(). No functional change. Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit a9cea017411c95ec789092971f9baaef1f826883 Author: Bjorn Helgaas Date: Tue Oct 26 15:41:13 2010 -0600 resources: add a default alignf to simplify find_resource() This removes a test from find_resource(), which is getting cluttered. No functional change. Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit c8f730b1ab825f06733e1c074264f0078721f365 Author: Russ Anderson Date: Tue Oct 26 16:27:28 2010 -0500 x86, uv: Enable Westmere support on SGI UV Enable Westmere support on SGI UV. The UV initialization code is dependent on the APICID bits. Westmere-EX uses different APIC bit mapping than Nehalem-EX. This code reads the apic shift value from a UV MMR to do the proper bit decoding to determint the pnode. Signed-off-by: Russ Anderson LKML-Reference: <20101026212728.GB15071@sgi.com> Signed-off-by: H. Peter Anvin commit aa1ad26089a90d5b7e2c908835ba6dc930eed019 Author: Joe Perches Date: Mon Oct 25 19:44:22 2010 -0700 RDMA/cxgb4: Remove unnecessary KERN_ use Signed-off-by: Joe Perches Acked-by: Steve Wise Signed-off-by: Roland Dreier commit ca7cf94f8bf77bf0dfb35b615d82ac76a0ed77ff Author: Joe Perches Date: Mon Oct 25 19:44:22 2010 -0700 RDMA/cxgb3: Remove unnecessary KERN_ use Signed-off-by: Joe Perches Acked-by: Steve Wise Signed-off-by: Roland Dreier commit c25d29952b2a8c9aaf00e081c9162a0e383030cd Author: Len Brown Date: Sat Oct 23 23:25:53 2010 -0400 intel_idle: do not use the LAPIC timer for ATOM C2 If we use the LAPIC timer during ATOM C2 on some nvidia chisets, the system stalls. https://bugzilla.kernel.org/show_bug.cgi?id=21032 Signed-off-by: Len Brown commit 7a876b0efcba3804da3051313445fa7be751cab7 Author: Glenn Wurster Date: Mon Sep 27 07:10:10 2010 +0000 IPv6: Temp addresses are immediately deleted. There is a bug in the interaction between ipv6_create_tempaddr and addrconf_verify. Because ipv6_create_tempaddr uses the cstamp and tstamp from the public address in creating a private address, if we have not received a router advertisement in a while, tstamp + temp_valid_lft might be < now. If this happens, the new address is created inside ipv6_create_tempaddr, then the loop within addrconf_verify starts again and the address is immediately deleted. We are left with no temporary addresses on the interface, and no more will be created until the public IP address is updated. To avoid this, set the expiry time to be the minimum of the time left on the public address or the config option PLUS the current age of the public interface. Signed-off-by: Glenn Wurster Signed-off-by: David S. Miller commit aed65501e8c072b52c5b4dc807cd938659329673 Author: Glenn Wurster Date: Mon Sep 27 07:04:30 2010 +0000 IPv6: Create temporary address if none exists. If privacy extentions are enabled, but no current temporary address exists, then create one when we get a router advertisement. Signed-off-by: Glenn Wurster Signed-off-by: David S. Miller commit ea5b8f73933e34d2b47a65284c46d26d49e7edb9 Author: Stefano Stabellini Date: Tue Oct 26 17:28:33 2010 +0100 xen: initialize cpu masks for pv guests in xen_smp_init Pv guests don't have ACPI and need the cpu masks to be set correctly as early as possible so we call xen_fill_possible_map from xen_smp_init. On the other hand the initial domain supports ACPI so in this case we skip xen_fill_possible_map and rely on it. However Xen might limit the number of cpus usable by the domain, so we filter those masks during smp initialization using the VCPUOP_is_up hypercall. It is important that the filtering is done before xen_setup_vcpu_info_placement. Signed-off-by: Stefano Stabellini commit e94be5f3628565d0968d668341d9dd468700516d Author: Liam Girdwood Date: Tue Oct 26 20:07:43 2010 +0100 ASoC: fsl - fix build error in pcm030-audio-fabric.c Fix build error:- sound/soc/fsl/pcm030-audio-fabric.c:27:33: fatal error: sound/soc-of-simple.h: No such file or directory Signed-off-by: Liam Girdwood Signed-off-by: Takashi Iwai commit 3342b9680fbd6535f65148f5e95e581bc75be9cc Author: Julia Lawall Date: Tue Oct 26 12:25:38 2010 +0200 sound/oss/sb_ess.c: delete double assignment Delete successive assignments to the same location. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression i; @@ *i = ...; i = ...; // Signed-off-by: Julia Lawall Signed-off-by: Takashi Iwai commit 00204c3396469f407bac56e1475ea16e4a279b13 Author: Arnaldo Carvalho de Melo Date: Tue Oct 26 17:07:33 2010 -0200 perf python scripting: Add futex-contention script The equivalent to this SystemTAP script: http://sourceware.org/systemtap/wiki/WSFutexContention [root@doppio ~]# perf trace futex-contention Press control+C to stop and show the summary ^Cnpviewer.bin[15242] lock 7f0a8be19104 contended 29 times, 72806 avg ns npviewer.bin[15242] lock 7f0a8be19130 contended 2 times, 1355 avg ns synergyc[17245] lock f127f4 contended 1 times, 1830569 avg ns firefox[15116] lock 7f2b7238af0c contended 168 times, 1230390 avg ns synergyc[17245] lock f2fc20 contended 1 times, 33149 avg ns npviewer.bin[15255] lock 7f0a8be19074 contended 155 times, 73047 avg ns npviewer.bin[15255] lock 7f0a8be190a0 contended 127 times, 7088 avg ns synergyc[17247] lock f12854 contended 1 times, 46741 avg ns synergyc[17245] lock f12610 contended 1 times, 7358 avg ns [root@doppio ~]# Cc: Frederic Weisbecker Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo commit 7e31842441776b4d6ec7fd916c91663ad05b7814 Merge: 1bd64d4 b1d248d Author: Len Brown Date: Tue Oct 26 14:51:00 2010 -0400 Merge branch 'misc' into release commit 1bd64d42abdd4f9d44f77011a31f0292112f4c3b Merge: 4895ae6 4a3cba5 Author: Len Brown Date: Tue Oct 26 14:50:56 2010 -0400 Merge branch 'acpi-mmio' into release Conflicts: drivers/acpi/osl.c Signed-off-by: Len Brown commit ded85aa86bff953190cb893fceeecaadcab53a80 Author: Eric Dumazet Date: Tue Oct 26 03:24:16 2010 +0000 fib_hash: fix rcu sparse and logical errors While fixing CONFIG_SPARSE_RCU_POINTER errors, I had to fix accesses to fz->fz_hash for real. - &fz->fz_hash[fn_hash(f->fn_key, fz)] + rcu_dereference(fz->fz_hash) + fn_hash(f->fn_key, fz) Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit ebb9fed2defa55f2ca91c8be582c59612e9940d1 Author: Eric Dumazet Date: Sat Oct 23 09:44:25 2010 +0000 fib: fix fib_nl_newrule() Some panic reports in fib_rules_lookup() show a rule could have a NULL pointer as a next pointer in the rules_list. This can actually happen because of a bug in fib_nl_newrule() : It checks if current rule is the destination of unresolved gotos. (Other rules have gotos to this about to be inserted rule) Problem is it does the resolution of the gotos before the rule is inserted in the rules_list (and has a valid next pointer) Fix this by moving the rules_list insertion before the changes on gotos. A lockless reader can not any more follow a ctarget pointer, unless destination is ready (has a valid next pointer) Reported-by: Oleg A. Arkhangelsky Reported-by: Joe Buehler Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 307fbd31b61623ad1b5388b452118f8aea99f9d0 Author: Shirish Pargaonkar Date: Thu Oct 21 14:25:17 2010 -0500 NTLM auth and sign - Use kernel crypto apis to calculate hashes and smb signatures Use kernel crypto sync hash apis insetead of cifs crypto functions. The calls typically corrospond one to one except that insead of key init, setkey is used. Use crypto apis to generate smb signagtures also. Use hmac-md5 to genereate ntlmv2 hash, ntlmv2 response, and HMAC (CR1 of ntlmv2 auth blob. User crypto apis to genereate signature and to verify signature. md5 hash is used to calculate signature. Use secondary key to calculate signature in case of ntlmssp. For ntlmv2 within ntlmssp, during signature calculation, only 16 bytes key (a nonce) stored within session key is used. during smb signature calculation. For ntlm and ntlmv2 without extended security, 16 bytes key as well as entire response (24 bytes in case of ntlm and variable length in case of ntlmv2) is used for smb signature calculation. For kerberos, there is no distinction between key and response. Acked-by: Jeff Layton Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French commit f9ba5375a8aae4aeea6be15df77e24707a429812 Merge: 45352bb bade72d Author: Linus Torvalds Date: Tue Oct 26 11:37:48 2010 -0700 Merge branch 'ima-memory-use-fixes' * ima-memory-use-fixes: IMA: fix the ToMToU logic IMA: explicit IMA i_flag to remove global lock on inode_delete IMA: drop refcnt from ima_iint_cache since it isn't needed IMA: only allocate iint when needed IMA: move read counter into struct inode IMA: use i_writecount rather than a private counter IMA: use inode->i_lock to protect read and write counters IMA: convert internal flags from long to char IMA: use unsigned int instead of long for counters IMA: drop the inode opencount since it isn't needed for operation IMA: use rbtree instead of radix tree for inode information cache commit bade72d607c4eb1b1d6c7852c493b75f065a56b5 Author: Eric Paris Date: Mon Oct 25 14:42:25 2010 -0400 IMA: fix the ToMToU logic Current logic looks like this: rc = ima_must_measure(NULL, inode, MAY_READ, FILE_CHECK); if (rc < 0) goto out; if (mode & FMODE_WRITE) { if (inode->i_readcount) send_tomtou = true; goto out; } if (atomic_read(&inode->i_writecount) > 0) send_writers = true; Lets assume we have a policy which states that all files opened for read by root must be measured. Lets assume the file has permissions 777. Lets assume that root has the given file open for read. Lets assume that a non-root process opens the file write. The non-root process will get to ima_counts_get() and will check the ima_must_measure(). Since it is not supposed to measure it will goto out. We should check the i_readcount no matter what since we might be causing a ToMToU voilation! This is close to correct, but still not quite perfect. The situation could have been that root, which was interested in the mesurement opened and closed the file and another process which is not interested in the measurement is the one holding the i_readcount ATM. This is just overly strict on ToMToU violations, which is better than not strict enough... Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit 196f518128d2ee6e0028b50e6fec0313640db142 Author: Eric Paris Date: Mon Oct 25 14:42:19 2010 -0400 IMA: explicit IMA i_flag to remove global lock on inode_delete Currently for every removed inode IMA must take a global lock and search the IMA rbtree looking for an associated integrity structure. Instead we explicitly mark an inode when we add an integrity structure so we only have to take the global lock and do the removal if it exists. Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit 64c62f06bef8314a64d3189cb9c78062d54169b3 Author: Eric Paris Date: Mon Oct 25 14:42:12 2010 -0400 IMA: drop refcnt from ima_iint_cache since it isn't needed Since finding a struct ima_iint_cache requires a valid struct inode, and the struct ima_iint_cache is supposed to have the same lifetime as a struct inode (technically they die together but don't need to be created at the same time) we don't have to worry about the ima_iint_cache outliving or dieing before the inode. So the refcnt isn't useful. Just get rid of it and free the structure when the inode is freed. Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit bc7d2a3e66b40477270c3cbe3b89b47093276e7a Author: Eric Paris Date: Mon Oct 25 14:42:05 2010 -0400 IMA: only allocate iint when needed IMA always allocates an integrity structure to hold information about every inode, but only needed this structure to track the number of readers and writers currently accessing a given inode. Since that information was moved into struct inode instead of the integrity struct this patch stops allocating the integrity stucture until it is needed. Thus greatly reducing memory usage. Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit a178d2027d3198b0a04517d764326ab71cd73da2 Author: Eric Paris Date: Mon Oct 25 14:41:59 2010 -0400 IMA: move read counter into struct inode IMA currently allocated an inode integrity structure for every inode in core. This stucture is about 120 bytes long. Most files however (especially on a system which doesn't make use of IMA) will never need any of this space. The problem is that if IMA is enabled we need to know information about the number of readers and the number of writers for every inode on the box. At the moment we collect that information in the per inode iint structure and waste the rest of the space. This patch moves those counters into the struct inode so we can eventually stop allocating an IMA integrity structure except when absolutely needed. This patch does the minimum needed to move the location of the data. Further cleanups, especially the location of counter updates, may still be possible. Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit b9593d309d17c57e9ddc3934d641902533896ca9 Author: Eric Paris Date: Mon Oct 25 14:41:52 2010 -0400 IMA: use i_writecount rather than a private counter IMA tracks the number of struct files which are holding a given inode readonly and the number which are holding the inode write or r/w. It needs this information so when a new reader or writer comes in it can tell if this new file will be able to invalidate results it already made about existing files. aka if a task is holding a struct file open RO, IMA measured the file and recorded those measurements and then a task opens the file RW IMA needs to note in the logs that the old measurement may not be correct. It's called a "Time of Measure Time of Use" (ToMToU) issue. The same is true is a RO file is opened to an inode which has an open writer. We cannot, with any validity, measure the file in question since it could be changing. This patch attempts to use the i_writecount field to track writers. The i_writecount field actually embeds more information in it's value than IMA needs but it should work for our purposes and allow us to shrink the struct inode even more. Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit ad16ad00c34d3f320a5876b3d711ef6bc81362e1 Author: Eric Paris Date: Mon Oct 25 14:41:45 2010 -0400 IMA: use inode->i_lock to protect read and write counters Currently IMA used the iint->mutex to protect the i_readcount and i_writecount. This patch uses the inode->i_lock since we are going to start using in inode objects and that is the most appropriate lock. Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit 15aac676778f206b42c4d7782b08f89246680485 Author: Eric Paris Date: Mon Oct 25 14:41:39 2010 -0400 IMA: convert internal flags from long to char The IMA flags is an unsigned long but there is only 1 flag defined. Lets save a little space and make it a char. This packs nicely next to the array of u8's. Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit 497f32337073a2da102c49a53779097b5394711b Author: Eric Paris Date: Mon Oct 25 14:41:32 2010 -0400 IMA: use unsigned int instead of long for counters Currently IMA uses 2 longs in struct inode. To save space (and as it seems impossible to overflow 32 bits) we switch these to unsigned int. The switch to unsigned does require slightly different checks for underflow, but it isn't complex. Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit b575156dafef208415ff0842c392733d16d4ccf1 Author: Eric Paris Date: Mon Oct 25 14:41:26 2010 -0400 IMA: drop the inode opencount since it isn't needed for operation The opencount was used to help debugging to make sure that everything which created a struct file also correctly made the IMA calls. Since we moved all of that into the VFS this isn't as necessary. We should be able to get the same amount of debugging out of just the reader and write count. Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit 8549164143a5431f9d9ea846acaa35a862410d9c Author: Eric Paris Date: Mon Oct 25 14:41:18 2010 -0400 IMA: use rbtree instead of radix tree for inode information cache The IMA code needs to store the number of tasks which have an open fd granting permission to write a file even when IMA is not in use. It needs this information in order to be enabled at a later point in time without losing it's integrity garantees. At the moment that means we store a little bit of data about every inode in a cache. We use a radix tree key'd on the inode's memory address. Dave Chinner pointed out that a radix tree is a terrible data structure for such a sparse key space. This patch switches to using an rbtree which should be more efficient. Bug report from Dave: "I just noticed that slabtop was reporting an awfully high usage of radix tree nodes: OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME 4200331 2778082 66% 0.55K 144839 29 2317424K radix_tree_node 2321500 2060290 88% 1.00K 72581 32 2322592K xfs_inode 2235648 2069791 92% 0.12K 69864 32 279456K iint_cache That is, 2.7M radix tree nodes are allocated, and the cache itself is consuming 2.3GB of RAM. I know that the XFS inodei caches are indexed by radix tree node, but for 2 million cached inodes that would mean a density of 1 inode per radix tree node, which for a system with 16M inodes in the filsystems is an impossibly low density. The worst I've seen in a production system like kernel.org is about 20-25% density, which would mean about 150-200k radix tree nodes for that many inodes. So it's not the inode cache. So I looked up what the iint_cache was. It appears to used for storing per-inode IMA information, and uses a radix tree for indexing. It uses the *address* of the struct inode as the indexing key. That means the key space is extremely sparse - for XFS the struct inode addresses are approximately 1000 bytes apart, which means the closest the radix tree index keys get is ~1000. Which means that there is a single entry per radix tree leaf node, so the radix tree is using roughly 550 bytes for every 120byte structure being cached. For the above example, it's probably wasting close to 1GB of RAM...." Reported-by: Dave Chinner Signed-off-by: Eric Paris Acked-by: Mimi Zohar Signed-off-by: Linus Torvalds commit 1941bf8c8d9392b18cd9bfed8050a2d78850aede Author: Joe Perches Date: Mon Oct 25 16:44:20 2010 +0000 drivers/atm/eni.c: Remove multiple uses of KERN_ Signed-off-by: Joe Perches Signed-off-by: David S. Miller commit d2b915210b5ec01409f581421d633eca6c38d444 Author: Shirish Pargaonkar Date: Thu Oct 21 14:25:08 2010 -0500 NTLM auth and sign - Define crypto hash functions and create and send keys needed for key exchange Mark dependency on crypto modules in Kconfig. Defining per structures sdesc and cifs_secmech which are used to store crypto hash functions and contexts. They are stored per smb connection and used for all auth mechs to genereate hash values and signatures. Allocate crypto hashing functions, security descriptiors, and respective contexts when a smb/tcp connection is established. Release them when a tcp/smb connection is taken down. md5 and hmac-md5 are two crypto hashing functions that are used throught the life of an smb/tcp connection by various functions that calcualte signagure and ntlmv2 hash, HMAC etc. structure ntlmssp_auth is defined as per smb connection. ntlmssp_auth holds ciphertext which is genereated by rc4/arc4 encryption of secondary key, a nonce using ntlmv2 session key and sent in the session key field of the type 3 message sent by the client during ntlmssp negotiation/exchange A key is exchanged with the server if client indicates so in flags in type 1 messsage and server agrees in flag in type 2 message of ntlmssp negotiation. If both client and agree, a key sent by client in type 3 message of ntlmssp negotiation in the session key field. The key is a ciphertext generated off of secondary key, a nonce, using ntlmv2 hash via rc4/arc4. Signing works for ntlmssp in this patch. The sequence number within the server structure needs to be zero until session is established i.e. till type 3 packet of ntlmssp exchange of a to be very first smb session on that smb connection is sent. Acked-by: Jeff Layton Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French commit f2dc0d1809ab7e0147c7e4ac837be1682f706538 Author: Rafael J. Wysocki Date: Mon Oct 25 13:01:55 2010 +0000 tg3: Do not call device_set_wakeup_enable() under spin_lock_bh The tg3 driver calls device_set_wakeup_enable() under spin_lock_bh, which causes a problem to happen after the recent core power management changes, because this function can sleep now. Fix this by moving the device_set_wakeup_enable() call out of the spin_lock_bh-protected area. Reported-by: Maxim Levitsky Signed-off-by: Rafael J. Wysocki Signed-off-by: David S. Miller commit 78fd9c4491a9c4cf8b401f1c5a516d3d28d3b42b Merge: b9958a9 822395b Author: David S. Miller Date: Tue Oct 26 11:32:28 2010 -0700 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 commit b235f371a2572d7c86a121d96d889eee02ed00e2 Author: Dan Carpenter Date: Mon Oct 25 07:02:56 2010 +0200 cifs: cifs_convert_address() returns zero on error The cifs_convert_address() returns zero on error but this caller is testing for negative returns. Btw. "i" is unsigned here, so it's never negative. Reviewed-by: Jeff Layton Signed-off-by: Dan Carpenter Signed-off-by: Steve French commit 21e733930be6458e0c33482b6783e7c15ba984eb Author: Shirish Pargaonkar Date: Thu Oct 21 06:42:55 2010 -0500 NTLM auth and sign - Allocate session key/client response dynamically Start calculating auth response within a session. Move/Add pertinet data structures like session key, server challenge and ntlmv2_hash in a session structure. We should do the calculations within a session before copying session key and response over to server data structures because a session setup can fail. Only after a very first smb session succeeds, it copy/make its session key, session key of smb connection. This key stays with the smb connection throughout its life. sequence_number within server is set to 0x2. The authentication Message Authentication Key (mak) which consists of session key followed by client response within structure session_key is now dynamic. Every authentication type allocates the key + response sized memory within its session structure and later either assigns or frees it once the client response is sent and if session's session key becomes connetion's session key. ntlm/ntlmi authentication functions are rearranged. A function named setup_ntlm_resp(), similar to setup_ntlmv2_resp(), replaces function cifs_calculate_session_key(). size of CIFS_SESS_KEY_SIZE is changed to 16, to reflect the byte size of the key it holds. Reviewed-by: Jeff Layton Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French commit eb1c86b8b501ad9a073d9d519105979d31fa0ef2 Author: Bryan Schumaker Date: Tue Oct 26 13:27:42 2010 -0400 NFS: rename nfs.upcall -> nfs.idmap This patch renames the idmapper upcall program from nfs.upcall to nfs.idmap in the NFS documentation. This is because the program has been renamed in the nfs-utils source. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit 036a1075978e35811f22be3ff86a70cb8d22cb85 Author: Trond Myklebust Date: Tue Oct 26 13:47:04 2010 -0400 NFS: Fix a compile issue in nfs_root Stephen Rothwell reports: > /home/test/linux-2.6/fs/nfs/nfsroot.c: In function 'nfs_root_debug': > /home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: error: 'nfs_debug' > undeclared (first use in this function) > /home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: note: each undeclared > identifier is reported only once for each function it appears in > make[3]: *** [fs/nfs/nfsroot.o] Error 1 > make[2]: *** [fs/nfs] Error 2 > make[1]: *** [fs] Error 2 > make: *** [sub-make] Error 2 Which is caused by commit 306a075362a288683f6346185f97dd0e06df19da (NFS: Allow NFSROOT debugging messages to be enabled dynamically) Fix is to disable this code when RPC_DEBUG is disabled. Reported-by: Zimny Lech Tested-by: Ingo Molnar Signed-off-by: Trond Myklebust commit df30e5059681ed0671c9cc6ff702fe9ca7f20042 Author: Anil Ravindranath Date: Mon Oct 25 15:41:54 2010 -0700 [SCSI] pmcraid: remove duplicate struct member sense_buffer is both a direct member of struct pmcraid_cmd as well as an indirect one via an anonymous union and struct. Fix this clash by eliminating the direct member in favour of the anonymous struct/union one. The name duplication apparently isn't noticed by gcc versions earlier than 4.4 Reported-by: Andi Kleen Signed-off-by: Anil Ravindranath Cc: Stable Tree Signed-off-by: James Bottomley commit b9958a951ed4f8adff9ce02c2b1cb4ede8e2aa0e Author: Marc Kleine-Budde Date: Thu Oct 21 06:37:10 2010 +0000 can: mcp251x: fix reception of standard RTR frames This patch sets the missing CAN_RTR_FLAG if a standard RTR frame is received. (For extended frames the CAN_RTR_FLAG was already set correctly.) Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit 9a27586d3d5c3157260b055d057c6f4f6654c72c Author: Marc Kleine-Budde Date: Thu Oct 21 05:07:58 2010 +0000 can: flexcan: fix use after free of priv The priv is part of the memory allocated by alloc_candev(). This patch moved the free it after last usage of priv. Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit 22d0594b31046793dfb58b7ce866d7cb0a9862e5 Author: Arnaldo Carvalho de Melo Date: Tue Oct 26 15:21:15 2010 -0200 perf python scripting: Fixup cut'n'paste error in sctop script Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo commit b44308f54062a4c1dee2602946f481f03739b76d Author: Arnaldo Carvalho de Melo Date: Tue Oct 26 15:20:09 2010 -0200 perf scripting: Shut up 'perf record' final status We want just the script output, not internal details about the record phase. Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo commit dd8717da6da9b0e745df49762be4573010f1013c Author: Tejun Heo Date: Thu Apr 8 01:45:46 2010 -0700 ide: clean up timed out request handling 8f6205cd572fece673da0255d74843680f67f879 introduced a bug where a timed out DMA request is never requeued and lost. 6072f7491f5ef391a575e18a1165e72a3eef1601 fixed this by making ide_dma_timeout_retry() requeue the request itself. While the fix is correct, it makes DMA and non-DMA paths asymmetric regarding how the in flight request is requeued. As long as hwif->rq is set, the IDE driver is assuming ownership of the request and the request should either be completed or requeued when clearing hwif->rq. In the timeout path, the ide driver holds onto the request as long as the recovery action (ie. reset) is in progress and clears it after the state machine is stopped (ide_stopped return), so the existing requeueing logic is correct. The bug occurred because ide_dma_timeout_retry() explicitly clears hwif->rq without requeueing it. ide_dma_timeout_retry() is called only by ide_timer_expiry() and returns ide_started only when ide_error() would return it - ie. after reset state machine has started in which case the state machine will eventually end up executing the ide_stopped path in ide_timer_expiry() after reset protocol is complete. So, there is no need to clear hwif->rq from ide_dma_timeout_retry(). ide_timer_expiry() will handle it the same way as PIO timeout path. Kill hwif->rq clearing and requeueing from ide_dma_timeout_retry() and let ide_timer_expiry() deal with it. The end result should remain the same. grepping shows ide_dma_timeout_retry() is the only site which clears hwif->rq without taking care of the request, so there shouldn't be similar fallouts. Signed-off-by: Tejun Heo Signed-off-by: David S. Miller commit bbe54d78cc59a39f1ef3ffbe70423376ad9aab4c Author: Sergei Shtylyov Date: Mon Sep 27 11:01:32 2010 -0700 hpt366: fix clock turnaround DPLL clock (0x21) should be used for writes and PCI clock (0x23) for reads, not vice versa. Signed-off-by: Sergei Shtylyov Signed-off-by: David S. Miller commit 5d3f1a493e19f34ba427936b76f0b5624a2fc62a Author: Sergei Shtylyov Date: Mon Sep 27 11:00:40 2010 -0700 hpt366: add debounce delay to cable_detect() method Alan Cox reported that cable detection sometimes works unreliably for HPT3xxN and that the issue is fixed by adding debounce delay as used by the vendor drivers. While at it, get rid of unneeded parens/space in the vicinity... Signed-off-by: Sergei Shtylyov Signed-off-by: David S. Miller commit 45352bbf48e95078b4acd20774f49e72676e1e0f Merge: da62aa6 5789451 Author: Linus Torvalds Date: Tue Oct 26 10:14:23 2010 -0700 Merge git://git.infradead.org/battery-2.6 * git://git.infradead.org/battery-2.6: power_supply: Makefile cleanup bq27x00_battery: Add missing kfree(di->bus) in bq27x00_battery_remove() power_supply: Introduce maximum current property power_supply: Add types for USB chargers ds2782_battery: Fix units power_supply: Add driver for TWL4030/TPS65950 BCI charger bq20z75: Add support for more power supply properties wm831x_power: Add missing kfree(wm831x_power) in wm831x_power_remove() jz4740-battery: Add missing kfree(jz_battery) in jz_battery_remove() ds2760_battery: Add missing kfree(di) in ds2760_battery_remove() olpc_battery: Fix endian neutral breakage for s16 values ds2760_battery: Fix W1 and W1_SLAVE_DS2760 dependency pcf50633-charger: Add missing sysfs_remove_group() power_supply: Add driver for TI BQ20Z75 gas gauge IC wm831x_power: Remove duplicate chg mask omap: rx51: Add support for USB chargers power_supply: Add isp1704 charger detection driver commit da62aa69c181e3bd465a5c868ece166921a81e14 Merge: f1ebdd6 76a7bd8 Author: Linus Torvalds Date: Tue Oct 26 10:13:48 2010 -0700 Merge branch 'linux_next' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/i7core * 'linux_next' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/i7core: (34 commits) i7core_edac: return -ENODEV when devices were already probed i7core_edac: properly terminate pci_dev_table i7core_edac: Avoid PCI refcount to reach zero on successive load/reload i7core_edac: Fix refcount error at PCI devices i7core_edac: it is safe to i7core_unregister_mci() when mci=NULL i7core_edac: Fix an oops at i7core probe i7core_edac: Remove unused member channels in i7core_pvt i7core_edac: Remove unused arg csrow from get_dimm_config i7core_edac: Reduce args of i7core_register_mci i7core_edac: Introduce i7core_unregister_mci i7core_edac: Use saved pointers i7core_edac: Check probe counter in i7core_remove i7core_edac: Call pci_dev_put() when alloc_i7core_dev() failed i7core_edac: Fix error path of i7core_register_mci i7core_edac: Fix order of lines in i7core_register_mci i7core_edac: Always do get/put for all devices i7core_edac: Introduce i7core_pci_ctl_create/release i7core_edac: Introduce free_i7core_dev i7core_edac: Introduce alloc_i7core_dev i7core_edac: Reduce args of i7core_get_onedevice ... commit f1ebdd60cc73ed36fd977f7e719ce70d2f5cd1c0 Merge: f99d055 46e387b Author: Linus Torvalds Date: Tue Oct 26 10:13:10 2010 -0700 Merge branch 'hwpoison' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-mce-2.6 * 'hwpoison' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-mce-2.6: (22 commits) Add _addr_lsb field to ia64 siginfo Fix migration.c compilation on s390 HWPOISON: Remove retry loop for try_to_unmap HWPOISON: Turn addr_valid from bitfield into char HWPOISON: Disable DEBUG by default HWPOISON: Convert pr_debugs to pr_info HWPOISON: Improve comments in memory-failure.c x86: HWPOISON: Report correct address granuality for huge hwpoison faults Encode huge page size for VM_FAULT_HWPOISON errors Fix build error with !CONFIG_MIGRATION hugepage: move is_hugepage_on_freelist inside ifdef to avoid warning Clean up __page_set_anon_rmap HWPOISON, hugetlb: fix unpoison for hugepage HWPOISON, hugetlb: soft offlining for hugepage HWPOSION, hugetlb: recover from free hugepage error when !MF_COUNT_INCREASED hugetlb: move refcounting in hugepage allocation inside hugetlb_lock HWPOISON, hugetlb: add free check to dequeue_hwpoison_huge_page() hugetlb: hugepage migration core hugetlb: redefine hugepage copy functions hugetlb: add allocate function for hugepage migration ... commit f99d055398d53c8f769d5153b3fdce1d2556e7ff Merge: 2c51895 24cecc1 Author: Linus Torvalds Date: Tue Oct 26 10:03:40 2010 -0700 Merge branch 'for_linus' of git://github.com/at91linux/linux-2.6-at91 * 'for_linus' of git://github.com/at91linux/linux-2.6-at91: AT91: rtc: enable built-in RTC in Kconfig for at91sam9g45 family at91/atmel-mci: inclusion of sd/mmc driver in at91sam9g45 chip and board AT91: pm: make sure that r0 is 0 when dealing with cache operations AT91: pm: use plain cpu_do_idle() for "wait for interrupt" AT91: reset: extend alternate reset procedure to several chips AT91: reset routine cleanup, remove not needed icache flush AT91: trivial: align comment of at91sam9g20_reset with one more tab AT91: Fix AT91SAM9G20 reset as per the errata in the data sheet AT91: add board support for Pcontrol_G20 commit 2c518959f082c549d6c6dd9b5380aec40c3eb07f Merge: 4f68760 18016e3 Author: Linus Torvalds Date: Tue Oct 26 10:02:39 2010 -0700 Merge branch 'for-linus' of git://gitorious.org/linux-omap-dss2/linux * 'for-linus' of git://gitorious.org/linux-omap-dss2/linux: OMAP: DSS2: don't power off a panel twice OMAP: DSS2: OMAPFB: Allow usage of def_vrfb only for omap2,3 OMAP: DSS2: OMAPFB: make VRFB depends on OMAP2,3 OMAP: DSS2: OMAPFB: Allow FB_OMAP2 to build without VRFB arm/omap: simplify conditional OMAP: DSS2: DSI: Remove extra iounmap in error path OMAP: DSS2: Use dss_features framework on DSS2 code OMAP: DSS2: Introduce dss_features files video/omap: remove mux.h include ARM: omap/fb: move get_fbmem_region() to .init.text ARM: omap/fb: move omapfb_reserve_sram to .init.text ARM: omap/fb: move omap_init_fb to .init.text OMAP: DSS2: OMAPFB: swap front and back porches for both hsync and vsync OMAP: DSS2: make filter coefficient tables human readable OMAP: DSS2: Add SPI dependency to Kconfig of ACX565AKM panel commit 06d6e6d2e4ef61172f342fddeea5cfa465d81578 Author: Nicolas Kaiser Date: Tue Oct 26 10:02:13 2010 -0700 drivers/net: sgiseeq: fix return on error If we continue on error, we'd likely free the IRQ that we didn't get, right? Signed-off-by: Nicolas Kaiser Signed-off-by: David S. Miller commit 4f6876031ee105466f400661a0dd3fa66c4f0c09 Merge: 4390110 a69a061 Author: Linus Torvalds Date: Tue Oct 26 10:00:04 2010 -0700 Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq: [CPUFREQ]: x86, cpufreq: Mark longrun_get_policy with __cpuinit. [CPUFREQ] add sampling_down_factor tunable to improve ondemand performance [CPUFREQ] arch/x86/kernel/cpu/cpufreq: Fix unsigned return type [CPUFREQ] drivers/cpufreq: Adjust confusing if indentation commit 4390110fef9e5c64e10c6ca19d586932242c9a8a Merge: a4dd8dc 42d7ba3 Author: Linus Torvalds Date: Tue Oct 26 09:55:25 2010 -0700 Merge branch 'for-2.6.37' of git://linux-nfs.org/~bfields/linux * 'for-2.6.37' of git://linux-nfs.org/~bfields/linux: (99 commits) svcrpc: svc_tcp_sendto XPT_DEAD check is redundant svcrpc: no need for XPT_DEAD check in svc_xprt_enqueue svcrpc: assume svc_delete_xprt() called only once svcrpc: never clear XPT_BUSY on dead xprt nfsd4: fix connection allocation in sequence() nfsd4: only require krb5 principal for NFSv4.0 callbacks nfsd4: move minorversion to client nfsd4: delay session removal till free_client nfsd4: separate callback change and callback probe nfsd4: callback program number is per-session nfsd4: track backchannel connections nfsd4: confirm only on succesful create_session nfsd4: make backchannel sequence number per-session nfsd4: use client pointer to backchannel session nfsd4: move callback setup into session init code nfsd4: don't cache seq_misordered replies SUNRPC: Properly initialize sock_xprt.srcaddr in all cases SUNRPC: Use conventional switch statement when reclassifying sockets sunrpc/xprtrdma: clean up workqueue usage sunrpc: Turn list_for_each-s into the ..._entry-s ... Fix up trivial conflicts (two different deprecation notices added in separate branches) in Documentation/feature-removal-schedule.txt commit e9bb7f10d3617304ef94ff7aa8fefbce3078f08b Author: Josef Bacik Date: Tue Oct 26 12:55:03 2010 -0400 Btrfs: remove warn_on from use_block_rsv Because btrfs_dirty_inode does a btrfs_join_transaction, it doesn't actually reserve space. It does this so we can try and dirty the inode quickly without having to deal with the ENOSPC problems. But if it does get back ENOSPC it handles it properly. The problem is use_block_rsv does a WARN_ON whenever this case happens, even tho btrfs_dirty_inode takes it into account and actually expects to get -ENOSPC if things are particularly tight. So instead just remove the warning. Thanks, Signed-off-by: Josef Bacik commit 382279336f428c80f344edfc30d53797e3e76146 Author: Josef Bacik Date: Tue Oct 26 12:52:53 2010 -0400 Btrfs: set trans to null in reserve_metadata_bytes if we commit the transaction btrfs_commit_transaction will free our trans, but because we pass trans to shrink_delalloc we could possibly have a use after free situation. So instead if we commit the transaction, set trans to null and set committed to true so we don't keep trying to commit a transaction. This fixes a panic I could reproduce at will. Thanks, Signed-off-by: Josef Bacik commit a4dd8dce14014665862ce7911b38cb2c69e366dd Merge: b18cae4 411b5e0 Author: Linus Torvalds Date: Tue Oct 26 09:52:09 2010 -0700 Merge branch 'nfs-for-2.6.37' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 * 'nfs-for-2.6.37' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6: net/sunrpc: Use static const char arrays nfs4: fix channel attribute sanity-checks NFSv4.1: Use more sensible names for 'initialize_mountpoint' NFSv4.1: pnfs: filelayout: add driver's LAYOUTGET and GETDEVICEINFO infrastructure NFSv4.1: pnfs: add LAYOUTGET and GETDEVICEINFO infrastructure NFS: client needs to maintain list of inodes with active layouts NFS: create and destroy inode's layout cache NFSv4.1: pnfs: filelayout: introduce minimal file layout driver NFSv4.1: pnfs: full mount/umount infrastructure NFS: set layout driver NFS: ask for layouttypes during v4 fsinfo call NFS: change stateid to be a union NFSv4.1: pnfsd, pnfs: protocol level pnfs constants SUNRPC: define xdr_decode_opaque_fixed NFSD: remove duplicate NFS4_STATEID_SIZE commit e69f58c037ab5b166b3858fa7b5d7fa470613e8f Author: Namhyung Kim Date: Mon Oct 25 05:48:23 2010 +0000 kbuild: add ARCH=sparc32 target Add 'sparc32' ARCH target to test all{yes,mod}config for 32-bit build. Signed-off-by: Namhyung Kim Signed-off-by: David S. Miller commit 516723215ca1f9bce154e3dcec71234ee3650343 Author: Namhyung Kim Date: Mon Oct 25 05:52:38 2010 +0000 sparc32: fix build failure on CONFIG_SPARC_LEON CC arch/sparc/kernel/irq_32.o arch/sparc/kernel/irq_32.c: In function 'request_fast_irq': arch/sparc/kernel/irq_32.c:370:25: error: conflicting types for 'trapbase_cpu1' arch/sparc/include/asm/leon.h:366:22: note: previous declaration of 'trapbase_cpu1' was here arch/sparc/kernel/irq_32.c:370:40: error: conflicting types for 'trapbase_cpu2' arch/sparc/include/asm/leon.h:367:22: note: previous declaration of 'trapbase_cpu2' was here arch/sparc/kernel/irq_32.c:370:55: error: conflicting types for 'trapbase_cpu3' arch/sparc/include/asm/leon.h:368:22: note: previous declaration of 'trapbase_cpu3' was here make[3]: *** [arch/sparc/kernel/irq_32.o] Error 1 make[2]: *** [arch/sparc/kernel] Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2 Signed-off-by: Namhyung Kim Signed-off-by: David S. Miller commit a1e0063d0c015145946981262f8d5f9758d8a895 Author: Mike Christie Date: Tue Oct 26 05:45:30 2010 -0700 [SCSI] qla4xxx: Fix cmd check in qla4xxx_cmd_wait If the command has timedout then the block layer has called blk_mark_rq_complete. If qla4xxx_cmd_wait is then called from qla4xxx_eh_host_reset, we will always fail, because if the driver calls scsi_done then the the block layer will fail at blk_complete_request's blk_mark_rq_complete call instead of calling the normal completion path including the function, blk_queue_end_tag, which releases the tag. Signed-off-by: Mike Christie Signed-off-by: Vikas Chaudhary Signed-off-by: James Bottomley commit e340c3537239d5b6a2b21d4245c8577d457b0476 Author: Yang, Bo Date: Tue Oct 12 07:21:59 2010 -0600 [SCSI] megaraid_sas: Version and documentation update Signed-off-by Bo Yang Signed-off-by: James Bottomley commit 7932c2e55c707350ac166effea2f49afe2e47400 Author: David S. Miller Date: Tue Oct 26 09:08:53 2010 -0700 netfilter: Add missing CONFIG_SYSCTL checks in ipv6's nf_conntrack_reasm.c Reported-by: Randy Dunlap Signed-off-by: David S. Miller commit 707e09bd867cee4cd0e5bff0a67513aa0232fcec Author: Yang, Bo Date: Tue Oct 12 07:20:27 2010 -0600 [SCSI] megaraid_sas: Add three times Online controller reset If fw didn't raise the interrupt with the fw state change to driver and fw goes to failure state, driver Will check the FW state in driver's timeout routine and issue the reset if need. Driver will do the OCR upto three times until kill adapter. Also driver will issue OCR before driver kill adapter even if fw in operational state. Signed-off-by Bo Yang Signed-off-by: James Bottomley commit 1fd106851698e9a858d20ab0e0f0afd5e9ec9332 Author: Yang, Bo Date: Tue Oct 12 07:18:50 2010 -0600 [SCSI] megaraid_sas: Add input parameter for max_sectors Driver add the input parameters support for max_sectors for megaraid sas gen2 chip. Customer can set the max_sectors support to 1MB for gen2 chip during the driver load. Signed-off-by Bo Yang Signed-off-by: James Bottomley commit 837f5fe89c843422452ef5e1a7e3d20e9caa3268 Author: Yang, Bo Date: Mon Oct 11 06:59:20 2010 -0600 [SCSI] megaraid_sas: support devices update flag Driver added the Device update flag to tell LSI application driver whether to do the device Update. LSI MegaRAID SAS application will check this flag to decide if it needs to update the Device or not. Signed-off-by Bo Yang Signed-off-by: James Bottomley commit 502279a7cd1e4b1d320ee2c9a25eca165232d213 Author: Daniel Hellstrom Date: Mon Oct 25 21:23:46 2010 +0000 sparc: Fixed random SPARC/LEON SMP CPU Stuck problem. Signed-off-by: Daniel Hellstrom Signed-off-by: David S. Miller commit a3e5a375fe4f7cc599238cf607d63fc4ad018059 Author: Namhyung Kim Date: Mon Oct 25 05:52:37 2010 +0000 sparc32: remove CONFIG_HAVE_PERF_EVENTS option Remove HAVE_PERF_EVENTS and PERF_USE_VMALLOC under config SPARC because they're under SPARC64 too. Supporting perf_event needs atomic64 operations but AFAIK sparc32 doesn't provide them, CMIIW. ;-) Also removes redundant HAVE_IRQ_WORK line. Signed-off-by: Namhyung Kim Signed-off-by: David S. Miller commit 5125c6bd9e62f79b8b4fed4591c55aad3901e5b2 Author: Namhyung Kim Date: Mon Oct 25 05:52:36 2010 +0000 sparc: don't #include asm/system.h in asm/jump_label.h It seems that #include makes a circular dependency between kernel.h and bitmap.h which breaks allmodconfig build. Removing the line makes no change because jump_label.h doesn't need it actually AFAICS. Compile tested on sparc32 allmodconfig. Signed-off-by: Namhyung Kim Signed-off-by: David S. Miller commit 9088333e3d83a68aeac15f7810c3cbf332b80303 Author: David S. Miller Date: Thu Sep 23 22:06:47 2010 -0700 sparc32: Fix unaligned stack handling on trap return. When the rett stack checking code sees the stack is unaligned (in both the sun4c and srmmu cases) it jumps to the window fault-in path. But that just tries to page the stack pages in, it doesn't do anything special if the stack is misaligned. Therefore we essentially just loop forever in the trap return path. Fix this by emitting a SIGILL in the stack fault-in code if the stack is mis-aligned. Reported-by: Al Viro Signed-off-by: David S. Miller commit caebf9103be2e6a5330c6395a1f9f213edb0c8df Author: Al Viro Date: Thu Sep 23 21:52:52 2010 -0700 sparc: keep calling do_signal() as long as pending signals remain Analog of what commit 494486a1d2697f2153199b6501ab5b4d6e15a2bb had done to alpha (another architecture with similar bug). One note: in rtrap_32.S part clr %l6 has been a rudiment of left after commit 28e6103665301ce60634e8a77f0b657c6cc099de (sparc: Fix debugger syscall restart interactions) has killed %l6 use in there. Signed-off-by: Al Viro Signed-off-by: David S. Miller commit 6dd1d8a7953cdc203c6eb694ce8eafe2dcd3e9da Author: Boaz Harrosh Date: Tue Oct 19 16:13:50 2010 +0200 [SCSI] libosd: write/read_sg_kern API This is a trivial addition to the SG API that can receive kernel pointers. It is only used by the out-of-tree test module. So it's immediate need is questionable. For maintenance ease it might just get in, as it's very small. John. do you need this in the Kernel, or is it only for osd_ktest.ko? Signed-off-by: John A. Chandy Signed-off-by: Boaz Harrosh Signed-off-by: James Bottomley commit e96e72c45a1e78e9266dd70113b851395a440ef3 Author: Boaz Harrosh Date: Tue Oct 19 14:22:21 2010 +0200 [SCSI] libosd: Support for scatter gather write/read commands This patch adds the Scatter-Gather (sg) API to libosd. Scatter-gather enables a write/read of multiple none-contiguous areas of an object, in a single call. The extents may overlap and/or be in any order. The Scatter-Gather list is sent to the target in what is called a "cdb continuation segment". This is yet another possible segment in the osd-out-buffer. It is unlike all other segments in that it sits before the actual "data" segment (which until now was always first), and that it is signed by itself and not part of the data buffer. This is because the cdb-continuation-segment is considered a spill-over of the CDB data, and is therefor signed under OSD_SEC_CAPKEY and higher. TODO: A new osd_finalize_request_ex version should be supplied so the @caps received on the network also contains a size parameter and can be spilled over into the "cdb continuation segment". Thanks to John Chandy for the original code, and investigations. And the implementation of SG support in the osd-target. Original-coded-by: John Chandy Signed-off-by: Boaz Harrosh Signed-off-by: James Bottomley commit c4df46c49d8677158c7fb070a08e0d386c80205f Author: Boaz Harrosh Date: Tue Oct 19 14:21:34 2010 +0200 [SCSI] libosd: Free resources in reverse order of allocation At osd_end_request first free the request that might point to pages, then free these pages. In reverse order of allocation. For now it's just anal neatness. When we'll use mempools It'll also pay in performance. Signed-off-by: Boaz Harrosh Signed-off-by: James Bottomley commit ec6a0a41b57feb54b3830918a8fb07147c2ee778 Author: Boaz Harrosh Date: Tue Oct 19 14:20:31 2010 +0200 [SCSI] libosd: Fix bug in attr_page handling The _osd_req_finalize_attr_page was off by a mile, when trying to append the enc_get_attr segment instead of the proper set_attr segment. Also properly support when we don't have any attribute to set while getting a full page. And when clearing an attribute by setting it's size to zero. Reported-by: John Chandy Signed-off-by: Boaz Harrosh Signed-off-by: James Bottomley commit 391cbf46f25ccbeb1a0ffd76c76765ffc9a6fb22 Author: James Smart Date: Fri Oct 22 11:07:20 2010 -0400 [SCSI] lpfc 8.3.18: Update lpfc driver version to 8.3.18 Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit f0d9bccc9084b8fe86fa2830a434259d140679c9 Author: James Smart Date: Fri Oct 22 11:07:09 2010 -0400 [SCSI] lpfc 8.3.18: Add new WQE support - Add new WQE fields as defined by new SLI interface to support new hardware. Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit 5989b8d4dc0367a8c07cd1545dbad590a6de989d Author: James Smart Date: Fri Oct 22 11:06:56 2010 -0400 [SCSI] lpfc 8.3.18: Fix critical errors Fix critical errors - Update send_scsi_event to validate pnode pointer active before copying the wwpn information. - Add a message, mailbox_idle, and unlock before failing SECURITY_MGMT or AUTH_PORT mailbox commands - Prevent spin_lock_irqsave from being called twice in a row. Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit 5af5eee7ca4051d8ca31edeb5216831da9625b5c Author: James Smart Date: Fri Oct 22 11:06:38 2010 -0400 [SCSI] lpfc 8.3.18: Adapter Shutdown and Unregistration cleanup Adapter Shutdown and Unregistration cleanup - Correct the logic around hba shutdown. Prior to final reset, the driver must wait for all XRIs to return from the adapter. Added logic to poll, progressively slowing the poll rate as delay gets longer. - Correct behavior around the rsvd1 field in UNREG_RPI_ALL mailbox completion and final rpi cleanup. - Updated logic to move pending VPI registrations to their completion in cases where a CVL may be received while registration in progress. - Added unreg all rpi mailbox command before unreg vpi. Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit a93ff37a8a869c7065a1b05f75e69bfb74eb599c Author: James Smart Date: Fri Oct 22 11:06:08 2010 -0400 [SCSI] lpfc 8.3.18: Add logic to detect last devloss timeout Added driver logic to detect the last devloss timeout of remote nodes which was still in use of FCF. At that point, the driver should set the last in-use remote node devloss timeout flag if it was not already set and should perform proper action on the in-use FCF and recover of FCF from firmware, depending on the state the driver's FIP engine is in. Find eligible FCF through FCF table rescan or the next new FCF event when FCF table rescan turned out empty eligible FCF, and the successful flogi into an FCF shall clear the HBA_DEVLOSS_TMO flag, indicating the successful recovery from devloss timeout. [jejb: add delay.h include to lpfc_hbadisc.c to fix ppc compile] Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit 0ab7368f8dad561b6164b3e942cab00f9565bd37 Author: Matt Fleming Date: Sat Aug 28 16:46:19 2010 +0100 perf record: Remove newline character from perror() argument If we include a newline character in the string argument to perror() then the output will be split across two lines like so, Unable to read perf file descriptor : No space left on device Deleting the newline character prints a much more readable error, Unable to read perf file descriptor: No space left on device Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Frederic Weisbecker Cc: Tom Zanussi LKML-Reference: <89e77b54659bc3798b23a5596c2debb7f6f4cf27.1283010281.git.matt@console-pimps.org> Signed-off-by: Matt Fleming Signed-off-by: Arnaldo Carvalho de Melo commit a3484ffd2acc196ca934369395fe9aac63ed1a47 Author: Dinh Nguyen Date: Sat Oct 23 09:12:48 2010 -0500 ARM: imx: Add wake functionality to GPIO Add function definition for irq_chip.set_wake to enable GPIO to wake-up the system. This patch has been tested on a MX51 Babbage system that had suspend code implemented. The set_wake implementation is necessary for a GPIO to wake up a system from suspend. Signed-off-by: Dinh Nguyen Signed-off-by: Sascha Hauer commit f2d36ecbca2f7a4cde2821a8a70f6f799442e33f Author: Dinh Nguyen Date: Sat Oct 23 09:12:47 2010 -0500 ARM: mx5: Add gpio-keys to mx51 babbage board Add functionality for the power button on MX51 Babbage board. Signed-off-by: Dinh Nguyen Signed-off-by: Sascha Hauer commit 47c5382287c863473ac2c11d18d6f4100e9dd5b8 Author: Dinh Nguyen Date: Sat Oct 23 09:12:46 2010 -0500 ARM: imx: Add gpio-keys to plat-mxc Add imx_add_gpio_keys function to add gpio-keys in plat-mxc Signed-off-by: Dinh Nguyen Signed-off-by: Sascha Hauer commit 4a74bddcc52e5d76681f4910203c9d435370f04c Author: Rogerio Pimentel Date: Mon Oct 25 12:55:14 2010 -0200 mx31_3ds: Fix spi registration Commit (06606ff13) "ARM: imx: dynamically register spi_imx devices (imx31)" registered the wrong SPI port for mx31_3ds board. mx31_3ds uses SPI2 to connect to the MC13783 PMIC. Signed-off-by: Fabio Estevam Signed-off-by: Rogerio Pimentel Acked-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit b8be7b9a6d3c7b63df9fc356a81288d5404ff505 Author: Rogerio Pimentel Date: Mon Oct 25 12:54:24 2010 -0200 mx31_3ds: Fix the logic for detecting the debug board The function mxc_expio_init returns 0 on success, so fix the logic for printing the error case. Also fixed the wording on the error message. Signed-off-by: Fabio Estevam Signed-off-by: Rogerio Pimentel Signed-off-by: Sascha Hauer commit 5c16d2c813a7490408e966f52b881e70fc8d7f77 Merge: 5df414c b8b2663 Author: Ingo Molnar Date: Tue Oct 26 13:14:02 2010 +0200 Merge branch 'tip/perf/ringbuffer-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/urgent commit 6411bf6cdfe9b444bc3aa0c23f8cf35460d69432 Author: David Woodhouse Date: Tue Oct 26 11:42:51 2010 +0100 Revert "mtd: cleanup Kconfig dependencies" This reverts commit 432dc821c90114f9b0e00f6752a700e937516ade. The individual CFI geometry options were carefully set up to get sane default values if the CFI_ADV_OPTIONS wasn't set, and it wasn't appropriate to move them into an if/endif block. Signed-off-by: David Woodhouse commit 08968041bef437ec363623cd3218c2b083537ada Author: Guillaume LECERF Date: Tue Oct 26 10:45:23 2010 +0100 mtd: cfi_cmdset_0002: make sector erase command variable Some old SST chips use 0x50 as sector erase command, instead of 0x30. Make this value variable to handle such chips. Signed-off-by: Guillaume LECERF Acked-by: Wolfram Sang Signed-off-by: David Woodhouse commit 9fc05fcadadcf3d6ddfe288e2e5c7ad0773b2abf Author: Guillaume LECERF Date: Tue Oct 26 11:31:55 2010 +0100 mtd: cfi_cmdset_0002: add CFI detection for SST 38VF640x chips Add support for SST38VF640x chips in CFI mode. Signed-off-by: Guillaume LECERF Signed-off-by: yidong zhang Signed-off-by: David Woodhouse commit fc61015f72808f2fd83657909d02f4d29404b8c6 Author: Guillaume LECERF Date: Tue Oct 26 10:26:26 2010 +0100 mtd: cfi_util: add support for switching SST 39VF640xB chips into QRY mode Signed-off-by: Guillaume LECERF Signed-off-by: David Woodhouse commit b5d194ceaeffce637e88be153794d1c963738ea9 Author: Guillaume LECERF Date: Tue Oct 26 10:55:29 2010 +0100 mtd: cfi_cmdset_0001: use defined value of P_ID_INTEL_PERFORMANCE instead of hardcoded one Signed-off-by: Guillaume LECERF Signed-off-by: David Woodhouse commit 89a82280a8e632b7a5b0ce70dd5bccfa2d3bc2c5 Author: Nicolas Kaiser Date: Fri Oct 22 12:47:24 2010 +0200 block2mtd: dubious assignment When block2mtd_erase fails, a duplicated assignment instantly changes instr->state from MTD_ERASE_FAILED to MTD_ERASE_DONE. It looks to me like this might not be intended, or is it? Signed-off-by: Nicolas Kaiser Acked-By: Joern Engel Signed-off-by: David Woodhouse commit 24cecc1be62c37231fda15054a3d4d235ada38c5 Author: Nicolas Ferre Date: Fri Oct 22 19:12:52 2010 +0200 AT91: rtc: enable built-in RTC in Kconfig for at91sam9g45 family Enable built-in RTC IP in Kconfig and modify comments and help messages. RTT as RTC is still available but should not be selected in common case. Reported-by: Yegor Yefremov Signed-off-by: Nicolas Ferre commit 75305d768d296a07fd02df9af3e5de326df1c72e Author: Nicolas Ferre Date: Fri Oct 22 18:27:48 2010 +0200 at91/atmel-mci: inclusion of sd/mmc driver in at91sam9g45 chip and board This adds the support of atmel-mci sd/mmc driver in at91sam9g45 devices and board files. This also configures the DMA controller slave interface for at_hdmac dmaengine driver. Signed-off-by: Nicolas Ferre commit a2a571b74a3881963d8d09deb272d13afe5b49e3 Author: Nicolas Ferre Date: Fri Oct 22 18:55:39 2010 +0200 AT91: pm: make sure that r0 is 0 when dealing with cache operations When using CP15 cache operations (c7), we make sure that Rd (r0) is actually 0 as ARM 926 TRM is saying. Signed-off-by: Nicolas Ferre commit 8aeeda822fbfe7da2d4ea391a9757e9532796598 Author: Nicolas Ferre Date: Fri Oct 22 17:53:39 2010 +0200 AT91: pm: use plain cpu_do_idle() for "wait for interrupt" For power management at91_pm_enter() routine, use the cpu_do_idle() for a rock solid "wait for interrupt" implementation. For AT91SAM9 ARM 926 based chips, we can exceed the cache line length as we can access RAM even while in self-refresh mode. We keep plain access to CP15 for at91rm9200 as this feature is not available: instructions have to be in a single cache line. Signed-off-by: Nicolas Ferre commit bb413db591d53c29292868577068fa822b84da82 Author: Nicolas Ferre Date: Thu Oct 14 19:14:00 2010 +0200 AT91: reset: extend alternate reset procedure to several chips Several at91sam9 chips need the alternate reset procedure to be sure to halt SDRAM smoothly before resetting the chip. This is an extension of previous patch "Fix AT91SAM9G20 reset" to all chips affected. Signed-off-by: Nicolas Ferre commit 1345562b449e95e2098cc60eb0eed6d2415cd0b0 Author: Nicolas Ferre Date: Thu Oct 14 17:19:11 2010 +0200 AT91: reset routine cleanup, remove not needed icache flush Generalize assembler reset routine to allow use on several at91sam9 chips. This patch replace double definitions of SDRAM controller registers and RSTC registers with use of classical header files. For this rework, we remove the not needed icache flush as it is already done in the calling function: arm_machine_restart(). Rename at91sam9g20_reset.S to generalize to several chips. Signed-off-by: Nicolas Ferre commit ef4d63e6f51d9669e247c47b670a83511b98eb68 Author: Nicolas Ferre Date: Thu Oct 14 16:51:36 2010 +0200 AT91: trivial: align comment of at91sam9g20_reset with one more tab Preparing next patch with longer names Signed-off-by: Nicolas Ferre commit 184c82e853704ee98e729af0f36a8539355c0e2e Author: Peter Horton Date: Fri May 28 16:37:26 2010 +0100 AT91: Fix AT91SAM9G20 reset as per the errata in the data sheet If the SDRAM is not cleanly shutdown before reset it can be left driving the bus, which then stops the bootloader booting from NAND. Signed-off-by: Peter Horton [nicolas.ferre@atmel.com: change file header line order] Signed-off-by: Nicolas Ferre commit abf0c1bc94cb16f9eed331ea98ac151d08adf4fe Author: Peter Gsellmann Date: Wed Oct 13 16:18:51 2010 +0200 AT91: add board support for Pcontrol_G20 Board is a carrier board for Stamp9G20, with additional peripherals for a building automation system Signed-off-by: Peter Gsellmann [nicolas.ferre@atmel.com: remove machine_desc.io_pg_offst and .phys_io] Signed-off-by: Nicolas Ferre commit b1d248d96c71665c79befb81207f38f894c7c082 Author: Zhang Rui Date: Tue Oct 26 10:06:54 2010 +0800 ACPI: install ACPI table handler before any dynamic tables being loaded ACPI table sysfs I/F is broken by commit 78f1699659963fff97975df44db6d5dbe7218e55 Author: Alex Chiang Date: Sun Dec 20 12:19:09 2009 -0700 ACPI: processor: call _PDC early because dynamic SSDT tables may be loaded in _PDC, before installing the ACPI table handler. As a result, the sysfs I/F of these dynamic tables are located at /sys/firmware/acpi/tables instead of /sys/firmware/acpi/tables/dynamic, which is not true. Invoke acpi_sysfs_init() before acpi_early_processor_set_pdc(), so that the table handler is installed before any dynamic tables loaded. https://bugzilla.kernel.org/show_bug.cgi?id=21142 CC: Dennis Jansen CC: Alex Chiang Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit 639bd12f778d55a2632fde5af7d0719abc1871b9 Author: Paul Mundt Date: Tue Oct 26 16:19:13 2010 +0900 genirq: Add single IRQ reservation helper For cases that wish to reserve a single IRQ at a given place simply provide a wrapper in to the ranged reservation routine. Signed-off-by: Paul Mundt LKML-Reference: <20101026071912.GD4733@linux-sh.org> Signed-off-by: Thomas Gleixner commit 5df414c61e1b6f15bdc3759f292c7404286c9827 Merge: 0b849ee 7f6c1bd Author: Ingo Molnar Date: Tue Oct 26 09:30:22 2010 +0200 Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/urgent commit 38ab13441c36c0c470b7e4e3b30ec2fb6beba253 Author: Paul Mundt Date: Tue Oct 26 16:05:08 2010 +0900 sh: Switch dynamic IRQ creation to generic irq allocator. Now that the genirq code provides an IRQ bitmap of its own and the necessary API to manipulate it, there's no need to keep our own version around anymore. In the process we kill off some unused IRQ reservation code, with future users now having to tie in to the genirq API as normal. Signed-off-by: Paul Mundt commit 57b813303ab40557aada8f8886400f3a9de3c0f8 Author: Paul Mundt Date: Tue Oct 26 15:20:51 2010 +0900 sh: Tidy up genirq Kconfig bits. Now that there's a HAVE_GENERIC_HARDIRQS, switch over. Signed-off-by: Paul Mundt commit ae6948048c417d429b8a0f85fad13e483f7cc1a3 Author: Per Fransson Date: Wed Sep 8 21:21:40 2010 +0530 ARM: ux500 specific L2 cache code The generic version of l2x0_inv_all is only called just after disabling the L2 cache and is surrounded by a spinlock. However, we're not really turning off the L2 cache right now, and the PL310 does not support exclusive accesses (used to implement the spinlock). So, the invalidation needs to be done without the spinlock. Cc: Thomas Gleixner Cc: Catalin Marinas Cc: Hans-Juergen Koch Cc: Santosh Shilimkar Signed-off-by: Per Fransson Signed-off-by: Linus Walleij commit 444457c1f59d58bc48acf5b4fc585225106c11ff Author: Santosh Shilimkar Date: Sun Jul 11 14:58:41 2010 +0530 ARM: l2x0: Optimise the range based operations For the big buffers which are in excess of cache size, the maintaince operations by PA are very slow. For such buffers the maintainace operations can be speeded up by using the WAY based method. Signed-off-by: Santosh Shilimkar Acked-by: Catalin Marinas Acked-by: Linus Walleij commit 5ba70372289a1fb378b95cee2cf46b0203d65291 Author: Santosh Shilimkar Date: Sun Jul 11 14:35:37 2010 +0530 ARM: l2x0: Determine the cache size The cache size is needed for to optimise range based maintainance operations Signed-off-by: Santosh Shilimkar Acked-by: Catalin Marinas Acked-by: Linus Walleij commit 7db27e864abe0110cec5087b77de777455581e8f Author: Santosh Shilimkar Date: Sun Jul 11 14:13:26 2010 +0530 ARM: l2x0: Fix coding-style in the cache-l2x0.h Replace tab with space after #define to be consisten with other define in the file. Also move the bit mask below the register offsets. Signed-off-by: Santosh Shilimkar Acked-by: Catalin Marinas Acked-by: Linus Walleij commit 4e803c40b33822b52389952040f490e79973e94a Author: Santosh Shilimkar Date: Sat Jul 31 21:40:10 2010 +0530 omap4: l2x0: Override the default l2x0_disable The machine_kexec() calls outer_disable which can crash on OMAP4 becasue of trustzone restrictions. This patch overrides the default l2x0_disable with a OMAP4 specific implementation taking care of trustzone Signed-off-by: Santosh Shilimkar Reviewed-by: Tony Lindgren Acked-by: Linus Walleij commit 2fd8658931193599c867fd6974fa184ec34af16c Author: Thomas Gleixner <[tglx@linutronix.de]> Date: Sat Jul 31 21:05:24 2010 +0530 arm: Implement l2x0 cache disable functions Add flush_all, inv_all and disable functions to the l2x0 code. These functions are called from kexec code to prevent random crashes in the new kernel. Platforms like OMAP which control L2 enable/disable via SMI mode can override the outer_cache.disable() function to implement their own. Signed-off-by: Thomas Gleixner Acked-by: Catalin Marinas Acked-by: Linus Walleij commit ae360a78f41164e7f9c4cf846696b5b6d8dae5c8 Author: Thomas Gleixner <[tglx@linutronix.de]> Date: Sat Jul 31 21:06:06 2010 +0530 arm: Disable outer (L2) cache in kexec kexec does not disable the outer cache before disabling the inner caches in cpu_proc_fin(). So L2 is enabled across the kexec jump. When the new kernel enables chaches again, it randomly crashes. Disabling L2 before calling cpu_proc_fin() cures the problem. Disabling L2 requires the following new functions: flush_all(), inv_all() and disable(). Add them to outer_cache_fns and call them from the kexec code. Signed-off-by: Thomas Gleixner Acked-by: Catalin Marinas Acked-by: Linus Walleij commit 9a6655e49fd98f3748bb80da20705448aad9ee57 Author: Catalin Marinas Date: Tue Aug 31 13:05:22 2010 +0100 ARM: Improve the L2 cache performance when PL310 is used With this L2 cache controller, the cache maintenance by PA and sync operations are atomic and do not require a "wait" loop. This patch conditionally defines the cache_wait() function. Since L2x0 cache controllers do not work with ARMv7 CPUs, the patch automatically enables CACHE_PL310 when only CPU_V7 is defined. Signed-off-by: Catalin Marinas commit c4318baf00ed24b7fdcc255de33a18ab37ee8606 Author: Thomas Gleixner Date: Tue Oct 12 02:03:09 2010 +0900 sh: Sanitize sparse irq Switch over to the new allocator functions. Signed-off-by: Thomas Gleixner Signed-off-by: Paul Mundt commit 2f98492c5375e906e48c78d88351f45bb11b6a8a Author: Paul Mundt Date: Tue Oct 26 14:44:58 2010 +0900 sh: Expose physical addressing mode through cpuinfo. CPUs can be in either the legacy 29-bit or 32-bit physical addressing modes. This follows the x86 approach of tracking the phys bits in cpuinfo and exposing it to userspace through procfs. This change was requested to permit kexec-tools to detect the physical addressing mode in order to determine the appropriate address mangling. Signed-off-by: Paul Mundt commit 881fe6c1d06bf49f4ab7aef212cdaf66bd059614 Author: Alex Deucher Date: Mon Oct 18 23:54:56 2010 -0400 drm/radeon/kms: properly compute group_size on 6xx/7xx Needed for tiled surfaces. Signed-off-by: Alex Deucher Cc: stable@kernel.org Signed-off-by: Dave Airlie commit 354da653233898ed1e51f20cebac9705456bf9b1 Author: Alex Deucher Date: Mon Oct 18 23:45:39 2010 -0400 drm/radeon/kms: fix 2D tile height alignment in the r600 CS checker macro tile heights are aligned to num channels, not num banks. Noticed by Dave Airlie. Signed-off-by: Alex Deucher Cc: stable@kernel.org Signed-off-by: Dave Airlie commit 2281a378e1830d7ab78d3067f228e4e55d368b0d Author: Alex Deucher Date: Thu Oct 21 13:31:38 2010 -0400 drm/radeon/kms/evergreen: set the clear state to the blit state The hw stores a default clear state for registers in the context range that can be initialized when the CP is set up. Set the blit state as the default clear state and use the CLEAR_STATE packet to load the blit state rather than loading it from an IB. This reduces overhead when doing bo moves using the 3D engine. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit cbff3eb3e6e3c618583a7435f87c1548aa12b0ad Author: Daein Moon Date: Tue Oct 26 12:51:17 2010 +0900 ARM: S5PV310: Support ethernet for SMDKV310 and SMDKC210 This patch adds to support ethernet for SMDKV310 and SMDKC210 board. - define smc911x resources - define configurations of smc911x platform data - define platform device "smsc911x" - initialize srom controller for lan9215 chip Signed-off-by: Daein Moon Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit c3cceeddf0b5f97b0d2352b98ef0f025e31a9ae3 Author: Dave Airlie Date: Tue Oct 26 12:55:52 2010 +1000 drm/radeon/kms: don't poll dac load detect. This is slightly destructive, cpu intensive and can cause lockups. Signed-off-by: Dave Airlie commit 1e9aed156b7bc42311370b155f73ee5961b8557d Author: Rogerio Pimentel Date: Mon Oct 25 12:53:57 2010 -0200 mx31_3ds: Remove unused debug board definitions In commit (c5d38f08): "mx31_3ds: revert 3ds debug board relate code" the debug board definitions are placed in a separate file. Remove the remaining debug board related define from mach-mx31_3ds.c. Signed-off-by: Fabio Estevam Signed-off-by: Rogerio Pimentel Signed-off-by: Sascha Hauer commit 411b5e05617593efebc06241dbc56f42150f2abe Author: Joe Perches Date: Mon Sep 13 12:48:01 2010 -0700 net/sunrpc: Use static const char arrays Signed-off-by: Joe Perches Signed-off-by: Trond Myklebust commit 43c2e885be25311e6289c7da52e8a03c4453ee03 Author: J. Bruce Fields Date: Sat Oct 2 15:19:01 2010 -0400 nfs4: fix channel attribute sanity-checks The sanity checks here are incorrect; in the worst case they allow values that crash the client. They're also over-reliant on the preprocessor. Signed-off-by: J. Bruce Fields Signed-off-by: Trond Myklebust commit b18cae4224bde7e5a332c19bc99247b2098ea232 Merge: 4833c16 f41649e Author: Linus Torvalds Date: Mon Oct 25 18:42:06 2010 -0700 Merge branch 'for-next' of git://android.git.kernel.org/kernel/tegra * 'for-next' of git://android.git.kernel.org/kernel/tegra: spi: tegra: fix error setting on timeout spi: add spi_tegra driver tegra: harmony: enable PCI Express tegra: add PCI Express support tegra: add PCI Express clocks [ARM] tegra: Add APB DMA support [ARM] tegra: Add cpufreq support [ARM] tegra: common: Update common clock init table [ARM] tegra: clock: Add dvfs support, bug fixes, and cleanups [ARM] tegra: Add support for reading fuses [ARM] tegra: gpio: Add suspend and wake support [ARM] tegra: pinmux: add safe values, move tegra2, add suspend [ARM] tegra: add suspend and mirror irqs to legacy controller [ARM] tegra: Add legacy irq support [ARM] tegra: update iomap commit 4833c16dea61cb30d6f77dfec3067a08ba79b361 Merge: e0e170b ad3e01a Author: Linus Torvalds Date: Mon Oct 25 18:41:32 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin: Blackfin: fix inverted anomaly 05000481 logic Blackfin: drop unused irq_panic()/DEBUG_ICACHE_CHECK Blackfin: ppi/spi/twi headers: add missing __BFP undef Blackfin: update defconfigs Blackfin: bfin_twi.h: start a common TWI header netdev: bfin_mac: push settings to platform resources commit 63997e98a3be68d7cec806d22bf9b02b2e1daabb Author: Al Viro Date: Mon Oct 25 20:49:35 2010 -0400 split invalidate_inodes() Pull removal of fsnotify marks into generic_shutdown_super(). Split umount-time work into a new function - evict_inodes(). Make sure that invalidate_inodes() will be able to cope with I_FREEING once we change locking in iput(). Signed-off-by: Al Viro commit 9843b76aae80293f5b5a0e275360627508595ce5 Author: Christoph Hellwig Date: Sun Oct 24 19:40:46 2010 +0200 fs: skip I_FREEING inodes in writeback_sb_inodes Skip I_FREEING inodes just like I_WILL_FREE and I_NEW when walking the writeback lists. Currenly this can't happen, but once we move from inode_lock to more fine grained locking we can have an inode that's still on the writeback lists but has I_FREEING set, and we absolutely need to skip it here, just like we do for all other inode list walks. Based on a patch from Dave Chinner. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit a031878670ac8fe466859d4c1506bd91ae48678c Author: Christoph Hellwig Date: Sun Oct 24 19:40:33 2010 +0200 fs: fold invalidate_list into invalidate_inodes Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit d895a1c96af8c2a0f6a5e0119695a7c6b92df8db Author: Christoph Hellwig Date: Sun Oct 24 19:40:24 2010 +0200 fs: do not drop inode_lock in dispose_list Despite the comment above it we can not safely drop the lock here. invalidate_list is called from many other places that just umount. Also switch to proper list macros now that we never drop the lock. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 7ccf19a8042e343f8159f8a5fdd6a9422aa90c78 Author: Nick Piggin Date: Thu Oct 21 11:49:30 2010 +1100 fs: inode split IO and LRU lists The use of the same inode list structure (inode->i_list) for two different list constructs with different lifecycles and purposes makes it impossible to separate the locking of the different operations. Therefore, to enable the separation of the locking of the writeback and reclaim lists, split the inode->i_list into two separate lists dedicated to their specific tracking functions. Signed-off-by: Nick Piggin Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Al Viro commit a5491e0c7bb7387e3e6ff9994d6dc2efc78af56c Author: Dave Chinner Date: Thu Oct 21 11:49:26 2010 +1100 fs: switch bdev inode bdi's correctly bdev inodes can remain dirty even after their last close. Hence the BDI associated with the bdev->inode gets modified duringthe last close to point to the default BDI. However, the bdev inode still needs to be moved to the dirty lists of the new BDI, otherwise it will corrupt the writeback list is was left on. Add a new function bdev_inode_switch_bdi() to move all the bdi state from the old bdi to the new one safely. This is only a temporary measure until the bdev inode<->bdi lifecycle problems are sorted out. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Al Viro commit 99a38919241fd051b8d93b2e4d0c05ef0556d795 Author: Christoph Hellwig Date: Sat Oct 23 19:07:20 2010 +0200 fs: fix buffer invalidation in invalidate_list We must not call invalidate_inode_buffers in invalidate_list unless the inode can be reclaimed. If we remove the buffer association of a busy inode fsync won't find the buffers anymore. As invalidate_inode_buffers is called from various others sources than umount this actually does matter in practice. While at it change the loop to a more natural form and remove the WARN_ON for I_NEW, wich we already tested a few lines above. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 4d4eb36679adbdd75495e1bbfe7ac40e4ae41dea Author: Christoph Hellwig Date: Sun Oct 10 05:36:30 2010 -0400 fsnotify: use dget_parent Use dget_parent instead of opencoding it. This simplifies the code, but more importanly prepares for the more complicated locking for a parent dget in the dcache scale patch series. It means we do grab a reference to the parent now if need to be watched, but not with the specified mask. If this turns out to be a problem we'll have to revisit it, but for now let's keep as much as possible dcache internals inside dcache.[ch]. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit be9eee2e8b87e335531a3ae13abb8d26e834c438 Author: Christoph Hellwig Date: Sun Oct 10 05:36:29 2010 -0400 smbfs: use dget_parent Use dget_parent instead of opencoding it. This simplifies the code, but more importanly prepares for the more complicated locking for a parent dget in the dcache scale patch series. Note that the d_time assignment in smb_renew_times moves out of d_lock, but it's a single atomic 32-bit value, and that's what other sites setting it do already. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 0461ee2616252f1f6cec628990fa913a4282dcf7 Author: Christoph Hellwig Date: Wed Oct 13 11:56:37 2010 -0400 exportfs: use dget_parent Use dget_parent instead of opencoding it. This simplifies the code, but more importanly prepares for the more complicated locking for a parent dget in the dcache scale patch series. Signed-off-by: Al Viro commit 3825bdb7ed920845961f32f364454bee5f469abb Author: Christoph Hellwig Date: Sun Oct 10 05:36:27 2010 -0400 fs: use RCU read side protection in d_validate d_validate does a purely read lookup in the dentry hash, so use RCU read side locking instead of dcache_lock. Split out from a larget patch by Nick Piggin . Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit a4633357ac610cd2f8740e28a31fc148a7960421 Author: Christoph Hellwig Date: Sun Oct 10 05:36:26 2010 -0400 fs: clean up dentry lru modification Always do a list_del_init on the LRU to make sure the list_empty invariant for not beeing on the LRU always holds true, and fold dentry_lru_del_init into dentry_lru_del. Replace the dentry_lru_add_tail primitive with a dentry_lru_move_tail operations that simpler when the dentry already is one the list, which is always is. Move the list_empty into dentry_lru_add to fit the scheme of the other lru helpers, and simplify locking once we move to a separate LRU lock. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 3049cfe24ef3872ba74f90630356722cf988b80d Author: Christoph Hellwig Date: Sun Oct 10 05:36:25 2010 -0400 fs: split __shrink_dcache_sb Currently __shrink_dcache_sb has an extremly awkward calling convention because it tries to please very different callers. Split out the main loop into a shrink_dentry_list helper, which gets called directly from shrink_dcache_sb for the cases where all dentries need to be pruned, or from __shrink_dcache_sb for pruning only a certain number of dentries. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 265ac90230257e9c035e4b0c63a0c11c5336e93c Author: Nick Piggin Date: Sun Oct 10 05:36:24 2010 -0400 fs: improve DCACHE_REFERENCED usage dentry referenced bit is only set when installing the dentry back onto the LRU. However with lazy LRU, the dentry can already be on the LRU list at dput time, thus missing out on setting the referenced bit. Fix this. Signed-off-by: Nick Piggin Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 312d3ca856d369bb04d0443846b85b4cdde6fa8a Author: Christoph Hellwig Date: Sun Oct 10 05:36:23 2010 -0400 fs: use percpu counter for nr_dentry and nr_dentry_unused The nr_dentry stat is a globally touched cacheline and atomic operation twice over the lifetime of a dentry. It is used for the benfit of userspace only. Turn it into a per-cpu counter and always decrement it in d_free instead of doing various batching operations to reduce lock hold times in the callers. Based on an earlier patch from Nick Piggin . Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 9c82ab9c9e16cb9edf17bd0d31f3d6904afce04f Author: Christoph Hellwig Date: Sun Oct 10 05:36:22 2010 -0400 fs: simplify __d_free Remove d_callback and always call __d_free with a RCU head. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit be148247cfbe2422f5709e77d9c3e10b8a6394da Author: Christoph Hellwig Date: Sun Oct 10 05:36:21 2010 -0400 fs: take dcache_lock inside __d_path All callers take dcache_lock just around the call to __d_path, so take the lock into it in preparation of getting rid of dcache_lock. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 85fe4025c616a7c0ed07bc2fc8c5371b07f3888c Author: Christoph Hellwig Date: Sat Oct 23 11:19:54 2010 -0400 fs: do not assign default i_ino in new_inode Instead of always assigning an increasing inode number in new_inode move the call to assign it into those callers that actually need it. For now callers that need it is estimated conservatively, that is the call is added to all filesystems that do not assign an i_ino by themselves. For a few more filesystems we can avoid assigning any inode number given that they aren't user visible, and for others it could be done lazily when an inode number is actually needed, but that's left for later patches. Signed-off-by: Christoph Hellwig Signed-off-by: Dave Chinner Signed-off-by: Al Viro commit f991bd2e14210fb93d722cb23e54991de20e8a3d Author: Eric Dumazet Date: Sat Oct 23 11:18:01 2010 -0400 fs: introduce a per-cpu last_ino allocator new_inode() dirties a contended cache line to get increasing inode numbers. This limits performance on workloads that cause significant parallel inode allocation. Solve this problem by using a per_cpu variable fed by the shared last_ino in batches of 1024 allocations. This reduces contention on the shared last_ino, and give same spreading ino numbers than before (i.e. same wraparound after 2^32 allocations). Signed-off-by: Eric Dumazet Signed-off-by: Nick Piggin Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Al Viro commit 7de9c6ee3ecffd99e1628e81a5ea5468f7581a1f Author: Al Viro Date: Sat Oct 23 11:11:40 2010 -0400 new helper: ihold() Clones an existing reference to inode; caller must already hold one. Signed-off-by: Al Viro commit 646ec4615cd05972581c9c5342ed7a1e77df17bb Author: Christoph Hellwig Date: Sat Oct 23 07:15:32 2010 -0400 fs: remove inode_add_to_list/__inode_add_to_list Split up inode_add_to_list/__inode_add_to_list. Locking for the two lists will be split soon so these helpers really don't buy us much anymore. The __ prefixes for the sb list helpers will go away soon, but until inode_lock is gone we'll need them to distinguish between the locked and unlocked variants. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit f7899bd5472e8e99741369b4a32eca44e5282a85 Author: Christoph Hellwig Date: Sat Oct 23 07:09:06 2010 -0400 fs: move i_count increments into find_inode/find_inode_fast Now that iunique is not abusing find_inode anymore we can move the i_ref increment back to where it belongs. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit ad5e195ac9fdf4e2b28b8cf14937e5b9384dac2e Author: Christoph Hellwig Date: Sat Oct 23 07:00:16 2010 -0400 fs: Stop abusing find_inode_fast in iunique Stop abusing find_inode_fast for iunique and opencode the inode hash walk. Introduce a new iunique_lock to protect the iunique counters once inode_lock is removed. Based on a patch originally from Nick Piggin. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 4c51acbc66f754e536e1c9e3331656b69bce86d0 Author: Dave Chinner Date: Sat Oct 23 06:58:09 2010 -0400 fs: Factor inode hash operations into functions Before replacing the inode hash locking with a more scalable mechanism, factor the removal of the inode from the hashes rather than open coding it in several places. Based on a patch originally from Nick Piggin. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Al Viro commit 9e38d86ff2d8a8db99570e982230861046df32b5 Author: Nick Piggin Date: Sat Oct 23 06:55:17 2010 -0400 fs: Implement lazy LRU updates for inodes Convert the inode LRU to use lazy updates to reduce lock and cacheline traffic. We avoid moving inodes around in the LRU list during iget/iput operations so these frequent operations don't need to access the LRUs. Instead, we defer the refcount checks to reclaim-time and use a per-inode state flag, I_REFERENCED, to tell reclaim that iget has touched the inode in the past. This means that only reclaim should be touching the LRU with any frequency, hence significantly reducing lock acquisitions and the amount contention on LRU updates. This also removes the inode_in_use list, which means we now only have one list for tracking the inode LRU status. This makes it much simpler to split out the LRU list operations under it's own lock. Signed-off-by: Nick Piggin Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Al Viro commit cffbc8aa334f55c9ed42d25202eb3ebf3a97c195 Author: Dave Chinner Date: Sat Oct 23 05:03:02 2010 -0400 fs: Convert nr_inodes and nr_unused to per-cpu counters The number of inodes allocated does not need to be tied to the addition or removal of an inode to/from a list. If we are not tied to a list lock, we could update the counters when inodes are initialised or destroyed, but to do that we need to convert the counters to be per-cpu (i.e. independent of a lock). This means that we have the freedom to change the list/locking implementation without needing to care about the counters. Based on a patch originally from Eric Dumazet. [AV: cleaned up a bit, fixed build breakage on weird configs Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Al Viro commit be1a16a0ae29a7c90081a657b64aa51cb1a65a27 Author: Miklos Szeredi Date: Tue Oct 5 12:31:09 2010 +0200 vfs: fix infinite loop caused by clone_mnt race If clone_mnt() happens while mnt_make_readonly() is running, the cloned mount might have MNT_WRITE_HOLD flag set, which results in mnt_want_write() spinning forever on this mount. Needs CAP_SYS_ADMIN to trigger deliberately and unlikely to happen accidentally. But if it does happen it can hang the machine. Signed-off-by: Miklos Szeredi Signed-off-by: Al Viro commit 89b0fc38cca4e6c92a90b58960881ffc5dddd89c Author: Al Viro Date: Sat Oct 23 15:26:21 2010 -0400 switch hfs to hlist_add_fake() Signed-off-by: Al Viro commit 756acc2d61712a8cafe2aa6ad626c60a185d3645 Author: Al Viro Date: Sat Oct 23 15:23:40 2010 -0400 list.h: new helper - hlist_add_fake() Make node look as if it was on hlist, with hlist_del() working correctly. Usable without any locking... Convert a couple of places where we want to do that to inode->i_hash. Signed-off-by: Al Viro commit 1d3382cbf02986e4833849f528d451367ea0b4cb Author: Al Viro Date: Sat Oct 23 15:19:20 2010 -0400 new helper: inode_unhashed() note: for race-free uses you inode_lock held Signed-off-by: Al Viro commit a8dade34e3df581bc36ca2afe6e27055e178801c Author: Al Viro Date: Sun Oct 24 11:13:10 2010 -0400 unexport invalidate_inodes Signed-off-by: Al Viro commit 61ebdb4254e3ecb59022d2c730b57b04d0eeecc6 Author: Al Viro Date: Sun Oct 24 10:48:15 2010 -0400 smbfs never retains inodes with zero refcount in the first place Signed-off-by: Al Viro commit 70fd136ecc44ca8c364f4412f447de1d940c3639 Author: Al Viro Date: Sun Oct 24 09:50:11 2010 -0400 ntfs: don't call invalidate_inodes() We are in fill_super(); again, no inodes with zero i_count could be around until we set MS_ACTIVE. Signed-off-by: Al Viro commit 9dcefee508d547eed88f3c578dc92819bdeaa952 Author: Al Viro Date: Sun Oct 24 09:46:50 2010 -0400 gfs2: invalidate_inodes() is no-op there In fill_super() we hadn't MS_ACTIVE set yet, so there won't be any inodes with zero i_count sitting around. In put_super() we already have MS_ACTIVE removed *and* we had called invalidate_inodes() since then. So again there won't be any inodes with zero i_count... Signed-off-by: Al Viro commit 8e3b9a072d071700e83e88b0bf59115c59042885 Author: Al Viro Date: Sun Oct 24 09:45:22 2010 -0400 ext2_remount: don't bother with invalidate_inodes() It's pointless - we *do* have busy inodes (root directory, for one), so that call will fail and attempt to change XIP flag will be ignored. Signed-off-by: Al Viro commit 309f77ad9bea057d55b04580b5a711e9e3727e83 Author: Namhyung Kim Date: Mon Oct 25 15:01:12 2010 +0900 fs/buffer.c: call __block_write_begin() if we have page If we have the appropriate page already, call __block_write_begin() directly instead of releasing and regrabbing it inside of block_write_begin(). Signed-off-by: Namhyung Kim Signed-off-by: Al Viro commit a3314a0ed389f51a51695120b429eccd45b3a165 Author: Namhyung Kim Date: Mon Oct 11 22:38:00 2010 +0900 lockdep: fixup checking of dir inode annotation Since inode->i_mode shares its bits for S_IFMT, S_ISDIR should be used to distinguish whether it is a dir or not. Signed-off-by: Namhyung Kim Signed-off-by: Al Viro commit 306fb0979443419288594446a348155a8027dcf2 Author: Chris Mason Date: Mon Aug 23 10:47:55 2010 -0400 aio: bump i_count instead of using igrab The aio batching code is using igrab to get an extra reference on the inode so it can safely batch. igrab will go ahead and take the global inode spinlock, which can be a bottleneck on large machines doing lots of AIO. In this case, igrab isn't required because we already have a reference on the file handle. It is safe to just bump the i_count directly on the inode. Benchmarking shows this patch brings IOP/s on tons of flash up by about 2.5X. Signed-off-by: Chris Mason commit e1455d1bdccbe056ba53479741b1452106ce59aa Author: Christoph Hellwig Date: Wed Oct 6 10:46:53 2010 +0200 update block_device_operations documentation Updated Documentation/filesystems/Locking to match the code. Signed-off-by: Christoph Hellwig commit 8358e7d71e712d3bd4e20ecf23e6fd7480c83684 Author: Namhyung Kim Date: Sat Oct 16 12:40:33 2010 +0900 fs/buffer.c: remove duplicated assignment on b_private bh->b_private is initialized within init_buffer(), thus the assignment should be redundant. Remove it. Signed-off-by: Namhyung Kim Signed-off-by: Al Viro commit bb1e5f8c022ae2f6bf1ec0c6b861db3c35976377 Author: Randy Dunlap Date: Fri Oct 15 16:32:27 2010 -0700 fs: move exportfs since it is not a networking filesystem Move the EXPORTFS kconfig symbol out of the NETWORK_FILESYSTEMS block since it provides a library function that can be (and is) used by other (non-network) filesystems. This also eliminates a kconfig dependency warning: warning: (XFS_FS && BLOCK || NFSD && NETWORK_FILESYSTEMS && INET && FILE_LOCKING && BKL) selects EXPORTFS which has unmet direct dependencies (NETWORK_FILESYSTEMS) Signed-off-by: Randy Dunlap Cc: Dave Chinner Cc: Christoph Hellwig Cc: Alex Elder Cc: xfs-masters@oss.sgi.com Signed-off-by: Al Viro commit 3072b90c4726396e38160cc1f7c93191e2f4a566 Author: Christoph Hellwig Date: Wed Oct 6 10:49:17 2010 +0200 hfs: use sync_dirty_buffer Use sync_dirty_buffer instead of the incorrect opencoding it. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 4a3956c790290efeb647bbb0c3a90476bb57800e Author: KAMEZAWA Hiroyuki Date: Fri Oct 1 14:20:22 2010 -0700 vfs: introduce FMODE_UNSIGNED_OFFSET for allowing negative f_pos Now, rw_verify_area() checsk f_pos is negative or not. And if negative, returns -EINVAL. But, some special files as /dev/(k)mem and /proc//mem etc.. has negative offsets. And we can't do any access via read/write to the file(device). So introduce FMODE_UNSIGNED_OFFSET to allow negative file offsets. Signed-off-by: Wu Fengguang Signed-off-by: KAMEZAWA Hiroyuki Cc: Al Viro Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Al Viro commit ba10f486658c0ca1bc84c936f6a996e40d071453 Author: Richard Weinberger Date: Tue Oct 19 14:27:59 2010 -0700 hostfs: fix UML crash: remove f_spare from hostfs 365b1818 ("add f_flags to struct statfs(64)") resized f_spare within struct statfs which caused a UML crash. There is no need to copy f_spare. Signed-off-by: Richard Weinberger Reported-by: Toralf Förster Tested-by: Toralf Förster Cc: Christoph Hellwig Cc: Al Viro Cc: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Al Viro commit d9d1dc802ffae507956ceb350eb3f4a995734f1e Author: Valerie Aurora Date: Mon Aug 30 17:23:12 2010 -0400 Documentation: Fix trivial typo in filesystems/sharedsubtree.txt Documentation: Fix trivial typo in filesystems/sharedsubtree.txt This typo is easy to ignore unless you have spent a great deal of time thinking about how to eliminate duplicate dentries in unions. Signed-off-by: Valerie Aurora Signed-off-by: Al Viro commit 0e45b67d5aeb3dcfb6b149cf61c30b9a8e503f74 Author: Dan Carpenter Date: Wed Aug 25 09:05:27 2010 +0200 affs: testing the wrong variable The intent was to verify that bh = affs_bread_ino(...) returned a valid pointer. We checked "ext_bh" earlier in the function and it's valid here. Signed-off-by: Dan Carpenter Signed-off-by: Al Viro commit 7e360c38abe2c70eae3ba5a8a17f17671d8b77c5 Author: Eric Dumazet Date: Tue Oct 5 09:32:55 2010 +0200 fs: allow for more than 2^31 files Andrew, Could you please review this patch, you probably are the right guy to take it, because it crosses fs and net trees. Note : /proc/sys/fs/file-nr is a read-only file, so this patch doesnt depend on previous patch (sysctl: fix min/max handling in __do_proc_doulongvec_minmax()) Thanks ! [PATCH V4] fs: allow for more than 2^31 files Robin Holt tried to boot a 16TB system and found af_unix was overflowing a 32bit value : We were seeing a failure which prevented boot. The kernel was incapable of creating either a named pipe or unix domain socket. This comes down to a common kernel function called unix_create1() which does: atomic_inc(&unix_nr_socks); if (atomic_read(&unix_nr_socks) > 2 * get_max_files()) goto out; The function get_max_files() is a simple return of files_stat.max_files. files_stat.max_files is a signed integer and is computed in fs/file_table.c's files_init(). n = (mempages * (PAGE_SIZE / 1024)) / 10; files_stat.max_files = n; In our case, mempages (total_ram_pages) is approx 3,758,096,384 (0xe0000000). That leaves max_files at approximately 1,503,238,553. This causes 2 * get_max_files() to integer overflow. Fix is to let /proc/sys/fs/file-nr & /proc/sys/fs/file-max use long integers, and change af_unix to use an atomic_long_t instead of atomic_t. get_max_files() is changed to return an unsigned long. get_nr_files() is changed to return a long. unix_nr_socks is changed from atomic_t to atomic_long_t, while not strictly needed to address Robin problem. Before patch (on a 64bit kernel) : # echo 2147483648 >/proc/sys/fs/file-max # cat /proc/sys/fs/file-max -18446744071562067968 After patch: # echo 2147483648 >/proc/sys/fs/file-max # cat /proc/sys/fs/file-max 2147483648 # cat /proc/sys/fs/file-nr 704 0 2147483648 Reported-by: Robin Holt Signed-off-by: Eric Dumazet Acked-by: David Miller Reviewed-by: Robin Holt Tested-by: Robin Holt Signed-off-by: Al Viro commit fde214d414218fb6cace35708730986bcc94fb53 Author: Jan Kara Date: Mon Oct 4 11:37:37 2010 +0200 isofs: Fix isofs_get_blocks for 8TB files Currently isofs_get_blocks() was limited to handle only 4TB files on 32-bit architectures because of unnecessary use of iblock variable which was signed long. Just remove the variable. The error messages that were using this variable should have rather used b_off anyway because that is the block we are currently mapping. Signed-off-by: Jan Kara Signed-off-by: Al Viro commit ebdec241d509cf69f6ebf1ecdc036359d3dbe154 Author: Christoph Hellwig Date: Wed Oct 6 10:47:23 2010 +0200 fs: kill block_prepare_write __block_write_begin and block_prepare_write are identical except for slightly different calling conventions. Convert all callers to the __block_write_begin calling conventions and drop block_prepare_write. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 56b0dacfa2b8416815a2f2a5f4f51e46be4cf14c Author: Christoph Hellwig Date: Wed Oct 6 10:48:55 2010 +0200 fs: mark destroy_inode static Hugetlbfs used to need it, but after the destroy_inode and evict_inode changes it's not required anymore. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit c37650161a53c01ddd88587675f9a4adc909a73e Author: Christoph Hellwig Date: Wed Oct 6 10:48:20 2010 +0200 fs: add sync_inode_metadata Add a new helper to write out the inode using the writeback code, that is including the correct dirty bit and list manipulation. A few of filesystems already opencode this, and a lot of others should be using it instead of using write_inode_now which also writes out the data. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit 81fca444001e5a41ab80ce8cf9a5734c00ec6546 Author: Christoph Hellwig Date: Wed Oct 6 10:47:47 2010 +0200 fs: move permission check back into __lookup_hash The caller that didn't need it is gone. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro commit e26fd1199ebab0d469fc3e037da5932d382f0669 Author: Lee, Chun-Yi Date: Wed Oct 20 13:51:19 2010 +0800 gpu: Add Intel GMA500(Poulsbo) Stub Driver Currently, there have no GMA500(Poulsbo) native video driver to support intel opregion. So, use this stub driver to enable the acpi backlight control sysfs entry files by requrest acpi_video_register. [airlied: fix warnings] Signed-off-by: Lee, Chun-Yi Signed-off-by: Dave Airlie commit b7d8cce5b558e0c0aa6898c9865356481598b46d Author: Alex Deucher Date: Mon Oct 25 19:44:00 2010 -0400 drm/radeon/kms: MC vram map needs to be >= pci aperture size The vram map in the radeon memory controller needs to be >= the pci aperture size. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28402 The problematic cards in the above bug have 64 MB of vram, but the pci aperture is 128 MB and the MC vram map was only 64 MB. This can lead to hangs. Signed-off-by: Alex Deucher Cc: stable@kernel.org Signed-off-by: Dave Airlie commit f9d9c36204243d81e9d4dd28e58ee335257847d2 Author: Alex Deucher Date: Fri Oct 22 02:51:05 2010 -0400 drm/radeon/kms: implement display watermark support for evergreen Improper display watermarks can result in underflow to the display controllers which can cause flickering or other artifacts. This patch implements display watermark support and line buffer allocation for evergreen asics. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit 71901cc4109b3794b863884e348aff3c71e693cc Author: Alex Deucher Date: Thu Oct 21 13:45:30 2010 -0400 drm/radeon/kms/evergreen: add some additional safe regs v2 These are needed for enabling dynamic GPR allocation in the shaders in the userspace acceleration drivers. v2: fix typo in reg name Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit f30df2fad0c901e74ac9a52a488a54c69a373a41 Author: Dave Airlie Date: Thu Oct 21 13:55:40 2010 +1000 drm/radeon/r600: fix tiling issues in CS checker. The CS checker had some incorrect alignment requirements for 2D surfaces, this made rendering to mipmap levels that were 2D broken. Also the CB height was being worked out from the BO size, this doesn't work at all when rendering mipmap levels, instead we work out what height userspace wanted from slice max and use that to check it fits inside the BO, however the DDX send the wrong slice max for an unaligned buffer so we have to workaround for that even though its a userspace bug. Reviewed-by: Alex Deucher Signed-off-by: Dave Airlie commit af48931c4863ced64cc52c58757be6e254437f9a Author: Rafael J. Wysocki Date: Sun Oct 17 21:01:21 2010 +0200 ACPI / PM: Blacklist another machine that needs acpi_sleep=nonvs Sony Vaio VPCEB1Z1E is reported to require acpi_sleep=nonvs for suspend/resume to work on it correctly, so blacklist it. Reported-by: Emanuele Bigiarini Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown commit 7f6c1bd50d73d12f8b4ea09edb4515997f6527f5 Author: Arnaldo Carvalho de Melo Date: Mon Oct 25 22:12:01 2010 -0200 perf python scripting: Support fedora 11 (audit 1.7.17) Where we don't have the audit.MACH_ARMEB constant. Cc: David S. Miller Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo commit f41649e040b1f63e809fb2adb78ed2f3c3ebbcd0 Author: Erik Gilling Date: Wed Sep 8 18:16:45 2010 -0700 spi: tegra: fix error setting on timeout avoids derefencing an uninitialized pointer Change-Id: Icf528441ae481e9f6f5ddc0be32c7c217fa49701 Signed-off-by: Erik Gilling commit e0e170bd7ded2ec16e2813d63c0faff43193fde8 Merge: b20f9e5 b843e4e Author: Linus Torvalds Date: Mon Oct 25 16:53:11 2010 -0700 Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze * 'next' of git://git.monstr.eu/linux-2.6-microblaze: (42 commits) microblaze: Fix build with make 3.82 fbdev/xilinxfb: Microblaze driver support microblaze: Support C optimized lib functions for little-endian microblaze: Separate library optimized functions microblaze: Support timer on AXI lite microblaze: Add support for little-endian Microblaze microblaze: KGDB little endian support microblaze: Add PVR for endians plus detection net: emaclite: Add support for little-endian platforms microblaze: trivial: Add comment for AXI pvr microblaze: pci-common cleanup microblaze: Support early console on uart16550 microblaze: Do not compile early console support for uartlite if is disabled microblaze: Setup early console dynamically microblaze: Rename all uartlite early printk functions microblaze: remove early printk uarlite console dependency from header microblaze: Remove additional compatible properties microblaze: Remove hardcoded asm instraction for PVR loading microblaze: Use static const char * const where possible microblaze: Define VMALLOC_START/END ... commit 10d8c4638c5a797baad5846a3447c0ccca8986a3 Author: Randy Dunlap Date: Mon Oct 25 16:47:36 2010 -0700 pch_can: depends on PCI Fix pch_can build when CONFIG_PCI is not enabled. It uses pci interfaces and data structures, so it should depend on PCI. drivers/net/can/pch_can.c:1044: error: implicit declaration of function 'pci_enable_msi' drivers/net/can/pch_can.c:1079: error: implicit declaration of function 'pci_disable_msi' Signed-off-by: Randy Dunlap Signed-off-by: David S. Miller commit 09596ba07e81655dd8d90eb648cb443d48cdc9da Author: Daein Moon Date: Mon Oct 25 16:30:40 2010 +0900 ARM: S5PV310: Add support SROMC This patch adds support SROMC for S5PV310 and S5PC210. Signed-off-by: Daein Moon Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit a6149c09c96d2afdc73ff77f58d14f1e8946b1c6 Author: Daein Moon Date: Tue Oct 26 08:40:08 2010 +0900 ARM: SAMSUNG: Add the missed s3c_gpio_getpull() API This patch adds the s3c_gpio_getpull() API that has been missed in the plat-samsung/gpio-config.c and actullay there is its extern declaration in plat/gpio-cfg.h. Signed-off-by: Daein Moon Cc: Ben Dooks Signed-off-by: Kukjin Kim commit 45263cb0993de738e158c625c84a5feb18bed317 Author: Ian Campbell Date: Mon Oct 25 16:32:29 2010 -0700 xen: include xen/xen.h for definition of xen_initial_domain() CC arch/x86/xen/setup.o arch/x86/xen/setup.c: In function 'xen_memory_setup': arch/x86/xen/setup.c:161: error: implicit declaration of function 'xen_initial_domain' Signed-off-by: Ian Campbell Signed-off-by: Jeremy Fitzhardinge commit b20f9e5bddddb5ef0d743d6e0d409ffc8cf9fc56 Merge: 5260562 b11e7b3 Author: Linus Torvalds Date: Mon Oct 25 16:25:31 2010 -0700 Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/staging * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/staging: (24 commits) hwmon: lis3: Release resources in case of failure hwmon: lis3: Short explanations of platform data fields hwmon: lis3: Enhance lis3 selftest with IRQ line test hwmon: lis3: use block read to access data registers hwmon: lis3: Adjust fuzziness for 8 bit device hwmon: lis3: New parameters to platform data hwmon: lis3: restore axis enabled bits hwmon: lis3: Power on corrections hwmon: lis3: Update coordinates at polled device open hwmon: lis3: Cleanup interrupt handling hwmon: lis3: regulator control hwmon: lis3: pm_runtime support Kirkwood: add fan support for Network Space Max v2 hwmon: add generic GPIO fan driver hwmon: (coretemp) fix reading of microcode revision (v2) hwmon: ({core, pkg, via-cpu}temp) remove unnecessary CONFIG_HOTPLUG_CPU ifdefs hwmon: (pkgtemp) align driver initialization style with coretemp hwmon: LTC4261 Hardware monitoring driver hwmon: (lis3) add axes module parameter for custom axis-mapping hwmon: (hp_accel) Add HP Mini 510x family support ... commit 5260562754c0aa4b95eebb1f851eaccce7286365 Author: David Howells Date: Mon Oct 25 23:41:11 2010 +0100 MN10300: Fix the PERCPU() alignment to allow for workqueues In the MN10300 arch, we occasionally see an assertion being tripped in alloc_cwqs() at the following line: /* just in case, make sure it's actually aligned */ ---> BUG_ON(!IS_ALIGNED(wq->cpu_wq.v, align)); return wq->cpu_wq.v ? 0 : -ENOMEM; The values are: wa->cpu_wq.v => 0x902776e0 align => 0x100 and align is calculated by the following: const size_t align = max_t(size_t, 1 << WORK_STRUCT_FLAG_BITS, __alignof__(unsigned long long)); This is because the pointer in question (wq->cpu_wq.v) loses some of its lower bits to control flags, and so the object it points to must be sufficiently aligned to avoid the need to use those bits for pointing to things. Currently, 4 control bits and 4 colour bits are used in normal circumstances, plus a debugging bit if debugging is set. This requires the cpu_workqueue_struct struct to be at least 256 bytes aligned (or 512 bytes aligned with debugging). PERCPU() alignment on MN13000, however, is only 32 bytes as set in vmlinux.lds.S. So we set this to PAGE_SIZE (4096) to match most other arches and stick a comment in alloc_cwqs() for anyone else who triggers the assertion. Reported-by: Akira Takeuchi Signed-off-by: David Howells Acked-by: Mark Salter Cc: Tejun Heo Signed-off-by: Linus Torvalds commit e3ce8a0b277438591844847ac7c89a980b4cfa6d Merge: e1efc9b 6419340 Author: Dave Airlie Date: Tue Oct 26 09:23:22 2010 +1000 Merge remote branch 'intel/drm-intel-next' of ../drm-next into drm-core-next * 'intel/drm-intel-next' of ../drm-next: (63 commits) drm/i915: Move gpu_write_list to per-ring drm/i915: Invalidate the to-ring, flush the old-ring when updating domains drm/i915/ringbuffer: Write the value passed in to the tail register agp/intel: Restore valid PTE bit for Sandybridge after bdd3072 drm/i915: Fix flushing regression from 9af90d19f drm/i915/sdvo: Remove unused encoding member i915: enable AVI infoframe for intel_hdmi.c [v4] drm/i915: Fix current fb blocking for page flip drm/i915: IS_IRONLAKE is synonymous with gen == 5 drm/i915: Enable SandyBridge blitter ring drm/i915/ringbuffer: Remove broken intel_fill_struct() drm/i915/ringbuffer: Fix emit batch buffer regression from 8187a2b drm/i915: Copy the updated reloc->presumed_offset back to the user drm/i915: Track objects in global active list (as well as per-ring) drm/i915: Simplify most HAS_BSD() checks drm/i915: cache the last object lookup during pin_and_relocate() drm/i915: Do interrupible mutex lock first to avoid locking for unreference drivers: gpu: drm: i915: Fix a typo. agp/intel: Also add B43.1 to list of supported devices drm/i915: rearrange mutex acquisition for pread ... commit 42d7ba3d6d56a6cbc773284896108b1e2ebcee81 Author: J. Bruce Fields Date: Sat Oct 23 11:55:53 2010 -0400 svcrpc: svc_tcp_sendto XPT_DEAD check is redundant The only caller (svc_send) has already checked XPT_DEAD. Signed-off-by: J. Bruce Fields commit 01dba075d571f5a8b7dcb153fdfd14e981c4cee3 Author: J. Bruce Fields Date: Sat Oct 23 11:23:46 2010 -0400 svcrpc: no need for XPT_DEAD check in svc_xprt_enqueue If any xprt marked DEAD is also left BUSY for the rest of its life, then the XPT_DEAD check here is superfluous--we'll get the same result from the XPT_BUSY check just after. Signed-off-by: J. Bruce Fields commit ac9303eb74471bc2567960b47497a8bfbe1e5a03 Author: J. Bruce Fields Date: Sat Oct 23 11:16:10 2010 -0400 svcrpc: assume svc_delete_xprt() called only once As long as DEAD exports are left BUSY, and svc_delete_xprt is called only with BUSY held, then svc_delete_xprt() will never be called on an xprt that is already DEAD. Signed-off-by: J. Bruce Fields commit 7e4fdd0744fcb9f08854c37643bf529c5945cc36 Author: J. Bruce Fields Date: Sat Oct 23 11:04:12 2010 -0400 svcrpc: never clear XPT_BUSY on dead xprt Once an xprt has been deleted, there's no reason to allow it to be enqueued--at worst, that might cause the xprt to be re-added to some global list, resulting in later corruption. Also, note this leaves us with no need for the reference-count manipulation here. Reviewed-by: NeilBrown Signed-off-by: J. Bruce Fields commit b11e7b3f3b56119194234085d42a633ceabd6aba Author: Samu Onkalo Date: Fri Oct 22 07:57:34 2010 -0400 hwmon: lis3: Release resources in case of failure If lis3lv02d_init_device fails, HW resources were not released properly. In case of failure call release_resources if available. Signed-off-by: Samu Onkalo Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit 12265f68ae925b9dee8099140b4213c28ef54f14 Author: James Smart Date: Fri Oct 22 11:05:53 2010 -0400 [SCSI] lpfc 8.3.18: Add support of received ELS commands Add support of received ELS commands - Add support for received RLS ELS command - Add support for received ECHO ELS command - Add support for received RTV ELS command Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit 5ac6b303834aa74855ecc3db98b4b1d9cad0de2f Author: James Smart Date: Fri Oct 22 11:05:36 2010 -0400 [SCSI] lpfc 8.3.18: FC/FCoE Discovery fixes FC/FCoE Discovery fixes: - Call the lpfc_drain_txq only for SLI4 hba - In lpfc_cmpl_els_fdisc, fix code path that does not free IOCB. - Treated firmware matching FCF property with different index as error - Propagate error returns from lpfc_issue_els_flogi() - Refactored lpfc_unregister_unused_fcf() to create a post lpfc_dev_loss_tmo handler call for SLI-4 devices. Allows checking of fcf after last ndlp released so that fcf can be released if no longer in use. - Replaced individual FCF_XXXX_DISC flag clearing in lieu of aggregate FCF_DISCOVERY flag upon succesful completion of flogi. - Correct setting of altBbCredit value in sparams to correct issue with logins with remote loop-based devices. Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit 32622bdea031a5a6a6efd6dac9b317de46d5c6f8 Author: Wayne Boyer Date: Mon Oct 18 20:24:34 2010 -0700 [SCSI] ipr: add definitions for a new adapter There was an addition to the hardware roadmap that includes a new adapter. This patch adds the new definitions for the adapter. Signed-off-by: Wayne Boyer Acked-by: Brian King Signed-off-by: James Bottomley commit 5fbe25c7a664601666895e8f95eaa59bd9741392 Author: Jing Huang Date: Mon Oct 18 17:17:23 2010 -0700 [SCSI] bfa: fix comments for c files This patch addresses the comments from Randy Dunlap (Randy.Dunlap@oracle.com) regarding comment blocks that begining with "/**". bfa driver comments currently do not follow kernel-doc convention, we hence replace all /** with /* and **/ with */. Signed-off-by: Jing Huang Signed-off-by: James Bottomley commit acdc79a60cb3cbbc9f07bb5032d890e9cf94f0ff Author: Jing Huang Date: Mon Oct 18 17:15:55 2010 -0700 [SCSI] bfa: fix comments for header files This patch addresses the comments from Randy Dunlap (Randy.Dunlap@oracle.com) regarding comment blocks that begining with "/**". bfa driver comments currently do not follow kernel-doc convention, we hence replace all /** with /* and **/ with */. Signed-off-by: Jing Huang Signed-off-by: James Bottomley commit e0a08a30c9451333c9c4a8981fbfccc80b87ce78 Author: Jing Huang Date: Mon Oct 18 17:14:01 2010 -0700 [SCSI] bfa: fix frame size over 1024 compile warning Fix compile warning for frame size over 1024 in gcc 4.4. Signed-off-by: Jing Huang Signed-off-by: James Bottomley commit ad3e01a331435a06055cdaf19cc973dd138dc925 Author: Mike Frysinger Date: Mon Oct 25 04:49:49 2010 -0400 Blackfin: fix inverted anomaly 05000481 logic No one uses these MMRs so we didn't notice when the anomaly handling logic was inverted. Reported-by: Robin Getz Signed-off-by: Mike Frysinger commit 09ebdedf48994117ede1b7792fc38268bc82549b Author: Mike Frysinger Date: Mon Oct 25 17:22:49 2010 -0400 Blackfin: drop unused irq_panic()/DEBUG_ICACHE_CHECK This code was useful during early port development when our icache code wasn't solid, but that ship has sailed long ago, and no code calls this function anymore (irq_panic). So punt it. Signed-off-by: Mike Frysinger commit 43a951e9994fd218ab4e641f94a2fc53556c3675 Author: Eric Dumazet Date: Mon Oct 25 03:32:44 2010 +0000 ipv4: add __rcu annotations to ip_ra_chain Add __rcu annotations to : (struct ip_ra_chain)->next struct ip_ra_chain *ip_ra_chain; And use appropriate rcu primitives. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 0d7da9ddd9a4eb7808698d04b98bf9d62d02649b Author: Eric Dumazet Date: Mon Oct 25 03:47:05 2010 +0000 net: add __rcu annotation to sk_filter Add __rcu annotation to : (struct sock)->sk_filter And use appropriate rcu primitives to reduce sparse warnings if CONFIG_SPARSE_RCU_POINTER=y Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 1c87733d0682547050ccccb400cdac425fa43b39 Author: Eric Dumazet Date: Mon Oct 25 03:20:11 2010 +0000 net_ns: add __rcu annotations add __rcu annotation to (struct net)->gen, and use rcu_dereference_protected() in net_assign_generic() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 6e3f7faf3e8a3e226b1a6b955aac12abf2f2e1b6 Author: Eric Dumazet Date: Mon Oct 25 03:02:02 2010 +0000 rps: add __rcu annotations Add __rcu annotations to : (struct netdev_rx_queue)->rps_map (struct netdev_rx_queue)->rps_flow_table struct rps_sock_flow_table *rps_sock_flow_table; And use appropriate rcu primitives. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 5344026065f79b102fcc44bc6332f856a111962a Author: Jing Huang Date: Mon Oct 18 17:12:29 2010 -0700 [SCSI] bfa: remove os wrapper functions and macros This patch replaces register access functions and macros with the the ones provided by linux. Signed-off-by: Jing Huang Signed-off-by: James Bottomley commit ba816ea8e2eacbf3d198ad1859f413c2d6213434 Author: Jing Huang Date: Mon Oct 18 17:10:50 2010 -0700 [SCSI] bfa: replace endian swap macros with the ones provided by linux Signed-off-by: Jing Huang Signed-off-by: James Bottomley commit 6a18b1675fdf08a6dc861e39c3f94309a03e7f16 Author: Jing Huang Date: Mon Oct 18 17:08:54 2010 -0700 [SCSI] bfa: remove os wrapper and unused functions This patch removes os wrapper and unused functions. bfa_os_assign(), bfa_os_memset(), bfa_os_memcpy(), bfa_os_udelay() bfa_os_vsprintf(), bfa_os_snprintf(), and bfa_os_get_clock() are replaced with direct assignment or native linux functions. Some unused functions related to VF (Vitual fabric) are also removed. Signed-off-by: Jing Huang Signed-off-by: James Bottomley commit 156606768cc234146e21fa6ba6316dbc67a204dd Author: Chauhan, Vijay Date: Mon Oct 18 14:07:24 2010 +0530 [SCSI] scsi_dh_rdac: Add two new SUN devices to rdac_dev_list Signed-off-by: Vijay Chauhan Acked-by: Chandra Seetharaman Signed-off-by: James Bottomley commit 83af1bd81f7b7fb31a681b0c80790866f190d23a Author: Samu Onkalo Date: Sat Oct 23 09:39:44 2010 -0400 hwmon: lis3: Short explanations of platform data fields Short documentation at kernel doc format. Signed-off-by: Samu Onkalo Acked-by: Jonathan Cameron Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit 029756d0b8856f52d83dee81c01dd3af786cadff Author: Samu Onkalo Date: Fri Oct 22 07:57:32 2010 -0400 hwmon: lis3: Enhance lis3 selftest with IRQ line test Configure chip to data ready mode in selftest and count received interrupts to see that interrupt line(s) are working. Signed-off-by: Samu Onkalo Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit f10a5407b58603fb3b084d7fbdbd50f47d010c82 Author: Samu Onkalo Date: Fri Oct 22 07:57:31 2010 -0400 hwmon: lis3: use block read to access data registers Add optional blockread function to interface driver. If available the chip driver uses it for data register access. For 12 bit device it reads 6 bytes to get 3*16bit data. For 8 bit device it reads out 5 bytes since every second byte is dummy. This optimizes bus usage and reduces number of operations and interrupts needed for one data update. Signed-off-by: Samu Onkalo Acked-by: Jonathan Cameron Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit 477bc918c2323a51f577cd892ca49376f6feb5d5 Author: Samu Onkalo Date: Fri Oct 22 07:57:30 2010 -0400 hwmon: lis3: Adjust fuzziness for 8 bit device Default fuziness is set smaller for 8 device. In 12 bit device LSB is quite close to 1 mg (mg = 1 / 1000 of earth gravity). In 8bit device LSB is about 18 mg. Set fuziness to 1 for 8 bit device. Signed-off-by: Samu Onkalo Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit cc23aa1ce2631b2fe1e3fba82ee444460f5ee3b7 Author: Samu Onkalo Date: Fri Oct 22 07:57:29 2010 -0400 hwmon: lis3: New parameters to platform data Added default output data rate setting to platform data. If default rate is 0, reset default value is used. Added control for duration via platform data. Added possibility to configure interrupts to trig on both rising and falling edge. The lis3 WU unit can be configured quite many ways and with some configurations it is quite handy to get coordinate refresh when some event trigs and when it reason goes away. Signed-off-by: Samu Onkalo Acked-by: Jonathan Cameron Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit ed37d7f619648bf1a3ac136e80d2d0d647734eb3 Author: Samu Onkalo Date: Fri Oct 22 07:57:28 2010 -0400 hwmon: lis3: restore axis enabled bits All axis enable bits are set to 0 at module remove. Restore reset default value at init. Signed-off-by: Samu Onkalo Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit 2a7fade7e03a7c773f91e2e5ff26ad6fafda5a9f Author: Samu Onkalo Date: Fri Oct 22 07:57:27 2010 -0400 hwmon: lis3: Power on corrections Sometimes lis3 chip seems to fail to setup factory tuning at boot up. This probably happens if there is some odd power ramp down ramp up sequence for example in device restart. Set boot bit in control2 register to trig boot sequence manually and wait until it is finished. Signed-off-by: Samu Onkalo Acked-by: Jonathan Cameron Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit 821f664644c2da9e1a51e36751abedf49d4332e0 Author: Samu Onkalo Date: Fri Oct 22 07:57:26 2010 -0400 hwmon: lis3: Update coordinates at polled device open Call input device poll function at device open to refresh coordinates immediately. This is needed for the case where poll interval is set to zero and coordinate updates happens purely under interrupt control. Signed-off-by: Samu Onkalo Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit e726111f953f8f5b922b953caf06ba6790c5fbaa Author: Samu Onkalo Date: Fri Oct 22 07:57:25 2010 -0400 hwmon: lis3: Cleanup interrupt handling Irqcfg moved to chip data instead of platform data. This simplifies access in interrupt handler little bit. Input device open and close functions set status for interrupt threaded handler once. Unnecessary check for interrupt source removed since it is enough that active interrupt line indicates that there was an interrupt. Signed-off-by: Samu Onkalo Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit f9deb41f91c41d9d91a24c84a555ec7fe82620da Author: Samu Onkalo Date: Fri Oct 22 07:57:24 2010 -0400 hwmon: lis3: regulator control Based on pm_runtime control, turn lis3 regulators on and off. Perform context save and restore on transitions. Feature is optional and must be enabled in platform data. Signed-off-by: Samu Onkalo Acked-by: Jonathan Cameron Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit 2a346996626ecbb4269c239e9ff7372a182907e9 Author: Samu Onkalo Date: Fri Oct 22 07:57:23 2010 -0400 hwmon: lis3: pm_runtime support Add pm_runtime support to lis3 core driver. Add pm_runtime support to lis3 i2c driver. spi and hp_accel drivers are not yet supported. Old always on functionality remains for those. For sysfs there is 5 second delay before turning off the chip to avoid long ramp up delay. Signed-off-by: Samu Onkalo Acked-by: Jonathan Cameron Acked-by: Eric Piel Signed-off-by: Guenter Roeck commit 0ab83a7ce5c566b84d492d598dc64a19bfaef9ab Author: Simon Guinot Date: Fri Oct 22 05:29:18 2010 -0400 Kirkwood: add fan support for Network Space Max v2 Signed-off-by: Simon Guinot Acked-by: Nicolas Pitre Signed-off-by: Guenter Roeck commit d6fe1360f42e86262153927986dea6502daff703 Author: Simon Guinot Date: Fri Oct 22 00:44:19 2010 +0200 hwmon: add generic GPIO fan driver This patch adds hwmon support for fans connected to GPIO lines. Platform specific information such as GPIO pinout and speed conversion array (rpm from/to GPIO value) are passed to the driver via platform_data. Signed-off-by: Simon Guinot Signed-off-by: Guenter Roeck commit 3247800676c4a04352cde72b9935b57ffc72ce15 Author: Jan Beulich Date: Fri Oct 8 04:59:38 2010 -0400 hwmon: (coretemp) fix reading of microcode revision (v2) According to the documentation, simply reading the respective MSR isn't sufficient: It should be written with zeros, cpuid(1) be executed, and then read (see arch/x86/kernel/cpu/intel.c for an example). v2: Fail probe when microcode revision cannot be determined, but is needed to check for proper operation. Signed-off-by: Jan Beulich Cc: Fenghua Yu Cc: Chen Gong Cc: Jean Delvare Acked-by: Fenghua Yu Signed-off-by: Guenter Roeck commit 17c10d61c750619324ee2a46c5a9e03a435fe212 Author: Chen Gong Date: Fri Oct 8 22:01:48 2010 -0400 hwmon: ({core, pkg, via-cpu}temp) remove unnecessary CONFIG_HOTPLUG_CPU ifdefs CONFIG_HOTPLUG_CPU is used too much in some drivers. This patch clean them up. Signed-off-by: Chen Gong Signed-off-by: Guenter Roeck commit fd53d08465a79d742a297be1d7d173f8a13972a6 Author: Chen Gong Date: Fri Oct 8 05:53:35 2010 +0000 hwmon: (pkgtemp) align driver initialization style with coretemp pkgtemp is derived from coretemp, so some reasonable logics should be applied onto pkgtemp, too. Such as the init logic here. Signed-off-by: Chen Gong Signed-off-by: Guenter Roeck commit e5f5c99a39375ce533aacfdfb269978070121e1c Author: Guenter Roeck Date: Fri Jun 25 11:59:54 2010 -0700 hwmon: LTC4261 Hardware monitoring driver This driver adds support for Linear Technology LTC4261 I2C Negative Voltage Hot Swap Controller. Reviewed-by: Ira W. Snyder Reviewed-by: Tom Grennan Signed-off-by: Guenter Roeck commit 2ee321440e3a594dcdd9981e68e5e302447047a2 Author: Takashi Iwai Date: Fri Oct 1 17:14:25 2010 -0400 hwmon: (lis3) add axes module parameter for custom axis-mapping The axis-mapping of lis3dev device on many (rather most) HP machines doesn't follow the standard. When each new model appears, users need to adjust again. Testing this requires the rebuild of kernel, thus it's not trivial for end-users. This patch adds a module parameter "axes" to allow a custom axis-mapping without patching and recompiling the kernel driver. User can pass the parameter such as axes=3,2,1. Also it can be changed via sysfs. Signed-off-by: Takashi Iwai Acked-by: Eric Piel Cc: Jean Delvare Cc: Guenter Roeck Signed-off-by: Andrew Morton Signed-off-by: Guenter Roeck commit 37394050b5be0fe87f96ed8848f11c3c2cd4d556 Author: Masanari Iida Date: Fri Aug 27 00:21:43 2010 +0000 hwmon: (hp_accel) Add HP Mini 510x family support This patch is an enhanced version of Takashi Iwai's [PATCH] hp_accel: Add quirks for HP ProBook 532x and HP Mini 5102 My HP Mini 5101 works fine with this patch. Confirmed with Tux Racer. Signed-off by: Masanari Iida Acked-by: Takashi Iwai Cc: Eric Piel Signed-off-by: Guenter Roeck commit 78537c3b6ffcb69bf4fd43a74ba57928fcefce95 Author: Takashi Iwai Date: Thu Sep 23 10:01:39 2010 -0700 hwmon: (lis3) Add support for new LIS3DC / HP3DC chip A new version of LIS3 chip has slight incompatibilities from former versions. This patch adds the minimal support for it. Signed-off-by: Takashi Iwai Signed-off-by: Guenter Roeck commit 9401ba13281f9cf36c85d4f8d3a52f9655e69b58 Author: Jan Beulich Date: Mon Sep 13 10:32:08 2010 +0000 x86/hwmon: remove inclusion of unnecessary headers from {core, pkg, via-cpu}temp.c These likely originate from these drivers being clones of one another and/or other drivers which actually needed these includes. Signed-off-by: Jan Beulich Signed-off-by: Guenter Roeck commit e0a8755b6b701b3397c4c23ff182b7eb6ac6fe26 Author: Jan Beulich Date: Mon Sep 13 10:28:35 2010 +0000 x86/hwmon: (coretemp) cosmetic cleanup "break" after "return" is at best bogus (good compilers even warn about the "break" being unreachable). Signed-off-by: Jan Beulich Cc: Rudolf Marek Signed-off-by: Guenter Roeck commit a5f42a6bc51454137b918f67310168c27d1dd1de Author: Jan Beulich Date: Thu Sep 23 22:31:10 2010 -0700 x86/hwmon: {core, pkg, via}cpu_temp_device_remove() can all be __cpuinit ... as they're being called only from a __cpuinit function. Signed-off-by: Jan Beulich Signed-off-by: Guenter Roeck commit 150cca7c0ed1a08d7da26bd28258c270b2e239f5 Author: Karen Xie Date: Sat Oct 16 22:09:05 2010 -0700 [SCSI] cxgb4i: ignore informational act-open-rpl message Ignore active open reply with status negative advice. This is an informational message. Signed-off-by: Karen Xie Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 38170fa8e66bb75fe806bdc91657732aef0eae90 Author: Giridhar Malavali Date: Fri Oct 15 11:27:49 2010 -0700 [SCSI] qla2xxx: Avoid depending on SCSI host_lock in queuecommand function. Signed-off-by: Giridhar Malavali Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit 9dac0d9a93095ff5a27b975af30c25186bdcfeab Author: Andrew Vasquez Date: Fri Oct 15 11:27:48 2010 -0700 [SCSI] qla2xxx: Correct PRLI failure response code handling. This patch fixes an issue which causes the firmware to fail with a 'PRLI failed' status code (iop1 = 405). This status triggers the driver to fall into an incorrect code-path which does not attempt a login retry. Signed-off-by: Andrew Vasquez Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit 170babc3721997b7808193221f94926df44f3d1e Author: Mike Christie Date: Fri Oct 15 11:27:47 2010 -0700 [SCSI] qla2xxx: Drop srb reference before waiting for completion. This patch fixes a regression introduced by commit 083a469db4ecf3b286a96b5b722c37fc1affe0be qla2xxx_eh_wait_on_command() is waiting for an srb to complete, which will never happen as the routine took a reference to the srb previously and will only drop it after this function. So every command abort will fail. Signed-off-by: Mike Christie Signed-off-by: Giridhar Malavali Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit e30d1756480dc5d139458b140b69873cdb10119f Author: Madhuranath Iyengar Date: Fri Oct 15 11:27:46 2010 -0700 [SCSI] qla2xxx: Addition of shutdown callback handler. This patch adds a shutdown handler to qla2xxx driver to make sure that all DMA and firmware activities are stopped, and any associated driver resources are released. The need for this handler arose when executing kexec in specific environments caused the data of the 2nd kernel to be corrupted, due to DMA activities. Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit 339aa70ecb3d0ef733f4d0393e2b5f6aea617839 Author: Andrew Vasquez Date: Fri Oct 15 11:27:45 2010 -0700 [SCSI] qla2xxx: Initialize the vport_slock spinlock. Commit feafb7b1714cf599a6d0fed45801ab3f66046cbd neglected to initialize the spinlock. Signed-off-by: Andrew Vasquez Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit 09d1dc2a001c599e8e5875e246a2f29be81ceef1 Author: Madhuranath Iyengar Date: Fri Oct 15 11:27:44 2010 -0700 [SCSI] qla2xxx: Remove scsi_cmnd->serial_number from debug traces This patch cleans up any printk or debug tracing of the the serial_number field in the qla2xxx driver. Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit f19af1636bda8454401fa76ce4ad027412d5d07a Author: Harish Zunjarrao Date: Fri Oct 15 11:27:43 2010 -0700 [SCSI] qla2xxx: Add flash read/update support using BSG interface Signed-off-by: Harish Zunjarrao Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit ff454b01b4ebe60b14092943978000928bf8c551 Author: Chad Dupuis Date: Fri Oct 15 11:27:42 2010 -0700 [SCSI] qla2xxx: Group CS_RESET return status with other link level event statuses. Currently when we receive a CS_RESET as a response for a SCSI command the driver will return DID_TRANSPORT_DISRUPTED back to the SCSI mid-layer. There are certain circumstances where this could cause the mid-layer to exhaust all of its retries if the FC port goes away for a short time. This will result in commands being prematurly failed. Moving the CS_RESET return code to be grouped with other link level events will cause the FC transport layer to block that target's queue thus preventing the premature exhaustion of retries. Signed-off-by: Chad Dupuis Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit 4d97cc5342ebb1bef83477fafe18490dd8c59464 Author: Chad Dupuis Date: Fri Oct 15 11:27:41 2010 -0700 [SCSI] qla2xxx: Change del_timer_sync() to del_timer() in qla2x00_ctx_sp_free(). Using del_timer_sync() in the qla2x00_ctx_sp_free() function may cause a kernel panic as it is not interrupt context safe and qla2x00_ctx_sp_free() may be called from a softirq context. Changing the call from del_timer_sync() to del_timer() will make the function interrupt context safe. Signed-off-by: Chad Dupuis Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit f6318e558806c925029dc101f14874be9f9fa78f Author: KOVACS Krisztian Date: Sun Oct 24 23:38:32 2010 +0000 netfilter: fix module dependency issues with IPv6 defragmentation, ip6tables and xt_TPROXY One of the previous tproxy related patches split IPv6 defragmentation and connection tracking, but did not correctly add Kconfig stanzas to handle the new dependencies correctly. This patch fixes that by making the config options mirror the setup we have for IPv4: a distinct config option for defragmentation that is automatically selected by both connection tracking and xt_TPROXY/xt_socket. The patch also changes the #ifdefs enclosing IPv6 specific code in xt_socket and xt_TPROXY: we only compile these in case we have ip6tables support enabled. Signed-off-by: KOVACS Krisztian Signed-off-by: David S. Miller commit 4da26e162b69d89c3186a35a052c05e61a555637 Author: Chad Dupuis Date: Fri Oct 15 11:27:40 2010 -0700 [SCSI] qla2xxx: Add module parameter to enable/disable GFF_ID device type check. Add the module parameter ql2xgffidenable to disable/enable the use of the GFF_ID name server command to prevent non FCP SCSI devices from being added to the driver's internal fc_port database. Signed-off-by: Chad Dupuis Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit 1e6d0670921ea4e736b172e9a3c32a2ba0c33f6a Author: Chad Dupuis Date: Fri Oct 15 11:27:39 2010 -0700 [SCSI] qla2xxx: Remove port down retry count. This patch removes the use of the port down retry counter as a mechanism to update a fcport state. The internal driver counter is a residual carry-over from pre-FC-transport aware driver inteaction. The ql2xport_down_retry module parameter and NVRAM set ha->port_down_retry_count remain in order to seed the fc-host's default dev-loss-tmo. Signed-off-by: Chad Dupuis Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit 542bce1f255673816e82eaebb422ead5ad3f5a17 Author: Dan Carpenter Date: Fri Oct 15 11:27:38 2010 -0700 [SCSI] qla2xxx: locking problem in qla2x00_init_rings() IRQs are already disabled here so we don't need to disable them again. But more importantly, the spin_lock_irqsave() overwrites "flags" and that breaks things when we want to re-enable the IRQs when we call spin_unlock_irqrestore(&ha->hardware_lock, flags); Signed-off-by: Dan Carpenter Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley commit dc69798447173a6b711fe36b714892dd2e880297 Author: Maxim Levitsky Date: Sun Oct 24 23:05:29 2010 -0300 [media] IR: initialize ir_raw_event in few more drivers Few drivers still have assumption that ir_raw_event consists of duration and pulse flag. Fix that. Signed-off-by: Maxim Levitsky Signed-off-by: Mauro Carvalho Chehab commit 910f5f05f99c1ffbb484c4e6eb2a460e7a08e2d7 Author: Dr. David Alan Gilbert Date: Sun Oct 24 13:33:09 2010 -0300 [media] Guard a divide in v4l1 compat layer Hi, I managed to trigger a divide by 0 in the v4l compat code with the mem2mem test module; I suspect perhaps it shouldn't have been returning a 0 pixel wide picture, but either way it seems right to guard this divide by 0 in the compatibility layer. Tested on 2.6.36 (ubuntu build, but the code in this is the same as upstream), but ***not tested with a real video device***. Signed-off-by: Dr. David Alan Gilbert cc: stable.kernel.org Signed-off-by: Mauro Carvalho Chehab commit 74eb94b218d087798a52c0b4f1379b635287a4b8 Merge: 7b6181e 9a84d38 Author: Linus Torvalds Date: Mon Oct 25 13:48:29 2010 -0700 Merge branch 'nfs-for-2.6.37' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 * 'nfs-for-2.6.37' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6: (67 commits) SUNRPC: Cleanup duplicate assignment in rpcauth_refreshcred nfs: fix unchecked value Ask for time_delta during fsinfo probe Revalidate caches on lock SUNRPC: After calling xprt_release(), we must restart from call_reserve NFSv4: Fix up the 'dircount' hint in encode_readdir NFSv4: Clean up nfs4_decode_dirent NFSv4: nfs4_decode_dirent must clear entry->fattr->valid NFSv4: Fix a regression in decode_getfattr NFSv4: Fix up decode_attr_filehandle() to handle the case of empty fh pointer NFS: Ensure we check all allocation return values in new readdir code NFS: Readdir plus in v4 NFS: introduce generic decode_getattr function NFS: check xdr_decode for errors NFS: nfs_readdir_filler catch all errors NFS: readdir with vmapped pages NFS: remove page size checking code NFS: decode_dirent should use an xdr_stream SUNRPC: Add a helper function xdr_inline_peek NFS: remove readdir plus limit ... commit a64fa198ba1cd232871710c37476e006ed5516ed Author: Arnaldo Carvalho de Melo Date: Mon Oct 25 18:44:09 2010 -0200 perf python scripting: Improve the syscalls-by-pid script . Print message at script start telling how to get te summary . Print the syscall names . Accept both pid (if numeric) or COMM name Now it looks like this: [root@emilia tmp]# perf trace syscall-counts-by-pid Press control+C to stop and show the summary ^C syscall events by comm/pid: comm [pid]/syscalls count ---------------------------------------- ---------- automount [1670] futex 2 sshd [2322] rt_sigprocmask 4 select 2 write 1 read 1 perf [15178] read 2506 open 794 close 769 write 240 getdents 112 lseek 16 stat 9 perf_counter_open 5 fcntl 5 mmap 5 statfs 2 perf [15179] read 56701 open 499 stat 176 fstat 149 close 109 mmap 98 brk 75 rt_sigaction 66 munmap 42 mprotect 24 lstat 7 lseek 5 getdents 4 ioctl 3 readlink 2 futex 1 statfs 1 getegid 1 geteuid 1 getgid 1 getuid 1 getrlimit 1 fcntl 1 uname 1 write 1 [root@emilia tmp]# fg -bash: fg: current: no such job [root@emilia tmp]# perf trace syscall-counts-by-pid 2322 Press control+C to stop and show the summary ^C syscall events by comm/pid: comm [pid]/syscalls count ---------------------------------------- ---------- sshd [2322] rt_sigprocmask 4 select 2 write 1 read 1 [root@emilia tmp]# perf trace syscall-counts-by-pid sshd Press control+C to stop and show the summary ^C syscall events for sshd: comm [pid]/syscalls count ---------------------------------------- ---------- sshd [2322] rt_sigprocmask 4 select 2 write 1 read 1 [root@emilia tmp]# Cc: David S. Miller Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo commit 2e7d1e3fb8043380a2fc5d759eb357bf05acf935 Author: Arnaldo Carvalho de Melo Date: Mon Oct 25 18:39:20 2010 -0200 perf python scripting: print the syscall name on sctop [root@emilia tmp]# perf trace sctop 1 syscall events: event count ---------------------------------------- ---------- read 215400 futex 4029 write 376 brk 33 rt_sigprocmask 24 select 17 lseek 2 fsync 1 ^C[root@emilia tmp]# Cc: David S. Miller Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo commit 6545aaa561b5678c497e94dea22cb2d1af1d6859 Author: Arnaldo Carvalho de Melo Date: Mon Oct 25 17:11:25 2010 -0200 perf python scripting: Improve the syscalls-counts script . Print message at script start telling how to get te summary . Print the syscall name Now it looks like this: [root@emilia ~]# perf trace syscall-counts Press control+C to stop and show the summary ^C syscall events: event count ---------------------------------------- ----------- read 102752 open 1293 close 878 write 319 stat 185 fstat 149 getdents 116 mmap 98 brk 80 rt_sigaction 66 munmap 42 mprotect 24 lseek 21 lstat 7 rt_sigprocmask 4 futex 3 statfs 3 ioctl 3 readlink 2 select 2 getegid 1 geteuid 1 getgid 1 getuid 1 getrlimit 1 fcntl 1 uname 1 [root@emilia ~]# Cc: David S. Miller Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo commit 7b6181e06841f5ad15c4ff708b967b4db65a64de Merge: 72e5806 bc487fb Author: Linus Torvalds Date: Mon Oct 25 13:46:56 2010 -0700 Merge branch 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 * 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6: (163 commits) omap: complete removal of machine_desc.io_pg_offst and .phys_io omap: UART: fix wakeup registers for OMAP24xx UART2 omap: Fix spotty MMC voltages ASoC: OMAP4: MCPDM: Remove unnecessary include of plat/control.h serial: omap-serial: fix signess error OMAP3: DMA: Errata i541: sDMA FIFO draining does not finish omap: dma: Fix buffering disable bit setting for omap24xx omap: serial: Fix the boot-up crash/reboot without CONFIG_PM OMAP3: PM: fix scratchpad memory accesses for off-mode omap4: pandaboard: enable the ehci port on pandaboard omap4: pandaboard: Fix the init if CONFIG_MMC_OMAP_HS is not set omap4: pandaboard: remove unused hsmmc definition OMAP: McBSP: Remove null omap44xx ops comment OMAP: McBSP: Swap CLKS source definition OMAP: McBSP: Fix CLKR and FSR signal muxing OMAP2+: clock: reduce the amount of standard debugging while disabling unused clocks OMAP: control: move plat-omap/control.h to mach-omap2/control.h OMAP: split plat-omap/common.c OMAP: McBSP: implement functional clock switching via clock framework OMAP: McBSP: implement McBSP CLKR and FSR signal muxing via mach-omap2/mcbsp.c ... Fixed up trivial conflicts in arch/arm/mach-omap2/ {board-zoom-peripherals.c,devices.c} as per Tony commit 6cc7361440e499abb3a30cdbcfedad03e43c92ae Author: Arnaldo Carvalho de Melo Date: Mon Oct 25 15:15:10 2010 -0200 perf python scripting: Improve the failed-syscalls-by-pid script . Print message at script start telling how to get te summary . Print the syscall name using the audit-lib-python package, if installed . Print the errno string . Accept both pid (if numeric) or COMM name Now it looks like this: [root@emilia ~]# perf trace failed-syscalls-by-pid Press control+C to stop and show the summary ^C syscall errors: comm [pid] count ------------------------------ ---------- automount [1670] syscall: futex err = ETIMEDOUT 39 irqbalance [1462] syscall: openat err = ENOENT 4 perf [7888] syscall: lseek err = ESPIPE 1 syscall: open err = ENOENT 24 perf [7889] syscall: ioctl err = EINVAL 1 syscall: readlink err = EINVAL 2 syscall: open err = ENOENT 389 syscall: stat err = ENOENT 141 syscall: lseek err = ESPIPE 3 [root@emilia ~]# [root@emilia ~]# perf trace failed-syscalls-by-pid 1670 Press control+C to stop and show the summary ^C syscall errors: comm [pid] count ------------------------------ ---------- automount [1670] syscall: futex err = ETIMEDOUT 2 [root@emilia ~]# [root@emilia ~]# [root@emilia ~]# [root@emilia ~]# perf trace failed-syscalls-by-pid automount Press control+C to stop and show the summary ^C syscall errors for automount: comm [pid] count ------------------------------ ---------- automount [1669] syscall: futex err = ETIMEDOUT 1 automount [1670] syscall: futex err = ETIMEDOUT 5 [root@emilia ~]# Cc: David S. Miller Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo commit b8479178901557dc323a69ee254c1c732e85e0e5 Author: Robert Jennings Date: Mon Oct 11 11:02:00 2010 -0500 [SCSI] sr: fix sr_drive_status handling when initialization required An sr device that reports sense data with SK/ASC/ASCQ of 2/4/2 (Not ready, Logical unit not ready, Initializing command required) will be handled in sr_drive_status as (2/4/!1) and assumed to be a 'format in progress' which returns CDS_DISC_OK. The drive will not be made ready in this case. Prior to 210ba1d1724f5c4ed87a2ab1a21ca861a915f734 sr_drive_status would have returned CDS_TRAY_OPEN and this results in an START_STOP_UNIT to close the tray, which resolves the initialization requirement. This patch adds handling for SK/ASC/ASCQ of 2/4/2 where it will return CDS_TRAY_OPEN as a means of triggering a START_STOP_UNIT. This issue is seen on the IBM POWER platform when using a file-backed, virtual optical device. The device does not support media queries through the Get Event Status Notification command which could otherwise trigger a START_STOP_UNIT call to close an open tray. Signed-off-by: Robert Jennings Signed-off-by: James Bottomley commit 0ee31cb5df4b717de923266879964d0418c3308f Author: Robert Love Date: Fri Oct 8 17:12:46 2010 -0700 [SCSI] fcoe: Fix broken NPIV with correction to MAC validation A previous patch attempted to validate the destination MAC address of a FCoE frame by checking that MAC address against the received port's MAC address. The implementation seems fine on the surface, but any VN_Ports added using the NPIV feature will have their own MAC addresses and these MACs were not being checked, which prevented any NPIV VN_Ports from receiving frames. In other words, the following patch has broken NPIV. 519e5135e2537c9dbc1cbcc0891b0a936ff5dcd2 [SCSI] fcoe: adds src and dest mac address checking for fcoe frames Part of the offending patch is correct, but the part that broke NPIV was attempting to satisfy FC-BB-5 section D.5, 2.1- (discard frames that) "contain a destination MAC address/destination N_Port_ID pair that was not assigned by an FCF to one of the VN_Ports on the ENode" The language does _not_ say to compare the destination FC-MAP/destination N_Port_ID, but instead to compare the destination MAC address/destination N_Port_ID. >From the FC-BB-5 specification, "A properly formed FPMA is one in which the 24 most significant bits equal the Fabric’s FC-MAP value and the least significant 24 bits equal the N_Port_ID assigned to the VN_Port by the FCF." This means that we need to compare the FC Frame's destination FCID against the embedded FCID in the destination MAC address. This patch checks the lower 24 bits of the destination MAC address against destination FCID in the Fibre Channel frame. For MAC validation the first line of defense is the hardware MAC filtering. Each VN_Port will have a unicast MAC addresses added to the hardware's filtering table. The Ethernet driver should drop any MACs not destined for a programmed MAC. This patch adds a second line of defense that very specfically compares an element in the FC frame against an element in the Ethernet header, which is appropriate for the FCoE layer. Many alternative approaches were considered, including a LLD callback from libfc. The second most reasonable approach seemed to be walking the list of NPIV ports and check each of their MAC addresses against the destination MAC address of the received frame. The problem with this approach was that it is likely that performance would suffer with the more NPIV ports added to the system since every received frame would need to walk this list, comparing each entry's MAC. Signed-off-by: Robert Love Signed-off-by: James Bottomley commit 2dc02ee52f32aac6d8dd1172f104dc30ae1051bb Author: Kiran Patil Date: Fri Oct 8 17:12:41 2010 -0700 [SCSI] libfcoe: VN2VN connection setup causing stack memory corruption. Fix: When FIP frame is received, function fcoe_ctlr_vn_recv calls function fcoe_ctlr_vn_parse which does memset for addr (&buf.rdata) which leads to memory corruption. Code was trying to treat "buf" as struct but it was defined as union. Fix is to change from union to struct for "buf" in function fcoe_ctlr_vn_recv. Technical Details: N/A Signed-off-by: Kiran Patil Acked-by: Joe Eykholt Signed-off-by: Robert Love Signed-off-by: James Bottomley commit c531b9b49b146e1535dbed006d15e58f4f528f7e Author: Bhanu Prakash Gollapudi Date: Fri Oct 8 17:12:36 2010 -0700 [SCSI] libfc: Do not let disc work cancel itself When number of NPIV ports created are greater than the xids allocated per pool -- for eg., creating 255 NPIV ports on a system with nr_cpu_ids of 32, with each pool containing 128 xids -- and then generating a link event - for eg., shutdown/no shutdown -- on the switch port causes the hang with the following stack trace. Call Trace: schedule_timeout+0x19d/0x230 wait_for_common+0xc0/0x170 __cancel_work_timer+0xcf/0x1b0 fc_disc_stop+0x16/0x30 [libfc] fc_lport_reset_locked+0x47/0x90 [libfc] fc_lport_enter_reset+0x67/0xe0 [libfc] fc_lport_disc_callback+0xbc/0xe0 [libfc] fc_disc_done+0xa8/0xf0 [libfc] fc_disc_timeout+0x29/0x40 [libfc] run_workqueue+0xb8/0x140 worker_thread+0x96/0x110 kthread+0x96/0xa0 child_rip+0xa/0x20 Fix is to not cancel the disc_work if discovery is already stopped, thus allowing lport state machine to restart and try discovery again. Signed-off-by: Bhanu Prakash Gollapudi Acked-by: Joe Eykholt Signed-off-by: Robert Love Signed-off-by: James Bottomley commit 8b7ac2bb07bbadb0636f21f51564e6d363bb6d20 Author: Vasu Dev Date: Fri Oct 8 17:12:31 2010 -0700 [SCSI] libfc: possible race could panic system due to NULL fsp->cmd It is unlikely but in case if it hits then it would cause panic due to null cmd ptr, so far only one instance seen recently with ESX though this was introduced long ago with this commit:- commit c1ecb90a66c5afc7cc5c9349f9c3714eef4a5cfb Author: Chris Leech Date: Thu Dec 10 09:59:26 2009 -0800 [SCSI] libfc: reduce hold time on SCSI host lock Currently fsp->cmd is set to NULL w/o scsi_queue_lock before dequeuing from scsi_pkt_queue and that could cause NULL fsp->cmd in fc_fcp_cleanup_each_cmd for cmd completing with fsp->cmd = NULL after fc_fcp_cleanup_each_cmd taken reference. No need to set fsp->cmd to NULL as this is also protected by fc_fcp_lock_pkt(), for above race the fc_fcp_lock_pkt() in fc_fcp_cleanup_each_cmd() will fail as that cmd is already done. Mike mentioned same issue at http://www.open-fcoe.org/pipermail/devel/2010-September/010533.html Similarly moved sc_cmd->SCp.ptr = NULL under scsi_queue_lock so that scsi abort error handler won't abort on completed cmds. Signed-off-by: Vasu Dev Signed-off-by: Robert Love Signed-off-by: James Bottomley commit 3067817a5d3ef99c5b1a4e4ca8c5b15bc7fc468d Author: Vasu Dev Date: Fri Oct 8 17:12:25 2010 -0700 [SCSI] fcoe: set default FIP mode as FIP_MODE_FABRIC Since sometimes current FIP_MODE_AUTO mode falls back to non-FIP mode while DCB link still getting ready in fabric mode with its peer switch, it falls back after few libfc flogi retries and that is not we want while working with FIP enabled switches in FABRIC mode, therefore sets default as FIP_MODE_FABRIC as discussed and agreed before in this mail thread http://www.open-fcoe.org/pipermail/devel/2010-August/010511.html Signed-off-by: Vasu Dev Signed-off-by: Robert Love Signed-off-by: James Bottomley commit 60a3c4dfb7830845a97a20e73b7d938dc2fde6c1 Author: Vasu Dev Date: Fri Oct 8 17:12:20 2010 -0700 [SCSI] libfc: adds flogi retry in case DID is zero in RJT Sometimes switch in NPV mode rejects flogi request with DID zero and in that case flogi is not tried again and port remains offline, so this patch validates DID for non zero along with only ACC response to allow flogi retry for RJT with DID=0 also succeed FLOGI in next try. Signed-off-by: Vasu Dev Signed-off-by: Robert Love Signed-off-by: James Bottomley commit 75eee7252466342e0dfa6675106bcd3955090f67 Author: Vasu Dev Date: Fri Oct 8 17:12:15 2010 -0700 [SCSI] libfc: use DID_TRANSPORT_DISRUPTED while lport not ready This is per Mile Christie feedback since in this case IO could get retried for tape devices and therefore DID_REQUEUE cannot be used, more details in this thread. http://marc.info/?l=linux-scsi&m=127970522630136&w=2 Signed-off-by: Vasu Dev Signed-off-by: Robert Love Signed-off-by: James Bottomley commit 73b4376477672a4336cba5f26ede2e277511ce70 Author: Mike Christie Date: Fri Oct 8 17:12:10 2010 -0700 [SCSI] libfc: fix setting of rport dev loss There does not seem to be a reason why libfc adds a 5 second delay to the user requested value for the dev loss tmo. There also does not seem to be a reason to allow setting it to 0 (or really close). This patch removes the extra 5 sec delay, and for 0 it sets it to 1 like other fc drivers. We should actually be able to set it to 0 since the queue_delayed_work API will just call queue_work, but other drivers set it to 1 in that case. Signed-off-by: Mike Christie Signed-off-by: Robert Love Signed-off-by: James Bottomley commit 6f0bcf152582e7403155627a38e07bf3ef7f3cf5 Author: Eric Dumazet Date: Sun Oct 24 21:33:16 2010 +0000 tunnels: add _rcu annotations (struct ip6_tnl)->next is rcu protected : (struct ip_tunnel)->next is rcu protected : (struct xfrm6_tunnel)->next is rcu protected : add __rcu annotation and proper rcu primitives. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 3cc77ec74e1583b50b8405114cdbd6b8ebb8c474 Author: Eric Dumazet Date: Sun Oct 24 21:32:36 2010 +0000 net/802: add __rcu annotations (struct net_device)->garp_port is rcu protected : (struct garp_port)->applicants is rcu protected : add __rcu annotation and proper rcu primitives. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 198caeca3eb4c81bbdbeb34a870868002f89b3d2 Author: Eric Dumazet Date: Sun Oct 24 21:32:05 2010 +0000 ipv6: ip6_ptr rcu annotations (struct net_device)->ip6_ptr is rcu protected : add __rcu annotation and proper rcu primitives. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit b616b09afabf6d569aa31176aa86f05d2586de3e Author: Eric Dumazet Date: Sun Oct 24 21:31:58 2010 +0000 vlan: rcu annotations (struct net_device)->vlgrp is rcu protected : add __rcu annotation and proper rcu primitives. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 5202e173d7bc5ff832a4f36e66f26e00feb343c6 Author: David S. Miller Date: Mon Oct 25 13:04:48 2010 -0700 tms380tr: Use mdelay() in tms380tr_wait(). This driver tries to do up to half-second udelay() calls, which overflows on x86-64. Reported-by: Andi Kleen Signed-off-by: David S. Miller commit f63ae56e4e97fb12053590e41a4fa59e7daa74a4 Author: Dan Carpenter Date: Fri Oct 8 09:03:07 2010 +0200 [SCSI] gdth: integer overflow in ioctl gdth_ioctl_alloc() takes the size variable as an int. copy_from_user() takes the size variable as an unsigned long. gen.data_len and gen.sense_len are unsigned longs. On x86_64 longs are 64 bit and ints are 32 bit. We could pass in a very large number and the allocation would truncate the size to 32 bits and allocate a small buffer. Then when we do the copy_from_user(), it would result in a memory corruption. CC: stable@kernel.org Signed-off-by: Dan Carpenter Signed-off-by: James Bottomley commit 546ae796bfac6399e30da4b5af2cf7a6d0f8a4ec Author: Christof Schmitt Date: Wed Oct 6 13:19:44 2010 +0200 [SCSI] Fix race when removing SCSI devices Removing SCSI devices through echo 1 > /sys/bus/scsi/devices/ ... /delete while the FC transport class removes the SCSI target can lead to an oops: Unable to handle kernel pointer dereference at virtual kernel address 00000000b6815000 Oops: 0011 [#1] PREEMPT SMP DEBUG_PAGEALLOC Modules linked in: sunrpc qeth_l3 binfmt_misc dm_multipath scsi_dh dm_mod ipv6 qeth ccwgroup [last unloaded: scsi_wait_scan] CPU: 1 Not tainted 2.6.35.5-45.x.20100924-s390xdefault #1 Process fc_wq_0 (pid: 861, task: 00000000b7331240, ksp: 00000000b735bac0) Krnl PSW : 0704200180000000 00000000003ff6e4 (__scsi_remove_device+0x24/0xd0) R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:2 PM:0 EA:3 Krnl GPRS: 0000000000000001 0000000000000000 00000000b6815000 00000000bc24a8c0 00000000003ff7c8 000000000056dbb8 0000000000000002 0000000000835d80 ffffffff00000000 0000000000001000 00000000b6815000 00000000bc24a7f0 00000000b68151a0 00000000b6815000 00000000b735bc20 00000000b735bbf8 Krnl Code: 00000000003ff6d6: a7840001 brc 8,3ff6d8 00000000003ff6da: a7fbffd8 aghi %r15,-40 00000000003ff6de: e3e0f0980024 stg %r14,152(%r15) >00000000003ff6e4: e31021200004 lg %r1,288(%r2) 00000000003ff6ea: a71f0000 cghi %r1,0 00000000003ff6ee: a7a40011 brc 10,3ff710 00000000003ff6f2: a7390003 lghi %r3,3 00000000003ff6f6: c0e5ffffc8b1 brasl %r14,3f8858 Call Trace: ([<0000000000001000>] 0x1000) [<00000000003ff7d2>] scsi_remove_device+0x42/0x54 [<00000000003ff8ba>] __scsi_remove_target+0xca/0xfc [<00000000003ff99a>] __remove_child+0x3a/0x48 [<00000000003e3246>] device_for_each_child+0x72/0xbc [<00000000003ff93a>] scsi_remove_target+0x4e/0x74 [<0000000000406586>] fc_rport_final_delete+0xb2/0x23c [<000000000015d080>] worker_thread+0x200/0x344 [<000000000016330c>] kthread+0xa0/0xa8 [<0000000000106c1a>] kernel_thread_starter+0x6/0xc [<0000000000106c14>] kernel_thread_starter+0x0/0xc INFO: lockdep is turned off. Last Breaking-Event-Address: [<00000000003ff7cc>] scsi_remove_device+0x3c/0x54 The function __scsi_remove_target iterates through the SCSI devices on the host, but it drops the host_lock before calling scsi_remove_device. When the SCSI device is deleted from another thread, the pointer to the SCSI device in scsi_remove_device can become invalid. Fix this by getting a reference to the SCSI device before dropping the host_lock to keep the SCSI device alive for the call to scsi_remove_device. Signed-off-by: Christof Schmitt Cc: Stable Tree Signed-off-by: James Bottomley commit 518fa8e39bafd2431c28adb8822bb6c3e4d1a390 Author: Martin K. Petersen Date: Fri Oct 8 01:36:24 2010 -0400 [SCSI] sd: Export effective protection mode in sysfs Create a sysfs entry that reports the negotiated DIX/DIF protection mode for a SCSI disk. This depends on the protection type the disk is formatted with as well as the protection capabilities advertised by the controller. Signed-off-by: Martin K. Petersen Signed-off-by: James Bottomley commit 349ed5a060397fcccc542a0314f236b420bd4ad1 Author: Vikas Chaudhary Date: Wed Oct 6 22:51:21 2010 -0700 [SCSI] qla4xxx: Update driver version to 5.02.00-k4 Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Signed-off-by: James Bottomley commit 92b3e5bbbebe86dd0071ccf23c1b21031f74bf56 Author: Mike Christie Date: Wed Oct 6 22:51:17 2010 -0700 [SCSI] qla4xxx: grab hardware_lock in eh_abort before accessing srb grab hardware_lock in eh_abort before accessing srb to avoid race between command completion and get refcount on srb. Signed-off-by: Mike Christie Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit d64eab764aaf1455d4cd790e3651a2d65b69e661 Author: Vikas Chaudhary Date: Wed Oct 6 22:51:09 2010 -0700 [SCSI] qla4xxx: remove unwanted check for bad spd Signed-off-by: Vikas Chaudhary Signed-off-by: Saurav Kashyap Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 7b3595df0e064c8d85ddb6836aaa2af3956fb2ba Author: Vikas Chaudhary Date: Wed Oct 6 22:50:56 2010 -0700 [SCSI] qla4xxx: update AER support for ISP82XX * Cleanup qla4xxx_pci_mmio_enabled(): don't want to return PCI_ERS_NEED_RESET if firmware hung. IDC will take care of it. * Request irq after initialize_adapter() in qla82xx_error_recovery(). * Return all active commands from qla4xxx_pci_error_detected(). * Cleanup ql4_def.h Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit b25ee66f2d4e5f14e69d75a7363e55889e9aff92 Author: Shyam Sundar Date: Wed Oct 6 22:50:51 2010 -0700 [SCSI] qla4xxx: Clear the rom lock if the firmware died while holding it. There is a possibility that the firmware dies while the rom lock is held. The only way to recover from this condition is to forcefully unlock. Signed-off-by: Shyam Sundar Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 2657c800dbb24761097ef341dfa43672c08a7a9e Author: Shyam Sundar Date: Wed Oct 6 22:50:29 2010 -0700 [SCSI] qla4xxx: use CRB Register for Request Queue in-pointer Switching from doorbell mechanism to CRB register based Signed-off-by: Vikas Chaudhary Signed-off-by: Shyam Sundar Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 91a772a4b1840fea39f0377c2cbca4cfc5be05f9 Author: Karen Higgins Date: Wed Oct 6 22:50:21 2010 -0700 [SCSI] qla4xxx: dump mailbox registers on System Error Signed-off-by: Karen Higgins Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 11a766ce915fc9f8663714eac6d59239388534ea Author: David S. Miller Date: Mon Oct 25 12:51:55 2010 -0700 net: Increase xmit RECURSION_LIMIT to 10. Three is definitely too low, and we know from reports that GRE tunnels stacked as deeply as 37 levels cause stack overflows, so pick some reasonable value between those two. Signed-off-by: David S. Miller commit 6434080b127088606e03d2ecfe5ffdd797e38d63 Author: Shyam Sundar Date: Wed Oct 6 22:49:40 2010 -0700 [SCSI] qla4xxx: Add support for 8130/8131 AENs. AEN 8130 Corresponds to an event representing the insertion (detection) of a transceiver. It also reports the type of the SFP+. AEN 8131 corresponds to the removal of a transceiver. Signed-off-by: Vikas Chaudhary Signed-off-by: Shyam Sundar Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 99457d75f617873591bf886921154e304e603ab4 Author: Lalit Chandivade Date: Wed Oct 6 22:49:32 2010 -0700 [SCSI] qla4xxx: Reset seconds_since_last_heartbeat correctly. The seconds_since_last_heartbeat should be checked for consecutive heartbeat checks. Currently it could happen that it gets set to max (2 seconds) for non-consecutive heartbeat checks. Signed-off-by: Vikas Chaudhary Signed-off-by: Lalit Chandivade Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 2bd1e2be8f7cce153a356a971012b9a604f9a412 Author: Nilesh Javali Date: Wed Oct 6 22:49:20 2010 -0700 [SCSI] qla4xxx: On firmware hang do not wait for the outstanding commands to complete Signed-off-by: Nilesh Javali Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 3710c60c09f555df69d12b0232702d062fe3bcd6 Author: Vikas Chaudhary Date: Wed Oct 6 22:49:08 2010 -0700 [SCSI] qla4xxx: free_irqs on failed initialize_adapter Since interrupts are registered in start_firmware(load_risc) for 82xx, free them if init_firmware fails. Signed-off-by: Vikas Chaudhary Signed-off-by: Karen Higgins Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 735e41543c12c245290cf652727893a66cbd8ab6 Author: Vikas Chaudhary Date: Wed Oct 6 22:48:53 2010 -0700 [SCSI] qla4xxx: correct data type of sense_len in qla4xxx_status_cont_entry change data type of sense_len from uint8_t to uint16_t Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 884292ecee7148fb8f6297c85b98c54a61d95a20 Author: Vikas Chaudhary Date: Wed Oct 6 22:48:24 2010 -0700 [SCSI] qla4xxx: remove "ha->retry_reset_ha_cnt" from wait_for_hba_online remove "ha->retry_reset_ha_cnt" from wait_for_hba_online as its initialize to zero at driver init time so it could always return QLA_ERROR from wait_for_hba_online() without waiting for hba to come online. Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit f931c5343f4a500552a3b223b1f840e802d5e1e6 Author: Vikas Chaudhary Date: Wed Oct 6 22:48:07 2010 -0700 [SCSI] qla4xxx: honor return status of qla4xxx_hw_reset Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit f581a3f79cc7c00c1a416356011c2e274dbf6571 Author: Vikas Chaudhary Date: Wed Oct 6 22:47:48 2010 -0700 [SCSI] qla4xxx: Trivial cleanup * cleanup function qla4xxx_recovery_timeout - No need to wakeup dpc thread from function qla4xxx_recovery_timeout() as we are not doing anything in do_dpc() thread when wakeup from qla4xxx_recovery_timeout() * cleanup function qla4xxx_wait_for_hba_online - Remove hard coded value from qla4xxx_wait_for_hba_online(). * cleanup function qla4xxx_start_firmware_from_flash - display seconds * cleanup function qla4_8xxx_load_risc - Remove redundant code. * cleanup function qla4xxx_get_firmware_status - update debug statement * cleanup function qla4_8xxx_try_start_fw - update return status Signed-off-by: Vikas Chaudhary Signed-off-by: Ravi Anand Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 0926f91083f34d047abc74f1ca4fa6a9c161f7db Author: Eli Cohen Date: Mon Oct 25 02:56:47 2010 +0000 mlx4_en: Fix out of bounds array access When searching for a free entry in either mlx4_register_vlan() or mlx4_register_mac(), and there is no free entry, the loop terminates without updating the local variable free thus causing out of array bounds access. Fix this by adding a proper check outside the loop. Signed-off-by: Eli Cohen Signed-off-by: David S. Miller commit b336369c1e1ad88495895260a9068eb18bc48b6c Author: Joshua Hoke Date: Mon Oct 25 01:44:22 2010 +0000 macb: Don't re-enable interrupts while in polling mode On a busy network, the macb driver could get stuck in the interrupt handler, quickly triggering the watchdog, due to a confluence of factors: 1. macb_poll re-enables interrupts unconditionally, even when it will be called again because it exhausted its rx budget 2. macb_interrupt only disables interrupts after scheduling macb_poll, but scheduling fails when macb_poll is already scheduled because it didn't call napi_complete 3. macb_interrupt loops until the interrupt status register is clear, which will never happen in this case if the driver doesn't disable the RX interrupt Since macb_interrupt runs in interrupt context, this effectively locks up the machine, triggering the hardware watchdog. This issue was readily reproducible on a flooded network with a modified 2.6.27.48 kernel. The same problem appears to still be in the 2.6.36-rc8 driver code, so I am submitting this patch against that version. I have not tested this version of the patch except to make sure the kernel compiles. Signed-off-by: Joshua Hoke Signed-off-by: David S. Miller commit c6ce2f4b270cb1d4d6b6f4f692a12ca2fea13f3f Author: Somnath Kotur Date: Mon Oct 25 01:11:58 2010 +0000 be2net: Fix CSO for UDP packets We're setting skb->ip_summed to CHECKSUM_NONE for all non-TCP pkts, making the stack recompute checksum.This is a bug for UDP pkts for which cso must be used. Signed-off-by: Somnath Kotur Signed-off-by: David S. Miller commit 63a76944b674bb758232e4213da0da95ae055012 Author: Somnath Kotur Date: Mon Oct 25 01:11:10 2010 +0000 be2net: Call netif_carier_off() after register_netdev() Calling netif_carrier_off before register_netdev was causing the network interface to miss a linkwatch pending event leading to an inconsistent state if the link is not up when interface is initialized.This is now invoked after register_netdev. Signed-off-by: Somnath Kotur Signed-off-by: David S. Miller commit 18edc84cf15cbe114dcdf7e8612ee52586d0aad7 Author: Divy Le Ray Date: Mon Oct 25 07:35:02 2010 +0000 cxgb3: fix device opening error path Only negative return from bind_qsets() should be considered an error and propagated. It fixes an issue reported by IBM on P Series platform. Signed-off-by: Divy Le Ray Tested-by: Nishanth Aravamudan Signed-off-by: David S. Miller commit 822395b591db32ad3cf8a5b57b0fe30fb8d12c37 Author: Don Fry Date: Sat Oct 23 09:02:50 2010 -0700 iwlwifi: quiet a noisy printk Timing issues in microcode for some devices can cause a compressed BA to be sent to the driver prior to returning any a-MPDU notification. Traces show RTS-CTS is exchanged and then the timer fires which causes an empty BA to be sent which acknowledges nothing. This results in a noisy printk. Only print the message if the bitmap is non-zero. Signed-off-by: Don Fry Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville commit fac6b6a065da42f826088c58bddad82e1b1ccb40 Author: Felix Fietkau Date: Sat Oct 23 17:45:38 2010 +0200 ath9k: resume aggregation immediately after a hardware reset Since aggregation is usually triggered by tx completion, a hardware reset (because of beacon stuck, tx hang or baseband hang) can significantly delay the transmission of the next AMPDU (until the next tx completion event). Fix this by rescheduling aggregation after such a reset. Signed-off-by: Felix Fietkau Cc: stable@kernel.org Signed-off-by: John W. Linville commit dafeac387d7f10d12d4fa9cc626af43c805540f7 Author: Christian Lamparter Date: Sat Oct 23 15:02:02 2010 +0200 carl9170: fix scheduling while atomic This patch fixes the following mishap: BUG: scheduling while atomic: wpa_supplicant/4164/0x00000002 Modules linked in: carl9170 mac80211 [...] Pid: 4164, comm: wpa_supplicant Not tainted 2.6.36-wl+ #119 Call Trace: [] ? schedule+0x349/0x4c0 [] ? schedule_timeout+0x106/0x1e0 [] ? process_timeout+0x0/0x10 [] ? wait_for_common+0x9d/0x140 [] ? default_wake_function+0x0/0x10 [] ? carl9170_exec_cmd+0xf0/0x250 [carl9170] [] ? carl9170_set_mac_reg+0x5e/0x70 [carl9170] [] ? carl9170_op_add_interface+0x176/0x310 [carl9170] [...] rcu_read_unlock() call was erroneously placed after the sync. function carl9170_mod_virtual_mac. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit c8716d9dc13c7f6ee92f2bfc6cc3b723b417bff8 Author: Rajkumar Manoharan Date: Sat Oct 23 10:59:57 2010 +0530 mac80211: Fix ibss station got expired immediately Station addition in ieee80211_ibss_rx_queued_mgmt is not updating sta->last_rx which is causing station expiry in ieee80211_ibss_work path. So sta addition and deletion happens repeatedly. CC: stable@kernel.org Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit 30115c2252fcf9d21aae029ff0e27f4cc962ef44 Author: Rafał Miłecki Date: Fri Oct 22 17:43:45 2010 +0200 b43: N-PHY: fix infinite-loop-typo Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit 04348f2732a067c75da22413f9d341e29b46c7ae Author: Grazvydas Ignotas Date: Fri Oct 22 02:23:08 2010 +0300 wl1251: fix module names The wl1251 move accidently renamed wl1251_sdio and wl1251_spi modules to just sdio and spi. Restore proper module names. Signed-off-by: Grazvydas Ignotas Acked-by: Kalle Valo Signed-off-by: John W. Linville commit 0299a50abb5ee8d605c93b61b70e51a717c9960b Author: Felix Fietkau Date: Thu Oct 21 02:47:24 2010 +0200 ath9k: fix handling of rate control probe frames The ath9k aggregation code was already checking the rate control probe flag to prevent starting an aggregate frame with a sampling rate. What was missing was closing an aggregate before adding a probing frame to it. Without that, rate control cannot have precise control over probing, which delays using faster rates when the channel conditions improve. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 0845735e2d1e4c177076d4bc2d841d9f77e95131 Author: Felix Fietkau Date: Wed Oct 20 15:59:28 2010 +0200 ath9k: fix crash in ath_update_survey_stats If ah->curchan is uninitialized, the channel index is bogus, which leads to invalid memory access when the cycle counters are updated. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 2d3fca180710c6832de22c44155ce6a3a4953c6b Author: Senthil Balasubramanian Date: Tue Oct 19 20:01:41 2010 +0530 ath9k_hw: Fix divide by zero cases in paprd. We are not handling all divide by zero cases in paprd. Add additional checks for divide by zero cases in papard. This patch has fixes intended for kernel 2.6.36. Cc: stable@kernel.org Signed-off-by: Senthil Balasubramanian Signed-off-by: John W. Linville commit 0dfa6dbb7372e581d3beb38b11772152114796b8 Author: Luis R. Rodriguez Date: Mon Oct 18 22:47:54 2010 -0700 ath9k_hw: Fix TX carrier leakage for IEEE compliance on AR9003 2.2 This updates the initvals for the AR9003 2.2 chipsets. The initvals are the initial register values we use for our registers upon hardware reset. This synchs up the initvals to match what our latest recommendation from our systems engineering team. The description of changes in this update: Improves ability to support very strong Rx conditions. Enhances DFS support for AP-mode. Improves performance of Tx carrier leak calibration. Adds support for Japan channel 14 Tx filtering requirements. Improves Tx power accuracy. Impact: Update required to address degraded throughput at very short range. Update required for AP-mode DFS certification. Update required to comply to IEEE Tx carrier leak specification. May not meet expected +/- 2 dB Tx power accuracy without update. The most important fix here would be the TX carrier leakage required to comply with IEEE 802.11 specifications. The group of changes have been tested all together in one release. References: Osprey 2.2 header file ver #33 Checksums: $ ./initvals -f ar9003-2p2 0x000000004a488fc7 ar9300_2p2_radio_postamble 0x0000000046cb1300 ar9300Modes_lowest_ob_db_tx_gain_table_2p2 0x00000000e912711f ar9300Modes_fast_clock_2p2 0x0000000037ac0ee8 ar9300_2p2_radio_core 0x00000000047a7700 ar9300Common_rx_gain_table_merlin_2p2 0x0000000003f783bb ar9300_2p2_mac_postamble 0x00000000301fc841 ar9300_2p2_soc_postamble 0x000000005ec8075f ar9200_merlin_2p2_radio_core 0x0000000083372ffa ar9300_2p2_baseband_postamble 0x00000000c4f59974 ar9300_2p2_baseband_core 0x00000000e20d2e72 ar9300Modes_high_power_tx_gain_table_2p2 0x000000007fd55c70 ar9300Modes_high_ob_db_tx_gain_table_2p2 0x0000000029495000 ar9300Common_rx_gain_table_2p2 0x0000000042cb1300 ar9300Modes_low_ob_db_tx_gain_table_2p2 0x00000000c4739cd6 ar9300_2p2_mac_core 0x000000003521a300 ar9300Common_wo_xlna_rx_gain_table_2p2 0x00000000a15ccf1b ar9300_2p2_soc_preamble 0x0000000029734396 ar9300PciePhy_pll_on_clkreq_disable_L1_2p2 0x000000002d834396 ar9300PciePhy_clkreq_enable_L1_2p2 0x0000000029834396 ar9300PciePhy_clkreq_disable_L1_2p2 $ ./initvals -f ar9003-2p2 | sha1sum 0ceddb5cf66737610fb51f04cf3e9ff71870c7b4 - Cc: stable@kernel.org Cc: Yixiang Li Cc: Don Breslin Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit a171fba491f54216e356efa46096171a7ed01d10 Author: Luis R. Rodriguez Date: Mon Oct 18 17:44:51 2010 -0700 cfg80211: fix regression on processing country IEs The patch 4f366c5: wireless: only use alpha2 regulatory information from country IE removed some complex intersection we were always doing between the AP's country IE info and what we got from CRDA. When CRDA sent us back a regulatory domain we would do some sanity checks on that regulatory domain response we just got. Part of these sanity checks included checking that we already had performed an intersection for the request of NL80211_REGDOM_SET_BY_COUNTRY_IE type. This mean that cfg80211 was only processing country IEs for cases where we already had an intersection, but since we removed enforcing this this is no longer required, we should just apply the country IE country hint with the data received from CRDA. This patch has fixes intended for kernels >= 2.6.36. Cc: stable@kernel.org Reported-by: Easwar Krishnan Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 3d2f2cd066e9e2b7e43d516d92e66dac2fc46aa0 Author: Christian Lamparter Date: Sat Oct 16 20:47:50 2010 +0200 carl9170: fix memory leak issue in async cmd macro wrappers This patch continues where the previous commit: "carl9170: fix async command buffer leak" left off. Similar to carl9170_reboot/carl9170_powersave, the carl9170_async_regwrite* macros would leak the temporary command buffer, if __carl9170_exec_cmd fails to upload the command to the device. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 5f4e6b2d3c74c1adda1cbfd9d9d30da22c7484fc Author: Christian Lamparter Date: Sat Oct 16 18:49:15 2010 +0200 mac80211: don't sanitize invalid rates I found this bug while poking around with a pure-gn AP. Commit: cfg80211/mac80211: Use more generic bitrate mask for rate control Added some sanity checks to ensure that each tx rate index is included in the configured mask and it would change any rate indexes if it wasn't. But, the current implementation doesn't take into account that the invalid rate index "-1" has a special meaning (= no further attempts) and it should not be "changed". Signed-off-by: Christian Lamparter Cc: stable@kernel.org Signed-off-by: John W. Linville commit cae7f953e8afa9b1ce234fd0907183b643cc5ab8 Author: Christian Lamparter Date: Sat Oct 16 01:38:46 2010 +0200 carl9170: fix async command buffer leak If __carl9170_exec_cmd fails to upload an asynchronous command to the device, the functions: carl9170_reboot and carl9170_powersave will leak the temporary command assembly buffer. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 9192f715bc6304b97fe06c6215d4897a5c279e81 Author: Ben Greear Date: Fri Oct 15 15:51:32 2010 -0700 ath5k: Properly initialize ath_common->cc_lock. Otherwise, lockdep splats, at the least: INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. Pid: 0, comm: swapper Not tainted 2.6.36-rc8-wl+ #32 Call Trace: [] ? printk+0xf/0x17 [] register_lock_class+0x5a/0x29e [] __lock_acquire+0xa2/0xb8c [] ? mark_lock+0x1e/0x1de [] ? acpi_get_override_irq+0x85/0x8c [] ? trace_hardirqs_off+0xb/0xd [] lock_acquire+0x5a/0x78 [] ? ath5k_ani_calibration+0x24/0x52b [ath5k] [] _raw_spin_lock_bh+0x20/0x2f [] ? ath5k_ani_calibration+0x24/0x52b [ath5k] [] ath5k_ani_calibration+0x24/0x52b [ath5k] [] ? tasklet_action+0x3b/0xc6 [] ath5k_tasklet_ani+0x18/0x22 [ath5k] [] tasklet_action+0x73/0xc6 [] __do_softirq+0x86/0x111 [] do_softirq+0x36/0x5a [] irq_exit+0x35/0x69 [] do_IRQ+0x86/0x9a [] common_interrupt+0x2e/0x40 [] ? do_adjtimex+0x223/0x55e [] ? mwait_idle+0x5c/0x6c [] cpu_idle+0x4e/0x6b [] rest_init+0x8d/0x92 [] start_kernel+0x320/0x325 [] i386_start_kernel+0xd0/0xd7 Signed-off-by: Ben Greear Acked-by: Bruno Randolf Signed-off-by: John W. Linville commit 20b25744d1366762c6878d3254f93973cafe1f8e Author: Ben Greear Date: Fri Oct 15 15:04:09 2010 -0700 ath9k: Properly initialize ath_common->cc_lock. Otherwise, lockdep splats, at the least: INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. Pid: 2240, comm: ip Not tainted 2.6.36-rc8-wl+ #32 Call Trace: [] ? printk+0xf/0x17 [] register_lock_class+0x5a/0x29e [] ? mark_lock+0x1e/0x1de [] __lock_acquire+0xa2/0xb8c [] ? mark_lock+0x1e/0x1de [] lock_acquire+0x5a/0x78 [] ? ath9k_config+0x274/0x3d8 [ath9k] [] _raw_spin_lock_irqsave+0x2f/0x3f [] ? ath9k_config+0x274/0x3d8 [ath9k] [] ath9k_config+0x274/0x3d8 [ath9k] [] ieee80211_hw_config+0x11b/0x125 [mac80211] [] ieee80211_do_open+0x3c5/0x466 [mac80211] [] ? ieee80211_check_concurrent_iface+0x21/0x13a [mac80211] [] ieee80211_open+0x5b/0x5e [mac80211] [] __dev_open+0x80/0xae [] __dev_change_flags+0xa0/0x115 [] dev_change_flags+0x13/0x3f [] do_setlink+0x23a/0x51b [] ? register_lock_class+0x17/0x29e [] rtnl_newlink+0x269/0x431 [] ? rtnl_newlink+0x7e/0x431 [] ? mark_lock+0x1e/0x1de [] ? mark_held_locks+0x47/0x5f [] ? __mutex_lock_common+0x2bb/0x2d6 [] ? trace_hardirqs_on_caller+0x104/0x125 [] ? __mutex_lock_common+0x2cc/0x2d6 [] ? rtnl_newlink+0x0/0x431 [] rtnetlink_rcv_msg+0x182/0x198 [] ? rtnetlink_rcv_msg+0x0/0x198 [] netlink_rcv_skb+0x30/0x77 [] rtnetlink_rcv+0x1b/0x22 [] netlink_unicast+0xbe/0x119 [] netlink_sendmsg+0x234/0x24c [] __sock_sendmsg+0x51/0x5a [] sock_sendmsg+0x93/0xa7 [] ? might_fault+0x47/0x81 [] ? might_fault+0x7c/0x81 [] ? copy_from_user+0x8/0xa [] ? verify_iovec+0x3e/0x6d [] sys_sendmsg+0x149/0x193 [] ? register_lock_class+0x17/0x29e [] ? mark_lock+0x1e/0x1de [] ? __do_fault+0x1fc/0x3a5 [] ? unlock_page+0x40/0x43 [] ? __do_fault+0x379/0x3a5 [] ? lock_release_non_nested+0x86/0x1d8 [] ? might_fault+0x47/0x81 [] ? might_fault+0x47/0x81 [] sys_socketcall+0x15e/0x1a5 [] sysenter_do_call+0x12/0x38 Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit 99b88a0ecbdbc6df03527292571b2b442965814a Author: Tejun Heo Date: Fri Oct 15 17:35:28 2010 +0200 mac80211: cancel restart_work explicitly instead of depending on flush_scheduled_work() iee80211_hw->restart_work is the only work which uses the system workqueue. Instead of calling flush_scheduled_work() during iee80211_exit(), cancel the work during unregistration. This is to prepare for the deprecation and removal of flush_scheduled_work(). Signed-off-by: Tejun Heo Signed-off-by: John W. Linville commit e50fb58b5b3548e578d3b74ff15aeb7d9a496839 Author: Dan Carpenter Date: Mon Oct 25 20:39:07 2010 +0200 hfsplus: fix double lock typo in ioctl This was supposed to be a mutex_unlock() instead of a mutex_lock(). Signed-off-by: Dan Carpenter Signed-off-by: Christoph Hellwig commit 335e3b8687fa6832bd6a033f2c705786e4bfb92c Author: Vitaliy Kulikov Date: Fri Oct 22 18:38:31 2010 -0500 ALSA: hda - Change BTL amp level on some HP notebooks Some HP laptops have lower amplifier levels for speakers in comparison with headphone outputs. This patch changes the BTL amp level for these machines to balance both the speaker and headphone output levels. Signed-off-by: Vitaliy Kulikov Signed-off-by: Takashi Iwai commit 72e58063d63c5f0a7bf65312f1e3a5ed9bb5c2ff Merge: 57c155d 489e176 Author: Linus Torvalds Date: Mon Oct 25 10:59:31 2010 -0700 Merge branch 'davinci-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-davinci * 'davinci-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-davinci: (50 commits) davinci: fix remaining board support after io_pgoffst removal davinci: mityomapl138: make file local data static arm/davinci: remove duplicated include davinci: Initial support for Omapl138-Hawkboard davinci: MityDSP-L138/MityARM-1808 read MAC address from I2C Prom davinci: add tnetv107x touchscreen platform device input: add driver for tnetv107x touchscreen controller davinci: add keypad config for tnetv107x evm board davinci: add tnetv107x keypad platform device input: add driver for tnetv107x on-chip keypad controller net: davinci_emac: cleanup unused cpdma code net: davinci_emac: switch to new cpdma layer net: davinci_emac: separate out cpdma code net: davinci_emac: cleanup unused mdio emac code omap: cleanup unused davinci mdio arch code davinci: cleanup mdio arch code and switch to phy_id net: davinci_emac: switch to new mdio omap: add mdio platform devices davinci: add mdio platform devices net: davinci_emac: separate out davinci mdio ... Fix up trivial conflict in drivers/input/keyboard/Kconfig (two entries added next to each other - one from the davinci merge, one from the input merge) commit 610470ce804f0326ca63fbcdc5be06b750debeb1 Author: Borislav Petkov Date: Mon Oct 25 18:25:23 2010 +0200 x86-32, mm: Remove duplicated #include b40827fa7268fda8a62490728a61c2856f33830b added an include directive which is needless and is taken care of by a previous one. Remove it. Caught-by: Jaswinder Singh Rajput Signed-off-by: Borislav Petkov Cc: Linus Torvalds Cc: Jaswinder Singh Rajput Cc: H. Peter Anvin LKML-Reference: <20101025162523.GA4712@a1.tnic> Signed-off-by: Ingo Molnar commit 7d7a48b76012eeee25871e1d69104dec4b6d740f Merge: e4072a9 229aebb Author: Ingo Molnar Date: Mon Oct 25 19:38:43 2010 +0200 Merge branch 'linus' into x86/urgent Merge reason: We want to queue up a dependent fix. Signed-off-by: Ingo Molnar commit 8ad330a002ffbc422f32a77398666832f0df8a3d Author: Eli Cohen Date: Fri Oct 22 14:32:05 2010 +0200 IB/core: Add link layer type information to sysfs Since an IB transport port may use either IB or Ethernet as its link layer, add the file /sys/class/infiniband//ports//link_layer to show the link layer for the port. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 4c3eb3ca13966508bcb64f39dcdef48be22f1731 Author: Eli Cohen Date: Thu Aug 26 17:19:22 2010 +0300 IB/mlx4: Add VLAN support for IBoE This patch allows IBoE traffic to be encapsulated in 802.1Q tagged VLAN frames. The VLAN tag is encoded in the GID and derived from it by a simple computation. The netdev notifier callback is modified to catch VLAN device addition/removal and the port's GID table is updated to reflect the change, so that for each netdevice there is an entry in the GID table. When the port's GID table is exhausted, GID entries will not be added. Only children of the main interfaces can add to the GID table; if a VLAN interface is added on another VLAN interface (e.g. "vconfig add eth2.6 8"), then that interfaces will not add an entry to the GID table. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit af7bd463761c6abd8ca8d831f9cc0ac19f3b7d4b Author: Eli Cohen Date: Thu Aug 26 17:18:59 2010 +0300 IB/core: Add VLAN support for IBoE Add 802.1q VLAN support to IBoE. The VLAN tag is encoded within the GID derived from a link local address in the following way: GID[11] GID[12] contain the VLAN ID when the GID contains a VLAN. The 3 bits user priority field of the packets are identical to the 3 bits of the SL. In case of rdma_cm apps, the TOS field is used to generate the SL field by doing a shift right of 5 bits effectively taking to 3 MS bits of the TOS field. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit fa417f7b520ee60b39f7e23528d2030af30a07d1 Author: Eli Cohen Date: Sun Oct 24 21:08:52 2010 -0700 IB/mlx4: Add support for IBoE Add support for IBoE to mlx4_ib. The bulk of the code is handling the new address vector fields; mlx4 needs the MAC address of a remote node to include it in a WQE (for datagrams) or in the QP context (for connected QPs). Address resolution is done by assuming all unicast GIDs are either link-local IPv6 addresses. Multicast group attach/detach needs to update the NIC's multicast filters; but since attaching a QP to a multicast group can be done before the QP is bound to a port, for IBoE we need to keep track of all multicast groups that a QP is attached too before it transitions from INIT to RTR (since it does not have a port in the INIT state). Signed-off-by: Eli Cohen [ Many things cleaned up and otherwise monkeyed with; hope I didn't introduce too many bugs. - Roland ] Signed-off-by: Roland Dreier commit 7ac870ed7d2316587ec06747c28cb9f44f67997d Author: Eli Cohen Date: Thu Oct 21 12:39:08 2010 -0700 mlx4_en: Change multicast promiscuous mode to support IBoE Change multicast promiscuous mode to pass packets through the multicast group distribution table before sending packets that miss to the default multicast QP. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 96dfa684c85d24b697f865f37a4f0c8678fc86e9 Author: Eli Cohen Date: Wed Oct 20 21:57:02 2010 -0700 mlx4_core: Update data structures and constants for IBoE Add fields to hardware data structures and add new constants required for IBoE support. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 33c87f0af60146b375220809c1cb745ac1a86edf Author: Eli Cohen Date: Thu Aug 26 14:18:43 2010 +0000 mlx4_core: Allow protocol drivers to find corresponding interfaces Add a mechanism for mlx4 protocol drivers to get a pointer to other drivers's device objects. For this, an exported function, mlx4_get_protocol_dev() is added, which allows a driver to get some other driver's device based on the protocol that the driver implements. Two protocols are added: MLX4_PROTOCOL_IB and MLX4_PROTOCOL_EN. This will be used in mlx4 IBoE support so that mlx4_ib can find the corresponding mlx4_en netdev. Signed-off-by: Eli Cohen [ Clean up and rename a few things. - Roland ] Signed-off-by: Roland Dreier commit 2420b60b1dc4ed98cb1788e928bc57ff2efa1a8d Author: Eli Cohen Date: Mon Oct 18 14:45:20 2010 -0700 IB/uverbs: Return link layer type to userspace for query port operation Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 0b849ee88846e3488a34007c5b8b4249579ff159 Merge: 43948f5 4cafc4b Author: Ingo Molnar Date: Mon Oct 25 19:17:32 2010 +0200 Merge branch 'x86' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile into perf/urgent commit 57c155d51e2f3d7411eeac5e7fd7634d2d1f6b4f Merge: 9afd281 fe2fd9e Author: Linus Torvalds Date: Mon Oct 25 10:08:21 2010 -0700 Merge branch 'for-linus' of git://git.open-osd.org/linux-open-osd * 'for-linus' of git://git.open-osd.org/linux-open-osd: exofs: Remove inode->i_count manipulation in exofs_new_inode fs/exofs: typo fix of faild to failed exofs: Set i_mapping->backing_dev_info anyway exofs: Cleaup read path in regard with read_for_write commit 9afd281a152702143961c09b5482a66eeefe5e03 Author: Borislav Petkov Date: Mon Oct 25 18:15:22 2010 +0200 x86-32, mm: Remove duplicated include Commit b40827fa7268 ("x86-32, mm: Add an initial page table for core bootstrapping") added an include directive which is needless and is taken care of by a previous one. Remove it. Caught-by: Jaswinder Singh Rajput Signed-off-by: Borislav Petkov Signed-off-by: Linus Torvalds commit fe2fd9ed5bf184f797412be8b86f4589d1b77bb8 Author: Boaz Harrosh Date: Sat Oct 16 19:14:01 2010 +1100 exofs: Remove inode->i_count manipulation in exofs_new_inode exofs_new_inode() was incrementing the inode->i_count and decrementing it in create_done(), in a bad attempt to make sure the inode will still be there when the asynchronous create_done() finally arrives. This was very stupid because iput() was not called, and if it was actually needed, it would leak the inode. However all this is not needed, because at exofs_evict_inode() we already wait for create_done() by waiting for the object_created event. Therefore remove the superfluous ref counting and just Thicken the comment at exofs_evict_inode() a bit. While at it change places that open coded wait_obj_created() to call the already available wrapper. CC: Dave Chinner CC: Christoph Hellwig CC: Nick Piggin Signed-off-by: Boaz Harrosh commit 571f7f46bf367b29f574ca51a9ca1db5035602bb Author: Joe Perches Date: Thu Oct 21 22:17:17 2010 -0700 fs/exofs: typo fix of faild to failed Signed-off-by: Joe Perches Signed-off-by: Boaz Harrosh commit c4a6eb3b7d5b483de331313e7ea38a6891a3447a Merge: 33081ad 96f4a70 Author: Linus Torvalds Date: Mon Oct 25 08:36:50 2010 -0700 Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6 * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: (48 commits) [S390] topology: export cpu topology via proc/sysinfo [S390] topology: move topology sysinfo code [S390] topology: clean up facility detection [S390] cleanup facility list handling [S390] enable ARCH_DMA_ADDR_T_64BIT with 64BIT [S390] dasd: ignore unsolicited interrupts for DIAG [S390] kvm: Enable z196 instruction facilities [S390] dasd: fix unsolicited interrupt recognition [S390] dasd: fix use after free in dbf [S390] kvm: Fix badness at include/asm/mmu_context.h:83 [S390] cio: fix I/O cancel function [S390] topology: change default [S390] smp: use correct cpu address in print_cpu_info() [S390] remove ieee_instruction_pointer from thread_struct [S390] cleanup system call parameter setup [S390] correct alignment of cpuid structure [S390] cleanup lowcore access from external interrupts [S390] cleanup lowcore access from program checks [S390] pgtable: move pte_mkhuge() from hugetlb.h to pgtable.h [S390] fix SIGBUS handling ... commit 33081adf8b89d5a716d7e1c60171768d39795b39 Merge: c559604 506ecbc Author: Linus Torvalds Date: Mon Oct 25 08:32:05 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (365 commits) ALSA: hda - Disable sticky PCM stream assignment for AD codecs ALSA: usb - Creative USB X-Fi volume knob support ALSA: ca0106: Use card specific dac id for mute controls. ALSA: ca0106: Allow different sound cards to use different SPI channel mappings. ALSA: ca0106: Create a nice spot for mapping channels to dacs. ALSA: ca0106: Move enabling of front dac out of hardcoded setup sequence. ALSA: ca0106: Pull out dac powering routine into separate function. ALSA: ca0106 - add Sound Blaster 5.1vx info. ASoC: tlv320dac33: Use usleep_range for delays ALSA: usb-audio: add Novation Launchpad support ALSA: hda - Add workarounds for CT-IBG controllers ALSA: hda - Fix wrong TLV mute bit for STAC/IDT codecs ASoC: tpa6130a2: Error handling for broken chip ASoC: max98088: Staticise m98088_eq_band ASoC: soc-core: Fix codec->name memory leak ALSA: hda - Apply ideapad quirk to Acer laptops with Cxt5066 ALSA: hda - Add some workarounds for Creative IBG ALSA: hda - Fix wrong SPDIF NID assignment for CA0110 ALSA: hda - Fix codec rename rules for ALC662-compatible codecs ALSA: hda - Add alc_init_jacks() call to other codecs ... commit c55960499f810357a29659b32d6ea594abee9237 Merge: fbaab1d 10c6c9c Author: Linus Torvalds Date: Mon Oct 25 08:30:48 2010 -0700 Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/dvrabel/uwb * 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/dvrabel/uwb: uwb: Orphan the UWB and WUSB subsystems uwb: Remove the WLP subsystem and drivers commit fbaab1dc19751c80a7df62425f1d9ad2688e42f5 Merge: 51f00a4 7f80d73 Author: Linus Torvalds Date: Mon Oct 25 08:28:13 2010 -0700 Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86 * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86: (44 commits) eeepc-wmi: Add cpufv sysfs interface eeepc-wmi: add additional hotkeys panasonic-laptop: Simplify calls to acpi_pcc_retrieve_biosdata panasonic-laptop: Handle errors properly if they happen intel_pmic_gpio: fix off-by-one value range checking IBM Real-Time "SMI Free" mode driver -v7 Add OLPC XO-1 rfkill driver Move hdaps driver to platform/x86 ideapad-laptop: Fix Makefile intel_pmic_gpio: swap the bits and mask args for intel_scu_ipc_update_register ideapad: Add param: no_bt_rfkill ideapad: Change the driver name to ideapad-laptop ideapad: rewrite the sw rfkill set ideapad: rewrite the hw rfkill notify ideapad: use EC command to control camera ideapad: use return value of _CFG to tell if device exist or not ideapad: make sure we bind on the correct device ideapad: check VPC bit before sync rfkill hw status ideapad: add ACPI helpers dell-laptop: Add debugfs support ... commit 51f00a471ce8f359627dd99aeac322947a0e491b Merge: a7f505c 97ff46c Author: Linus Torvalds Date: Mon Oct 25 08:19:14 2010 -0700 Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6 * 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6: mtd/m25p80: add support to parse the partitions by OF node of/irq: of_irq.c needs to include linux/irq.h of/mips: Cleanup some include directives/files. of/mips: Add device tree support to MIPS of/flattree: Eliminate need to provide early_init_dt_scan_chosen_arch of/device: Rework to use common platform_device_alloc() for allocating devices of/xsysace: Fix OF probing on little-endian systems of: use __be32 types for big-endian device tree data of/irq: remove references to NO_IRQ in drivers/of/platform.c of/promtree: add package-to-path support to pdt of/promtree: add of_pdt namespace to pdt code of/promtree: no longer call prom_ functions directly; use an ops structure of/promtree: make drivers/of/pdt.c no longer sparc-only sparc: break out some PROM device-tree building code out into drivers/of of/sparc: convert various prom_* functions to use phandle sparc: stop exporting openprom.h header powerpc, of_serial: Endianness issues setting up the serial ports of: MTD: Fix OF probing on little-endian systems of: GPIO: Fix OF probing on little-endian systems commit a7f505c6b15fb35c0de8136e370d2927ce29452c Author: Ralf Baechle Date: Sun Oct 24 22:23:50 2010 +0100 MIPS: MT: Fix build error iFPU affinity code Commit b0ae19811375 ("security: remove unused parameter from security_task_setscheduler()") broke the build of arch/mips/kernel/mips-mt-fpaff.c. The function arguments were unnecessary, not the semicolon ... Signed-off-by: Ralf Baechle Acked-by: KOSAKI Motohiro Acked-by: James Morris Signed-off-by: Linus Torvalds commit b7d41a9fbb364c67d91c3588e117eba547e2d4bf Merge: da47c19 66fa12c Author: Linus Torvalds Date: Mon Oct 25 08:05:29 2010 -0700 Merge branch 'ieee1394-removal' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6 * 'ieee1394-removal' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6: ieee1394: remove the old IEEE 1394 driver stack ieee1394: move init_ohci1394_dma to drivers/firewire/ Fix trivial change/delete conflict: drivers/ieee1394/eth1394.c is getting removed, but was modified by the networking merge. commit da47c19e5c746829042933c8f945a71e2b62d6fc Author: Yoshihisa Abe Date: Mon Oct 25 02:03:46 2010 -0400 Coda: replace BKL with mutex Replace the BKL with a mutex to protect the venus_comm structure which binds the mountpoint with the character device and holds the upcall queues. Signed-off-by: Yoshihisa Abe Signed-off-by: Jan Harkes Signed-off-by: Linus Torvalds commit f7cc02b8715618e179242ba9cc10bdc5146ae565 Author: Yoshihisa Abe Date: Mon Oct 25 02:03:45 2010 -0400 Coda: push BKL regions into coda_upcall() Now that shared inode state is locked using the cii->c_lock, the BKL is only used to protect the upcall queues used to communicate with the userspace cache manager. The remaining state is all local and we can push the lock further down into coda_upcall(). Signed-off-by: Yoshihisa Abe Signed-off-by: Jan Harkes Signed-off-by: Linus Torvalds commit b5ce1d83a62fc109d8e815b1fc71dcdb0d26bc49 Author: Yoshihisa Abe Date: Mon Oct 25 02:03:44 2010 -0400 Coda: add spin lock to protect accesses to struct coda_inode_info. We mostly need it to protect cached user permissions. The c_flags field is advisory, reading the wrong value is harmless and in the worst case we hit a slow path where we have to make an extra upcall to the userspace cache manager when revalidating a dentry or inode. Signed-off-by: Yoshihisa Abe Signed-off-by: Jan Harkes Signed-off-by: Linus Torvalds commit 3a99c6319064af3f2e18eb929f638d555dbf7a62 Merge: 1dfd166 49327ad Author: Linus Torvalds Date: Mon Oct 25 07:59:01 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (75 commits) Input: wacom - specify Cinitq supported tools Input: ab8500-ponkey - fix IRQ freeing in error path Input: adp5588-keys - use more obvious i2c_device_id name string Input: ad7877 - switch to using threaded IRQ Input: ad7877 - use attribute group to control visibility of attributes Input: serio - add support for PS2Mult multiplexer protocol Input: wacom - properly enable runtime PM Input: ad7877 - filter events where pressure is beyond the maximum Input: ad7877 - implement EV_KEY:BTN_TOUCH reporting Input: ad7877 - implement specified chip select behavior Input: hp680_ts_input - use cancel_delayed_work_sync() Input: mousedev - correct lockdep annotation Input: ads7846 - switch to using threaded IRQ Input: serio - support multiple child devices per single parent Input: synaptics - simplify pass-through port handling Input: add ROHM BU21013 touch panel controller support Input: omap4-keypad - wake-up on events & long presses Input: omap4-keypad - fix interrupt line configuration Input: omap4-keypad - SYSCONFIG register configuration Input: omap4-keypad - use platform device helpers ... commit 4cafc4b8d7219b70e15f22e4a51b3ce847810caf Merge: b47fad3 dbd1e66 Author: Robert Richter Date: Mon Oct 25 16:58:34 2010 +0200 Merge branch 'oprofile/core' into oprofile/x86 Conflicts: arch/x86/oprofile/op_model_amd.c Signed-off-by: Robert Richter commit 1dfd166e93f98892aa4427069a23ed73259983c8 Merge: 8e77516 8df3990 Author: Linus Torvalds Date: Mon Oct 25 07:51:49 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (110 commits) sh: i2c-sh7760: Replase from ctrl_* to __raw_* sh: clkfwk: Shuffle around to match the intc split up. sh: clkfwk: modify for_each_frequency end condition sh: fix clk_get() error handling sh: clkfwk: Fix fault in frequency iterator. sh: clkfwk: Add a helper for rate rounding by divisor ranges. sh: clkfwk: Abstract rate rounding helper. sh: clkfwk: support clock remapping. sh: pci: Convert to upper/lower_32_bits() helpers. sh: mach-sdk7786: Add support for the FPGA SRAM. sh: Provide a generic SRAM pool for tiny memories. sh: pci: Support secondary FPGA-driven PCIe clocks on SDK7786. sh: pci: Support slot 4 routing on SDK7786. sh: Fix up PMB locking. sh: mach-sdk7786: Add support for fpga gpios. sh: use pr_fmt for clock framework, too. sh: remove name and id from struct clk sh: free-without-alloc fix for sh_mobile_lcdcfb sh: perf: Set up perf_max_events. sh: perf: Support SH-X3 hardware counters. ... Fix up trivial conflicts (perf_max_events got removed) in arch/sh/kernel/perf_event.c commit 986fe6c7f50974e871b8ab5a800f5310ea25b361 Author: Mike Christie Date: Wed Oct 6 03:10:59 2010 -0500 [SCSI] Fix regressions in scsi_internal_device_block Deleting a SCSI device on a blocked fc_remote_port (before fast_io_fail_tmo fires) results in a hanging thread: STACK: 0 schedule+1108 [0x5cac48] 1 schedule_timeout+528 [0x5cb7fc] 2 wait_for_common+266 [0x5ca6be] 3 blk_execute_rq+160 [0x354054] 4 scsi_execute+324 [0x3b7ef4] 5 scsi_execute_req+162 [0x3b80ca] 6 sd_sync_cache+138 [0x3cf662] 7 sd_shutdown+138 [0x3cf91a] 8 sd_remove+112 [0x3cfe4c] 9 __device_release_driver+124 [0x3a08b8] 10 device_release_driver+60 [0x3a0a5c] 11 bus_remove_device+266 [0x39fa76] 12 device_del+340 [0x39d818] 13 __scsi_remove_device+204 [0x3bcc48] 14 scsi_remove_device+66 [0x3bcc8e] 15 sysfs_schedule_callback_work+50 [0x260d66] 16 worker_thread+622 [0x162326] 17 kthread+160 [0x1680b0] 18 kernel_thread_starter+6 [0x10aaea] During the delete, the SCSI device is in moved to SDEV_CANCEL. When the FC transport class later calls scsi_target_unblock, this has no effect, since scsi_internal_device_unblock ignores SCSI devics in this state. It looks like all these are regressions caused by: 5c10e63c943b4c67561ddc6bf61e01d4141f881f [SCSI] limit state transitions in scsi_internal_device_unblock Fix by rejecting offline and cancel in the state transition. Signed-off-by: Christof Schmitt [jejb: Original patch by Christof Schmitt, modified by Mike Christie] Cc: Stable Tree Signed-off-by: James Bottomley commit 8e775167d54e6521e7cdbc03ee7ec42a8c67b49a Merge: 4b37ba9 f253b86 Author: Linus Torvalds Date: Mon Oct 25 07:45:10 2010 -0700 Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block * 'for-linus' of git://git.kernel.dk/linux-2.6-block: Revert "block: fix accounting bug on cross partition merges" commit 4b37ba90f49d4157ac5628f8d730d3505f176724 Merge: 229aebb 55f411d Author: Linus Torvalds Date: Mon Oct 25 07:44:27 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: (21 commits) m68knommu: convert to using tracehook_report_syscall_* m68knommu: some boards use fixed phy for FEC ethernet m68knommu: support the external GPIO based interrupts of the 5272 m68knommu: mask of vector bits in exception word properly m68knommu: change to new flag variables m68knommu: Fix MCFUART_TXFIFOSIZE for m548x. m68knommu: add basic mmu-less m548x support m68knommu: .gitignore vmlinux.lds m68knommu: stop using __do_IRQ m68knommu: rename PT_OFF_VECTOR to PT_OFF_FORMATVEC. m68knommu: add support for Coldfire 547x/548x interrupt controller m68k{nommu}: Remove unused DEFINE's from asm-offsets.c m68knommu: whitespace cleanup in 68328/entry.S m68knommu: Document supported chips in intc-2.c and intc-simr.c. m68knommu: fix strace support for 68328/68360 m68knommu: fix default starting date arch/m68knommu: Removing dead 68328_SERIAL_UART2 config option arch/m68knommu: Removing dead RAM_{16,32}_MB config option arch/m68knommu: Removing dead M68KFPU_EMU config option arch/m68knommu: Removing dead RELOCATE config option ... commit fb5a638995758cfe8408cc4ea452ea9022b98fc7 Author: Christof Schmitt Date: Tue Oct 5 17:12:55 2010 +0200 [SCSI] zfcp: Use correct length for FCP_RSP_INFO Use the FCP_RSP_INFO length to correctly skip the FCP_RSP_INFO field. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit 1a9708cd352e3b25500704daee9270d879e48199 Author: Christof Schmitt Date: Tue Oct 5 17:12:54 2010 +0200 [SCSI] zfcp: Call get_device on port before calling put_device zfcp_unit_release calls put_device on the port. Ensure that get_device has been called before possibly triggering the release function through put_device or device_unregister. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit 0df138476c8306478d6e726f044868b4bccf411c Author: Swen Schillig Date: Tue Oct 5 17:12:53 2010 +0200 [SCSI] zfcp: Fix adapter activation on link down If an exchange config is executed while the local link is down, the request succeeds but the returned data is incomplete. Proceeding with the adapter activation is leading to an unpredictable behaviour (e.g. kernel panic) caused by invalid values. In such a scenario the recommended ERP is to retry the action and wait for a link up event. If the issue persists the activation has to fail. Signed-off-by: Swen Schillig Sigend-off-by: Christof Schmitt Signed-off-by: James Bottomley commit 0b824d2b10eacd496c608a7c41a046862d48563b Author: Lan Chunhe-B25806 Date: Mon Oct 18 15:22:32 2010 +0800 P4080/mtd: Fix the freescale lbc issue with 36bit mode When system uses 36bit physical address, res.start is 36bit physical address. But the function of in_be32 returns 32bit physical address. Then both of them compared each other is wrong. So by converting the address of res.start into the right format fixes this issue. Signed-off-by: Lan Chunhe-B25806 Signed-off-by: Roy Zang Reviewed-by: Anton Vorontsov Signed-off-by: David Woodhouse commit 3ab8f2a2e7011c5e83363b42950757e46ef06824 Author: Roy Zang Date: Mon Oct 18 15:22:31 2010 +0800 P4080/eLBC: Make Freescale elbc interrupt common to elbc devices Move Freescale elbc interrupt from nand driver to elbc driver. Then all elbc devices can use the interrupt instead of ONLY nand. For former nand driver, it had the two functions: 1. detecting nand flash partitions; 2. registering elbc interrupt. Now, second function is removed to fsl_lbc.c. Signed-off-by: Lan Chunhe-B25806 Signed-off-by: Roy Zang Reviewed-by: Anton Vorontsov Cc: Wood Scott-B07421 Signed-off-by: David Woodhouse commit dbd1e66e04558a582e673bc4a9cd933ce0228d93 Merge: 328b8f1 4a60cfa Author: Robert Richter Date: Mon Oct 25 16:28:14 2010 +0200 Merge commit 'linux-2.6/master' (early part) into oprofile/core This branch depends on these apic patches: apic, x86: Use BIOS settings for IBS and MCE threshold interrupt LVT offsets apic, x86: Check if EILVT APIC registers are available (AMD only) Signed-off-by: Robert Richter commit 96f4a70d8eb4d746b19d5b5510407c8ff0d00340 Author: Heiko Carstens Date: Mon Oct 25 16:10:54 2010 +0200 [S390] topology: export cpu topology via proc/sysinfo Export the cpu configuration topology via sysinfo. Two new lines are introduced: CPU Topology HW: 0 0 0 4 6 4 CPU Topology SW: 0 0 0 0 4 24 The HW line describes the cpu topology nesting levels when the maximum nesting level is used to get the corresponding SYSIB. The SW line describes what Linux is actually using. In this case it supports only two levels (CONFIG_SCHED_BOOK off) and therefore the hardware folded the two lower levels in the SYSIB response block. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit c30f91b6a264aef9ffb05e13931514c2a988c495 Author: Heiko Carstens Date: Mon Oct 25 16:10:53 2010 +0200 [S390] topology: move topology sysinfo code Move the topology sysinfo SYSIB definitions to the proper place in asm/sysinfo.h where they should be. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 9186d7a9cfd75e51ac4db4a40e0a558371988bd2 Author: Heiko Carstens Date: Mon Oct 25 16:10:52 2010 +0200 [S390] topology: clean up facility detection Move cpu topology facility detection to early setup code where it should be. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 14375bc4eb8dd0fb0e765390650564c35bb31068 Author: Martin Schwidefsky Date: Mon Oct 25 16:10:51 2010 +0200 [S390] cleanup facility list handling Store the facility list once at system startup with stfl/stfle and reuse the result for all facility tests. Signed-off-by: Martin Schwidefsky commit eca577ef5989d25dedc6b0fae3c4622ceaee8005 Author: FUJITA Tomonori Date: Mon Oct 25 16:10:50 2010 +0200 [S390] enable ARCH_DMA_ADDR_T_64BIT with 64BIT Signed-off-by: FUJITA Tomonori Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Martin Schwidefsky commit 56b86b615b807e043339979878a2de88f900ee4f Author: Stefan Haberland Date: Mon Oct 25 16:10:49 2010 +0200 [S390] dasd: ignore unsolicited interrupts for DIAG For the DASD DIAG discipline IO is started through special diagnose calls. Unsolicited interrupts may contain information about the device itself. But this information is not needed because the device is not used directly. Fix the case that an unimplemented dicipline function may be called by ignoring unsolicited interrupts for the DIAG disciplin. Signed-off-by: Stefan Haberland Signed-off-by: Martin Schwidefsky commit 6d00d00bf23b86b352e2d075cfe751acd1908278 Author: Christian Borntraeger Date: Mon Oct 25 16:10:48 2010 +0200 [S390] kvm: Enable z196 instruction facilities Enable PFPO, floating point extension, distinct-operands, fast-BCR-serialization, high-word, interlocked-access, load/store- on-condition, and population-count facilities for guests. (bits 37, 44 and 45). Signed-off-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky commit a5a0061fb3a22bbd9b108af8382142fd0f41ebee Author: Stefan Weinhuber Date: Mon Oct 25 16:10:47 2010 +0200 [S390] dasd: fix unsolicited interrupt recognition The dasd interrupt handler needs to distinguish solicited from unsolicited interrupts, as unsolicited interrupts may require special handling (e.g. summary unit checks) and solicited interrupts require proper error recovery for the failed I/O request. The interrupt handler needs to check several bit fields in the interrupt response block (irb) to make this distinction. So far our check of the status control bits has not been specific enough, which may lead to a failed request getting just retried instead of the necessary error recovery. Signed-off-by: Stefan Weinhuber Signed-off-by: Martin Schwidefsky commit 26cffecf84c8cb33787dd13a72bd2124d107d413 Author: Sebastian Ott Date: Mon Oct 25 16:10:46 2010 +0200 [S390] dasd: fix use after free in dbf Writing to /proc/dasd/statistics while the debug level of the generic dasd debug entry is set to DBF_DEBUG will lead to an use after free when accessing the debug entry later. Since for the format string "%s" in the s390 dbf only a pointer to the string is stored in the debug feature and the buffer used here is freed afterwards. To fix this just remove the debug message. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit e05ef9bdb899e2f3798be74691842fc597d8ce60 Author: Christian Borntraeger Date: Mon Oct 25 16:10:45 2010 +0200 [S390] kvm: Fix badness at include/asm/mmu_context.h:83 commit 050eef364ad700590a605a0749f825cab4834b1e [S390] fix tlb flushing vs. concurrent /proc accesses broke KVM on s390x. On every schedule a Badness at include/asm/mmu_context.h:83 appears. s390_enable_sie replaces the mm on the __running__ task, therefore, we have to increase the attach count of the new mm. Signed-off-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky commit 376ae4752e3a387d41a2ba9c9ea45c2df625e6e4 Author: Peter Oberparleiter Date: Mon Oct 25 16:10:44 2010 +0200 [S390] cio: fix I/O cancel function Function ccw_device_cancel_halt_clear may cause an unexpected kernel panic if a clear function is currently active at the subchannel for which it is called. In that case, the iretry counter used to determine the number of retries is never initialized, leading to an immediate failure of the function which results in a kernel panic. Fix this by initializing the iretry counter when the function is first called. Also replace the kernel panic with a return code: a single malfunctioning I/O device should not automatically cause a system-wide kernel panic. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky commit c9af3fa9e1e3e5154649991a14b74f3a2dee19ee Author: Heiko Carstens Date: Mon Oct 25 16:10:43 2010 +0200 [S390] topology: change default Switch default value of the kernel parameter 'topology' from off to on. Various performance measurements have finally shown that there are no (known) regressions anywhere. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 0576fc703a03a43e73a57450d5720b47ec7a03ba Author: Heiko Carstens Date: Mon Oct 25 16:10:42 2010 +0200 [S390] smp: use correct cpu address in print_cpu_info() Up to now print_cpu_info() uses the cpu address stored in it's local lowcore to print a message to the console. The cpu address in the lowcore is (in this case) however not the physical cpu address of the local cpu. It's the address of the cpu that issued the sigp restart which started the local cpu. Fix this by using the store cpu address instruction instead. It's not that anybody really cares since this is broken since more than ten years... Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit ba6cadfebc18f786ef4e60e9ff03f9656ce3d584 Author: Martin Schwidefsky Date: Mon Oct 25 16:10:41 2010 +0200 [S390] remove ieee_instruction_pointer from thread_struct The ieee_instruction_pointer can not be read from user space anymore since git commit 613e1def6b52c399a8b72a5e11bc2e57d2546fb8, the ptrace interface always returns zero. Remove it from the thread_struct. It is still present in the user_regs_struct for compatability reasons. Signed-off-by: Martin Schwidefsky commit baa071588c3ffcc1a8721faf9337140e85d34bf6 Author: Martin Schwidefsky Date: Mon Oct 25 16:10:40 2010 +0200 [S390] cleanup system call parameter setup Do the setup of the stack overflow argument for the sixth system call parameter right before the branch to the system call function. That simplifies the system call parameter access code. Signed-off-by: Martin Schwidefsky commit 178514d7e3e8cfba087b3a208e22a54ce65e8f34 Author: Martin Schwidefsky Date: Mon Oct 25 16:10:39 2010 +0200 [S390] correct alignment of cpuid structure The store-cpu-id instruction has a minimum alignment of 8. Reflect that in the definition of struct cpuid. Signed-off-by: Martin Schwidefsky commit f6649a7e5a9ee99e9623878f4a5579cc2f6cdd51 Author: Martin Schwidefsky Date: Mon Oct 25 16:10:38 2010 +0200 [S390] cleanup lowcore access from external interrupts Read external interrupts parameters from the lowcore in the first level interrupt handler in entry[64].S. Signed-off-by: Martin Schwidefsky commit 1e54622e0403891b10f2105663e0f9dd595a1f17 Author: Martin Schwidefsky Date: Mon Oct 25 16:10:37 2010 +0200 [S390] cleanup lowcore access from program checks Read all required fields for program checks from the lowcore in the first level interrupt handler in entry[64].S. If the context that caused the fault was enabled for interrupts we can now re-enable the irqs in entry[64].S. Signed-off-by: Martin Schwidefsky commit 84afdcee620b1640f2a145c07febae4ed68947f9 Author: Heiko Carstens Date: Mon Oct 25 16:10:36 2010 +0200 [S390] pgtable: move pte_mkhuge() from hugetlb.h to pgtable.h All architectures besides s390 have pte_mkhuge() defined in pgtable.h. So move the function to pgtable.h on s390 as well. Fixes a compile error introduced with "hugetlb: hugepage migration core" in linux-next which only happens on s390. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 36bf96801e3a2c4efae0bb8c1897a530fc9ca13e Author: Martin Schwidefsky Date: Mon Oct 25 16:10:35 2010 +0200 [S390] fix SIGBUS handling Raise SIGBUS with a siginfo structure. Deliver BUS_ADRERR as si_code and the address of the fault in the si_addr field. Signed-off-by: Martin Schwidefsky commit 585b954e1f2fa325d425b0786e4525ac7c9ae575 Author: Sebastian Ott Date: Mon Oct 25 16:10:34 2010 +0200 [S390] cio: notify drivers of channel path events This patch adds a notification mechanism to inform ccw drivers about changes to channel paths, which occured while the device is online. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit eb4f5d93d70458ea644e0f46737f0bcf87280e83 Author: Sebastian Ott Date: Mon Oct 25 16:10:33 2010 +0200 [S390] css: update subchannel description after hibernate Update the subchannel descriptor while resuming from hibernate in order to obtain current link addresses. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit 62da177ac2bc1f6f3707230070af268b1e689651 Author: Sebastian Ott Date: Mon Oct 25 16:10:32 2010 +0200 [S390] css: update descriptor after hibernate Update the channel path descriptors after hibernation. This is done unlocked, since we are the only active task at this time. Note: chsc_determine_base_channel_path_desc is changed to use spin_lock_irqsave, since it's called with interrupts disabled in this case. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit c38a90a34cfc880eb2f7234c511cdb7d8bdebc45 Author: Sebastian Ott Date: Mon Oct 25 16:10:31 2010 +0200 [S390] cio: update descriptor in chsc_chp_vary Update the channel path descriptor at the beginning of to the vary_on operation. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit 906c9768c7750ce76b85597174b9c3599a6ca9f6 Author: Sebastian Ott Date: Mon Oct 25 16:10:30 2010 +0200 [S390] chsc: use the global page to determine the chp desriptor chsc_determine_channel_path_desc is called by a wrapper who allocates a response struct. The response data is then memcpy'ed to this response struct by chsc_determine_channel_path_desc. Change chsc_determine_base_channel_path_desc to use the global chsc_page and deliver it to the function doing the actual chsc call. The channel path desriptor is then directly read from the response data. As a result we get rid of the additional allocation for the response struct. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit 34196f82b16749e119db5572271944c4add0a9aa Author: Sebastian Ott Date: Mon Oct 25 16:10:29 2010 +0200 [S390] chsc: consolidate memory allocations Most wrappers around the channel subsystem call have their own logic to allocate memory (with proper alignment) or use preallocated or static memory. This patch converts most users of the channel subsystem call to use the same preallocated page (proteced by a spinlock). Note: The sei_page which is used in our crw handler to call "store event information" has to coexist, since a) in crw context, while accessing the sei_page, sleeping is allowed (which will conflict with the spinlock protection of the chsc_page) b) in crw context, while accessing the sei_page, channel subsystem calls are allowed (which itself would require the page). Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit 34aec07c170b972a29c954b37047184bd0f9f294 Author: Sebastian Ott Date: Mon Oct 25 16:10:28 2010 +0200 [S390] chsc: initialization fixes This patch fixes: * kfree vs. free_page usage * structure definition for determine_css_characteristics * naming convention for the chsc init function * deregistration of crw handlers in the cleanup path Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit b730f3a933958362ee1080c257f2cc158149310a Author: Sebastian Ott Date: Mon Oct 25 16:10:27 2010 +0200 [S390] cio: add lock to struct channel_path Serialize access to members of struct channel_path with a mutex. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit 74b6127e6c35abf06364468636dd261850639f8b Author: Sebastian Ott Date: Mon Oct 25 16:10:26 2010 +0200 [S390] cio: fix memleak in resume path If a ccwdevice is lost during hibernation and a different ccwdevice is attached to the same subchannel, we will deregister the old ccw device and register the new one. Since deregistration is not allowed in this context, we handle this action later. However, some parts of the registration process for the new device were started anyway, so that the old device structure is no longer accessible. Fix this by deferring both actions to the afterwards scheduled subchannel event. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit f2777077aa1f6f8a7c76b83f240975289a9fb894 Author: Andy Shevchenko Date: Mon Oct 25 16:10:25 2010 +0200 [S390] cio: remove custom implementation of hex_to_bin() Signed-off-by: Andy Shevchenko Signed-off-by: Martin Schwidefsky commit ed3640b285d831065eb0507cdca7d125f6f78e8d Author: Stefan Haberland Date: Mon Oct 25 16:10:24 2010 +0200 [S390] dasd fix dump_sense_dbf The dasd_eckd_dump_sense_dbf function uses a macro for s390 debug feature that can handle up to 8 parameters (for the DASD device driver). Fix the function to use only the maximum number of parameters. Signed-off-by: Stefan Haberland Signed-off-by: Martin Schwidefsky commit a8481c2afeed297426f67ce3fd4ad7eea6b7ddf5 Author: Sebastian Ott Date: Mon Oct 25 16:10:23 2010 +0200 [S390] css: fix sparse warning fix this sparse warning: drivers/s390/cio/css.c:580:6: warning: symbol 'css_schedule_eval_all_unreg' was not declared. Should it be static? Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky commit c77f7cf74b9bc0e56c8698097228c1784e9f03c9 Author: Hendrik Brueckner Date: Mon Oct 25 16:10:22 2010 +0200 [S390] hvc_iucv: do not call iucv_unregister if iucv_register failed If the iucv_register() functions fails, the error recovery calls iucv_unregister() which might cause the following stack backtrace: (<0000000000100ab2> show_trace+0xee/0x144) <00000000004f1842> panic+0xb6/0x248 <00000000001010a6> die+0x15a/0x16c <000000000011d936> do_no_context+0xa6/0xe4 <00000000004f84dc> do_protection_exception+0x2e8/0x3a4 <0000000000113afc> pgm_exit+0x0/0x14 <00000000004e786e> iucv_unregister+0x5a/0x17c (<00000000004e785e> iucv_unregister+0x4a/0x17c) <000000000076de74> hvc_iucv_init+0x228/0x5dc <00000000001000c2> do_one_initcall+0x3e/0x19c <00000000007524a2> kernel_init+0x28e/0x404 <0000000000105dd6> kernel_thread_starter+0x6/0xc <0000000000105dd0> kernel_thread_starter+0x0/0xc Remove the call to iucv_unregister() and remove the goto label as unregistering is the last step in the hvc_iucv initialization. If iucv_register() fails, simply clean up hvc terminals and free resources. Signed-off-by: Hendrik Brueckner Signed-off-by: Martin Schwidefsky commit a20852d2b7ca3c6e7b232eecf09631b66dde2a46 Author: Heiko Carstens Date: Mon Oct 25 16:10:21 2010 +0200 [S390] cmm: fix crash on case conversion When the cmm module is compiled into the kernel it will crash when writing to the R/O data section. Reason is the lower to upper case conversion of the "sender" module parameter which ignored the fact that the pointer is preinitialized. Introduced with 41b42876 "cmm, smsgiucv_app: convert sender to uppercase" Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit bf2106ae114807772506e62cbf8a7d8e2c5403a1 Author: Joe Perches Date: Mon Oct 25 16:10:20 2010 +0200 [S390] drivers/s390/char: Use static const char arrays Signed-off-by: Joe Perches Signed-off-by: Martin Schwidefsky commit 189b93d00fd6f71b013ad472fd72c0f043b160a9 Author: Heiko Carstens Date: Mon Oct 25 16:10:19 2010 +0200 [S390] switch_to: get rid of prev == next check schedule() makes sure that prev != next before calling switch_to(). Therefore remove the redundant check. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit fdb6d070effba1871f0bb980cf3c3b8738803414 Author: Heiko Carstens Date: Mon Oct 25 16:10:18 2010 +0200 [S390] switch_to: dont restore/save access & fpu regs for kernel threads If the previous task was a kernel thread there is no need to save the contents of the fpu and access registers since they aren't used in kernel mode. For the same reason it is not necessary to restore these registers if the next task is a kernel thread. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit f861e4057263033ad9134bfd6745f91b2165b351 Author: Heiko Carstens Date: Mon Oct 25 16:10:17 2010 +0200 [S390] Add config option for z196 code generation. Add a kernel config option for the IBM zEnterprise 196. This will produce faster code on newer compilers using the -march=z196 option. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 7aca2eda5c2a45884ff0ce0bb1ebfa8f83c1e0f9 Author: Heiko Carstens Date: Mon Oct 25 16:10:16 2010 +0200 [S390] sysinfo: display capacity adjustment indicator Display machine capacity adjustment indicator and capacity change reason if available in /proc/sysinfo. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 8b8c12b120071d1db2212a439ccfebcb0ab0cf2a Author: Martin Schwidefsky Date: Mon Oct 25 16:10:15 2010 +0200 [S390] add z196 instructions to kernel disassembler Add the new instructions introduced with z196 to the kernel disassembler. Signed-off-by: Martin Schwidefsky commit e2b8d7af0e3a9234de06606f9151f28cf847a8d6 Author: Martin Schwidefsky Date: Mon Oct 25 16:10:14 2010 +0200 [S390] add support for nonquiescing sske Improve performance of the sske operation by using the nonquiescing variant if the affected page has no mappings established. On machines with no support for the new sske variant the mask bit will be ignored. Signed-off-by: Martin Schwidefsky commit 92f842eac7ee321c8a0749aba2513541b4ac226f Author: Martin Schwidefsky Date: Mon Oct 25 16:10:13 2010 +0200 [S390] store indication fault optimization Use the store indication bit in the translation exception code on page faults to avoid the protection faults that immediatly follow the page fault if the access has been a write. Signed-off-by: Martin Schwidefsky commit 6931be0803ddae2791f3c646c8e1e0f82ca26013 Author: Heiko Carstens Date: Mon Oct 25 16:10:12 2010 +0200 [S390] cpu hotplug/idle: move cpu_die call to enabled context There is no difference if cpu_die is called from enabled or disabled context. Except that the fast_gup code might be called via cpu_die -> idle_task_exit -> __mm_drop -> crst_table_free. Which in turn grabs and releases a spinlock using the _bh ops, which is not allowed in irq disabled context, since spin_unlock_bh will unconditionally enable interrupts again. To get rid of the warning emitted by the softirq code just move the code to enabled context. In this case this doesn't fix a bug, we just get rid of a warning. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 80217147a3d80c8a4e48f06e2f6e965455f3fe2a Author: Martin Schwidefsky Date: Mon Oct 25 16:10:11 2010 +0200 [S390] lockless get_user_pages_fast() Implement get_user_pages_fast without locking in the fastpath on s390. Signed-off-by: Martin Schwidefsky commit 87799ebab760dd1460f6e4193d4f71ba416d1451 Author: Christof Schmitt Date: Mon Oct 25 16:10:10 2010 +0200 [S390] set ARCH_HAS_SG_CHAIN for s390 Set ARCH_HAS_SG_CHAIN for scatter lists on s390. Without this flag the SCSI code limits the maximum number of segments, so set it to make proper use of the FCP channel hardware. Signed-off-by: Christof Schmitt Signed-off-by: Martin Schwidefsky commit 014859430ba72ffeb363a4acd2200851765fe6de Author: Heiko Carstens Date: Mon Oct 25 16:10:09 2010 +0200 [S390] standardize Kbuild rules Introducing this Kbuild file allow us to: make arch/s390/ And thus building all the core part of s390. Same as on other architectures. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky commit 7ea8d32199a3751527bf06b91c03de92d5ad5b3e Author: Stefan Weinhuber Date: Mon Oct 25 16:10:08 2010 +0200 [S390] dasd: let recovery cqr inherit flags from failed cqr The usual way to recover a failed DASD ECKD request (cqr) is to create a new request with an appropriate recovery CCW program. Certain features, e.g. failfast, can be enabled per request and are stored in the requests flags. These flags have to be copied from the failed to the recovery request, to let the recovery request use the same features as the original one. Signed-off-by: Stefan Weinhuber Signed-off-by: Martin Schwidefsky commit 238ec4efeee4461d5cff2ed3e5a15a3ab850959b Author: Martin Schwidefsky Date: Mon Oct 25 16:10:07 2010 +0200 [S390] zero page cache synonyms If the zero page is mapped to virtual user space addresses that differ only in bit 2^12 or 2^13 we get L1 cache synonyms which can affect performance. Follow the mips model and use multiple zero pages to avoid the synonyms. Signed-off-by: Martin Schwidefsky commit 43948f50276eca010a22726860dfe9a4e8130136 Author: Masami Hiramatsu Date: Mon Oct 25 22:18:01 2010 +0900 kprobes: Remove redundant text_mutex lock in optimize Remove text_mutex locking in optimize_all_kprobes, because this function doesn't modify text. It simply queues probes on optimization list for kprobe_optimizer worker thread. Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: Anil S Keshavamurthy Cc: David S. Miller Cc: Namhyung Kim Cc: Jason Baron Cc: Peter Zijlstra LKML-Reference: <20101025131801.19160.70939.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Ingo Molnar commit 10c6c9c94c3eaadd7f9d6bafccc8709eda0da0f5 Author: David Vrabel Date: Mon Oct 25 14:05:36 2010 +0100 uwb: Orphan the UWB and WUSB subsystems I'm no longer in a position to be the maintainer for the Ultra-Wide Band (UWB) and Ceritified Wireless USB (WUSB) subsystems and no one else has volunteered to take over. Signed-off-by: David Vrabel commit 446396bfab00392010ebc36b9ccf859935b0f17b Author: David Vrabel Date: Mon Oct 25 13:57:32 2010 +0100 uwb: Remove the WLP subsystem and drivers The only Wimedia LLC Protocol (WLP) hardware was an Intel i1480 chip with a beta release of firmware that was never commercially available as a product. This hardware and firmware is no longer available as Intel sold their UWB/WLP IP. I also see little prospect of other WLP capable hardware ever being available. Signed-off-by: David Vrabel commit ff7cbc4b5c6276865a6db594c4b8459ebad457a4 Author: Mike Frysinger Date: Sun Oct 24 18:13:31 2010 +0000 Blackfin: ppi/spi/twi headers: add missing __BFP undef Signed-off-by: Mike Frysinger commit 10cbb0ba4282407ee3c4a09552d80941bfdfeb77 Author: Mike Frysinger Date: Sun Oct 24 18:11:50 2010 +0000 Blackfin: update defconfigs - enable pm for ADI boards - drop security option as no one uses it - enable uninitialized mmap for everyone - disable wireless by default as no one uses it - disable cfq io sched as noop is fine Signed-off-by: Mike Frysinger commit 61c16b5c7414b6d0511dc384e0ea994e250e6339 Author: Mike Frysinger Date: Fri Oct 22 05:11:21 2010 +0000 Blackfin: bfin_twi.h: start a common TWI header Start one place for TWI definitions. Signed-off-by: Mike Frysinger commit 02460d08930656b3a50381cfb119864efcd4eef9 Author: Sonic Zhang Date: Fri Jun 11 10:44:22 2010 +0000 netdev: bfin_mac: push settings to platform resources Move all the pin settings out of the Kconfig and into the platform resources (MII vs RMII). This clean up also lets us push out the phy settings so that board porters may control the layout. Signed-off-by: Sonic Zhang Acked-by: David S. Miller Signed-off-by: Mike Frysinger commit 506ecbca71d07fa327dd986be1682e90885678ee Merge: aa5c14d 0e7adbe Author: Takashi Iwai Date: Mon Oct 25 10:40:05 2010 +0200 Merge branch 'topic/hda' into for-linus commit 0e7adbe263f89ea2ef15b5af5e80a812b2a85025 Author: Takashi Iwai Date: Mon Oct 25 10:37:11 2010 +0200 ALSA: hda - Disable sticky PCM stream assignment for AD codecs The sticky PCM stream assignment introduced in 2.6.36 kernel seems causing problems on AD codecs. At some time later, the streaming no longer works by unknown reason. A simple workaround is to disable sticky-assignment for these codecs. Tested-by: Vasily Khoruzhick Cc: Signed-off-by: Takashi Iwai commit aa5c14d5c0d3e4c587db4a1b220b9c86415c538f Merge: 79fc84c b11bdb5 Author: Takashi Iwai Date: Mon Oct 25 10:00:30 2010 +0200 Merge branch 'topic/asoc' into for-linus Conflicts: arch/powerpc/platforms/85xx/p1022_ds.c commit 79fc84c7e0d2fe89c4e82f3a26fd8b0d13c31703 Merge: f6f94e2 97c44b2 Author: Takashi Iwai Date: Mon Oct 25 09:56:32 2010 +0200 Merge branch 'topic/misc' into for-linus commit d07dc60c6caf94dcf42e53f4db105de970abf4db Author: Kukjin Kim Date: Fri Oct 22 10:49:17 2010 +0900 ARM: S5P: Change VMALLOC_END to use more vmalloc()/ioremap() area This patch changes VMALLOC_END from 0xE0000000 to 0xF6000000, because some systems want to use more vmalloc()/ioremap() area and now don't use from at 0xE0000000 to 0xF6000000 (the start of Samsung SoCs' VA space) Cc: Ben Dooks Signed-off-by: Kukjin Kim commit cd1cc8282d6416e78cd27573ab16133086283caf Author: Kukjin Kim Date: Fri Oct 22 10:35:19 2010 +0900 ARM: S3C: Change VMALLOC_END to use more vmalloc()/ioremap() area This patch changes VMALLOC_END from 0xE0000000 to 0xF6000000, because some systems want to use more vmalloc()/ioremap() area and now don't use from at 0xE0000000 to 0xF6000000 (the start of Samsung SoCs' VA space) Cc: Ben Dooks Signed-off-by: Kukjin Kim commit fb57d84af0fd1c4b323e1509d93db0ffa6ad5240 Author: Kukjin Kim Date: Fri Oct 22 10:16:27 2010 +0900 ARM: SAMSUNG: Move the start address of Samsung SoCs' VA space This patch moves the start address of Samsung SoCs' VA space so that can use more vmalloc()/ioremap() space. Of course need to change the VMALLOC_END for it. Cc: Ben Dooks Signed-off-by: Kukjin Kim commit d8bb31e68f618ad10ea1088a9e9dd426d5e54bfc Author: Jongsun Han Date: Thu Oct 21 15:18:55 2010 +0900 ARM: S5PV310: Add support External Interrupt This patch adds EINT(External Interrupt) support on S5PV310 and S5PC210. All EINTs are transferred to GIC through interrupt combiner. Signed-off-by: Jongsun Han Signed-off-by: Jongpill Lee Signed-off-by: Kukjin Kim commit 40c9bc5c3cf6a6742485f282feed5c7e3839e2d9 Author: Jongsun Han Date: Thu Oct 21 15:59:20 2010 +0900 ARM: S5PV310: Add the definition for external interrupt This patch adds the definition for both IRQs and GPIO registers for external interrupts. Signed-off-by: Jongsun Han Signed-off-by: Kukjin Kim commit 1cf0eb799759b24199374955976fee8469835203 Author: Kyungmin Park Date: Thu Oct 21 15:22:36 2010 +0900 ARM: S5PV310: Add L2 cache init function in cpu.c This patch adds L2 cache initialization code in cpu.c of ARCH_S5PV310. It includes TAG and Data latency, Prefetch, and Power configurations. Signed-off-by: Kyungmin Park Signed-off-by: Changhwan Youn Signed-off-by: Kukjin Kim commit 57c1f8713605489b3d4914f68a96564858d7c91d Author: Kyungmin Park Date: Thu Oct 21 16:28:20 2010 +0900 ARM: S5PV310: Remove L2 cache init in machine Basically, need L2 cache initialize function in ARCH_S5PV310. So it would be better to move it into ARCH_S5PV310 common part. This patch removes L2 cache initialization code at the each board file. Signed-off-by: Kyungmin Park Signed-off-by: Changhwan Youn Signed-off-by: Kukjin Kim commit 63612a1f916d2f1b51bed68cd6d90245371430f1 Author: Kyungmin Park Date: Thu Oct 21 15:21:02 2010 +0900 ARM: Add L2X0 PREFETCH and POWER control register This patch adds L2X0 Prefetch and Power control register. Signed-off-by: Kyungmin Park Acked-by: Catalin Marinas Signed-off-by: Kukjin Kim commit 6c69abb27f1a7e2c15a678fb9e7ab55293c8f820 Author: Seungwhan Youn Date: Tue Oct 19 18:44:16 2010 +0900 ARM: SAMSUNG: Move DMA clock enable into S3C PL330 driver This patch moves DMA clock enable functionality into pl330_probe() of plat-samsung/s3c_pl330.c (PL330 DMAC driver) and disable functionality into pl330_remove(). For now according to clock policy of Samsung SoCs' mainline, clocks which are used in the driver should be controlled by each own. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar [kgene.kim@samsung.com: minor title and comment edit] Signed-off-by: Kukjin Kim commit 9d59c17ab5e0d1891f10df951d8e5fc0c83cb966 Author: Seungwhan Youn Date: Tue Oct 19 18:42:34 2010 +0900 ARM: S5P: Reorder DMA platform device id This patch is matched-up DMA platform device id to its clock id. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Signed-off-by: Kukjin Kim commit b05d85350cce3f7da40cefd29305571f6230fbf7 Author: Seungwhan Youn Date: Tue Oct 19 18:13:11 2010 +0900 ARM: S5P64X0: Set DMA clock disable as default This patch modify to DMA operation clock into disable list for default clock setting. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Signed-off-by: Kukjin Kim commit 313068fd3c23f5a6126e8dc8add84c018473e5ce Author: Seungwhan Youn Date: Tue Oct 19 18:10:53 2010 +0900 ARM: S5PV210: Add DMA operation clock This patch adds DMA operation clock which is disabled as default. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Signed-off-by: Kukjin Kim commit 06185c07621263ee1665d4a4e27a9782a677bcf9 Author: Seungwhan Youn Date: Tue Oct 19 18:08:08 2010 +0900 ARM: S5P6442: Add DMA operation clock This patch adds DMA operation clock which is disabled as default. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Signed-off-by: Kukjin Kim commit 8e0e9e295814d3d514bdfdef72ca271ebe862433 Merge: 7684f78 fe894f9 Author: Kukjin Kim Date: Mon Oct 25 16:10:16 2010 +0900 Merge branch 'next-s3c64xx' into for-next commit 7684f784b08f0b1568567ff5f23cf0f5dff86be5 Merge: 05daf07 6436b6a Author: Kukjin Kim Date: Mon Oct 25 16:08:29 2010 +0900 Merge branch 'next-s3c24xx' into for-next commit 05daf079259c7e5393f204503284ee90072cb348 Author: Jassi Brar Date: Wed Oct 20 16:37:28 2010 +0900 ARM: S5PC100: Fix Audio, Keypad and ADC clock sources Audio, Keypad and ADC inherit PCLKD1 clock source. Signed-off-by: Jassi Brar [kgene.kim@samsung.com: minor title fix] Signed-off-by: Kukjin Kim commit 8084979800972c6e374635e6d6bacd35a55b9e4e Author: Chanwoo Choi Date: Thu Oct 14 17:25:57 2010 +0900 ARM: S5PV210: Add voltage consumer of WM8994 to the regulator framework This patch add cose related to regulator. To control powre consumeption have registered the voltage consumer of WM8994 to the regulator framework. Additionally, I explain the constraints of the regulator of WM8994 codec. All these consumer supply of WM8994 codec connected the regulator(VCC_1.8V) on a circuit diagram. "VCC_1.8V" regulator is always enabled, because it is used to many devices on Goni/Aquila board. This is required especially when there are many devices physically attached to "VCC_1.8V" and some of they did not "register" as consumers to "VCC_1.8V". "VCC_1.8V" might be turned off by those who are registered while "unregistered" are still active Signed-off-by: Chanwoo Choi Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Signed-off-by: Kukjin Kim commit 6c29e71c61d8d35060594d89f33c13e0da469d7c Author: Chanwoo Choi Date: Thu Oct 14 16:00:42 2010 +0900 ARM: S5PV210: Add init code of audio to Goni and Auqila board This patch add initialization code of audio and I2S platform drivers to Goni and Aquila board. Signed-off-by: Chanwoo Choi Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Reviewed-by: Mark Brown Signed-off-by: Kukjin Kim commit 5112267e3f9af59e1439707cfe347cc8111d407a Author: Chanwoo Choi Date: Thu Oct 14 15:02:44 2010 +0900 ARM: S5PV210: Add i2c information to Goni and Aquila board This patch the I2C board information for the WM8994 used in the Goni/Aquila as audio codec and adds the I2C platform drivers. Signed-off-by: Chanwoo Choi Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Signed-off-by: Kukjin Kim commit d2e7eca36dde5ee8979362bed5b27e47b37e94a0 Author: Jongpill Lee Date: Thu Oct 14 15:52:16 2010 +0900 ARM: S5PV310: Add support GPIOlib This patch adds GPIOlib support for S5PV310 and S5PC210. Signed-off-by: Jongpill Lee Signed-off-by: Sangbeom Kim [kgene.kim@samsung.com: Fix NR_IRQS] Signed-off-by: Kukjin Kim commit 37ea63b14bec667957ca3cfaa899c6e103fdb854 Author: Jongpill Lee Date: Thu Oct 14 15:46:18 2010 +0900 ARM: S5P: Add initial map for GPIO2 and GPIO3 This patch adds initial map for GPIO2 and GPIO3. S5PV310/S5PC210 has separated GPIO1, GPIO2 and GPIO3. Signed-off-by: Jongpill Lee Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit 3e7d5e5a4aa7960e977a0434c1203eaff2ac44a4 Author: Jongpill Lee Date: Thu Oct 14 10:51:10 2010 +0900 ARM: S5PV310: Update MAX_COMBINER_NR This patch updates MAX_COMBINER_NR from 39 to 40 because S5PV310 need 39th combiner for including EINT16_31. Signed-off-by: Jongpill Lee Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit 9616674a3597c2ddc4dbeb620eed63ff06b078f4 Author: Seungwhan Youn Date: Thu Oct 14 10:39:33 2010 +0900 ARM: S5P: Add EPLL rate change warning This patch adds warning about changing EPLL rate to notice that other driver that controls H/W, which is using EPLL, will has unknown effects by this EPLL rate change. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Signed-off-by: Kukjin Kim commit c9fa7a08ccb40def56beb9986839b808646f579c Author: Seungwhan Youn Date: Thu Oct 14 10:39:28 2010 +0900 ARM: S5PV210: Add EPLL clock operations This patch adds EPLL specific clock get_rate/set_rate operations on S5PV210. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Signed-off-by: Kukjin Kim commit 42a6e20e4fd4755e6b4539891a4f20905af18dcd Author: Seungwhan Youn Date: Thu Oct 14 10:39:15 2010 +0900 ARM: S5PV210: Fix wrong EPLL rate getting on setup clocks This patch fix wrong EPLL getting on setup clocks on S5PV210. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Signed-off-by: Kukjin Kim commit d4b34c6c849d67b7afaa90d55dc7fab981c72950 Author: Seungwhan Youn Date: Thu Oct 14 10:39:08 2010 +0900 ARM: S5P: Reduce duplicated EPLL control codes S5P Samsung SoCs has a EPLL to support various PLL clock sources for other H/W blocks. Until now, to control EPLL, each of SoCs make their own functions in 'mach-s5pxxx/clock.c'. But some of functions, 'xxx_epll_get_rate()' and 'xxx_epll_enable()', are exactly same in all S5P SoCs, so this patch move these duplicated codes to common EPLL functions that use platform wide. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Signed-off-by: Kukjin Kim commit 900fa0196c564895bfa2eb412d2a83421d3f3444 Author: Seungwhan Youn Date: Thu Oct 14 10:35:24 2010 +0900 ARM: S5PV210: Add audio clocks as sysclk This patch adds audio clocks(SCLK_AUDIO{0,1,2} and SCLK_AUDIO) to be initial as a sysclk on boot-time. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Acked-by: Mark Brown Signed-off-by: Kukjin Kim commit aa21ae3d87ce355f68c0b1cbc7a45ee03d423232 Author: Seungwhan Youn Date: Thu Oct 14 10:35:24 2010 +0900 ARM: S5PV210: Add SCLK_SPDIF clock This patch add SCLK_SPDIF clock to support source clock of S/PDIF on S5PV210. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Acked-by: Mark Brown Signed-off-by: Kukjin Kim commit 494edadd6290f6e5d36985e9d04a84ec92d2cea1 Author: Seungwhan Youn Date: Thu Oct 14 10:35:24 2010 +0900 ARM: S5PV210: Add S/PDIF platform device This patch add S/PDIF platform device to support S/PDIF PCM audio on S5PV210. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Acked-by: Mark Brown Signed-off-by: Kukjin Kim commit 04a4fd0ae2c58943a7435de879b9714c96a1e96a Author: Seungwhan Youn Date: Thu Oct 14 10:35:23 2010 +0900 ARM: S5PC100: Add SCLK_SPDIF clock This patch add SCLK_SPDIF clock to support source clock of S/PDIF on S5PC100. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Acked-by: Mark Brown Signed-off-by: Kukjin Kim commit 4cfd9c2530822860d745154e4e64a1c241a0a674 Author: Seungwhan Youn Date: Thu Oct 14 10:35:23 2010 +0900 ARM: S5PC100: Modify SCLK_AUDIO{0,1,2} clock as sysclks This patch modify SCLK_AUDIO{0,1,2} to be initial as sysclks on boot-time. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Acked-by: Mark Brown Signed-off-by: Kukjin Kim commit 068b432d74e4d3d17ee0c292337e7194bba655c0 Author: Seungwhan Youn Date: Thu Oct 14 10:35:23 2010 +0900 ARM: S5PC100: Add S/PDIF platform device This patch add S/PDIF platform device to support S/PDIF PCM audio on S5PC100. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Acked-by: Mark Brown Signed-off-by: Kukjin Kim commit 6b2cff96063f36b83b87d47fbcbff4140940f0c8 Author: Mark Brown Date: Wed Oct 13 18:23:42 2010 +0900 ARM: S3C64XX: Ensure s3c64xx_ide_setup_gpio() is prototyped Since it's exported we should make sure we're using the prototype others see. Signed-off-by: Mark Brown Signed-off-by: Kukjin Kim commit 821c3a35cbf5fcb5e0b657d70fa7e7765090baa0 Author: Mark Brown Date: Wed Oct 13 18:23:39 2010 +0900 ARM: S3C64XX: Ensure samsung_keypad_cfg_gpio() is prototyped Since it's exported we should make sure we're using the prototype others see. Signed-off-by: Mark Brown Signed-off-by: Kukjin Kim commit d8144aea5e2b8d31f684abbc59af47e6656d68ae Author: Jaecheol Lee Date: Tue Oct 12 09:23:19 2010 +0900 ARM: S5PV210: Update Kconfig and Makefile for supporting CPUFREQ driver This patch adds ARCH_HAS_CPUFREQ in arch/arm/Kconfig for S5PV210, and updates mach-s5pv210/Makefile for supporting build CPUFREQ driver. Signed-off-by: Jaecheol Lee Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit 83efc7432f881d4f4bcedd6800710c2c4c24c58d Author: Jaecheol Lee Date: Tue Oct 12 09:19:38 2010 +0900 ARM: S5PV210: Add support CPUFREQ This patch adds CPUFREQ driver for supporting DFS(Dynamic Frequency Scaling). Signed-off-by: Jaecheol Lee Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit 3c5992160d42854bad4da215dda17a158dc94852 Author: Jaecheol Lee Date: Tue Oct 12 09:19:34 2010 +0900 ARM: S5PV210: Add Register definition for CMU This patch adds some CMU(Clock Management Unit) registers for supporting CPUFREQ and some drivers. Signed-off-by: Jaecheol Lee Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit 08f49d118e855f4d660ff29ecd2a4e736f26f9db Author: Jaecheol Lee Date: Tue Oct 12 09:19:30 2010 +0900 ARM: S5PV210: Add MOUT_DMC0 and SCLK_DMC0 clocks This patch adds MOUT_DMC0 and SCLK_DMC0 for checking the dmc0 clock in CPUFREQ driver. Signed-off-by: Jaecheol Lee Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit 88695843973d3d53a087fc03049668600e91b5c4 Author: Jaecheol Lee Date: Tue Oct 12 09:19:26 2010 +0900 ARM: S5PV210: Add struct clk_ops for clk_fout_apll Current fout_apll has fixed rate value. So CPUFREQ driver gets incorrect value when finding current CPU frequency. Because some operation level need to change APLL. Added get_rate function for fout_apll can give correct frequency value when calling get_rate function. Signed-off-by: Jaecheol Lee Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit b7a9825553e9213e5129f7e8e53065e918981a70 Author: Kyungmin Park Date: Tue Oct 12 07:49:24 2010 +0900 ARM: S5PV310: Add I2C channel 3, 4, 5, 6, and 7 device support S5PV310 and S5PC210 support more I2C devices than previous SoCs. Add the device support code for them. Signed-off-by: Kyungmin Park Signed-off-by: Marek Szyprowski Signed-off-by: Kukjin Kim commit 8a3710dfbfb9f2712e3df3861ee7d0e8573be943 Author: Kyungmin Park Date: Tue Oct 12 07:49:20 2010 +0900 ARM: S5PV310: Define address & interrupt for all I2C blocks S5PV310 and S5PC210 support total 8 (+ 1 dedicated for HDMI) I2C devices. Signed-off-by: Kyungmin Park Signed-off-by: Marek Szyprowski Signed-off-by: Kukjin Kim commit 023c75c7c8fba0f603faf4458d955f61d213f0c7 Author: Kyungmin Park Date: Tue Oct 12 07:49:18 2010 +0900 ARM: S5PV210: Fix wrong interrupt I2C2 and I2C3 number The name of the I2C2 and I2C3 interrupt should be IIC2 and IIC3 instead of CAN0 and CAN1. Signed-off-by: Kyungmin Park Signed-off-by: Marek Szyprowski Signed-off-by: Kukjin Kim commit 716d535f3fb7c4f660e0c647cfabcdf4312c4d90 Author: Kukjin Kim Date: Mon Oct 11 15:55:29 2010 +0900 ARM: S5PC100: Change I2C2 and I2C3 IRQ names This patch changes I2C2 and I2C3 interrupt name from IRQ_CANX to IRQ_IICX according other SoCs' I2C interrupt naming rule. Signed-off-by: Kukjin Kim commit dd56d2df56485553f4777f68e0ead87fbb02f706 Author: Kukjin Kim Date: Tue Oct 5 10:49:38 2010 +0900 ARM: S5P: Cleanup the S5P SoCs' VA address mapping Basically S5P SoCs use the Samsung common VA address mapping where plat-samsung and use plat-s5p's mapping also. The later is a little mess. So this patch cleans it up. Cc: Ben Dooks Signed-off-by: Kukjin Kim commit 3b7998f529a18696baafb8cca63a7720565ad77f Author: Kyungmin Park Date: Fri Oct 8 22:34:56 2010 +0900 ARM: S5PV310: I2C0/1 devices support on Universal board Camera devices use the I2C0 and Gyro uese the I2C1 on universal board. Signed-off-by: Kyungmin Park [kgene.kim@samsung.com: minor title fixes] Signed-off-by: Kukjin Kim commit acf5eda92da23c904d1e37ba80c75572f3e2c860 Author: Kyungmin Park Date: Fri Oct 8 22:34:52 2010 +0900 ARM: S5PV310: Universal OneNAND support OneNAND device support for Universal board. Signed-off-by: Kyungmin Park [kgene.kim@samsung.com: minor title fixes] Signed-off-by: Kukjin Kim commit 28c80aa707156d83f679442ea745db301316a4ea Author: Jeongbae Seo Date: Fri Oct 8 18:03:27 2010 +0900 ARM: SAMSUNG: Add clock types into platform data This patch adds clock types into platform data to support external clock divider instead of internal clock divider. It is defined that what kinds of clock type is used in machine. Signed-off-by: Jeongbae Seo Signed-off-by: Kukjin Kim commit 40fcd5b9bf27a8ea78df434a92f3d87533a13fc4 Author: Hyuk Lee Date: Fri Oct 8 18:03:23 2010 +0900 ARM: SAMSUNG: Modified to change of bus width and host caps This patch adds to change bus width and host capability of HSMMC, when HSMMC is only configured with another value of bus width and host capability from default one. Signed-off-by: Hyuk Lee Signed-off-by: Jeongbae Seo Signed-off-by: Kukjin Kim commit 2b11148a80bf1a022e8165ae0026bf6ff5778f03 Author: Hyuk Lee Date: Wed Oct 6 14:50:20 2010 +0900 ARM: S5PV310: Add support HSMMC on SMDKV310 and SMDKC210 This patch adds support HSMMC for S5PV310(SMDKV310) and S5PC210(SMDKC210). Signed-off-by: Hyuk Lee Signed-off-by: Jeongbae Seo Signed-off-by: Kukjin Kim commit 1036c3ab6045ccf21b23427081c7b5d4149142dd Author: Hyuk Lee Date: Tue Oct 5 19:07:41 2010 +0900 ARM: S5PV310: Add HSMMC platform data This patch adds initialization HSMMC device information. And HSMMC platform data like card detect, data bus width and capability is configured. Signed-off-by: Hyuk Lee Signed-off-by: Jeongbae Seo Signed-off-by: Kukjin Kim commit 193151142b736f25882f250b6db3b02efd2d3cab Author: Hyuk Lee Date: Wed Oct 6 11:09:42 2010 +0900 ARM: S5PV310: Add support HSMMC and SDHCI configuration This patch adds support HSMMC for S5PV310 and S5PC210 and setup for HSMMC host controller and also related GPIO. At most 4 channel can be used at the same time. A user can configure SDHCI data bus as 8bit or 4bit. Signed-off-by: Hyuk Lee Signed-off-by: Jeongbae Seo Signed-off-by: Kukjin Kim commit 2ad530d2e76f24cb8c13f88067cb57473a0af202 Author: Kukjin Kim Date: Fri Oct 1 21:32:52 2010 +0900 ARM: S5PC100: Cleanup the GPIOlib code This patch clean up the GPIO code and removes useless GPIO addresses. It can be calculated with offset, the 'base' member of s3c_gpio_chip is also initialized in the init function. Signed-off-by: Kukjin Kim commit 4d9374f39e40f7c7fc15acbfe01dceeee850509f Merge: dc6c0ca dff2126 Author: Kukjin Kim Date: Mon Oct 25 15:57:16 2010 +0900 Merge branch 'next-gpio-update' into for-next commit dc6c0ca39daad44f3169656296ef81d39a6dc7f5 Author: Kukjin Kim Date: Thu Oct 14 15:35:07 2010 +0900 ARM: S5P: Fix missed IRQ_EINT_BIT() When merged patches, missed IRQ_EINT_BIT() definition from commit ea31fd43 (ARM: S5PV210: Add Power Management Support). The IRQ_EINT_BIT() is used in the Power Management operation (plat-samsung/pm.c). Signed-off-by: Kukjin Kim commit 2c78ffeca98fcd5a1dfd4a322438944506ed5e64 Author: Ingo Molnar Date: Mon Oct 25 08:41:09 2010 +0200 x86/oprofile: Fix uninitialized variable use in debug printk Stephen Rothwell reported this build warning: arch/x86/oprofile/op_model_amd.c: In function 'ibs_eilvt_valid': arch/x86/oprofile/op_model_amd.c:289: warning: 'offset' may be used uninitialized in this function And correctly observed that indeed the variable is used uninitialized in this function. The result of this bug can be a debug printk with a bogus value. Also fix a few more small details that made this function hard to read and which probably contributed to the bug being introduced to begin with: - Use more symmetric error conditions - Remove the !0 obfuscation - Add newlines to the printk output - Remove bogus linebreaks in printk strings and elsewhere Reported-by: Stephen Rothwell Cc: Robert Richter Cc: Linus Torvalds LKML-Reference: <20101025115736.41d51abe.sfr@canb.auug.org.au> Signed-off-by: Ingo Molnar commit 4895ae6f9f81011bf3a6fea70d46bab08d58fd8c Merge: 8c654bb 7a18e96 Author: Len Brown Date: Mon Oct 25 02:14:50 2010 -0400 Merge branch 'ec-param' into release commit 8c654bb80801aeafba071396602c777758604980 Merge: b10b977 c1f3f28 Author: Len Brown Date: Mon Oct 25 02:13:48 2010 -0400 Merge branch 'pnp-log' into release commit b10b977b792bb28c03267e00562c8254dca50f36 Merge: 22156ea 420a0f6 Author: Len Brown Date: Mon Oct 25 02:13:44 2010 -0400 Merge branch 'pnpacpi-invalid-device-id' into release commit 22156ea7bb631ac4d74b706f4875d41b2520dc26 Merge: d3b683d 3e384ee Author: Len Brown Date: Mon Oct 25 02:13:37 2010 -0400 Merge branch 'power-refcount' into release commit d3b683d3b0e260938b9ed568f76a00991d5c692b Merge: 6e04c41 eaeca2e Author: Len Brown Date: Mon Oct 25 02:13:21 2010 -0400 Merge branch 'cleanup' into release commit 6e04c417aed5b0a5bd6ae80928bbd759fa1faabc Merge: 8803080 a210080 Author: Len Brown Date: Mon Oct 25 02:13:09 2010 -0400 Merge branch 'gpe-defer' into release commit 880308089d0abebac365c3a1378b4e3238b100ac Merge: e000f8f a1b4bd6 Author: Len Brown Date: Mon Oct 25 02:12:57 2010 -0400 Merge branch 'battery' into release commit e000f8f72908e2ae924ec3900f2c0e18e76d26da Merge: 38add9b 761afb8 Author: Len Brown Date: Mon Oct 25 02:12:46 2010 -0400 Merge branch 'acpi_pm_device_sleep_state' into release commit 38add9b4baec61655228d86b8d0caa62f15fd857 Merge: f3ab69a dab5fff 557d586 620e112 Author: Len Brown Date: Mon Oct 25 02:12:27 2010 -0400 Merge branches 'bugzilla-15807', 'bugzilla-15979-v2' and 'bugzilla-19162' into release commit f3ab69a321d08ce123dce8166eabe7fddd94b949 Merge: aca209e 03e7c34 Author: Len Brown Date: Mon Oct 25 02:11:49 2010 -0400 Merge branch 'procfs-cleanup-v2' into release commit aca209e5e654951a3a90f5aaa8e04e0c470993b4 Merge: f6f94e2 8df3fc9 Author: Len Brown Date: Mon Oct 25 02:10:36 2010 -0400 Merge branch 'acpica' into release Conflicts: drivers/acpi/acpica/aclocal.h Signed-off-by: Len Brown commit e341b2ddc1e8e5ff998ac5462dc5138775d1d492 Author: Stephen Rothwell Date: Sun Oct 24 22:26:41 2010 -0700 l2tp: static functions should not be exported Causes these build failures on PowerPC: net/l2tp/l2tp_core.c:1228: error: __ksymtab_l2tp_tunnel_closeall causes a section type conflict net/l2tp/l2tp_core.c:1228: error: __ksymtab_l2tp_tunnel_closeall causes a section type conflict net/l2tp/l2tp_core.c:1006: error: __ksymtab_l2tp_xmit_core causes a section type conflict net/l2tp/l2tp_core.c:1006: error: __ksymtab_l2tp_xmit_core causes a section type conflict net/l2tp/l2tp_core.c:847: error: __ksymtab_l2tp_udp_recv_core causes a section type conflict net/l2tp/l2tp_core.c:847: error: __ksymtab_l2tp_udp_recv_core causes a section type conflict Signed-off-by: Stephen Rothwell Signed-off-by: David S. Miller commit 19081f31ce941a22bfc681d18ae2d31e31084df5 Author: David Dillow Date: Mon Oct 18 08:54:49 2010 -0400 IB/srp: Sync buffer before posting send srp_send_tsk_mgmt() was missing the proper DMA sync calls before posting the buffer to the device. Signed-off-by: David Dillow Signed-off-by: Roland Dreier commit 21c1a90769e680e7c1f49bae4c5804cf0c7bc814 Author: Bart Van Assche Date: Mon Aug 30 19:27:40 2010 +0000 IB/srp: Use list_first_entry() Use the list_first_entry() macro in ib_srp instead of open-coding the equivalent, which makes the source code slightly more descriptive. The list_first_entry() macro itself was introduced in kernel 2.6.22. Signed-off-by: Bart Van Assche Signed-off-by: David Dillow Signed-off-by: Roland Dreier commit 7ade400aba9a675b610074d6609658661db07eeb Author: Bart Van Assche Date: Mon Aug 30 19:27:36 2010 +0000 IB/srp: Reduce number of BUSY conditions As proposed by the SRP (draft) standard, ib_srp reserves one ring element for SRP_TSK_MGMT requests. This patch makes sure that the SCSI mid-layer never tries to queue more than (SRP request limit) - 1 SCSI commands to ib_srp. This improves performance for targets whose request limit is less than or equal to SRP_NORMAL_REQ_SQ_SIZE by reducing the number of BUSY responses reported by ib_srp to the SCSI mid-layer. Signed-off-by: Bart Van Assche Signed-off-by: David Dillow Signed-off-by: Roland Dreier commit 05a1d7504f836ee67e27f2488cb5b8126b51dbd4 Author: David Dillow Date: Fri Oct 8 14:48:14 2010 -0400 IB/srp: Eliminate two forward declarations Signed-off-by: David Dillow Signed-off-by: Roland Dreier commit 49327ad2bbbaf1945d5ba431522201574219d150 Merge: f9ce6eb 6521d0b Author: Dmitry Torokhov Date: Sun Oct 24 22:11:17 2010 -0700 Merge branch 'next' into for-linus commit 6521d0bf984ab1cc25795d312e21c438aea8b5d5 Author: Ping Cheng Date: Sun Oct 24 21:53:40 2010 -0700 Input: wacom - specify Cinitq supported tools Cintiq, being a display tablet, doesn't have mouse and associated BTN_s. Make sure we do not specify them when registering Cintiq's input device so that userland can retrieve the exact tool set the device supports. Signed-off-by: Ping Cheng Signed-off-by: Dmitry Torokhov commit c5fb514d2f0496ce58caed63bceb05fac40324b3 Author: Nicolas Kaiser Date: Sun Oct 24 21:48:11 2010 -0700 Input: ab8500-ponkey - fix IRQ freeing in error path Looks like an obvious typo to me. Signed-off-by: Nicolas Kaiser Signed-off-by: Dmitry Torokhov commit 4a3cba5e72a5232842ff7c1ca691ec3450af64b9 Author: Myron Stowe Date: Thu Oct 21 14:24:14 2010 -0600 ACPI: Page based coalescing of I/O remappings optimization This patch optimizes ACPI MMIO remappings by keeping track of the remappings on a PAGE_SIZE granularity. When an ioremap() occurs, the underlying infrastructure works on a 'page' based granularity. As such, an ioremap() request for 1 byte for example, will end up mapping in an entire (PAGE_SIZE) page. Huang Ying took advantage of this in commit 15651291a2f8c11e7e6a42d8bfde7a213ff13262 by checking if subsequent ioremap() requests reside within any of the list's existing remappings still in place, and if so, incrementing a reference count on the existing mapping as opposed to performing another ioremap(). Signed-off-by: Myron Stowe Signed-off-by: Len Brown commit 78cdb3ed4053798c894899b15d2255fb880edad4 Author: Myron Stowe Date: Thu Oct 21 14:24:09 2010 -0600 ACPI: Convert simple locking to RCU based locking Convert the simple locking introduced earlier for the ACPI MMIO remappings list to an RCU based locking scheme. Signed-off-by: Myron Stowe Signed-off-by: Len Brown commit d362edaf5386acedad4319a6721bb1540b74dcf7 Author: Myron Stowe Date: Thu Oct 21 14:24:04 2010 -0600 ACPI: Pre-map 'system event' related register blocks During ACPI initialization, pre-map fixed hardware registers that are accessed during ACPI's 'system event' related IRQ handing. ACPI's 'system event' handing accesses specific fixed hardware registers; namely PM1a event, PM1b event, GPE0, and GPE1 register blocks which are declared within the FADT. If these registers are backed by MMIO, as opposed to I/O port space, accessing them within interrupt context will cause a panic as acpi_os_read_memory() depends on ioremap() in such cases - BZ 18012. By utilizing the functionality provided in the previous two patches - ACPI: Maintain a list of ACPI memory mapped I/O remappings, and, ACPI: Add interfaces for ioremapping/iounmapping ACPI registers - accesses to ACPI MMIO areas will now be safe from within interrupt contexts (IRQ and/or NMI) provided the area was pre-mapped. This solves BZ 18012. ACPI "System Event" reference(s): ACPI Specification, Revision 4.0, Section 3 "ACPI Overview", 3.8 "System Events", 5.6 "ACPI Event Programming Model". Reference: https://bugzilla.kernel.org/show_bug.cgi?id=18012 Reported-by: Signed-off-by: Myron Stowe Signed-off-by: Len Brown commit 29718521237a1b1607ea05b49243100ea2044337 Author: Myron Stowe Date: Thu Oct 21 14:23:59 2010 -0600 ACPI: Add interfaces for ioremapping/iounmapping ACPI registers Add remapping and unmapping interfaces for ACPI registers that are backed by memory mapped I/O (MMIO). These interfaces, along with the MMIO remapping list, enable accesses of such registers from within interrupt context. ACPI Generic Address Structure (GAS) reference (ACPI's fixed/generic hardware registers use the GAS format): ACPI Specification, Revision 4.0, Section 5.2.3.1, "Generic Address Structure". Signed-off-by: Myron Stowe Signed-off-by: Len Brown commit 620242ae8c3d9c0b1a77451744fb2d855d1e7342 Author: Myron Stowe Date: Thu Oct 21 14:23:53 2010 -0600 ACPI: Maintain a list of ACPI memory mapped I/O remappings For memory mapped I/O (MMIO) remappings, add a list to maintain the remappings and augment the corresponding mapping and unmapping interface routines (acpi_os_map_memory() and acpi_os_unmap_memory()) to dynamically add to, and delete from, the list. The current ACPI I/O accessing methods - acpi_read() and acpi_write() - end up calling ioremap() when accessing MMIO. This prevents use of these methods within interrupt context (IRQ and/or NMI), since ioremap() may block to allocate memory. Maintaining a list of MMIO remappings enables accesses to such areas from within interrupt context provided they have been pre-mapped. Signed-off-by: Myron Stowe Signed-off-by: Len Brown commit b3ba1efec2a58f4dc0647f4c0099c27d6ab92595 Author: Myron Stowe Date: Thu Oct 21 14:23:48 2010 -0600 ACPI: Fix ioremap size for MMIO reads and writes The size used for I/O remapping MMIO read and write accesses has not accounted for the basis of ACPI's Generic Address Structure (GAS) 'Register Bit Width' field which is bits, not bytes. This patch adjusts the ioremap() 'size' argument accordingly. ACPI "Generic Register" reference: ACPI Specification, Revision 4.0, Section 5.2.3.1, "Generic Address Structure". Signed-off-by: Myron Stowe Signed-off-by: Len Brown commit 1a0b1eac5012326e52d1dcf78695ac08f41c37d7 Author: Guennadi Liakhovetski Date: Wed Oct 20 15:15:49 2010 +0200 ARM: arch-shmobile: Add IMX074 camera sensor data to the AP4EVB platform Add platform data, necessary to use Sony IMX074 camera sensor with AP4EVB. Note: this does not work reliably without an API to reserve contiguous and coherent memory for V4L DMA buffers. Such memory reservation has to be added as soon as a suitable API becomes available. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 88c759a2c82d0c98f6a59165b409112effad75bd Author: TAKEI Mitsuharu Date: Wed Oct 20 11:53:17 2010 +0900 ARM: mach-shmobile: ap4evb: modify LCDC1 irq number Signed-off-by: TAKEI Mitsuharu Signed-off-by: Kuninori Morimoto Cc: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 8df399018df120d28f89fda6f2515cc6e096e43d Author: Nobuhiro Iwamatsu Date: Sat Oct 23 07:07:00 2010 +0900 sh: i2c-sh7760: Replase from ctrl_* to __raw_* ctrl_* is deprecated. We should to use __raw_*. Signed-off-by: Nobuhiro Iwamatsu Signed-off-by: Paul Mundt commit f868fc355ad852b476950c2fe4f5bae7480e8f04 Author: Linus Walleij Date: Thu Sep 23 09:04:11 2010 +0200 i2c-nomadik: fixup bus delays We were missing a transfer delay in one execution path leading to hangs and the bus timeout was too low leading to errors under stress tests. Acked-by: Srinidhi Kasagar Signed-off-by: Sundar R Iyer Signed-off-by: Linus Walleij Signed-off-by: Ben Dooks commit 5680bc6ec71f303956f5aa999a3c13e13466c561 Author: Linus Walleij Date: Thu Sep 23 09:04:03 2010 +0200 i2c-nomadik: support smbus emulation We can do smbus emulation so flag this and drop the duplicate flags implied from smbus emulation. Acked-by: Srinidhi Kasagar Signed-off-by: Sundar R Iyer Signed-off-by: Linus Walleij Signed-off-by: Ben Dooks commit 8ef4f4e4afd55b6015d5b283172d240e22c91854 Author: Linus Walleij Date: Thu Sep 23 09:03:55 2010 +0200 i2c-nomadik: dynamic clocking This makes sure the Nomadik I2C bus driver silicon is only clocked when really needed, saving some microamps here and there when there is no I2C traffic. Acked-by: Srinidhi Kasagar Signed-off-by: Sundar R Iyer Signed-off-by: Linus Walleij Signed-off-by: Ben Dooks commit 1804edd15c66a7af11f9e6194b4c783b37c5fe98 Author: Linus Walleij Date: Thu Sep 23 09:03:40 2010 +0200 i2c-nomadik: documentation fixes This fixes some kerneldoc and assorted documenatation in the Nomadik I2C driver without semantic impact. Acked-by: Srinidhi Kasagar Signed-off-by: Sundar R Iyer Signed-off-by: Linus Walleij Signed-off-by: Ben Dooks commit 536ac998f6076a0ae423b1046b85d7690e8b7107 Author: Zhangfei Gao Date: Mon Sep 20 10:51:28 2010 -0400 mmc: add new sdhci-pxa driver for Marvell SoCs Support Marvell PXA168/PXA910/MMP2 SD Host Controller. Signed-off-by: Zhangfei Gao Acked-by: Haojian Zhuang Signed-off-by: Chris Ball commit 5e71b7a64cb4c6cff75ca42b535d8227526ec592 Author: Olof Johansson Date: Fri Sep 17 21:19:57 2010 -0400 mmc: make number of mmcblk minors configurable The old limit of number of minor numbers per mmcblk device was hardcoded at 8. This isn't enough for some of the more elaborate partitioning schemes, for example those used by Chrome OS. Since there might be a bunch of systems out there with static /dev contents that relies on the old numbering scheme, let's make it a build-time option with the default set to the previous 8. Also provide a boot/modprobe-time parameter to override the config default: mmcblk.perdev_minors. Signed-off-by: Olof Johansson Cc: Mandeep Baines Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit a663bdd8c5d18d287f7468470816c9e0e66343c1 Author: J. Bruce Fields Date: Thu Oct 21 17:17:31 2010 -0400 nfsd4: fix connection allocation in sequence() We're doing an allocation under a spinlock, and ignoring the possibility of allocation failure. A better fix wouldn't require an unnecessary allocation in the common case, but we'll leave that for later. Signed-off-by: J. Bruce Fields commit 1cd844fe43cb6464b34dea504930c1a15e4ad38d Author: Joe Perches Date: Wed Oct 20 10:39:22 2010 -0700 mtd: phram: use KBUILD_MODNAME Use the more standard #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt No change in output strings. Signed-off-by: Joe Perches Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 2316d3bc95ff65b7c0c40c70db83455912cf0328 Author: Kyungmin Park Date: Wed Oct 20 17:31:02 2010 +0900 mtd: OneNAND: S5PC110: Fix double call suspend & resume function The suspend & resume called from mtd core. So no need to call at driver. Signed-off-by: Kyungmin Park Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit cdcf12b211d45bd68acae9d8189275d29d500d12 Author: Jon Povey Date: Thu Sep 30 20:41:34 2010 +0900 mtd: nand: fix MTD_MODE_RAW writes RAW writes were broken by 782ce79a45b3b850b108896fcf7da26754061c8f which introduced a check of ops->ooboffs in nand_do_write_ops(). When writing in RAW mode this is called with an ops struct on the stack of mtdchar.c:mtd_write() which does not initialise ops->ooboffs, so it is garbage and fails this test. This test does not make sense if ops->oobbuf is NULL, which it is in the RAW write path, so include that in the test. Signed-off-by: Jon Povey Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 04aadf36de625647c72ec24c7e901896dd2a99e6 Author: Julia Lawall Date: Sun Oct 17 21:56:15 2010 +0200 jffs2: use kmemdup Convert a sequence of kmalloc and memcpy to use kmemdup. The semantic patch that performs this transformation is: (http://coccinelle.lip6.fr/) // @@ expression a,flag,len; expression arg,e1,e2; statement S; @@ a = - \(kmalloc\|kzalloc\)(len,flag) + kmemdup(arg,len,flag) <... when != a if (a == NULL || ...) S ...> - memcpy(a,arg,len+1); // Signed-off-by: Julia Lawall Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 334e5f56f176e19f7a85c23152bd7901d2991380 Author: Maxim Levitsky Date: Fri Oct 15 17:20:47 2010 +0200 mtd: sm_ftl: cosmetic, use bool when possible I didn't know that kernel allows use of that typedef. Signed-off-by: Maxim Levitsky Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 9bf70717a589b4b7f866d733b48554a04ea4f6e8 Author: Maxim Levitsky Date: Fri Oct 15 17:20:46 2010 +0200 mtd: r852: remove useless pci powerup/down from suspend/resume routines It turns out that pci core now handles these, so this code is redundant and can even cause bugs Signed-off-by: Maxim Levitsky Signed-off-by: David Woodhouse commit 12aebf3e1ad7dc8b076dd9674ca98f1aa6859fcd Author: Maxim Levitsky Date: Fri Oct 15 17:20:45 2010 +0200 mtd: blktrans: fix a race vs kthread_stop There is small race window that could make kthread_stop hang forever. I found that while hacking the IR subsystem. Signed-off-by: Maxim Levitsky Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 480792b7bf188c29b8d4b10fee65c3a06ec5dbf7 Author: Maxim Levitsky Date: Fri Oct 15 17:20:44 2010 +0200 mtd: blktrans: kill BKL It not needed, because I already added locking for all fops methods. Signed-off-by: Maxim Levitsky Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 008c751ec78587dd9b48bb62d4b10d616554fea2 Author: Maxim Levitsky Date: Fri Oct 15 17:20:43 2010 +0200 mtd: allow to unload the mtdtrans module if its block devices aren't open Now it once again possible to remove mtdtrans module. You still need to ensure that block devices of that module aren't mounted. This is due to the fact that as long as a block device is open, it still exists, therefore if we were to allow module removal, this block device might became used again. This time in addition to code review, I also made the code pass some torture tests like module reload in a loop + read in a loop + card insert/removal all at same time. The blktrans_open/blktrans_release don't take the mtd table lock because: While device is added (that includes execution of add_mtd_blktrans_dev) the lock is already taken Now suppose the device will never be removed. In this case even if we have changes in mtd table, the entry that we need will stay exactly the same. (Note that we don't look at table at all, just following private pointer of block device). Now suppose that someone tries to remove the mtd device. This will be propagated to trans driver which _ought_ to call del_mtd_blktrans_dev which will take the per device lock, release the mtd device and set trans->mtd = NULL. >From this point on, following opens won't even be able to know anything about that mtd device (which at that point is likely not to exist) Also the same care is taken not to trip over NULL mtd pointer in blktrans_dev_release. Signed-off-by: Maxim Levitsky Tested-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 6573e9b73e19c0f6b9dfa2b399267ea0f42d6c6b Author: Suresh Jayaraman Date: Mon Oct 18 23:52:18 2010 +0530 cifs: update comments - [s/GlobalSMBSesLock/cifs_file_list_lock/g] GlobalSMBSesLock is now cifs_file_list_lock. Update comments to reflect this. Signed-off-by: Suresh Jayaraman Signed-off-by: Steve French commit eb4b756b1e60b66e54932619088b645c712414a3 Author: Jeff Layton Date: Fri Oct 22 14:52:29 2010 -0400 cifs: eliminate cifsInodeInfo->write_behind_rc (try #6) write_behind_rc is redundant and just adds complexity to the code. What we really want to do instead is to use mapping_set_error to reset the flags on the mapping when we find a writeback error and can't report it to userspace yet. For cifs_flush and cifs_fsync, we shouldn't reset the flags since errors returned there do get reported to userspace. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Reviewed-by: Dave Kleikamp Signed-off-by: Steve French commit 6c0f6218ba04a5d6e61d0c55b68e6c4ef0736531 Author: Steve French Date: Sat Oct 23 16:51:40 2010 +0000 [CIFS] Fix checkpatch warnings and bump cifs version number Signed-off-by: Steve French commit d3f1322af8f866be54ea79a4002fc30c98290411 Author: Jeff Layton Date: Fri Oct 15 15:34:07 2010 -0400 cifs: wait for writeback to complete in cifs_flush The f_op->flush operation is the last chance to return a writeback related error when closing a file. Ensure that we don't miss reporting any errors by waiting for writeback to complete in cifs_flush before proceeding. There's no reason to do this when the file isn't open for write however. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Reviewed-by: David Kleikamp Signed-off-by: Steve French commit 5f6dbc9e4afe4d1d39e85de3ac2720a2042ad191 Author: Jeff Layton Date: Fri Oct 15 15:34:06 2010 -0400 cifs: convert cifsFileInfo->count to non-atomic counter The count for cifsFileInfo is currently an atomic, but that just adds complexity for little value. We generally need to hold cifs_file_list_lock to traverse the lists anyway so we might as well make this counter non-atomic and simply use the cifs_file_list_lock to protect it. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Signed-off-by: Steve French commit ebd71e3a4861849054751779ff5ccd3fb29a1e0a Author: Mike Frysinger Date: Sat Oct 16 18:31:14 2010 -0400 mtd: maps: gpio-addr-flash: fix warnings and make more portable As reported on lkml, building this module for HIMEM systems spews warnings about mismatch in pointer types. Further, we need to use ioremap() in order to properly access the flash memory on most systems rather than just doing it directly. Reported-by: Alan Cox Signed-off-by: Mike Frysinger Signed-off-by: David Woodhouse commit 5954c47c2194abcdeeae5f752e64b7c75770dbd3 Author: Mike Frysinger Date: Sat Oct 16 18:26:59 2010 -0400 mtd: Blackfin NFC: fix badblock location with BootROM OOB The bbt structure isn't actually used, just the badblockpos. This lets the driver correctly handle badblocks with the different OOB layout with certain sized flashes. Previously, the blocks would all be reported as bad and be completely unusable. Signed-off-by: Mike Frysinger Signed-off-by: David Woodhouse commit d031c22643ce5f0f92eb06735498f63b7bc3e447 Author: Wolfram Sang Date: Sat Oct 16 14:56:22 2010 +0200 mtd: cfi_cmdset_0002: code cleanups - remove disabled code (hasn't been touched since the beginning of git and should be reimplemented if really needed) - convert remaining c++-comments to plain c-style Signed-off-by: Wolfram Sang Acked-by: Guillaume LECERF Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit edb44b9b9cbff71f6aa9bebc384ee1896c8bfc2c Author: Roman Tereshonkov Date: Mon Oct 11 14:47:32 2010 +0300 mtd: onenand: fix 4KiB page onenand chip recognition For 4Gib non-DDP chip it does not follow that it is always 4KiB page chip. The number of data buffers is checked and if it is equal to 1 we suppose that it is 4KiB page onenand chip. Signed-off-by: Roman Tereshonkov Acked-by: Kyungmin Park Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 940fe282aeda984d32ca9e3d2be7df1b4c5161b1 Author: Stefan Roese Date: Fri Oct 8 14:41:27 2010 +0200 mtd: physmap_of: Loop through all "reg" tuples for mapping This patch changes the loop over the "reg" tuples to not exit directly upon of_address_to_resource() failure but to continue with the next "reg" tuple instead. This failure could be due to size = 0, which might be passed via the device-tree. This is needed for boards, where a "reg" tuple might have size 0 (of_address_to_resource() returns with EINVAL when size = 0). Example: Fully equipped board: reg = <0 0x00000000 0x00400000 0 0x00400000 0x00400000>; Partially equipped board: reg = <0 0x00000000 0x00400000 0 0x00400000 0x00000000>; This could be the case on boards with runtime detection of multiple NOR flash configurations where the detected flash size is inserted into the dtb in U-Boot. Signed-off-by: Stefan Roese Signed-off-by: David Woodhouse commit 41bdc602eca8738d6f3c71235744f72d888fe6b4 Author: Joakim Tjernlund Date: Thu Oct 7 19:09:34 2010 +0200 jffs2: Reduce excessive scan of empty blocks Scanning 1024 bytes to see if an EB is empty is a bit much. Lower it to 256 bytes and make sure the while loop is optimized. Signed-off-by: Joakim Tjernlund Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 81cfc9f1f4ad8d335367bb393bd042cc45b00047 Author: Joakim Tjernlund Date: Thu Oct 7 18:01:44 2010 +0200 jffs2: Fix serious write stall due to erase Drop the alloc_sem before erasing flash in jffs2_garbage_collect_pass(). Otherwise writes are put on hold until the erase has finised. Signed-off-by: Joakim Tjernlund Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 733daa52b8d358e7c18be7fb9f82afc0619408f4 Author: G, Manjunath Kondaiah Date: Wed Oct 6 03:26:56 2010 +0530 mtd: omap2: fix static declaration warning This patch fixes sparse warning for static declaration of variable "use_dma" drivers/mtd/nand/omap2.c:114:11: warning: symbol 'use_dma' was not declared. Should it be static? Signed-off-by: G, Manjunath Kondaiah Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 65e5a0e18e5fb5bc6cfabd8ef4b9fc1c8569ba62 Author: Daniel Drake Date: Thu Oct 7 19:14:02 2010 +0100 jffs2: Dynamically choose inocache hash size When JFFS2 is used for large volumes, the mount times are quite long. Increasing the hash size provides a significant speed boost on the OLPC XO-1 laptop. Add logic that dynamically selects a hash size based on the size of the medium. A 64mb medium will result in a hash size of 128, and a 512mb medium will result in a hash size of 1024. Signed-off-by: Daniel Drake Signed-off-by: David Woodhouse commit b46daf7eb1a143169699a8f9df634aa751a6ddde Author: Sebastian Andrzej Siewior Date: Thu Oct 7 21:48:27 2010 +0200 mtd: remove junk tabs in nand.h Remove tabs between type and name. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit a0491fc4d4b584ddc23f412e9a57b05d66a21263 Author: Sebastian Andrzej Siewior Date: Tue Oct 5 12:41:01 2010 +0200 mtd: cleanup nand.h - *var instead of * var - proper multiline comment - func(args) instead of func (args) - 80 lines So from |total: 2 errors, 37 warnings, 654 lines checked we got to one warning. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 766f271a63d1ee7caed8030736e6aed253d02073 Author: Ian Munsie Date: Fri Oct 1 17:06:08 2010 +1000 mtd: Fix endianness issues from device tree This patch adds the appropriate conversions to correct the endianness issues in the MTD driver whenever it accesses the device tree (which is always big endian). Signed-off-by: Ian Munsie Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit d86fbdb8ed0ac957693ff475cca076021677166a Author: David Jander Date: Thu Sep 30 13:26:02 2010 +0200 mtd: m25p80.c: Add support for S25FL032P spi-nor flash devices. Signed-off-by: David Jander Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit ce85b79fe809eaf34b84a9ebf4ac37ee37b3455b Author: Sebastian Andrzej Siewior Date: Wed Sep 29 19:43:54 2010 +0200 mtd: nandsim: add module param for BBT handling I used this to check the BBT on flash together with a hack in mtdchar in order to read bad blocks. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 453281a973c10bce941b240d1c654d536623b16b Author: Sebastian Andrzej Siewior Date: Fri Oct 1 21:37:37 2010 +0200 mtd: nand: introduce NAND_CREATE_EMPTY_BBT it will create an empty BBT table without considering vendor's BBT information. Vendor's information may be unavailable if the NAND controller has a different DATA & OOB layout or this information may be allready purged. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: David Woodhouse commit 7cba7b14fe179969d7217cca52e28519d7d6ca89 Author: Sebastian Andrzej Siewior Date: Thu Sep 30 21:28:01 2010 +0200 mtd: nand: add support for BBT without OOB The first (sixt) byte in the OOB area contains vendor's bad block information. During identification of the NAND chip this information is collected by scanning the complete chip. The option NAND_USE_FLASH_BBT is used to store this information in a sector so we don't have to scan the complete flash. Unfortunately the code stores a marker in order to recognize the BBT in the OOB area. This will fail if the OOB area is completely used for ECC. This patch introduces the option NAND_USE_FLASH_BBT_NO_OOB which has to be used with NAND_USE_FLASH_BBT. It will then store BBT on flash without touching the OOB area. The BBT format on flash remains same except the first page starts with the recognition pattern followed by the version byte. This change was tested in nandsim and it looks good so far :) Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: David Woodhouse commit df5b4e343c52fcdc54db3f9d07068c98cda6007b Author: Sebastian Andrzej Siewior Date: Wed Sep 29 19:43:51 2010 +0200 mtd: nand: pull in td into read_bbt() No code change. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit cda320915db00a07e5c4cdfc79806c3b80c0c7f2 Author: Sebastian Andrzej Siewior Date: Wed Sep 29 19:43:50 2010 +0200 mtd: nand: use ALIGN where possible Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 861fae1818db2ef09e6f3a836816fb1c2c402666 Author: Kyungmin Park Date: Wed Sep 29 14:32:05 2010 +0900 mtd: OneNAND: S5PC210 OneNAND support S5PC210 has the same OneNAND controller as S5PC110 Signed-off-by: Kyungmin Park Signed-off-by: David Woodhouse commit e23abf4b774322cbeb3f15cb95756544a64dda5e Author: Kyungmin Park Date: Tue Sep 28 19:27:15 2010 +0900 mtd: OneNAND: S5PC110: Implement DMA interrupt method Implement DMA interrupt method. previous time it polls the DMA status. It can reduce the CPU power but decrease the performance a little. Signed-off-by: Kyungmin Park Signed-off-by: David Woodhouse commit dcf08227e964a53a2cb39130b74842c7dcb6adde Author: Kyungmin Park Date: Tue Sep 28 19:27:10 2010 +0900 mtd: OneNAND: S5PC110: Fix wrong DMA handling when HIGHMEM When use HIGHMEM, dma_map_single doesn't get the proper DMA address. So use the dma_map_page in this case. Signed-off-by: Kyungmin Park Signed-off-by: David Woodhouse commit aa6d1c0e15948894978b342da45d91f5a2af9933 Author: Kyungmin Park Date: Tue Sep 28 19:27:00 2010 +0900 mtd: OneNAND: S5PC100: Only S5PC110 use the command map method After S5PC110 use the generic method for OneNAND. Signed-off-by: Kyungmin Park Signed-off-by: David Woodhouse commit c76268021e04e4313cd3a32242826f6a93388e2d Author: Rohit Hassan Sathyanarayan Date: Mon Sep 27 16:02:10 2010 +0530 mtd: MLC device check in OneNAND driver The MLC NAND Flash differs from the SLC NAND flash in functioning and the cell structure. Therefore we are considering it as a different Flash type. Signed-off-by: Rohit H.S Signed-off-by: Raghav Gupta Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 17a22826bbfeed27b10c0d8274fc19d5fc3951c3 Author: Rohit Hassan Sathyanarayan Date: Mon Sep 27 16:02:03 2010 +0530 mtd: Define MLC Flash as a different flash type MLC NAND Flash has a different cell structure and differs in functioning than the SLC NAND Flash. Hence we are considering it as a different Flash type. Signed-off-by: Rohit H.S Signed-off-by: Raghav Gupta Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit ebe8a642f50a0020bed317afcde1f9d2a9da429b Author: Kyungmin Park Date: Mon Sep 27 16:25:17 2010 +0900 mtd: OneNAND: S5PC110: Add timeout to prevent the endless loop There's no case timeout but add it for some H/W problem or wrong codes implementation Signed-off-by: Kyungmin Park Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 12a40a57f762f569f58a393437d8c13864db390a Author: Huang Shijie Date: Mon Sep 27 10:43:53 2010 +0800 mtd: add init_size hook for NAND driver Not all the NAND devices have all the information in additional id bytes. So add a hook in the nand_chip{} is a good method to calculate the right value of oobsize, erasesize and so on. Without the hook,you will get the wrong value, and you have to hack in the ->scan_bbt() to change the wrong value which make the code mess. Signed-off-by: Huang Shijie Signed-off-by: David Woodhouse commit 088bd455c954c0c42edde9d4463e44be10101aac Author: Mike Frysinger Date: Wed Sep 22 22:52:33 2010 -0400 jffs2: drop unused model argument The jffs2 compression framework provides a "model" argument when compressing and decompressing, but the caller always passes in NULL and the callees never use it. So punt this useless overhead. Signed-off-by: Mike Frysinger Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit d0f7959e2b708d775c3b6b53cc6a8abb8ff0a00b Author: Roman Tereshonkov Date: Fri Sep 17 13:31:42 2010 +0300 mtd: add BLKPG API based repartition support Add support for mtd repartition based on the block device BLKPG interface: BLKPG_ADD_PARTITION - for partition creation; BLKPG_DEL_PARTITION - for partition delete The usage is based on BLKPG ioctl called with struct blkpg_ioctl_arg argument which includes the reference to struct blkpg_partition discribing the partition offset and length. Disadvantage: there is no implementation for mtd flags control. The flags are always borrowed from the master device. Signed-off-by: Roman Tereshonkov Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 5daa7b21496aebf057c12be03038e7220e33353b Author: Roman Tereshonkov Date: Fri Sep 17 13:31:41 2010 +0300 mtd: prepare partition add and del functions for ioctl requests mtd_is_master, mtd_add_partition and mtd_del_partition functions are added to give the possibility of partition manipulation by ioctl request. The old partition add function is modified to fit the dynamic allocation. Signed-off-by: Roman Tereshonkov Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 93ac5a552c831096003f9bc74471300dc1710a42 Author: Linus Walleij Date: Mon Sep 13 00:35:37 2010 +0200 ARM: platform data to use the FSMC NAND with the U300 Just as it says, if this is merged along with the other patch, the driver supports the U300 NAND flash interface. Signed-off-by: Linus Walleij Signed-off-by: David Woodhouse commit 6c009ab89a212b4364cdb74192d438f542fb291c Author: Linus Walleij Date: Mon Sep 13 00:35:22 2010 +0200 mtd: generic FSMC NAND MTD driver This is the same driver submitted by ST Micros SPEAr team but generalized and tested on the ST-Ericsson U300. It probably easily works on the NHK8815 too. Signed-off-by: Vipin Kumar Signed-off-by: Rajeev Kumar Signed-off-by: Shiraz Hashim Signed-off-by: Viresh Kumar Signed-off-by: Linus Walleij Signed-off-by: David Woodhouse commit fd59cba4f0d80a6dc4cc7372f03af905b1758e03 Author: David Dillow Date: Sun Oct 24 10:20:21 2010 +0000 typhoon: update to new VLAN acceleration model Also correct the byteswapping as we keep the TCI in host order. Signed-off-by: David Dillow Signed-off-by: David S. Miller commit 154ccd82e1b871ca012e781e01566128754d8c5f Author: David Dillow Date: Sun Oct 24 10:20:20 2010 +0000 typhoon: wait for RX mode commands to finish When adding VLAN devices, we can get several calls to typhoon_set_rx_mode() in quick succession. Because we didn't wait for the commands to complete, we could run out of command descriptors and fail to set the RX mode. Signed-off-by: David Dillow Signed-off-by: David S. Miller commit 5c398dc8f5a58b5417d8ae0d474704feb6e12a12 Author: Eric Dumazet Date: Sun Oct 24 04:27:10 2010 +0000 netlink: fix netlink_change_ngroups() commit 6c04bb18ddd633 (netlink: use call_rcu for netlink_change_ngroups) used a somewhat convoluted and racy way to perform call_rcu(). The old block of memory is freed after a grace period, but the rcu_head used to track it is located in new block. This can clash if we call two times or more netlink_change_ngroups(), and a block is freed before another. call_rcu() called on different cpus makes no guarantee in order of callbacks. Fix this using a more standard way of handling this : Each block of memory contains its own rcu_head, so that no 'use after free' can happens. Signed-off-by: Eric Dumazet CC: Johannes Berg CC: Paul E. McKenney Signed-off-by: David S. Miller commit 7f8a688e1e319fcc94dbed83a6ec82cea13f10b9 Author: Denis Kirjanov Date: Fri Oct 22 05:41:14 2010 +0000 slhc: Don't export symbols twice Don't export symbols twice. Signed-off-by: Denis Kirjanov Signed-off-by: David S. Miller commit 1c5578194abde100c089855cce72e87c047d8530 Author: Guo-Fu Tseng Date: Sun Oct 24 16:18:25 2010 -0700 jme: Support WoL after shutdown Adding shutdown function that setup wake if wol is enabled. Add jme_phy_on in jme_set_100m_half in case it is shutting down or suspending when interface is down(phy_off by default). v2 updates: Removed CONFIG_PM ifdef for jme_set_100m_half and jme_wait_link. It would be nice if it can be applied to net-2.6 along with other patches sent few days ago. If it is not appropriate, please ignore the net-2.6 request, and apply it to net-next-2.6 as previous patch. :) Reported-and-helped-by: Сtac Signed-off-by: Guo-Fu Tseng Signed-off-by: David S. Miller commit 3866f673ebd86e5be2533923f5c0aed91fe1669f Author: Wolfram Sang Date: Wed Sep 1 18:03:41 2010 +0200 jffs2: use cond_resched() instead of yield() yield() has different semantics meanwhile and even causes RT-kernels to BUG. Replace the only appearance left in jffs2. Signed-off-by: Wolfram Sang Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit d2ac467a108400ff1ae682a423c7d41265e62d47 Author: Thierry Reding Date: Mon Aug 30 13:00:48 2010 +0200 mtd: m25p80: Add support for the Winbond W25Q64 This patch adds support for the Winbond W25Q64 serial flash. Signed-off-by: Thierry Reding Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit c1194c793240330ce59500d67737e3f28b4bde40 Author: Artem Bityutskiy Date: Fri Sep 3 22:01:16 2010 +0300 mtd: nand_base: do not cache pages with uncorrectable ECC errors Currently MTD caches the last read NAND page, even if there was an uncorrectable ECC error. This patch prevents caching in case of uncorrectable ECC errors. The reason is that we want to allow the user to re-read the NAND page several times. In case of unstable bits re-trying may help. Moreover, current behavior is wrong because the first read returns -EBADMSG (correctly) but the second read succeeds and incorrectly returns 0 (because we read from the cache). Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit bc49c28962de0e3758ac2cdc7821d506b827f219 Author: Florian Fainelli Date: Sun Sep 12 15:52:59 2010 +0200 mtd: add Broadcom BCM63xx image tag partition parser This patch adds support for parsing Broadcom BCM63xx image tag format and creating MTD partitions accordingly. This driver is a platform_device which can be instantiated accordingly by bcm63xx board support code. Signed-off-by: Daniel Dickinson Signed-off-by: Mike Albon Signed-off-by: Florian Fainelli Signed-off-by: David Woodhouse commit b889416b54c90f59276537debd92cb4e84b5f550 Author: Balazs Scheidler Date: Sat Oct 23 04:48:14 2010 +0000 tproxy: Add missing CAP_NET_ADMIN check to ipv6 side IP_TRANSPARENT requires root (more precisely CAP_NET_ADMIN privielges) for IPV6. However as I see right now this check was missed from the IPv6 implementation. Acked-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller commit 5e59be1f351b0ca9c5a43c627e3ed676ae93a941 Author: Dan Carpenter Date: Wed Sep 8 21:39:56 2010 +0200 mtd: sanity check ioctl input If "ur_idx" is wrong we could go past the end of the array. The "ur_idx" comes from root so it's not a huge deal, but adding a sanity check makes the code more robust. Signed-off-by: Dan Carpenter Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 0eecf4b20d63e0662d0a9732e9bd8a84bd3f872c Author: Roy Zang Date: Wed Sep 8 16:47:55 2010 +0800 mtd: fix the build warning for fsl_upm.c Fix the build warning: drivers/mtd/nand/fsl_upm.c: In function 'fun_chip_init': drivers/mtd/nand/fsl_upm.c:190: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t' Signed-off-by: Roy Zang Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 0561cf3dbff1f37c0d374fb1b824ef3a117c85e0 Author: Harvey Harrison Date: Thu Oct 21 18:05:34 2010 +0000 vmxnet3: fix typo setting confPA It's a le64, not a le32, typo in one place only. Noticed by sparse: drivers/net/vmxnet3/vmxnet3_drv.c:2668:52: warning: incorrect type in assignment (different base types) drivers/net/vmxnet3/vmxnet3_drv.c:2668:52: expected restricted __le64 [usertype] confPA drivers/net/vmxnet3/vmxnet3_drv.c:2668:52: got restricted __le32 [usertype] Signed-off-by: Harvey Harrison Signed-off-by: Shreyas Bhatewara Signed-off-by: David S. Miller commit 81e8e5601fba4ea5bc3bfbed0fec074cf65feca5 Author: Harvey Harrison Date: Thu Oct 21 18:05:33 2010 +0000 vmxnet3: annotate hwaddr members as __iomem pointers Signed-off-by: Harvey Harrison Signed-off-by: Shreyas Bhatewara Signed-off-by: David S. Miller commit 3843e5154cdcab15fa7405f175e9a1626030792d Author: Harvey Harrison Date: Thu Oct 21 18:05:32 2010 +0000 vmxnet3: remove set_flag_le{16,64} helpers It's easier to just annotate the constants as little endian types and set/clear the flags directly. Signed-off-by: Harvey Harrison Signed-off-by: Shreyas Bhatewara Signed-off-by: David S. Miller commit 19ecae2c8fd5e54e40ace914a41d8e1beb41612c Author: Dimitris Michailidis Date: Thu Oct 21 11:29:56 2010 +0000 cxgb4: update to utilize the newer VLAN infrastructure Signed-off-by: Dimitris Michailidis Signed-off-by: David S. Miller commit 8f6d9f40476895571df039b6f1f5230ec7faebad Author: Dimitris Michailidis Date: Thu Oct 21 11:29:55 2010 +0000 cxgb4: fix crash due to manipulating queues before registration Before commit "net: allocate tx queues in register_netdevice" netif_tx_stop_all_queues and related functions could be used between device allocation and registration but now only after registration. cxgb4 has such a call before registration and crashes now. Move it after register_netdev. Signed-off-by: Dimitris Michailidis Signed-off-by: David S. Miller commit 7351d3a5dbf42ba3299af71db3296be447bc1516 Author: Florian Fainelli Date: Tue Sep 7 13:23:45 2010 +0200 mtd: fix almost all checkpatch warnings in nand_base.c Only 3 warnings are left, one is off by one character, but splitting the line would reduce the readability. One is for a for loop statement, which would also not improve readability. The last one is a false positive on a test. Artem: it is much easier to verify patches against nand_base.c with checkpatch.pl when nand_base.c itself does not have so many checkpatch.pl warnings. Signed-off-by: Florian Fainelli Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit f8ac04140e2215e1680440d5a8642553b0d2fa2d Author: Florian Fainelli Date: Tue Sep 7 13:23:43 2010 +0200 mtd: fix all checkpatch errors in nand_base.c Artem: it is much easier to verify patches against nand_base.c with checkpatch.pl when nand_base.c itself does not have so many checkpatch.pl warnings. Signed-off-by: Florian Fainelli Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 2bdb053a8119355eada46dfab88782449a26b39d Author: Wolfram Sang Date: Fri Sep 3 12:35:37 2010 +0200 mtd: davinci: relax a timeout for ECC-initialization Sudhakar found out that 100µs are enough. Sadly, his updated patch was overlooked and an older version still using 100ms was merged. Fix this. Reference: http://patchwork.ozlabs.org/patch/59180/ Signed-off-by: Wolfram Sang Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit f2df1ae3fe8d44d51bd7218a9da9134b83c7531e Author: Gernot Hoyler Date: Thu Sep 2 17:27:20 2010 +0200 mtd: m25p80: Add support for two new Spansion SPI devices (S25FL-K) This patch adds support for Spansion S25FL016K and S25FL064K SPI flash. It has been tested with physical devices. Note that both parts exhibit a Winbond manufacturer ID so they might also be added to that section. Signed-off-by: Gernot Hoyler Signed-off-by: David Woodhouse commit 6fb277ba847f37489dc22adffed700e0c3ea3acf Author: Florian Fainelli Date: Wed Sep 1 22:28:59 2010 +0200 mtd: nand: split ONFI detection logic to its own function In order to reduce the indentation and improve the readability of nand_get_ flash_type, split the ONFI detection logic to its own function. The detection logic inside nand_flash_detect_onfi is also rewritten to allow for less indentation. Signed-off-by: Florian Fainelli Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit d1e1f4e42b5df063712ca2926e50c07b95c96b96 Author: Florian Fainelli Date: Mon Aug 30 18:32:24 2010 +0200 mtd: nand: add support for reading ONFI parameters from NAND device This patch adds support for reading NAND device ONFI parameters and use the ONFI informations to define its geometry. In case the device supports ONFI, the onfi_version field in struct nand_chip contains the version (BCD) and the onfi_params structure can be used by drivers to set up timings and such. We currently only support ONFI 1.0 parameters. Signed-off-by: Brian Norris Signed-off-by: Matthieu Castet Signed-off-by: Maxime Bizon Signed-off-by: Florian Fainelli Signed-off-by: David Woodhouse commit 42af8b58fb5ec97214e85780db71bb9d60541fcc Author: Florian Fainelli Date: Mon Aug 30 18:32:20 2010 +0200 mtd: nand: denali should also handle NAND_CMD_PARAM Signed-off-by: Florian Fainelli Signed-off-by: David Woodhouse commit caa4b6f24c2cae586ed3f371ddde7fc1fc75b322 Author: Florian Fainelli Date: Mon Aug 30 18:32:14 2010 +0200 mtd: nand: add NAND_CMD_PARAM (0xec) definition This command is used to read the device ONFI parameters page. Signed-off-by: Florian Fainelli Signed-off-by: David Woodhouse commit 344955fb9cab0ec051f27e846008362b8ce42d36 Author: Kyungmin Park Date: Fri Aug 27 11:55:29 2010 +0900 mtd: OneNAND: Remove unused cmd_map at s5pc110 S5PC110 OneNAND controller use the generic functions provided from onenand_base. Signed-off-by: Kyungmin Park Signed-off-by: David Woodhouse commit 34c5bf6cc78e56537e0d508f5979f27ea8a64e31 Author: Brian Norris Date: Fri Aug 20 10:50:43 2010 -0700 mtd: nand: Samsung MLC - new OOB sizes There are some additions to the detection scheme used by Samsung MLC NAND. These simple changes to support the 400- and 436-byte OOB are found in the following data sheet: Samsung K9GBG08U0M (p.40) Signed-off-by: Brian Norris Signed-off-by: David Woodhouse commit eea116ed0497dc9c4a981b8c7017d758fc835ded Author: Wolfram Sang Date: Wed Aug 25 14:18:20 2010 +0200 mtd: davinci: fix comment to match the code Signed-off-by: Wolfram Sang Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit a41ccf5a3e22c3dc1e7be134afdaa97e1aed01e2 Author: Dan Carpenter Date: Tue Aug 24 13:56:27 2010 +0200 mtd: pcmciamtd: remove dead code This code isn't reachable. I looked through the git history and it hasn't been reachable for years. Someone removed the label to silence gcc's unused label warning but these few lines accidentally got left behind. Signed-off-by: Dan Carpenter Acked-by: Dominik Brodowski Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit cf363518ca44d654c51497b3f73c69a34565155d Author: Julia Lawall Date: Sun Aug 29 11:52:42 2010 +0200 mtd: mpc5121_nfc: fix memory leak on error path Add a call to of_node_put in the error handling code following a call to of_find_compatible_node. Signed-off-by: Julia Lawall Acked-by: Wolfram Sang Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 9d8b10437441e7f31ce86202ccadad922a9e914f Author: Lei Wen Date: Tue Aug 17 14:09:30 2010 +0800 mtd: pxa3xx_nand: set oob length in the runtime For different command need different oob requirement, set the proper oob length by different cmd. Signed-off-by: Lei Wen Acked-by: Eric Miao Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 18c81b1828f8c4bdd01dd24f4015604a17ca0bb8 Author: Lei Wen Date: Tue Aug 17 17:25:57 2010 +0800 mtd: pxa3xx_nand: remove the flash info in driver structure After probe, all info already transfer to driver structure. There is no need to keep the original flash info. So that we could safely free the flash info in memory, which may grows larger when more flash is suported. Signed-off-by: Lei Wen Signed-off-by: Haojian Zhuang Acked-by: Eric Miao Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 227a886c7ead6420465abfd1242f449895b2c332 Author: Lei Wen Date: Wed Aug 18 18:00:03 2010 +0800 mtd: pxa3xx_nand: introduce default timing to reduce read id times We certainly don't need to send read id command times by times, since we already know what the id is after the first read id... So create a default timing which could ensure it would successfully read id out all supported chip. Then follow the build-in table to reconfigure the timing. Signed-off-by: Lei Wen Signed-off-by: Haojian Zhuang Acked-by: Eric Miao Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit c1f82478c535f1de9fecf3cafa82014f312d5d4e Author: Lei Wen Date: Tue Aug 17 13:50:23 2010 +0800 mtd: pxa3xx_nand: condense the flash definition Adding a new flash definition would need less code. Keep the platform passing flash definition method. If one flash is both defined in platform data and builtin table, driver would select the one from platform data first. By this way, platform could select the timing most suit for itself, not need to follow the common settings. Signed-off-by: Lei Wen Signed-off-by: Haojian Zhuang Acked-by: Eric Miao Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 13ed7aed45e370f30a746e49e674144297a92e16 Author: Brian Norris Date: Fri Aug 20 12:36:12 2010 -0700 mtd: nand: support new Toshiba SLC Toshiba does not use ONFI for their NAND flash. So we have to continue to add new IDs used by Toshiba devices as well as heuristic detection for scanning the 2nd page for a BBM. This is a relatively harmless start at supporting many of them. These chips mostly follow the same ID fields of previous generations, but there is a need for a tweak. These chips introduce a strange 576 byte OOB (that's 36 bytes per 512 bytes of page). In the preliminary data, Toshiba has not defined exactly how their ID strings should decode. In the future, a new tweak must be added. Data is taken from, among others, Toshiba TC58TxG4S2FBAxx Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 5c709ee9f33da4a07d94e3d48b297eb6f003fc61 Author: Brian Norris Date: Fri Aug 20 12:36:13 2010 -0700 mtd: nand: Increase NAND_MAX_OOBSIZE An increase in NAND_MAX_OOBSIZE and NAND_MAX_PAGESIZE is necessary in order to support many new chips. Among those: Toshiba TC58TxG4S2FBAxx 8KB page, 576B OOB Micron MT29F64G08CBAAA 8KB page, 448B OOB Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 432dc821c90114f9b0e00f6752a700e937516ade Author: H Hartley Sweeten Date: Thu Aug 19 18:18:21 2010 -0700 mtd: cleanup Kconfig dependencies Remove the MTD!=n dependency since that is handled by drivers/mtd/Kconfig. Simplify the dependency checks for mtd/chips by using if/endif blocks. Remove all default n since that is the Kconfig default. Signed-off-by: H Hartley Sweeten Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 0ceacf36e9c41859a6072342d27cf6e60776c523 Author: Brian Norris Date: Sun Sep 19 23:57:12 2010 -0700 mtd: edit comments on deprecation of ioctl ECCGETLAYOUT There were some improvements and additions necessary in the comments explaining of the expansion of nand_ecclayout, the introduction of nand_ecclayout_user, and the deprecation of the ioctl ECCGETLAYOUT. Also, I found a better placement for the macro MTD_MAX_ECCPOS_ENTRIES; next to the definition of MTD_MAX_OOBFREE_ENTRIES in mtd-abi.h. The macro is really only important for the ioctl code (found in drivers/mtd/mtdchar.c) but since there are small edits being made to the user-space header, I figured this is a better location. Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit cc26c3cd3d1cf40a07f2b19ac4c53d517bee52a5 Author: Brian Norris Date: Tue Aug 24 18:12:00 2010 -0700 mtd: nand: expand nand_ecc_layout, deprecate ioctl ECCGETLAYOUT struct nand_ecclayout is too small for many new chips; OOB regions can be as large as 448 bytes and may increase more in the future. Thus, copying that struct to user-space with the ECCGETLAYOUT ioctl is not a good idea; the ioctl would have to be updated every time there's a change to the current largest size. Instead, the old nand_ecclayout is renamed to nand_ecclayout_user and a new struct nand_ecclayout is created that can accomodate larger sizes and expand without affecting the user-space. struct nand_ecclayout can still be used in board drivers without modification -- at least for now. A new function is provided to convert from the new to the old in order to allow the deprecated ioctl to continue to work with truncated data. Perhaps the ioctl, the conversion process, and the struct nand_ecclayout_user can be removed altogether in the future. Note: There are comments in nand/davinci_nand.c::nand_davinci_probe() regarding this issue; this driver (and maybe others) can be updated to account for extra space. All kernel drivers can use the expanded nand_ecclayout as a drop-in replacement and ignore its benefits. Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit f4a2da0cd522a3b805ff2386c14912945bf990c7 Author: Brian Norris Date: Wed Aug 18 09:10:58 2010 -0700 mtd: inftl.h: fix spacing errors Replaced some spaces with tabs to fit CodingStyle guidelines Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 2173bae81e17b710328bc877e7b9ade7f4b90064 Author: Brian Norris Date: Thu Aug 19 08:11:02 2010 -0700 mtd: nand: spansion S30MLxxxP support Some Spansion chips have a method for determining eraseblock size that is incompatible with similar ID chips of other sizes. This implements some heuristic detection of these differences. This patch checks for a 5-byte ID with trailing zeros as well as a 512-byte page size to ensure that chips are not misdetected as the S30MLxxxP ORNAND series. [Tweaked by Artem a bit] Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 2d3359f8b9e6b3d6339b7e72f8e82275058eb13c Author: Andre B. Oliveira Date: Mon Oct 18 21:47:27 2010 +0000 can: tscan1: add driver for TS-CAN1 boards Add driver for Technologic Systems TS-CAN1 PC104 peripheral boards. Signed-off-by: Andre B. Oliveira Acked-by: Wolfgang Grandegger Reviewed-by: Wolfram Sang Signed-off-by: David S. Miller commit 12c8eb98de747ebc08404e3719c40abb405994e2 Author: Baruch Siach Date: Mon Aug 9 07:20:23 2010 +0300 mtd: fix callback return value check Drivers may (and do) return negative errno values other than -1 from the ecc.correct callback. Signed-off-by: Baruch Siach Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse commit 7e223de84b73c621b90755dc4d8c8128e673b529 Author: Anders Franzen Date: Tue Oct 19 03:50:47 2010 +0000 ip6_tunnel dont update the mtu on the route. The ip6_tunnel device did not unset the flag, IFF_XMIT_DST_RELEASE. This will make the dev layer to release the dst before calling the tunnel. The tunnel will not update any mtu/pmtu info, since it does not have a dst on the skb. Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit d618222352ac95ff9a21f1fc1018fffeb8952194 Author: Paul Gortmaker Date: Mon Oct 18 12:14:44 2010 +0000 pktgen: clean up handling of local/transient counter vars The temporary variable "i" is needlessly initialized to zero in two distinct cases in this file: 1) where it is set to zero and then used as an argument in an addition before being assigned a non-zero value. 2) where it is only used in a standard/typical loop counter For (1), simply delete assignment to zero and usages while still zero; for (2) simply make the loop start at zero as per standard practice as seen everywhere else in the same file. Signed-off-by: Paul Gortmaker Signed-off-by: David S. Miller commit 38df7a39492d52f4fad484f611f01a01bd8f1e41 Author: stephen hemminger Date: Thu Oct 21 07:50:57 2010 +0000 e1000: make e1000_reinit_safe local Signed-off-by: Stephen Hemminger Acked-by: Jesse Brandeburg Signed-off-by: David S. Miller commit 8d96286ae13a0bf4ec04341c9b25694adff38623 Author: stephen hemminger Date: Thu Oct 21 07:50:56 2010 +0000 bnx2x: make local function static and remove dead code Make many functions that are only used in one file static. Remove dead code for override_led_value. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit fa274cb7e56555e7017050e922b4f14637baa023 Author: stephen hemminger Date: Thu Oct 21 07:50:55 2010 +0000 qlge: disable unsed dump code The driver has lots of unused code to dump data structures to console. Use existing simple way to remove the code with ifdef. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit ac409215faccd146e5c755f131d20310a5febe70 Author: stephen hemminger Date: Thu Oct 21 07:50:54 2010 +0000 qlge: make local functions static Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 42821a5b393e36f5c0b267473d59d375578df7ec Author: stephen hemminger Date: Thu Oct 21 07:50:53 2010 +0000 vxge: make functions local and remove dead code Use results of make namespacecheck to make functions local and remove code that is not used. Also rename initialize_ethtool_ops to vxge_initialize_ethtool_ops. Compile tested only. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 1c787096fce217b5fdd9806dbce96e738c9345c0 Author: Trond Myklebust Date: Thu Oct 21 16:56:48 2010 -0400 NFSv4.1: Use more sensible names for 'initialize_mountpoint' The initialize_mountpoint/uninitialise_mountpoint functions are really about setting or clearing the layout driver to be used on this filesystem. Change the names to the more descriptive 'set_layoutdriver/clear_layoutdriver'. Signed-off-by: Trond Myklebust commit 89ff05ec553f3e70b8773c501da01bf7ad952cab Author: stephen hemminger Date: Thu Oct 21 08:37:41 2010 +0000 phylib: make local function static The following functions are not used directly by any drivers: phy_attach_direct phy_device_create phy_prepare_link genphy_config_advert genphy_setup_forced phy_config_interrupt phy_clear_interrypt phy_sanitize_settings phy_enable_interrupts phy_disable_interrupts Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 16b374ca439fb406e46e071f75428f5b033056f8 Author: Andy Adamson Date: Wed Oct 20 00:18:04 2010 -0400 NFSv4.1: pnfs: filelayout: add driver's LAYOUTGET and GETDEVICEINFO infrastructure Implement the driver's io_ops->alloc_lseg and free_lseg functions, which integrate into the deviceid cache and calls out to nfs4_proc_getdeviceinfo when necessary. Signed-off-by: Andy Adamson Signed-off-by: Dean Hildebrand Signed-off-by: Marc Eshel Signed-off-by: Mike Sager Signed-off-by: Oleg Drokin Signed-off-by: Ricardo Labiaga Signed-off-by: Tao Guo Signed-off-by: Boaz Harrosh Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit b1f69b754ee312ec75f2c7ead0e6851cd9598cc2 Author: Andy Adamson Date: Wed Oct 20 00:18:03 2010 -0400 NFSv4.1: pnfs: add LAYOUTGET and GETDEVICEINFO infrastructure Add the ability to actually send LAYOUTGET and GETDEVICEINFO. This also adds in the machinery to handle layout state and the deviceid cache. Note that GETDEVICEINFO is not called directly by the generic layer. Instead it is called by the drivers while parsing the LAYOUTGET opaque data in response to an unknown device id embedded therein. RFC 5661 only encodes device ids within the driver-specific opaque data. Signed-off-by: Andy Adamson Signed-off-by: Dean Hildebrand Signed-off-by: Marc Eshel Signed-off-by: Mike Sager Signed-off-by: Ricardo Labiaga Signed-off-by: Tao Guo Signed-off-by: Boaz Harrosh Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit 974cec8ca0352eb5d281535b714cf194a606e98f Author: Andy Adamson Date: Wed Oct 20 00:18:02 2010 -0400 NFS: client needs to maintain list of inodes with active layouts In particular, server reboot will invalidate all layouts. Note that in order to have an active layout, we must get a successful response from the server. To avoid adding that machinery, this patch just includes a stub that fakes up a successful return. Since the layout is never referenced for io, this is not a problem. Signed-off-by: Andy Adamson Signed-off-by: Benny Halevy Signed-off-by: Dean Hildebrand Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit e5e940170b2136ad4d5483ef293ae284b9cc8d53 Author: Benny Halevy Date: Wed Oct 20 00:18:01 2010 -0400 NFS: create and destroy inode's layout cache At the start of the io paths, try to grab the relevant layout information. This will initiate the inode's layout cache, but stubs ensure the cache stays empty. Signed-off-by: Benny Halevy Signed-off-by: Dean Hildebrand Signed-off-by: Marc Eshel Signed-off-by: Tao Guo Signed-off-by: Ricardo Labiaga Signed-off-by: Boaz Harrosh Signed-off-by: Andy Adamson Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit 7ab672ce312133ee4a5d85b71447b2b334403681 Author: Dean Hildebrand Date: Wed Oct 20 00:18:00 2010 -0400 NFSv4.1: pnfs: filelayout: introduce minimal file layout driver This driver just registers itself and supplies trivial mount/umount functions. Signed-off-by: Dean Hildebrand Signed-off-by: Marc Eshel Signed-off-by: Benny Halevy Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit 02c35fca7cf4ea2dfdc6db279e230cacbbf4b870 Author: Fred Isaman Date: Wed Oct 20 00:17:59 2010 -0400 NFSv4.1: pnfs: full mount/umount infrastructure Allow a module implementing a layout type to register, and have its mount/umount routines called for filesystems that the server declares support it. Signed-off-by: Fred Isaman Signed-off-by: Marc Eshel Signed-off-by: Andy Adamson Signed-off-by: Bian Naimeng Signed-off-by: Benny Halevy Signed-off-by: Trond Myklebust commit 85e174ba6b786ad336eb2df105b4f66d0932e70a Author: Ricardo Labiaga Date: Wed Oct 20 00:17:58 2010 -0400 NFS: set layout driver Put in the infrastructure that uses information returned from the server at mount to select a layout driver module. In this patch, a stub is used that always returns "no driver found". Signed-off-by: Ricardo Labiaga Signed-off-by: Dean Hildebrand Signed-off-by: Marc Eshel Signed-off-by: Andy Adamson Signed-off-by: Benny Halevy Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit 504913fbc84c00bba7224d73e4aab525c1731f7d Author: Andy Adamson Date: Wed Oct 20 00:17:57 2010 -0400 NFS: ask for layouttypes during v4 fsinfo call This information will be used to determine which layout driver, if any, to use for subsequent IO on this filesystem. Each driver is assigned an integer id, with 0 reserved to indicate no driver. The server can in theory return multiple ids. However, our current client implementation only notes the first entry and ignores the rest. Signed-off-by: Andy Adamson Signed-off-by: Benny Halevy Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit 9449925273933d19235d7d36c1fd970841d055de Author: Alexandros Batsakis Date: Wed Oct 20 00:17:56 2010 -0400 NFS: change stateid to be a union In NFSv4.1 the stateid consists of the other and seqid fields. For layout processing we need to numerically compare the seqid value of layout stateids. To do so, introduce a union to nfs4_stateid to switch between opaque(16 bytes) and opaque(12 bytes) / __be32 Signed-off-by: Alexandros Batsakis Signed-off-by: Benny Halevy Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit c772567d97fa0fca454eea68aeae915ca1bc732b Author: Dean Hildebrand Date: Wed Oct 20 00:17:55 2010 -0400 NFSv4.1: pnfsd, pnfs: protocol level pnfs constants Use only layoutreturn constant for both returns and recalls. (return_* works better for recall_type rather the other way around) Signed-off-by: Dean Hildebrand Signed-off-by: Marc Eshel Signed-off-by: Benny Halevy Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit 35b61e63323ccf5fdcdd74b11751b58392c9cce1 Author: Benny Halevy Date: Wed Oct 20 00:17:54 2010 -0400 SUNRPC: define xdr_decode_opaque_fixed A helper for decoding a fixed length opaque value. Returns a pointer to the next item in the xdr stream. Signed-off-by: Benny Halevy Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit 3c9101a0575f6078191dae6bb91a834c6aac3557 Author: Andy Adamson Date: Wed Oct 20 00:17:53 2010 -0400 NFSD: remove duplicate NFS4_STATEID_SIZE Already accepted by Bruce Signed-off-by: Andy Adamson Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust commit 9a84d38031c258a17bb39beed1e500eadee67407 Author: Trond Myklebust Date: Sun Oct 24 18:00:46 2010 -0400 SUNRPC: Cleanup duplicate assignment in rpcauth_refreshcred Signed-off-by: Trond Myklebust commit 3388bff5cfe91589a912cdc7f00d3aae3aa18adc Author: Roman Borisov Date: Wed Oct 13 16:54:51 2010 +0400 nfs: fix unchecked value Return value of "decode_attr_bitmap()" was not checked; Signed-off-by: Roman Borisov Signed-off-by: Trond Myklebust commit 55b6e7742d5b25182edf410369379b9727b2e5bc Author: Ricardo Labiaga Date: Tue Oct 12 16:30:06 2010 -0700 Ask for time_delta during fsinfo probe Used by the client to determine if the server has a granular enough time stamp. Signed-off-by: Ricardo Labiaga Signed-off-by: Trond Myklebust commit 6b96724e507fecc3e6440e86426fe4f44359ed66 Author: Ricardo Labiaga Date: Tue Oct 12 16:30:05 2010 -0700 Revalidate caches on lock Instead of blindly zapping the caches, attempt to revalidate them if the server has indicated that it uses high resolution timestamps. NFSv4 should be able to always revalidate the cache since the protocol requires the update of the change attribute on modification of the data. In reality, there are servers (the Linux NFS server for example) that do not obey this requirement and use ctime as the basis for change attribute. Long term, the server needs to be fixed. At this time, and to be on the safe side, continue zapping caches if the server indicates that it does not have a high resolution timestamp. Signed-off-by: Ricardo Labiaga Signed-off-by: Trond Myklebust commit ff2d8d6c1921242cd119395173ef46e2629bcdb2 Author: stephen hemminger Date: Thu Oct 21 07:50:50 2010 +0000 atlx: make local functions/data static Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 0fb1e54ed17767521c18908d871f780f461ea1a6 Author: stephen hemminger Date: Thu Oct 21 07:50:49 2010 +0000 atl1c: make functions static The up/down are only used in this file. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 49b052215b3319b69de8e2df412d06eae41088b4 Author: stephen hemminger Date: Thu Oct 21 07:50:48 2010 +0000 benet: make be_poll_rx local Only used in one file. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 3f3a5fdc55e5c969aa26a5afc3bb2be33cb41fe4 Author: stephen hemminger Date: Thu Oct 21 07:50:47 2010 +0000 benet: remove dead code The following code and data are defined but never used in current driver. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit fc130840d75d42c5a360fd1d8b72489eec09cad3 Author: stephen hemminger Date: Thu Oct 21 07:50:46 2010 +0000 l2tp: make local function static Also moved the refcound inlines from l2tp_core.h to l2tp_core.c since only used in that one file. Signed-off-by: Stephen Hemminger Acked-by: James Chapman Signed-off-by: David S. Miller commit 9740d7860429a561f4745da8c179d84290f3c9a3 Author: stephen hemminger Date: Thu Oct 21 06:59:20 2010 +0000 mlx4: make functions local and remove dead code. Make the following function static: mlx4_UNMAP_ICM Remove the following unused function: mlx4_MAP_ICM_page Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 00389b0820c44cceec3f6981cb4d217982ec73b2 Author: Marc Kleine-Budde Date: Thu Oct 21 01:01:22 2010 +0000 can: at91_can: add KBUILD_MODNAME to bittiming constant While there replace all usage of self defined DRV_NAME by KBUILD_MODNAME. Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit 882055c8387e85cb380ab152b96ff69b570d8989 Author: Marc Kleine-Budde Date: Thu Oct 21 01:01:21 2010 +0000 can: at91_can: convert dev_ printing to netdev_ While there, remove "printk()" on driver loading. Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit 7672fe7373c7b871220093e568610ac95e96de35 Author: Marc Kleine-Budde Date: Thu Oct 21 01:01:20 2010 +0000 can: at91_can: convert readl, writel their __raw pendants Signed-off-by: Marc Kleine-Budde Cc: Russell King Signed-off-by: David S. Miller commit b156fd0483c8f18b3cc544d9c400fe454458e16a Author: Marc Kleine-Budde Date: Thu Oct 21 01:01:19 2010 +0000 can: at91_can: set bittiming in chip_start Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit 33a6f298c28a65fa643bc70222ebffe75077f197 Author: Marc Kleine-Budde Date: Thu Oct 21 01:01:18 2010 +0000 can: at91_can: implement and use at91_get_berr_counter Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit a9d992ecb36f8ed00130eaf41a406fda03433d23 Author: Marc Kleine-Budde Date: Thu Oct 21 01:01:17 2010 +0000 can: at91_can: fix section mismatch warning ...by adding the correct annotation "__devinit" to the driver's probe function. Signed-off-by: Marc Kleine-Budde Acked-by: Uwe Kleine-König Signed-off-by: David S. Miller commit b61f674051e58b394454602d492d5e3e3471facc Author: Marc Kleine-Budde Date: Thu Oct 21 01:01:16 2010 +0000 can: at91_can: fix compiler warning in at91_irq_err_state This patch fixes the following compiler warning: drivers/net/can/at91_can.c: In function 'at91_irq_err_state': drivers/net/can/at91_can.c:779: warning: 'reg_ier' may be used uninitialized in this function drivers/net/can/at91_can.c:779: warning: 'reg_idr' may be used uninitialized in this function Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit 759a6c768dcdbbb4d3f1fb965b674c15773e09ca Author: Marc Kleine-Budde Date: Thu Oct 21 01:01:15 2010 +0000 can: at91_can: fix use after free of priv The priv is part of the memory allocated by alloc_candev(). This patch moved the free it after last usage of priv. While there convert all free_netdev() to free_candev() (which is currently just a wrapper around free_netdev()) to be symetrically with the allocation via alloc_candev(). Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit 8a0e0a49b0a917c8c8dce6f7121ec73a5c8e3932 Author: Marc Kleine-Budde Date: Thu Oct 21 01:01:14 2010 +0000 can: at91_can: fix reception of extended frames The AT91_MID_MIDE bit must be set in order to receive extended frames. The reception of an extended frame sets this bit, while reception of standard frames resets it. This results in some lost extended frames in an extended ID only environment. But leads to unpredictable lost extended ID frames in a mixed environment. The problem is fixed by setting the AT91_MID_MIDE after reception of a CAN frame. Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit dbe91325c2d6ad34c1ce4f2aeae4bbd11b7a3fff Author: Marc Kleine-Budde Date: Thu Oct 21 01:01:13 2010 +0000 can: at91_can: use correct bit to enable CAN_CTRLMODE_3_SAMPLES Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit b21d18b51b31a24d17f883b678432fbdee3d5675 Author: Masayuki Ohtake Date: Fri Oct 15 03:00:28 2010 +0000 can: Topcliff: Add PCH_CAN driver. CAN driver of Topcliff PCH Topcliff PCH is the platform controller hub that is going to be used in Intel's upcoming general embedded platform. All IO peripherals in Topcliff PCH are actually devices sitting on AMBA bus. Topcliff PCH has CAN I/F. This driver enables CAN function. Signed-off-by: Masayuki Ohtake Signed-off-by: David S. Miller commit 118df3d17f11733b294ea2cd988d56ee376ef9fd Author: Trond Myklebust Date: Sun Oct 24 17:17:31 2010 -0400 SUNRPC: After calling xprt_release(), we must restart from call_reserve Rob Leslie reports seeing the following Oops after his Kerberos session expired. BUG: unable to handle kernel NULL pointer dereference at 00000058 IP: [] rpcauth_refreshcred+0x11/0x12c [sunrpc] *pde = 00000000 Oops: 0000 [#1] last sysfs file: /sys/devices/platform/pc87360.26144/temp3_input Modules linked in: autofs4 authenc esp4 xfrm4_mode_transport ipt_LOG ipt_REJECT xt_limit xt_state ipt_REDIRECT xt_owner xt_HL xt_hl xt_tcpudp xt_mark cls_u32 cls_tcindex sch_sfq sch_htb sch_dsmark geodewdt deflate ctr twofish_generic twofish_i586 twofish_common camellia serpent blowfish cast5 cbc xcbc rmd160 sha512_generic sha1_generic hmac crypto_null af_key rpcsec_gss_krb5 nfsd exportfs nfs lockd fscache nfs_acl auth_rpcgss sunrpc ip_gre sit tunnel4 dummy ext3 jbd nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp iptable_mangle iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_filter ip_tables x_tables pc8736x_gpio nsc_gpio pc87360 hwmon_vid loop aes_i586 aes_generic sha256_generic dm_crypt cs5535_gpio serio_raw cs5535_mfgpt hifn_795x des_generic geode_rng rng_core led_class ext4 mbcache jbd2 crc16 dm_mirror dm_region_hash dm_log dm_snapshot dm_mod sd_mod crc_t10dif ide_pci_generic cs5536 amd74xx ide_core pata_cs5536 ata_generic libata usb_storage via_rhine mii scsi_mod btrfs zlib_deflate crc32c libcrc32c [last unloaded: scsi_wait_scan] Pid: 12875, comm: sudo Not tainted 2.6.36-net5501 #1 / EIP: 0060:[] EFLAGS: 00010292 CPU: 0 EIP is at rpcauth_refreshcred+0x11/0x12c [sunrpc] EAX: 00000000 EBX: defb13a0 ECX: 00000006 EDX: e18683b8 ESI: defb13a0 EDI: 00000000 EBP: 00000000 ESP: de571d58 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 Process sudo (pid: 12875, ti=de570000 task=decd1430 task.ti=de570000) Stack: e186e008 00000000 defb13a0 0000000d deda6000 e1868f22 e196f12b defb13a0 <0> defb13d8 00000000 00000000 e186e0aa 00000000 defb13a0 de571dac 00000000 <0> e186956c de571e34 debea5c0 de571dc8 e186967a 00000000 debea5c0 de571e34 Call Trace: [] ? rpc_wake_up_next+0x114/0x11b [sunrpc] [] ? call_decode+0x24a/0x5af [sunrpc] [] ? nfs4_xdr_dec_access+0x0/0xa2 [nfs] [] ? __rpc_execute+0x62/0x17b [sunrpc] [] ? rpc_run_task+0x91/0x97 [sunrpc] [] ? rpc_call_sync+0x40/0x5b [sunrpc] [] ? nfs4_proc_access+0x10a/0x176 [nfs] [] ? nfs_do_access+0x2b1/0x2c0 [nfs] [] ? rpcauth_lookupcred+0x62/0x84 [sunrpc] [] ? nfs_permission+0xad/0x13b [nfs] [] ? exec_permission+0x15/0x4b [] ? link_path_walk+0x4f/0x456 [] ? path_walk+0x4c/0xa8 [] ? do_path_lookup+0x1f/0x68 [] ? user_path_at+0x37/0x5f [] ? handle_mm_fault+0x229/0x55b [] ? sys_faccessat+0x93/0x146 [] ? sys_access+0xf/0x13 [] ? syscall_call+0x7/0xb Code: 0f 94 c2 84 d2 74 09 8b 44 24 0c e8 6a e9 8b de 83 c4 14 89 d8 5b 5e 5f 5d c3 55 57 56 53 83 ec 1c fc 89 c6 8b 40 10 89 44 24 04 <8b> 58 58 85 db 0f 85 d4 00 00 00 0f b7 46 70 8b 56 20 89 c5 83 EIP: [] rpcauth_refreshcred+0x11/0x12c [sunrpc] SS:ESP 0068:de571d58 CR2: 0000000000000058 This appears to be caused by the function rpc_verify_header() first calling xprt_release(), then doing a call_refresh. If we release the transport slot, we should _always_ jump back to call_reserve before calling anything else. Signed-off-by: Trond Myklebust Cc: stable@kernel.org commit 6cebb17beece746de86793cd549e84740896cf4a Author: Tejun Heo Date: Thu Oct 14 23:55:22 2010 +0000 connector: remove lazy workqueue creation Commit 1a5645bc (connector: create connector workqueue only while needed once) implements lazy workqueue creation for connector workqueue. With cmwq now in place, lazy workqueue creation doesn't make much sense while adding a lot of complexity. Remove it and allocate an ordered workqueue during initialization. This also removes a call to flush_scheduled_work() which is deprecated and scheduled to be removed. Signed-off-by: Tejun Heo Cc: Frederic Weisbecker Signed-off-by: David S. Miller commit 229aebb873e29726b91e076161649cf45154b0bf Merge: 8de547e 50a23e6 Author: Linus Torvalds Date: Sun Oct 24 13:41:39 2010 -0700 Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (39 commits) Update broken web addresses in arch directory. Update broken web addresses in the kernel. Revert "drivers/usb: Remove unnecessary return's from void functions" for musb gadget Revert "Fix typo: configuation => configuration" partially ida: document IDA_BITMAP_LONGS calculation ext2: fix a typo on comment in ext2/inode.c drivers/scsi: Remove unnecessary casts of private_data drivers/s390: Remove unnecessary casts of private_data net/sunrpc/rpc_pipe.c: Remove unnecessary casts of private_data drivers/infiniband: Remove unnecessary casts of private_data drivers/gpu/drm: Remove unnecessary casts of private_data kernel/pm_qos_params.c: Remove unnecessary casts of private_data fs/ecryptfs: Remove unnecessary casts of private_data fs/seq_file.c: Remove unnecessary casts of private_data arm: uengine.c: remove C99 comments arm: scoop.c: remove C99 comments Fix typo configue => configure in comments Fix typo: configuation => configuration Fix typo interrest[ing|ed] => interest[ing|ed] Fix various typos of valid in comments ... Fix up trivial conflicts in: drivers/char/ipmi/ipmi_si_intf.c drivers/usb/gadget/rndis.c net/irda/irnet/irnet_ppp.c commit 8de547e1824437f3c6af180d3ed2162fa4b3f389 Merge: 76c39e4 e6649cc Author: Linus Torvalds Date: Sun Oct 24 13:06:57 2010 -0700 Merge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/edac * 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/edac: (25 commits) i7300_edac: Properly initialize per-csrow memory size V4L/DVB: i7300_edac: better initialize page counts MAINTAINERS: Add maintainer for i7300-edac driver i7300-edac: CodingStyle cleanup i7300_edac: Improve comments i7300_edac: Cleanup: reorganize the file contents i7300_edac: Properly detect channel on CE errors i7300_edac: enrich FBD error info for corrected errors i7300_edac: enrich FBD error info for fatal errors i7300_edac: pre-allocate a buffer used to prepare err messages i7300_edac: Fix MTR x4/x8 detection logic i7300_edac: Make the debug messages coherent with the others i7300_edac: Cleanup: remove get_error_info logic i7300_edac: Add a code to cleanup error registers i7300_edac: Add support for reporting FBD errors i7300_edac: Properly detect the type of error correction i7300_edac: Detect if the device is on single mode i7300_edac: Adds detection for enhanced scrub mode on x8 i7300_edac: Clear the error bit after reading i7300_edac: Add error detection code for global errors ... commit f253b86b4ad1b3220544e75880510fd455ebd23f Author: Jens Axboe Date: Sun Oct 24 22:06:02 2010 +0200 Revert "block: fix accounting bug on cross partition merges" This reverts commit 7681bfeeccff5efa9eb29bf09249a3c400b15327. Conflicts: include/linux/genhd.h It has numerous issues with the cleanup path and non-elevator devices. Revert it for now so we can come up with a clean version without rushing things. Signed-off-by: Jens Axboe commit 76c39e4fef73e42777c27d6b87a04f89ebd0ef66 Merge: 1765a1f 6d4121f Author: Linus Torvalds Date: Sun Oct 24 12:47:55 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6: (27 commits) SLUB: Fix memory hotplug with !NUMA slub: Move functions to reduce #ifdefs slub: Enable sysfs support for !CONFIG_SLUB_DEBUG SLUB: Optimize slab_free() debug check slub: Move NUMA-related functions under CONFIG_NUMA slub: Add lock release annotation slub: Fix signedness warnings slub: extract common code to remove objects from partial list without locking SLUB: Pass active and inactive redzone flags instead of boolean to debug functions slub: reduce differences between SMP and NUMA Revert "Slub: UP bandaid" percpu: clear memory allocated with the km allocator percpu: use percpu allocator on UP too percpu: reduce PCPU_MIN_UNIT_SIZE to 32k vmalloc: pcpu_get/free_vm_areas() aren't needed on UP SLUB: Fix merged slab cache names Slub: UP bandaid slub: fix SLUB_RESILIENCY_TEST for dynamic kmalloc caches slub: Fix up missing kmalloc_cache -> kmem_cache_node case for memoryhotplug slub: Add dummy functions for the !SLUB_DEBUG case ... commit 1765a1fe5d6f82c0eceb1ad10594cfc83759b6d0 Merge: bdaf12b 2a31339 Author: Linus Torvalds Date: Sun Oct 24 12:47:25 2010 -0700 Merge branch 'kvm-updates/2.6.37' of git://git.kernel.org/pub/scm/virt/kvm/kvm * 'kvm-updates/2.6.37' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (321 commits) KVM: Drop CONFIG_DMAR dependency around kvm_iommu_map_pages KVM: Fix signature of kvm_iommu_map_pages stub KVM: MCE: Send SRAR SIGBUS directly KVM: MCE: Add MCG_SER_P into KVM_MCE_CAP_SUPPORTED KVM: fix typo in copyright notice KVM: Disable interrupts around get_kernel_ns() KVM: MMU: Avoid sign extension in mmu_alloc_direct_roots() pae root address KVM: MMU: move access code parsing to FNAME(walk_addr) function KVM: MMU: audit: check whether have unsync sps after root sync KVM: MMU: audit: introduce audit_printk to cleanup audit code KVM: MMU: audit: unregister audit tracepoints before module unloaded KVM: MMU: audit: fix vcpu's spte walking KVM: MMU: set access bit for direct mapping KVM: MMU: cleanup for error mask set while walk guest page table KVM: MMU: update 'root_hpa' out of loop in PAE shadow path KVM: x86 emulator: Eliminate compilation warning in x86_decode_insn() KVM: x86: Fix constant type in kvm_get_time_scale KVM: VMX: Add AX to list of registers clobbered by guest switch KVM guest: Move a printk that's using the clock before it's ready KVM: x86: TSC catchup mode ... commit bdaf12b41235b0c59949914de022341e77907461 Merge: 7c024e9 bf5d95c Author: Linus Torvalds Date: Sun Oct 24 12:46:24 2010 -0700 Merge branch 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging: i2c-viapro: Don't log nacks i2c/pca954x: Remove __devinit and __devexit from probe and remove functions MAINTAINERS: Add maintainer for PCA9541 I2C bus master selector driver i2c/mux: Driver for PCA9541 I2C Master Selector i2c: Optimize function i2c_detect() i2c: Discard warning message on device instantiation from user-space i2c-amd8111: Add proper error handling i2c: Change to new flag variable i2c: Remove unneeded inclusions of i2c: Let i2c_parent_is_i2c_adapter return the parent adapter i2c: Simplify i2c_parent_is_i2c_adapter i2c-pca-platform: Change device name of request_irq i2c: Fix Kconfig dependencies commit 7c024e9534f9edd8d052380a1b40d376c8feb11b Merge: 188e213 d8692ac Author: Linus Torvalds Date: Sun Oct 24 12:44:59 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (47 commits) HID: fix mismerge in hid-lg HID: hidraw: fix window in hidraw_release HID: hid-sony: override usbhid_output_raw_report for Sixaxis HID: add absolute axis resolution calculation HID: force feedback support for Logitech RumblePad gamepad HID: support STmicroelectronics and Sitronix with hid-stantuml driver HID: magicmouse: Adjust major / minor axes to scale HID: Fix for problems with eGalax/DWAV multi-touch-screen HID: waltop: add support for Waltop Slim Tablet 12.1 inch HID: add NOGET quirk for AXIS 295 Video Surveillance Joystick HID: usbhid: remove unused hiddev_driver HID: magicmouse: Use hid-input parsing rather than bypassing it HID: trivial formatting fix HID: Add support for Logitech Speed Force Wireless gaming wheel HID: don't Send Feature Reports on Interrupt Endpoint HID: 3m: Adjust major / minor axes to scale HID: 3m: Correct touchscreen emulation HID: 3m: Convert to MT slots HID: 3m: Output proper orientation range HID: 3m: Adjust to sequential MT HID protocol ... commit 188e213dbc5758bbfb62f7ce0367c5c8de057f02 Merge: 35da7a3 6d388b4 Author: Linus Torvalds Date: Sun Oct 24 12:44:34 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: Makefile - replace the use of -objs with -y crypto: hifn_795x - use cancel_delayed_work_sync() crypto: talitos - sparse check endian fixes crypto: talitos - fix checkpatch warning crypto: talitos - fix warning: 'alg' may be used uninitialized in this function crypto: cryptd - Adding the AEAD interface type support to cryptd crypto: n2_crypto - Niagara2 driver needs to depend upon CRYPTO_DES crypto: Kconfig - update broken web addresses crypto: omap-sham - Adjust DMA parameters crypto: fips - FIPS requires algorithm self-tests crypto: omap-aes - OMAP2/3 AES hw accelerator driver crypto: updates to enable omap aes padata: add missing __percpu markup in include/linux/padata.h MAINTAINERS: Add maintainer entries for padata/pcrypt commit 641934069d29211baf82afb93622a426172b67b6 Author: Chris Wilson Date: Sun Oct 24 12:38:05 2010 +0100 drm/i915: Move gpu_write_list to per-ring ... to prevent flush processing of an idle (or even absent) ring. This fixes a regression during suspend from 87acb0a5. Reported-and-tested-by: Alexey Fisher Tested-by: Peter Clifton Signed-off-by: Chris Wilson commit 6f7a35bd23bdbbb40c07ee1120ef047190e77d9b Author: Trond Myklebust Date: Sun Oct 24 12:11:42 2010 -0400 NFSv4: Fix up the 'dircount' hint in encode_readdir Also ensure we only ask for either fileid or mounted_on_fileid in the readdirplus case too... Signed-off-by: Trond Myklebust commit 9af8c222ca5eae88f000664f693316480bf58fbc Author: Trond Myklebust Date: Sun Oct 24 11:52:55 2010 -0400 NFSv4: Clean up nfs4_decode_dirent Signed-off-by: Trond Myklebust commit 4f082222fad3c8471abe0c8e8f18c72f335a34c7 Author: Trond Myklebust Date: Sun Oct 24 13:14:02 2010 -0400 NFSv4: nfs4_decode_dirent must clear entry->fattr->valid Otherwise, we may end up reading uninitialised data from the resulting struct nfs_fattr. Signed-off-by: Trond Myklebust commit 6d4121f6c20a0e86231d52f535f1c82423b3326f Merge: 92a5bbc 35da7a3 Author: Pekka Enberg Date: Sun Oct 24 19:57:05 2010 +0300 Merge branch 'master' into for-linus Conflicts: include/linux/percpu.h mm/percpu.c commit bf5d95c82692ead9ba7876af73dac2edcc8a6191 Author: Jean Delvare Date: Sun Oct 24 18:16:59 2010 +0200 i2c-viapro: Don't log nacks Transactions not acked can happen every now and then, in particular during device detection, and various transaction types can be used for this purpose. So stop logging this event, except when debugging is enabled. This is what other similar drivers (e.g. i2c-i801 or i2c-piix4) do. Signed-off-by: Jean Delvare commit db79f2a1d259a9026241dd0f192c20d6264d5afa Author: Guenter Roeck Date: Sun Oct 24 18:16:59 2010 +0200 i2c/pca954x: Remove __devinit and __devexit from probe and remove functions The underlying I2C adapter may or may not be present when this driver gets initialized, and may disappear later, so there is no safe time at which the probe and remove functions can be discarded. Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit 5ce914a8965031a4de503235eb9e0d33ff294fa8 Author: Guenter Roeck Date: Sun Oct 24 18:16:59 2010 +0200 MAINTAINERS: Add maintainer for PCA9541 I2C bus master selector driver Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare commit ae63b13bbeca7f8915c555663f8789a531611e4b Author: Guenter Roeck Date: Sun Oct 24 18:16:58 2010 +0200 i2c/mux: Driver for PCA9541 I2C Master Selector This patch adds support for PCA9541, an I2C Bus Master Selector. The driver is modeled as single channel I2C Multiplexer to be able to utilize the I2C multiplexer framework. Signed-off-by: Guenter Roeck Reviewed-by: Tom Grennan Acked-by: Jean Delvare commit 51b54ba9bb16b9fc28ec88006778d330af00bf8b Author: Jean Delvare Date: Sun Oct 24 18:16:58 2010 +0200 i2c: Optimize function i2c_detect() Check the class flags before allocating the temporary i2c_client structure, to avoid allocating it when we don't need it. Also optimize the inner loop a bit. Signed-off-by: Jean Delvare Cc: Jacob Pan commit d57558d0f3b41bb260aaa327150d49f1810461f5 Author: Jean Delvare Date: Sun Oct 24 18:16:58 2010 +0200 i2c: Discard warning message on device instantiation from user-space The "new_device" sysfs interface has been there for quite some time now, nobody complained about it so it must be good enough. Time to remove the warning and call it stable. Signed-off-by: Jean Delvare Acked-by: Michael Lawnick commit 9cb2c2726e9ae212ccaeecd3eaadcd8d49ac7400 Author: Julia Lawall Date: Sun Oct 24 18:16:58 2010 +0200 i2c-amd8111: Add proper error handling The functions the functions amd_ec_wait_write and amd_ec_wait_read have an unsigned return type, but return a negative constant to indicate an error condition. A sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @exists@ identifier f; constant C; @@ unsigned f(...) { <+... * return -C; ...+> } // Fixing amd_ec_wait_write and amd_ec_wait_read leads to the need to adjust the return type of the functions amd_ec_write and amd_ec_read, which are the only functions that call amd_ec_wait_write and amd_ec_wait_read. amd_ec_write and amd_ec_read, in turn, are only called from within the function amd8111_access, which already returns a signed typed value. Each of the calls to amd_ec_write and amd_ec_read are updated using the following semantic patch: // @@ @@ + status = amd_ec_write - amd_ec_write (...); + if (status) return status; @@ @@ + status = amd_ec_read - amd_ec_read (...); + if (status) return status; // The patch also adds the declaration of the status variable. Signed-off-by: Julia Lawall Signed-off-by: Jean Delvare commit ef9d9b8fb696850a95cd59ba2cd67991b6f722b3 Author: matt mooney Date: Sun Oct 24 18:16:58 2010 +0200 i2c: Change to new flag variable Replace EXTRA_CFLAGS with ccflags-y. Signed-off-by: matt mooney Signed-off-by: Jean Delvare commit a8d7be818fbe0f8a4e7dc251712958ca369f9d45 Author: Jean Delvare Date: Sun Oct 24 18:16:58 2010 +0200 i2c: Remove unneeded inclusions of These drivers don't use anything which is defined in . This header file was never meant to be included directly anyway, and will be deleted soon. Signed-off-by: Jean Delvare Acked-by: Ben Dooks Acked-by: Dave Airlie Cc: Hans Verkuil commit 97cc4d49cfcda1c2dad89c00b62a25b628ce2115 Author: Jean Delvare Date: Sun Oct 24 18:16:57 2010 +0200 i2c: Let i2c_parent_is_i2c_adapter return the parent adapter This makes the calling site's code clearer IMHO. Signed-off-by: Jean Delvare Acked-by: Michael Lawnick commit d582963a027fd63f8dfc97a0bf3654d4380e34ce Author: Jean Delvare Date: Sun Oct 24 18:16:57 2010 +0200 i2c: Simplify i2c_parent_is_i2c_adapter Only i2c devices can have their type set to i2c_adapter_type, so testing the bus type is redundant. Signed-off-by: Jean Delvare Cc: Michael Lawnick commit 323584436db0cb05286425d4dfd9516fce88487f Author: Nobuhiro Iwamatsu Date: Sun Oct 24 18:16:57 2010 +0200 i2c-pca-platform: Change device name of request_irq i2c->adap.name shouldn't be used in request_irq. Instead the driver name "i2c-pca-platform" should be used. Signed-off-by: Nobuhiro Iwamatsu Acked-by: Wolfram Sang Cc: stable@kernel.org Signed-off-by: Jean Delvare commit 0a57274ea026c2b7670683947b6cc08b195148cf Author: Jean Delvare Date: Sun Oct 24 18:16:57 2010 +0200 i2c: Fix Kconfig dependencies drivers/i2c/algos/Kconfig makes all the algorithms dependent on !I2C_HELPER_AUTO, which triggers a Kconfig warning about broken dependencies when some driver selects one of the algorithms. Ideally we would make only the prompts dependent on !I2C_HELPER_AUTO, however Kconfig doesn't currently support that. So we have to redefine the symbols separately for the I2C_HELPER_AUTO=y case. Signed-off-by: Jean Delvare Acked-by: Michal Marek commit 76a7bd81130646459dfded1845e0d511488a6afa Author: Mauro Carvalho Chehab Date: Sun Oct 24 11:36:19 2010 -0200 i7core_edac: return -ENODEV when devices were already probed Due to the nature of i7core, we need to probe and attach all PCI devices used by this driver during the first time probe is called. However, PCI core will call the probe routine one time for each CPU socket. If we return -EINVAL to those calls, it would seem that the driver fails, when, in fact, there's no more devices left to initialize. Changing the return code to -ENODEV solves this issue. Signed-off-by: Mauro Carvalho Chehab commit 3c52cc57ccd5c99441368d5e66be36681ce90e72 Author: Mauro Carvalho Chehab Date: Sun Oct 24 11:12:28 2010 -0200 i7core_edac: properly terminate pci_dev_table At pci_xeon_fixup(), it waits for a null-terminated table, while at i7core_get_all_devices, it just do a for 0..ARRAY_SIZE. As other tables are zero-terminated, change it to be terminate with 0 as well, and fixes a bug where it may be running out of the table elements. Signed-off-by: Mauro Carvalho Chehab commit a3e1541637f2096ab31af311c53eaeb0853650d3 Author: Mauro Carvalho Chehab Date: Sat Aug 21 08:52:41 2010 -0300 i7core_edac: Avoid PCI refcount to reach zero on successive load/reload That's a nasty bug that took me a lot of time to track, and whose solution took just one line to solve. The best fragrances and the worse poisons are shipped on the smalest bottles. The drivers/pci/quick.c implements the pci_get_device function. The normal behavior is that you call it, the function returns you a pdev pointer and increment pdev->kobj.kref.refcount of the pci device. However, if you want to keep searching an object, you need to pass the previous pdev function to the search. When you use a not null pointer to pdev "from" field, pci_get_device will decrement pdev->kobj.kref.refcount, assuming that the driver won't be using the previous pdev. The solution is simple: we just need to call pci_dev_get() manually, for the pdev's that the driver will actually use. Signed-off-by: Mauro Carvalho Chehab commit 79daef2099a02fed35747c23bad22f30441133ea Author: Mauro Carvalho Chehab Date: Sat Aug 21 01:03:52 2010 -0300 i7core_edac: Fix refcount error at PCI devices Probably due to a bug or some testing logic at PCI level, device refcount for :00.0 device is decremented at the end of the pci_get_device, made by i7core_get_all_devices(). The fact is that the first versions of the driver relied on those devices to probe for Nehalem, but the current versions don't use it at all. So, let's just remove those devices from the driver, making it simpler and fixing the bug. Signed-off-by: Mauro Carvalho Chehab commit 88ef5ea9767b0c7bfb4b477e1857629fe8fa2983 Author: Mauro Carvalho Chehab Date: Fri Aug 20 15:39:38 2010 -0300 i7core_edac: it is safe to i7core_unregister_mci() when mci=NULL i7core_unregister_mci() checks internally when mci=NULL. There's no need to test it outside. Signed-off-by: Mauro Carvalho Chehab commit 6d37d240f2ff411c4d58bbbddefbda73a227d40c Author: Mauro Carvalho Chehab Date: Fri Aug 20 12:48:26 2010 -0300 i7core_edac: Fix an oops at i7core probe changeset c91d57ba9ce5b5c93a7077e2f72510eb1f9131c4 moved the init of the priv pointer to the end of the probe routine. However, we need them before that, otherwise, we hit an OOPS: [ 67.743453] EDAC DEBUG: mci_bind_devs: Associated fn 0.0, dev = ffff88011b46e000, socket 0 [ 67.751861] BUG: unable to handle kernel NULL pointer dereference at 0000000000000010 [ 67.759685] IP: [] i7core_probe+0x979/0x130c [i7core_edac] [ 67.766721] PGD 10bd38067 PUD 10bd37067 PMD 0 [ 67.771178] Oops: 0000 [#1] SMP [ 67.774414] last sysfs file: /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_map [ 67.782213] CPU 1 [ 67.784042] Modules linked in: i7core_edac(+) edac_core cpufreq_ondemand binfmt_misc dm_multipath video output pci_slot snd_hda_codd Signed-off-by: Mauro Carvalho Chehab commit 21b6806a8cbda694eb1bed8d5b60bd7c322ad343 Author: Hidetoshi Seto Date: Fri Aug 20 04:33:10 2010 -0300 i7core_edac: Remove unused member channels in i7core_pvt Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 2e5185f7ff2b26206889d7ebb09ddc4c59b656a4 Author: Hidetoshi Seto Date: Fri Aug 20 04:32:56 2010 -0300 i7core_edac: Remove unused arg csrow from get_dimm_config A local is enough. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit aace42831aa46f210bf3b0d8f1527092cc37eaad Author: Hidetoshi Seto Date: Fri Aug 20 04:32:45 2010 -0300 i7core_edac: Reduce args of i7core_register_mci We can check the number of channels in i7core_register_mci. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 1c6edbbe2529684859ff8e34a19e34fe9894a3b7 Author: Hidetoshi Seto Date: Fri Aug 20 04:32:33 2010 -0300 i7core_edac: Introduce i7core_unregister_mci In i7core_probe, when setup of mci for 2nd or later socket failed, we should cleanup prepared mci for 1st socket or so before "put" of all devices. So let have i7core_unregister_mci that can be shared between here and i7core_remove. While here fix a typo "hanler". Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 73589c80cd0dab94db50800c4834a8d8522cd54f Author: Hidetoshi Seto Date: Fri Aug 20 04:32:05 2010 -0300 i7core_edac: Use saved pointers We already have saved pointers. Use shorter ones. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 71fe01706d631513bdbd73381f4b76dacea5cf77 Author: Hidetoshi Seto Date: Fri Aug 20 04:29:47 2010 -0300 i7core_edac: Check probe counter in i7core_remove Prevent i7core_remove from running multiple times. Otherwise value proved will be negative and something will be wrong. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 2896637b86243c39a4f08d15388dcc06130fff29 Author: Hidetoshi Seto Date: Fri Aug 20 04:28:51 2010 -0300 i7core_edac: Call pci_dev_put() when alloc_i7core_dev() failed Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 628c5ddfb08094a5ef9186dc866d09bfcac105c9 Author: Hidetoshi Seto Date: Fri Aug 20 04:28:40 2010 -0300 i7core_edac: Fix error path of i7core_register_mci Release resources properly. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 5939813b9c4270d0f46375c3cad64226bb1fcd62 Author: Hidetoshi Seto Date: Fri Aug 20 04:28:25 2010 -0300 i7core_edac: Fix order of lines in i7core_register_mci The flag is_registered is not initialized until mci_bind_devs() is called. Refer it properly. The mci->dev and mci->edac_check is required in edac_mc_add_mc(), so prepare them just before the call. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 64c10f6e0e6b4473b97c29c574e9517f93bedaec Author: Hidetoshi Seto Date: Fri Aug 20 04:28:14 2010 -0300 i7core_edac: Always do get/put for all devices We already do 'get' for all sockets at once. So do 'put' in the same way. And let args of the 'get' function to void since it handles only the single, static and known size table pci_dev_table[]. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit a3aa0a4ab56e825e2ec236974d478d1dcebf41a9 Author: Hidetoshi Seto Date: Fri Aug 20 04:25:18 2010 -0300 i7core_edac: Introduce i7core_pci_ctl_create/release Have a couple of method. while here sort out lines in the i7core_register_mci() a bit. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 2aa9be448dab7433c685b634a4049289cb1913d3 Author: Hidetoshi Seto Date: Fri Aug 20 04:25:00 2010 -0300 i7core_edac: Introduce free_i7core_dev Have a method to make a couple with alloc_i7core_dev() previously introduced. Using in pair will help proper resource handling. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 848b2f7ed6db4d3a83201187159665cc57725d9f Author: Hidetoshi Seto Date: Fri Aug 20 04:24:44 2010 -0300 i7core_edac: Introduce alloc_i7core_dev It's nice to have a method for a single purpose. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit b197cba071ec8a171fbaaaf82d119315a6f6cb0b Author: Hidetoshi Seto Date: Fri Aug 20 04:24:31 2010 -0300 i7core_edac: Reduce args of i7core_get_onedevice Since we need to pass the index of the entry, pass the table itself instead of passing individual members of the table. While here make it static. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 45b7c981aeeb456d4b0c04f15d551f3e515bf20e Author: Hidetoshi Seto Date: Fri Aug 20 04:24:18 2010 -0300 i7core_edac: Fix the logic in i7core_remove() commit 47251b4d960bdfa648b0d06dbc6d445f41cb3906 have changed the logic for unexplained reasons. It looks strange that it can release i7core_dev without calling i7core_put_devices() that releases i7core_dev->pdev. Fix the part. Signed-off-by: Hidetoshi Seto Signed-off-by: Mauro Carvalho Chehab commit 54a08ab153cf38a08ccce7544d58c819ad02dd18 Author: Mauro Carvalho Chehab Date: Thu Aug 19 15:51:00 2010 -0300 i7core_edac: Don't do the legacy PCI probe by default The legacy PCI probe sometimes cause hangs. Better to have it disabled by default, and have a parameter to enable it. Signed-off-by: Mauro Carvalho Chehab commit accf74fff36315a31dc7319dae2927af06e9296f Author: Mauro Carvalho Chehab Date: Mon Aug 16 18:34:37 2010 -0300 i7core_edac: don't use a freed mci struct This is a nasty bug. Since kobject count will be reduced by zero by edac_mc_del_mc(), and this triggers the kobj release method, the mci memory will be freed automatically. So, all we have left is ctl_name, as shown by enabling debug: [ 80.822186] EDAC DEBUG: in drivers/edac/edac_mc_sysfs.c, line at 1020: edac_remove_sysfs_mci_device() remove_link [ 80.832590] EDAC DEBUG: in drivers/edac/edac_mc_sysfs.c, line at 1024: edac_remove_sysfs_mci_device() remove_mci_instance [ 80.843776] EDAC DEBUG: in drivers/edac/edac_mc_sysfs.c, line at 640: edac_mci_control_release() mci instance idx=0 releasing [ 80.855163] EDAC MC: Removed device 0 for i7core_edac.c i7 core #0: DEV 0000:3f:03.0 [ 80.862936] EDAC DEBUG: in drivers/edac/i7core_edac.c, line at 2089: (null): free structs [ 80.871134] EDAC DEBUG: in drivers/edac/edac_mc.c, line at 238: edac_mc_free() [ 80.878379] EDAC DEBUG: in drivers/edac/edac_mc_sysfs.c, line at 726: edac_mc_unregister_sysfs_main_kobj() [ 80.888043] EDAC DEBUG: in drivers/edac/i7core_edac.c, line at 1232: drivers/edac/i7core_edac.c: i7core_put_devices() Also, kfree(mci) shouldn't happen at the kobj.release, as it happens when edac_remove_sysfs_mci_device() is called, but the logic is: edac_remove_sysfs_mci_device(mci); edac_printk(KERN_INFO, EDAC_MC, "Removed device %d for %s %s: DEV %s\n", mci->mc_idx, mci->mod_name, mci->ctl_name, edac_dev_name(mci)); So, as the edac_printk() needs the mci struct, this generates an OOPS. Signed-off-by: Mauro Carvalho Chehab commit bbc560ae677c0f4d7ff8404a21409c99f35b297b Author: Mauro Carvalho Chehab Date: Mon Aug 16 18:22:43 2010 -0300 edac_core: Print debug messages at release calls This is important to track a nasty bug at the free logic. Signed-off-by: Mauro Carvalho Chehab commit ac99768c534ebde637b506ce9a6f5638d2049a5d Author: Mauro Carvalho Chehab Date: Thu Aug 12 13:09:21 2010 -0300 edac_core: Don't let free(mci) happen while using it A very nasty bug were happening on edac core, due to the way mci objects are freed. mci memory is freed when kobject count reaches zero, by edac_mci_control_release(). However, from the logs, this is clearly happening before the final usage of mci struct: [15799.607454] EDAC DEBUG: in drivers/edac/edac_mc_sysfs.c, line at 640: edac_mci_control_release() mci instance idx=0 releasing [15799.618773] EDAC DEBUG: in drivers/edac/edac_mc_sysfs.c, line at 769: edac_inst_grp_release() [15799.627326] EDAC DEBUG: in drivers/edac/edac_mc_sysfs.c, line at 894: edac_remove_mci_instance_attributes() end of seeking for group all_channel_counts [15799.640887] EDAC DEBUG: in drivers/edac/edac_mc_sysfs.c, line at 877: edac_remove_mci_instance_attributes() sysfs_attrib = ffffffffa01d7240 [15799.653412] EDAC DEBUG: in drivers/edac/edac_mc_sysfs.c, line at 1020: edac_remove_sysfs_mci_device() remove_link [15799.663753] EDAC DEBUG: in drivers/edac/edac_mc_sysfs.c, line at 1024: edac_remove_sysfs_mci_device() remove_mci_instance Signed-off-by: Mauro Carvalho Chehab commit 6fe1108f14f4f9581af97cab752f37dc8fa9fdec Author: Mauro Carvalho Chehab Date: Thu Aug 12 00:30:25 2010 -0300 edac_core: Do a better job with node removal Make sure we remove groups at the right order Signed-off-by: Mauro Carvalho Chehab commit 39300e7143f8ef81b07cee3d8b86880bc4311ea0 Author: Mauro Carvalho Chehab Date: Wed Aug 11 23:40:15 2010 -0300 i7core_edac: explicitly remove PCI devices from the devices list Signed-off-by: Mauro Carvalho Chehab commit 41ba6c10586dfab632725cd532677ae5ae460e3e Author: Mauro Carvalho Chehab Date: Wed Aug 11 00:58:11 2010 -0300 i7core_edac: MCE NMI handling should stop first Otherwise, a NMI may happen causing a race condition and a panic. Signed-off-by: Mauro Carvalho Chehab commit 6ee7dd504490f3dc25cfe1c9be5b6e8895f89a92 Author: Mauro Carvalho Chehab Date: Tue Aug 10 23:24:16 2010 -0300 i7core_edac: Initialize all priv vars before start polling Signed-off-by: Mauro Carvalho Chehab commit 3cfd01468b98360ede8cc8849d14e586253d290c Author: Mauro Carvalho Chehab Date: Tue Aug 10 23:23:46 2010 -0300 i7core_edac: Improve debug to seek for register/remove errors Signed-off-by: Mauro Carvalho Chehab commit e9144601d364d5b81f3e63949337f8507eb58dca Author: Mauro Carvalho Chehab Date: Tue Aug 10 20:26:35 2010 -0300 i7core_edac: move #if PAGE_SHIFT to edac_core.h Signed-off-by: Mauro Carvalho Chehab commit 1288c18f48d9bf373dbed6b688cde36dc970b1ed Author: Mauro Carvalho Chehab Date: Tue Aug 10 18:57:01 2010 -0300 i7core_edac: Properly mark const static vars as such There are two groups of sysfs attributes: one for rdimm and another for udimm. Instead of changing dynamically the unique static struct for handling udimm's, declare two vars and make them constant. This avoids the risk of having two or more memory controllers, each needing a different set of attributes. While here, use const on all places where it is applicable. Signed-off-by: Mauro Carvalho Chehab edac_core: use const for constant sysfs arguments Signed-off-by: Mauro Carvalho Chehab commit 18c29002f95bc2f67c1c78d7fc7932843aa66657 Author: Mauro Carvalho Chehab Date: Tue Aug 10 18:33:27 2010 -0300 i7core_edac: move static vars to the beginning of the file While here, don't initialize probed with 0. Signed-off-by: Mauro Carvalho Chehab commit 939747bd680eb09bb98792b17a5bfd2f525afe9d Author: Mauro Carvalho Chehab Date: Tue Aug 10 11:22:01 2010 -0300 i7core_edac: Be sure that the edac pci handler will be properly released With multi-sockets, more than one edac pci handler is enabled. Be sure to un-register all instances. Signed-off-by: Mauro Carvalho Chehab commit 51f4332bb5fef869e8a89895a7bac6b4c03b4946 Author: Florian Tobias Schandinat Date: Sun Oct 24 04:02:14 2010 +0000 viafb: add initial VX900 support This patch adds basic support for the new VX900 IGP. Almost everything that was implemented for other IGPs is expected to work also on VX900 after this patch. The only known issue is that on the CRT output mode setting does not always work. It is clear that the possibility for regressions is zero. A big thanks to VIA Technologies for making this possible and supporting this work. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan Cc: Jonathan Corbet commit adac8d65f399b02e8a2222fc75c658e4b8d24f65 Author: Florian Tobias Schandinat Date: Mon Apr 26 17:31:03 2010 +0000 viafb: fix hardware acceleration for suspend & resume This patch splits the acceleration initialization in two parts: The first is only called during probe and is used to allocate resources. The second part is also called on resume to reinitalize the 2D engine. This should fix all acceleration issues after resume most notable an "invisible" cursor and as we do nothing special it is reasonable to assume that it works on all supported IGPs. Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan commit 466bc7fc4246d95cbd37edd169eafb8185e41941 Author: Florian Tobias Schandinat Date: Mon Apr 26 17:08:00 2010 +0000 viafb: make suspend and resume work (on all machines?) This patch removes the dangerous suspend and resume code that was developed for VX855 only. After this the framebuffer is expected to cause no longer serious (freezing) issues on any machines. However the hardware acceleration is broken now so only doing resume with unaccelerated framebuffers is save. This did not work previously as the 2D engine is not mapped if the framebuffer is not accelerated. The acceleration issue will be addressed later. Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan commit b75f2c01de34daf0b25cbd75fcf00511548ffa1e Author: Florian Tobias Schandinat Date: Mon Apr 26 16:37:53 2010 +0000 viafb: restore display on resume This patch makes viafb restore the display on resume by calling viafb_set_par. Resumeing has still its issues: - will probably freeze most machines (for me on VX800 reliable on the second resume) - under some configurations the screen appears on the wrong output device (reason unknown) Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan commit 3fd9b6cc38028ea64e9a39c6af9d5ad928594be6 Author: Deepak Saxena Date: Thu Apr 8 11:15:41 2010 -0600 Minimal support for viafb suspend/resume This patch adds minimal support for suspend/resume of the VIA framebuffer device. It requires a version of OFW that restores the video mode. This patch is OLPC-specific as the proper upstream solution is to move the VIA video path to using the kernel modesetting infrastructure and doing a proper save/restore in the kernel. [jc: extensive changes for 2.6.34 merge] Signed-off-by: Deepak Saxena [fts: viafb_driver moved from viafbdev.c to via-core.c] Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan commit d4a6f3c32c39132318454e77d59ab14b06f6eb02 Author: Rakib Mullick Date: Sun Oct 24 16:28:47 2010 +0600 sched_stat: Update sched_info_queue/dequeue() code comments Remove some sched_info_queue(), sched_info_dequeue() code comment. We no longer belongs to the era of O(1) and we don't use active or expired array anymore. Signed-off-by: Rakib Mullick Cc: Oleg Nesterov Cc: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar commit 97c44b2dbd0060e2e6bd56236eb638ab02ec7f30 Author: Mandar Joshi Date: Sun Oct 24 04:07:00 2010 +0000 ALSA: usb - Creative USB X-Fi volume knob support Adds an entry for Creative USB X-Fi to the rc_config array in mixer_quirks.c to allow use of volume knob on the device. The action of the volume knob is received by lirc when its using the alsa_usb driver. Signed-off-by: Mandar Joshi Signed-off-by: Takashi Iwai commit 2a31339aa014c0d0b97c57d3ebc997732f8f47fc Author: Jan Kiszka Date: Mon Oct 18 15:38:40 2010 +0200 KVM: Drop CONFIG_DMAR dependency around kvm_iommu_map_pages We also have to call kvm_iommu_map_pages for CONFIG_AMD_IOMMU. So drop the dependency on Intel IOMMU, kvm_iommu_map_pages will be a nop anyway if CONFIG_IOMMU_API is not defined. KVM-Stable-Tag. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti commit d7a79b6c80fdbe4366484805ee07a4735fc427d8 Author: Jan Kiszka Date: Thu Oct 14 13:59:04 2010 +0200 KVM: Fix signature of kvm_iommu_map_pages stub Breaks otherwise if CONFIG_IOMMU_API is not set. KVM-Stable-Tag. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti commit 77db5cbd29b7cb0e0fb4fd146e7f7ac2831a025a Author: Huang Ying Date: Fri Oct 8 16:24:15 2010 +0800 KVM: MCE: Send SRAR SIGBUS directly Originally, SRAR SIGBUS is sent to QEMU-KVM via touching the poisoned page. But commit 96054569190bdec375fe824e48ca1f4e3b53dd36 prevents the signal from being sent. So now the signal is sent via force_sig_info_fault directly. [marcelo: use send_sig_info instead] Reported-by: Dean Nelson Signed-off-by: Huang Ying Signed-off-by: Marcelo Tosatti commit 5854dbca9b235f8cdd414a0961018763d2d5bf77 Author: Huang Ying Date: Fri Oct 8 16:24:14 2010 +0800 KVM: MCE: Add MCG_SER_P into KVM_MCE_CAP_SUPPORTED Now we have MCG_SER_P (and corresponding SRAO/SRAR MCE) support in kernel and QEMU-KVM, the MCG_SER_P should be added into KVM_MCE_CAP_SUPPORTED to make all these code really works. Reported-by: Dean Nelson Signed-off-by: Huang Ying Signed-off-by: Marcelo Tosatti commit 9611c187774f0e20c258c23ced2599c44bd2fef4 Author: Nicolas Kaiser Date: Wed Oct 6 14:23:22 2010 +0200 KVM: fix typo in copyright notice Fix typo in copyright notice. Signed-off-by: Nicolas Kaiser Signed-off-by: Marcelo Tosatti commit 395c6b0a9d56fe7fdb7aeda12795d0eb02475d24 Author: Avi Kivity Date: Mon Oct 4 12:55:49 2010 +0200 KVM: Disable interrupts around get_kernel_ns() get_kernel_ns() wants preemption disabled. It doesn't make a lot of sense during the get/set ioctls (no way to make them non-racy) but the callee wants it. Signed-off-by: Avi Kivity commit 7ebaf15eefe7b019def72bd9d4420c7bc51ed69e Author: Avi Kivity Date: Sun Oct 3 18:51:39 2010 +0200 KVM: MMU: Avoid sign extension in mmu_alloc_direct_roots() pae root address Signed-off-by: Avi Kivity commit 3377078027dc54dc2a5acb2efa09587e7ac1cbd9 Author: Xiao Guangrong Date: Tue Sep 28 17:03:14 2010 +0800 KVM: MMU: move access code parsing to FNAME(walk_addr) function Move access code parsing from caller site to FNAME(walk_addr) function Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 6903074c367cfb13166c2974d6a886fdc7a00d21 Author: Xiao Guangrong Date: Mon Sep 27 18:09:29 2010 +0800 KVM: MMU: audit: check whether have unsync sps after root sync After root synced, all unsync sps are synced, this patch add a check to make sure it's no unsync sps in VCPU's page table Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 38904e128778c38809daf44a1dabc7f25fa8d83e Author: Xiao Guangrong Date: Mon Sep 27 18:07:59 2010 +0800 KVM: MMU: audit: introduce audit_printk to cleanup audit code Introduce audit_printk, and record audit point instead audit name Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit c42fffe3a3aa8c62b8028fff32d18156f5325c3b Author: Xiao Guangrong Date: Mon Sep 27 18:07:07 2010 +0800 KVM: MMU: audit: unregister audit tracepoints before module unloaded fix: Call Trace: [] ? kvm_mmu_pte_write+0x229/0x911 [kvm] [] ? gfn_to_memslot+0x39/0xa0 [kvm] [] ? mark_page_dirty+0x16/0x2e [kvm] [] ? kvm_write_guest_page+0x67/0x7f [kvm] [] ? local_clock+0x2a/0x3b [] emulator_write_phys+0x46/0x54 [kvm] ...... Code: Bad RIP value. RIP [] 0xffffffffa0172056 RSP CR2: ffffffffa0172056 Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 98224bf1d1783a25ccede29ab08309424ec8de25 Author: Xiao Guangrong Date: Mon Sep 27 18:06:16 2010 +0800 KVM: MMU: audit: fix vcpu's spte walking After nested nested paging, it may using long mode to shadow 32/PAE paging guest, so this patch fix it Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 33f91edb9211f5c0392071f9eb01958ec69f2193 Author: Xiao Guangrong Date: Mon Sep 27 18:05:00 2010 +0800 KVM: MMU: set access bit for direct mapping Set access bit while setup up direct page table if it's nonpaing or npt enabled, it's good for CPU's speculate access Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 20bd40dc6492da293993559555df07d467fd202e Author: Xiao Guangrong Date: Mon Sep 27 18:03:27 2010 +0800 KVM: MMU: cleanup for error mask set while walk guest page table Small cleanup for set page fault error code Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 6292757fb0e758748fdb441861f8c50d397de9f0 Author: Xiao Guangrong Date: Mon Sep 27 18:02:12 2010 +0800 KVM: MMU: update 'root_hpa' out of loop in PAE shadow path The value of 'vcpu->arch.mmu.pae_root' is not modified, so we can update 'root_hpa' out of the loop. Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 7129eecac10681f69cb00c0323ee915feceb57eb Author: Sheng Yang Date: Tue Sep 28 16:33:32 2010 +0800 KVM: x86 emulator: Eliminate compilation warning in x86_decode_insn() Eliminate: arch/x86/kvm/emulate.c:801: warning: ‘sv’ may be used uninitialized in this function on gcc 4.1.2 Signed-off-by: Sheng Yang Signed-off-by: Marcelo Tosatti commit 50933623e50d8730cc1a65853c153b3b4c93b629 Author: Jan Kiszka Date: Sun Sep 26 13:00:53 2010 +0200 KVM: x86: Fix constant type in kvm_get_time_scale Older gcc versions complain about the improper type (for x86-32), 4.5 seems to fix this silently. However, we should better use the right type initially. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity commit 07d6f555d536aad1d74bb8b41dae9385007ecc26 Author: Jan Kiszka Date: Tue Sep 28 16:37:42 2010 +0200 KVM: VMX: Add AX to list of registers clobbered by guest switch By chance this caused no harm so far. We overwrite AX during switch to/from guest context, so we must declare this. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity commit 19b6a85b78a5d4b466c537bdbf0eaecae5e2c4e2 Author: Arjan Koers <0h61vkll2ly8@xutrox.com> Date: Mon Aug 2 23:35:28 2010 +0200 KVM guest: Move a printk that's using the clock before it's ready Fix a hang during SMP kernel boot on KVM that showed up after commit 489fb490dbf8dab0249ad82b56688ae3842a79e8 (2.6.35) and 59aab522154a2f17b25335b63c1cf68a51fb6ae0 (2.6.34.1). The problem only occurs when CONFIG_PRINTK_TIME is set. KVM-Stable-Tag. Signed-off-by: Arjan Koers <0h61vkll2ly8@xutrox.com> Signed-off-by: Avi Kivity commit c285545f813d7b0ce989fd34e42ad1fe785dc65d Author: Zachary Amsden Date: Sat Sep 18 14:38:15 2010 -1000 KVM: x86: TSC catchup mode Negate the effects of AN TYM spell while kvm thread is preempted by tracking conversion factor to the highest TSC rate and catching the TSC up when it has fallen behind the kernel view of time. Note that once triggered, we don't turn off catchup mode. A slightly more clever version of this is possible, which only does catchup when TSC rate drops, and which specifically targets only CPUs with broken TSC, but since these all are considered unstable_tsc(), this patch covers all necessary cases. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 34c238a1d1832d7b1f655641f52782e86396b30a Author: Zachary Amsden Date: Sat Sep 18 14:38:14 2010 -1000 KVM: x86: Rename timer function This just changes some names to better reflect the usage they will be given. Separated out to keep confusion to a minimum. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 5f4e3f882731c65b5d64a2ff743fda96eaebb9ee Author: Zachary Amsden Date: Sat Sep 18 14:38:13 2010 -1000 KVM: x86: Make math work for other scales The math in kvm_get_time_scale relies on the fact that NSEC_PER_SEC < 2^32. To use the same function to compute arbitrary time scales, we must extend the first reduction step to shrink the base rate to a 32-bit value, and possibly reduce the scaled rate into a 32-bit as well. Note we must take care to avoid an arithmetic overflow when scaling up the tps32 value (this could not happen with the fixed scaled value of NSEC_PER_SEC, but can happen with scaled rates above 2^31. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 624d84cfe63b5afdd087bf5b2075a8a8cac5c83f Author: Avi Kivity Date: Tue Sep 21 19:59:44 2010 +0200 KVM: cpu_relax() during spin waiting for reboot It doesn't really matter, but if we spin, we should spin in a more relaxed manner. This way, if something goes wrong at least it won't contribute to global warming. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 49e9d557f9b6e9639390b63b645f2def8dde5f1b Author: Avi Kivity Date: Sun Sep 19 14:34:08 2010 +0200 KVM: VMX: Respect interrupt window in big real mode If an interrupt is pending, we need to stop emulation so we can inject it. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit a92601bb707f6f49fd5563ef3d09928e70cc222e Author: Mohammed Gamal Date: Sun Sep 19 14:34:07 2010 +0200 KVM: VMX: Emulated real mode interrupt injection Replace the inject-as-software-interrupt hack we currently have with emulated injection. Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 63995653ade16deacaea5b49ceaf6376314593ac Author: Mohammed Gamal Date: Sun Sep 19 14:34:06 2010 +0200 KVM: Add kvm_inject_realmode_interrupt() wrapper This adds a wrapper function kvm_inject_realmode_interrupt() around the emulator function emulate_int_real() to allow real mode interrupt injection. [avi: initialize operand and address sizes before emulating interrupts] [avi: initialize rip for real mode interrupt injection] [avi: clear interrupt pending flag after emulating interrupt injection] Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 4ab8e02404fcbc16beefac66de24dbb2706fe2f3 Author: Mohammed Gamal Date: Sun Sep 19 14:34:05 2010 +0200 KVM: x86 emulator: Expose emulate_int_real() Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit cb16a7b3872e9a806f16b1f09b59103fafc7b796 Author: Hillf Danton Date: Sat Sep 18 08:41:02 2010 +0800 KVM: MMU: fix counting of rmap entries in rmap_add() It seems that rmap entries are under counted. Signed-off-by: Hillf Danton Signed-off-by: Marcelo Tosatti commit a182d8737f0bdfb684b3255c8e266e71999e2225 Author: Xiao Guangrong Date: Mon Sep 20 22:17:48 2010 +0800 KVM: document 'kvm.mmu_audit' parameter Document this parameter into Documentation/kernel-parameters.txt Signed-off-by: Xiao Guangrong Signed-off-by: Marcelo Tosatti commit 8475f94abfa40d6975923ff022280cf7250fc5fb Author: Xiao Guangrong Date: Mon Sep 20 22:16:45 2010 +0800 KVM: fix the description of kvm-amd.nested in documentation The default state of 'kvm-amd.nested' is enabled now, so fix the documentation Signed-off-by: Xiao Guangrong Signed-off-by: Marcelo Tosatti commit a0a07cd2c5fc8703db8a07287cdde3d29a286082 Author: Gleb Natapov Date: Mon Sep 20 10:15:32 2010 +0200 KVM: SVM: do not generate "external interrupt exit" if other exit is pending Nested SVM checks for external interrupt after injecting nested exception. In case there is external interrupt pending the code generates "external interrupt exit" and overwrites previous exit info. If previously injected exception already generated exit it will be lost. Signed-off-by: Gleb Natapov Acked-by: Joerg Roedel Signed-off-by: Marcelo Tosatti commit f4f510508741680e423524c222f615276ca6222c Author: Avi Kivity Date: Sun Sep 19 18:44:07 2010 +0200 KVM: Convert PIC lock from raw spinlock to ordinary spinlock The PIC code used to be called from preempt_disable() context, which wasn't very good for PREEMPT_RT. That is no longer the case, so move back from raw_spinlock_t to spinlock_t. Signed-off-by: Avi Kivity Acked-by: Thomas Gleixner Signed-off-by: Marcelo Tosatti commit 28e4639adf0c9f26f6bb56149b7ab547bf33bb95 Author: Zachary Amsden Date: Sat Sep 18 14:38:12 2010 -1000 KVM: x86: Fix kvmclock bug If preempted after kvmclock values are updated, but before hardware virtualization is entered, the last tsc time as read by the guest is never set. It underflows the next time kvmclock is updated if there has not yet been a successful entry / exit into hardware virt. Fix this by simply setting last_tsc to the newly read tsc value so that any computed nsec advance of kvmclock is nulled. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 0959ffacf39b1ae7f56072b0c64429ee528100ca Author: Joerg Roedel Date: Tue Sep 14 17:46:12 2010 +0200 KVM: MMU: Don't track nested fault info in error-code This patch moves the detection whether a page-fault was nested or not out of the error code and moves it into a separate variable in the fault struct. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 625831a3f40d330c611fe37cf501d80d611921f9 Author: Avi Kivity Date: Thu Jul 22 13:09:54 2010 +0300 KVM: VMX: Move fixup_rmode_irq() to avoid forward declaration No code changes. Signed-off-by: Avi Kivity commit b463a6f744a263fccd7da14db1afdc880371a280 Author: Avi Kivity Date: Tue Jul 20 15:06:17 2010 +0300 KVM: Non-atomic interrupt injection Change the interrupt injection code to work from preemptible, interrupts enabled context. This works by adding a ->cancel_injection() operation that undoes an injection in case we were not able to actually enter the guest (this condition could never happen with atomic injection). Signed-off-by: Avi Kivity commit 83422e17c19d61399cab7dbf9bf40ff9af2a7dd2 Author: Avi Kivity Date: Tue Jul 20 14:43:23 2010 +0300 KVM: VMX: Parameterize vmx_complete_interrupts() for both exit and entry Currently vmx_complete_interrupts() can decode event information from vmx exit fields into the generic kvm event queues. Make it able to decode the information from the entry fields as well by parametrizing it. Signed-off-by: Avi Kivity commit 537b37e2674b7e4390a490e03cae53ca9ca99e30 Author: Avi Kivity Date: Thu Jul 22 12:54:21 2010 +0300 KVM: VMX: Move real-mode interrupt injection fixup to vmx_complete_interrupts() This allows reuse of vmx_complete_interrupts() for cancelling injections. Signed-off-by: Avi Kivity commit 51aa01d13d4a64422cf8095205fc4a02322aca2c Author: Avi Kivity Date: Tue Jul 20 14:31:20 2010 +0300 KVM: VMX: Split up vmx_complete_interrupts() vmx_complete_interrupts() does too much, split it up: - vmx_vcpu_run() gets the "cache important vmcs fields" part - a new vmx_complete_atomic_exit() gets the parts that must be done atomically - a new vmx_recover_nmi_blocking() does what its name says - vmx_complete_interrupts() retains the event injection recovery code This helps in reducing the work done in atomic context. Signed-off-by: Avi Kivity commit 3842d135ff246b6543f1df77f5600e12094a6845 Author: Avi Kivity Date: Tue Jul 27 12:30:24 2010 +0300 KVM: Check for pending events before attempting injection Instead of blindly attempting to inject an event before each guest entry, check for a possible event first in vcpu->requests. Sites that can trigger event injection are modified to set KVM_REQ_EVENT: - interrupt, nmi window opening - ppr updates - i8259 output changes - local apic irr changes - rflags updates - gif flag set - event set on exit This improves non-injecting entry performance, and sets the stage for non-atomic injection. Signed-off-by: Avi Kivity commit b0bc3ee2b54fcea0df42cc9aa05103b1ccd89db0 Author: Avi Kivity Date: Mon Sep 13 16:45:28 2010 +0200 KVM: MMU: Fix regression with ept memory types merged into non-ept page tables Commit "KVM: MMU: Make tdp_enabled a mmu-context parameter" made real-mode set ->direct_map, and changed the code that merges in the memory type depend on direct_map instead of tdp_enabled. However, in this case what really matters is tdp, not direct_map, since tdp changes the pte format regardless of whether the mapping is direct or not. As a result, real-mode shadow mappings got corrupted with ept memory types. The result was a huge slowdown, likely due to the cache being disabled. Change it back as the simplest fix for the regression (real fix is to move all that to vmx code, and not use tdp_enabled as a synonym for ept). Signed-off-by: Avi Kivity commit c39cbd2a0012334714409eec1e9cf4d542e359e9 Author: Avi Kivity Date: Sun Sep 12 16:39:11 2010 +0200 KVM: Document that KVM_GET_SUPPORTED_CPUID may return emulated values Signed-off-by: Avi Kivity commit 4c62a2dc92518c5adf434df8e5c2283c6762672a Author: Joerg Roedel Date: Fri Sep 10 17:31:06 2010 +0200 KVM: X86: Report SVM bit to userspace only when supported This patch fixes a bug in KVM where it _always_ reports the support of the SVM feature to userspace. But KVM only supports SVM on AMD hardware and only when it is enabled in the kernel module. This patch fixes the wrong reporting. Cc: stable@kernel.org Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 3d4aeaad8bb8f8084a414819934b73ab49c26c92 Author: Joerg Roedel Date: Fri Sep 10 17:31:05 2010 +0200 KVM: SVM: Report Nested Paging support to userspace This patch implements the reporting of the nested paging feature support to userspace. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 55c5e464fcc28ee763d40561abf2b259131dd703 Author: Joerg Roedel Date: Fri Sep 10 17:31:04 2010 +0200 KVM: SVM: Expect two more candiates for exit_int_info This patch adds INTR and NMI intercepts to the list of expected intercepts with an exit_int_info set. While this can't happen on bare metal it is architectural legal and may happen with KVMs SVM emulation. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 4b16184c1ccafa4b0c188c622ea532fb90e6f5b0 Author: Joerg Roedel Date: Fri Sep 10 17:31:03 2010 +0200 KVM: SVM: Initialize Nested Nested MMU context on VMRUN This patch adds code to initialize the Nested Nested Paging MMU context when the L1 guest executes a VMRUN instruction and has nested paging enabled in its VMCB. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 5bd2edc341d11af175e759a546e4335ba3e0584f Author: Joerg Roedel Date: Fri Sep 10 17:31:02 2010 +0200 KVM: SVM: Implement MMU helper functions for Nested Nested Paging This patch adds the helper functions which will be used in the mmu context for handling nested nested page faults. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 2d48a985c7bbcd72b4e92e301ea96bf1252ffc61 Author: Joerg Roedel Date: Fri Sep 10 17:31:01 2010 +0200 KVM: MMU: Track NX state in struct kvm_mmu With Nested Paging emulation the NX state between the two MMU contexts may differ. To make sure that always the right fault error code is recorded this patch moves the NX state into struct kvm_mmu so that the code can distinguish between L1 and L2 NX state. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 81407ca553c0c852b8cd3f38f3ec362d307f829b Author: Joerg Roedel Date: Fri Sep 10 17:31:00 2010 +0200 KVM: MMU: Allow long mode shadows for legacy page tables Currently the KVM softmmu implementation can not shadow a 32 bit legacy or PAE page table with a long mode page table. This is a required feature for nested paging emulation because the nested page table must alway be in host format. So this patch implements the missing pieces to allow long mode page tables for page table types. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 651dd37a9ce6fdacdcd75da86619c62111efcbc2 Author: Joerg Roedel Date: Fri Sep 10 17:30:59 2010 +0200 KVM: MMU: Refactor mmu_alloc_roots function This patch factors out the direct-mapping paths of the mmu_alloc_roots function into a seperate function. This makes it a lot easier to avoid all the unnecessary checks done in the shadow path which may break when running direct. In fact, this patch already fixes a problem when running PAE guests on a PAE shadow page table. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit d41d1895eb856b5d1c82f3be106b7a3e75e4216b Author: Joerg Roedel Date: Fri Sep 10 17:30:58 2010 +0200 KVM: MMU: Introduce kvm_pdptr_read_mmu This function is implemented to load the pdptr pointers of the currently running guest (l1 or l2 guest). Therefore it takes care about the current paging mode and can read pdptrs out of l2 guest physical memory. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit ff03a073e715d49b5cfeeec862649b1df2481ae0 Author: Joerg Roedel Date: Fri Sep 10 17:30:57 2010 +0200 KVM: MMU: Add kvm_mmu parameter to load_pdptrs function This function need to be able to load the pdptrs from any mmu context currently in use. So change this function to take an kvm_mmu parameter to fit these needs. As a side effect this patch also moves the cached pdptrs from vcpu_arch into the kvm_mmu struct. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit d47f00a62b2e14b4a811b87bdb9ea1809693a377 Author: Joerg Roedel Date: Fri Sep 10 17:30:56 2010 +0200 KVM: X86: Propagate fetch faults KVM currently ignores fetch faults in the instruction emulator. With nested-npt we could have such faults. This patch adds the code to handle these. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit d4f8cf664e4c1fd579df6b6e6378335c9f79d790 Author: Joerg Roedel Date: Fri Sep 10 17:30:55 2010 +0200 KVM: MMU: Propagate the right fault back to the guest after gva_to_gpa This patch implements logic to make sure that either a page-fault/page-fault-vmexit or a nested-page-fault-vmexit is propagated back to the guest. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 02f59dc9f1f51d2148d87d48f84adb455a4fd697 Author: Joerg Roedel Date: Fri Sep 10 17:30:54 2010 +0200 KVM: MMU: Introduce init_kvm_nested_mmu() This patch introduces the init_kvm_nested_mmu() function which is used to re-initialize the nested mmu when the l2 guest changes its paging mode. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 3d06b8bfd44ec421c386241f7c5af66c8200cbf4 Author: Joerg Roedel Date: Fri Sep 10 17:30:53 2010 +0200 KVM: MMU: Introduce kvm_read_nested_guest_page() This patch introduces the kvm_read_guest_page_x86 function which reads from the physical memory of the guest. If the guest is running in guest-mode itself with nested paging enabled it will read from the guest's guest physical memory instead. The patch also changes changes the code to use this function where it is necessary. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 2329d46d213d0721dafae18db29f54b196f11468 Author: Joerg Roedel Date: Fri Sep 10 17:30:52 2010 +0200 KVM: MMU: Make walk_addr_generic capable for two-level walking This patch uses kvm_read_guest_page_tdp to make the walk_addr_generic functions suitable for two-level page table walking. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit ec92fe44e7ff94d04d8305e49efcffd8773e1cf6 Author: Joerg Roedel Date: Fri Sep 10 17:30:51 2010 +0200 KVM: X86: Add kvm_read_guest_page_mmu function This patch adds a function which can read from the guests physical memory or from the guest's guest physical memory. This will be used in the two-dimensional page table walker. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 6539e738f65a8f1fc7806295d5d701fba4008343 Author: Joerg Roedel Date: Fri Sep 10 17:30:50 2010 +0200 KVM: MMU: Implement nested gva_to_gpa functions This patch adds the functions to do a nested l2_gva to l1_gpa page table walk. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 14dfe855f978181cd611ec018e5ceba860a98545 Author: Joerg Roedel Date: Fri Sep 10 17:30:49 2010 +0200 KVM: X86: Introduce pointer to mmu context used for gva_to_gpa This patch introduces the walk_mmu pointer which points to the mmu-context currently used for gva_to_gpa translations. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit c30a358d33e0e111f06e54a4a4125371e6b6693c Author: Joerg Roedel Date: Fri Sep 10 17:30:48 2010 +0200 KVM: MMU: Add infrastructure for two-level page walker This patch introduces a mmu-callback to translate gpa addresses in the walk_addr code. This is later used to translate l2_gpa addresses into l1_gpa addresses. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 1e301feb079e8ee6091bb75283e960fc33059a68 Author: Joerg Roedel Date: Fri Sep 10 17:30:47 2010 +0200 KVM: MMU: Introduce generic walk_addr function This is the first patch in the series towards a generic walk_addr implementation which could walk two-dimensional page tables in the end. In this first step the walk_addr function is renamed into walk_addr_generic which takes a mmu context as an additional parameter. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 8df25a328a6ca3bd0f048278f4d5ae0a1f6fadc1 Author: Joerg Roedel Date: Fri Sep 10 17:30:46 2010 +0200 KVM: MMU: Track page fault data in struct vcpu This patch introduces a struct with two new fields in vcpu_arch for x86: * fault.address * fault.error_code This will be used to correctly propagate page faults back into the guest when we could have either an ordinary page fault or a nested page fault. In the case of a nested page fault the fault-address is different from the original address that should be walked. So we need to keep track about the real fault-address. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 3241f22da85d26505b39f525a88f52ebd1235975 Author: Joerg Roedel Date: Fri Sep 10 17:30:45 2010 +0200 KVM: MMU: Let is_rsvd_bits_set take mmu context instead of vcpu This patch changes is_rsvd_bits_set() function prototype to take only a kvm_mmu context instead of a full vcpu. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 52fde8df7dd13d90f5f8dc43157418bff968d90a Author: Joerg Roedel Date: Fri Sep 10 17:30:44 2010 +0200 KVM: MMU: Introduce kvm_init_shadow_mmu helper function Some logic of the init_kvm_softmmu function is required to build the Nested Nested Paging context. So factor the required logic into a seperate function and export it. Also make the whole init path suitable for more than one mmu context. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit cb659db8a7d1ed558898f533a957dfc342f9499d Author: Joerg Roedel Date: Fri Sep 10 17:30:43 2010 +0200 KVM: MMU: Introduce inject_page_fault function pointer This patch introduces an inject_page_fault function pointer into struct kvm_mmu which will be used to inject a page fault. This will be used later when Nested Nested Paging is implemented. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 5777ed340d89cdc6c76a5c552337a3861b40a806 Author: Joerg Roedel Date: Fri Sep 10 17:30:42 2010 +0200 KVM: MMU: Introduce get_cr3 function pointer This function pointer in the MMU context is required to implement Nested Nested Paging. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 1c97f0a04c74196880f22a563134c8f6d0b9d752 Author: Joerg Roedel Date: Fri Sep 10 17:30:41 2010 +0200 KVM: X86: Introduce a tdp_set_cr3 function This patch introduces a special set_tdp_cr3 function pointer in kvm_x86_ops which is only used for tpd enabled mmu contexts. This allows to remove some hacks from svm code. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit f43addd46168110d572dcf69100cb215a4e9fd08 Author: Joerg Roedel Date: Fri Sep 10 17:30:40 2010 +0200 KVM: MMU: Make set_cr3 a function pointer in kvm_mmu This is necessary to implement Nested Nested Paging. As a side effect this allows some cleanups in the SVM nested paging code. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit c5a78f2b649ae75ae788e7622ca5a586af2cb35a Author: Joerg Roedel Date: Fri Sep 10 17:30:39 2010 +0200 KVM: MMU: Make tdp_enabled a mmu-context parameter This patch changes the tdp_enabled flag from its global meaning to the mmu-context and renames it to direct_map there. This is necessary for Nested SVM with emulation of Nested Paging where we need an extra MMU context to shadow the Nested Nested Page Table. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 957446afce22df9a42b9482fcd55985f4037fe66 Author: Joerg Roedel Date: Fri Sep 10 17:30:38 2010 +0200 KVM: MMU: Check for root_level instead of long mode The walk_addr function checks for !is_long_mode in its 64 bit version. But what is meant here is a check for pae paging. Change the condition to really check for pae paging so that it also works with nested nested paging. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 7b91409822ed37f2a58974e49498bdbe92ddd93c Author: Jes Sorensen Date: Thu Sep 9 12:06:46 2010 +0200 KVM: x86: Emulate MSR_EBC_FREQUENCY_ID Some operating systems store data about the host processor at the time of installation, and when booted on a more uptodate cpu tries to read MSR_EBC_FREQUENCY_ID. This has been found with XP. Signed-off-by: Jes Sorensen Reviewed-by: Juan Quintela Signed-off-by: Marcelo Tosatti commit b9a52c4b78ec254ee00cce47d75efd89b09f13dd Author: Jes Sorensen Date: Thu Sep 9 12:06:45 2010 +0200 x86: Define MSR_EBC_FREQUENCY_ID Signed-off-by: Jes Sorensen Signed-off-by: Marcelo Tosatti commit b75f4eb34122b60ee4f07ec89973d1589002c68a Author: Roedel, Joerg Date: Fri Sep 3 14:21:40 2010 +0200 KVM: SVM: Clean up rip handling in vmrun emulation This patch changes the rip handling in the vmrun emulation path from using next_rip to the generic kvm register access functions. Signed-off-by: Joerg Roedel Signed-off-by: Marcelo Tosatti commit cda0008299a06f0d7218c6037c3c02d7a865e954 Author: Joerg Roedel Date: Thu Sep 2 17:29:46 2010 +0200 KVM: SVM: Restore correct registers after sel_cr0 intercept emulation This patch implements restoring of the correct rip, rsp, and rax after the svm emulation in KVM injected a selective_cr0 write intercept into the guest hypervisor. The problem was that the vmexit is emulated in the instruction emulation which later commits the registers right after the write-cr0 instruction. So the l1 guest will continue to run with the l2 rip, rsp and rax resulting in unpredictable behavior. This patch is not the final word, it is just an easy patch to fix the issue. The real fix will be done when the instruction emulator is made aware of nested virtualization. Until this is done this patch fixes the issue and provides an easy way to fix this in -stable too. Cc: stable@kernel.org Signed-off-by: Joerg Roedel Signed-off-by: Marcelo Tosatti commit f87f928882d080eaec8b0d76aecff003d664697d Author: Joerg Roedel Date: Thu Sep 2 17:29:45 2010 +0200 KVM: MMU: Fix 32 bit legacy paging with NPT This patch fixes 32 bit legacy paging with NPT enabled. The mmu_check_root call on the top-level of the loop causes root_gfn to take values (in the tdp_enabled path) which are outside of guest memory. So the mmu_check_root call fails at some point in the loop interation causing the guest to tiple-fault. This patch changes the mmu_check_root calls to the places where they are really necessary. As a side-effect it introduces a check for the root of a pae page table too. Signed-off-by: Joerg Roedel Signed-off-by: Marcelo Tosatti commit 26e673c3003bc8f24bdbbdcb8bc91a78556f579a Author: Alexander Graf Date: Fri Sep 3 10:22:19 2010 +0200 KVM: PPC: Move of include to __KERNEL__ section We have to protect the include for linux/of.h by __KERNEL__ so it doesn't accidently get referenced outside. This patch fixes this and makes the tree compile again. Reported-by: Stephen Rothwell Signed-off-by: Alexander Graf commit d1e87c7ee65a20b10faf7e59dbe2cc934c32473b Author: Alexander Graf Date: Tue Aug 31 04:25:39 2010 +0200 KVM: PPC: Add documentation for magic page enhancements This documents how to detect additional features inside the magic page when a guest maps it. Signed-off-by: Alexander Graf commit 344941beb9926418663e171a347d1a31d727fe45 Author: Alexander Graf Date: Tue Aug 31 03:45:39 2010 +0200 KVM: PPC: Fix compile error in e500_tlb.c The e500_tlb.c file didn't compile for me due to the following error: arch/powerpc/kvm/e500_tlb.c: In function ‘kvmppc_e500_shadow_map’: arch/powerpc/kvm/e500_tlb.c:300: error: format ‘%lx’ expects type ‘long unsigned int’, but argument 2 has type ‘gfn_t’ So let's explicitly cast the argument to make printk happy. Signed-off-by: Alexander Graf commit 21e537ba149be99c4d31a04949ca6e0770379662 Author: Kyle Moffett Date: Mon Aug 30 11:38:39 2010 -0400 KVM: PPC: e500_tlb: Fix a minor copy-paste tracing bug The kvmppc_e500_stlbe_invalidate() function was trying to pass too many parameters to trace_kvm_stlb_inval(). This appears to be a bad copy-paste from a call to trace_kvm_stlb_write(). Signed-off-by: Kyle Moffett Signed-off-by: Alexander Graf commit 6f7a2bd41fa8d52cbf5f32fdf8ba659d4ce4ae59 Author: Alexander Graf Date: Tue Aug 31 02:03:32 2010 +0200 KVM: PPC: Document KVM_INTERRUPT ioctl This adds some documentation for the KVM_INTERRUPT special cases that PowerPC now implements. Signed-off-by: Alexander Graf commit c5335f17651de5075313524ccc3881527268966f Author: Alexander Graf Date: Mon Aug 30 14:03:24 2010 +0200 KVM: PPC: Implement level interrupts for BookE BookE also wants to support level based interrupts, so let's implement all the necessary logic there. We need to trick a bit here because the irqprios are 1:1 assigned to architecture defined values. But since there is some space left there, we can just pick a random one and move it later on - it's internal anyways. Signed-off-by: Alexander Graf commit 7b4203e8cb5c5d9bc49da62b7a6fa4ba876a1b3f Author: Alexander Graf Date: Mon Aug 30 13:50:45 2010 +0200 KVM: PPC: Expose level based interrupt cap Now that we have all the level interrupt magic in place, let's expose the capability to user space, so it can make use of it! Signed-off-by: Alexander Graf commit 17bd158006a33615270f9dba15c62f49bd447435 Author: Alexander Graf Date: Mon Aug 30 10:44:15 2010 +0200 KVM: PPC: Implement Level interrupts on Book3S The current interrupt logic is just completely broken. We get a notification from user space, telling us that an interrupt is there. But then user space expects us that we just acknowledge an interrupt once we deliver it to the guest. This is not how real hardware works though. On real hardware, the interrupt controller pulls the external interrupt line until it gets notified that the interrupt was received. So in reality we have two events: pulling and letting go of the interrupt line. To maintain backwards compatibility, I added a new request for the pulling part. The letting go part was implemented earlier already. With this in place, we can now finally start guests that do not randomly stall and stop to work at random times. This patch implements above logic for Book3S. Signed-off-by: Alexander Graf commit 591bd8e7b4c8b9246d7a1c81ffbd28e35dc5de4e Author: Alexander Graf Date: Tue Aug 17 22:08:39 2010 +0200 KVM: PPC: Enable napping only for Book3s_64 Before I incorrectly enabled napping also for BookE, which would result in needless dcache flushes. Since we only need to force enable napping on Book3s_64 because it doesn't go into MSR_POW otherwise, we can just #ifdef that code to this particular platform. Reported-by: Scott Wood Signed-off-by: Alexander Graf commit ebc65874e9e8f3b8bbbc69aa49acd7489cd41c52 Author: Hollis Blanchard Date: Sat Aug 7 10:33:58 2010 -0700 KVM: PPC: allow ppc440gp to pass the compatibility check Match only the first part of cur_cpu_spec->platform. 440GP (the first 440 processor) is identified by the string "ppc440gp", while all later 440 processors use simply "ppc440". Signed-off-by: Hollis Blanchard Signed-off-by: Alexander Graf commit 0b3bafc8e5867039e265869749abbb7ea6dd2c8b Author: Hollis Blanchard Date: Sat Aug 7 10:33:57 2010 -0700 KVM: PPC: fix compilation of "dump tlbs" debug function Missing local variable. Signed-off-by: Hollis Blanchard Signed-off-by: Alexander Graf commit 082decf29a9fe5bd5dcbfb26223e44edd9deabed Author: Hollis Blanchard Date: Sat Aug 7 10:33:56 2010 -0700 KVM: PPC: initialize IVORs in addition to IVPR Developers can now tell at a glace the exact type of the premature interrupt, instead of just knowing that there was some premature interrupt. Signed-off-by: Hollis Blanchard Signed-off-by: Alexander Graf commit 296c19d0b4072dd9594daeec532563e56bddd119 Author: Alexander Graf Date: Sun Aug 15 08:39:19 2010 +0200 KVM: PPC: Don't put MSR_POW in MSR On Book3S a mtmsr with the MSR_POW bit set indicates that the OS is in idle and only needs to be waked up on the next interrupt. Now, unfortunately we let that bit slip into the stored MSR value which is not what the real CPU does, so that we ended up executing code like this: r = mfmsr(); /* r containts MSR_POW */ mtmsr(r | MSR_EE); This obviously breaks, as we're going into idle mode in code sections that don't expect to be idling. This patch masks MSR_POW out of the stored MSR value on wakeup, making guests happy again. Signed-off-by: Alexander Graf commit 8b6db3bc965c204db6868d4005808b4fdc9c46d7 Author: Alexander Graf Date: Sun Aug 15 08:04:24 2010 +0200 KVM: PPC: Implement correct SID mapping on Book3s_32 Up until now we were doing segment mappings wrong on Book3s_32. For Book3s_64 we were using a trick where we know that a single mmu_context gives us 16 bits of context ids. The mm system on Book3s_32 instead uses a clever algorithm to distribute VSIDs across the available range, so a context id really only gives us 16 available VSIDs. To keep at least a few guest processes in the SID shadow, let's map a number of contexts that we can use as VSID pool. This makes the code be actually correct and shouldn't hurt performance too much. Signed-off-by: Alexander Graf commit ad0873763a83e7b31ba87a85ec2027dd6a9d7b55 Author: Alexander Graf Date: Tue Aug 17 11:41:44 2010 +0200 KVM: PPC: Force enable nap on KVM There are some heuristics in the PPC power management code that try to find out if the particular hardware we're running on supports proper power management or just hangs the machine when going into nap mode. Since we know that KVM is safe with nap, let's force enable it in the PV code once we're certain that we are on a KVM VM. Signed-off-by: Alexander Graf commit df08bd10266ce6132278f6b4ddc4bb0a12330b56 Author: Alexander Graf Date: Thu Aug 5 15:44:41 2010 +0200 KVM: PPC: Make PV mtmsrd L=1 work with r30 and r31 We had an arbitrary limitation in mtmsrd L=1 that kept us from using r30 and r31 as input registers. Let's get rid of that and get more potential speedups! Signed-off-by: Alexander Graf commit 9ee18b1e08e6a5648aeaaf998eabc72b5304cc17 Author: Alexander Graf Date: Thu Aug 5 12:24:40 2010 +0200 KVM: PPC: Update int_pending also on dequeue When having a decrementor interrupt pending, the dequeuing happens manually through an mtdec instruction. This instruction simply calls dequeue on that interrupt, so the int_pending hint doesn't get updated. This patch enables updating the int_pending hint also on dequeue, thus correctly enabling guests to stay in guest contexts more often. Signed-off-by: Alexander Graf commit 512ba59ed9c580b5e5575beda0041bb19a641127 Author: Alexander Graf Date: Thu Aug 5 11:26:04 2010 +0200 KVM: PPC: Make PV mtmsr work with r30 and r31 So far we've been restricting ourselves to r0-r29 as registers an mtmsr instruction could use. This was bad, as there are some code paths in Linux actually using r30. So let's instead handle all registers gracefully and get rid of that stupid limitation Signed-off-by: Alexander Graf commit cbe487fac7fc016dbabbcbe83f11384e1803a56d Author: Alexander Graf Date: Tue Aug 3 10:39:35 2010 +0200 KVM: PPC: Add mtsrin PV code This is the guest side of the mtsr acceleration. Using this a guest can now call mtsrin with almost no overhead as long as it ensures that it only uses it with (MSR_IR|MSR_DR) == 0. Linux does that, so we're good. Signed-off-by: Alexander Graf commit df1bfa25d81f9451715ccbbb67551e0f792ceec8 Author: Alexander Graf Date: Tue Aug 3 02:29:27 2010 +0200 KVM: PPC: Put segment registers in shared page Now that the actual mtsr doesn't do anything anymore, we can move the sr contents over to the shared page, so a guest can directly read and write its sr contents from guest context. Signed-off-by: Alexander Graf commit 8e8651783ff2458f31098be7c2abacf2fcab054a Author: Alexander Graf Date: Tue Aug 3 01:06:11 2010 +0200 KVM: PPC: Interpret SR registers on demand Right now we're examining the contents of Book3s_32's segment registers when the register is written and put the interpreted contents into a struct. There are two reasons this is bad. For starters, the struct has worse real-time performance, as it occupies more ram. But the more important part is that with segment registers being interpreted from their raw values, we can put them in the shared page, allowing guests to mess with them directly. This patch makes the internal representation of SRs be u32s. Signed-off-by: Alexander Graf commit c1c88e2fa16f979ba3e99018a53962abe852b30f Author: Alexander Graf Date: Mon Aug 2 23:23:04 2010 +0200 KVM: PPC: Move BAT handling code into spr handler The current approach duplicates the spr->bat finding logic and makes it harder to reuse the actually used variables. So let's move everything down to the spr handler. Signed-off-by: Alexander Graf commit 7508e16c9f2a20f7721d7bc47c33a7b34c873a2c Author: Alexander Graf Date: Tue Aug 3 11:32:56 2010 +0200 KVM: PPC: Add feature bitmap for magic page We will soon add SR PV support to the shared page, so we need some infrastructure that allows the guest to query for features KVM exports. This patch adds a second return value to the magic mapping that indicated to the guest which features are available. Signed-off-by: Alexander Graf commit cb24c50826e0722bffb0674f088954cd4980818b Author: Alexander Graf Date: Mon Aug 2 22:05:00 2010 +0200 KVM: PPC: Remove unused define The define VSID_ALL is unused. Let's remove it. Signed-off-by: Alexander Graf commit b9877ce2994cc812f00dbb2adb88c1749b6dac86 Author: Alexander Graf Date: Mon Aug 2 21:48:53 2010 +0200 KVM: PPC: Revert "KVM: PPC: Use kernel hash function" It turns out the in-kernel hash function is sub-optimal for our subtle hash inputs where every bit is significant. So let's revert to the original hash functions. This reverts commit 05340ab4f9a6626f7a2e8f9fe5397c61d494f445. Signed-off-by: Alexander Graf commit 928d78be54014e65498e289fdc3f82acc4b804a9 Author: Alexander Graf Date: Mon Aug 2 21:25:33 2010 +0200 KVM: PPC: Move slb debugging to tracepoints This patch moves debugging printks for shadow SLB debugging over to tracepoints. Signed-off-by: Alexander Graf commit e7c1d14e3bf40b87e6a3f68964b36dbb2c875c0f Author: Alexander Graf Date: Mon Aug 2 21:24:48 2010 +0200 KVM: PPC: Make invalidation code more reliable There is a race condition in the pte invalidation code path where we can't be sure if a pte was invalidated already. So let's move the spin lock around to get rid of the race. Signed-off-by: Alexander Graf commit 2e602847d9c2d6b487bda62bbbe550db40ca912f Author: Alexander Graf Date: Mon Aug 2 20:11:39 2010 +0200 KVM: PPC: Don't flush PTEs on NX/RO hit When hitting a no-execute or read-only data/inst storage interrupt we were flushing the respective PTE so we're sure it gets properly overwritten next. According to the spec, this is unnecessary though. The guest issues a tlbie anyways, so we're safe to just keep the PTE around and have it manually removed from the guest, saving us a flush. Signed-off-by: Alexander Graf commit 4cb6b7ea0cd085e6613153ad69608cad6421abcc Author: Alexander Graf Date: Mon Aug 2 16:08:22 2010 +0200 KVM: PPC: Preload magic page when in kernel mode When the guest jumps into kernel mode and has the magic page mapped, theres a very high chance that it will also use it. So let's detect that scenario and map the segment accordingly. Signed-off-by: Alexander Graf commit c60b4cf70127941e2f944a7971a7f6b3ecb367ac Author: Alexander Graf Date: Mon Aug 2 13:40:30 2010 +0200 KVM: PPC: Add tracepoints for generic spte flushes The different ways of flusing shadow ptes have their own debug prints which use stupid old printk. Let's move them to tracepoints, making them easier available, faster and possible to activate on demand Signed-off-by: Alexander Graf commit c22c31963b4b0c23250e8f520a76427b3986b73b Author: Alexander Graf Date: Mon Aug 2 13:38:18 2010 +0200 KVM: PPC: Fix sid map search after flush After a flush the sid map contained lots of entries with 0 for their gvsid and hvsid value. Unfortunately, 0 can be a real value the guest searches for when looking up a vsid so it would incorrectly find the host's 0 hvsid mapping which doesn't belong to our sid space. So let's also check for the valid bit that indicated that the sid we're looking at actually contains useful data. Signed-off-by: Alexander Graf commit 8696ee431233171b3c1cc82bae0193efc4fef2ac Author: Alexander Graf Date: Mon Aug 2 12:55:19 2010 +0200 KVM: PPC: Move pte invalidate debug code to tracepoint This patch moves the SPTE flush debug printk over to tracepoints. Signed-off-by: Alexander Graf commit 4c4eea7769d0099ea09f9bdb7aed1cc61d57c9d6 Author: Alexander Graf Date: Mon Aug 2 12:51:07 2010 +0200 KVM: PPC: Add tracepoint for generic mmu map This patch moves the generic mmu map debugging over to tracepoints. Signed-off-by: Alexander Graf commit 82fdee7bce546c3ce38dcf0db6096eea73dbe7bd Author: Alexander Graf Date: Mon Aug 2 11:38:54 2010 +0200 KVM: PPC: Move book3s_64 mmu map debug print to trace point This patch moves Book3s MMU debugging over to tracepoints. Signed-off-by: Alexander Graf commit bed1ed9860d3744cc6488831fa5672d5c7aff4be Author: Alexander Graf Date: Mon Aug 2 11:06:26 2010 +0200 KVM: PPC: Move EXIT_DEBUG partially to tracepoints We have a debug printk on every exit that is usually #ifdef'ed out. Using tracepoints makes a lot more sense here though, as they can be dynamically enabled. This patch converts the most commonly used debug printks of EXIT_DEBUG to tracepoints. Signed-off-by: Alexander Graf commit 55438cc751c32cfafac52938403a86069e25b1bf Author: Takuya Yoshikawa Date: Thu Sep 2 17:55:00 2010 +0900 KVM: ia64: define kvm_lapic_enabled() to fix a compile error The following patch commit 57ce1659316f4ca298919649f9b1b55862ac3826 KVM: x86: In DM_LOWEST, only deliver interrupts to vcpus with enabled LAPIC's ignored the fact that kvm_irq_delivery_to_apic() was also used by ia64. We define kvm_lapic_enabled() to fix a compile error caused by this. This will have the same effect as reverting the problematic patch for ia64. Signed-off-by: Takuya Yoshikawa Signed-off-by: Avi Kivity commit 30644b902c5eef5328d37a2e15f1921aaca2588b Author: Xiao Guangrong Date: Mon Aug 30 18:26:33 2010 +0800 KVM: MMU: lower the aduit frequency The audit is very high overhead, so we need lower the frequency to assure the guest is running. Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit eb2591865a234c6fb1162085d9b277236fa890b6 Author: Xiao Guangrong Date: Mon Aug 30 18:25:51 2010 +0800 KVM: MMU: improve spte audit Both audit_mappings() and audit_sptes_have_rmaps() need to walk vcpu's page table, so we can do these checking in a spte walking Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 49edf87806f52a005152beaed9f4731862efc8fe Author: Xiao Guangrong Date: Mon Aug 30 18:25:03 2010 +0800 KVM: MMU: improve active sp audit Both audit_rmap() and audit_write_protection() need to walk all active sp, so we can do these checking in a sp walking Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 2f4f337248cd5660040b7e09b7287a7a0a861f3f Author: Xiao Guangrong Date: Mon Aug 30 18:24:10 2010 +0800 KVM: MMU: move audit to a separate file Move the audit code from arch/x86/kvm/mmu.c to arch/x86/kvm/mmu_audit.c Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 8b1fe17cc7a8b2c62b400dcbfaebd96da6b4f58e Author: Xiao Guangrong Date: Mon Aug 30 18:22:53 2010 +0800 KVM: MMU: support disable/enable mmu audit dynamicly Add a r/w module parameter named 'mmu_audit', it can control audit enable/disable: enable: echo 1 > /sys/module/kvm/parameters/mmu_audit disable: echo 0 > /sys/module/kvm/parameters/mmu_audit This patch not change the logic Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 84e0cefa8ddd5d5018d3b582e1e90585ed551757 Author: Jes Sorensen Date: Wed Sep 1 11:42:04 2010 +0200 KVM: Fix guest kernel crash on MSR_K7_CLK_CTL MSR_K7_CLK_CTL is a no longer documented MSR, which is only relevant on said old AMD CPU models. This change returns the expected value, which the Linux kernel is expecting to avoid writing back the MSR, plus it ignores all writes to the MSR. Signed-off-by: Jes Sorensen Signed-off-by: Avi Kivity commit 9ed049c3b6230b68985da31f8243d4bec95e0b3a Author: Avi Kivity Date: Mon Aug 30 12:18:24 2010 +0300 KVM: i8259: Make ICW1 conform to spec ICW is not a full reset, instead it resets a limited number of registers in the PIC. Change ICW1 emulation to only reset those registers. Signed-off-by: Avi Kivity commit 7d9ddaedd8a9d0442fda5b5a90f22a33becbd235 Author: Avi Kivity Date: Mon Aug 30 17:12:28 2010 +0300 KVM: x86 emulator: clean up control flow in x86_emulate_insn() x86_emulate_insn() is full of things like if (rc != X86EMUL_CONTINUE) goto done; break; consolidate all of those at the end of the switch statement. Signed-off-by: Avi Kivity commit a4d4a7c1880db98a521bc27c15348185fa30c256 Author: Avi Kivity Date: Tue Aug 3 15:05:46 2010 +0300 KVM: x86 emulator: fix group 11 decoding for reg != 0 These are all undefined. Signed-off-by: Avi Kivity commit b9eac5f4d146dc6cb88c8e6d891f8abe60493338 Author: Avi Kivity Date: Tue Aug 3 14:46:56 2010 +0300 KVM: x86 emulator: use single stage decoding for mov instructions Signed-off-by: Avi Kivity commit e90aa41e6ca76cd7be021d4d5560e64954cd4585 Author: Avi Kivity Date: Wed Sep 1 10:23:35 2010 +0300 KVM: Don't save/restore MSR_IA32_PERF_STATUS It is read/only; restoring it only results in annoying messages. Signed-off-by: Avi Kivity commit eaa48512ba9df32aab8be5fceec10f3f80369379 Author: Marcelo Tosatti Date: Tue Aug 31 19:13:14 2010 -0300 KVM: SVM: init_vmcb should reset vcpu->efer Otherwise EFER_LMA bit is retained across a SIPI reset. Fixes guest cpu onlining. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity commit 678041ad9dc82eedc598f709e8a3d620139d4105 Author: Marcelo Tosatti Date: Tue Aug 31 19:13:13 2010 -0300 KVM: SVM: reset mmu context in init_vmcb Since commit aad827034e419fa no mmu reinitialization is performed via init_vmcb. Zero vcpu->arch.cr0 and pass the reset value as a parameter to kvm_set_cr0. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity commit c41a15dd4632499b9c1a00871e160276999767d9 Author: Avi Kivity Date: Mon Aug 30 10:46:56 2010 +0300 KVM: Fix pio trace direction out = write, in = read, not the other way round. Signed-off-by: Avi Kivity commit 8e0e8afa82018a3c751ea474eb47dfc65f00f4c3 Author: Xiao Guangrong Date: Sat Aug 28 19:25:09 2010 +0800 KVM: MMU: remove count_rmaps() Nothing is checked in count_rmaps(), so remove it Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 365fb3fdf6769d3553999d8eb6cc2a8c56c747c1 Author: Xiao Guangrong Date: Sat Aug 28 19:24:13 2010 +0800 KVM: MMU: rewrite audit_mappings_page() function There is a bugs in this function, we call gfn_to_pfn() and kvm_mmu_gva_to_gpa_read() in atomic context(kvm_mmu_audit() is called under the spinlock(mmu_lock)'s protection). This patch fix it by: - introduce gfn_to_pfn_atomic instead of gfn_to_pfn - get the mapping gfn from kvm_mmu_page_get_gfn() And it adds 'notrap' ptes check in unsync/direct sps Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit bc32ce2152406431acf4daf4a81dc1664bb7b91b Author: Xiao Guangrong Date: Sat Aug 28 19:22:46 2010 +0800 KVM: MMU: fix wrong not write protected sp report The audit code reports some sp not write protected in current code, it's just the bug in audit_write_protection(), since: - the invalid sp not need write protected - using uninitialize local variable('gfn') - call kvm_mmu_audit() out of mmu_lock's protection Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 0beb8d660425aab339ff68e6f4d4528739e8fc4f Author: Xiao Guangrong Date: Sat Aug 28 19:20:47 2010 +0800 KVM: MMU: check rmap for every spte The read-only spte also has reverse mapping, so fix the code to check them, also modify the function name to fit its doing Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 9ad17b10011702cb56c5e32e41ecd5fe281c3574 Author: Xiao Guangrong Date: Sat Aug 28 19:19:42 2010 +0800 KVM: MMU: fix compile warning in audit code fix: arch/x86/kvm/mmu.c: In function ‘kvm_mmu_unprotect_page’: arch/x86/kvm/mmu.c:1741: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘gfn_t’ arch/x86/kvm/mmu.c:1745: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘gfn_t’ arch/x86/kvm/mmu.c: In function ‘mmu_unshadow’: arch/x86/kvm/mmu.c:1761: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘gfn_t’ arch/x86/kvm/mmu.c: In function ‘set_spte’: arch/x86/kvm/mmu.c:2005: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘gfn_t’ arch/x86/kvm/mmu.c: In function ‘mmu_set_spte’: arch/x86/kvm/mmu.c:2033: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 7 has type ‘gfn_t’ Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 23e7a7944f3779155e2f6bbc831b544eb925f387 Author: Jason Wang Date: Fri Aug 27 17:15:06 2010 +0800 KVM: pit: Do not check pending pit timer in vcpu thread Pit interrupt injection was done by workqueue, so no need to check pending pit timer in vcpu thread which could lead unnecessary unblocking of vcpu. Signed-off-by: Jason Wang Signed-off-by: Avi Kivity commit 989044ee0fdc6c22a11ea1d22e2a3d17463cb564 Author: Alexander Graf Date: Mon Aug 30 12:01:56 2010 +0200 KVM: PPC: Fix CONFIG_KVM_GUEST && !CONFIG_KVM case When CONFIG_KVM_GUEST is selected, but CONFIG_KVM is not, we were missing some defines in asm-offsets.c and included too many headers at other places. This patch makes above configuration work. Reported-by: Stephen Rothwell Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 6230f7fc0453c5bc5daa8e053773021e1c4a2f16 Author: Avi Kivity Date: Thu Aug 26 18:34:55 2010 +0300 KVM: x86 emulator: simplify ALU opcode block decode further The ALU opcode block is very regular; introduce D6ALU() to define decode flags for 6 instructions at a time. Suggested by Paolo Bonzini. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 217fc9cfca21a0bc2f4246183ebd8ee9863b019d Author: Avi Kivity Date: Thu Aug 26 13:38:03 2010 +0300 KVM: Fix build error due to 64-bit division in nsec_to_cycles() Use do_div() instead. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 34d1f4905eb66478a890ea808ec58bc842e6e589 Author: Avi Kivity Date: Thu Aug 26 11:59:01 2010 +0300 KVM: x86 emulator: trap and propagate #DE from DIV and IDIV Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit f6b3597bded9ed261b42fdcb5e741489cb5ccbfe Author: Avi Kivity Date: Thu Aug 26 11:59:00 2010 +0300 KVM: x86 emulator: add macros for executing instructions that may trap Like DIV and IDIV. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 739ae406068211b235b488f247aab349e486c382 Author: Avi Kivity Date: Thu Aug 26 11:56:13 2010 +0300 KVM: x86 emulator: simplify instruction decode flags for opcodes 0F 00-FF Use the new byte/word dual opcode decode. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit d269e3961a65bbf6a76a8dc37b70cb578216e2c0 Author: Avi Kivity Date: Thu Aug 26 11:56:12 2010 +0300 KVM: x86 emulator: simplify instruction decode flags for opcodes E0-FF Use the new byte/word dual opcode decode. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit d2c6c7adb181eac5b18dbefdf24c0e6745470939 Author: Avi Kivity Date: Thu Aug 26 11:56:11 2010 +0300 KVM: x86 emulator: simplify instruction decode flags for opcodes C0-DF Use the new byte/word dual opcode decode. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 50748613d16f55cbf7da14bc6e92b7cb1cd4fa7d Author: Avi Kivity Date: Thu Aug 26 11:56:10 2010 +0300 KVM: x86 emulator: simplify instruction decode flags for opcodes A0-AF Use the new byte/word dual opcode decode. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 76e8e68d4435bb894a1a03be853a55a4a2b45247 Author: Avi Kivity Date: Thu Aug 26 11:56:09 2010 +0300 KVM: x86 emulator: simplify instruction decode flags for opcodes 80-8F Use the new byte/word dual opcode decode. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 48fe67b5f7f71bb954dc97b18096cef12f6618b4 Author: Avi Kivity Date: Thu Aug 26 11:56:08 2010 +0300 KVM: x86 emulator: simplify string instruction decode flags Use the new byte/word dual opcode decode. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 5315fbb223086c078c979d16734844ccff12f087 Author: Avi Kivity Date: Thu Aug 26 11:56:07 2010 +0300 KVM: x86 emulator: simplify ALU block (opcodes 00-3F) decode flags Use the new byte/word dual opcode decode. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 8d8f4e9f66ab36e4fcc75eca1e828af8466309f1 Author: Avi Kivity Date: Thu Aug 26 11:56:06 2010 +0300 KVM: x86 emulator: support byte/word opcode pairs Many x86 instructions come in byte and word variants distinguished with bit 0 of the opcode. Add macros to aid in defining them. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 081bca0e6b87d0c7b9ade7ffee1f44aca336a8fa Author: Avi Kivity Date: Thu Aug 26 11:06:15 2010 +0300 KVM: x86 emulator: refuse SrcMemFAddr (e.g. LDS) with register operand SrcMemFAddr is not defined with the modrm operand designating a register instead of a memory address. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit d2ddd1c48364e4161052d6089f06b2cf3c50496b Author: Gleb Natapov Date: Wed Aug 25 12:47:43 2010 +0300 KVM: x86 emulator: get rid of "restart" in emulation context. x86_emulate_insn() will return 1 if instruction can be restarted without re-entering a guest. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti commit 3e2f65d57a0c1897fcc3287eeb41f117f4d021e5 Author: Gleb Natapov Date: Wed Aug 25 12:47:42 2010 +0300 KVM: x86 emulator: move string instruction completion check into separate function Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti commit 6e2fb2cadd9a523ff5494d4c4d53c0d3e0024691 Author: Gleb Natapov Date: Wed Aug 25 12:47:41 2010 +0300 KVM: x86 emulator: Rename variable that shadows another local variable. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti commit cc4feed57fcd4934b89aaac51d64dbff921e2f2b Author: Wei Yongjun Date: Wed Aug 25 14:10:53 2010 +0800 KVM: x86 emulator: add CALL FAR instruction emulation (opcode 9a) Signed-off-by: Wei Yongjun Signed-off-by: Marcelo Tosatti commit a3c321c6e27e6134f1e8eece5f9954e8121fdc12 Author: Alexander Graf Date: Tue Aug 24 15:48:52 2010 +0200 KVM: S390: Export kvm_virtio.h As suggested by Christian, we should expose headers to user space with information that might be valuable there. The s390 virtio interface is one of those cases. It defines an ABI between hypervisor and guest, so it should be exposed to user space. Reported-by: Christian Borntraeger Signed-off-by: Alexander Graf Signed-off-by: Marcelo Tosatti commit cefa33e2f8f7852abb42f22ec25a6084a931c5ac Author: Alexander Graf Date: Tue Aug 24 15:48:51 2010 +0200 KVM: S390: Add virtio hotplug add support The one big missing feature in s390-virtio was hotplugging. This is no more. This patch implements hotplug add support, so you can on the fly add new devices in the guest. Keep in mind that this needs a patch for qemu to actually leverage the functionality. Signed-off-by: Alexander Graf Signed-off-by: Marcelo Tosatti commit fc678d67fee1acccf21322318dd833b892a572e4 Author: Alexander Graf Date: Tue Aug 24 15:48:50 2010 +0200 KVM: S390: take a full byte as ext_param indicator Currenty the ext_param field only distinguishes between "config change" and "vring interrupt". We can do a lot more with it though, so let's enable a full byte of possible values and constants to #defines while at it. Signed-off-by: Alexander Graf Signed-off-by: Marcelo Tosatti commit 189be38db3dde12699a8b9dc22d33e8c95efe110 Author: Xiao Guangrong Date: Sun Aug 22 19:13:33 2010 +0800 KVM: MMU: combine guest pte read between fetch and pte prefetch Combine guest pte read between guest pte check in the fetch path and pte prefetch Signed-off-by: Xiao Guangrong Signed-off-by: Marcelo Tosatti commit 957ed9effd80b04482cbdce8c95bdf803a656b94 Author: Xiao Guangrong Date: Sun Aug 22 19:12:48 2010 +0800 KVM: MMU: prefetch ptes when intercepted guest #PF Support prefetch ptes when intercept guest #PF, avoid to #PF by later access If we meet any failure in the prefetch path, we will exit it and not try other ptes to avoid become heavy path Signed-off-by: Xiao Guangrong Signed-off-by: Marcelo Tosatti commit 48987781eb1d1e8ded41f55cd5806615fda92c6e Author: Xiao Guangrong Date: Sun Aug 22 19:11:43 2010 +0800 KVM: MMU: introduce gfn_to_page_many_atomic() function Introduce this function to get consecutive gfn's pages, it can reduce gup's overload, used by later patch Signed-off-by: Xiao Guangrong Signed-off-by: Marcelo Tosatti commit 887c08ac191efb103e33e589aacbc2ce1a3f131e Author: Xiao Guangrong Date: Sun Aug 22 19:10:28 2010 +0800 KVM: MMU: introduce hva_to_pfn_atomic function Introduce hva_to_pfn_atomic(), it's the fast path and can used in atomic context, the later patch will use it Signed-off-by: Xiao Guangrong Signed-off-by: Marcelo Tosatti commit 45888a0c6edc305495b6bd72a30e66bc40b324c6 Author: Xiao Guangrong Date: Sun Aug 22 19:08:57 2010 +0800 export __get_user_pages_fast() function This function is used by KVM to pin process's page in the atomic context. Define the 'weak' function to avoid other architecture not support it Acked-by: Nick Piggin Signed-off-by: Xiao Guangrong Signed-off-by: Marcelo Tosatti commit f392eb2546170e539668a5ab8df6c1254d15a201 Author: Zachary Amsden Date: Thu Aug 19 22:07:33 2010 -1000 KVM: x86: Add timekeeping documentation Basic informational document about x86 timekeeping and how KVM is affected. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 1d5f066e0b63271b67eac6d3752f8aa96adcbddb Author: Zachary Amsden Date: Thu Aug 19 22:07:30 2010 -1000 KVM: x86: Fix a possible backwards warp of kvmclock Kernel time, which advances in discrete steps may progress much slower than TSC. As a result, when kvmclock is adjusted to a new base, the apparent time to the guest, which runs at a much higher, nsec scaled rate based on the current TSC, may have already been observed to have a larger value (kernel_ns + scaled tsc) than the value to which we are setting it (kernel_ns + 0). We must instead compute the clock as potentially observed by the guest for kernel_ns to make sure it does not go backwards. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 347bb4448c2155eb2310923ccaa4be5677649003 Author: Zachary Amsden Date: Thu Aug 19 22:07:29 2010 -1000 x86: pvclock: Move scale_delta into common header The scale_delta function for shift / multiply with 31-bit precision moves to a common header so it can be used by both kernel and kvm module. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit ca84d1a24c376e0841f35db08dab7b829c8c0b1e Author: Zachary Amsden Date: Thu Aug 19 22:07:28 2010 -1000 KVM: x86: Add clock sync request to hardware enable If there are active VCPUs which are marked as belonging to a particular hardware CPU, request a clock sync for them when enabling hardware; the TSC could be desynchronized on a newly arriving CPU, and we need to recompute guests system time relative to boot after a suspend event. This covers both cases. Note that it is acceptable to take the spinlock, as either no other tasks will be running and no locks held (BSP after resume), or other tasks will be guaranteed to drop the lock relatively quickly (AP on CPU_STARTING). Noting we now get clock synchronization requests for VCPUs which are starting up (or restarting), it is tempting to attempt to remove the arch/x86/kvm/x86.c CPU hot-notifiers at this time, however it is not correct to do so; they are required for systems with non-constant TSC as the frequency may not be known immediately after the processor has started until the cpufreq driver has had a chance to run and query the chipset. Updated: implement better locking semantics for hardware_enable Removed the hack of dropping and retaking the lock by adding the semantic that we always hold kvm_lock when hardware_enable is called. The one place that doesn't need to worry about it is resume, as resuming a frozen CPU, the spinlock won't be taken. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 46543ba45fc4b64ca32655efdc8d9c599b4164e2 Author: Zachary Amsden Date: Thu Aug 19 22:07:26 2010 -1000 KVM: x86: Robust TSC compensation Make the match of TSC find TSC writes that are close to each other instead of perfectly identical; this allows the compensator to also work in migration / suspend scenarios. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 759379dd68c2885d1fafa433083d4487e710a685 Author: Zachary Amsden Date: Thu Aug 19 22:07:25 2010 -1000 KVM: x86: Add helper functions for time computation Add a helper function to compute the kernel time and convert nanoseconds back to CPU specific cycles. Note that these must not be called in preemptible context, as that would mean the kernel could enter software suspend state, which would cause non-atomic operation. Also, convert the KVM_SET_CLOCK / KVM_GET_CLOCK ioctls to use the kernel time helper, these should be bootbased as well. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 48434c20e18d59001469699fcaaf9cf30b815a20 Author: Zachary Amsden Date: Thu Aug 19 22:07:24 2010 -1000 KVM: x86: Fix deep C-state TSC desynchronization When CPUs with unstable TSCs enter deep C-state, TSC may stop running. This causes us to require resynchronization. Since we can't tell when this may potentially happen, we assume the worst by forcing re-compensation for it at every point the VCPU task is descheduled. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit e48672fa25e879f7ae21785c7efd187738139593 Author: Zachary Amsden Date: Thu Aug 19 22:07:23 2010 -1000 KVM: x86: Unify TSC logic Move the TSC control logic from the vendor backends into x86.c by adding adjust_tsc_offset to x86 ops. Now all TSC decisions can be done in one place. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 6755bae8e69093b2994b6f29cd3eaecdf610374e Author: Zachary Amsden Date: Thu Aug 19 22:07:22 2010 -1000 KVM: x86: Warn about unstable TSC If creating an SMP guest with unstable host TSC, issue a warning Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 8cfdc0008542b57caadbfe013da163131a8293f4 Author: Zachary Amsden Date: Thu Aug 19 22:07:21 2010 -1000 KVM: x86: Make cpu_tsc_khz updates use local CPU This simplifies much of the init code; we can now simply always call tsc_khz_changed, optionally passing it a new value, or letting it figure out the existing value (while interrupts are disabled, and thus, by inference from the rule, not raceful against CPU hotplug or frequency updates, which will issue IPIs to the local CPU to perform this very same task). Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit f38e098ff3a315bb74abbb4a35cba11bbea8e2fa Author: Zachary Amsden Date: Thu Aug 19 22:07:20 2010 -1000 KVM: x86: TSC reset compensation Attempt to synchronize TSCs which are reset to the same value. In the case of a reliable hardware TSC, we can just re-use the same offset, but on non-reliable hardware, we can get closer by adjusting the offset to match the elapsed time. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 99e3e30aee1a326a98bf3a5f47b8622219c685f3 Author: Zachary Amsden Date: Thu Aug 19 22:07:17 2010 -1000 KVM: x86: Move TSC offset writes to common code Also, ensure that the storing of the offset and the reading of the TSC are never preempted by taking a spinlock. While the lock is overkill now, it is useful later in this patch series. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit f4e1b3c8bd2a044cd0ccf80595bfd088a49fe60b Author: Zachary Amsden Date: Thu Aug 19 22:07:16 2010 -1000 KVM: x86: Convert TSC writes to TSC offset writes Change svm / vmx to be the same internally and write TSC offset instead of bare TSC in helper functions. Isolated as a single patch to contain code movement. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit ae38436b78a8abff767e2ac10e2cd663a7eef476 Author: Zachary Amsden Date: Thu Aug 19 22:07:15 2010 -1000 KVM: x86: Drop vm_init_tsc This is used only by the VMX code, and is not done properly; if the TSC is indeed backwards, it is out of sync, and will need proper handling in the logic at each and every CPU change. For now, drop this test during init as misguided. Signed-off-by: Zachary Amsden Signed-off-by: Marcelo Tosatti commit 45bf21a8ce7a2884f067a702a5c7683684846ce1 Author: Wei Yongjun Date: Mon Aug 23 16:13:15 2010 +0800 KVM: MMU: fix missing percpu counter destroy commit ad05c88266b4cce1c820928ce8a0fb7690912ba1 (KVM: create aggregate kvm_total_used_mmu_pages value) introduce percpu counter kvm_total_used_mmu_pages but never destroy it, this may cause oops when rmmod & modprobe. Signed-off-by: Wei Yongjun Acked-by: Tim Pepper Signed-off-by: Marcelo Tosatti commit 80b63faf028fba79e630d3643b0e615bddf4067b Author: Xiaotian Feng Date: Tue Aug 24 10:31:07 2010 +0800 KVM: MMU: fix regression from rework mmu_shrink() code Latest kvm mmu_shrink code rework makes kernel changes kvm->arch.n_used_mmu_pages/ kvm->arch.n_max_mmu_pages at kvm_mmu_free_page/kvm_mmu_alloc_page, which is called by kvm_mmu_commit_zap_page. So the kvm->arch.n_used_mmu_pages or kvm_mmu_available_pages(vcpu->kvm) is unchanged after kvm_mmu_prepare_zap_page(), This caused kvm_mmu_change_mmu_pages/__kvm_mmu_free_some_pages loops forever. Moving kvm_mmu_commit_zap_page would make the while loop performs as normal. Reported-by: Avi Kivity Signed-off-by: Xiaotian Feng Tested-by: Avi Kivity Cc: Marcelo Tosatti Cc: Dave Hansen Cc: Tim Pepper Signed-off-by: Marcelo Tosatti commit e4abac67b756680c63af369f053d11991616aeb4 Author: Wei Yongjun Date: Thu Aug 19 14:25:48 2010 +0800 KVM: x86 emulator: add JrCXZ instruction emulation Add JrCXZ instruction emulation (opcode 0xe3) Used by FreeBSD boot loader. Signed-off-by: Wei Yongjun Signed-off-by: Marcelo Tosatti commit 09b5f4d3c4aa2d4928c0a3723a8de26a76b6339e Author: Wei Yongjun Date: Mon Aug 23 14:56:54 2010 +0800 KVM: x86 emulator: add LDS/LES/LFS/LGS/LSS instruction emulation Add LDS/LES/LFS/LGS/LSS instruction emulation. (opcode 0xc4, 0xc5, 0x0f 0xb2, 0x0f 0xb4~0xb5) Signed-off-by: Wei Yongjun Signed-off-by: Marcelo Tosatti commit 45221ab6684a82a5b60208b76d6f8bfb1bbcb969 Author: Dave Hansen Date: Thu Aug 19 18:11:37 2010 -0700 KVM: create aggregate kvm_total_used_mmu_pages value Of slab shrinkers, the VM code says: * Note that 'shrink' will be passed nr_to_scan == 0 when the VM is * querying the cache size, so a fastpath for that case is appropriate. and it *means* it. Look at how it calls the shrinkers: nr_before = (*shrinker->shrink)(0, gfp_mask); shrink_ret = (*shrinker->shrink)(this_scan, gfp_mask); So, if you do anything stupid in your shrinker, the VM will doubly punish you. The mmu_shrink() function takes the global kvm_lock, then acquires every VM's kvm->mmu_lock in sequence. If we have 100 VMs, then we're going to take 101 locks. We do it twice, so each call takes 202 locks. If we're under memory pressure, we can have each cpu trying to do this. It can get really hairy, and we've seen lock spinning in mmu_shrink() be the dominant entry in profiles. This is guaranteed to optimize at least half of those lock aquisitions away. It removes the need to take any of the locks when simply trying to count objects. A 'percpu_counter' can be a large object, but we only have one of these for the entire system. There are not any better alternatives at the moment, especially ones that handle CPU hotplug. Signed-off-by: Dave Hansen Signed-off-by: Tim Pepper Signed-off-by: Avi Kivity commit 49d5ca26636cb8feb05aff92fc4dba3e494ec683 Author: Dave Hansen Date: Thu Aug 19 18:11:28 2010 -0700 KVM: replace x86 kvm n_free_mmu_pages with n_used_mmu_pages Doing this makes the code much more readable. That's borne out by the fact that this patch removes code. "used" also happens to be the number that we need to return back to the slab code when our shrinker gets called. Keeping this value as opposed to free makes the next patch simpler. So, 'struct kvm' is kzalloc()'d. 'struct kvm_arch' is a structure member (and not a pointer) of 'struct kvm'. That means they start out zeroed. I _think_ they get initialized properly by kvm_mmu_change_mmu_pages(). But, that only happens via kvm ioctls. Another benefit of storing 'used' intead of 'free' is that the values are consistent from the moment the structure is allocated: no negative "used" value. Signed-off-by: Dave Hansen Signed-off-by: Tim Pepper Signed-off-by: Avi Kivity commit 39de71ec5397f374aed95e99509372d605e1407c Author: Dave Hansen Date: Thu Aug 19 18:11:14 2010 -0700 KVM: rename x86 kvm->arch.n_alloc_mmu_pages arch.n_alloc_mmu_pages is a poor choice of name. This value truly means, "the number of pages which _may_ be allocated". But, reading the name, "n_alloc_mmu_pages" implies "the number of allocated mmu pages", which is dead wrong. It's really the high watermark, so let's give it a name to match: nr_max_mmu_pages. This change will make the next few patches much more obvious and easy to read. Signed-off-by: Dave Hansen Signed-off-by: Tim Pepper Signed-off-by: Avi Kivity commit e0df7b9f6cee43c01d6f4a8491bccfd410cb86e1 Author: Dave Hansen Date: Thu Aug 19 18:11:05 2010 -0700 KVM: abstract kvm x86 mmu->n_free_mmu_pages "free" is a poor name for this value. In this context, it means, "the number of mmu pages which this kvm instance should be able to allocate." But "free" implies much more that the objects are there and ready for use. "available" is a much better description, especially when you see how it is calculated. In this patch, we abstract its use into a function. We'll soon replace the function's contents by calculating the value in a different way. All of the reads of n_free_mmu_pages are taken care of in this patch. The modification sites will be handled in a patch later in the series. Signed-off-by: Dave Hansen Signed-off-by: Tim Pepper Signed-off-by: Avi Kivity commit 61429142802b068609ffd8ef48d891e05eeea0b9 Author: Avi Kivity Date: Thu Aug 19 15:13:00 2010 +0300 KVM: x86 emulator: implement CWD (opcode 99) Signed-off-by: Avi Kivity commit d46164dbd936bc11c7d2abed62f05b31c7a79ae7 Author: Avi Kivity Date: Wed Aug 18 19:29:33 2010 +0300 KVM: x86 emulator: implement IMUL REG, R/M, IMM (opcode 69) Signed-off-by: Avi Kivity commit 7db41eb76244ae623de842e818e459755968a33b Author: Avi Kivity Date: Wed Aug 18 19:25:28 2010 +0300 KVM: x86 emulator: add Src2Imm decoding Needed for 3-operand IMUL. Signed-off-by: Avi Kivity commit 39f21ee546cf7d563d813c5fb4473431c1d8fce7 Author: Avi Kivity Date: Wed Aug 18 19:20:21 2010 +0300 KVM: x86 emulator: consolidate immediate decode into a function Signed-off-by: Avi Kivity commit 48bb5d3c401679e41e7a7f06ca31b3e54a6168f7 Author: Avi Kivity Date: Wed Aug 18 18:54:34 2010 +0300 KVM: x86 emulator: implement RDTSC (opcode 0F 31) Signed-off-by: Avi Kivity commit 7077aec0bcd2f827aeb84ccc56c6f4367c376436 Author: Avi Kivity Date: Wed Aug 18 18:53:43 2010 +0300 KVM: x86 emulator: remove SrcImplicit Useless. Signed-off-by: Avi Kivity commit 5c82aa29988c0160d91f75cceebd0a07d8f2406b Author: Avi Kivity Date: Wed Aug 18 18:31:43 2010 +0300 KVM: x86 emulator: implement IMUL REG, R/M (opcode 0F AF) Signed-off-by: Avi Kivity commit f3a1b9f49647133e8c6eb6a68399ed8dbd61554a Author: Avi Kivity Date: Wed Aug 18 18:25:25 2010 +0300 KVM: x86 emulator: implement IMUL REG, R/M, imm8 (opcode 6B) Signed-off-by: Avi Kivity commit 40ece7c7297da90e54e147d3bfbb4531f9fbc570 Author: Avi Kivity Date: Wed Aug 18 15:12:09 2010 +0300 KVM: x86 emulator: implement RET imm16 (opcode C2) Signed-off-by: Avi Kivity commit b250e605895d02cede78922d034f7825af72a8b5 Author: Avi Kivity Date: Wed Aug 18 15:11:24 2010 +0300 KVM: x86 emulator: add SrcImmU16 operand type Used for RET NEAR instructions. Signed-off-by: Avi Kivity commit 0ef753b8c323f5b8d75d7dc57ceef6b35982afdb Author: Avi Kivity Date: Wed Aug 18 14:51:45 2010 +0300 KVM: x86 emulator: implement CALL FAR (FF /3) Signed-off-by: Avi Kivity commit 7af04fc05cc185869271927eb470de3d25064b4a Author: Avi Kivity Date: Wed Aug 18 14:16:35 2010 +0300 KVM: x86 emulator: implement DAS (opcode 2F) Signed-off-by: Avi Kivity commit fb2c264105c64511dbd1a7488b482960895aace4 Author: Avi Kivity Date: Mon Aug 16 17:50:56 2010 +0300 KVM: x86 emulator: Use a register for ____emulate_2op() destination Most x86 two operand instructions allow the destination to be a memory operand, but IMUL (for example) requires that the destination be a register. Change ____emulate_2op() to take a register for both source and destination so we can invoke IMUL. Signed-off-by: Avi Kivity commit b3b3d25a12986fb08666823db3e9a74649a71925 Author: Avi Kivity Date: Mon Aug 16 17:49:52 2010 +0300 KVM: x86 emulator: pass destination type to ____emulate_2op() We'll need it later so we can use a register for the destination. Signed-off-by: Avi Kivity commit f2f31845341d22e4f20438b05e83d58e71b723b5 Author: Wei Yongjun Date: Wed Aug 18 16:38:21 2010 +0800 KVM: x86 emulator: add LOOP/LOOPcc instruction emulation Add LOOP/LOOPcc instruction emulation (opcode 0xe0~0xe2). Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit e8b6fa70e3545f0afd63434dbd0c5220d47205f6 Author: Wei Yongjun Date: Wed Aug 18 16:43:13 2010 +0800 KVM: x86 emulator: add CBW/CWDE/CDQE instruction emulation Add CBW/CWDE/CDQE instruction emulation.(opcode 0x98) Used by FreeBSD's boot loader. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 0fa6ccbd281221bc7d46aff82d846e1f4c1985df Author: Avi Kivity Date: Tue Aug 17 11:22:17 2010 +0300 KVM: x86 emulator: fix REPZ/REPNZ termination condition EFLAGS.ZF needs to be checked after each iteration, not before. Signed-off-by: Avi Kivity commit f6b33fc5046642b669c3197bf08639172e4cffad Author: Avi Kivity Date: Tue Aug 17 11:20:37 2010 +0300 KVM: x86 emulator: implement SCAS (opcodes AE, AF) Signed-off-by: Avi Kivity commit 5c56e1cf7a758c4772e2470b4346a8219ec7f44e Author: Avi Kivity Date: Tue Aug 17 11:17:51 2010 +0300 KVM: x86 emulator: fix INTn emulation not pushing EFLAGS and CS emulate_push() only schedules a push; it doesn't actually push anything. Call writeback() to flush out the write. Signed-off-by: Avi Kivity commit a13a63faa6237001ed80d4f4051fc028dace10d9 Author: Wei Yongjun Date: Fri Aug 6 11:46:12 2010 +0800 KVM: x86 emulator: remove dup code of in/out instruction Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 41167be544603e077b866a2922737556dc2294e8 Author: Wei Yongjun Date: Fri Aug 6 11:45:12 2010 +0800 KVM: x86 emulator: change OUT instruction to use dst instead of src Change OUT instruction to use dst instead of src, so we can reuse those code for all out instructions. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 943858e27544cd10e6095093a40be911a31892b1 Author: Wei Yongjun Date: Fri Aug 6 11:36:51 2010 +0800 KVM: x86 emulator: introduce DstImmUByte for dst operand decode Introduce DstImmUByte for dst operand decode, which will be used for out instruction. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit c483c02ad35256206d6c45d7170fef1e33a43e9c Author: Wei Yongjun Date: Fri Aug 6 15:36:36 2010 +0800 KVM: x86 emulator: remove useless label from x86_emulate_insn() Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit ee45b58efebc826ea2ade310f6e311702d4a5ab9 Author: Wei Yongjun Date: Fri Aug 6 17:10:07 2010 +0800 KVM: x86 emulator: add setcc instruction emulation Add setcc instruction emulation (opcode 0x0f 0x90~0x9f) Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 9cf4c4fcb59704f0c50f6aa7933399db5d2edf1a Author: Jiri Kosina Date: Mon Aug 16 17:51:20 2010 +0200 KVM: x86: explain 'no-kvmclock' kernel parameter no-kvmclock kernel parameter is missing its explanation in Documentation/kernel-parameters.txt. Add it. Signed-off-by: Jiri Kosina Signed-off-by: Avi Kivity commit 92f738a52b53dc13b5dd5753634bdb8c59ac9815 Author: Wei Yongjun Date: Tue Aug 17 09:19:34 2010 +0800 KVM: x86 emulator: add XADD instruction emulation Add XADD instruction emulation (opcode 0x0f 0xc0~0xc1) Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 31be40b3985f09c0c89b9e28a8206df32adba842 Author: Wei Yongjun Date: Tue Aug 17 09:17:30 2010 +0800 KVM: x86 emulator: put register operand write back to a function Introduce function write_register_operand() to write back the register operand. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 646bab55a278ceb1cf43b1f80d3dd468be62a421 Author: Wei Yongjun Date: Tue Aug 17 10:08:52 2010 +0800 KVM: PPC: fix leakage of error page in kvmppc_patch_dcbz() Add kvm_release_page_clean() after is_error_page() to avoid leakage of error page. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 8ec4722dd2aab9b69befb919549ea0a5bfc9e670 Author: Mohammed Gamal Date: Mon Aug 16 00:47:01 2010 +0300 KVM: Separate emulation context initialization in a separate function The code for initializing the emulation context is duplicated at two locations (emulate_instruction() and kvm_task_switch()). Separate it in a separate function and call it from there. Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity commit d9574a25afc3cd7ccd6a0bc05252bb84189e4021 Author: Wei Yongjun Date: Tue Aug 10 13:48:22 2010 +0800 KVM: x86 emulator: add bsf/bsr instruction emulation Add bsf/bsr instruction emulation (opcode 0x0f 0xbc~0xbd) Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 8c5eee30a942cb3154f14f12407755ed7da74bbc Author: Mohammed Gamal Date: Sun Aug 8 21:11:38 2010 +0300 KVM: x86 emulator: Fix emulate_grp3 return values This patch lets emulate_grp3() return X86EMUL_* return codes instead of hardcoded ones. Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity commit 3f9f53b0d599aabb03db35208fb31768568ca83f Author: Mohammed Gamal Date: Sun Aug 8 21:11:37 2010 +0300 KVM: x86 emulator: Add unary mul, imul, div, and idiv instructions This adds unary mul, imul, div, and idiv instructions (group 3 r/m 4-7). Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity commit ba7ff2b76dcf05c4681c2648019b8301ada6f3df Author: Wei Yongjun Date: Mon Aug 9 11:39:14 2010 +0800 KVM: x86 emulator: mask group 8 instruction as BitOp Mask group 8 instruction as BitOp, so we can share the code for adjust the source operand. Signed-off-by: Wei Yongjun Reviewed-by: Paolo Bonzini Signed-off-by: Avi Kivity commit 3885f18fe3034a10b3e3923885d70d31ba522844 Author: Wei Yongjun Date: Mon Aug 9 11:37:37 2010 +0800 KVM: x86 emulator: do not adjust the address for immediate source adjust the dst address for a register source but not adjust the address for an immediate source. Signed-off-by: Wei Yongjun Reviewed-by: Paolo Bonzini Signed-off-by: Avi Kivity commit 35c843c4857e2a818d1d951d87c40ee2cf5c1be8 Author: Wei Yongjun Date: Mon Aug 9 11:34:56 2010 +0800 KVM: x86 emulator: fix negative bit offset BitOp instruction emulation If bit offset operands is a negative number, BitOp instruction will return wrong value. This patch fix it. Signed-off-by: Wei Yongjun Reviewed-by: Paolo Bonzini Signed-off-by: Avi Kivity commit 8744aa9aad56be756a58126b429f176898631c3f Author: Mohammed Gamal Date: Thu Aug 5 15:42:49 2010 +0300 KVM: x86 emulator: Add stc instruction (opcode 0xf9) Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity commit c034da8b927dc682fe7944895d67f99f07e3740f Author: Wei Yongjun Date: Wed Aug 4 15:38:59 2010 +0800 KVM: x86 emulator: using SrcOne for instruction d0/d1 decoding Using SrcOne for instruction d0/d1 decoding. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 36089fed70337f4d96a5c3aa7fadc4095b707f73 Author: Wei Yongjun Date: Wed Aug 4 15:38:18 2010 +0800 KVM: x86 emulator: disable writeback when decode dest operand This patch change to disable writeback when decode dest operand if the dest type is ImplicitOps or not specified. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 06cb704611caf40e531a3835809283f14f5307d5 Author: Wei Yongjun Date: Wed Aug 4 15:36:53 2010 +0800 KVM: x86 emulator: use SrcAcc to simplify stos decoding Use SrcAcc to simplify stos decoding. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit 6e154e56b4d7a6a28c54f0984e13d3f8defc4755 Author: Mohammed Gamal Date: Wed Aug 4 14:38:06 2010 +0300 KVM: x86 emulator: Add into, int, and int3 instructions (opcodes 0xcc-0xce) This adds support for int instructions to the emulator. Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity commit 160ce1f1a8fe64b3e2686ae73fbf051ccfe7c7ef Author: Mohammed Gamal Date: Wed Aug 4 05:44:24 2010 +0300 KVM: x86 emulator: Allow accessing IDT via emulator ops The patch adds a new member get_idt() to x86_emulate_ops. It also adds a function to get the idt in order to be used by the emulator. This is needed for real mode interrupt injection and the emulation of int instructions. Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity commit d3ad6243293d92c82530a50c77d71bb0a0a42fdc Author: Wei Yongjun Date: Thu Aug 5 16:34:39 2010 +0800 KVM: x86 emulator: simplify two-byte opcode check Two-byte opcode always start with 0x0F and the decode flags of opcode 0xF0 is always 0, so remove dup check. Signed-off-by: Wei Yongjun Signed-off-by: Avi Kivity commit a58ddea556f8877ccf7caa046b6d6b32982f5b1d Author: Alexander Graf Date: Thu Jul 29 15:04:22 2010 +0200 KVM: PPC: Move KVM trampolines before __end_interrupts When using a relocatable kernel we need to make sure that the trampline code and the interrupt handlers are both copied to low memory. The only way to do this reliably is to put them in the copied section. This patch should make relocated kernels work with KVM. KVM-Stable-Tag Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 2b05d71fefc3b83e686bead355c6d35e440c4261 Author: Alexander Graf Date: Thu Jul 29 15:04:21 2010 +0200 KVM: PPC: Make long relocations be ulong On Book3S KVM we directly expose some asm pointers to C code as variables. These need to be relocated and thus break on relocatable kernels. To make sure we can at least build, let's mark them as long instead of u32 where 64bit relocations don't work. This fixes the following build error: WARNING: 2 bad relocations^M > c000000000008590 R_PPC64_ADDR32 .text+0x4000000000008460^M > c000000000008594 R_PPC64_ADDR32 .text+0x4000000000008598^M Please keep in mind that actually using KVM on a relocated kernel might still break. This only fixes the compile problem. Reported-by: Subrata Modak Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 0e677903878ef90e09a45507255c0b1e36166064 Author: Alexander Graf Date: Thu Jul 29 15:04:20 2010 +0200 KVM: PPC: Use MSR_DR for external load_up Book3S_32 requires MSR_DR to be disabled during load_up_xxx while on Book3S_64 it's supposed to be enabled. I misread the code and disabled it in both cases, potentially breaking the PS3 which has a really small RMA. This patch makes KVM work on the PS3 again. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 2d27fc5eac0205588cb59ae138062e5e96695276 Author: Alexander Graf Date: Thu Jul 29 15:04:19 2010 +0200 KVM: PPC: Add book3s_32 tlbie flush acceleration On Book3s_32 the tlbie instruction flushed effective addresses by the mask 0x0ffff000. This is pretty hard to reflect with a hash that hashes ~0xfff, so to speed up that target we should also keep a special hash around for it. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 49451389ecc2b4336c305678c210b25fadd18994 Author: Gleb Natapov Date: Thu Jul 29 15:04:18 2010 +0200 KVM: PPC: correctly check gfn_to_pfn() return value On failure gfn_to_pfn returns bad_page so use correct function to check for that. Signed-off-by: Gleb Natapov Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 2e0908afaf03675d22e40ce45a66b8d2070214ac Author: Alexander Graf Date: Thu Jul 29 15:04:17 2010 +0200 KVM: PPC: RCU'ify the Book3s MMU So far we've been running all code without locking of any sort. This wasn't really an issue because I didn't see any parallel access to the shadow MMU code coming. But then I started to implement dirty bitmapping to MOL which has the video code in its own thread, so suddenly we had the dirty bitmap code run in parallel to the shadow mmu code. And with that came trouble. So I went ahead and made the MMU modifying functions as parallelizable as I could think of. I hope I didn't screw up too much RCU logic :-). If you know your way around RCU and locking and what needs to be done when, please take a look at this patch. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 5302104235f0e9f05781b92a4ab25d20e4537f56 Author: Alexander Graf Date: Thu Jul 29 15:04:16 2010 +0200 KVM: PPC: Book3S_32 MMU debug compile fixes Due to previous changes, the Book3S_32 guest MMU code didn't compile properly when enabling debugging. This patch repairs the broken code paths, making it possible to define DEBUG_MMU and friends again. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 15711e9c927bfc08e66791cbf0ca7887c0880768 Author: Alexander Graf Date: Thu Jul 29 14:48:08 2010 +0200 KVM: PPC: Add get_pvinfo interface to query hypercall instructions We need to tell the guest the opcodes that make up a hypercall through interfaces that are controlled by userspace. So we need to add a call for userspace to allow it to query those opcodes so it can pass them on. This is required because the hypercall opcodes can change based on the hypervisor conditions. If we're running in hardware accelerated hypervisor mode, a hypercall looks different from when we're running without hardware acceleration. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit d7d3c2ea99c4845611997cf728af88c4c232e908 Author: Alexander Graf Date: Thu Jul 29 14:48:07 2010 +0200 KVM: PPC: Add Documentation about PV interface We just introduced a new PV interface that screams for documentation. So here it is - a shiny new and awesome text file describing the internal works of the PPC KVM paravirtual interface. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 644bfa013fd589b0df2470a66bcd104318ef24cd Author: Alexander Graf Date: Thu Jul 29 14:48:06 2010 +0200 KVM: PPC: PV wrteei On BookE the preferred way to write the EE bit is the wrteei instruction. It already encodes the EE bit in the instruction. So in order to get BookE some speedups as well, let's also PV'nize thati instruction. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 7810927760a0d16d7a41be4dab895fbbf9445bc0 Author: Alexander Graf Date: Thu Jul 29 14:48:05 2010 +0200 KVM: PPC: PV mtmsrd L=0 and mtmsr There is also a form of mtmsr where all bits need to be addressed. While the PPC64 Linux kernel behaves resonably well here, on PPC32 we do not have an L=1 form. It does mtmsr even for simple things like only changing EE. So we need to hook into that one as well and check for a mask of bits that we deem safe to change from within guest context. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 819a63dc792b0888edd3eda306a9e1e049dcbb1c Author: Alexander Graf Date: Thu Jul 29 14:48:04 2010 +0200 KVM: PPC: PV mtmsrd L=1 The PowerPC ISA has a special instruction for mtmsr that only changes the EE and RI bits, namely the L=1 form. Since that one is reasonably often occuring and simple to implement, let's go with this first. Writing EE=0 is always just a store. Doing EE=1 also requires us to check for pending interrupts and if necessary exit back to the hypervisor. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 92234722ed631f472f1c4d79d35d8e5cf6910002 Author: Alexander Graf Date: Thu Jul 29 14:48:03 2010 +0200 KVM: PPC: PV assembler helpers When we hook an instruction we need to make sure we don't clobber any of the registers at that point. So we write them out to scratch space in the magic page. To make sure we don't fall into a race with another piece of hooked code, we need to disable interrupts. To make the later patches and code in general easier readable, let's introduce a set of defines that save and restore r30, r31 and cr. Let's also define some helpers to read the lower 32 bits of a 64 bit field on 32 bit systems. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 71ee8e34fe26252b11668a95708783ec9c58cbda Author: Alexander Graf Date: Thu Jul 29 14:48:02 2010 +0200 KVM: PPC: Introduce branch patching helper We will need to patch several instruction streams over to a different code path, so we need a way to patch a single instruction with a branch somewhere else. This patch adds a helper to facilitate this patching. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 2d4f567103ff5a931e773f2e356b4eb303115deb Author: Alexander Graf Date: Thu Jul 29 14:48:01 2010 +0200 KVM: PPC: Introduce kvm_tmp framework We will soon require more sophisticated methods to replace single instructions with multiple instructions. We do that by branching to a memory region where we write replacement code for the instruction to. This region needs to be within 32 MB of the patched instruction though, because that's the furthest we can jump with immediate branches. So we keep 1MB of free space around in bss. After we're done initing we can just tell the mm system that the unused pages are free, but until then we have enough space to fit all our code in. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit d1290b15e7f139e24150cc6e6d8e904214359e8a Author: Alexander Graf Date: Thu Jul 29 14:48:00 2010 +0200 KVM: PPC: PV tlbsync to nop With our current MMU scheme we don't need to know about the tlbsync instruction. So we can just nop it out. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit d1293c927568f5b5b8dd3fa263a98683cf8556dc Author: Alexander Graf Date: Thu Jul 29 14:47:59 2010 +0200 KVM: PPC: PV instructions to loads and stores Some instructions can simply be replaced by load and store instructions to or from the magic page. This patch replaces often called instructions that fall into the above category. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 73a18109829e7696226a9fd4062d339e7c6ee130 Author: Alexander Graf Date: Thu Jul 29 14:47:58 2010 +0200 KVM: PPC: KVM PV guest stubs We will soon start and replace instructions from the text section with other, paravirtualized versions. To ease the readability of those patches I split out the generic looping and magic page mapping code out. This patch still only contains stubs. But at least it loops through the text section :). Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit d17051cb8d223dffd6bb847b0565ef1654f8e0e1 Author: Alexander Graf Date: Thu Jul 29 14:47:57 2010 +0200 KVM: PPC: Generic KVM PV guest support We have all the hypervisor pieces in place now, but the guest parts are still missing. This patch implements basic awareness of KVM when running Linux as guest. It doesn't do anything with it yet though. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit ba492962363a02c45836be205f339be48093e1be Author: Alexander Graf Date: Thu Jul 29 14:47:56 2010 +0200 KVM: Move kvm_guest_init out of generic code Currently x86 is the only architecture that uses kvm_guest_init(). With PowerPC we're getting a second user, but the signature is different there and we don't need to export it, as it uses the normal kernel init framework. So let's move the x86 specific definition of that function over to the x86 specfic header file. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 5fc87407b55f5799418f4dc5931232c2bc06d077 Author: Alexander Graf Date: Thu Jul 29 14:47:55 2010 +0200 KVM: PPC: Expose magic page support to guest Now that we have the shared page in place and the MMU code knows about the magic page, we can expose that capability to the guest! Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit e8508940a88691ad3d1c46608cd968eb4be9cbc5 Author: Alexander Graf Date: Thu Jul 29 14:47:54 2010 +0200 KVM: PPC: Magic Page Book3s support We need to override EA as well as PA lookups for the magic page. When the guest tells us to project it, the magic page overrides any guest mappings. In order to reflect that, we need to hook into all the MMU layers of KVM to force map the magic page if necessary. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit beb03f14da9ceff76ff08cbb8af064b52dc21f7e Author: Alexander Graf Date: Thu Jul 29 14:47:53 2010 +0200 KVM: PPC: First magic page steps We will be introducing a method to project the shared page in guest context. As soon as we're talking about this coupling, the shared page is colled magic page. This patch introduces simple defines, so the follow-up patches are easier to read. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 28e83b4fa7f8bd114940fa933ac8cbe80969eba2 Author: Alexander Graf Date: Thu Jul 29 14:47:52 2010 +0200 KVM: PPC: Make PAM a define On PowerPC it's very normal to not support all of the physical RAM in real mode. To check if we're matching on the shared page or not, we need to know the limits so we can restrain ourselves to that range. So let's make it a define instead of open-coding it. And while at it, let's also increase it. Signed-off-by: Alexander Graf v2 -> v3: - RMO -> PAM (non-magic page) Signed-off-by: Avi Kivity commit 90bba358873dc96a6746f0df453a0a8ca3d6b86e Author: Alexander Graf Date: Thu Jul 29 14:47:51 2010 +0200 KVM: PPC: Tell guest about pending interrupts When the guest turns on interrupts again, it needs to know if we have an interrupt pending for it. Because if so, it should rather get out of guest context and get the interrupt. So we introduce a new field in the shared page that we use to tell the guest that there's a pending interrupt lying around. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit fad93fe1d452960eb838109222cc949eb77f2859 Author: Alexander Graf Date: Thu Jul 29 14:47:50 2010 +0200 KVM: PPC: Add PV guest scratch registers While running in hooked code we need to store register contents out because we must not clobber any registers. So let's add some fields to the shared page we can just happily write to. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 5c6cedf488a1144ac4f683f3ea1a642533d1dcd2 Author: Alexander Graf Date: Thu Jul 29 14:47:49 2010 +0200 KVM: PPC: Add PV guest critical sections When running in hooked code we need a way to disable interrupts without clobbering any interrupts or exiting out to the hypervisor. To achieve this, we have an additional critical field in the shared page. If that field is equal to the r1 register of the guest, it tells the hypervisor that we're in such a critical section and thus may not receive any interrupts. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 2a342ed57756ad5d8af5456959433884367e5ab2 Author: Alexander Graf Date: Thu Jul 29 14:47:48 2010 +0200 KVM: PPC: Implement hypervisor interface To communicate with KVM directly we need to plumb some sort of interface between the guest and KVM. Usually those interfaces use hypercalls. This hypercall implementation is described in the last patch of the series in a special documentation file. Please read that for further information. This patch implements stubs to handle KVM PPC hypercalls on the host and guest side alike. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit a73a9599e03eef1324d5aeecaebc1b339d2e1664 Author: Alexander Graf Date: Thu Jul 29 14:47:47 2010 +0200 KVM: PPC: Convert SPRG[0-4] to shared page When in kernel mode there are 4 additional registers available that are simple data storage. Instead of exiting to the hypervisor to read and write those, we can just share them with the guest using the page. This patch converts all users of the current field to the shared page. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit de7906c36ca1e22a3e3600e95c6a4e2c1e4e2e9c Author: Alexander Graf Date: Thu Jul 29 14:47:46 2010 +0200 KVM: PPC: Convert SRR0 and SRR1 to shared page The SRR0 and SRR1 registers contain cached values of the PC and MSR respectively. They get written to by the hypervisor when an interrupt occurs or directly by the kernel. They are also used to tell the rfi(d) instruction where to jump to. Because it only gets touched on defined events that, it's very simple to share with the guest. Hypervisor and guest both have full r/w access. This patch converts all users of the current field to the shared page. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 5e030186dfc4e4e47c84d2557b17e4aa06c76f96 Author: Alexander Graf Date: Thu Jul 29 14:47:45 2010 +0200 KVM: PPC: Convert DAR to shared page. The DAR register contains the address a data page fault occured at. This register behaves pretty much like a simple data storage register that gets written to on data faults. There is no hypervisor interaction required on read or write. This patch converts all users of the current field to the shared page. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit d562de48de68b60b3d2522e7d8273d7112034ee6 Author: Alexander Graf Date: Thu Jul 29 14:47:44 2010 +0200 KVM: PPC: Convert DSISR to shared page The DSISR register contains information about a data page fault. It is fully read/write from inside the guest context and we don't need to worry about interacting based on writes of this register. This patch converts all users of the current field to the shared page. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 666e7252a15b7fc4a116e65deaf6da5e4ce660e3 Author: Alexander Graf Date: Thu Jul 29 14:47:43 2010 +0200 KVM: PPC: Convert MSR to shared page One of the most obvious registers to share with the guest directly is the MSR. The MSR contains the "interrupts enabled" flag which the guest has to toggle in critical sections. So in order to bring the overhead of interrupt en- and disabling down, let's put msr into the shared page. Keep in mind that even though you can fully read its contents, writing to it doesn't always update all state. There are a few safe fields that don't require hypervisor interaction. See the documentation for a list of MSR bits that are safe to be set from inside the guest. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 96bc451a153297bf1f99ef2d633d512ea349ae7a Author: Alexander Graf Date: Thu Jul 29 14:47:42 2010 +0200 KVM: PPC: Introduce shared page For transparent variable sharing between the hypervisor and guest, I introduce a shared page. This shared page will contain all the registers the guest can read and write safely without exiting guest context. This patch only implements the stubs required for the basic structure of the shared page. The actual register moving follows. Signed-off-by: Alexander Graf Signed-off-by: Avi Kivity commit 34698d8c61bd3fc86b2e99c3d1ad9ef140b3eb0d Author: Mohammed Gamal Date: Wed Aug 4 14:41:04 2010 +0300 KVM: x86 emulator: Fix nop emulation If a nop instruction is encountered, we jump directly to the done label. This skip updating rip. Break from the switch case instead Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity commit 2dbd0dd711e6c0ca6a2be9e6d93bbeb339386638 Author: Avi Kivity Date: Sun Aug 1 15:40:19 2010 +0300 KVM: x86 emulator: Decode memory operands directly into a 'struct operand' Since modrm operand can be either register or memory, decoding it into a 'struct operand', which can represent both, is simpler. Signed-off-by: Avi Kivity commit 1f6f05800e2fdd815ac63e3264071d26d429f491 Author: Avi Kivity Date: Sun Aug 1 15:19:22 2010 +0300 KVM: x86 emulator: change invlpg emulation to use src.mem.addr Instead of using modrm_ea, which will soon be gone. Signed-off-by: Avi Kivity commit 342fc63095e2d676f209b202d41a3f670dd9bf08 Author: Avi Kivity Date: Sun Aug 1 15:13:22 2010 +0300 KVM: x86 emulator: switch LEA to use SrcMem decoding The NoAccess flag will prevent memory from being accessed. Signed-off-by: Avi Kivity commit 5a506b125f1c97c846654ebacc913a136284e42b Author: Avi Kivity Date: Sun Aug 1 15:10:29 2010 +0300 KVM: x86 emulator: add NoAccess flag for memory instructions that skip access Use for INVLPG, which accesses the tlb, not memory. Signed-off-by: Avi Kivity commit b27f38563d956135a5e80aca749b399ac5f3158a Author: Avi Kivity Date: Sun Aug 1 14:25:22 2010 +0300 KVM: x86 emulator: use struct operand for mov reg,dr and mov dr,reg for reg op This is an ordinary modrm source or destination; use the standard structure representing it. Signed-off-by: Avi Kivity commit 1a0c7d44e4553ffb4902ec15549a9b855cd05a59 Author: Avi Kivity Date: Sun Aug 1 14:25:22 2010 +0300 KVM: x86 emulator: use struct operand for mov reg,cr and mov cr,reg for reg op This is an ordinary modrm source or destination; use the standard structure representing it. Signed-off-by: Avi Kivity commit cecc9e39161898eb767a6b797e27a1660b3eb27e Author: Avi Kivity Date: Sun Aug 1 14:48:44 2010 +0300 KVM: x86 emulator: mark mov cr and mov dr as 64-bit instructions in long mode Signed-off-by: Avi Kivity commit 7f9b4b75be866de938a3094413a60554f7e66e4d Author: Avi Kivity Date: Sun Aug 1 14:46:54 2010 +0300 KVM: x86 emulator: introduce Op3264 for mov cr and mov dr instructions The operands for these instructions are 32 bits or 64 bits, depending on long mode, and ignoring REX prefixes, or the operand size prefix. Signed-off-by: Avi Kivity commit 1e87e3efe764285133866a14ddc71cf211f022c2 Author: Avi Kivity Date: Sun Aug 1 14:42:51 2010 +0300 KVM: x86 emulator: simplify REX.W check (x && (x & y)) == (x & y) Signed-off-by: Avi Kivity commit d4709c78eeff2b272e0b9727748b72371b0e71ab Author: Avi Kivity Date: Sun Aug 1 13:53:19 2010 +0300 KVM: x86 emulator: drop use_modrm_ea Unused (and has never been). Signed-off-by: Avi Kivity commit 91ff3cb43cb3dd8810d726dfa1f3736dc9aea1df Author: Avi Kivity Date: Sun Aug 1 12:53:09 2010 +0300 KVM: x86 emulator: put register operand fetch into a function The code is repeated three times, put it into fetch_register_operand() Signed-off-by: Avi Kivity commit 3d9e77dff81c8be21ec0e7950ae06d1bddff8066 Author: Avi Kivity Date: Sun Aug 1 12:41:59 2010 +0300 KVM: x86 emulator: use SrcAcc to simplify xchg decoding Signed-off-by: Avi Kivity commit 4515453964e78ce556a98c56aeb675ed8d48b8de Author: Avi Kivity Date: Sun Aug 1 12:39:53 2010 +0300 KVM: x86 emulator: simplify xchg decode tables Use X8() to avoid repetition. Signed-off-by: Avi Kivity commit 1a6440aef6d63252e6c80aff651147b5f8c737e9 Author: Avi Kivity Date: Sun Aug 1 12:35:10 2010 +0300 KVM: x86 emulator: use correct type for memory address in operands Currently we use a void pointer for memory addresses. That's wrong since these are guest virtual addresses which are not directly dereferencable by the host. Use the correct type, unsigned long. Signed-off-by: Avi Kivity commit 09ee57cdae3156aa3b74f378a0c57ef657c90f38 Author: Avi Kivity Date: Sun Aug 1 12:07:29 2010 +0300 KVM: x86 emulator: push segment override out of decode_modrm() Let it compute modrm_seg instead, and have the caller apply it. Signed-off-by: Avi Kivity commit dbe7758482a870f30a86bdeefebf4fc260afef11 Author: Joerg Roedel Date: Mon Aug 2 16:46:45 2010 +0200 KVM: SVM: Check for asid != 0 on nested vmrun This patch lets a nested vmrun fail if the L1 hypervisor left the asid zero. This fixes the asid_zero unit test. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 52c65a30a5c6f31cd66dba57c22d18cafa5e327f Author: Joerg Roedel Date: Mon Aug 2 16:46:44 2010 +0200 KVM: SVM: Check for nested vmrun intercept before emulating vmrun This patch lets the nested vmrun fail if the L1 hypervisor has not intercepted vmrun. This fixes the "vmrun intercept check" unit test. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity commit 4132779b1718f066ec2d06a71c8958039865cd49 Author: Xiao Guangrong Date: Mon Aug 2 16:15:08 2010 +0800 KVM: MMU: mark page dirty only when page is really written Mark page dirty only when this page is really written, it's more exacter, and also can fix dirty page marking in speculation path Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 8672b7217a234c41d425a63b171af809e1169842 Author: Xiao Guangrong Date: Mon Aug 2 16:14:04 2010 +0800 KVM: MMU: move bits lost judgement into a separate function Introduce spte_has_volatile_bits() function to judge whether spte bits will miss, it's more readable and can help us to cleanup code later Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 251464c464cf7df7d6d548f1065f49a3ecd08118 Author: Xiao Guangrong Date: Mon Aug 2 16:12:08 2010 +0800 KVM: MMU: using kvm_set_pfn_accessed() instead of mark_page_accessed() It's a small cleanup that using using kvm_set_pfn_accessed() instead of mark_page_accessed() Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity commit 4fc40f076f4fa289dd546990b597351c9cdad985 Author: Gleb Natapov Date: Mon Aug 2 12:47:51 2010 +0300 KVM: x86 emulator: check io permissions only once for string pio Do not recheck io permission on every iteration. Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity commit 9928ff608b1b6ba10fafde85f57970a83a181331 Author: Avi Kivity Date: Sun Aug 1 18:35:24 2010 +0300 KVM: x86 emulator: fix LMSW able to clear cr0.pe LMSW is documented not to be able to clear cr0.pe; make it so. Signed-off-by: Avi Kivity commit e85d28f8e8cef09b8e424448ccedb7244cfbf147 Author: Gleb Natapov Date: Thu Jul 29 15:11:52 2010 +0300 KVM: x86 emulator: don't update vcpu state if instruction is restarted No need to update vcpu state since instruction is in the middle of the emulation. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti commit 63540382ccb83d2857964858c1ac7eb7d37de497 Author: Avi Kivity Date: Thu Jul 29 15:11:55 2010 +0300 KVM: x86 emulator: convert some push instructions to direct decode Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit d0e533255d3811382c97b594ff7ab19b9b036814 Author: Avi Kivity Date: Thu Jul 29 15:11:54 2010 +0300 KVM: x86 emulator: allow repeat macro arguments to contain commas Needed for repeating instructions with execution functions. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 73fba5f4fe3e08bd7acb18a65b53643445c8f028 Author: Avi Kivity Date: Thu Jul 29 15:11:53 2010 +0300 KVM: x86 emulator: move decode tables downwards So they can reference execution functions. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit dde7e6d12a9ef9f727d05ce824f4fe75ca2a5b3a Author: Avi Kivity Date: Thu Jul 29 15:11:52 2010 +0300 KVM: x86 emulator: move x86_decode_insn() downwards No code changes. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit ef65c88912cafe56de2737c440aefc764fd8f202 Author: Avi Kivity Date: Thu Jul 29 15:11:51 2010 +0300 KVM: x86 emulator: allow storing emulator execution function in decode tables Instead of looking up the opcode twice (once for decode flags, once for the big execution switch) look up both flags and function in the decode tables. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 9aabc88fc8687ba3a520e2ec459821d05f72474e Author: Avi Kivity Date: Thu Jul 29 15:11:50 2010 +0300 KVM: x86 emulator: store x86_emulate_ops in emulation context It doesn't ever change, so we don't need to pass it around everywhere. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit ab85b12b1a7fd125588f9447653a71ec8e1b5024 Author: Avi Kivity Date: Thu Jul 29 15:11:49 2010 +0300 KVM: x86 emulator: move ByteOp and Dst back to bits 0:3 Now that the group index no longer exists, the space is free. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 3885d530b0eb26c82b6f085c181442b0aa6f8fed Author: Avi Kivity Date: Thu Jul 29 15:11:48 2010 +0300 KVM: x86 emulator: drop support for old-style groups Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 9f5d3220e3047536f702ed67309f6a581c0bed8b Author: Avi Kivity Date: Thu Jul 29 15:11:47 2010 +0300 KVM: x86 emulator: convert group 9 to new style Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 2cb20bc8af313b400e5c2c94886e0d87e2ec4e4d Author: Avi Kivity Date: Thu Jul 29 15:11:46 2010 +0300 KVM: x86 emulator: convert group 8 to new style Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 2f3a9bc9ebd42e00929f370e1a56e40028a8d651 Author: Avi Kivity Date: Thu Jul 29 15:11:45 2010 +0300 KVM: x86 emulator: convert group 7 to new style Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit b67f9f0741e288c97f73cdc9e39e2c4943004332 Author: Avi Kivity Date: Thu Jul 29 15:11:44 2010 +0300 KVM: x86 emulator: convert group 5 to new style Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 591c9d20a37db54c7234742bff925cb2e6fdca4b Author: Avi Kivity Date: Thu Jul 29 15:11:43 2010 +0300 KVM: x86 emulator: convert group 4 to new style Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit ee70ea30ee81dda2cf5fbc2e143ce3cb303187ce Author: Avi Kivity Date: Thu Jul 29 15:11:42 2010 +0300 KVM: x86 emulator: convert group 3 to new style Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 99880c5cd54b28a26fd6ed949f545cc0075e4393 Author: Avi Kivity Date: Thu Jul 29 15:11:41 2010 +0300 KVM: x86 emulator: convert group 1A to new style Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 5b92b5faff8ec66c75f3716ae7c4bf1e2b99d7e6 Author: Avi Kivity Date: Thu Jul 29 15:11:40 2010 +0300 KVM: x86 emulator: convert group 1 to new style Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 120df8902dbe91cc1b3b7886481e350fae7334fe Author: Avi Kivity Date: Thu Jul 29 15:11:39 2010 +0300 KVM: x86 emulator: allow specifying group directly in opcode Instead of having a group number, store the group table pointer directly in the opcode. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 793d5a8d6baad9062b0a03e034944b31e50dfe5c Author: Avi Kivity Date: Thu Jul 29 15:11:38 2010 +0300 KVM: x86 emulator: reserve group code 0 We'll be using that to distinguish between new-style and old-style groups. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 42a1c5209570ead6d89abecd99ab12947a41d20a Author: Avi Kivity Date: Thu Jul 29 15:11:37 2010 +0300 KVM: x86 emulator: move group tables to top No code changes. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit fd853310a1ebaef257956208165873494bb805dc Author: Avi Kivity Date: Thu Jul 29 15:11:36 2010 +0300 KVM: x86 emulator: Add wrappers for easily defining opcodes Once 'struct opcode' grows, its initializer will become more complicated. Wrap the simple initializers in a D() macro, and replace the empty initializers with an even simpler N macro. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit d65b1dee408243daa45110ee494d204508d31657 Author: Avi Kivity Date: Thu Jul 29 15:11:35 2010 +0300 KVM: x86 emulator: introduce 'struct opcode' This will hold all the information known about the opcode. Currently, this is just the decode flags. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit ea9ef04e19c7c441b1ce9fe28ff6d9522c848baa Author: Avi Kivity Date: Thu Jul 29 15:11:34 2010 +0300 KVM: x86 emulator: drop parentheses in repreat macros The parenthese make is impossible to use the macros with initializers that require braces. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 62bd430e6d41ac84ff2fb719f5783c3692718f47 Author: Mohammed Gamal Date: Wed Jul 28 12:38:40 2010 +0300 KVM: x86 emulator: Add IRET instruction Ths patch adds IRET instruction (opcode 0xcf). Currently, only IRET in real mode is emulated. Protected mode support is to be added later if needed. Signed-off-by: Mohammed Gamal Reviewed-by: Avi Kivity Reviewed-by: Paolo Bonzini Signed-off-by: Marcelo Tosatti commit 7a190667bb316653cbb782fff95cfdfcf51ded45 Author: Joerg Roedel Date: Tue Jul 27 18:14:21 2010 +0200 KVM: SVM: Emulate next_rip svm feature This patch implements the emulations of the svm next_rip feature in the nested svm implementation in kvm. Signed-off-by: Joerg Roedel Signed-off-by: Marcelo Tosatti commit 3f6a9d1693deaeef28d98109bc92c98dd94a8523 Author: Joerg Roedel Date: Tue Jul 27 18:14:20 2010 +0200 KVM: SVM: Sync efer back into nested vmcb This patch fixes a bug in a nested hypervisor that heavily switches between real-mode and long-mode. The problem is fixed by syncing back efer into the guest vmcb on emulated vmexit. Signed-off-by: Joerg Roedel Signed-off-by: Marcelo Tosatti commit 19ada5c4b6170bbc7ac4f2f38dba0068fdc7755a Author: Xiao Guangrong Date: Tue Jul 27 11:21:18 2010 +0800 KVM: MMU: remove valueless output message After commit 53383eaad08d, the '*spte' has updated before call rmap_remove()(in most case it's 'shadow_trap_nonpresent_pte'), so remove this information from error message Signed-off-by: Xiao Guangrong Signed-off-by: Marcelo Tosatti commit d359192feaf02861327339a9dda6b2b2d765c2bc Author: Avi Kivity Date: Mon Jul 26 18:32:39 2010 +0300 KVM: VMX: Use host_gdt variable wherever we need the host gdt Now that we have the host gdt conveniently stored in a variable, make use of it instead of querying the cpu. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit e071edd5ba8dd7a493eef229d495cf6232b09534 Author: Avi Kivity Date: Mon Jul 26 14:37:51 2010 +0300 KVM: x86 emulator: unify the two Group 3 variants Use just one group table for byte (F6) and word (F7) opcodes. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit dfe11481d8f1b6a7354c34cb252ff1a8af233cfe Author: Avi Kivity Date: Mon Jul 26 14:37:50 2010 +0300 KVM: x86 emulator: Allow LOCK prefix for NEG and NOT Opcodes F6/2, F6/3, F7/2, F7/3. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 4968ec4e26007770d8759fbface4d4712a27b5d4 Author: Avi Kivity Date: Mon Jul 26 14:37:49 2010 +0300 KVM: x86 emulator: simplify Group 1 decoding Move operand decoding to the opcode table, keep lock decoding in the group table. This allows us to get consolidate the four variants of Group 1 into one group. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 52811d7de565b2db988257591fbf2a6be31c1459 Author: Avi Kivity Date: Mon Jul 26 14:37:48 2010 +0300 KVM: x86 emulator: mix decode bits from opcode and group decode tables Allow bits that are common to all members of a group to be specified in the opcode table instead of the group table. This allows some simplification of the decode tables. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 047a4818094217a1323d8f31f9318ea2e142f745 Author: Avi Kivity Date: Mon Jul 26 14:37:47 2010 +0300 KVM: x86 emulator: add Undefined decode flag Add a decode flag to indicate the instruction is invalid. Will come in useful later, when we mix decode bits from the opcode and group table. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 2ce495365f6cdd5792c4db0ddb8ac8544950b671 Author: Avi Kivity Date: Mon Jul 26 14:37:46 2010 +0300 KVM: x86 emulator: Make group storage bits separate from operand bits Currently group bits are stored in bits 0:7, where operand bits are stored. Make group bits be 0:3, and move the existing bits 0:3 to 16:19, so we can mix group and operand bits. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 880a1883785d37287e13e4faf3fe92b294404de0 Author: Avi Kivity Date: Mon Jul 26 14:37:45 2010 +0300 KVM: x86 emulator: consolidate Jcc rel32 decoding Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit be8eacddbd8ee60506a6f940b3efb93cb61d7861 Author: Avi Kivity Date: Mon Jul 26 14:37:44 2010 +0300 KVM: x86 emulator: consolidate CMOVcc decoding Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit b6e6153885d6463896d9b465e59b361eac60efa0 Author: Avi Kivity Date: Mon Jul 26 14:37:43 2010 +0300 KVM: x86 emulator: consolidate MOV reg, imm decoding Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit b3ab3405fe3d40ae9c5350ee014c7c086fcf3d97 Author: Avi Kivity Date: Mon Jul 26 14:37:42 2010 +0300 KVM: x86 emulator: consolidate Jcc rel8 decoding Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 3849186c381e2e6291828579c382662520b44696 Author: Avi Kivity Date: Mon Jul 26 14:37:41 2010 +0300 KVM: x86 emulator: consolidate push/pop reg decoding Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 749358a6b4691bfd2abfa9e4be2142af4697de3a Author: Avi Kivity Date: Mon Jul 26 14:37:40 2010 +0300 KVM: x86 emulator: consolidate inc/dec reg decoding Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 83babbca4617ab086621fe65a71a2168420f1d88 Author: Avi Kivity Date: Mon Jul 26 14:37:39 2010 +0300 KVM: x86 emulator: add macros for repetitive instructions Some instructions are repetitive in the opcode space, add macros for consolidating them. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit 91269b8f94eedce1767b2f208d656e5a5683326a Author: Avi Kivity Date: Sun Jul 25 14:51:16 2010 +0300 KVM: x86 emulator: fix handling for unemulated instructions If an instruction is present in the decode tables but not in the execution switch, it will be emulated as a NOP. An example is IRET (0xcf). Fix by adding default: labels to the execution switches. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti commit d8692ac012104ebffb343c0bcb4a2b8642c821a6 Author: Jiri Kosina Date: Sat Oct 23 22:59:33 2010 +0200 HID: fix mismerge in hid-lg Fix wrong merge in hid-lg -- report fixup functions now get pointer to rdesc. Signed-off-by: Jiri Kosina commit f1275410a108ac38b59149d10bce3f35edd70876 Merge: 8b66a16 00e7f96 Author: Jiri Kosina Date: Sat Oct 23 22:54:53 2010 +0200 Merge branch 'waltop' into for-linus commit d0d68b8693bd16bfbbc93b89f1d9f3351723307c Author: Jack Morgenstein Date: Mon Oct 4 12:11:34 2010 +0000 IB/mlx4: Signal node desc changes to SM by using FW to generate trap 144 The Node Description cannot be changed via MADs (it is read-only). Until now, it was changed in the driver via sysfs, and the new Node Description was simply inserted by the driver into MAD responses (replacing the description returned by FW). System startup scripts use the sysfs interface to change the node description at driver startup to show the hostname, etc. However, this has a race condition: the SM could discover the original FW node description rather than the system-specific description if it queried the port before the startup scripts finish running. For mlx4, we fix this with a new FW command (SET_NODE) that allows passing the new node description to FW. When this command is invoked, FW sends a trap 144 to the SM. When it gets this trap, the SM can query the node to obtain the new node description -- thus eliminating the effects of the race. This patch simply calls SET_NODE command when a new node description is entered via sysfs (thus causing trap 144 to be issued by the FW). We ignore all failures of the SET_NODE command (including those caused by using a device FW that predates the SET_NODE command), since in that case things work just as before. Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier commit 8b66a16f25f819bb1f132f075c5c01a288776cf8 Merge: bbd128b 41fa923 Author: Jiri Kosina Date: Sat Oct 23 22:49:32 2010 +0200 Merge branch 'uc-logic' into for-linus Conflicts: drivers/hid/hid-ids.h drivers/hid/hid-lg.c drivers/hid/usbhid/hid-quirks.c commit bbd128b5acae85b2ef346e95cc5a729ac5252f19 Merge: c3d9d74 48216fb f516611 2c6118e 921990b 0277873 d2b570a Author: Jiri Kosina Date: Sat Oct 23 22:47:38 2010 +0200 Merge branches '3m', 'egalax', 'logitech', 'magicmouse', 'ntrig' and 'roccat' into for-linus commit 7454159d3c01371c1abed9d941044d95d2efde97 Author: matt mooney Date: Fri Sep 24 19:17:18 2010 +0000 IB: Replace EXTRA_CFLAGS with ccflags-y Signed-off-by: matt mooney Signed-off-by: Roland Dreier commit c3d9d74336c10c133ed062a1d778d457c6a46422 Merge: 35da7a3 569b10a cb17468 Author: Jiri Kosina Date: Sat Oct 23 22:44:36 2010 +0200 Merge branches 'upstream' and 'upstream-fixes' into for-linus commit 97cb7e40c69618ba03030b467faf60dc3ee982ee Author: Steve Wise Date: Fri Aug 13 20:56:34 2010 +0000 RDMA/ucma: Allow tuning the max listen backlog For iWARP connections, the connect request is carried in a TCP payload on an already established TCP connection. So if the ucma's backlog is full, the connection request is transmitted and acked at the TCP level by the time the connect request gets dropped in the ucma. The end result is the connection gets rejected by the iWARP provider. Further, a 32 node 256NP OpenMPI job will generate > 128 connect requests on some ranks. This patch increases the default max backlog to 1024, and adds a sysctl variable so the backlog can be adjusted at run time. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit c3aa9b186b95025d4ba4e90d6140c9887dfaae0a Author: Eli Cohen Date: Mon Sep 20 07:05:06 2010 +0000 IPoIB: Set dev_id field of net_device Use the net device's dev_id field to encode the port number of the pci device. This can be used to to associate a net device with the pci device's port. The encoding is: dev_id = port - 1. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 52fae5eead706cb8d604ee634162f6694d75ccad Author: Jarod Wilson Date: Sat Oct 23 16:43:29 2010 -0300 [media] imon: fix nomouse modprobe option Pointed out by Bonne Eggleston on the lirc list. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 6aa209e41fd51d3ade96e1550d9b514a07ebd8f1 Author: Jarod Wilson Date: Sat Oct 23 16:42:51 2010 -0300 [media] imon: remove redundant change_protocol call There was a redundant call to imon_ir_change_protocol -- its already getting called from ir_input_register. Also do some minor housekeeping with var names and formatting. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 428cc7633dedbab05aab80b805d8585572dc6dbf Author: Jarod Wilson Date: Sat Oct 23 16:42:20 2010 -0300 [media] imon: fix my egregious brown paper bag w/rdev/idev split Somehow, I managed to screw things up when reworking the rdev/idev split patch from David, and started trying to get ir_input_dev from idev instead of rdev, thus resulting in button presses hanging the system. This fixes it. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 3201f3dd7370f2d29dfb689ae16f8f5d4066cc33 Author: Trond Myklebust Date: Sat Oct 23 15:43:10 2010 -0400 NFSv4: Fix a regression in decode_getfattr We don't want to have the mounted_on_fileid overwrite the true fileid. We only return the former if the server didn't supply the true fileid. Signed-off-by: Trond Myklebust commit 7ad07353003d6ff69fe0b987813bb77b4d5ac23d Author: Trond Myklebust Date: Sat Oct 23 15:34:20 2010 -0400 NFSv4: Fix up decode_attr_filehandle() to handle the case of empty fh pointer decode_attr_filehandle still needs to skip the XDR-encoded filehandle if someone passes a null pointer argument. Signed-off-by: Trond Myklebust commit 4a201d6e3f4253f918555cc7c27c418f8ac1bb65 Author: Trond Myklebust Date: Sat Oct 23 14:53:23 2010 -0400 NFS: Ensure we check all allocation return values in new readdir code Also some clean ups. Signed-off-by: Trond Myklebust commit 82f2e5472e2304e531c2fa85e457f4a71070044e Author: Bryan Schumaker Date: Thu Oct 21 16:33:18 2010 -0400 NFS: Readdir plus in v4 By requsting more attributes during a readdir, we can mimic the readdir plus operation that was in NFSv3. To test, I ran the command `ls -lU --color=none` on directories with various numbers of files. Without readdir plus, I see this: n files | 100 | 1,000 | 10,000 | 100,000 | 1,000,000 --------+-----------+-----------+-----------+-----------+---------- real | 0m00.153s | 0m00.589s | 0m05.601s | 0m56.691s | 9m59.128s user | 0m00.007s | 0m00.007s | 0m00.077s | 0m00.703s | 0m06.800s sys | 0m00.010s | 0m00.070s | 0m00.633s | 0m06.423s | 1m10.005s access | 3 | 1 | 1 | 4 | 31 getattr | 2 | 1 | 1 | 1 | 1 lookup | 104 | 1,003 | 10,003 | 100,003 | 1,000,003 readdir | 2 | 16 | 158 | 1,575 | 15,749 total | 111 | 1,021 | 10,163 | 101,583 | 1,015,784 With readdir plus enabled, I see this: n files | 100 | 1,000 | 10,000 | 100,000 | 1,000,000 --------+-----------+-----------+-----------+-----------+---------- real | 0m00.115s | 0m00.206s | 0m01.079s | 0m12.521s | 2m07.528s user | 0m00.003s | 0m00.003s | 0m00.040s | 0m00.290s | 0m03.296s sys | 0m00.007s | 0m00.020s | 0m00.120s | 0m01.357s | 0m17.556s access | 3 | 1 | 1 | 1 | 7 getattr | 2 | 1 | 1 | 1 | 1 lookup | 4 | 3 | 3 | 3 | 3 readdir | 6 | 62 | 630 | 6,300 | 62,993 total | 15 | 67 | 635 | 6,305 | 63,004 Readdir plus disabled has about a 16x increase in the number of rpc calls and is 4 - 5 times slower on large directories. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit ae42c70a60fe330d9c2af7c4b92ce78484308e37 Author: Bryan Schumaker Date: Thu Oct 21 16:33:17 2010 -0400 NFS: introduce generic decode_getattr function Getattr should be able to decode errors and the readdir file handle. decode_getfattr_attrs does the actual attribute decoding, while decode_getfattr_generic will check the opcode before decoding. This will let other functions call decode_getfattr_attrs to decode their attributes. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit 9942438089d5c0e3adecdcb7bc360b8fe0ce7e62 Author: Bryan Schumaker Date: Thu Oct 21 16:33:16 2010 -0400 NFS: check xdr_decode for errors Check if the decoded entry has the eof bit set when returning from xdr_decode with an error. If it does, we should set the eof bits in the array before returning. This should keep us from looping when we expect more data but the server doesn't give us anything new. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit 3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217 Author: Bryan Schumaker Date: Thu Oct 21 16:33:16 2010 -0400 NFS: nfs_readdir_filler catch all errors Check for all errors, not a specific one. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit 56e4ebf877b6043c289bda32a5a7385b80c17dee Author: Bryan Schumaker Date: Wed Oct 20 15:44:37 2010 -0400 NFS: readdir with vmapped pages We can use vmapped pages to read more information from the network at once. This will reduce the number of calls needed to complete a readdir. Signed-off-by: Bryan Schumaker [trondmy: Added #include for linux/vmalloc.h> in fs/nfs/dir.c] Signed-off-by: Trond Myklebust commit afa8ccc978c24d8ab22e3b3b8cbd1054c84c070b Author: Bryan Schumaker Date: Wed Oct 20 15:44:31 2010 -0400 NFS: remove page size checking code Remove the page size checking code for a readdir decode. This is now done by decode_dirent with xdr_streams. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit babddc72a9468884ce1a23db3c3d54b0afa299f0 Author: Bryan Schumaker Date: Wed Oct 20 15:44:29 2010 -0400 NFS: decode_dirent should use an xdr_stream Convert nfs*xdr.c to use an xdr stream in decode_dirent. This will prevent a kernel oops that has been occuring when reading a vmapped page. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit ba8e452a4fe64a51b74d43761e14d99f0666cc45 Author: Trond Myklebust Date: Tue Oct 19 19:58:49 2010 -0400 SUNRPC: Add a helper function xdr_inline_peek We sometimes need to be able to read ahead in an xdr_stream without incrementing the current pointer position. Signed-off-by: Trond Myklebust commit 0715dc632a271fc0fedf3ef4779fe28ac1e53ef4 Author: Bryan Schumaker Date: Fri Sep 24 18:50:01 2010 -0400 NFS: remove readdir plus limit We will now use readdir plus even on directories that are very large. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit d39ab9de3b80da5835049b1c3b49da4e84e01c07 Author: Bryan Schumaker Date: Fri Sep 24 18:50:01 2010 -0400 NFS: re-add readdir plus This patch adds readdir plus support to the cache array. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit baf57a09e9d87b14be5e2788828169394a2525ab Author: Trond Myklebust Date: Fri Sep 24 18:49:43 2010 -0400 NFS: Optimise the readdir searches If we're going through the loop in nfs_readdir() more than once, we usually do not want to restart searching from the beginning of the pages cache. We only want to do that if the previous search failed... Signed-off-by: Trond Myklebust commit d1bacf9eb2fd0e7ef870acf84b9e3b157dcfa7dc Author: Bryan Schumaker Date: Fri Sep 24 14:48:42 2010 -0400 NFS: add readdir cache array This patch adds the readdir cache array and functions to retreive the array stored on a cache page, clear the array by freeing allocated memory, add an entry to the array, and search the array for a given cookie. It then modifies readdir to make use of the new cache array. With the new cache array method, we no longer need some of this code. Finally, nfs_llseek_dir() will set file->f_pos to a value greater than 0 and desc->dir_cookie to zero. When we see this, readdir needs to find the file at position file->f_pos from the start of the directory. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit 8c7597f6ce212bbc8ca05090e21820ffe9792b3d Author: Randy Dunlap Date: Fri Oct 22 16:18:52 2010 -0700 nfs: include ratelimit.h, fix nfs4state build error nfs4state.c uses interfaces from ratelimit.h. It needs to include that header file to fix build errors: fs/nfs/nfs4state.c:1195: warning: type defaults to 'int' in declaration of 'DEFINE_RATELIMIT_STATE' fs/nfs/nfs4state.c:1195: warning: parameter names (without types) in function declaration fs/nfs/nfs4state.c:1195: error: invalid storage class for function 'DEFINE_RATELIMIT_STATE' fs/nfs/nfs4state.c:1195: error: implicit declaration of function '__ratelimit' fs/nfs/nfs4state.c:1195: error: '_rs' undeclared (first use in this function) Signed-off-by: Randy Dunlap Cc: Trond Myklebust Cc: linux-nfs@vger.kernel.org Signed-off-by: Trond Myklebust commit 168667c43bbafff11b46014a1e94477ff7619f45 Author: Trond Myklebust Date: Tue Oct 19 19:47:49 2010 -0400 NFSv4: The state manager must ignore EKEYEXPIRED. Otherwise, we cannot recover state correctly. Signed-off-by: Trond Myklebust commit 898f635c4297e91ceac675d83c4a460f26118342 Author: Trond Myklebust Date: Sat Oct 23 11:24:25 2010 -0400 NFSv4: Don't ignore the error return codes from nfs_intent_set_file If nfs_intent_set_file() returns an error, we usually want to pass that back up the stack. Also ensure that nfs_open_revalidate() returns '1' on success. Signed-off-by: Trond Myklebust commit 35da7a307c535f9c2929cae277f3df425c9f9b1e Merge: 5f05647 7ad58c0 Author: Linus Torvalds Date: Sat Oct 23 11:55:00 2010 -0700 Merge branch 'for-2.6.37/core' of git://git.kernel.dk/linux-2.6-block * 'for-2.6.37/core' of git://git.kernel.dk/linux-2.6-block: block: fix use-after-free bug in blk throttle code commit 5f05647dd81c11a6a165ccc8f0c1370b16f3bcb0 Merge: 02f3603 ec37a48 Author: Linus Torvalds Date: Sat Oct 23 11:47:02 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1699 commits) bnx2/bnx2x: Unsupported Ethtool operations should return -EINVAL. vlan: Calling vlan_hwaccel_do_receive() is always valid. tproxy: use the interface primary IP address as a default value for --on-ip tproxy: added IPv6 support to the socket match cxgb3: function namespace cleanup tproxy: added IPv6 support to the TPROXY target tproxy: added IPv6 socket lookup function to nf_tproxy_core be2net: Changes to use only priority codes allowed by f/w tproxy: allow non-local binds of IPv6 sockets if IP_TRANSPARENT is enabled tproxy: added tproxy sockopt interface in the IPV6 layer tproxy: added udp6_lib_lookup function tproxy: added const specifiers to udp lookup functions tproxy: split off ipv6 defragmentation to a separate module l2tp: small cleanup nf_nat: restrict ICMP translation for embedded header can: mcp251x: fix generation of error frames can: mcp251x: fix endless loop in interrupt handler if CANINTF_MERRF is set can-raw: add msg_flags to distinguish local traffic 9p: client code cleanup rds: make local functions/variables static ... Fix up conflicts in net/core/dev.c, drivers/net/pcmcia/smc91c92_cs.c and drivers/net/wireless/ath/ath9k/debug.c as per David commit 7ad58c028652753814054f4e3ac58f925e7343f4 Author: Jens Axboe Date: Sat Oct 23 20:40:26 2010 +0200 block: fix use-after-free bug in blk throttle code blk_throtl_exit() frees the throttle data hanging off the queue in blk_cleanup_queue(), but blk_put_queue() will indirectly dereference this data when calling blk_sync_queue() which in turns calls throtl_shutdown_timer_wq(). Fix this by moving the freeing of the throttle data to when the queue is truly being released, and post the call to blk_sync_queue(). Reported-by: Ingo Molnar Tested-by: Ingo Molnar Signed-off-by: Jens Axboe commit aa7b250c252cc8e6b1daf0e1eada5eba42a1a68d Author: Joe Perches Date: Thu Oct 21 22:17:19 2010 -0700 tracing: Fix 'faild' -> 'failed' typo Signed-off-by: Joe Perches Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Jiri Kosina LKML-Reference: Signed-off-by: Ingo Molnar commit b8ecad8b2f8757d51632b1ea6d602c1f7b9760a2 Merge: eea4a0b 8bfb5e7 Author: Ingo Molnar Date: Sat Oct 23 20:05:43 2010 +0200 Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/urgent commit a1b4bd694a803eba49d637de32bb249638ceadb4 Author: Rafael J. Wysocki Date: Sat Oct 23 19:35:15 2010 +0200 ACPI / Battery: Return -ENODEV for unknown values in get_property() The function acpi_battery_get_property() is called by the power supply framework's function power_supply_show_property() implementing the sysfs interface for power supply devices as the ACPI battery driver's ->get_property() callback. Thus it is supposed to return error code if the value of the given property is unknown. Unfortunately, however, it returns 0 in those cases and puts a wrong (negative) value into the intval field of the union power_supply_propval object provided by power_supply_show_property(). In consequence, wrong negative values are read by user space from the battery's sysfs files. Fix this by making acpi_battery_get_property() return -ENODEV for properties with unknown values (-ENODEV is returned, because power_supply_uevent() returns with error for any other error code returned by power_supply_show_property()). Reported-and-tested-by: Sitsofe Wheeler Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown commit e4072a9a9d186fe86293effe8828faa4be75b4a4 Author: Jiri Slaby Date: Wed Oct 20 16:48:51 2010 +0200 x86, printk: Get rid of <0> from stack output The stack output currently looks like this: 7fffffffffffffff 0000000a00000000 ffffffff81093341 0000000000000046 <0> ffff88003a545fd8 0000000000000000 0000000000000000 00007fffa39769c0 <0> ffff88003e403f58 ffffffff8102fc4c ffff88003e403f58 ffff88003e403f78 The superfluous <0> are caused by recent printk KERN_CONT change. <*> is now ignored in printk unless some text follows the level and even then it still has to be the first in the format message. Note that the log_lvl parameter is now completely ignored in show_stack_log_lvl and the stack is dumped with the default level (like for quite some time already). It behaves the same as the rest of the dump, function traces are dumped in the very same manner. Only Code and maybe some lines are printed with EMERG level. Unfortunately I see no way how to fix this conceptually to have the whole oops/BUG/panic output with the same level, so this removed only the superfluous characters for the time being. Just for illustration: <4>Process kworker/0:0 (pid: 0, threadinfo ffff88003c8a6000, task ffff88003c85c100) <0>Stack: <4> ffffffff818022c0 0000000a00000001 0000000000000001 0000000000000046 <4> ffff88003c8a7fd8 0000000000000001 ffff88003c8a7e58 0000000000000000 <4> ffff88003e503f48 ffffffff8102fc4c ffff88003e503f48 ffff88003e503f68 <0>Call Trace: <0> <4> [] ? call_softirq+0x1c/0x30 ... <0>Code: 00 01 00 00 65 8b 04 25 80 c5 00 00 c7 45 ... Signed-off-by: Jiri Slaby Cc: jirislaby@gmail.com Cc: Linus Torvalds Cc: Andrew Morton LKML-Reference: <1287586131-16222-1-git-send-email-jslaby@suse.cz> Signed-off-by: Ingo Molnar commit 66a301c380d4e463424db572b348de4913ec191a Author: Arnaldo Carvalho de Melo Date: Sat Oct 23 15:12:29 2010 -0200 perf probe: Fix format specified for Dwarf_Off parameter Fixing the following error on 32-bit arches: util/probe-finder.c: In function ‘line_range_search_cb’: util/probe-finder.c:1734: error: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘Dwarf_Off’ Reported-by: Ingo Molnar Cc: Frederic Weisbecker Cc: Masami Hiramatsu LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo commit d1e95bb5309f98368dd4fbef6ff3a8f573b24506 Author: Ben Hutchings Date: Sun Oct 10 16:11:02 2010 +0100 perf trace: Fix detection of script extension The extension starts with the last dot in the name, not the first. Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra LKML-Reference: <1286723462.2955.206.camel@localhost> Signed-off-by: Ben Hutchings Signed-off-by: Arnaldo Carvalho de Melo commit 44e668c6faa9a6c477a32788e7e88f0754c54a4e Author: Ben Hutchings Date: Sun Oct 10 16:10:03 2010 +0100 perf trace: Use $PERF_EXEC_PATH in canned report scripts Set $PERF_EXEC_PATH before starting the record and report scripts, and make them use it where necessary. Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra LKML-Reference: <1286723403.2955.205.camel@localhost> Signed-off-by: Ben Hutchings Signed-off-by: Arnaldo Carvalho de Melo commit ffec516976f64b4e3e59ba1bb8a5020008cc678a Author: Sonny Rao Date: Thu Oct 14 20:51:00 2010 -0500 perf tools: Document event modifiers Existing documentation doesn't discuss event modifiers, so add a description of what's currently possible to the documentation of perf-list. Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Robert Richter LKML-Reference: <1287107460-12112-1-git-send-email-sonnyrao@linux.vnet.ibm.com> Signed-off-by: Sonny Rao Signed-off-by: Arnaldo Carvalho de Melo commit 02f36038c568111ad4fc433f6fa760ff5e38fab4 Merge: 6c2754c 676cb02 07bd851 50f2d7f 892df7f 68f4d5a b365a85 6554287 Author: Linus Torvalds Date: Sat Oct 23 08:25:36 2010 -0700 Merge branches 'softirq-for-linus', 'x86-debug-for-linus', 'x86-numa-for-linus', 'x86-quirks-for-linus', 'x86-setup-for-linus', 'x86-uv-for-linus' and 'x86-vm86-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'softirq-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: softirqs: Make wakeup_softirqd static * 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, asm: Restore parentheses around one pushl_cfi argument x86, asm: Fix ancient-GAS workaround x86, asm: Fix CFI macro invocations to deal with shortcomings in gas * 'x86-numa-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, numa: Assign CPUs to nodes in round-robin manner on fake NUMA * 'x86-quirks-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: HPET force enable for CX700 / VIA Epia LT * 'x86-setup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, setup: Use string copy operation to optimze copy in kernel compression * 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, UV: Use allocated buffer in tlb_uv.c:tunables_read() * 'x86-vm86-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, vm86: Fix preemption bug for int1 debug and int3 breakpoint handlers. commit 6c2754c28f2388a276fe21edde826f2113c8f60e Author: Linus Torvalds Date: Sat Oct 23 08:14:12 2010 -0700 Revert "tty: Add a new file /proc/tty/consoles" This reverts commit f4a3e0bceb57466c31757f25e4e0ed108d1299ec. Jiri Sladby points out that the tty structure we're using may already be gone, and Al Viro doesn't hold back in complaining about the random loading of 'filp->private_data' which doesn't have to be a pointer at all, nor does checking the magic field for TTY_MAGIC prove anything. Belated review by Al: "a) global variable depending on stdin of the last opener? Affecting output of read(2)? Really? b) iterator is broken; list should be locked in ->start(), unlocked in ->stop() and *NOT* unlocked/relocked in ->next() c) ->show() ought to do nothing in case of ->device == NULL, instead of skipping those in ->next()/->start() d) regardless of the merits of the bright idea about asterisk at that line in output *and* regardless of (a), the implementation is not only atrociously ugly, it's actually very likely to be a roothole. Verifying that Cthulhu knows what number happens to be address of a tty_struct by blindly dereferencing memory at that address... Ouch. Please revert that crap." And Christoph pipes in and NAK's the approach of walking fd tables etc too. So it's pretty unanimous. Noticed-by: Jri Slaby Requested-by: Al Viro Cc: Greg Kroah-Hartman Cc: Werner Fink Cc: Alan Cox Cc: Christoph Hellwig Signed-off-by: Linus Torvalds commit cdff10a18d005eac83524917e7789d57b20877ef Author: Daniel Drake Date: Tue Oct 19 18:24:38 2010 -0300 [media] cafe_ccic: Configure ov7670 correctly Force smbus communication, disable QCIF mode, and set the correct clock speed on the OLPC XO-1. Signed-off-by: Daniel Drake Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab commit 75e2bdad8901a0b599e01a96229be922eef1e488 Author: Daniel Drake Date: Tue Oct 19 18:24:05 2010 -0300 [media] ov7670: allow configuration of image size, clock speed, and I/O method These parameters need to be configurable based on the host system. They can now be communicated through the s_config call. The old CONFIG_OLPC_XO_1 selector was not correct; this kind of arrangement wouldn't allow for a universal kernel that would work on both laptops. Certain parts of the probe routine had to be moved later (into s_config), because we can't do any I/O until we know which I/O method has been selected through this mechanism. Signed-off-by: Daniel Drake Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab commit b11bdb5254ff17cb63e4ae5088b73fdcd2cc2602 Merge: 4428bc0 84eae18 Author: Takashi Iwai Date: Sat Oct 23 17:01:17 2010 +0200 Merge branch 'for-2.6.37' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/asoc-2.6 into topic/asoc commit 64e5310a249ba641ab6a00c6c1d61146d51b7984 Author: Andy Owen Date: Sat Oct 23 22:12:33 2010 +1100 ALSA: ca0106: Use card specific dac id for mute controls. Signed-off-by: Andy Owen Signed-off-by: Takashi Iwai commit 6fef153afa8b25f81417488150e04db7c6b0b229 Author: Andy Owen Date: Sat Oct 23 22:12:32 2010 +1100 ALSA: ca0106: Allow different sound cards to use different SPI channel mappings. Signed-off-by: Andy Owen Signed-off-by: Takashi Iwai commit 861391d3a037fab38020c741baffdb147e1c732a Author: Andy Owen Date: Sat Oct 23 22:12:31 2010 +1100 ALSA: ca0106: Create a nice spot for mapping channels to dacs. This is to allow a future patch to have card specific mappings between dacs, which is required since the Sound Blaster 5.1vx seems to have a different mapping to what was previously used. Signed-off-by: Andy Owen Signed-off-by: Takashi Iwai commit 9bfd94132dd97b76af41024eb7e980a5cb41afee Author: Andy Owen Date: Sat Oct 23 22:12:30 2010 +1100 ALSA: ca0106: Move enabling of front dac out of hardcoded setup sequence. Signed-off-by: Andy Owen Signed-off-by: Takashi Iwai commit 51630142ed7da31618c0aca8f2767824834e18a8 Author: Andy Owen Date: Sat Oct 23 22:12:29 2010 +1100 ALSA: ca0106: Pull out dac powering routine into separate function. This is ground work for a future commit where cards (such as the Sound Blaster 5.1vx) have different mappings between dacs and channels. Signed-off-by: Andy Owen Signed-off-by: Takashi Iwai commit 23156e8faed5df60364976bffea0711a4f38d88a Author: Andy Owen Date: Sat Oct 23 22:12:28 2010 +1100 ALSA: ca0106 - add Sound Blaster 5.1vx info. Signed-off-by: Andy Owen Signed-off-by: Takashi Iwai commit 84eae18c867fcb7ce43d5830e23377ed33e45df9 Author: Peter Ujfalusi Date: Fri Oct 22 15:11:20 2010 +0300 ASoC: tlv320dac33: Use usleep_range for delays Switch to use the more precise usleep_range instead of msleep(). Replace the udelay with usleep_range to remove the busy loop waiting. Signed-off-by: Peter Ujfalusi Acked-by: Mark Borwn Signed-off-by: Liam Girdwood commit f8c612744359179c6c90faccb6b0ca185cb65d15 Author: Antti Palosaari Date: Sat Oct 23 07:35:31 2010 -0300 [media] af9015: support for DigitalNow TinyTwin v3 [1f4d:9016] It is AF9015+AF9013+2xMXL5007T. Tanks to Bernard Giannetti and DigitalNow for the help! Signed-off-by: Antti Palosaari Cc: Renura Enterprises Pty Ltd Cc: Bernard Giannetti Signed-off-by: Mauro Carvalho Chehab commit bd864ce353ac8b631460c058ebdafd7253dd5582 Author: Antti Palosaari Date: Fri Oct 22 20:37:11 2010 -0300 [media] af9015: map DigitalNow TinyTwin v2 remote Signed-off-by: Antti Palosaari Cc: Renura Enterprises Pty Ltd Signed-off-by: Mauro Carvalho Chehab commit 64fb58092e025235dc7fdcebeffee1516c79464d Author: Antti Palosaari Date: Fri Oct 22 20:23:31 2010 -0300 [media] DigitalNow TinyTwin remote controller Signed-off-by: Antti Palosaari Cc: Renura Enterprises Pty Ltd Signed-off-by: Mauro Carvalho Chehab commit 74c8e3ad0e5296d65be091bdc0d3ae9f72f7e019 Author: Antti Palosaari Date: Fri Oct 22 18:45:18 2010 -0300 [media] af9015: RC fixes and improvements Read all remote controller registers at once to reduce USB remote polling traffic. Use .rc_codes() to disable / enable remote polling instead of .rc_query(). Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 061c6c847eeb11743e489a16e907b41c6f9042b6 Author: Sonic Zhang Date: Mon Jul 12 15:50:56 2010 +0800 mmc_spi: Recover from CRC errors for r/w operation over SPI. The SPI bus is not reliable for large data transfers on all platforms. The current mmc_spi driver fails SD read/write commands immediately if occasional CRC errors are reported by the SD device. This patch makes the operation recover from CRC errors by repeating the last SD command. The retry count is set to 5 to ensure the driver passes stress tests. Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger Signed-off-by: Chris Ball commit 95f25efe0ce22e28d61722d655d2ef582f5f7520 Author: Wolfram Sang Date: Fri Oct 15 12:21:04 2010 +0200 mmc: sdhci-pltfm: add -pltfm driver for imx35/51 This driver adds basic support for the esdhc-core found on e.g. imx35/51, as a platform driver. Signed-off-by: Wolfram Sang Acked-by: Anton Vorontsov Tested-by: Eric Bénard Signed-off-by: Chris Ball commit 80872e21b0263f016f2edb7b72dd8be5636d7ca7 Author: Wolfram Sang Date: Fri Oct 15 12:21:03 2010 +0200 mmc: sdhci-of-esdhc: factor out common stuff Put everything which can be shared between the OF and platform version of this driver into a local .h file. Signed-off-by: Wolfram Sang Tested-by: Eric Bénard [cjb: fix compile error: sdhci-esdhc.c->sdhci-esdhc.h] Signed-off-by: Chris Ball commit 012994f4fa5fc7663b51fa921c85c0a352339b24 Author: Wolfram Sang Date: Fri Oct 15 12:21:02 2010 +0200 mmc: sdhci_pltfm: pass more data on custom init call The custom init call may need more data to perform its job, so we pass it a pointer to pdata, too. Also, always use the platform_id specific data even if platform_data is present. Doing that, platform_data can additionally be parsed by init() for board-specific information (via sdhci->mmc->parent). (Note: the old behaviour was that you could override the platform_id specific data with your own. However, one can still do this by using the "sdhci" id instead of "sdhci-".) Signed-off-by: Wolfram Sang Tested-by: Eric Bénard Signed-off-by: Chris Ball commit 2dfb579c7da171f6153cd58e8fbf7dcfe684778d Author: Wolfram Sang Date: Fri Oct 15 12:21:01 2010 +0200 mmc: sdhci: introduce get_ro private write-protect hook Some controllers handle their write-protection differently. Introduce a callback to be able to handle it, ensuring the same locking takes place for it. Rename the status variable to make it more obvious why the read from the registers needs to be inverted. Signed-off-by: Wolfram Sang Tested-by: Eric Bénard Signed-off-by: Chris Ball commit d3b993dcc11cd291e6908ed02b9db99970220952 Author: Wolfram Sang Date: Fri Oct 15 12:21:00 2010 +0200 mmc: sdhci-pltfm: move .h file into appropriate subdir Make use of the include/linux/mmc directory. Signed-off-by: Wolfram Sang Acked-by: Anton Vorontsov Tested-by: Eric Bénard Signed-off-by: Chris Ball commit 4b711cb13843f5082e82970dd1e8031383134a65 Author: Wolfram Sang Date: Fri Oct 15 12:20:59 2010 +0200 mmc: sdhci-pltfm: Add structure for host-specific data We need to carry some information per host, e.g. the clock. Add a structure for it and initialize it in the generic part. Also improve the check for a parent. Signed-off-by: Wolfram Sang Cc: Richard Röjfors Signed-off-by: Chris Ball commit 9ffca8300abe4bd7260b77b2f82afb01384faabc Author: Randy Dunlap Date: Thu Oct 14 15:01:43 2010 -0400 mmc: fix cb710 kconfig dependency warning Fix kconfig dependency warning to satisfy dependencies: warning: (MMC_CB710 && MMC && PCI) selects CB710_CORE which has unmet direct dependencies (MISC_DEVICES && PCI) Signed-off-by: Randy Dunlap Acked-by: Michał Mirosław Signed-off-by: Chris Ball commit d34289d80471011a5c71401b3acd13e2737d4738 Author: Michał Mirosław Date: Sun Mar 21 08:30:19 2010 +0100 mmc: cb710: remove debugging printk (info duplicated from mmc-core) Signed-off-by: Michał Mirosław Signed-off-by: Chris Ball commit e0780db9f8ccf2dbca3161dc153bbf54b53cb6af Author: Michał Mirosław Date: Sun Mar 21 07:44:34 2010 +0100 mmc: cb710: clear irq handler on init() error path Signed-off-by: Michał Mirosław Signed-off-by: Chris Ball commit 2abd4f1a439718206e832d7a83b77c88c15a6847 Author: Michał Mirosław Date: Sun Mar 21 07:41:39 2010 +0100 mmc: cb710: remove unnecessary msleep() Signed-off-by: Michał Mirosław Signed-off-by: Chris Ball commit 7fcc4ce37f0ccec846e32e1f5ff0647ded74fec9 Author: Michał Mirosław Date: Sun Mar 21 07:39:52 2010 +0100 mmc: cb710: implement get_cd() callback Signed-off-by: Michał Mirosław Signed-off-by: Chris Ball commit 19d614a45ae4beb4712bb50ba3d816ae3fe0f1f2 Author: Michał Mirosław Date: Sun Mar 21 07:33:08 2010 +0100 mmc: cb710: partially demystify clock selection Clock divider selection in partially verified, so document known facts in code. Signed-off-by: Michał Mirosław Signed-off-by: Chris Ball commit 703aae3d09a4b351866f1a97b2afafb905bdbf1e Author: Andy Shevchenko Date: Wed Oct 13 11:22:22 2010 +0300 mmc: add a file to debugfs for changing host clock at runtime For debugging power management features it is convenient to have the possibility of changing the MMC host controller clock at runtime. This patch adds a 'clock' file for this under the MMC host root of debugfs. Usage is as follows: # cat /sys/kernel/debug/mmc0/clock 52000000 # echo "1000000000" > /sys/kernel/debug/mmc0/clock # cat /sys/kernel/debug/mmc0/clock 52000000 # echo "48000000" > /sys/kernel/debug/mmc0/clock # cat /sys/kernel/debug/mmc0/clock 48000000 The middle example shows limits being applied by the host driver. Signed-off-by: Andy Shevchenko Cc: Adrian Hunter [cjb: modify changelog language] Signed-off-by: Chris Ball commit 643a81ff3c5a89ae5c0768f89b29d3e1d08be5c3 Author: Philip Rakity Date: Thu Sep 23 08:24:32 2010 -0700 mmc: sdhci: allow for eMMC 74 clock generation by controller Snippet of code for how adaptation layer should handle the call: /* * eMMC spec calls for the host to send 74 clocks to the card * during initialization, right after voltage stabilization. * create the clocks manually right here. */ void generate_init_clocks_A0(struct sdhci_host *host, u8 power_mode) { struct sdhci_mmc_slot *slot = sdhci_priv(host); if (slot->power_mode == MMC_POWER_UP && power_mode == MMC_POWER_ON) { /* controller specific code here */ /* slot->power_mode holds previous power setting */ } slot->power_mode = power_mode; } Signed-off-by: Philip Rakity Signed-off-by: Chris Ball commit 3ab9c8dad6444007700b5949ec80cfdc823d31b4 Author: Philip Rakity Date: Wed Oct 6 11:57:23 2010 -0700 mmc: sdhci: highspeed: check for mmc as well as sd cards The SD and MMC code set highspeed using different constants. Change the sd driver to recognize this and switch to high speed. Validated code when testing eMMC dual data rate. Signed-off-by: Philip Rakity [cjb: changelog + indentation fixes] Signed-off-by: Chris Ball commit f9ee3eab528d2d21c33584bfb86ed1ebf317cb09 Author: Alan Cox Date: Mon Oct 4 15:25:11 2010 +0100 mmc: sdhci: Add Moorestown device support This adds the basic identifiers. Due to the various chip quirks it's not enough to make MRST support very useful for earlier steppings but that can follow. (I'm currently trying to verify which steps actually matter outside Intel so I can avoid unneeded stuff going upstream) [Extracted from original development] Signed-off-by: JiebingLi [Folds in fixes] Signed-off-by: Chuanxiao Dong Signed-off-by: Alan Cox Signed-off-by: Chris Ball commit 292290524e54724cab78e7e79a27a3b9a8b11483 Author: Xiaochen Shen Date: Mon Oct 4 15:24:52 2010 +0100 mmc: sdhci: Intel Medfield support Basic support for the Intel Medfield devices Give them their own quirks as we will need to update this later. Signed-off-by: Xiaochen Shen Signed-off-by: Alan Cox Signed-off-by: Chris Ball commit 225d85fe7ddca2985548d98e410f7baf4a5d6260 Author: Alan Cox Date: Mon Oct 4 15:24:21 2010 +0100 mmc: sdhci: Allow the probe handler to override slots Currently we write it to the chip data, but if the probe handler overrides it we ignore the new value and keep using our cached one. Fix this so that a probe handler can adjust the slot count. Signed-off-by: Alan Cox Signed-off-by: Chris Ball commit ed2a9785942b0986ac858f3f48d7fc5f7c7183de Author: Ohad Ben-Cohen Date: Sat Oct 2 13:54:13 2010 +0200 mmc: sdio: support suspend/resume while runtime suspended Bring SDIO devices back to full power before their suspend handler is invoked. Doing so ensures that SDIO suspend/resume semantics are maintained (drivers still get to decide whether their card should be removed or kept during system suspend, and at what power state), and that SDIO suspend/resume execution paths are unchanged. This is achieved by resuming a runtime-suspended SDIO device in its ->prepare() PM callback (similary to the PCI subsystem). Since the PM core always increments the run-time usage counter before calling the ->prepare() callback and decrements it after calling the ->complete() callback, it is guaranteed that when the system will come out of suspend, our device's power state will reflect its runtime PM usage counter. Signed-off-by: Ohad Ben-Cohen Tested-by: Luciano Coelho Signed-off-by: Chris Ball commit 87973ba27b751353e2915cb3aa5c0e0dc6a79a4f Author: Ohad Ben-Cohen Date: Sat Oct 2 13:54:12 2010 +0200 mmc: sdio: ensure mmc_sdio_detect is powered To prevent an erroneous removal of the card, make sure the device is powered when it is mmc_sdio_detect()ed. This is required since mmc_sdio_detect may be invoked while the device is runtime suspended (e.g., MMC core is rescanning when system comes out of suspend). Signed-off-by: Ohad Ben-Cohen Tested-by: Luciano Coelho Signed-off-by: Chris Ball commit 40bba0c1ca83a370f749c8bc9afda71cf79ebd91 Author: Ohad Ben-Cohen Date: Sat Oct 2 13:54:11 2010 +0200 mmc: sdio: enable runtime PM for SDIO functions Enable runtime PM for SDIO functions. SDIO functions are initialized with a disabled runtime PM state, and are set active (and their usage count is incremented) only before potential drivers are probed. SDIO function drivers that support runtime PM should call pm_runtime_put_noidle() in their probe routine, and pm_runtime_get_noresume() in their remove routine (very similarly to PCI drivers). In case a matching driver does not support runtime PM, power will always be kept high (since the usage count is positive). Signed-off-by: Ohad Ben-Cohen Tested-by: Luciano Coelho Signed-off-by: Chris Ball commit 81968561bd69536c82be7ee654b04c68cd3e1746 Author: Ohad Ben-Cohen Date: Sat Oct 2 13:54:10 2010 +0200 mmc: sdio: enable runtime PM for SDIO cards Enable runtime PM for new SDIO cards. As soon as the card will be added to the device tree, runtime PM core will release its power, since it doesn't have any users yet. Signed-off-by: Ohad Ben-Cohen Tested-by: Luciano Coelho Signed-off-by: Chris Ball commit 80fd933c44557c5261b80f8f8145b4fe071aeaf3 Author: Ohad Ben-Cohen Date: Sat Oct 2 13:54:09 2010 +0200 mmc: sdio: use the generic runtime PM handlers Assign the generic runtime PM handlers for SDIO. These handlers invoke the relevant SDIO function drivers' handlers, if exist, otherwise they just return success (so SDIO drivers don't have to define any runtime PM handlers unless they need to). Runtime PM is still disabled by default, so this patch alone has no immediate effect. Signed-off-by: Ohad Ben-Cohen Tested-by: Luciano Coelho Signed-off-by: Chris Ball commit 516d5ccdc61178b9701af1adfa86a306d51fbad2 Author: Ohad Ben-Cohen Date: Sat Oct 2 13:54:08 2010 +0200 mmc: add runtime PM handlers Add MMC runtime PM handlers, which call mmc_power_save_host and mmc_power_restore_host in response to runtime_suspend and runtime_resume events. Runtime PM is still disabled by default, so this patch alone has no immediate effect. Signed-off-by: Ohad Ben-Cohen Tested-by: Luciano Coelho Signed-off-by: Chris Ball commit d3fe37b1a1d98f060279bfa32fcf5a134851a91a Author: Ohad Ben-Cohen Date: Sat Oct 2 13:54:07 2010 +0200 mmc: sdio: add power_restore support Add a power_restore handler to the SDIO bus ops, in order to support waking up SDIO cards that were powered off by runtime pm. Signed-off-by: Ohad Ben-Cohen Tested-by: Luciano Coelho Signed-off-by: Chris Ball commit 12ae637f081a7a05144af65802a7b492b9162660 Author: Ohad Ben-Cohen Date: Sat Oct 2 13:54:06 2010 +0200 mmc: propagate power save/restore ops return value Allow power save/restore and their relevant mmc_bus_ops handlers exit with a return value. Signed-off-by: Ohad Ben-Cohen Tested-by: Luciano Coelho Signed-off-by: Chris Ball commit 9b966aae6419f7d75a87114c4d82bfb8f8699132 Author: Ohad Ben-Cohen Date: Sat Oct 2 13:54:05 2010 +0200 mmc: sdio: fully reconfigure oldcard on resume On resume, let mmc_sdio_init_card go all the way, instead of skipping the reconfiguration of the card's speed and width. This is needed to ensure cards wake up with their clock reconfigured (otherwise it's kept low). This patch also removes the explicit bus width reconfiguration on resume, since now this is part of mmc_sdio_init_card. Signed-off-by: Ohad Ben-Cohen Tested-by: Luciano Coelho Signed-off-by: Chris Ball commit 1978fda85dfdb53623dddb4ec126163a61ab3933 Author: Giuseppe Cavallaro Date: Tue Sep 28 10:41:29 2010 +0200 mmc: sdhci: split up sdhci.h for sdhci-pltfm users Some platforms based on sdhci-pltfm need to set their own quirks. Previously to this patch, the quirks were in drivers/mmc/host/sdhci.h. This patch splits drivers/mmc/host/sdhci.h into two parts: * drivers/mmc/host/sdhci.h includes the HC registers and I/O accessors. * include/linux/mmc/sdhci.h includes the sdhci structure and quirks. Instead of including drivers/mmc/host/sdhci.h, -pltfm drivers should now include include/linux/mmc/sdhci.h and include/linux/sdhci-pltfm.h. This patch avoids adding/changing the calls/flags in the sdhci_pltfm_data structure. It has been tested on STM platforms (e.g. STx7106, STx7108, STx5206) where the driver is configured and used as shown in the example below: [snip] static int mmc_pad_resources(struct sdhci_host *sdhci) { if (!devm_stm_pad_claim(sdhci->mmc->parent, &stx7108_mmc_pad_config, dev_name(sdhci->mmc->parent))) return -ENODEV; return 0; } static struct sdhci_pltfm_data stx7108_mmc_platform_data = { .init = mmc_pad_resources, .quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC, }; static struct platform_device stx7108_mmc_device = { .name = "sdhci", [snip] Note: drivers/mmc/host/sdhci.h now also includes linux/mmc/sdhci.h, and no modifications should be needed on other sdhci- drivers. Signed-off-by: Giuseppe Cavallaro Reviewed-by: Wolfram Sang Signed-off-by: Chris Ball commit 8364248a829d50495a796e7561aaf9a6976f846c Author: Giuseppe Cavallaro Date: Tue Sep 28 10:41:28 2010 +0200 mmc: sdhci: fix "pwr may be used uninitialized" warning This patch fixes a warning when compiling the sdhci driver: pwr may be used uninitialized in sdhci_set_power Tested with the following compiler versions: 4.2.4 and 4.4.4 Signed-off-by: Giuseppe Cavallaro Reviewed-by: Wolfram Sang Signed-off-by: Chris Ball commit be8ae09d9a800a40771c93356216678aff9ca577 Author: Giuseppe Cavallaro Date: Tue Sep 28 10:41:27 2010 +0200 mmc: sdhci-pltfm: add suspend/resume functions This patch adds the suspend and resume functions in the sdhci-pltfm device driver. Signed-off-by: Giuseppe Cavallaro Reviewed-by: Wolfram Sang Signed-off-by: Chris Ball commit de528fa3f94da95f7667eb1583178268c3a403d0 Author: Ethan Du Date: Thu Sep 30 18:40:27 2010 -0400 mmc: name mmc queue thread by host index Usually there are multiple mmc host controllers; rename mmc queue thread by host index so we can easily identify which controller it belongs to. Signed-off-by: Ethan Du Signed-off-by: Chris Ball commit 49e3b5a44f8abd33c8693edc575c6d06a210d778 Author: Adrian Hunter Date: Mon Oct 11 12:43:50 2010 +0300 mmc: refine DDR support One flaw with DDR support is that MMC core does not inform the driver which DDR mode it has selected. This patch expands the ios->ddr flag to do that. Signed-off-by: Adrian Hunter Signed-off-by: Chris Ball commit 0f8d8ea64ec7c77ca5beb59534d386fe0235961a Author: Adrian Hunter Date: Tue Aug 24 13:20:26 2010 +0300 mmc: Fixes for Dual Data Rate (DDR) support The DDR support patch needs the following fixes: - The block driver does not need to know about DDR, any more than it needs to know about bus width. - Not only the card must be switched to DDR mode. The host controller must also be configured, which is done through the 'set_ios()' function. - Do not set the DDR mode state until after the switch command is successful. - Setting block length is not supported in DDR mode. Make that a core function and change the other place it is used (mmc_test) also. Signed-off-by: Adrian Hunter Signed-off-by: Chris Ball commit dfc13e8402c75e7c2e0a52e123c0500a3259866b Author: Hanumath Prasad Date: Thu Sep 30 17:37:23 2010 -0400 mmc: MMC 4.4 DDR support Add support for Dual Data Rate MMC cards as defined in the 4.4 specification. Signed-off-by: Hanumath Prasad Cc: linux-mmc@vger.kernel.org Acked-by: Linus Walleij Tested-by Zhangfei Gao Signed-off-by: Chris Ball commit 99fc5131018cbdc3cf42ce09fb394a4e8b053c74 Author: Linus Walleij Date: Wed Sep 29 01:08:27 2010 -0400 mmc: Move regulator handling closer to core After discovering a problem in regulator reference counting I took Mark Brown's advice to move the reference count into the MMC core by making the regulator status a member of struct mmc_host. I took this opportunity to also implement NULL versions of the regulator functions so as to rid the driver code from some ugly #ifdef CONFIG_REGULATOR clauses. Signed-off-by: Linus Walleij Reviewed-by: Mark Brown Cc: Liam Girdwood Cc: Tony Lindgren Cc: Adrian Hunter Cc: Robert Jarzmik Cc: Sundar Iyer Cc: Daniel Mack Cc: Pierre Ossman Cc: Matt Fleming Cc: David Brownell Cc: Russell King Cc: Eric Miao Cc: Cliff Brake Cc: Jarkko Lavinen Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit 4d0b8611cd4da64f075b8e07a126f0eb498fb153 Author: Eric Bénard Date: Tue Oct 12 09:29:37 2010 +0200 mmc: sdhci: mmc_rescan: reduce verbosity mmc_rescan() includes a pr_info which prints 4 lines each second for hosts configured with MMC_CAP_NEEDS_POLL. This patch enables the message only if CONFIG_MMC_DEBUG is selected. Tested on i.MX51's sdhci-esdhc. Signed-off-by: Eric Bénard Acked-by: Wolfram Sang Acked-by: Hein Tibosch Signed-off-by: Chris Ball commit 88ae8b866488031b0e2fc05a27440fefec5e6927 Author: Hein Tibosch Date: Mon Sep 6 09:37:19 2010 +0800 mmc: Make ID freq configurable In the latest releases of the mmc driver, the freq during initialization is set to a fixed 400 Khz. This was reportedly too fast for several users. As there doesn't seem to be an ideal frequency which-works-for-all, Pierre suggested to let the driver try several frequencies. This patch implements that idea. It will try mmc-initialization using several frequencies from an array 400, 300, 200 and 100. In case SDIO is broken, it'll still try to detect SDMEM, also at different freqs. Signed-off-by: Hein Tibosch Cc: Pierre Ossman Reviewed-by: Chris Ball Tested-by: Chris Ball Cc: Ben Nizette Cc: Sascha Hauer Cc: Adrian Hunter Cc: Matt Fleming Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit 176d1ed426a2a73a87c62a8aa05f6d002353cd50 Author: Jaehoon Chung Date: Mon Sep 27 09:42:20 2010 +0100 mmc: sdhci: disable MMC_CAP_NEEDS_POLL in nonremovable case When a controller requires SDHCI_QUIRK_BROKEN_CARD_DETECTION, we poll for card insertion/removal, and that creates interrupts. There's no need to be doing this if we have a non-removable card. This patch requires cards to be removable before we're willing to set MMC_CAP_NEEDS_POLL. Signed-off-by: Jaehoon Chung Acked-by: Kyungmin Park Acked-by: Matt Fleming Acked-by: Wolfram Sang [cjb: modified changelog and code indentation] Signed-off-by: Chris Ball commit 71d7d3d190fe77588269a8febf93cd739bd91eb3 Author: Matt Fleming Date: Mon Sep 27 09:42:19 2010 +0100 mmc: Add helper function to check if a card is removable There are two checks that need to be made when determining whether a card is removable. A host controller may set MMC_CAP_NONREMOVABLE if the controller does not support removing cards (e.g. eMMC), in which case the card is physically non-removable. Also the 'mmc_assume_removable' module parameter can be configured at module load time, in which case the card may be logically non-removable. A helper function keeps the logic in one place so that code always checks both conditions. Because this new function is likely to be called from modules we now need to export the mmc_assume_removable symbol. Signed-off-by: Matt Fleming Acked-by: Kyungmin Park Tested-by: Jaehoon Chung Acked-by: Wolfram Sang Signed-off-by: Chris Ball commit d3c502b84f734b36abdc9d11ec61f00016e98d33 Author: matt mooney Date: Fri Sep 24 12:17:24 2010 -0700 mmc: Makefile: Fix EXTRA_CFLAGS assignment The EXTRA_CFLAGS assignment in mmc/Makefile was not accomplishing anything because this flag only has effect on sources at the same level as the makefile (i.e., per directory). Since card/, core/, and host/ rely on MMC_DEBUG, the subdir-ccflags-y variant seems to be the appropriate choice. Signed-off-by: matt mooney Signed-off-by: Chris Ball commit 412ab659b2bdad6afac8f84daf2a8a393145dcae Author: Philip Rakity Date: Wed Sep 22 15:25:13 2010 -0700 mmc: sdhci: print out controller name for register debug In a multi-controller environment it is helpful to know which controller has problems. Signed-off-by: Philip Rakity Signed-off-by: Chris Ball commit b08caed8659ab27199db51c63a35c5ee067fc7ef Author: Giuseppe Cavallaro Date: Mon Sep 20 21:22:13 2010 -0400 mmc: sdhci: add MMC_CAP_8_BIT_DATA in the host capabilities This patch is necessary to gain the performance boost from 8-bit data with the sdhci-stm driver. Signed-off-by: Giuseppe Cavallaro Signed-off-by: Chris Ball commit a29e7e18bddde778deb2cb101dbceca56b15e05e Author: Zhangfei Gao Date: Mon Aug 16 21:15:32 2010 -0400 mmc: sdhci: Enable high-speed support for MMC cards MMC_CAP_MMC_HIGHSPEED allows MMC and eMMC to negotiate up to 50M instead of the previous limit of 25M. Signed-off-by: Zhangfei Gao Acked-by: Matt Fleming Acked-by: Kyungmin Park Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit 0397526d6ae2518b6c53efd1ff1e81b7d24c91da Author: Zhangfei Gao Date: Mon Sep 20 15:15:18 2010 -0400 mmc: SDHC 3.0: correct f_min calculation for SD 3.0 spec While we're at it, add symbols for SDHCI_MAX_DIV_SPEC_{200,300}. Signed-off-by: Zhangfei Gao Signed-off-by: Chris Ball commit c4687d5f601be3f928b815b46964f7426c31aec7 Author: Zhangfei Gao Date: Fri Aug 20 14:02:36 2010 -0400 mmc: SDHC 3.0: Base clock frequency change in spec 3.0 SDHC Spec 3.0: Capabilities Register bits[15-08] are Base Clock Frequency 1.0/2.0: Capabilities Register bits[13-08] are Base Clock Frequency Signed-off-by: Zhangfei Gao Cc: David Vrabel Cc: Matt Fleming Cc: Michal Miroslaw Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit 85105c53b0ce70a277160379f9d89309cefc0bfd Author: Zhangfei Gao Date: Fri Aug 6 07:10:01 2010 +0800 mmc: SDHC 3.0: support 10-bit divided clock mode Signed-off-by: Zhangfei Gao Cc: Michał Mirosław Cc: David Vrabel Reviewed-by: Matt Fleming Signed-off-by: Chris Ball commit 0957c3339efa333b7895157eb18b9b578394f80c Author: George G. Davis Date: Thu Feb 18 12:32:12 2010 -0500 mmc: sdhci: Make consistent use of CONFIG_MMC_DEBUG for "DEBUG"ging The "6882a8c sdhci: Add better ADMA error reporting" commit added sdhci_show_adma_error() which is built when DEBUG is defined. Since we already have CONFIG_MMC_DEBUG used elsewhere in this driver, may as well make consistent use of that config knob instead. Signed-off-by: George G. Davis Cc: Ben Dooks Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit c27d37aed0ba9159c34747b2e1e2c3eddac454f8 Author: Adrian Hunter Date: Thu Sep 23 14:51:36 2010 +0300 mmc_test: fix display of .5 KiB Append .5 to KiB display when there are an odd number of sectors. Signed-off-by: Adrian Hunter Signed-off-by: Chris Ball commit 3d203be833068c0f633878743d0c08d6acd24b58 Author: Adrian Hunter Date: Thu Sep 23 14:51:29 2010 +0300 mmc_test: fix memory allocation segment limits Correctly allocate memory to meet the host controller driver's maximum segment size and count limits. Signed-off-by: Adrian Hunter Signed-off-by: Chris Ball commit 130067ed15f6e8a1209898646878f5bc0a17d3dd Author: Andy Shevchenko Date: Fri Sep 10 10:10:50 2010 +0300 mmc_test: move files from sysfs to debugfs As proposed by Greg K-H it is more logical to keep files for the mmc_test driver under debugfs. Additionally this patch brings seq_file API for show() method. It allows to write unlimited data to the file. Example of usage: # mount -t debugfs none /sys/kernel/debug # modprobe mmc_test [ 581.395843] mmc_test mmc0:0001: Card claimed for testing. # echo 25 > /sys/kernel/debug/mmc0/mmc0\:0001/test [ 604.568542] mmc0: Starting tests of card mmc0:0001... [ 604.582733] mmc0: Test case 25. Best-case read performance into scattered pages... [ 604.923553] mmc0: Transfer of 8192 sectors (4096 KiB) took 0.124664314 seconds (33644 kB/s, 32856 KiB/s) [ 604.933227] mmc0: Result: OK [ 604.936248] mmc0: Tests completed. # cat /sys/kernel/debug/mmc0/mmc0\:0001/test Test 25: 0 1 8192 0.124664314 33644784 Signed-off-by: Andy Shevchenko Cc: Greg KH Cc: Adrian Hunter Cc: Chris Ball Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit 3183aa1534de4e98ffb0527d4f2be7ac9f019a4e Author: Andy Shevchenko Date: Wed Sep 1 09:26:47 2010 +0300 mmc_test: collect data and show it via sysfs by demand Make it possible to get test results via sysfs. It helps to do tests non-interactively. We have the file created under sysfs already and can use it to show test results. Prior to this patch, the "test" file under each card's sysfs node was write-only, and results were obtained by looking at dmesg. This patch improves programmatic access to the test results, making them available by reading back from the same "test" file: [root@host mmc0:e624]# echo 6 > test [root@host mmc0:e624]# cat test Test 6: 2 [cjb@laptop.org: changelog improvements] Signed-off-by: Andy Shevchenko Cc: Chris Ball Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit 5c25aee5364550d7fa6314886370e76cda18d7e2 Author: Andy Shevchenko Date: Wed Sep 1 09:26:46 2010 +0300 mmc_test: change simple_strtol() to strict_strtol() It's better to use strict_strtol() to convert user's input and strictly check it. At least it forbids to interpret wrong input as a 0 and prevents to run all tests. Signed-off-by: Andy Shevchenko Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit 63be54cefa3ae58e1e82036945e3c27f941f5a0d Author: Andy Shevchenko Date: Wed Sep 1 09:26:45 2010 +0300 mmc_test: use API to check card type There are methods to check card type. Let's use them instead of direct checking type bits. Signed-off-by: Andy Shevchenko Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit c8c8c1bdbe585d9159c4585216451faa4c35e4ec Author: Adrian Hunter Date: Fri Sep 10 11:33:45 2010 +0300 mmc_test: fix performance tests that go over max_blk_count The host controller driver limits I/O transfers to maximum transfer size, maximum block count, maximum segment size and maximum segment count. The performance tests were not obeying these limits which meant they would not work with some drivers. This patch fixes that. Signed-off-by: Adrian Hunter Signed-off-by: Chris Ball commit 632cf92a72fecda096d0f4608eaefb2c7392b744 Author: Thomas Gleixner Date: Tue Sep 14 07:12:35 2010 -0400 mmc: Convert "mutex" to semaphore Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: linux-mmc@vger.kernel.org Signed-off-by: Chris Ball commit 265cdc900ce93c0cd2465d751fe75ff2e55e126e Author: Andy Shevchenko Date: Fri Sep 17 20:32:25 2010 -0400 mmc: rename dev_to_mmc_card() to mmc_dev_to_card() Global symbols should use their subsystem name in a prefixed fashion. Signed-off-by: Andy Shevchenko Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit 453722b9f7366e5b8b46101358dd7bcaef62b59d Author: Andy Shevchenko Date: Fri Aug 20 10:46:46 2010 +0300 mmc: make mmc_dev_to_card() macro public Conversion from struct device to struct mmc_card is used more than in one place. Due to this it's better to have public macro for such thing. Signed-off-by: Andy Shevchenko Cc: Adrian Hunter Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit 12578f66b9058e63f193fbfe1552e1d1bfa361bb Author: JiebingLi Date: Thu Jun 17 15:58:46 2010 +0100 mmc: Use snprintf, not sprintf. Fix an issue found by klockwork. Just paranoia. Signed-off-by: JiebingLi Signed-off-by: Alan Cox Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit 53f3a9e26ed5a94bd3caf732e7635692cd3c4402 Author: David Vrabel Date: Thu Sep 2 14:15:08 2010 +0000 mmc: USB SD Host Controller (USHC) driver Add a driver for USB SD Host Controller devices. These devices are Cypress Astoria chips with firmware compliant with issue 2 of CSR's USHC specification. [cjb: adapt to block layer deprecation of max_{hw,phys}_segs] Signed-off-by: David Vrabel Signed-off-by: Chris Ball commit a36274e0184193e393fb82957925c3981a6b0477 Author: Martin K. Petersen Date: Fri Sep 10 01:33:59 2010 -0400 mmc: Remove distinction between hw and phys segments We have deprecated the distinction between hardware and physical segments in the block layer. Consolidate the two limits into one in drivers/mmc/. Signed-off-by: Martin K. Petersen Signed-off-by: Chris Ball commit 7a5ea56abc493fd43fb8d5b2f55d18396ec048f1 Author: H Hartley Sweeten Date: Mon Dec 14 14:28:06 2009 -0500 mmc: au1xmmc.c: use resource_size() [cjb: rebased patch against Linus] Signed-off-by: H Hartley Sweeten Cc: Acked-by: Manuel Lauss Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit e8e3f6ca12d95181ce4718bcb4865c1913eac983 Author: H Hartley Sweeten Date: Mon Dec 14 14:11:56 2009 -0500 mmc: atmel-mci.c: use resource_size() [cjb: rebased patch against Linus] Signed-off-by: H Hartley Sweeten Cc: Signed-off-by: Nicolas Ferre Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit af2a85fd9a4be83469a00f257563dfb77b9daad0 Author: H Hartley Sweeten Date: Mon Dec 14 14:10:26 2009 -0500 mmc: at91_mci.c: use resource_size() [cjb: rebased patch against Linus] Signed-off-by: H Hartley Sweeten Cc: Nicolas Ferre Cc: Acked-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Nicolas Ferre Signed-off-by: Andrew Morton Signed-off-by: Chris Ball commit d8d627834b1f4dd21a63c2b524e9eb56173df57b Author: Mauro Carvalho Chehab Date: Sat Oct 23 09:28:12 2010 -0200 videodev2.h.xml: Update to reflect the latest changes at videodev2.h Signed-off-by: Mauro Carvalho Chehab commit 039aa70218e28a07fdf78220b814cfc4c1c6c3d2 Author: Guennadi Liakhovetski Date: Thu Feb 25 14:33:27 2010 -0300 [media] v4l: document new Bayer and monochrome pixel formats Document all four 10-bit Bayer formats, 10-bit monochrome and a missing 8-bit Bayer formats. create mode 100644 Documentation/DocBook/v4l/pixfmt-srggb10.xml create mode 100644 Documentation/DocBook/v4l/pixfmt-srggb8.xml create mode 100644 Documentation/DocBook/v4l/pixfmt-y10.xml [mchehab@redhat.com: remove duplicated symbol for V4L2-PIX-FMT-SGRBG10 and added the corresponding entries at media-entities.tmpl] Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit a99e3c515e4e59eb66213baf57137b9ae78a1493 Author: Mauro Carvalho Chehab Date: Thu Feb 25 14:33:27 2010 -0300 [media] DocBook/v4l: Add missing formats used on gspca cpia1 and sn9c2028 Signed-off-by: Mauro Carvalho Chehab commit b6651458d33c309767762a6c3da041573413fd88 Author: Chris Wilson Date: Sat Oct 23 10:15:06 2010 +0100 drm/i915: Invalidate the to-ring, flush the old-ring when updating domains When the object has been written to by the gpu it remains on the ring until its flush has been retired. However, when the object is moving to the ring and the associated cache needs to be invalidated, we need to perform the flush on the target ring, not the one it came from (which is NULL in the reported case and so the flush was entirely absent). Reported-by: Peter Clifton Reported-and-tested-by: Alexey Fisher Signed-off-by: Chris Wilson commit ab34c02afeafd047a831e6fe2a4dd875ce86bee0 Merge: 7f38839 6b81e14 Author: Linus Torvalds Date: Sat Oct 23 01:26:47 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke/nilfs2 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke/nilfs2: (36 commits) nilfs2: eliminate sparse warning - "context imbalance" nilfs2: eliminate sparse warnings - "symbol not declared" nilfs2: get rid of bdi from nilfs object nilfs2: change license of exported header file nilfs2: add bdev freeze/thaw support nilfs2: accept 64-bit checkpoint numbers in cp mount option nilfs2: remove own inode allocator and destructor for metadata files nilfs2: get rid of back pointer to writable sb instance nilfs2: get rid of mi_nilfs back pointer to nilfs object nilfs2: see state of root dentry for mount check of snapshots nilfs2: use iget for all metadata files nilfs2: get rid of GCDAT inode nilfs2: add routines to redirect access to buffers of DAT file nilfs2: add routines to roll back state of DAT file nilfs2: add routines to save and restore bmap state nilfs2: do not allocate nilfs_mdt_info structure to gc-inodes nilfs2: allow nilfs_clear_inode to clear metadata file inodes nilfs2: get rid of snapshot mount flag nilfs2: simplify life cycle management of nilfs object nilfs2: do not allocate multiple super block instances for a device ... commit 00527cc6bbcac05ab7d54c40bda1ff2a0625ab10 Merge: 0f3f164 d13780d Author: Len Brown Date: Sat Oct 23 02:33:50 2010 -0400 Merge branch 'intel_idle+snb' into idle-release Signed-off-by: Len Brown commit d13780d439d08a57c87c1a07b6e76ddde61da1aa Author: Len Brown Date: Wed Jul 7 00:12:03 2010 -0400 intel_idle: add initial Sandy Bridge support Signed-off-by: Len Brown commit 3e384ee6c687cb397581ee8f9440fc8220cfac80 Author: Rafael J. Wysocki Date: Fri Oct 22 02:35:54 2010 +0200 ACPI / PM: Fix reference counting of power resources The reference counting of ACPI power resources is currently broken for a few reasons. First, instead of using a simple reference counter per power resource it uses a list of objects representing refereces to the given power resource from devices. This leads to the second breakage, because it prevents power resources from being referenced more than once by one device, which is necessary if the device is configured to signal wakeup. Namely, when putting the device into a low power state we first call acpi_enable_wakeup_device_power() that should reference count power resources needed for signaling wakeup and then we call acpi_power_transition() to power off the device. The latter call drops references to the device's power resources, possibly including the ones added by acpi_enable_wakeup_device_power(), so the device can't signal wakeup as a result. Apart from this, the locking in acpi_power_on() and acpi_power_off_device() doesn't prevent all possible races from happening, which may be problematic for runtime PM and asynchronous suspend and resume. Fix the problem by using a counter for power resources reference counting and putting the evaluation of ACPI _ON and _OFF methods under the power resource mutex. Reported-by: Matthew Garrett Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown commit 8df3fc981dc12d9fdcaef4100a2193b605024d7a Author: Bob Moore Date: Sat Oct 23 01:36:40 2010 -0400 Subject: [PATCH] ACPICA: Fix Scope() op in module level code Some Panasonic Toughbooks create nodes in module level code. Module level code is the executable AML code outside of control method, for example, below AML code creates a node \_SB.PCI0.GFX0.DD02.CUBL If (\_OSI ("Windows 2006")) { Scope (\_SB.PCI0.GFX0.DD02) { Name (CUBL, Ones) ... } } Scope() op does not actually create a new object, it refers to an existing object(\_SB.PCI0.GFX0.DD02 in above example). However, for Scope(), we want to indeed open a new scope, so the child nodes(CUBL in above example) can be created correctly under it. https://bugzilla.kernel.org/show_bug.cgi?id=19462 Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit bb12588a38e6db85e01dceadff7bc161fc92e7d2 Author: David Dillow Date: Fri Oct 8 14:40:47 2010 -0400 IB/srp: Implement SRP_CRED_REQ and SRP_AER_REQ This patch adds support for SRP_CRED_REQ to avoid a lockup by targets that use that mechanism to return credits to the initiator. This prevents a lockup observed in the field where we would never add the credits from the SRP_CRED_REQ to our current count, and would therefore never send another command to the target. Minimal support for SRP_AER_REQ is also added, as these messages can also be used to convey additional credits to the initiator. Based upon extensive debugging and code by Bart Van Assche and a bug report by Chris Worley. Signed-off-by: David Dillow Signed-off-by: Roland Dreier commit dd5e6e38b2b8bd8bf71cae800e2b613e85ef1522 Author: Bart Van Assche Date: Mon Aug 30 19:27:20 2010 +0000 IB/srp: Preparation for transmit ring response allocation The transmit ring in ib_srp (srp_target.tx_ring) is currently only used for allocating requests sent by the initiator to the target. This patch prepares using that ring for allocation of both requests and responses. Also, this patch differentiates the uses of SRP_SQ_SIZE, increases the size of the IB send completion queue by one element and reserves one transmit ring slot for SRP_TSK_MGMT requests. Signed-off-by: Bart Van Assche Signed-off-by: David Dillow Signed-off-by: Roland Dreier commit 5715f5d44b93507693feca6c62290e123e5ef688 Author: Jason Gunthorpe Date: Fri Oct 22 22:00:48 2010 +0000 IB/qib: Process RDMA WRITE ONLY with IMMEDIATE properly See table 35 in IBA - the header order for RDMA_WRITE_ONLY_WITH_IMMEDIATE and SEND_LAST_WITH_IMMEDIATE is different: the RDMA_WRITE_ONLY has a RETH header before the immediate data, so we need a different code path to extract the immediate data. I tested this with a userspace app that does RDMA_WRITE with immediate on a QLE7140. Signed-off-by: Jason Gunthorpe Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier commit b955150ea784af4c193b708a2e8091673bf23004 Author: Steve Wise Date: Thu Oct 21 12:37:06 2010 +0000 RDMA/cxgb3: When a user QP is marked in error, also mark the CQs in error The flushing of work requests for user QPs is implemented entirely in the user mode library. The only kernel interaction is to mark the user QP object indicating it is in error when the QP exits RTS. When the user QP operations are called by the application (eg: post_send, post_recv), the QP in error bit is checked and if set, the library flushes the QP. If, however, the application is not doing IO, but rather just polling the CQ, it will never get flushed work requests. This breaks some classes of applications. This patch adds logic to mark user CQs in error when a QP that is bound to the CQ is marked in error. The library poll code can then notice the CQ is in error and flush all the in error QPs bound to that CQ. Design: - add 1 extra CQE entry to the CQ memory that will be used to indicate in error status. - return the desired CQ memory size that should be mapped by the library - bump the ABI since the create_cq uverbs response changes. - detect older libraries and reduce the mmap size accordingly. (The ABI bump doesn't break old libraries, since they didn't check the ABI field anyway) Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit da411ba1daf895bdae9420101e8e2741d6633342 Author: Steve Wise Date: Mon Oct 18 15:16:45 2010 +0000 RDMA/cxgb4: Use cxgb4 service for packet gl to skb Remove the local service t4_pktgl_to_skb() and use cxgb4_pktgl_to_skb() exported by cxgb4. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit de5dd81b49c27c7818492be0746bfed6ac3b1c8d Author: Steve Wise Date: Mon Oct 18 15:16:40 2010 +0000 RDMA/cxgb4: Export T4 TCP MIB Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 7f3883962870dd28b5f2322ac44a9d03640ef448 Merge: 10f2a2b b9ac41e Author: Linus Torvalds Date: Fri Oct 22 21:12:27 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin: (47 commits) Blackfin: bfin_spi.h: add MMR peripheral layout Blackfin: bfin_ppi.h: start a common PPI/EPPI header Blackfin: bfin_can.h: add missing VERSION/VERSION2 MMRs Blackfin: bf538: add missing SIC_RVECT define Blackfin: bf561: rewrite SICA_xxx to just SIC_xxx Blackfin: bf54x: add missing SIC_RVECT definition Blackfin: H8606: move 8250 irqflags to platform resources Blackfin: glue XIP/ROM kernel kconfigs Blackfin: update sparse flags for latest upstream changes Blackfin: coreb: update ioctl numbers Blackfin: coreb: add gpl module license Blackfin: bf518-ezkit: add ssm2603 codec resources Blackfin: bf51x/bf52x: fix 16/32bit SPORT MMR helpers Blackfin: tll6527m: new board port Blackfin: bf526-ezbrd/bf527-ezkit: add NAND partition for u-boot Blackfin: merge kernel init memory back into main memory region Blackfin: gpio: add peripheral group check Blackfin: dma: bf54x: add missing break for SPORT1 TX IRQ Blackfin: add new cacheflush syscall Blackfin: bf548-ezkit: increase u-boot partition size ... commit 10f2a2b0f68abf39c06cf519cbc1740fa50f900b Merge: 8814011 b40827f Author: Linus Torvalds Date: Fri Oct 22 20:37:50 2010 -0700 Merge branch 'x86-trampoline-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-trampoline-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86-32, mm: Add an initial page table for core bootstrapping commit 52065c513a8a15fc0fb1fe2452256303edaece74 Author: Henrik Kurelid Date: Mon Mar 1 08:56:42 2010 -0300 [media] firedtv: add parameter to fake ca_system_ids in CA_INFO The Digital Everywhere firmware have the shortcoming that ca_info_enq and ca_info are not supported. This means that we can never retrieve the correct ca_system_id to present in the CI message CA_INFO. Currently the driver uses the application id retrieved using app_info_req and app_info, but this id only match the correct ca_system_id as given in ca_info in some cases. This patch adds a parameter to the driver in order for the user to override what will be returned in the CA_INFO CI message. Up to four ca_system_ids can be specified. This is needed for users with CAMs that have different manufacturer id and ca_system_id and that uses applications that take this into account, like MythTV. Signed-off-by: Henrik Kurelid Signed-off-by: Stefan Richter Signed-off-by: Mauro Carvalho Chehab commit 8814011679d1a47d8b0158fc991727a5859471a0 Merge: 5cc1035 495363d Author: Linus Torvalds Date: Fri Oct 22 20:35:12 2010 -0700 Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb: kdb,debug_core: adjust master cpu switch logic against new debug_core locking debug_core: refactor locking for master/slave cpus x86,kgdb: remove unnecessary call to kgdb_correct_hw_break() debug_core: disable hw_breakpoints on all cores in kgdb_cpu_enter() kdb,kgdb: fix sparse fixups kdb: Fix oops in kdb_unregister kdb,ftdump: Remove reference to internal kdb include kdb: Allow kernel loadable modules to add kdb shell functions debug_core: stop rcu warnings on kernel resume debug_core: move all watch dog syncs to a single function x86,kgdb: fix debugger hw breakpoint test regression in 2.6.35 commit 5cc103506289de7ee0a0b526ae0381541990cad4 Merge: 73ecf3a 92ca0dc Author: Linus Torvalds Date: Fri Oct 22 20:30:48 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (141 commits) USB: mct_u232: fix broken close USB: gadget: amd5536udc.c: fix error path USB: imx21-hcd - fix off by one resource size calculation usb: gadget: fix Kconfig warning usb: r8a66597-udc: Add processing when USB was removed. mxc_udc: add workaround for ENGcm09152 for i.MX35 USB: ftdi_sio: add device ids for ScienceScope USB: musb: AM35x: Workaround for fifo read issue USB: musb: add musb support for AM35x USB: AM35x: Add musb support usb: Fix linker errors with CONFIG_PM=n USB: ohci-sh - use resource_size instead of defining its own resource_len macro USB: isp1362-hcd - use resource_size instead of defining its own resource_len macro USB: isp116x-hcd - use resource_size instead of defining its own resource_len macro USB: xhci: Fix compile error when CONFIG_PM=n USB: accept some invalid ep0-maxpacket values USB: xHCI: PCI power management implementation USB: xHCI: bus power management implementation USB: xHCI: port remote wakeup implementation USB: xHCI: port power management implementation ... Manually fix up (non-data) conflict: the SCSI merge gad renamed the 'hw_sector_size' member to 'physical_block_size', and the USB tree brought a new use of it. commit 4363a0b8343747a429df526249d2f3194403365c Author: Ruslan Pisarev Date: Wed Oct 20 06:34:18 2010 -0300 [media] tm6000: fix a macro coding style issue This is a patch to the tm6000-core.c file that fixed up a macros error and error initialise statics to 0 found by the checkpatch.pl tools. [mchehab@redhat.com: removed a merge conflict and add spaces between binary operator] Signed-off-by: Ruslan Pisarev Signed-off-by: Mauro Carvalho Chehab commit 638054ab0276c40eca7cf49ae107e3d6f67ebf38 Author: Mauro Carvalho Chehab Date: Sat Oct 23 01:23:48 2010 -0200 tm6000: Remove some ugly debug code Those time debugs were here just while developing the driver. They are not really needed, as kernel may be configured to print jiffies with printk's. Also, it breaks, if more than one device is connected. Signed-off-by: Mauro Carvalho Chehab commit fcb9757333df37cf4a7feccef7ef6f5300643864 Author: lawrence rust Date: Mon Oct 18 07:06:02 2010 -0300 [media] Nova-S-Plus audio line input This patch adds audio DMA capture and ALSA mixer elements for the line input jack of the Hauppauge Nova-S-plus DVB-S PCI card. The Nova-S-plus has a WM8775 ADC that is currently not detected. This patch enables this chip and exports volume, balance mute and ALC elements for ALSA mixer controls. [mchehab@redhat.com: Fix CodingStyle issues] Signed-off-by: Lawrence Rust Signed-off-by: Mauro Carvalho Chehab commit 73ecf3a6e3f0206bf56a0fefe3b3eda042fb7034 Merge: b9da057 cd3ecad Author: Linus Torvalds Date: Fri Oct 22 19:59:04 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (49 commits) serial8250: ratelimit "too much work" error serial: bfin_sport_uart: speed up sport RX sample rate to be 3% faster serial: abstraction for 8250 legacy ports serial/imx: check that the buffer is non-empty before sending it out serial: mfd: add more baud rates support jsm: Remove the uart port on errors Alchemy: Add UART PM methods. 8250: allow platforms to override PM hook. altera_uart: Don't use plain integer as NULL pointer altera_uart: Fix missing prototype for registering an early console altera_uart: Fixup type usage of port flags altera_uart: Make it possible to use Altera UART and 8250 ports together altera_uart: Add support for different address strides altera_uart: Add support for getting mapbase and IRQ from resources altera_uart: Add support for polling mode (IRQ-less) serial: Factor out uart_poll_timeout() from 8250 driver serial: mark the 8250 driver as maintained serial: 8250: Don't delay after transmitter is ready. tty: MAINTAINERS: add drivers/serial/jsm/ as maintained driver vcs: invoke the vt update callback when /dev/vcs* is written to ... commit dff2126c548d54b040997257407a69a6cdf7a5b6 Author: Mark Brown Date: Thu Oct 14 07:53:12 2010 +0900 ARM: S3C64XX: Fix special function for IISv4 port When converting to use s3c_gpio_cfgpin_range() the function for the IISv4 block appears to have been typoed as 4 (the keypad) rather than 5 as it should be. Signed-off-by: Mark Brown Signed-off-by: Kukjin Kim commit a7aac9d5b037be16d4ef5b1701b83774706daf53 Author: Kukjin Kim Date: Fri Oct 1 20:12:24 2010 +0900 ARM: S5PV210: 2nd Change to using s3c_gpio_cfgrange_nopull() This patch changes code setting special-function and no pull-up to use the s3c_gpio_cfgrange_nopull() wrapper. NOTE: This is for missed things from the previous patch. Signed-off-by: Kukjin Kim commit 20dbc43dd33a35ee24b6892d980c5e6107a27d32 Author: Kukjin Kim Date: Fri Oct 1 20:10:33 2010 +0900 ARM: S5PC100: 2nd Change to using s3c_gpio_cfgrange_nopull() This patch changes code setting special-function and no pull-up to use the s3c_gpio_cfgrange_nopull() wrapper. NOTE: This is for missed things from the previous patch. Signed-off-by: Kukjin Kim commit 3e9b7261502e78e351fc6a61a9b7241433c779c4 Author: Kukjin Kim Date: Fri Oct 1 20:20:37 2010 +0900 ARM: S3C64XX: 2nd Change to using s3c_gpio_cfgrange_nopull() This patch changes code setting special-function and no pull-up to use the s3c_gpio_cfgrange_nopull() wrapper. NOTE: This is for missed things from the previous patch. Signed-off-by: Kukjin Kim commit 5a350da428daace38b0762b63d42f4b441e8bad4 Author: Ben Dooks Date: Thu May 27 17:25:47 2010 +0900 ARM: S5PV210: Change to using s3c_gpio_cfgrange_nopull() Change code setting special-function and no pull-up to use the s3c_gpio_cfgrange_nopull() wrapper. Signed-off-by: Ben Dooks Signed-off-by: Kukjin Kim commit 8f89d5b3b14ba588f744ba394b6c7f00f4dcd49a Author: Ben Dooks Date: Thu May 27 17:25:46 2010 +0900 ARM: S5PC100: Change to using s3c_gpio_cfgrange_nopull() Change code setting special-function and no pull-up to use the s3c_gpio_cfgrange_nopull() wrapper. Signed-off-by: Ben Dooks Signed-off-by: Kukjin Kim commit 2a1309b493ba6f42e9931a785c4eca7275bc2357 Author: Ben Dooks Date: Thu May 27 17:25:45 2010 +0900 ARM: S3C64XX: Change to using s3c_gpio_cfgrange_nopull() Change code setting special-function and no pull-up to use the s3c_gpio_cfgrange_nopull() wrapper. Signed-off-by: Ben Dooks Signed-off-by: Kukjin Kim commit e594ea3e48579fb1908eea4dc70184e3ba74cb9d Author: Ben Dooks Date: Fri Oct 1 19:07:28 2010 +0900 ARM: SAMSUNG: Add s3c_gpio_cfgrange_nopull() helper A number of the SDHCI code configure a GPIO to a special function and remove any pull-up, so add s3c_gpio_cfgrange_nopull() as a wrapper to the s3c_gpio_cfgall_range() to make the code that calls it fit on one line. Signed-off-by: Ben Dooks Signed-off-by: Kukjin Kim commit 818ac8c134250c2f57425d1e3b3a0e19636b5506 Author: Kukjin Kim Date: Fri Oct 1 20:54:56 2010 +0900 ARM: S5PV210: 2nd Change to using s3c_gpio_cfgall_range() This patch changes the code setting range of GPIO pins' configuration and pull state to use the recently introduced s3c_gpio_cfgpin_range(). NOTE: This is for missed things from the previous patch. Signed-off-by: Kukjin Kim commit e27ecd7306992fbe58ab03f20aa3452a8b40499a Author: Kukjin Kim Date: Fri Oct 1 20:50:20 2010 +0900 ARM: S5PC100: 2nd Change to using s3c_gpio_cfgall_range() This patch changes the code setting range of GPIO pins' configuration and pull state to use the recently introduced s3c_gpio_cfgpin_range(). NOTE: This is for missed things from the previous patch. Signed-off-by: Kukjin Kim commit 54bce6c73dcd6d150d917e954154521de116e17b Author: Kukjin Kim Date: Fri Oct 1 19:38:26 2010 +0900 ARM: S5P64X0: 2nd Change to using s3c_gpio_cfgall_range() This patch changes the code setting range of GPIO pins' configuration and pull state to use the recently introduced s3c_gpio_cfgpin_range(). NOTE: This is for missed things from the previous patch. Signed-off-by: Kukjin Kim commit aef698a72fbb8ba97cff1abb1fdb035c791bd106 Author: Kukjin Kim Date: Fri Oct 1 20:47:21 2010 +0900 ARM: S3C64XX: 2nd Change to using s3c_gpio_cfgall_range() This patch changes the code setting range of GPIO pins' configuration and pull state to use the recently introduced s3c_gpio_cfgpin_range(). NOTE: This is for missed things from the previous patch. Signed-off-by: Kukjin Kim commit 861004657e7a5d29a1e1fd1c58967b4e6c0438b4 Author: Kukjin Kim Date: Fri Oct 1 19:32:27 2010 +0900 ARM: S5PV310: Change to using s3c_gpio_cfgall_range() Change the code setting a range of GPIO pins' configuration and pull state to use the recently introduced s3c_gpio_cfgall_range(). Signed-off-by: Kukjin Kim commit 53134a740e3b9ce3c04e853e231a624bd4260480 Author: Ben Dooks Date: Thu May 27 17:02:32 2010 +0900 ARM: S5PV210: Change to using s3c_gpio_cfgall_range() Change the code setting a range of GPIO pins' configuration and pull state to use the recently introduced s3c_gpio_cfgall_range(). Mop up a few missed s3c_gpio_cfgpin_range() changes. Signed-off-by: Ben Dooks Signed-off-by: Kukjin Kim commit a40af06655f97d88fc1b0fcc9b5f2a5c06a27a4a Author: Ben Dooks Date: Fri Oct 1 16:49:11 2010 +0900 ARM: S5PC100: Change to using s3c_gpio_cfgall_range() Change the code setting a range of GPIO pins' configuration and pull state to use the recently introduced s3c_gpio_cfgall_range(). Mop up a few missed s3c_gpio_cfgpin_range() changes. Signed-off-by: Ben Dooks Signed-off-by: Kukjin Kim commit f90715f9f07abcfff3b994a0f5b7edf7a78a5aec Author: Kukjin Kim Date: Fri Oct 1 18:39:38 2010 +0900 ARM: S5P64X0: Change to using s3c_gpio_cfgall_range() Change the code setting a range of GPIO pins' configuration and pull state to use the recently introduced s3c_gpio_cfgall_range(). Mop up a few missed s3c_gpio_cfgpin_range() changes. Signed-off-by: Kukjin Kim commit 7008147256eebdc30329bec95ebdf99a96684f79 Author: Kukjin Kim Date: Fri Oct 1 19:37:09 2010 +0900 ARM: S5P6442: Change to using s3c_gpio_cfgall_range() Change the code setting a range of GPIO pins' configuration and pull state to use the recently introduced s3c_gpio_cfgall_range(). Signed-off-by: Kukjin Kim commit dab30d7f80d7a81ac736c590a81249d2fd323c62 Author: Ben Dooks Date: Fri Oct 1 16:39:15 2010 +0900 ARM: S3C64XX: Change to using s3c_gpio_cfgall_range() Change the code setting a range of GPIO pins' configuration and pull state to use the recently introduced s3c_gpio_cfgall_range(). Mop up a few missed s3c_gpio_cfgpin_range() changes. Signed-off-by: Ben Dooks [kgene.kim@samsung.com: Fix small comments] Signed-off-by: Kukjin Kim commit 5459148b098e3bbdc24376f1865045189a80a0af Author: Ben Dooks Date: Fri Oct 1 16:34:34 2010 +0900 ARM: SAMSUNG: Add s3c_gpio_cfgall_range() function Add a function to configure a range of GPIOs function and pull in one go, mainly for the SDHCI and framebuffer helpers which tend to do this. Signed-off-by: Ben Dooks [kgene.kim@samsung.com: Fix small comments] Signed-off-by: Kukjin Kim commit ce5d3ac1f57b7a4ff28c57ebef709b8f9fd30fab Author: Kukjin Kim Date: Fri Oct 1 16:05:07 2010 +0900 ARM: S5PV310: Change to using s3c_gpio_cfgpin_range() This patch changes the code setting ranges of GPIO pins in mach-s5pv310 using s3c_gpio_cfgpin() to use the recently introduced s3c_gpio_cfgpin_range(). Signed-off-by: Kukjin Kim commit 64c5bd841b5789e118f358b684090585f14be6cf Author: Ben Dooks Date: Fri Oct 1 14:27:31 2010 +0900 ARM: S5PV210: Change to using s3c_gpio_cfgpin_range() Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to use the recently introduced s3c_gpio_cfgpin_range(). Signed-off-by: Ben Dooks [kgene.kim@samsung.com: coding-style fixes] Signed-off-by: Kukjin Kim commit ce8f9abd62e3c9fb21d6cea96a07f42ed5e008ce Author: Ben Dooks Date: Fri Oct 1 14:20:55 2010 +0900 ARM: S5PC100: Change to using s3c_gpio_cfgpin_range() Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to use the recently introduced s3c_gpio_cfgpin_range(). Signed-off-by: Ben Dooks [kgene.kim@samsung.com: Fixed wrong change] Signed-off-by: Kukjin Kim commit d5e8123bbb34f61c80c79fc7c2c2bc5336aa1166 Author: Kukjin Kim Date: Fri Oct 1 15:46:36 2010 +0900 ARM: S5P64X0: 2nd Change to using s3c_gpio_cfgpin_range() This patch changes the code setting ranges of GPIO pins in mach-s5p64x0 using s3c_gpio_cfgpin() to use the recently introduced s3c_gpio_cfgpin_range(). NOTE: This is for missed things from the previous patch. Signed-off-by: Kukjin Kim commit af94e5771a1f5eab3cb7c222c12ec116cb358f62 Author: Ben Dooks Date: Fri Oct 1 13:45:54 2010 +0900 ARM: S5P64X0: Change to using s3c_gpio_cfgpin_range() Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to use the recently introduced s3c_gpio_cfgpin_range(). Signed-off-by: Ben Dooks [kgene.kim@samsung.com: modified to s5p64x0 from s5p6440] Signed-off-by: Kukjin Kim commit 699afb75de3e7a32a802513864c869f41868c3c8 Author: Ben Dooks Date: Fri Oct 1 13:52:25 2010 +0900 ARM: S5P6442: Change to using s3c_gpio_cfgpin_range() Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to use the recently introduced s3c_gpio_cfgpin_range(). Signed-off-by: Ben Dooks [kgene.kim@samsung.com: fixed wrong change] Signed-off-by: Kukjin Kim commit 2618b555d2734df3c8ca71df319d318489318083 Author: Ben Dooks Date: Thu May 27 15:54:06 2010 +0900 ARM: S3C64XX: Change to using s3c_gpio_cfgpin_range() Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to use the recently introduced s3c_gpio_cfgpin_range(). Signed-off-by: Ben Dooks Signed-off-by: Kukjin Kim commit f5321760ce1d65fd69facc982b8523b19edf07a0 Author: Ben Dooks Date: Thu May 27 14:57:27 2010 +0900 ARM: S3C64XX: Change dev-audio.c to use S3C_GPIO_SFN() for special functions To aide in changing the gpio code, remove the use of pin-specific configs and move to using the S3C_GPIO_SFN() versions. Signed-off-by: Ben Dooks Signed-off-by: Kukjin Kim commit 4b46fbba607ef99f1aab3b77bfc1dc25464df5a6 Author: Ben Dooks Date: Fri Oct 1 13:37:13 2010 +0900 ARM: SAMSUNG: Add GPIO configuration for a range of pins Add s3c_gpio_cfgpin_range() to configure a range of pins to the given value. This is useful for a number of blocks where the pins are in order and saves multiple calls to s3c_gpio_cfgpin(). Signed-off-by: Ben Dooks Signed-off-by: Kukjin Kim commit b9da0571050c09863e59f94d0b8594a290d61b88 Merge: f8cae0f 5abd935 Author: Linus Torvalds Date: Fri Oct 22 19:36:42 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (31 commits) driver core: Display error codes when class suspend fails Driver core: Add section count to memory_block struct Driver core: Add mutex for adding/removing memory blocks Driver core: Move find_memory_block routine hpilo: Despecificate driver from iLO generation driver core: Convert link_mem_sections to use find_memory_block_hinted. driver core: Introduce find_memory_block_hinted which utilizes kset_find_obj_hinted. kobject: Introduce kset_find_obj_hinted. driver core: fix build for CONFIG_BLOCK not enabled driver-core: base: change to new flag variable sysfs: only access bin file vm_ops with the active lock sysfs: Fail bin file mmap if vma close is implemented. FW_LOADER: fix kconfig dependency warning on HOTPLUG uio: Statically allocate uio_class and use class .dev_attrs. uio: Support 2^MINOR_BITS minors uio: Cleanup irq handling. uio: Don't clear driver data uio: Fix lack of locking in init_uio_class SYSFS: Allow boot time switching between deprecated and modern sysfs layout driver core: remove CONFIG_SYSFS_DEPRECATED_V2 but keep it for block devices ... commit f8cae0f03f75adb54b1d48ddbc90f84a1f5de186 Author: Linus Torvalds Date: Fri Oct 22 19:30:38 2010 -0700 ocfs2: drop the BLKDEV_IFL_WAIT flag Commit dd3932eddf42 ("block: remove BLKDEV_IFL_WAIT") had removed the flag argument to blkdev_issue_flush(), but the ocfs2 merge brought in a new one. It didn't cause a merge conflict, so the merges silently worked out fine, but the result didn't actually compile. Signed-off-by: Linus Torvalds commit cb0ed22270129b980257fa9c83b152f09ecd9eda Author: Matti Aaltonen Date: Mon Oct 18 06:54:14 2010 -0300 [media] [RFC,1/1] V4L2: Use new CAP bits in existing RDS capable drivers Signed-off-by: Mauro Carvalho Chehab commit eb8942e9b6150d3cc89640f1fb243ca9626a1d14 Author: Matti Aaltonen Date: Mon Oct 18 10:52:37 2010 -0300 [media] Documentation: v4l: Add hw_seek spacing and two TUNER_RDS_CAP flags Add a couple of words about the spacing field in the HW seek struct, also a few words about the new RDS tuner capability flags V4L2_TUNER_CAP_RDS_BLOCK-IO and V4L2_TUNER_CAP_RDS_CONTROLS. Signed-off-by: Matti J. Aaltonen Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit a682d4cb768381039bdafdc3c04c53cf8d70dcf0 Author: Hans Verkuil Date: Sun Oct 17 09:26:18 2010 -0300 [media] [RFC] radio-mr800: locking fixes - serialize the suspend and resume functions using the global lock. - do not call usb_autopm_put_interface after a disconnect. - fix a race when disconnecting the device. Reported-by: David Ellingsworth Signed-off-by: Hans Verkuil Acked-by: David Ellingsworth Signed-off-by: Mauro Carvalho Chehab commit e2302501c32a0e7e34b7077f10da03b72dd91570 Author: Joe Perches Date: Sun Jun 20 04:20:46 2010 -0300 [media] drivers/media/IR/imon.c: Use pr_err instead of err Use the standard error logging mechanisms. Add #define pr_fmt(fmt) KBUILD_MODNAME ":%s" fmt, __func__ Remove __func__ from err calls, add '\n', rename to pr_err Signed-off-by: Joe Perches Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 3074fc8432223937985e138bde1270a03fc75628 Author: Julia Lawall Date: Thu Aug 5 17:29:55 2010 -0300 [media] drivers/media/video/bt8xx: Adjust confusing if indentation Indent the branch of an if. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r disable braces4@ position p1,p2; statement S1,S2; @@ ( if (...) { ... } | if (...) S1@p1 S2@p2 ) @script:python@ p1 << r.p1; p2 << r.p2; @@ if (p1[0].column == p2[0].column): cocci.print_main("branch",p1) cocci.print_secs("after",p2) // Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab commit d2ecad9faca2221ae6f664f146f0dcae661bf39d Merge: c70b529 cdff08e Author: Linus Torvalds Date: Fri Oct 22 17:52:29 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: (56 commits) [CIFS] move close processing from cifs_close to cifsFileInfo_put cifs: convert cifs_tcp_ses_lock from a rwlock to a spinlock cifs: cancel_delayed_work() + flush_scheduled_work() -> cancel_delayed_work_sync() Clean up two declarations of blob_len cifs: move cifsFileInfo_put to file.c cifs: convert GlobalSMBSeslock from a rwlock to regular spinlock [CIFS] Fix minor checkpatch warning and update cifs version cifs: move cifs_new_fileinfo to file.c cifs: eliminate pfile pointer from cifsFileInfo cifs: cifs_write argument change and cleanup cifs: clean up cifs_reopen_file cifs: eliminate the inode argument from cifs_new_fileinfo cifs: eliminate oflags option from cifs_new_fileinfo cifs: fix flags handling in cifs_posix_open cifs: eliminate cifs_posix_open_inode_helper cifs: handle FindFirst failure gracefully NTLM authentication and signing - Calculate auth response per smb session cifs: don't use vfsmount to pin superblock for oplock breaks cifs: keep dentry reference in cifsFileInfo instead of inode reference cifs: on multiuser mount, set ownership to current_fsuid/current_fsgid (try #7) ... Fix up trivial conflict in fs/cifs/cifsfs.c due to added/removed header files commit c70b5296e775cde46cfcb2d860ba160108a5ec7a Merge: 80c226f 58ff4bd Author: Linus Torvalds Date: Fri Oct 22 17:34:15 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (84 commits) [SCSI] be2iscsi: SGE Len == 64K [SCSI] be2iscsi: Remove premature free of cid [SCSI] be2iscsi: More time for FW [SCSI] libsas: fix bug for vacant phy [SCSI] sd: Fix overflow with big physical blocks [SCSI] st: add MTWEOFI to write filemarks without flushing drive buffer [SCSI] libsas: Don't issue commands to devices that have been hot-removed [SCSI] megaraid_sas: Add Online Controller Reset to MegaRAID SAS drive [SCSI] lpfc 8.3.17: Update lpfc driver version to 8.3.17 [SCSI] lpfc 8.3.17: Replace function reset methodology [SCSI] lpfc 8.3.17: SCSI fixes [SCSI] lpfc 8.3.17: BSG fixes [SCSI] lpfc 8.3.17: SLI Additions and Fixes [SCSI] lpfc 8.3.17: Code Cleanup and Locking fixes [SCSI] zfcp: Remove scsi_cmnd->serial_number from debug traces [SCSI] ipr: fix array error logging [SCSI] aha152x: enable PCMCIA on 64bit [SCSI] scsi_dh_alua: Handle all states correctly [SCSI] cxgb4i: connection and ddp setting update [SCSI] cxgb3i: fixed connection over vlan ... commit 80c226fbef56576946c9655fcb2ab62e63404d12 Merge: 2c15bd0 779b7e6 Author: Linus Torvalds Date: Fri Oct 22 17:33:35 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k: m68k: Add missing I/O macros {in,out}{w,l}_p() for !CONFIG_ISA m68k: Remove big kernel lock in cache flush code m68k: __pa(): cast arg to long fbdev: atafb - Remove undead ifdef ATAFB_FALCON zorro: Fix device_register() error handling fbdev/m68k: Fix section mismatches in q40fb.c m68k/m68knommu: merge the MMU and non-MMU traps.h m68k/m68knommu: merge MMU and non-MMU thread_info.h m68k/m68knommu: merge MMU and non-MMU atomic.h m68k/m68knommu: clean up page.h m68k/m68knommu: merge machdep.h files into a single file m68k/m68knommu: merge MMU and non-MMU string.h m68k/m68knommu: Remove dead SMP config option m68k: move definition of THREAD_SIZE into thread_info_mm.h m68k: Use asm-generic/ioctls.h (enables termiox) m68k: Remove dead GG2 config option commit 2c15bd00a5d6b2b64e006e91e2196f0c6a764cb6 Merge: 5fe3a5a 269cddd Author: Linus Torvalds Date: Fri Oct 22 17:33:16 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm: dlm: Fix dlm lock status block comment in dlm.h dlm: Don't send callback to node making lock request when "try 1cb" fails commit 5fe3a5ae5c09d53b2b3c7a971e1d87ab3a747055 Merge: 0fc0531 39dc948 Author: Linus Torvalds Date: Fri Oct 22 17:32:27 2010 -0700 Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs * 'for-linus' of git://oss.sgi.com/xfs/xfs: (36 commits) xfs: semaphore cleanup xfs: Extend project quotas to support 32bit project ids xfs: remove xfs_buf wrappers xfs: remove xfs_cred.h xfs: remove xfs_globals.h xfs: remove xfs_version.h xfs: remove xfs_refcache.h xfs: fix the xfs_trans_committed xfs: remove unused t_callback field in struct xfs_trans xfs: fix bogus m_maxagi check in xfs_iget xfs: do not use xfs_mod_incore_sb_batch for per-cpu counters xfs: do not use xfs_mod_incore_sb for per-cpu counters xfs: remove XFS_MOUNT_NO_PERCPU_SB xfs: pack xfs_buf structure more tightly xfs: convert buffer cache hash to rbtree xfs: serialise inode reclaim within an AG xfs: batch inode reclaim lookup xfs: implement batched inode lookups for AG walking xfs: split out inode walk inode grabbing xfs: split inode AG walking into separate code for reclaim ... commit 0fc0531e0a2174377a86fd6953ecaa00287d8f70 Merge: 91b7450 9329ba9 Author: Linus Torvalds Date: Fri Oct 22 17:31:36 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu: percpu: update comments to reflect that percpu allocations are always zero-filled percpu: Optimize __get_cpu_var() x86, percpu: Optimize this_cpu_ptr percpu: clear memory allocated with the km allocator percpu: fix build breakage on s390 and cleanup build configuration tests percpu: use percpu allocator on UP too percpu: reduce PCPU_MIN_UNIT_SIZE to 32k vmalloc: pcpu_get/free_vm_areas() aren't needed on UP Fixed up trivial conflicts in include/linux/percpu.h commit 6b81e14e645016597c81e71cd27ee5c57c3a3c36 Author: Jiro SEKIBA Date: Thu Oct 14 13:52:00 2010 +0900 nilfs2: eliminate sparse warning - "context imbalance" insert sparse annotations to fix following sparse warning. fs/nilfs2/segment.c:2681:3: warning: context imbalance in 'nilfs_segctor_kill_thread' - unexpected unlock nilfs_segctor_kill_thread is only called inside sc_state_lock lock. sparse doesn't detect the context and warn "unexpected unlock". __acquires/__releases pretend to lock/unlock the sc_state_lock for sparse. Signed-off-by: Jiro SEKIBA Signed-off-by: Ryusuke Konishi commit abc0b50b6b9a9de8ae210f059598265a5438f2c4 Author: Jiro SEKIBA Date: Fri Oct 8 22:37:27 2010 +0900 nilfs2: eliminate sparse warnings - "symbol not declared" change nilfs_dat_commit_free and nilfs_inode_cachep static to fix following warnings fs/nilfs2/super.c:72:19: warning: symbol 'nilfs_inode_cachep' was not declared. Should it be static? fs/nilfs2/dat.c:106:6: warning: symbol 'nilfs_dat_commit_free' was not declared. Should it be static? Signed-off-by: Jiro SEKIBA Signed-off-by: Ryusuke Konishi commit 026a7d63d55ba8656ed8c8a0733265cc7d47bb8c Author: Ryusuke Konishi Date: Thu Oct 7 14:19:48 2010 +0900 nilfs2: get rid of bdi from nilfs object Nilfs now can use sb->s_bdi to get backing_dev_info, so we use it instead of ns_bdi on the nilfs object and remove ns_bdi. Signed-off-by: Ryusuke Konishi commit c486f3895d6dc751f7c0f04f0fa67390ce4d168e Author: Ryusuke Konishi Date: Sun Oct 3 17:44:03 2010 +0900 nilfs2: change license of exported header file This allows other projects to carry copies of the header file related to ABI and disk format (i.e. "nilfs2_fs.h") without it or distributors having to worry about effects on the project's overall license terms. It's also desired for switching the license of nilfs library to LGPL. Jiro SEKIBA pointed out these license issues (Message-ID: <87tylo7msw.wl%jir@sekiba.com>), and he suggested switching license of the library and nilfs2_fs.h to GNU Lesser General Public License. We take in his suggestion to avoid the license issues. Signed-off-by: Ryusuke Konishi Cc: Jiro SEKIBA Cc: linux-nilfs commit 5beb6e0b2008386571fd342d0a4a14f5c8c0baf8 Author: Ryusuke Konishi Date: Mon Sep 20 18:19:06 2010 +0900 nilfs2: add bdev freeze/thaw support Nilfs hasn't supported the freeze/thaw feature because it didn't work due to the peculiar design that multiple super block instances could be allocated for a device. This limitation was removed by the patch "nilfs2: do not allocate multiple super block instances for a device". So now this adds the freeze/thaw support to nilfs. Signed-off-by: Ryusuke Konishi commit c05dbfc2609993ccc067879579e2a7726e12b3f1 Author: Ryusuke Konishi Date: Thu Sep 16 00:36:24 2010 +0900 nilfs2: accept 64-bit checkpoint numbers in cp mount option The current implementation doesn't mount snapshots with checkpoint numbers larger than INT_MAX since it uses match_int() for parsing "cp=" mount option. This uses simple_strtoull() for the conversion to resolve the issue. Signed-off-by: Ryusuke Konishi commit 2879ed66e4c6da1dfc6bb0bd04566b61824f9256 Author: Ryusuke Konishi Date: Sun Sep 5 13:35:53 2010 +0900 nilfs2: remove own inode allocator and destructor for metadata files This finally removes own inode allocator and destructor functions for metadata files. Several routines, nilfs_mdt_new(), nilfs_mdt_new_common(), nilfs_mdt_clear(), nilfs_mdt_destroy(), and nilfs_alloc_inode_common() will be gone. Signed-off-by: Ryusuke Konishi commit 090fd5b10165033d7c30afde0a7e59141d820602 Author: Ryusuke Konishi Date: Sun Sep 5 16:17:35 2010 +0900 nilfs2: get rid of back pointer to writable sb instance Nilfs object holds a back pointer to a writable super block instance in nilfs->ns_writer, and this became eliminable since sb is now made per device and all inodes have a valid pointer to it. This deletes the ns_writer pointer and a reader/writer semaphore protecting it. Signed-off-by: Ryusuke Konishi commit c6e071884aca360a14c21757d760e76ec34b4894 Author: Ryusuke Konishi Date: Sun Sep 5 00:23:50 2010 +0900 nilfs2: get rid of mi_nilfs back pointer to nilfs object This removes a back pointer to nilfs object from nilfs_mdt_info structure that is attached to metadata files. Signed-off-by: Ryusuke Konishi commit 032dbb3b503a30fce732ec4c05525d0abed1f1d6 Author: Ryusuke Konishi Date: Mon Sep 13 11:16:34 2010 +0900 nilfs2: see state of root dentry for mount check of snapshots After applied the patch that unified sb instances, root dentry of snapshots can be left in dcache even after their trees are unmounted. The orphan root dentry/inode keeps a root object, and this causes false positive of nilfs_checkpoint_is_mounted function. This resolves the issue by having nilfs_checkpoint_is_mounted test whether the root dentry is busy or not. Signed-off-by: Ryusuke Konishi commit f1e89c86fdd0f5e59f6768146c86437934202033 Author: Ryusuke Konishi Date: Sun Sep 5 12:20:59 2010 +0900 nilfs2: use iget for all metadata files This makes use of iget5_locked to allocate or get inode for metadata files to stop using own inode allocator. Signed-off-by: Ryusuke Konishi commit c1c1d7092072093ad960db2f6c08f06705c57fa4 Author: Ryusuke Konishi Date: Sun Aug 29 12:44:56 2010 +0900 nilfs2: get rid of GCDAT inode This applies prepared rollback function and redirect function of metadata file to DAT file, and eliminates GCDAT inode. Signed-off-by: Ryusuke Konishi commit b1f6a4f294088b3fcf9ae67915ca550a1ded2819 Author: Ryusuke Konishi Date: Tue Aug 31 11:40:34 2010 +0900 nilfs2: add routines to redirect access to buffers of DAT file During garbage collection (GC), DAT file, which converts virtual block number to real block number, may return disk block number that is not yet written to the device. To avoid access to unwritten blocks, the current implementation stores changes to the caches of GCDAT during GC and atomically commit the changes into the DAT file after they are written to the device. This patch, instead, adds a function that makes a copy of specified buffer and stores it in nilfs_shadow_map, and a function to get the backup copy as needed (nilfs_mdt_freeze_buffer and nilfs_mdt_get_frozen_buffer respectively). Before DAT changes block number in an entry block, it makes a copy and redirect access to the buffer so that address conversion function (i.e. nilfs_dat_translate) refers to the old address saved in the copy. This patch gives requisites for such redirection. Signed-off-by: Ryusuke Konishi commit ebdfed4dc59d177cf26013a0c9b8ee9652e9a140 Author: Ryusuke Konishi Date: Mon Sep 6 12:05:43 2010 +0900 nilfs2: add routines to roll back state of DAT file This adds optional function to metadata files which makes a copy of bmap, page caches, and b-tree node cache, and rolls back to the copy as needed. This enhancement is intended to displace gcdat inode that provides a similar function in a different way. In this patch, nilfs_shadow_map structure is added to store a copy of the foregoing states. nilfs_mdt_setup_shadow_map relates this structure to a metadata file. And, nilfs_mdt_save_to_shadow_map() and nilfs_mdt_restore_from_shadow_map() provides save and restore functions respectively. Finally, nilfs_mdt_clear_shadow_map() clears states of nilfs_shadow_map. The copy of b-tree node cache and page cache is made by duplicating only dirty pages into corresponding caches in nilfs_shadow_map. Their restoration is done by clearing dirty pages from original caches and by copying dirty pages back from nilfs_shadow_map. Signed-off-by: Ryusuke Konishi commit a8070dd365dd995f6139a2fc3aeee10159bdcc45 Author: Ryusuke Konishi Date: Mon Aug 30 23:42:18 2010 +0900 nilfs2: add routines to save and restore bmap state This adds routines to save and restore the state of bmap structure. The bmap state is stored in a given nilfs_bmap_store object. These routines will be used to roll back the state of dat inode without using gcdat inode. Signed-off-by: Ryusuke Konishi commit adbb39b5485b72dca963a2bc9b1b22bfc19d4967 Author: Ryusuke Konishi Date: Sun Sep 5 10:14:43 2010 +0900 nilfs2: do not allocate nilfs_mdt_info structure to gc-inodes GC-inode now doesn't need the nilfs_mdt_info structure and there is no reason that it is a sort of metadata files. This stops the allocation and makes them not dependent on metadata file routines. Signed-off-by: Ryusuke Konishi commit 518d1a6a1d6610a014875a2fe3252e89b6260d2f Author: Ryusuke Konishi Date: Fri Aug 20 23:40:54 2010 +0900 nilfs2: allow nilfs_clear_inode to clear metadata file inodes Allows clear inode function (nilfs_clear_inode) to handle metadata files that uses bitmap-based object alloctor. DAT and ifile correspond to this. Signed-off-by: Ryusuke Konishi commit b453c95eb8d6a3b2348e9c7bc28a7d223cb640e3 Author: Ryusuke Konishi Date: Wed Aug 25 23:52:46 2010 +0900 nilfs2: get rid of snapshot mount flag This flag is a fake used to distinguish type of super block instance. And, it got obsolete by the unification of sb. Signed-off-by: Ryusuke Konishi commit 348fe8da13621b3d14ab2d156e74551611997017 Author: Ryusuke Konishi Date: Thu Sep 9 02:07:56 2010 +0900 nilfs2: simplify life cycle management of nilfs object This stops pre-allocating nilfs object in nilfs_get_sb routine, and stops managing its life cycle by reference counting. nilfs_find_or_create_nilfs() function, nilfs->ns_mount_mutex, nilfs_objects list, and the reference counter will be removed through the simplification. Signed-off-by: Ryusuke Konishi commit f11459ad7dab9e9eb5a05b8bd3bec338ea8f485d Author: Ryusuke Konishi Date: Mon Aug 16 01:54:52 2010 +0900 nilfs2: do not allocate multiple super block instances for a device This stops allocating multiple super block instances for a device. All snapshots and a current mode mount (i.e. latest tree) will be controlled with nilfs_root objects that are kept within an sb instance. nilfs_get_sb() is rewritten so that it always has a root object for the latest tree and snapshots make additional root objects. The root dentry of the latest tree is binded to sb->s_root even if it isn't attached on a directory. Root dentries of snapshots or the latest tree are binded to mnt->mnt_root on which they are mounted. With this patch, nilfs_find_sbinfo() function, nilfs->ns_supers list, and nilfs->ns_current back pointer, are deleted. In addition, init_nilfs() and load_nilfs() are simplified since they will be called once for a device, not repeatedly called for mount points. Signed-off-by: Ryusuke Konishi commit ab4d8f7ebf33beff97e766d18db47f1ea9635769 Author: Ryusuke Konishi Date: Thu Aug 26 02:15:41 2010 +0900 nilfs2: split out nilfs_attach_snapshot This splits the code to attach snapshots into a separate routine for convenience sake. Signed-off-by: Ryusuke Konishi commit 367ea33486a68f935a01311a3be9b7e97d2e5ead Author: Ryusuke Konishi Date: Thu Aug 26 01:52:51 2010 +0900 nilfs2: split out nilfs_get_root_dentry This splits the code to allocate root dentry into a separate routine for convenience in successive changes. Signed-off-by: Ryusuke Konishi commit dc3d3b810a644dfa329efaa230cd514226f8981d Author: Ryusuke Konishi Date: Sun Aug 15 23:33:57 2010 +0900 nilfs2: deny write access to inodes in snapshots Snapshots of nilfs are read-only. After super block instances (sb) will be unified, nilfs will need to check write access by a way other than implicit test with IS_RDONLY(inode). This is because IS_RDONLY() refers to MS_RDONLY bit of inode->i_sb->s_flags and it will become inaccurate after the unification of sb. To prepare for the issue, this uses i_op->permission to deny write access to inodes in snapshots. Signed-off-by: Ryusuke Konishi commit fd52202930b7e8db48bee5a6fc6b1f438e822a23 Author: Ryusuke Konishi Date: Sat Aug 14 21:44:51 2010 +0900 nilfs2: use checkpoint tree for mount check of snapshots This rewrites nilfs_checkpoint_is_mounted() function so that it decides whether a checkpoint is mounted by whether the corresponding root object is found in checkpoint tree. Signed-off-by: Ryusuke Konishi commit b7c0634204993d7c6678c852e4bd118426599111 Author: Ryusuke Konishi Date: Sat Aug 14 14:48:32 2010 +0900 nilfs2: move inode count and block count into root object This moves sbi->s_inodes_count and sbi->s_blocks_count into nilfs_root object. Signed-off-by: Ryusuke Konishi commit e912a5b66837ee89fb025e67b5efeaa11930c2ce Author: Ryusuke Konishi Date: Sat Aug 14 13:07:15 2010 +0900 nilfs2: use root object to get ifile This rewrites functions using ifile so that they get ifile from nilfs_root object, and will remove sbi->s_ifile. Some functions that don't know the root object are extended to receive it from caller. Signed-off-by: Ryusuke Konishi commit 8e656fd518784b49453f60c5f78b78703bc85cb2 Author: Ryusuke Konishi Date: Fri Aug 27 00:23:02 2010 +0900 nilfs2: make snapshots in checkpoint tree exportable The previous export operations cannot handle multiple versions of a filesystem if they belong to the same sb instance. This adds a new type of file handle and extends export operations so that they can get the inode specified by a checkpoint number as well as an inode number and a generation number. Signed-off-by: Ryusuke Konishi commit 4d8d9293dce503eb0e083e17a02a328d397e7f00 Author: Ryusuke Konishi Date: Wed Aug 25 17:45:44 2010 +0900 nilfs2: set pointer to root object in inodes This puts a pointer to nilfs_root object in the private part of on-memory inode, and makes nilfs_iget function pick up the inode with the same root object. Non-root inodes inherit its nilfs_root object from parent inode. That of the root inode is allocated through nilfs_attach_checkpoint() function. Signed-off-by: Ryusuke Konishi commit ba65ae4729bf81c58d9fc847f67d57eec525b042 Author: Ryusuke Konishi Date: Sat Aug 14 12:59:15 2010 +0900 nilfs2: add checkpoint tree to nilfs object To hold multiple versions of a filesystem in one sb instance, a new on-memory structure is necessary to handle one or more checkpoints. This adds a red-black tree of checkpoints to nilfs object, and adds lookup and create functions for them. Each checkpoint is represented by "nilfs_root" structure, and this structure has rb_node to configure the rb-tree. The nilfs_root object is identified with a checkpoint number. For each snapshot, a nilfs_root object is allocated and the checkpoint number of snapshot is assigned to it. For a regular mount (i.e. current mode mount), NILFS_CPTREE_CURRENT_CNO constant is assigned to the corresponding nilfs_root object. Each nilfs_root object has an ifile inode and some counters. These items will displace those of nilfs_sb_info structure in successive patches. Signed-off-by: Ryusuke Konishi commit 263d90cefc7d82a01c296c59532ff59d67c63509 Author: Ryusuke Konishi Date: Fri Aug 20 19:06:11 2010 +0900 nilfs2: remove own inode hash used for GC This uses inode hash function that vfs provides instead of the own hash table for caching gc inodes. This finally removes the own inode hash from nilfs. Signed-off-by: Ryusuke Konishi commit 5e19a995f4ad8a8f20749a396bb01ebb6d4df96c Author: Ryusuke Konishi Date: Sat Aug 21 22:01:51 2010 +0900 nilfs2: separate initializer of metadata file inode This separates a part of initialization code of metadata file inode, and makes it available from the nilfs iget function that a later patch will add to. Signed-off-by: Ryusuke Konishi commit 0e14a3595bddedfb27b51a6b0a29b5173aa2511a Author: Ryusuke Konishi Date: Fri Aug 20 21:20:29 2010 +0900 nilfs2: use iget5_locked to get inode This uses iget5_locked instead of iget_locked so that gc cache can look up inodes with an inode number and an optional checkpoint number. Signed-off-by: Ryusuke Konishi commit 6c43f41000312fefa482c3bfdd97e7f81d6be0ec Author: Ryusuke Konishi Date: Fri Aug 20 20:10:38 2010 +0900 nilfs2: keep zero value in i_cno except for gc-inodes On-memory inode structures of nilfs have a member "i_cno" which stores a checkpoint number related to the inode. For gc-inodes, this field indicates version of data each gc-inode caches for GC. Log writer temporarily uses "i_cno" to transfer the latest checkpoint number. This stops the latter use and lets only gc-inodes use it. The purpose of this patch is to allow the successive change use "i_cno" for inode lookup. Signed-off-by: Ryusuke Konishi commit 7d6cd92fe2de3c286b8e95f43223f09db9302635 Author: Ryusuke Konishi Date: Sat Aug 21 00:30:39 2010 +0900 nilfs2: allow nilfs_dirty_inode to mark metadata file inodes dirty This allows sop->dirty_inode callback function (nilfs_dirty_inode) to handle metadata file inodes. Signed-off-by: Ryusuke Konishi commit b91c9a97c9333c87fe2a0c94b3b22b24df1c5fc2 Author: Ryusuke Konishi Date: Fri Aug 20 23:46:06 2010 +0900 nilfs2: allow nilfs_destroy_inode to destroy metadata file inodes The current nilfs_destroy_inode() doesn't handle metadata file inodes including gc inodes (dummy inodes used for garbage collection). This allows nilfs_destroy_inode() to destroy inodes of metadata files. Signed-off-by: Ryusuke Konishi commit 9566a7a851eb7201e3207eab53ee81efd0850fee Author: Ryusuke Konishi Date: Tue Aug 10 00:58:41 2010 +0900 nilfs2: accept future revisions Compatibility of nilfs partitions is now managed with three feature sets. This changes old compatibility check with revision number so that it can accept future revisions. Note that we can stop support of experimental versions of nilfs that doesn't know the feature sets by incrementing NILFS_CURRENT_REV. We don't have to do it soon, but it would be a possible option whenever the need arises. Signed-off-by: Ryusuke Konishi commit ab599a6d474e0dd4db3557a46dd15cff6e126d0b Author: Malcolm Priestley Date: Sat Oct 16 16:44:43 2010 -0300 [media] lmedm04: driver for DM04/QQBOX updated to version 1.60 These include -later kill of usb_buffer to avoid kernel crash on hot unplugging. -DiSEqC functions. -LNB Power switch -Faster channel change. -support for LG tuner on LME2510C. -firmware switching for LG tuner. Signed-off-by: Malcolm Priestley Signed-off-by: Mauro Carvalho Chehab commit 91b745016c12d440386c40fb76ab69c8e08cbc06 Merge: 04cc697 daaae6b Author: Linus Torvalds Date: Fri Oct 22 17:13:10 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: workqueue: remove in_workqueue_context() workqueue: Clarify that schedule_on_each_cpu is synchronous memory_hotplug: drop spurious calls to flush_scheduled_work() shpchp: update workqueue usage pciehp: update workqueue usage isdn/eicon: don't call flush_scheduled_work() from diva_os_remove_soft_isr() workqueue: add and use WQ_MEM_RECLAIM flag workqueue: fix HIGHPRI handling in keep_working() workqueue: add queue_work and activate_work trace points workqueue: prepare for more tracepoints workqueue: implement flush[_delayed]_work_sync() workqueue: factor out start_flush_work() workqueue: cleanup flush/cancel functions workqueue: implement alloc_ordered_workqueue() Fix up trivial conflict in fs/gfs2/main.c as per Tejun commit dda7ae789f1d9b0c2528f7abc37f4316f8fa1e0f Author: Sylwester Nawrocki Date: Fri Oct 22 04:10:57 2010 -0300 [media] s5p-fimc: dubious one-bit signed bitfields > From: Dan Carpenter [mailto:error27@gmail.com] > > These are signed so instead of being 1 and 0 as intended they are -1 and > 0. It doesn't cause a bug in the current code but Sparse warns about > it: > > drivers/media/video/s5p-fimc/fimc-core.h:226:28: > error: dubious one-bit signed bitfield > struct fimc_scaler { > - int scaleup_h:1; > - int scaleup_v:1; > - int copy_mode:1; > - int enabled:1; > + unsigned int scaleup_h:1; > + unsigned int caleup_v:1; > + unsigned int copy_mode:1; > + unsigned int enabled:1; In general I agree, however this patch would change scaleup_v:1 to caleup_v, so it cannot be applied in current form. Here is the corrected patch: Reported-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab commit 04cc69768e7d1f40d98b79d23d203674553b4da2 Merge: a288709 e5953cb Author: Linus Torvalds Date: Fri Oct 22 17:07:56 2010 -0700 Merge branch 'for-2.6.37/misc' of git://git.kernel.dk/linux-2.6-block * 'for-2.6.37/misc' of git://git.kernel.dk/linux-2.6-block: pipe: fix failure to return error code on ->confirm() commit a2887097f25cd38cadfc11d10769e2b349fb5eca Merge: 8abfc6e 005a1d1 Author: Linus Torvalds Date: Fri Oct 22 17:07:18 2010 -0700 Merge branch 'for-2.6.37/barrier' of git://git.kernel.dk/linux-2.6-block * 'for-2.6.37/barrier' of git://git.kernel.dk/linux-2.6-block: (46 commits) xen-blkfront: disable barrier/flush write support Added blk-lib.c and blk-barrier.c was renamed to blk-flush.c block: remove BLKDEV_IFL_WAIT aic7xxx_old: removed unused 'req' variable block: remove the BH_Eopnotsupp flag block: remove the BLKDEV_IFL_BARRIER flag block: remove the WRITE_BARRIER flag swap: do not send discards as barriers fat: do not send discards as barriers ext4: do not send discards as barriers jbd2: replace barriers with explicit flush / FUA usage jbd2: Modify ASYNC_COMMIT code to not rely on queue draining on barrier jbd: replace barriers with explicit flush / FUA usage nilfs2: replace barriers with explicit flush / FUA usage reiserfs: replace barriers with explicit flush / FUA usage gfs2: replace barriers with explicit flush / FUA usage btrfs: replace barriers with explicit flush / FUA usage xfs: replace barriers with explicit flush / FUA usage block: pass gfp_mask and flags to sb_issue_discard dm: convey that all flushes are processed as empty ... commit 29adc2c06fd7aa0a26135d8c96afd1cef9e6700b Author: Dan Carpenter Date: Thu Oct 21 16:22:43 2010 -0300 [media] s5p-fimc: add unlock on error path There was an unlock missing if kzalloc() failed. Signed-off-by: Dan Carpenter Acked-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab commit 8abfc6e7a45eb74e51904bbae676fae008b11366 Merge: e9dd2b6 6362bee Author: Linus Torvalds Date: Fri Oct 22 17:03:12 2010 -0700 Merge branch 'for-2.6.37/drivers' of git://git.kernel.dk/linux-2.6-block * 'for-2.6.37/drivers' of git://git.kernel.dk/linux-2.6-block: (95 commits) cciss: fix PCI IDs for new Smart Array controllers drbd: add race-breaker to drbd_go_diskless drbd: use dynamic_dev_dbg to optionally log uuid changes dynamic_debug.h: Fix dynamic_dev_dbg() macro if CONFIG_DYNAMIC_DEBUG not set drbd: cleanup: change "<= 0" to "== 0" drbd: relax the grace period of the md_sync timer again drbd: add some more explicit drbd_md_sync drbd: drop wrong debug asserts, fix recently introduced race drbd: cleanup useless leftover warn/error printk's drbd: add explicit drbd_md_sync to drbd_resync_finished drbd: Do not log an ASSERT for P_OV_REQUEST packets while C_CONNECTED drbd: fix for possible deadlock on IO error during resync drbd: fix unlikely access after free and list corruption drbd: fix for spurious fullsync (uuids rotated too fast) drbd: allow for explicit resync-finished notifications drbd: preparation commit, using full state in receive_state() drbd: drbd_send_ack_dp must not rely on header information drbd: Fix regression in recv_bm_rle_bits (compressed bitmap) drbd: Fixed a stupid copy and paste error drbd: Allow larger values for c-fill-target. ... Fix up trivial conflict in drivers/block/ataflop.c due to BKL removal commit e9dd2b6837e26fe202708cce5ea4bb4ee3e3482e Merge: 4f3a29d b462732 Author: Linus Torvalds Date: Fri Oct 22 17:00:32 2010 -0700 Merge branch 'for-2.6.37/core' of git://git.kernel.dk/linux-2.6-block * 'for-2.6.37/core' of git://git.kernel.dk/linux-2.6-block: (39 commits) cfq-iosched: Fix a gcc 4.5 warning and put some comments block: Turn bvec_k{un,}map_irq() into static inline functions block: fix accounting bug on cross partition merges block: Make the integrity mapped property a bio flag block: Fix double free in blk_integrity_unregister block: Ensure physical block size is unsigned int blkio-throttle: Fix possible multiplication overflow in iops calculations blkio-throttle: limit max iops value to UINT_MAX blkio-throttle: There is no need to convert jiffies to milli seconds blkio-throttle: Fix link failure failure on i386 blkio: Recalculate the throttled bio dispatch time upon throttle limit change blkio: Add root group to td->tg_list blkio: deletion of a cgroup was causes oops blkio: Do not export throttle files if CONFIG_BLK_DEV_THROTTLING=n block: set the bounce_pfn to the actual DMA limit rather than to max memory block: revert bad fix for memory hotplug causing bounces Fix compile error in blk-exec.c for !CONFIG_DETECT_HUNG_TASK block: set the bounce_pfn to the actual DMA limit rather than to max memory block: Prevent hang_check firing during long I/O cfq: improve fsync performance for small files ... Fix up trivial conflicts due to __rcu sparse annotation in include/linux/genhd.h commit aa55f3a46fe799b3c8396c57f4b4074252f635da Author: Laurent Pinchart Date: Fri Sep 24 10:04:06 2010 -0300 [media] cx18: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, replace the hardcoded module name passed to those functions by NULL. The sub-devices without a listed module name don't result in and I2C sub-device being created, as they either are IR devices or don't have an I2C address listed. It's thus safe to rely on modaliases only. All corresponding I2C modules have been checked, and all of them include a module aliases table with names corresponding to what the cx18 driver uses. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 84d0d4f0674c55d0625bd1b6eb91dba4ef3948f9 Author: Laurent Pinchart Date: Fri Sep 24 09:58:51 2010 -0300 [media] ivtv: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, replace the hardcoded module name passed to those functions by NULL. The sub-devices without a listed module name don't result in and I2C sub-device being created, as they either are IR devices or don't have an I2C address listed. It's thus safe to rely on modaliases only. All corresponding I2C modules have been checked, and all of them include a module aliases table with names corresponding to what the ivtv driver uses. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit dfffec67951494a02244b43b0b2cdc9cded841b2 Author: Laurent Pinchart Date: Fri Sep 24 09:32:10 2010 -0300 [media] vpif_capture: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, don't use the module names hardcoded in platform data by passing a NULL module name to those functions. The only platform using the VPIF capture device (DM646x EVM) hardcodes the module names to invalid values (tvp514x-0 and tvp514x-1). As this is already broken, there's no risk of breaking it more. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 87b385484e29b1a6e5138e186f7f4d16e5f398a3 Author: Laurent Pinchart Date: Fri Sep 24 09:31:00 2010 -0300 [media] vpif_display: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, don't use the module names hardcoded in platform data by passing a NULL module name to those functions. All corresponding I2C modules have been checked, and all of them include a module aliases table with names corresponding to what the vpif_display platform data uses. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 959b606922e080a6a236211ff9f7f74150a73028 Author: Laurent Pinchart Date: Fri Sep 24 09:05:13 2010 -0300 [media] vpfe_capture: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, don't use the module names hardcoded in platform data by passing a NULL module name to those functions. All corresponding I2C modules have been checked, and all of them include a module aliases table with names corresponding to what the vpfe_capture platform data uses. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 2001f99947017e378e55943a350c67a8fca9e9b6 Author: Laurent Pinchart Date: Fri Sep 24 09:27:03 2010 -0300 [media] soc_camera: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, remove the module names hardcoded in platform data and pass a NULL module name to those functions. All corresponding I2C modules have been checked, and all of them include a module aliases table with names corresponding to what the soc_camera platform data uses. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit cb9bc962a10144d3a70651f1f5c755b34d8d5bf4 Author: Laurent Pinchart Date: Fri Sep 24 08:45:07 2010 -0300 [media] radio-si4713: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, replace the hardcoded module name passed to those functions by NULL. As no board seems to use this driver, no platform data has been checked. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 2334e7902e4ff3d61b5dd808858f2ac3e276a551 Author: Laurent Pinchart Date: Fri Sep 24 08:39:19 2010 -0300 [media] sh_vou: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, remove the module names hardcoded in platform data and pass a NULL module name to those functions. All corresponding I2C modules have been checked, and all of them include a module aliases table with names corresponding to what the sh_vou platform data uses. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit d4c0312363ad16a9991521aec7e19ffe85d49c2a Author: Laurent Pinchart Date: Fri Sep 24 08:35:21 2010 -0300 [media] pvrusb2: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, replace the hardcoded module name passed to those functions by NULL. All corresponding I2C modules have been checked, and all of them include a module aliases table with names corresponding to what the pvrusb2 driver uses. Signed-off-by: Laurent Pinchart Acked-By: Mike Isely Signed-off-by: Mauro Carvalho Chehab commit 99f7d81bd7c33a31cbd8c87757fa4faa8c6b1425 Author: Laurent Pinchart Date: Fri Sep 24 08:19:18 2010 -0300 [media] zoran: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, replace the hardcoded module name passed to those functions by NULL. All corresponding I2C modules have been checked, and all of them include a module aliases table with names corresponding to what the zoran driver uses. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 50fbc5a463d48525eca9b4cb78d7ad4818d39532 Author: Laurent Pinchart Date: Fri Sep 24 08:11:59 2010 -0300 [media] go7007: Don't use module names to load I2C modules With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, replace the hardcoded module name passed to those functions by NULL. All corresponding I2C modules have been checked, and all of them include a module aliases table with names corresponding to what the go7007 driver uses. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 0e32ee12fbe3fdef23c4a2c8bb135d309f67ebed Author: Laurent Pinchart Date: Fri Sep 24 08:10:06 2010 -0300 [media] go7007: Fix the TW2804 I2C type name The TW2804 I2C sub-device type name was incorrectly set to wis_twTW2804 for the adlink mpg24 board. Rename it to wis_tw2804. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 3946b4a5bbf87878efc98d403683c7c224326434 Author: Laurent Pinchart Date: Fri Sep 24 08:09:08 2010 -0300 [media] go7007: Add MODULE_DEVICE_TABLE to the go7007 I2C modules The device table is required to load modules based on modaliases. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 1532a07042289d420f040f3bd4370cc106860003 Author: Laurent Pinchart Date: Fri Sep 24 07:58:29 2010 -0300 [media] v4l: Remove hardcoded module names passed to v4l2_i2c_new_subdev* With the v4l2_i2c_new_subdev* functions now supporting loading modules based on modaliases, replace the hardcoded module name passed to those functions by NULL. All corresponding I2C modules have been checked, and all of them include a module aliases table with names corresponding to what the drivers modified here use. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 4f3a29dadaf999a273f1e7fe2476595d0283eef3 Merge: 06d3629 45aafd3 Author: Linus Torvalds Date: Fri Oct 22 16:34:23 2010 -0700 Merge branch 'linux-next' of git://git.infradead.org/ubi-2.6 * 'linux-next' of git://git.infradead.org/ubi-2.6: UBI: tighten the corrupted PEB criteria UBI: fix check_data_ff return code UBI: remember copy_flag while scanning UBI: preserve corrupted PEBs UBI: add truly corrupted PEBs to corrupted list UBI: introduce debugging helper function UBI: make check_pattern function non-static UBI: do not put eraseblocks to the corrupted list unnecessarily UBI: separate out corrupted list UBI: change cascade of ifs to switch statements UBI: rename a local variable UBI: handle bit-flips when no header found UBI: remove duplicate IO error codes UBI: rename IO error code UBI: fix small 80 characters limit style issue UBI: cleanup and simplify Kconfig commit e9f0495a25e37a3bc60c42fbfe3b31a47b91b7ad Author: Laurent Pinchart Date: Fri Sep 24 07:37:47 2010 -0300 [media] v4l: Load I2C modules based on modalias When creating a new sub-device, The V4L I2C subdev API has historically required drivers to pass the name of the module that implements support for the I2C device. I2C modules can be loaded based on modaliases instead of the module name. As the I2C device type name is already available to the v4l2_i2c_new_subdev* functions, make the module name argument optional and create a modalias based on the type name when no module name is provided. All in-tree drivers call those functions with a non-NULL module name argument, this change is thus harmless. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 06d362931a530e0d48c1a9554a752da4ed240f0b Merge: f5d9d24 6599fcb Author: Linus Torvalds Date: Fri Oct 22 16:34:03 2010 -0700 Merge branch 'linux-next' of git://git.infradead.org/ubifs-2.6 * 'linux-next' of git://git.infradead.org/ubifs-2.6: UBIFS: do not allocate unneeded scan buffer UBIFS: do not forget to cancel timers UBIFS: remove a bit of unneeded code UBIFS: add a commentary about log recovery UBIFS: avoid kernel error if ubifs superblock read fails UBIFS: introduce new flags for RO mounts UBIFS: introduce new flag for RO due to errors UBIFS: check return code of pnode_lookup UBIFS: check return code of ubifs_lpt_lookup UBIFS: improve error reporting when reading bad node UBIFS: introduce list sorting debugging checks UBIFS: fix assertion warnings in comparison function UBIFS: mark unused key objects as invalid UBIFS: do not write rubbish into truncation scanning node UBIFS: improve assertion in node comparison functions UBIFS: do not use key type in list_sort UBIFS: do not look up truncation nodes UBIFS: fix assertion warning UBIFS: do not treat ENOSPC specially UBIFS: switch to RO mode after synchronizing commit b8383962c388288b99bcaadcf8a87b049cd56d4a Author: Dan Carpenter Date: Thu Oct 21 16:22:14 2010 -0300 [media] cx231xx: fix double lock typo This was supposed to be an unlock on the error path. Signed-off-by: Dan Carpenter Acked-by: Devin Heitmueller Cc: Palash Bandyopadhyay < palash.bandyopadhyay@conexant.com> Cc: Sri Deevi Signed-off-by: Mauro Carvalho Chehab commit a84946895fa747a81c3b55a1398e03cdba4778d9 Author: Antti Palosaari Date: Sun Oct 17 18:25:10 2010 -0300 [media] anysee: switch to RC core Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 4ae871088a9ddead041c9e91e01435e4ed5dda08 Author: Antti Palosaari Date: Sun Oct 17 16:16:13 2010 -0300 [media] Anysee remote controller Anysee remote controller keytable. Uses NEC address 0x08. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 5401c2db1ee0adc89dfb5d4b1a6dc1f2efe38854 Author: Dan Carpenter Date: Thu Oct 21 16:21:45 2010 -0300 [media] cx88: uninitialized variable Fixes a gcc warning: drivers/media/video/cx88/cx88-video.c:772: warning: ‘core’ may be used uninitialized in this function Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab commit 8298f2f810b988dccfa0ab51cd874e107514c036 Author: Adrian Taylor Date: Wed Oct 20 07:55:33 2010 -0300 [media] Support for Elgato Video Capture This patch allows this device successfully to show video, at least from its composite input. I have no information about the true hardware contents of this device and so this patch is based solely on fiddling with things until it worked. The chip appears to be em2860, and the closest device with equivalent inputs is the Typhoon DVD Maker. Copying the settings for that device appears to do the trick. That's what this patch does. [mchehab@redhat.com: update CARDLIST.em28xx accordingly, via script] Signed-off-by: Adrian Taylor Reviewed-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 69194aba3d998af0a51efdf1bde9ce6642b8ab76 Author: Mauro Carvalho Chehab Date: Fri Oct 22 20:50:50 2010 -0200 [media] Documentation/video4linux/CARDLIST.[cx88|saa7134] Fix a few troubles at the card entries Signed-off-by: Mauro Carvalho Chehab commit 36e9d2605d430d94c60e4b449c737da1798de3b5 Author: Jarod Wilson Date: Fri Oct 22 16:49:35 2010 -0300 [media] mceusb: hook debug print spew directly into parser routine Provides more complete debug spew, parses individual commands and raw IR data one chunk at a time. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 4a8839187a613cbc34cf21f4f58ae5d5176ec26d Author: Jarod Wilson Date: Fri Oct 22 14:42:54 2010 -0300 [media] mceusb: add symbolic names for commands And replace usage of hex values w/symbolic names wherever possible Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 3459d4553b95084a6390e9b62687488538f33c57 Author: Mauro Carvalho Chehab Date: Fri Oct 22 11:52:53 2010 -0300 [media] mceusb: Allow a per-model device name It is better to use a per-model device name, especially on multi-function devices like Polaris. So, allow overriding the default name at the mceusb model table. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jarod Wilson commit 17c2b1fd71f75a50284a33af9bc0d98ed1cbcd30 Author: Mauro Carvalho Chehab Date: Fri Oct 22 11:51:50 2010 -0300 [media] mceusb: allow a per-model RC map Especially when used with Polaris boards, devices may have different types of remotes shipped. So, we need a per-model rc-map. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jarod Wilson commit 37dbd3a64ed6dd62ab5a49dbfcfae7e8ac0413a9 Author: Mauro Carvalho Chehab Date: Fri Oct 22 11:50:37 2010 -0300 [media] mceusb: add a per-model structure The previous logic needed duplicate USB table structs, one to store the list of the devices, and 3 sets of other structs, to store the quirks list. With this change, devices that require expecial quirks just need to have a .driver_info = . It also allows adding some extra quirks, like per-model RC tables. As a bonus, this patch reduced in 10% the data segment size: text data bss dec hex filename 15487 5008 4 20499 5013 old/mceusb.ko 15438 4496 4 19938 4de2 new/mceusb.ko Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jarod Wilson commit 39dc5c3adf65bf86115aeccd740993256e6a22d4 Author: Mauro Carvalho Chehab Date: Fri Oct 22 01:35:44 2010 -0300 [media] mceusb: improve ir data buffer parser Switch to a state machine that properly handles all incoming urb data packets, and reads much cleaner and corrects some minor parsing errors that were hindering decode on cx231xx/Polaris integrated IR. Also tested with four different mceusb variants, and works perfectly with all of them (at least for the rc6a mce remotes). Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jarod Wilson commit 4c8fa38198e58e9ccf5fca1d76792540eac047da Author: Jarod Wilson Date: Wed Oct 20 15:01:59 2010 -0300 [media] lirc_it87: add another pnp id Jochen Kühner reports lirc_it87 works with his hardware with this device ID. Tested-by: Jochen Kühner Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 966ea5b87c670439e80437d8c4c5d841fafe4a46 Author: Jarod Wilson Date: Tue Oct 19 14:26:01 2010 -0300 [media] lirc_igorplugusb: add Fit PC2 device ID Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit d653c0af49960631770962e30bb0aca67c4631a2 Author: Jarod Wilson Date: Tue Oct 19 14:25:29 2010 -0300 [media] lirc_igorplugusb: handle hw buffer overruns better Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 917167e9a34f7577086ccfcbf07f6fb96a209a31 Author: Jarod Wilson Date: Mon Oct 18 11:57:06 2010 -0300 [media] lirc_igorplugusb: assorted fixups Tighten up error checking, rename some functions to less generic names, remove unnecessary cruft, add missing debug modparam wiring, and fix up some printk output. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit a36e83c94ca9bfae8dae8a7ab98f18931f70612d Author: Jarod Wilson Date: Tue Oct 19 12:54:05 2010 -0300 [media] lirc_parallel: build on smp and kill dead code Talked to Christoph Bartelmus about this a bit, and he says this driver actually *should* work okay on CONFIG_SMP, the check was a legacy one from the very early days of SMP support before it had stabilized (yes, this driver is that ancient). Also remove some completely unused code, only noticed after building this driver for the first time in an eternity (on an SMP host now, of course). Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit c1cbb7029e81894c056680d61c64741bd2ff246f Author: Jarod Wilson Date: Mon Oct 18 18:39:20 2010 -0300 [media] lirc_dev: rework storage for cdev data Fixes an oops when an lirc driver that doesn't provide its own fops is unplugged while the lirc cdev is open. Tested with lirc_igorplugusb, with a special thanks to Timo Boettcher for providing the test hardware. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 09c8dd8de67cf781be95d809cd45af22f40c37df Author: Jarod Wilson Date: Mon Oct 18 17:30:20 2010 -0300 [media] lirc_dev: call cdev_del *after* irctl cleanup Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 715d29a74450696696dc064f85ba4ff0eaadb1d2 Author: Jarod Wilson Date: Mon Oct 18 12:02:01 2010 -0300 [media] lirc_dev: more error-checking improvements Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit d889a135cb832c77b7f90a89b40090e4e9ba609b Author: Jarod Wilson Date: Sat Oct 16 21:36:43 2010 -0300 [media] lirc_dev: get irctl from irctls by inode again Can't explain it (yet), but I've seen the 'get irctl via private_data' setup fail for a number of people (ioctl called before its filled in?), so lets go back to a variant of the old way, but one that still works with unlocked_ioctl. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 90dc4cfa2076cdc4df4c2f5dd3cadeefd9557c2c Author: Jarod Wilson Date: Sat Oct 16 21:32:44 2010 -0300 [media] lirc_dev: fix pointer to owner If an lirc device driver doesn't specify its own fops, we set set ir->cdev.owner to THIS_MODULE. If it does specify its own fops, we set ir->cdev.owner to ir->d.owner. Subsequent module_{get,put} calls should be using ir->cdev.owner, not ir->d.owner. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 578fcb8e5f3046493932105c404792a2fe0e066f Author: Jarod Wilson Date: Sat Oct 16 21:29:50 2010 -0300 [media] lirc_dev: sanitize function and struct names a bit Use names that clearly identify functions as lirc functions. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 4cce492b01599646421529b34deea9f61dec71de Author: Jarod Wilson Date: Wed Oct 20 16:26:09 2010 -0300 [media] dvb: remove obsolete lgdt3304 driver Signed-off-by: Mauro Carvalho Chehab commit d63be5f924cf054e7ac18bb2761f9533039fb076 Author: Ming Lei Date: Fri Oct 22 23:48:14 2010 +0200 PM / Runtime: fix recursive locking warning of lockdep from rpm_resume() For device with no_callbacks flag set, its power lock and its parent's power lock may be held nestedly in rpm_resume, so we should take spin_lock_nested(lock, SINGLE_DEPTH_NESTING) to acquire parent power lock to avoid lockdep warning. Signed-off-by: Ming Lei Acked-by: Alan Stern Signed-off-by: Rafael J. Wysocki commit 495363d380b4f4745bd8677912688654afc44020 Author: Jason Wessel Date: Fri May 21 08:46:00 2010 -0500 kdb,debug_core: adjust master cpu switch logic against new debug_core locking The kdb shell needs to enforce switching back to the original CPU that took the exception before restoring normal kernel execution. Resuming from a different CPU than what took the original exception will cause problems with spin locks that are freed from the a different processor than had taken the lock. The special logic in dbg_cpu_switch() can go away entirely with because the state of what cpus want to be masters or slaves will remain unchanged between entry and exit of the debug_core exception context. Signed-off-by: Jason Wessel commit dfee3a7b92208b30f77876068aece9ea571270c2 Author: Jason Wessel Date: Fri May 21 08:46:00 2010 -0500 debug_core: refactor locking for master/slave cpus For quite some time there have been problems with memory barriers and various races with NMI on multi processor systems using the kernel debugger. The algorithm for entering the kernel debug core and resuming kernel execution was racy and had several known edge case problems with attempting to debug something on a heavily loaded system using breakpoints that are hit repeatedly and quickly. The prior "locking" design entry worked as follows: * The atomic counter kgdb_active was used with atomic exchange in order to elect a master cpu out of all the cpus that may have taken a debug exception. * The master cpu increments all elements of passive_cpu_wait[]. * The master cpu issues the round up cpus message. * Each "slave cpu" that enters the debug core increments its own element in cpu_in_kgdb[]. * Each "slave cpu" spins on passive_cpu_wait[] until it becomes 0. * The master cpu debugs the system. The new scheme removes the two arrays of atomic counters and replaces them with 2 single counters. One counter is used to count the number of cpus waiting to become a master cpu (because one or more hit an exception). The second counter is use to indicate how many cpus have entered as slave cpus. The new entry logic works as follows: * One or more cpus enters via kgdb_handle_exception() and increments the masters_in_kgdb. Each cpu attempts to get the spin lock called dbg_master_lock. * The master cpu sets kgdb_active to the current cpu. * The master cpu takes the spinlock dbg_slave_lock. * The master cpu asks to round up all the other cpus. * Each slave cpu that is not already in kgdb_handle_exception() will enter and increment slaves_in_kgdb. Each slave will now spin try_locking on dbg_slave_lock. * The master cpu waits for the sum of masters_in_kgdb and slaves_in_kgdb to be equal to the sum of the online cpus. * The master cpu debugs the system. In the new design the kgdb_active can only be changed while holding dbg_master_lock. Stress testing has not turned up any further entry/exit races that existed in the prior locking design. The prior locking design suffered from atomic variables not being truly atomic (in the capacity as used by kgdb) along with memory barrier races. Signed-off-by: Jason Wessel Acked-by: Dongdong Deng commit 39a0715f5ace92268190c89e246fd1cf741dbaea Author: Dongdong Deng Date: Mon Sep 13 06:58:00 2010 -0500 x86,kgdb: remove unnecessary call to kgdb_correct_hw_break() The kernel debug_core invokes hw breakpoint install and removal via call backs. The architecture specific kgdb stubs only need to implement the call backs and not actually call the functions. Signed-off-by: Dongdong Deng Signed-off-by: Jason Wessel CC: x86@kernel.org CC: Thomas Gleixner CC: Ingo Molnar CC: H. Peter Anvin commit c1bb9a9c1911036549c5cdfb23f32d7d20ffdc5a Author: Dongdong Deng Date: Mon Sep 13 06:58:00 2010 -0500 debug_core: disable hw_breakpoints on all cores in kgdb_cpu_enter() The slave cpus do not have the hw breakpoints disabled upon entry to the debug_core and as a result could cause unrecoverable recursive faults on badly placed breakpoints, or get out of sync with the arch specific hw breakpoint operations. This patch addresses the problem by invoking kgdb_disable_hw_debug() earlier in kgdb_enter_cpu for each cpu that enters the debug core. The hw breakpoint dis/enable flow should be: master_debug_cpu slave_debug_cpu \ / kgdb_cpu_enter | kgdb_disable_hw_debug --> uninstall pre-enabled hw_breakpoint | do add/rm dis/enable operates to hw_breakpoints on master_debug_cpu.. | correct_hw_break --> correct/install the enabled hw_breakpoint | leave_kgdb Signed-off-by: Dongdong Deng Signed-off-by: Jason Wessel commit 91b152aa85bbcf076e269565394c31964f940371 Author: Jason Wessel Date: Mon Aug 23 09:20:14 2010 -0500 kdb,kgdb: fix sparse fixups Fix the following sparse warnings: kdb_main.c:328:5: warning: symbol 'kdbgetu64arg' was not declared. Should it be static? kgdboc.c:246:12: warning: symbol 'kgdboc_early_init' was not declared. Should it be static? kgdb.c:652:26: warning: incorrect type in argument 1 (different address spaces) kgdb.c:652:26: expected void const *ptr kgdb.c:652:26: got struct perf_event *[noderef] *pev The one in kgdb.c required the (void * __force) because of the return code from register_wide_hw_breakpoint looking like: return (void __percpu __force *)ERR_PTR(err); Signed-off-by: Jason Wessel commit 75d14edee5689716b55afe467acfc13206a31f95 Author: Jason Wessel Date: Mon Oct 11 10:20:14 2010 -0500 kdb: Fix oops in kdb_unregister Nothing should try to use kdb_commands directly as sometimes it is null. Instead, use the for_each_kdbcmd() iterator. This particular problem dates back to the initial kdb merge (2.6.35), but at that point nothing was dynamically unregistering commands from the kdb shell. Signed-off-by: Jason Wessel commit e3bda3ac33d3bf3e5a4049e2cabe82d3caaffc26 Author: Jason Wessel Date: Mon Oct 11 10:20:14 2010 -0500 kdb,ftdump: Remove reference to internal kdb include Now that include/linux/kdb.h properly exports all the functions required to dynamically add a kdb shell command, the reference to the private kdb header can be removed. Signed-off-by: Jason Wessel commit f7030bbc446430ecd12c9ad02cf0ea94934e5f91 Author: Jason Wessel Date: Mon Oct 11 10:20:14 2010 -0500 kdb: Allow kernel loadable modules to add kdb shell functions In order to allow kernel modules to dynamically add a command to the kdb shell the kdb_register, kdb_register_repeat, kdb_unregister, and kdb_printf need to be exported as GPL symbols. Any kernel module that adds a dynamic kdb shell function should only need to include linux/kdb.h. Signed-off-by: Jason Wessel commit fb70b5888b70b0b50f738fbfc019445493112eb1 Author: Jason Wessel Date: Fri Aug 13 12:44:04 2010 -0500 debug_core: stop rcu warnings on kernel resume When returning from the kernel debugger reset the rcu jiffies_stall value to prevent the rcu stall detector from sending NMI events which invoke a stack dump for each cpu in the system. Signed-off-by: Jason Wessel commit 16cdc628c3aed47d02205135b7e2f01e0064f566 Author: Jason Wessel Date: Fri Aug 6 11:47:14 2010 -0500 debug_core: move all watch dog syncs to a single function Move the various clock and watch dog syncs to a single function in advance of adding another sync for the rcu stall detector. Signed-off-by: Jason Wessel commit fad99fac2627e2cc0ebfe07fcb5046c0b4e103f9 Author: Jason Wessel Date: Wed Oct 20 08:20:00 2010 -0500 x86,kgdb: fix debugger hw breakpoint test regression in 2.6.35 HW breakpoints events stopped working correctly with kgdb as a result of commit: 018cbffe6819f6f8db20a0a3acd9bab9bfd667e4 (Merge commit 'v2.6.33' into perf/core), later commit: ba773f7c510c0b252145933926c636c439889207 (x86,kgdb: Fix hw breakpoint regression) allowed breakpoints to propagate to the debugger core but did not completely address the original regression in functionality found in 2.6.35. When the DR_STEP flag is set in dr6 along with any of the DR_TRAP bits, the kgdb exception handler will enter once from the hw_breakpoint API call back and again from the die notifier for do_debug(), which causes the debugger to stop twice and also for the kgdb regression tests to fail running under kvm with: echo V2I1 > /sys/module/kgdbts/parameters/kgdbts To address the problem, the kgdb overflow handler needs to implement the same logic as the ptrace overflow handler call back with respect to updating the virtual copy of dr6. This will allow the kgdb do_debug() die notifier to properly handle the exception and the attached debugger, or kgdb test suite, will only receive a single notification. Signed-off-by: Jason Wessel CC: Frederic Weisbecker CC: x86@kernel.org commit b9ac41e314f0b43641bc01bd553fd2e0458ed832 Author: Mike Frysinger Date: Fri Oct 22 05:11:08 2010 +0000 Blackfin: bfin_spi.h: add MMR peripheral layout Signed-off-by: Mike Frysinger commit fec84d21c52bca67949a17aaf7d410b497f8e1b0 Author: Mike Frysinger Date: Fri Oct 22 04:41:13 2010 +0000 Blackfin: bfin_ppi.h: start a common PPI/EPPI header Start unifying the PPI/EPPI peripheral structures in one place. This may be used by camera/video/fpga/high speed devices. Signed-off-by: Mike Frysinger commit faf3d9ed2b9b402aa2c3d11688c6a1ff80ea6ea4 Author: Mike Frysinger Date: Fri Oct 22 03:11:42 2010 +0000 Blackfin: bfin_can.h: add missing VERSION/VERSION2 MMRs Also document the mailbox (channel) data array layout. Signed-off-by: Mike Frysinger commit 5d868212c411b0e3d11006f58688b31ee2180d8c Author: Mike Frysinger Date: Wed Oct 20 18:48:47 2010 +0000 Blackfin: bf538: add missing SIC_RVECT define Signed-off-by: Mike Frysinger commit 39c999697bf43a97b877fa43cbc9c2a4d1a3a461 Author: Mike Frysinger Date: Tue Oct 19 18:44:23 2010 +0000 Blackfin: bf561: rewrite SICA_xxx to just SIC_xxx This matches all the other Blackfin ports and keep us from having to write bf561-specific code in many places. Signed-off-by: Mike Frysinger commit 9ebcaa47ba831b6ad5cc414b3c3ff310a9d5d582 Author: Mike Frysinger Date: Tue Oct 19 17:57:54 2010 +0000 Blackfin: bf54x: add missing SIC_RVECT definition Signed-off-by: Mike Frysinger commit 49e00edbb77b44574a235032774b15656faa7cec Author: Mike Frysinger Date: Sun Oct 17 04:59:16 2010 -0400 Blackfin: H8606: move 8250 irqflags to platform resources Now that the common 8250 serial driver supports an "irqflags" field, we don't need to patch in a custom define into the code. Signed-off-by: Mike Frysinger commit 56b4f07a08ac4188ba055d194a105a7bd833cea3 Author: Mike Frysinger Date: Sat Oct 16 19:46:21 2010 -0400 Blackfin: glue XIP/ROM kernel kconfigs Different arches use different names, so make sure we define both so common code (like MTD_XIP) "just works". Signed-off-by: Mike Frysinger commit 245322082a802aced61ee474efb8dfab2656740e Author: Mike Frysinger Date: Sat Oct 9 13:32:52 2010 +0000 Blackfin: update sparse flags for latest upstream changes Mainline version of git merged support for Blackfin parts, but we now need to propagate the gcc arch define to make it work. Signed-off-by: Mike Frysinger commit 7696eecf14a81074dc930d5d6ad62957fef86c49 Author: Mike Frysinger Date: Wed Oct 6 06:33:08 2010 +0000 Blackfin: coreb: update ioctl numbers We have to use ioctl numbers that don't collide with common code. Otherwise, these ones never even get called because the common fs code swalled all invocations. Reported-by: Kay Duenzer Signed-off-by: Mike Frysinger commit 6cf4d0fadc2fec864634b2b614ff625a59a45db7 Author: Mike Frysinger Date: Wed Oct 6 06:30:04 2010 +0000 Blackfin: coreb: add gpl module license Signed-off-by: Mike Frysinger commit 97dd505cd617628049f9779a4cfbc97e2962947f Author: Bob Liu Date: Wed Sep 29 08:30:12 2010 +0000 Blackfin: bf518-ezkit: add ssm2603 codec resources This board has a SSM2603 codec, so make sure we have the right resources declared for it. Signed-off-by: Bob Liu Signed-off-by: Mike Frysinger commit c5b77b450a067cd09031caaee72b671810a0fd25 Author: Bob Liu Date: Wed Sep 29 03:12:44 2010 +0000 Blackfin: bf51x/bf52x: fix 16/32bit SPORT MMR helpers The RX/TX address is always the same regardless of the size of the access. That means there is no dedicated "16bit" or "32bit" MMR. Trying to use these currently leads to compile errors. So change everything to use the right MMR define. Signed-off-by: Bob Liu Signed-off-by: Mike Frysinger commit e5c1721894415d00a55c2650ed6536b644799c50 Author: Ashish Gupta Date: Wed Sep 22 08:11:56 2010 +0000 Blackfin: tll6527m: new board port Signed-off-by: Ashish Gupta Signed-off-by: Mike Frysinger commit 0e058e527784a9a23f7ed7a73ffafebb53a889da Author: Stefano Stabellini Date: Thu Oct 21 17:40:08 2010 +0100 xen: add a missing #include to arch/x86/pci/xen.c Add missing #include to arch/x86/pci/xen.c. Signed-off-by: Stefano Stabellini commit ff12849a7a187e17fcbd888b39850d22103395c6 Author: Stefano Stabellini Date: Tue Sep 28 16:45:51 2010 +0100 xen: mask the MTRR feature from the cpuid We don't want Linux to think that the cpu supports MTRRs when running under Xen because MTRR operations could only be performed through hypercalls. Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 4fe7d5a708a955b35e3fdc4dea3e0b7a6ae2eb06 Author: Jeremy Fitzhardinge Date: Thu Sep 2 16:17:06 2010 +0100 xen: make hvc_xen console work for dom0. Use the console hypercalls for dom0 console. [ Impact: Add Xen dom0 console ] Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Juan Quintela Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 4ec5387cc36c6472a2ff2c82e9865abe8cab96c2 Author: Juan Quintela Date: Thu Sep 2 15:45:43 2010 +0100 xen: add the direct mapping area for ISA bus access add the direct mapping area for ISA bus access when running as initial domain Signed-off-by: Juan Quintela Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit b37a56d6f3c0595d8d65ddd5b7610d11735c4978 Author: Juan Quintela Date: Thu Sep 2 14:53:56 2010 +0100 xen: Initialize xenbus for dom0. Do initial xenbus/xenstore setup in dom0. In dom0 we need to actually allocate the xenstore resources, rather than being given them from outside. [ Impact: initialize Xenbus ] Signed-off-by: Juan Quintela Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 801fd14a725ef7757d33f07b83415cdd2165e50a Author: Stefano Stabellini Date: Thu Sep 23 12:06:25 2010 +0100 xen: use vcpu_ops to setup cpu masks Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 98511f3532eb7fce274f37d94f29790922799e15 Author: Jeremy Fitzhardinge Date: Fri Sep 3 14:55:16 2010 +0100 xen: map a dummy page for local apic and ioapic in xen_set_fixmap Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit f731e3ef02b4744f4d7ca2f63539b900e47db31f Author: Qing He Date: Mon Oct 11 15:30:09 2010 +0100 xen: remap MSIs into pirqs when running as initial domain Implement xen_create_msi_irq to create an msi and remap it as pirq. Use xen_create_msi_irq to implement an initial domain specific version of setup_msi_irqs. Signed-off-by: Qing He Signed-off-by: Yunhong Jiang Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 38aa66fcb79e0a46c24bba96b6f2b851a6ec2037 Author: Jeremy Fitzhardinge Date: Thu Sep 2 14:51:39 2010 +0100 xen: remap GSIs as pirqs when running as initial domain Implement xen_register_gsi to setup the correct triggering and polarity properties of a gsi. Implement xen_register_pirq to register a particular gsi as pirq and receive interrupts as events. Call xen_setup_pirqs to register all the legacy ISA irqs as pirqs. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 6b0661a5e6fbfb159b78a39c0476905aa9b575fe Author: Stefano Stabellini Date: Thu Sep 2 15:47:32 2010 +0100 xen: introduce XEN_DOM0 as a silent option Add XEN_DOM0 to arch/x86/xen/Kconfig as a silent compile time option that gets enabled when xen and basic x86, acpi and pci support are selected. Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 809f9267bbaba7765cdb86a47f2e6e4bf4951b69 Author: Stefano Stabellini Date: Thu Jul 1 17:10:39 2010 +0100 xen: map MSIs into pirqs Map MSIs into pirqs, writing 0 in the MSI vector data field and the pirq number in the MSI destination id field. Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 3942b740e5183caad47a4a3fcb37a4509ce7af83 Author: Stefano Stabellini Date: Thu Jun 24 17:50:18 2010 +0100 xen: support GSI -> pirq remapping in PV on HVM guests Disable pcifront when running on HVM: it is meant to be used with pv guests that don't have PCI bus. Use acpi_register_gsi_xen_hvm to remap GSIs into pirqs. Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 90f6881e6430ea7b38b9e0f9837719b1935616e0 Author: Jeremy Fitzhardinge Date: Thu Jun 24 17:05:41 2010 +0100 xen: add xen hvm acpi_register_gsi variant Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Rafael J. Wysocki commit 2f065aef17b8d50a51a72451d03c7d7304249fb5 Author: Jeremy Fitzhardinge Date: Thu Jun 24 16:59:16 2010 +0100 acpi: use indirect call to register gsi in different modes Rather than using a tree of conditionals, use function pointer for acpi_register_gsi. Signed-off-by: Jeremy Fitzhardinge Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Rafael J. Wysocki commit 42a1de56f35a9c87932f45439dc1b09c8da0cc95 Author: Stefano Stabellini Date: Thu Jun 24 16:42:04 2010 +0100 xen: implement xen_hvm_register_pirq xen_hvm_register_pirq allows the kernel to map a GSI into a Xen pirq and receive the interrupt as an event channel from that point on. Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 01557baff6e9c371d4c96e01089dca32cf347500 Author: Stefano Stabellini Date: Fri Aug 20 14:46:52 2010 +0100 xen: get the maximum number of pirqs from xen Use PHYSDEVOP_get_nr_pirqs to get the maximum number of pirqs from xen. Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 7a043f119c0e4b460306f868d9638ac55c6afa6f Author: Stefano Stabellini Date: Thu Jul 1 17:08:14 2010 +0100 xen: support pirq != irq PHYSDEVOP_map_pirq might return a pirq different from what we asked if we are running as an HVM guest, so we need to be able to support pirqs that are different from linux irqs. Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 67ba37293e938208795d6a3562201bdb0cf43393 Merge: cd07202 5bba6c5 Author: Stefano Stabellini Date: Fri Oct 22 21:24:06 2010 +0100 Merge commit 'konrad/stable/xen-pcifront-0.8.2' into 2.6.36-rc8-initial-domain-v6 commit 18016e35d448d35739f8640b51476709c07e95db Author: Stanley.Miao Date: Fri Sep 3 05:03:48 2010 +0200 OMAP: DSS2: don't power off a panel twice If we blank the panel by echo 1 > /sys/devices/platform/omapfb/graphics/fb0/blank Then, we reboot the sytem, the kernel will crash at drivers/video/omap2/dss/core.c:323 This is because the panel is closed twice. Now check the state of a dssdev to forbid a panel is power on or power off twice. Signed-off-by: Stanley.Miao Signed-off-by: Tomi Valkeinen commit 41814cfc01b059df33011d929837558c22f3c0e0 Author: Senthilvadivu Guruswamy Date: Fri Oct 8 08:44:33 2010 +0200 OMAP: DSS2: OMAPFB: Allow usage of def_vrfb only for omap2,3 VRFB is supported only on OMAP2 and OMAP3 platforms. If VRFB rotation is not supported by the hardware and the user requests VRFB rotation, print a warning and ignore the request from the user. Signed-off-by: Senthilvadivu Guruswamy Signed-off-by: Tomi Valkeinen commit 908482fd833016a365e20c26ea28ceeb00743e64 Author: Senthilvadivu Guruswamy Date: Fri Oct 8 08:44:32 2010 +0200 OMAP: DSS2: OMAPFB: make VRFB depends on OMAP2,3 config VRFB should depend on ARCH_OMAP2 or ARCH_OMAP3. Signed-off-by: Senthilvadivu Guruswamy Signed-off-by: Tomi Valkeinen commit 27eb42e924d75e6a85257d431ce7b6e84d5255ef Author: Senthilvadivu Guruswamy Date: Fri Oct 8 08:44:31 2010 +0200 OMAP: DSS2: OMAPFB: Allow FB_OMAP2 to build without VRFB FB_OMAP2 can work without VRFB, but currently does not build. Fix this. Signed-off-by: Senthilvadivu Guruswamy Signed-off-by: Tomi Valkeinen commit e1a75a1aa11a4f48668ef295368ae1b65bd960c7 Author: Nicolas Kaiser Date: Tue Oct 5 20:31:54 2010 +0200 arm/omap: simplify conditional Simplify conditional: (a || (!a && !b)) => (a || !b) Signed-off-by: Nicolas Kaiser Signed-off-by: Tomi Valkeinen commit e66345297d9ab3566eff0503d79eedda3c652428 Author: Senthilvadivu Guruswamy Date: Thu Oct 7 13:28:04 2010 +0200 OMAP: DSS2: DSI: Remove extra iounmap in error path iounmap is already done in label err2: so extra iounmap in the error handling path could be removed. Signed-off-by: Senthilvadivu Guruswamy Signed-off-by: Tomi Valkeinen commit a0acb5574b01f1a82dc5d863b4d89d84397aeafa Author: Archit Taneja Date: Wed Sep 15 19:20:00 2010 +0530 OMAP: DSS2: Use dss_features framework on DSS2 code Calls init functions of dss_features during dss_probe, and the following features are made omapxxxx independent: - number of managers, overlays - supported color modes for each overlay - supported displays for each manager - global aplha, and restriction of global alpha for video1 pipeline - The register field ranges : FIRHINC, FIRVINC, FIFOHIGHTHRESHOLD FIFOLOWTHRESHOLD and FIFOSIZE Signed-off-by: Archit Taneja Signed-off-by: Tomi Valkeinen commit e1ef4d236f11ef0cb674deead822d029f1bb2745 Author: Archit Taneja Date: Wed Sep 15 18:47:29 2010 +0530 OMAP: DSS2: Introduce dss_features files Add dss_features.c and dss_features.h for the dss_features framework. This framework will be used to move all cpu_is_xxx() and similar calls to a single place. Signed-off-by: Archit Taneja Signed-off-by: Tomi Valkeinen commit 2308bfb8acbdab6883e5dd5bb1f4fe60ca5faefa Author: Nicolas Kaiser Date: Mon Oct 4 20:38:42 2010 +0200 video/omap: remove mux.h include Including mux.h should no longer be needed for omap2/3/4 SoCs outside arch/arm/mach-omap2 files. Signed-off-by: Nicolas Kaiser Acked-by: Tony Lindgren Signed-off-by: Tomi Valkeinen commit 9dbb7a5da96ed864f8b92297258ba73c6325d755 Author: Uwe Kleine-König Date: Thu Sep 2 10:03:40 2010 +0200 ARM: omap/fb: move get_fbmem_region() to .init.text get_fbmem_region() is only called by omapfb_reserve_sdram_memblock() and omapfb_reserve_sram() that both live in .init.text. So get_fbmem_region can go there, too. Signed-off-by: Uwe Kleine-König Signed-off-by: Tomi Valkeinen commit e92840b704a2be44599e36f84ad3ae5d68363a21 Author: Uwe Kleine-König Date: Thu Sep 2 10:03:39 2010 +0200 ARM: omap/fb: move omapfb_reserve_sram to .init.text This function is only called by omap_detect_sram which lives in .init.text, too. Signed-off-by: Uwe Kleine-König Signed-off-by: Tomi Valkeinen commit 375c324b7eff9218e14a63fdbfa36182f57ad37d Author: Uwe Kleine-König Date: Thu Sep 2 10:03:38 2010 +0200 ARM: omap/fb: move omap_init_fb to .init.text omap_init_fb() is only called as arch_initcall and so can live in .init.text. Signed-off-by: Uwe Kleine-König Signed-off-by: Tomi Valkeinen commit 87ba8288670c53f66ce41d8ce292c64674de821e Author: Tasslehoff Kjappfot Date: Wed Sep 8 12:46:14 2010 +0200 OMAP: DSS2: OMAPFB: swap front and back porches for both hsync and vsync Framebuffer's left and right margins are relative to the active pixel area. Front and back porches are relative to the sync area. Left margin was wrongly assigned to front porch (and right to back), this patch fixes it. Signed-off-by: tasskjapp@gmail.com Reviewed-by: Russ.Dill@gmail.com Signed-off-by: Tomi Valkeinen commit 9e9a5fcb04e3af077d1be32710298b852210d93f Author: Ian Campbell Date: Thu Sep 2 16:16:00 2010 +0100 xen: use host E820 map for dom0 When running as initial domain, get the real physical memory map from xen using the XENMEM_machine_memory_map hypercall and use it to setup the e820 regions. Signed-off-by: Ian Campbell Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk commit 375b2a9ada6d105483aab22f1af1d727bc3c418d Author: Ian Campbell Date: Thu Oct 21 11:00:46 2010 +0100 xen: correctly rebuild mfn list list after migration. Otherwise the second migration attempt fails because the mfn_list_list still refers to all the old mfns. We need to update the entires in both p2m_top_mfn and the mid_mfn pages which p2m_top_mfn refers to. In order to do this we need to keep track of the virtual addresses mapping the p2m_mid_mfn pages since we cannot rely on mfn_to_virt(p2m_top_mfn[idx]) since p2m_top_mfn[idx] will still contain the old MFN after a migration, which may now belong to another domain and hence have a different mapping in the m2p. Therefore add and maintain a third top level page, p2m_top_mfn_p[], which tracks the virtual addresses of the mfns contained in p2m_top_mfn[]. We also need to update the content of the p2m_mid_missing_mfn page on resume to refer to the page's new mfn. p2m_missing does not need updating since the migration process takes care of the leaf p2m pages for us. Signed-off-by: Ian Campbell Signed-off-by: Jeremy Fitzhardinge commit cb52e6d9ed9bb9cf74f8396a603ecf12b64c1ec1 Author: Ian Campbell Date: Fri Oct 15 11:52:46 2010 +0100 xen: improvements to VIRQ_DEBUG output * Fix bitmask formatting on 64 bit by specifying correct field widths. * Output both global and local masked and pending information. * Indicate in list of pending interrupts whether they are pending in the L2, masked globally and/or masked locally. Signed-off-by: Ian Campbell Signed-off-by: Jeremy Fitzhardinge commit a52521f149c42b35a28423ee30be9a7afa51dfbf Author: Jeremy Fitzhardinge Date: Wed Sep 22 15:28:52 2010 -0700 xen: set up IRQ before binding virq to evtchn Make sure the irq is set up before binding a virq event channel to it. Signed-off-by: Jeremy Fitzhardinge commit b0097adeec27e30223c989561ab0f7aa60d1fe93 Author: Ian Campbell Date: Fri Oct 8 16:59:12 2010 +0100 xen: ensure that all event channels start off bound to VCPU 0 All event channels startbound to VCPU 0 so ensure that cpu_evtchn_mask is initialised to reflect this. Otherwise there is a race after registering an event channel but before the affinity is explicitly set where the event channel can be delivered. If this happens then the event channel remains pending in the L1 (evtchn_pending) array but is cleared in L2 (evtchn_pending_sel), this means the event channel cannot be reraised until another event channel happens to trigger the same L2 entry on that VCPU. sizeof(cpu_evtchn_mask(0))==sizeof(unsigned long*) which is not correct, and causes only the first 32 or 64 event channels (depending on architecture) to be initially bound to VCPU0. Use sizeof(struct cpu_evtchn_s) instead. Signed-off-by: Ian Campbell Cc: Jeremy Fitzhardinge Cc: stable@kernel.org commit 403a85ff001710bb92689790b9a5c1c80e4b37a6 Author: Jeremy Fitzhardinge Date: Thu Oct 14 11:38:47 2010 -0700 xen/hvc: only notify if we actually sent something Don't spam dom0/xenconsoled with events unless we've actually added something to the ring. Signed-off-by: Jeremy Fitzhardinge commit 3654581e47adc07072aebe239818485b68ea04f0 Author: Jeremy Fitzhardinge Date: Wed Sep 29 16:54:33 2010 -0700 xen: don't add extra_pages for RAM after mem_end If an E820 region is entirely beyond mem_end, don't attempt to truncate it and add the truncated pages to extra_pages, as they will be negative. Also, make sure the extra memory region starts after all BIOS provided E820 regions (and in the case of RAM regions, post-clipping). Signed-off-by: Jeremy Fitzhardinge commit 41f2e4771a4f1ba26c35438daf32917b9ef7858d Author: Jeremy Fitzhardinge Date: Tue Mar 30 11:47:40 2010 -0700 xen: add support for PAT Convert Linux PAT entries into Xen ones when constructing ptes. Linux doesn't use _PAGE_PAT for ptes, so the only difference in the first 4 entries is that Linux uses _PAGE_PWT for WC, whereas Xen (and default) use it for WT. xen_pte_val does the inverse conversion. We hard-code assumptions about Linux's current PAT layout, but a warning on the wrmsr to MSR_IA32_CR_PAT should point out any problems. If necessary we could go to a more general table-based conversion between Linux and Xen PAT entries. hugetlbfs poses a problem at the moment, the x86 architecture uses the same flag for _PAGE_PAT and _PAGE_PSE, which changes meaning depending on which pagetable level we're using. At the moment this should be OK so long as nobody tries to do a pte_val on a hugetlbfs pte. Signed-off-by: Jeremy Fitzhardinge commit 2f7acb208523a3bf5f1830f01c29f7feda045169 Author: Jeremy Fitzhardinge Date: Wed Sep 15 13:32:49 2010 -0700 xen: make sure xen_max_p2m_pfn is up to date Keep xen_max_p2m_pfn up to date with the end of the extra memory we're adding. It is possible that it will be too high since memory may be truncated by a "mem=" option on the kernel command line, but that won't matter. Signed-off-by: Jeremy Fitzhardinge commit 698bb8d14a5b577b6841acaccdf5095d3b7c7389 Author: Jeremy Fitzhardinge Date: Tue Sep 14 10:19:14 2010 -0700 xen: limit extra memory to a certain ratio of base If extra memory is very much larger than the base memory size then all of the base memory can be filled with structures reserved to describe the extra memory, leaving no space for anything else. Even at the maximum ratio there will be little space for anything else, but this change is intended to at least allow the system to boot rather than crash mysteriously. Signed-off-by: Jeremy Fitzhardinge commit b5b43ced7a6e79d30df3232b37dc82c5d8dfa843 Author: Jeremy Fitzhardinge Date: Thu Sep 2 17:10:12 2010 -0700 xen: add extra pages for E820 RAM regions, even if beyond mem_end If an entire E820 RAM region is beyond mem_end, still add its pages to the extra area so that space can be used by the kernel. Signed-off-by: Jeremy Fitzhardinge commit 36bc251b87f88147e9d8346e4b431f42353c3d38 Author: Jeremy Fitzhardinge Date: Thu Sep 2 17:07:03 2010 -0700 xen: make sure xen_extra_mem_start is beyond all non-RAM e820 If Xen gives us non-RAM E820 entries (dom0 only, typically), then make sure the extra RAM region is beyond them. It's OK for the extra space to grow into E820 regions, however. Signed-off-by: Jeremy Fitzhardinge commit 42ee1471e9b879479a15debac752314a596c738e Author: Jeremy Fitzhardinge Date: Mon Aug 30 16:41:02 2010 -0700 xen: implement "extra" memory to reserve space for pages not present at boot When using the e820 map to get the initial pseudo-physical address space, look for either Xen-provided memory which doesn't lie within an E820 region, or an E820 RAM region which extends beyond the Xen-provided memory range. Count these pages, and add them to a new "extra memory" range. This range has an E820 RAM range to describe it - so the kernel will allocate page structures for it - but it is also marked reserved so that the kernel will not attempt to use it. The balloon driver can then add this range as a set of currently ballooned-out pages, which can be used to extend the domain beyond its original size. Signed-off-by: Jeremy Fitzhardinge commit 35ae11fd146384d222f3bb1f17eed1970cc92c36 Author: Ian Campbell Date: Fri Feb 6 19:09:48 2009 -0800 xen: Use host-provided E820 map Rather than simply using a flat memory map from Xen, use its provided E820 map. This allows the domain builder to tell the domain to reserve space for more pages than those initially provided at domain-build time. It also allows the host to specify holes in the address space (for PCI-passthrough, for example). Signed-off-by: Ian Campbell Signed-off-by: Jeremy Fitzhardinge commit cfd8951e082a589637f9de3c33efd3218fdb3c03 Author: Jeremy Fitzhardinge Date: Tue Aug 31 14:06:22 2010 -0700 xen: don't map missing memory When setting up a pte for a missing pfn (no matching mfn), just create an empty pte rather than a junk mapping. Signed-off-by: Jeremy Fitzhardinge commit 33a847502b0338351cebd8fc0c68ac796cfadbbd Author: Jeremy Fitzhardinge Date: Fri Aug 27 15:18:19 2010 -0700 xen: defer building p2m mfn structures until kernel is mapped When building mfn parts of p2m structure, we rely on being able to use mfn_to_virt, which in turn requires kernel to be mapped into the linear area (which is distinct from the kernel image mapping on 64-bit). Defer calling xen_build_mfn_list_list() until after xen_setup_kernel_pagetable(); Signed-off-by: Jeremy Fitzhardinge commit c3798062f100c3e1d4ae1241bc536f3b1f28a6ca Author: Jeremy Fitzhardinge Date: Fri Aug 27 13:42:04 2010 -0700 xen: add return value to set_phys_to_machine() set_phys_to_machine() can return false on failure, which means a memory allocation failure for the p2m structure. It can only fail if setting the mfn for a pfn in previously unused address space. It is guaranteed to succeed if you're setting a mapping to INVALID_P2M_ENTRY or updating the mfn for an existing pfn. Signed-off-by: Jeremy Fitzhardinge commit 58e05027b530ff081ecea68e38de8d59db8f87e0 Author: Jeremy Fitzhardinge Date: Fri Aug 27 13:28:48 2010 -0700 xen: convert p2m to a 3 level tree Make the p2m structure a 3 level tree which covers the full possible physical space. The p2m structure contains mappings from the domain's pfns to system-wide mfns. The structure has 3 levels and two roots. The first root is for the domain's own use, and is linked with virtual addresses. The second is all mfn references, and is used by Xen on save/restore to allow it to update the p2m mapping for the domain. At boot, the domain builder provides a simple flat p2m array for all the initially present pages. We construct the two levels above that using the early_brk allocator. After early boot time, set_phys_to_machine() will allocate any missing levels using the normal kernel allocator (at GFP_KERNEL, so it must be called in a normal blocking context). Because the early_brk() API requires us to pre-reserve the maximum amount of memory we could allocate, there is still a CONFIG_XEN_MAX_DOMAIN_MEMORY config option, but its only negative side-effect is to increase the kernel's apparent bss size. However, since all unused brk memory is returned to the heap, there's no real downside to making it large. Signed-off-by: Jeremy Fitzhardinge commit bbbf61eff92c7c236f57ee1953ad84055443717e Author: Jeremy Fitzhardinge Date: Thu Aug 26 17:12:17 2010 -0700 xen: make install_p2mtop_page() static Signed-off-by: Jeremy Fitzhardinge commit 1f2d9dd309feb08fdbc711fa03841650dfff87d8 Author: Jeremy Fitzhardinge Date: Thu Aug 26 17:11:35 2010 -0700 xen: set the actual extent of the mfn_list_list Signed-off-by: Jeremy Fitzhardinge commit b7eb4ad39134ee5b09634a710e50c2990f533231 Author: Jeremy Fitzhardinge Date: Thu Aug 26 17:06:58 2010 -0700 xen: set shared_info->arch.max_pfn to max_p2m_pfn Signed-off-by: Jeremy Fitzhardinge commit 3588fe2e3f36543664beafedd3bb6dc3ffa896c5 Author: Jeremy Fitzhardinge Date: Fri Aug 27 17:30:24 2010 -0700 xen/events: change to using fasteoi Change event delivery to: - mask+clear event in the upcall function - use handle_fasteoi_irq as the handler - unmask in the eoi function (and handle migration) Signed-off-by: Jeremy Fitzhardinge commit 1e17fc7eff56d23a835d5d33e71d813aa9eb8ecc Author: Jeremy Fitzhardinge Date: Fri Sep 3 15:04:08 2010 -0700 xen: remove noise about registering vcpu info Signed-off-by: Jeremy Fitzhardinge commit 764f0138b9f54aa96761810055a74fce1e58c300 Author: Jeremy Fitzhardinge Date: Thu Aug 26 16:23:51 2010 -0700 xen: allocate level1_ident_pgt Signed-off-by: Jeremy Fitzhardinge commit f0991802bb4368e33848e7f823caa487d23555fb Author: Jeremy Fitzhardinge Date: Thu Aug 26 16:16:28 2010 -0700 xen: use early_brk for level2_kernel_pgt Signed-off-by: Jeremy Fitzhardinge commit a2e875298729540300a9a0324ee66e3b7883a912 Author: Jeremy Fitzhardinge Date: Thu Aug 26 16:08:31 2010 -0700 xen: allocate p2m size based on actual max size Allocate p2m tables based on the actual runtime maximum pfn rather than the static config-time limit. Signed-off-by: Jeremy Fitzhardinge commit a171ce6e7b4d967b9f9b8ba7c076a8a6d26e432b Author: Jeremy Fitzhardinge Date: Thu Aug 26 15:04:48 2010 -0700 xen: dynamically allocate p2m space Use early brk mechanism to allocate p2m tables, to save memory when booting non-Xen. Signed-off-by: Jeremy Fitzhardinge commit 5e941c093989dfb6b67148d2410d79b1be8debfe Author: Jeremy Fitzhardinge Date: Thu Aug 26 15:31:36 2010 -0700 x86: add RESERVE_BRK_ARRAY() helper Useful when converting static arrays into boottime brk allocated objects. Signed-off-by: Jeremy Fitzhardinge commit 0e78340f3c1fc603e8016c8ac304766bcc65506e Author: Josef Bacik Date: Fri Oct 22 15:26:53 2010 -0400 Btrfs: fix error handling in btrfs_get_sb If we failed to find the root subvol id, or the subvol=, we would deactivate the locked super and close the devices. The problem is at this point we have gotten the SB all setup, which includes setting super_operations, so when we'd deactiveate the super, we'd do a close_ctree() which closes the devices, so we'd end up closing the devices twice. So if you do something like this mount /dev/sda1 /mnt/test1 mount /dev/sda1 /mnt/test2 -o subvol=xxx umount /mnt/test1 it would blow up (if subvol xxx doesn't exist). This patch fixes that problem. Thanks, Signed-off-by: Josef Bacik commit 8bb8ab2e93f9c3c9453e13be0f37d344a32a3a6d Author: Josef Bacik Date: Fri Oct 15 16:52:49 2010 -0400 Btrfs: rework how we reserve metadata bytes With multi-threaded writes we were getting ENOSPC early because somebody would come in, start flushing delalloc because they couldn't make their reservation, and in the meantime other threads would come in and use the space that was getting freed up, so when the original thread went to check to see if they had space they didn't and they'd return ENOSPC. So instead if we have some free space but not enough for our reservation, take the reservation and then start doing the flushing. The only time we don't take reservations is when we've already overcommitted our space, that way we don't have people who come late to the party way overcommitting ourselves. This also moves all of the retrying and flushing code into reserve_metdata_bytes so it's all uniform. This keeps my fs_mark test from returning -ENOSPC as soon as it starts and actually lets me fill up the disk. Thanks, Signed-off-by: Josef Bacik commit 14ed0ca6e8236f2d264c4a8faec9e3a2b3d04377 Author: Josef Bacik Date: Fri Oct 15 15:23:48 2010 -0400 Btrfs: don't allocate chunks as aggressively Because the ENOSPC code over reserves super aggressively we end up allocating chunks way more often than we should. For example with my fs_mark tests on a 2gb fs I can end up reserved 1gb just for metadata, when only 34mb of that is being used. So instead check to see if the amount of space actually used is less than 30% of the total space, and if so don't allocate a chunk, but only if we have at least 256mb of free space to make sure we don't put too much pressure on free space. Signed-off-by: Josef Bacik commit 0019f10db6f596f3e14a19f9bd7059a1b85b0853 Author: Josef Bacik Date: Fri Oct 15 15:18:40 2010 -0400 Btrfs: re-work delalloc flushing Currently we try and flush delalloc, but we only do that in a sort of weak way, which works fine in most cases but if we're under heavy pressure we need to be able to wait for flushing to happen. Also instead of checking the bytes reserved in the block_rsv, check the space info since it is more accurate. The sync option will be used in a future patch. Signed-off-by: Josef Bacik commit 6d48755d02b150de7f47e7b4753202f2fc9f990f Author: Josef Bacik Date: Fri Oct 15 15:13:32 2010 -0400 Btrfs: fix reservation code for mixed block groups The global reservation stuff tries to add together DATA and METADATA used in order to figure out how much to reserve for everything, but this doesn't work right for mixed block groups. Instead if we have mixed block groups just set data used to 0. Also with mixed block groups we will use bytes_may_use for keeping track of delalloc bytes, so we need to take that into account in our reservation calculations. Signed-off-by: Josef Bacik commit 89a55897a2fbbceb94480952784004bf23911d38 Author: Josef Bacik Date: Thu Oct 14 14:52:27 2010 -0400 Btrfs: fix df regression The new ENOSPC stuff breaks out the raid types which breaks the way we were reporting df to the system. This fixes it back so that Available is the total space available to data and used is the actual bytes used by the filesystem. This means that Available is Total - data used - all of the metadata space. Thanks, Signed-off-by: Josef Bacik commit bf5fc093c5b625e4259203f1cee7ca73488a5620 Author: Josef Bacik Date: Wed Sep 29 11:22:36 2010 -0400 Btrfs: fix the df ioctl to report raid types The new ENOSPC stuff broke the df ioctl since we no longer create seperate space info's for each RAID type. So instead, loop through each space info's raid lists so we can get the right RAID information which will allow the df ioctl to tell us RAID types again. Thanks, Signed-off-by: Josef Bacik commit a1f765061e1491d5ec467429d0d6adfd9df2f6d9 Author: Josef Bacik Date: Thu Sep 16 14:29:55 2010 -0400 Btrfs: stop trying to shrink delalloc if there are no inodes to reclaim In very severe ENOSPC cases we can run out of inodes to do delalloc on, which means we'll just keep looping trying to shrink delalloc. Instead, if we fail to shrink delalloc 3 times in a row break out since we're not likely to make any progress. Tested this with a 100mb fs an xfstests test 13. Before the patch it would hang the box, with the patch we get -ENOSPC like we should. Thanks, Signed-off-by: Josef Bacik commit 8bfb5e7d6a14b29cffddd113f4b0be7d9aafc1e8 Author: Arnaldo Carvalho de Melo Date: Tue Oct 19 20:47:56 2010 -0200 perf tools: Remove direct slang.h include We wrap it in libslang.h because we need to deal with older slang release where HAVE_LONG_LONG is referenced as: So we need to define it. Noticed when rebuilding the perf tools on a RHEL5 machine. Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Stephane Eranian LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo commit bc487fb341af05120bccb9f59ce76302391dcc77 Author: Anand Gadiyar Date: Fri Oct 22 11:15:16 2010 -0700 omap: complete removal of machine_desc.io_pg_offst and .phys_io Commit ab69bcd66fb4be64edfc767365cb9eb084961246 (arm: remove machine_desc.io_pg_offst and .phys_io) could not update the new boards in the omap tree. This causes the build of omap2plus_defconfig to fail. Fix this. Signed-off-by: Anand Gadiyar Cc: Nicolas Pitre Cc: Eric Miao [tony@atomide.com: updated description] Signed-off-by: Tony Lindgren commit f5d9d249b9a6884daff513ef08afa43d3f7e085f Merge: db08bf0 36845d0 Author: Linus Torvalds Date: Fri Oct 22 11:23:42 2010 -0700 Merge branch 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 * 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: pcmcia: fix ni_daq_700 compilation pcmcia: IOCARD is also required for using IRQs commit db08bf0877f3464fb0c2c37dcdd9f9683192ea26 Merge: 092e0e7 35dbc0e Author: Linus Torvalds Date: Fri Oct 22 11:17:06 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic * git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: asm-generic/io.h: allow people to override individual funcs bitops: remove duplicated extern declarations bitops: make asm-generic/bitops/find.h more generic asm-generic: kdebug.h: Checkpatch cleanup asm-generic: fcntl: make exported headers use strict posix types asm-generic: cmpxchg does not handle non-long arguments asm-generic: make atomic_add_unless a function commit b5ec73eb9a3d9eac7a883c1ffb0a7e7fd332f8b4 Author: Rogerio Pimentel Date: Fri Oct 22 11:03:54 2010 -0200 MX27 3ds: Add SDHC1 support to mx27 3ds Add SDHC1 support to MX27 3ds Signed-off-by: Rogerio Pimentel Signed-off-by: Sascha Hauer commit cb74f0223fcf9b2db8f57d9ee5fa4738c066f3c6 Author: Kevin Hilman Date: Wed Oct 20 23:19:03 2010 +0000 omap: UART: fix wakeup registers for OMAP24xx UART2 On OMAP24xx, UART2 WKEN and WKST registers are in PM_WKEN2_CORE and PM_WKST2_CORE respecitvely. Fix the OMAP2 register init to use the correct registers on OMAP24xx. Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren commit 964dc256bb91e990277010a3f6dc66daa130be8b Author: Linus Walleij Date: Thu Oct 21 21:04:38 2010 +0200 DMAENGINE: move COH901318 to arch_initcall After moving the PL022 driver to subsys_initcall() due to the need of having stuff like regulators on the other end of the SPI link, I noticed that the COH901318 DMA engine will get probed before the DMA engine, so move it to an arch_initcall(). Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 8267f16e8b67ea272f37f7072933dc0d3839693d Author: Sascha Hauer Date: Wed Oct 20 08:37:19 2010 +0200 dma: imx-dma: fix signedness bug mxdmac->channel was unsigned, so check (imxdmac->channel < 0) for failed imx_dma_request_by_prio() made no sence. Explicitly check signed values. Also, fix uninitialzed use of ret. Signed-off-by: Vasiliy Kulikov Signed-off-by: Sascha Hauer Signed-off-by: Dan Williams commit 71226a4dbf84e6134be6876b71af04bb5d7353be Author: Uwe Kleine-König Date: Fri Oct 22 11:27:08 2010 +0200 imx: only select HAVE_CAN_FLEXCAN if CAN is enabled This fixes a warning warning: (IMX_HAVE_PLATFORM_FLEXCAN && ARCH_MXC) selects HAVE_CAN_FLEXCAN which has unmet direct dependencies (NET && CAN) (The warning in general exists since 246cf9c (kbuild: Warn on selecting symbols with unmet direct dependencies) which was reverted between 71ebc01 and b1f7d6e.) Reported-and-introduced-by: Marc Kleine-Budde Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 092e0e7e520a1fca03e13c9f2d157432a8657ff2 Merge: 79f14b7 776c163 Author: Linus Torvalds Date: Fri Oct 22 10:52:56 2010 -0700 Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl * 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl: vfs: make no_llseek the default vfs: don't use BKL in default_llseek llseek: automatically add .llseek fop libfs: use generic_file_llseek for simple_attr mac80211: disallow seeks in minstrel debug code lirc: make chardev nonseekable viotape: use noop_llseek raw: use explicit llseek file operations ibmasmfs: use generic_file_llseek spufs: use llseek in all file operations arm/omap: use generic_file_llseek in iommu_debug lkdtm: use generic_file_llseek in debugfs net/wireless: use generic_file_llseek in debugfs drm: use noop_llseek commit 79f14b7c56d3b3ba58f8b43d1f70b9b71477a800 Merge: c37927d 6d7bccc Author: Linus Torvalds Date: Fri Oct 22 10:52:01 2010 -0700 Merge branch 'vfs' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl * 'vfs' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl: (30 commits) BKL: remove BKL from freevxfs BKL: remove BKL from qnx4 autofs4: Only declare function when CONFIG_COMPAT is defined autofs: Only declare function when CONFIG_COMPAT is defined ncpfs: Lock socket in ncpfs while setting its callbacks fs/locks.c: prepare for BKL removal BKL: Remove BKL from ncpfs BKL: Remove BKL from OCFS2 BKL: Remove BKL from squashfs BKL: Remove BKL from jffs2 BKL: Remove BKL from ecryptfs BKL: Remove BKL from afs BKL: Remove BKL from USB gadgetfs BKL: Remove BKL from autofs4 BKL: Remove BKL from isofs BKL: Remove BKL from fat BKL: Remove BKL from ext2 filesystem BKL: Remove BKL from do_new_mount() BKL: Remove BKL from cgroup BKL: Remove BKL from NTFS ... commit c37927d4359e81b85de644f8fb08878717cf5f3f Merge: 5704e44 2a48fc0 Author: Linus Torvalds Date: Fri Oct 22 10:49:54 2010 -0700 Merge branch 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl * 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl: block: autoconvert trivial BKL users to private mutex drivers: autoconvert trivial BKL users to private mutex ipmi: autoconvert trivial BKL users to private mutex mac: autoconvert trivial BKL users to private mutex mtd: autoconvert trivial BKL users to private mutex scsi: autoconvert trivial BKL users to private mutex Fix up trivial conflicts (due to addition of private mutex right next to deletion of a version string) in drivers/char/pcmcia/cm40[04]0_cs.c commit 5704e44d283e907623e3775c1262f206a2c48cf3 Merge: 9115124 6de5bd1 Author: Linus Torvalds Date: Fri Oct 22 10:43:11 2010 -0700 Merge branch 'config' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl * 'config' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl: BKL: introduce CONFIG_BKL. dabusb: remove the BKL sunrpc: remove the big kernel lock init/main.c: remove BKL notations blktrace: remove the big kernel lock rtmutex-tester: make it build without BKL dvb-core: kill the big kernel lock dvb/bt8xx: kill the big kernel lock tlclk: remove big kernel lock fix rawctl compat ioctls breakage on amd64 and itanic uml: kill big kernel lock parisc: remove big kernel lock cris: autoconvert trivial BKL users alpha: kill big kernel lock isapnp: BKL removal s390/block: kill the big kernel lock hpet: kill BKL, add compat_ioctl commit 92ca0dc5ee022e4c0e488177e1d8865a0778c6c2 Author: Johan Hovold Date: Thu Oct 21 10:49:10 2010 +0200 USB: mct_u232: fix broken close Fix regression introduced by commit f26788da3b342099d2b02d99ba1cb7f154d6ef7b (USB: serial: refactor generic close) which broke driver close(). This driver uses non-standard semantics for the read urb which makes the generic close function fail to kill it (the read urb is actually an interrupt urb and therefore bulk_in size is zero). Reported-by: Eric Shattow "Eprecocious" Tested-by: Eric Shattow "Eprecocious" Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman commit f34c25ed78df6d1297db2187bf5e58aaf6674183 Author: Rahul Ruikar Date: Wed Oct 20 16:01:51 2010 -0700 USB: gadget: amd5536udc.c: fix error path In function udc_probe() call put_device() when device_register() fails. Signed-off-by: Rahul Ruikar Acked-by: Thomas Dahlmann Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit e581c8c8a957776db452afe316706242abcc1cdc Author: Axel Lin Date: Sat Oct 16 22:48:08 2010 +0800 USB: imx21-hcd - fix off by one resource size calculation Signed-off-by: Axel Lin Tested-by: Jon Povey Signed-off-by: Greg Kroah-Hartman commit bd68826897d328f332d8f98979d9ee95b96fb6f8 Author: Felipe Contreras Date: Tue Oct 19 13:03:26 2010 +0300 usb: gadget: fix Kconfig warning warning: (USB_MUSB_HDRC_HCD && USB_SUPPORT && USB_MUSB_HDRC && (USB_MUSB_HOST || USB_MUSB_OTG) && USB_GADGET_MUSB_HDRC || USB_MUSB_OTG && && USB && USB_GADGET && PM && EXPERIMENTAL) selects USB_OTG which has unmet direct dependencies (USB_GADGET_OMAP && ARCH_OMAP_OTG && USB_OHCI_HCD) This doesn't seem to happen on 2.6.36-rc8, but still doesn't make sense to keep this duplicated config that is already defined in usb/core. Signed-off-by: Felipe Contreras Acked-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit e576a7a96aae99b74dd758fff54c345f8f4ff097 Author: Yusuke Goda Date: Wed Oct 20 09:28:08 2010 +0900 usb: r8a66597-udc: Add processing when USB was removed. When USB was removed, this patch prepares for the next insertion. Signed-off-by: Yusuke Goda Acked-by: Yoshihiro Shimoda Cc: Paul Mundt Signed-off-by: Greg Kroah-Hartman commit 69cb1ec4ce4da4bc4c07bb09c4c98b3e25d99fb1 Author: Eric Bénard Date: Fri Oct 15 14:30:58 2010 +0200 mxc_udc: add workaround for ENGcm09152 for i.MX35 this patch gives the possibility to workaround bug ENGcm09152 on i.MX35 when the hardware workaround is also implemented on the board. It covers the workaround described on page 25 of the following Errata : http://cache.freescale.com/files/dsp/doc/errata/IMX35CE.pdf Signed-off-by: Eric Bénard Signed-off-by: Greg Kroah-Hartman commit 0f266abd70cd83571eca019f764b5f1992da7361 Author: Greg Kroah-Hartman Date: Tue Oct 19 09:05:43 2010 -0700 USB: ftdi_sio: add device ids for ScienceScope This adds the requested device ids to the ftdi_sio driver. Reported-by: Ewan Bingham Cc: Kuba Ober Cc: stable Signed-off-by: Greg Kroah-Hartman commit 843bb1d0ff29b96eeb184988223ba55e3e8c2f57 Author: Ajay Kumar Gupta Date: Tue Oct 19 10:08:13 2010 +0300 USB: musb: AM35x: Workaround for fifo read issue AM35x supports only 32bit read operations so we need to have workaround for 8bit and 16bit read operations. Signed-off-by: Ajay Kumar Gupta Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit eb83092c2b24587719c917a1d6a5b682eeaa03df Author: Ajay Kumar Gupta Date: Tue Oct 19 10:08:12 2010 +0300 USB: musb: add musb support for AM35x AM35x has musb interface and uses CPPI4.1 DMA engine. Current patch supports only PIO mode. DMA support can be added later once basic CPPI4.1 DMA patch is accepted. Also added USB_MUSB_AM35X which is required to differentiate musb ips between OMAP3x and AM35x. This config would be used to for below purposes, - Select am35x.c instead of omap2430.c for compilation at drivers/usb/musb directory. Please note there are significant differneces in these two files as musb ip in quite different on AM35x. Please note that in multi omap configuration only omap2430.c file will get compiled and we would require to select only AM35x based board config to compile am35x.c - Select workaround codes applicable for AM35x musb issues. one such workaround is for bytewise read issue on AM35x. Signed-off-by: Ajay Kumar Gupta Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit 3a0d30bcdfa73bd865f29899eb4bf29b58c4f54a Author: Ajay Kumar Gupta Date: Tue Oct 19 10:08:11 2010 +0300 USB: AM35x: Add musb support AM35x has musb interface (version 1.8) and uses CPPI41 DMA engine. It has USB phy built inside the IP itself. Signed-off-by: Ajay Kumar Gupta Acked-by: Tony Lindgren Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-omap@vger.kernel.org Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit 436a389096e1feda2c382cad83b6a8d6de8615a0 Author: Sarah Sharp Date: Fri Oct 15 14:59:15 2010 -0700 usb: Fix linker errors with CONFIG_PM=n Fix these linker errors when CONFIG_PM=n: ERROR: "xhci_bus_resume" [drivers/usb/host/xhci-hcd.ko] undefined! ERROR: "xhci_bus_suspend" [drivers/usb/host/xhci-hcd.ko] undefined! Reported-by: Randy Dunlap Signed-off-by: Sarah Sharp Acked-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit 39eb234874af4322f85e2a29e3aad33ce68cbed5 Author: Axel Lin Date: Fri Oct 15 13:29:24 2010 +0800 USB: ohci-sh - use resource_size instead of defining its own resource_len macro Signed-off-by: Axel Lin Acked-by: Yoshihiro Shimoda Signed-off-by: Greg Kroah-Hartman commit 4e5c353b3ccc4cc856d75ac751f4c09e0275c08b Author: Axel Lin Date: Fri Oct 15 13:27:57 2010 +0800 USB: isp1362-hcd - use resource_size instead of defining its own resource_len macro Signed-off-by: Axel Lin Acked-by: Mike Frysinger Signed-off-by: Greg Kroah-Hartman commit 7a9d93e58583efcca0f1ade889b05131ea0d1ed1 Author: Axel Lin Date: Fri Oct 15 13:26:21 2010 +0800 USB: isp116x-hcd - use resource_size instead of defining its own resource_len macro Signed-off-by: Axel Lin Signed-off-by: Greg Kroah-Hartman commit b5b5c3ac5123dab047cfeff472053ab737052e9b Author: Sarah Sharp Date: Fri Oct 15 11:24:14 2010 -0700 USB: xhci: Fix compile error when CONFIG_PM=n Fix this error when CONFIG_PM is not enabled: drivers/usb/host/xhci.c:675: error: implicit declaration of function 'usb_root_hub_lost_power' Wrap xhci_suspend() and xhci_resume() into an ifdef CONFIG_PM, along with the functions that only they call -- xhci_save_registers() and xhci_restore_registers(). Reported-by: Randy Dunlap Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman commit 56626a72a47bf3e50875d960d6b5f17b9bee0ab2 Author: Alan Stern Date: Thu Oct 14 15:25:21 2010 -0400 USB: accept some invalid ep0-maxpacket values A few devices (such as the RCA VR5220 voice recorder) are so non-compliant with the USB spec that they have invalid maxpacket sizes for endpoint 0. Nevertheless, as long as we can safely use them, we may as well do so. This patch (as1432) softens our acceptance criterion by allowing high-speed devices to have ep0-maxpacket sizes other than 64. A warning is printed in the system log when this happens, and the existing error message is clarified. Signed-off-by: Alan Stern Reported-by: James Cc: stable Signed-off-by: Greg Kroah-Hartman commit 5535b1d5f8885695c6ded783c692e3c0d0eda8ca Author: Andiry Xu Date: Thu Oct 14 07:23:06 2010 -0700 USB: xHCI: PCI power management implementation This patch implements the PCI suspend/resume. Please refer to xHCI spec for doing the suspend/resume operation. For S3, CSS/SRS in USBCMD is used to save/restore the internal state. However, an error maybe occurs while restoring the internal state. In this case, it means that HC internal state is wrong and HC will be re-initialized. Signed-off-by: Libin Yang Signed-off-by: Dong Nguyen Signed-off-by: Andiry Xu Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman commit 9777e3ce907d4cb5a513902a87ecd03b52499569 Author: Andiry Xu Date: Thu Oct 14 07:23:03 2010 -0700 USB: xHCI: bus power management implementation This patch implements xHCI bus suspend/resume function hook. In the patch it goes through all the ports and suspend/resume the ports if needed. If any port is in remote wakeup, abort bus suspend as what ehci/ohci do. Signed-off-by: Libin Yang Signed-off-by: Crane Cai Signed-off-by: Andiry Xu Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman commit 561925318725a41189a69f36ebe99199b3fb84c4 Author: Andiry Xu Date: Thu Oct 14 07:23:00 2010 -0700 USB: xHCI: port remote wakeup implementation This commit implements port remote wakeup. When a port is in U3 state and resume signaling is detected from a device, the port transitions to the Resume state, and the xHC generates a Port Status Change Event. For USB3 port, software write a '0' to the PLS field to complete the resume signaling. For USB2 port, the resume should be signaling for at least 20ms, irq handler set a timer for port remote wakeup, and then finishes process in hub_control GetPortStatus. Some codes are borrowed from EHCI code. Signed-off-by: Andiry Xu Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman commit be88fe4f4dda93e3264a887745123b1e6c4a6845 Author: Andiry Xu Date: Thu Oct 14 07:22:57 2010 -0700 USB: xHCI: port power management implementation Add software trigger USB device suspend resume function hook. Do port suspend & resume in terms of xHCI spec. Port Suspend: Stop all endpoints via Stop Endpoint Command with Suspend (SP) flag set. Place individual ports into suspend mode by writing '3' for Port Link State (PLS) field into PORTSC register. This can only be done when the port is in Enabled state. When writing, the Port Link State Write Strobe (LWS) bit shall be set to '1'. Allocate an xhci_command and stash it in xhci_virt_device to wait completion for the last Stop Endpoint Command. Use the Suspend bit in TRB to indicate the Stop Endpoint Command is for port suspend. Based on Sarah's suggestion. Port Resume: Write '0' in PLS field, device will transition to running state. Ring an endpoints' doorbell to restart it. Ref: USB device remote wake need another patch to implement. For details of how USB subsystem do power management, please see: Documentation/usb/power-management.txt Signed-off-by: Crane Cai Signed-off-by: Libin Yang Signed-off-by: Andiry Xu Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman commit 85f0ff46960c2853fd1436a56798260eae91db86 Author: Sarah Sharp Date: Thu Oct 14 07:22:54 2010 -0700 usb: Fix issue with USB 3.0 devices after system resume When the system suspends and a host controller's power is lost, the USB core attempts to revive any USB devices that had the persist_enabled flag set. For non-SuperSpeed devices, it will disable the port, and then set the udev->reset_resume flag. This will cause the USB core to reset the device, verify the device descriptors to make sure it's the same device, and re-install any non-default configurations or alternate interface settings. However, we can't disable SuperSpeed root hub ports because that turns off SuperSpeed terminations, which will inhibit any devices connecting at USB 3.0 speeds. (Plus external hubs don't allow SuperSpeed ports to be disabled.) Because of this logic in hub_activate(): /* We can forget about a "removed" device when there's a * physical disconnect or the connect status changes. */ if (!(portstatus & USB_PORT_STAT_CONNECTION) || (portchange & USB_PORT_STAT_C_CONNECTION)) clear_bit(port1, hub->removed_bits); if (!udev || udev->state == USB_STATE_NOTATTACHED) { /* Tell khubd to disconnect the device or * check for a new connection */ if (udev || (portstatus & USB_PORT_STAT_CONNECTION)) set_bit(port1, hub->change_bits); } else if (portstatus & USB_PORT_STAT_ENABLE) { /* The power session apparently survived the resume. * If there was an overcurrent or suspend change * (i.e., remote wakeup request), have khubd * take care of it. */ if (portchange) set_bit(port1, hub->change_bits); } else if (udev->persist_enabled) { udev->reset_resume = 1; set_bit(port1, hub->change_bits); } else { /* The power session is gone; tell khubd */ usb_set_device_state(udev, USB_STATE_NOTATTACHED); set_bit(port1, hub->change_bits); } a SuperSpeed device after a resume with a loss of power will never get the reset_resume flag set. Instead the core will assume the power session survived and that the device still has the same address, configuration, and alternate interface settings. The xHCI host controller will have no knowledge of the device (since all xhci_virt_devices were destroyed when power loss was discovered, and xhci_discover_or_reset_device() has not been called), and all URBs to the device will fail. If the device driver responds by resetting the device, everything will continue smoothly. However, if lsusb is used before the device driver resets the device (or there is no driver), then all lsusb descriptor fetches will fail. The quick fix is to pretend the port is disabled in hub_activate(), by clearing the local variable. But I'm not sure what other parts of the hub driver need to be changed because they have assumptions about when ports will be disabled. Signed-off-by: Sarah Sharp Signed-off-by: Andiry Xu Signed-off-by: Greg Kroah-Hartman commit c8d4af8e2af12cd4835ba5c4b54bdafe9deda71a Author: Andiry Xu Date: Thu Oct 14 07:22:51 2010 -0700 USB: core: use kernel assigned address for devices under xHCI xHCI driver uses hardware assigned device address. This may cause device address conflict in certain cases. Use kernel assigned address for devices under xHCI. Store the xHC assigned address locally in xHCI driver. Signed-off-by: Andiry Xu Signed-off-by: Sarah Sharp commit f0615c45ce5feb141c1172480c5198d4b8d25436 Author: Andiry Xu Date: Thu Oct 14 07:22:48 2010 -0700 USB: xHCI: change xhci_reset_device() to allocate new device Rename xhci_reset_device() to xhci_discover_or_reset_device(). If xhci_discover_or_reset_device() is called to reset a device which does not exist or does not match the udev, it calls xhci_alloc_dev() to re-allocate the device. This would prevent the reset device failure, possibly due to the xHC restore error during S3/S4 resume. Signed-off-by: Andiry Xu Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman commit 64927730c66333c9d5987aa72a0e6d44ed91cec7 Author: Andiry Xu Date: Thu Oct 14 07:22:45 2010 -0700 USB: xHCI: Add pointer to udev in struct xhci_virt_device Add a pointer to udev in struct xhci_virt_device. When allocate a new virt_device, make the pointer point to the corresponding udev. Modify xhci_check_args(), check if virt_dev->udev matches the target udev, to make sure command is issued to the right device. Signed-off-by: Andiry Xu Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman commit ac9dfe9cdda4eb42ecaa9f13b0fee518e0b6518e Author: Nobuhiro Iwamatsu Date: Thu Oct 14 14:52:54 2010 +0900 usb: r8a66597-hcd: Change mistake of the outsw function Some functions changed by 1c98347e613bf17ea2f18c9766ce0ab77f65a96d. However, There was a change mistake of the function (outsw). Signed-off-by: Nobuhiro Iwamatsu CC: Paul Mundt Cc: stable [.35 & .36] Acked-by: Yoshihiro Shimoda Signed-off-by: Greg Kroah-Hartman commit 96b9e83231f543391c29d12e1e65ddb2ed963154 Author: Igor Grinberg Date: Sun Oct 10 17:59:19 2010 +0200 USB: otg/ulpi: extend id's table. Extend id's table to have ulpi phy names in it. Report if the known phy is found. Signed-off-by: Igor Grinberg Signed-off-by: Greg Kroah-Hartman commit a9138192d0e716c3e9714b3fe03543d93ebbad9f Author: Igor Grinberg Date: Sun Oct 10 17:59:18 2010 +0200 USB: otg/ulpi: improve ulpi phy detection. Improve ulpi phy detection by utilizing the "scratch" register. Allow unknown ulpi phy work without the need to hard-code the id. Signed-off-by: Igor Grinberg Signed-off-by: Greg Kroah-Hartman commit c6f694af8318a526c639306d9d07ee33cb7c168a Author: Alon Ziv Date: Sun Oct 10 08:32:20 2010 +0200 USB: opticon: Whitespace fixes in opticon driver Signed-off-by: Alon Ziv Signed-off-by: Greg Kroah-Hartman commit 0d930e51cfe6f748339d7d13b3fad2b91a1d92c2 Author: Alon Ziv Date: Sun Oct 10 08:32:19 2010 +0200 USB: opticon: Add Opticon OPN2001 write support OPN2001 expects write operations to arrive as a vendor-specific command through the control pipe (instead of using a separate bulk-out pipe). Signed-off-by: Alon Ziv Signed-off-by: Greg Kroah-Hartman commit 97cd8dc4ca9a1a5efb2cc38758e01492e3b013e2 Author: Alon Ziv Date: Sun Oct 10 08:32:18 2010 +0200 USB: opticon: Fix long-standing bugs in opticon driver The bulk-read callback had two bugs: a) The bulk-in packet's leading two zeros were returned (and the two last bytes truncated) b) The wrong URB was transmitted for the second (and later) read requests, causing further reads to return the entire packet (including leading zeros) Signed-off-by: Alon Ziv Cc: stable Signed-off-by: Greg Kroah-Hartman commit c19db4c9e49a049054594272d408e101aaf41b27 Author: Johan Hovold Date: Mon Oct 11 20:23:36 2010 +0200 USB: ftdi_sio: set device latency timeout at port probe No need to set latency timeout at every open. This also fixes an issue with the read latency being as high as 250ms (instead of 1ms) for the first read after port probe. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman commit 3ed780117dbe5acb64280d218f0347f238dafed0 Author: Kees Cook Date: Mon Oct 11 11:28:16 2010 -0700 usb: iowarrior: don't trust report_size for buffer size If the iowarrior devices in this case statement support more than 8 bytes per report, it is possible to write past the end of a kernel heap allocation. This will probably never be possible, but change the allocation to be more defensive anyway. Signed-off-by: Kees Cook Signed-off-by: Greg Kroah-Hartman commit cfb8da8f69b81d367b766888e83ec0483a31bf01 Author: Johan Hovold Date: Tue Oct 12 01:07:05 2010 +0200 USB: visor: fix initialisation of UX50/TH55 devices Fix regression introduced by commit 214916f2ec6701e1c9972f26c60b3dc37d3153c6 (USB: visor: reimplement using generic framework) which broke initialisation of UX50/TH55 devices that used re-mapped bulk-out endpoint addresses. Reported-by: Robert Gadsdon Tested-by: Robert Gadsdon Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman commit 59c6ccd9f9aecfa59c99ceba6d4d34b180547a05 Author: Daniel Suchy Date: Tue Oct 12 15:44:24 2010 +0200 USB: ftdi_sio: new VID/PIDs for various Papouch devices This patch for FTDI USB serial driver ads new VID/PIDs used on various devices manufactured by Papouch (http://www.papouch.com). These devices have their own VID/PID, although they're using standard FTDI chip. In ftdi_sio.c, I also made small cleanup to have declarations for all Papouch devices together. Signed-off-by: Daniel Suchy Cc: stable Signed-off-by: Greg Kroah-Hartman commit 562e7c71c6708353bfe7b615576bcbcf7afd522e Author: Tatyana Brokhman Date: Sat Oct 9 16:46:12 2010 +0200 usb: usb3.0 ch9 definitions Adding SuperSpeed usb definitions as defined by ch9 of the USB3.0 spec. This patch is a preparation for adding SuperSpeed support to the gadget framework. Signed-off-by: Tatyana Brokhman Signed-off-by: Greg Kroah-Hartman commit 0a6a717ceff67f887b16783ce891f5dcf846f1fc Author: Michal Nazarewicz Date: Thu Oct 7 14:46:15 2010 +0200 USB: gadget: storage: reuse definitions from scsi.h header file This commit changes storage_common.h, file_storage.c and f_mass_storage.c to use definitions of SCSI commands from scsi/scsi.h file instead of redefining the commands in storage_common.c. scsi/scsi.h header file was missing READ_FORMAT_CAPACITIES and READ_HEADER so this commit also add those to the header. Signed-off-by: Michal Nazarewicz Cc: Alan Stern Cc: James Bottomley Signed-off-by: Greg Kroah-Hartman commit 0a2b8a0d1101179fdebc974a7c72b514aede9d9d Author: matt mooney Date: Wed Oct 6 19:03:26 2010 -0700 usb: makefile cleanup For all modules, change -objs to -y; remove if-statements and replace with lists using the kbuild idiom; move flags to the top of the file; and fix alignment while trying to maintain the original scheme in each file. None of the dependencies are modified. Signed-off-by: matt mooney Acked-by: Sam Ravnborg Acked-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit 75d87cdf3cefd2744fabd3f2a558c49cdf36238b Author: Rahul Ruikar Date: Thu Oct 7 09:40:45 2010 +0530 usb: gadget: dummy_hcd: Fix error path In function dummy_udc_probe() call put_device() when device_register() fails. also usb_get_hcd() put before device_register() after review comment from Alan Stern. Signed-off-by: Rahul Ruikar Signed-off-by: Greg Kroah-Hartman commit 7b3a766c7b9bce07875098cb68642df2b8f0b152 Author: Rahul Ruikar Date: Thu Oct 7 09:31:12 2010 +0530 usb: core: endpoint: Fix error path In function usb_create_ep_devs() call put_device() when device_register() fails. Signed-off-by: Rahul Ruikar Signed-off-by: Greg Kroah-Hartman commit 93ad03d60b5b18897030038234aa2ebae8234748 Author: Anders Larsen Date: Wed Oct 6 23:46:25 2010 +0200 USB: cp210x: Add WAGO 750-923 Service Cable device ID The WAGO 750-923 USB Service Cable is used for configuration and firmware updates of several industrial automation products from WAGO Kontakttechnik GmbH. Bus 004 Device 002: ID 1be3:07a6 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x1be3 idProduct 0x07a6 bcdDevice 1.00 iManufacturer 1 Silicon Labs iProduct 2 WAGO USB Service Cable iSerial 3 1277796751 . . . Signed-off-by: Anders Larsen Cc: stable Signed-off-by: Greg Kroah-Hartman commit 7491f13367919d97525b73b1fd38801ac83aac06 Author: Peter Chen Date: Mon Sep 27 16:43:25 2010 +0800 USB: do not print -ESHUTDOWN message if usb at otg device mode At otg device mode, the otg host resume should do no-op during system resume, otherwise, the otg device will be treated as a host for enumeration. So, the otg host driver returns -ESHUTDOWN if it detects the current usb mode is device mode. The host driver has to return -ESHUTDOWN, otherwise, the usb_hc_died will be called. Signed-off-by: Peter Chen Signed-off-by: Greg Kroah-Hartman commit 00914025cc4e783d4703b4db1d47b41f389e50c8 Author: Hans de Goede Date: Fri Oct 1 14:20:11 2010 -0700 usb-storage: add new no_read_capacity_16 quirk Some Rockbox based mp4 players will crash when ever they see a read_capacity_16 scsi command. So add a new US_FL which tells the scsi sd driver to not issue any read_capacity_16 scsi commands. Signed-off-by: Hans de Goede Cc: James Bottomley Cc: Alan Stern Cc: Matthew Dharm Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 5ce524bdff367b4abda20bcfd4dafd9d30c773df Author: Hans de Goede Date: Fri Oct 1 14:20:10 2010 -0700 scsi/sd: add a no_read_capacity_16 scsi_device flag I seem to have a knack for digging up buggy usb devices which don't work with Linux, and I'm crazy enough to try to make them work. So this time a friend of mine asked me to get an mp4 player (an mp3 player which can play videos on a small screen) to work with Linux. It is based on the well known rockbox chipset for which we already have an unusual devs entries to work around some of its bugs. But this model comes with an additional twist. This model chokes on read_capacity_16 calls. Now normally we don't make those calls, but this model comes with an sdcard slot and when there is no card in there (and shipped from the factory there is none), it reports a size of 0. However this time the programmers actually got the read_capacity_10 response right! So they substract one from the size as stored internally in the mp3 player before reporting it back, resulting in an answer of ... 0xffffffff sectors, causing sd.c to try a read_capacity_16, on which the device crashes. This patch adds a flag to scsi_device to indicate that a a device cannot handle read_capacity_16, and when this flag is set if a device reports an lba of 0xffffffff as answer to a read_capacity_10, assumes it tries to report a size of 0. Signed-off-by: Hans de Goede Cc: James Bottomley Cc: Alan Stern Cc: Matthew Dharm Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit ae38c78a03e1b77ad45248fcf097e4568e740209 Author: Hans de Goede Date: Fri Oct 1 14:20:10 2010 -0700 usb-storage: add new no_read_disc_info quirk Appotech ax3003 (the larger brother of the ax203) based devices are even more buggy then the ax203. They will go of into lala land when ever they see a READ_DISC_INFO scsi command. So add a new US_FL which tells the scsi sr driver to not issue any READ_DISC_INFO scsi commands. [akpm@linux-foundation.org: fix build] Signed-off-by: Hans de Goede Cc: James Bottomley Cc: Alan Stern Cc: Matthew Dharm Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 8e04d8056c1ea0e0aab730994b74756f0526cda8 Author: Hans de Goede Date: Fri Oct 1 14:20:08 2010 -0700 scsi/sr: add no_read_disc_info scsi_device flag Some USB devices emulate a usb-mass-storage attached (scsi) cdrom device, usually this fake cdrom contains the windows software for the device. While working on supporting Appotech ax3003 based photoframes, which do this I discovered that they will go of into lala land when ever they see a READ_DISC_INFO scsi command. Thus this patch adds a scsi_device flag (which can then be set by the usb-storage driver through an unsual-devs entry), to indicate this, and makes the sr driver honor this flag. I know this sucks, but as discussed on linux-scsi list there is no other way to make this device work properly. Looking at usb traces made under windows, windows never sends a READ_DISC_INFO during normal interactions with a usb cdrom device. So as this cdrom emulation thingie becomes more common we might see more of this problem. Signed-off-by: Hans de Goede Cc: James Bottomley Cc: Alan Stern Cc: Matthew Dharm Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 319feaabb6c7ccd90da6e3207563c265da7d21ae Author: Dan Carpenter Date: Tue Oct 5 18:55:34 2010 +0200 usb: gadget: goku_udc: Fix error path This is based on an initial patch by Rahul Ruikar. The goku_remove() function can be called before device_register() so it can call device_unregister() improperly. Also if the call to device_register() fails we need to call put_device(). As I was changing the error handling in goku_probe(), I noticed that the label was "done" but actually if the function succeeds we return earlier. I renamed the error path to "err" instead of "done." Reported-by: Rahul Ruikar Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit d0cc3d4100e829d726d7c0fbf5b7b8d2146f60ba Author: Martin Fuzzey Date: Fri Oct 1 00:21:59 2010 +0200 USB: imx21-hcd accept arbitary transfer buffer alignement. The hardware can only do DMA to 4 byte aligned addresses. When this requirement is not met use PIO or a bounce buffer. PIO is used when the buffer is small enough to directly use the hardware data memory (2*maxpacket). A bounce buffer is used for larger transfers. Signed-off-by: Martin Fuzzey Signed-off-by: Greg Kroah-Hartman commit 1dae423dd9b247b048eda00cb598c755e5933213 Author: Martin Fuzzey Date: Fri Oct 1 00:21:55 2010 +0200 USB: introduce unmap_urb_setup_for_dma() Split unmap_urb_for_dma() to allow just the setup buffer to be unmapped. This allows HCDs to use PIO for the setup buffer if it is not suitable for DMA. Signed-off-by: Martin Fuzzey Signed-off-by: Greg Kroah-Hartman commit 7a7e7896422baced4757070b813ba28ab24a214a Author: Martin Fuzzey Date: Fri Oct 1 00:21:48 2010 +0200 USB: imx21-hcd: Fix isochronous endpoint idle Release the hardware resources and reset the internal HCD state associated with an isochronous endpoint when the last URB queued for it completes. Previously this was only done in then endpoint_disable() method causing usbtest 15 and 16 to hang when run twice in succession without a disconnect. Signed-off-by: Martin Fuzzey Signed-off-by: Greg Kroah-Hartman commit b2a068d058e71519e14d2c03e92459c4c1d63c8b Author: Martin Fuzzey Date: Fri Oct 1 00:21:43 2010 +0200 USB: imx21-hcd: refactor hardware data memory management We already have fields describing the hardware data memory (dmem_size and dmem_offset) in the HCD private data, use them rather than the rather obscure read from the hardware descriptor. Signed-off-by: Martin Fuzzey Signed-off-by: Greg Kroah-Hartman commit e6da55cb0aa36f30168da8c20ceccdc538b054be Author: Martin Fuzzey Date: Fri Oct 1 00:21:38 2010 +0200 USB: imx21-hcd: remove unused variable Remove a local variable left over from some debugging code. Signed-off-by: Martin Fuzzey Signed-off-by: Greg Kroah-Hartman commit 40aed5241e4e5363c11acc841f6ef794b2c25668 Author: Martin Fuzzey Date: Fri Oct 1 00:20:48 2010 +0200 USB: usbtest - ensure correct isoc data length Check the data length of isochronous transfers is as expected. With this test #16 will now fail if the device side sends no data. Signed-off-by: Martin Fuzzey Cc: David Brownell Signed-off-by: Greg Kroah-Hartman commit fabbf2196d0db0b4d175456dcb373aa2440f5728 Author: Martin Fuzzey Date: Fri Oct 1 00:20:42 2010 +0200 USB: usbtest fix coding style Signed-off-by: Martin Fuzzey Cc: David Brownell Signed-off-by: Greg Kroah-Hartman commit 80f0cf3947889014d3a3dc0ad60fb87cfda4b12a Author: Alan Stern Date: Thu Sep 30 15:16:23 2010 -0400 USB: disable endpoints after unbinding interfaces, not before This patch (as1430) fixes a bug in usbcore. When a device configuration change occurs or a device is removed, the endpoints for the old config should be completely disabled. However it turns out they aren't; this is because usb_unbind_interface() calls usb_enable_interface() or usb_set_interface() to put interfaces back in altsetting 0, which re-enables the interfaces' endpoints. As a result, when a device goes through a config change or is unconfigured, the ep_in[] and ep_out[] arrays may be left holding old pointers to usb_host_endpoint structures. If the device is deauthorized these structures get freed, and the stale pointers cause errors when the the device is eventually unplugged. The solution is to disable the endpoints after unbinding the interfaces instead of before. This isn't as large a change as it sounds, since usb_unbind_interface() disables all the interface's endpoints anyway before calling the driver's disconnect routine, unless the driver claims to support "soft" unbind. This fixes Bugzilla #19192. Thanks to "Tom" Lei Ming for diagnosing the underlying cause of the problem. Signed-off-by: Alan Stern Tested-by: Carsten Sommer CC: stable Signed-off-by: Greg Kroah-Hartman commit cf7d3c8e579a643ff81ff95d51babdaf4c55f5f4 Author: Philippe Skowronski Date: Fri Oct 1 14:59:16 2010 +0100 usb: langwell_udc: cancel pending requests when controller is suspended. It is safer to cancel pending requests before free dTD and dQH when controller enters suspend state. Signed-off-by: Philippe Skowronski Signed-off-by: Hao Wu [Switch to spin_lock_irq as suggested by Alan Stern] Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit c8458d59d424fcba2456d6cba5811ce01c3aedb9 Author: Christophe Lebouc Date: Thu Sep 30 15:34:36 2010 +0100 usb: langwell_udc: fix big file transfer issue. This patch fixing the problem with large file transfers failing. Swap the read order to avoid unexpected RX status. Signed-off-by: Christophe Lebouc Signed-off-by: Hao Wu Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 689d6eacd1b7c3677bfe6ee367766f21c3c80e26 Author: Ming Lei Date: Thu Sep 30 20:32:44 2010 +0800 USB: UHCI: add native scatter-gather support(v1) This patch adds native scatter-gather support to uhci-hcd. Reviewed-by: Alan Stern Signed-off-by: Ming Lei Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 00be545e49d83485d49a598d3b7e090088934be8 Author: Sergei Shtylyov Date: Wed Sep 29 09:54:31 2010 +0300 usb: musb: blackfin: call gpio_free() on error path in musb_platform_init() Blackfin's musb_platform_init() needs to call gpio_free() for error cleanup iff otg_get_transceiver() call returns NULL. Signed-off-by: Sergei Shtylyov Acked-by: Mike Frysinger Signed-off-by: Felipe Balbi Cc: stable Signed-off-by: Greg Kroah-Hartman commit 3daad24d6c72affdd40e8b6a75c87d3c175880b6 Author: Sergei Shtylyov Date: Wed Sep 29 09:54:30 2010 +0300 usb: musb: blackfin: call usb_nop_xceiv_unregister() in musb_platform_exit() Blackfin's musb_platform_exit() forgets to call usb_nop_xceiv_unregister(). While fixing this, also remove the unneeded blank line there. Signed-off-by: Sergei Shtylyov Acked-by: Mike Frysinger Cc: stable Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit f405387435a85a440d1ce16f3ca36e042281643a Author: Sergei Shtylyov Date: Wed Sep 29 09:54:29 2010 +0300 USB: MUSB: fix kernel WARNING/oops when unloading module in OTG mode Since commit 461972d8a4c94bc44f11a13046041c78a7cf18dd (musb_core: don't call musb_platform_exit() twice), unloading the driver module results in a WARNING "kobject: '(null)' (c73de788): is not initialized, yet kobject_put() is being called." (or even kernel oops) on e.g. DaVincis, though only in the OTG mode. There exists dubious and unbalanced put_device() call in musb_free() which takes place only in the OTG mode. As this commit caused musb_platform_exit() to be called (and so unregister the NOP transceiver) before this put_device() call, this function references already freed memory. On the other hand, all the glue layers miss the otg_put_transceiver() call, complementary to the otg_get_transceiver() call that they do. So, I think the solution is to get rid of the strange put_device() call, and instead call otg_put_transceiver() in the glue layers... Signed-off-by: Sergei Shtylyov Cc: stable Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit 230f7ede6c2f0e403f29e03e0251a470aa9350dd Author: Anatolij Gustschin Date: Tue Sep 28 20:55:21 2010 +0200 USB: add USB EHCI support for MPC5121 SoC Extends FSL EHCI platform driver glue layer to support MPC5121 USB controllers. MPC5121 Rev 2.0 silicon EHCI registers are in big endian format. The appropriate flags are set using the information in the platform data structure. MPC83xx system interface registers are not available on MPC512x, so the access to these registers is isolated in MPC512x case. Furthermore the USB controller clocks must be enabled before 512x register accesses which is done by providing platform specific init callback. The MPC512x internal USB PHY doesn't provide supply voltage. For boards using different power switches allow specifying DRVVBUS and PWR_FAULT signal polarity of the MPC5121 internal PHY using "fsl,invert-drvvbus" and "fsl,invert-pwr-fault" properties in the device tree USB nodes. Adds documentation for this new device tree bindings. Signed-off-by: Anatolij Gustschin Cc: Grant Likely Signed-off-by: Greg Kroah-Hartman commit 126512e3f274802ca65ebeca8660237f0361ad48 Author: Anatolij Gustschin Date: Tue Sep 28 20:55:20 2010 +0200 USB: add platform glue driver for FSL USB DR controller Replace FSL USB platform code by simple platform driver for creation of FSL USB platform devices. The driver creates platform devices based on the information from USB nodes in the flat device tree. This is the replacement for old arch fsl_soc usb code removed by this patch. The driver uses usual of-style binding, available EHCI-HCD and UDC drivers can be bound to the created devices. The new of-style driver additionaly instantiates USB OTG platform device, as the appropriate USB OTG driver will be added soon. Signed-off-by: Anatolij Gustschin Cc: Kumar Gala Cc: Grant Likely Signed-off-by: Greg Kroah-Hartman commit 99c1e4f89d1033444ce4d0c064bd2826e81c3775 Author: Rainer Keller Date: Tue Sep 28 12:27:43 2010 +0200 USB: add PID for FTDI based OpenDCC hardware The OpenDCC project is developing a new hardware. This patch adds its PID to the list of known FTDI devices. The PID can be found at http://www.opendcc.de/elektronik/usb/opendcc_usb.html Signed-off-by: Rainer Keller Cc: stable Signed-off-by: Greg Kroah-Hartman commit 748eee0986f0d51c7bc39f194d515a8d8248ebdd Author: Grazvydas Ignotas Date: Mon Sep 27 15:17:18 2010 +0300 USB: Add more empty functions in otg.h Add empty functions for get/put transceiver functions too, so that drivers that optionally use them can call them without worrying that they might not exist, eliminating ifdefs. Signed-off-by: Grazvydas Ignotas Acked-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit 7893afc035590383a14b176c1497cba984276ef4 Author: Otavio Salvador Date: Sun Sep 26 23:35:05 2010 -0300 USB: cdc-acm: fix code indentation Signed-off-by: Otavio Salvador Signed-off-by: Greg Kroah-Hartman commit 25013315678c78091a7826be7097fa2b60e30aac Author: matt mooney Date: Fri Sep 24 12:17:33 2010 -0700 usb: change to new flag variable Replace EXTRA_CFLAGS with ccflags-y. Signed-off-by: matt mooney Acked-by: WANG Cong Signed-off-by: Greg Kroah-Hartman commit e0c43476c12db99e20066151d0c49aa76b34e50d Author: Felipe Balbi Date: Fri Sep 24 13:44:15 2010 +0300 usb: musb: gadget: only enable AUTOCLEAR in double buffered case commit 633ba7876b96ec339ef685357e2f7c60b5a8ce85 broke g_file_storage functionality by enabling AUTOCLEAR on all cases without caring for all gadget drivers. This patch will only enable AUTOCLEAR if our endpoint's FIFO was configured with double buffering support. Note this is not a complete fix, double buffered case still doesn't work always, but that hasn't been working for quite some time. Other than reverting the entire commit and breaking testusb with double buffered case again, I decided it was better to fix the single buffered case and spend more time fixing double buffered case properly. Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit e7379aaa5ca12f9e011eb5a6bcba88e9bbbfbf87 Author: Ming Lei Date: Fri Sep 24 13:44:14 2010 +0300 usb: musb: gadget: fix ZLP sending in musb_g_tx(v1) This patch fixes the problem reported by Sergei: >how come? we need to send ZLP before giving back the request. >Well, look at the code ionce again. We need to send ZLP *after* >request->actual == request->length, but as the check is inserted >after the ZLP send, ZLP *may* be sent once the first DMA completes, >not the last. The patch also has been discussed on the link below: http://marc.info/?t=128454814900001&r=1&w=2 Signed-off-by: Ming Lei Reported-by: Sergei Shtylyov Cc: David Brownell Cc: Anand Gadiyar Cc: Mike Frysinger Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit a6038ee76a29ea31f8aae4eb6c419794c739e077 Author: Heikki Krogerus Date: Fri Sep 24 13:44:13 2010 +0300 usb: musb: ignore spurious SESSREQ interrupts This will ignore any SESSREQ interrupt if musb is B state. Charger detection may cause spurious SESSREQ interrupts. Signed-off-by: Heikki Krogerus Signed-off-by: Greg Kroah-Hartman commit 434678685407e045ffb246df059c486fc0a16e75 Author: Sergei Shtylyov Date: Fri Sep 24 13:44:12 2010 +0300 usb: musb: gadget: kill unreachable code in musb_g_rx() musb_g_rx() always returns if next_request() call yields NULL, so the DBG() near the function's end can never be invoked. Remove it along with unneeded 'return'; also remove the duplicate 'request' check... Signed-off-by: Sergei Shtylyov Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit 2f8d5cd6bcf814411ec356bcdbc666d07bbc6026 Author: Jon Povey Date: Fri Sep 24 13:44:10 2010 +0300 USB: musb: suppress warning about unused flags Wrap flags with uninitialized_var() to suppress this: drivers/usb/musb/cppi_dma.c:1158: warning: 'flags' may be used uninitialized in this function Signed-off-by: Jon Povey Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit f8afbf7f2bf3cee0f4fff7cb753ecc9f583972c3 Author: T. S., Anil Kumar Date: Fri Sep 24 13:44:09 2010 +0300 usb: musb: host: support DMA transfers greater than max channel length Add support for MUSB Host DMA transfers greater than max channel length, so that such transfers won't be truncated. Signed-off-by: Anil Shetty Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit ae9b2ad2eea729b907ef5dd5e25d1ff8443d03fc Author: Bob Liu Date: Fri Sep 24 13:44:07 2010 +0300 usb: musb: Change to direct addr in context save/restore Since not all platforms are using the same offset 0x10 in musb_save/restore_context() eg Blackfin the offset is 0x40, Change the indexed address to direct. Signed-off-by: Bob Liu Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit 496dda704bca1208e08773ba39b29a69536f5381 Author: Maulik Mankad Date: Fri Sep 24 13:44:06 2010 +0300 usb: musb: host: unmap the buffer for PIO data transfers The USB stack maps the buffer for DMA if the controller supports DMA. MUSB controller can perform DMA as well as PIO transfers. The buffer needs to be unmapped before CPU can perform PIO data transfers. Export unmap_urb_for_dma() so that drivers can perform the DMA unmapping in a sane way. Signed-off-by: Maulik Mankad Acked-by: Alan Stern Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit 6587cc0f30cd2f27cf0677e470f18792925a23a4 Author: Anil Shetty Date: Fri Sep 24 13:44:05 2010 +0300 usb: musb: musbhsdma: increase max_len to 1MB MUSB's DMA controller max channel length was set to 64k. Transfer length greater than this max value is being truncated. Signed-off-by: Anil Shetty Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit f11d893de444965dfd3e55f726533ae1df5c6471 Author: Ming Lei Date: Fri Sep 24 13:44:04 2010 +0300 usb: musb: support ISO high bandwidth for gadget mode This patch has been tested OK on beagle B5 board and use usbtest #15 and #16 as testcase. Signed-off-by: Ming Lei Reviewed-by: Sergei Shtylyov Cc: David Brownell Cc: Anand Gadiyar Cc: Mike Frysinger Cc: Sergei Shtylyov Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit 3ee076dea68e11d4685972df7298b80b8e7673e4 Author: Sergei Shtylyov Date: Fri Sep 24 13:44:03 2010 +0300 usb: musb: introduce DA8xx/OMAP-L1x glue layer Texas Instruments DA8xx/OMAP-L1x glue layer for the MUSBMHRDC driver. Signed-off-by: Sergei Shtylyov Signed-off-by: Yadviga Grigorieva Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit d613746d8bc3a2904d4585d7efd7f457d9db6fb9 Author: Sergei Shtylyov Date: Fri Sep 24 13:44:02 2010 +0300 USB: musb: make DBG() calls actually depend on CONFIG_USB_MUSB_DEBUG Enabling CONFIG_USB_MUSB_DEBUG option causes -DDEBUG to be added to gcc's command line, however the DBG() macro doesn't depend on DEBUG, so that the debugging messages get printed regardless of the option, and I don't think that this was intended. Get rid of otherwise unused xprintk() macro and make DBG() macro directly call pr_debug() which only results in the actual code generated if DEBUG is defined. This change makes musb_hdrc.o ~30% less in size with CONFIG_USB_MUSB_DEBUG disabled (in host mode). Signed-off-by: Sergei Shtylyov Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit e06ea97fa47611992a5a61058729cf8e83bf6fda Author: Tomoki Sekiyama Date: Sun Oct 3 06:59:06 2010 +0900 USB: yurex: fix memory leak and corrupted messages This fixes the memory leak on disconnecting the device. In addition, it fixes some messages corrupted by incorrect encoding. Signed-off-by: Tomoki Sekiyama Signed-off-by: Greg Kroah-Hartman commit 1b62d2583963d5974974aa923214bada7aa7b5d1 Author: Greg Kroah-Hartman Date: Thu Sep 30 05:01:22 2010 -0700 USB: yurex: assign a real minor number to the driver This assigns the minor number 192 to the yurex driver. We also fix up the previous usb minor number entry, it was wrong. Cc: Tomoki Sekiyama Signed-off-by: Greg Kroah-Hartman commit 6bc235a2e24a5ef677daee3fd4f74f6cd643e23c Author: Tomoki Sekiyama Date: Wed Sep 29 12:16:50 2010 +0900 USB: add driver for Meywa-Denki & Kayac YUREX Meywa-Denki/Kayac YUREX is a leg-shakes sensor device. See http://bbu.kayac.com/en/about/ for further information. This driver support read/write the leg-shakes counter in the device via a device file /dev/yurex[0-9]*. [minor coding style cleanups fixed by gregkh] Signed-off-by: Tomoki Sekiyama Cc: Jiri Kosina Signed-off-by: Greg Kroah-Hartman commit 3323b7107ece794eb3e16111b583f5afb6749278 Author: Michal Nazarewicz Date: Thu Oct 7 13:05:24 2010 +0200 USB: gadget: file_storage: reuse definitions from a header file This commit changes storage_common.c and file_storage.c to reuse definitions from linux/usb/storage.h header file. Signed-off-by: Michal Nazarewicz Cc: Alan Stern Cc: Matthew Wilcox Signed-off-by: Greg Kroah-Hartman commit 115bb1ffa54c3934f3617bdd4e4dfc68b11e1e69 Author: Matthew Wilcox Date: Thu Oct 7 13:05:23 2010 +0200 USB: Add UAS driver USB Attached SCSI is a new protocol specified jointly by the SCSI T10 committee and the USB Implementors Forum. Signed-off-by: Matthew Wilcox Cc: Matthew Dharm [mina86@mina86.com: updated to use new USB_ prefix] Signed-off-by: Michal Nazarewicz Signed-off-by: Greg Kroah-Hartman commit ae6d22fe1812ce8d40add3eb74ede9cfd2eae44f Author: Matthew Wilcox Date: Thu Oct 7 13:05:22 2010 +0200 USB: Move USB Storage definitions to their own header file The libusual header file is hard to use from code that isn't part of libusual. As the comment suggests, these definitions are moved to their own header file, paralleling other USB classes. Signed-off-by: Matthew Wilcox Cc: Alan Stern [mina86@mina86.com: updated to use USB_ prefix and added #include guard] Signed-off-by: Michal Nazarewicz Signed-off-by: Greg Kroah-Hartman index 0000000..d7fc910 commit 8fa7fd74ef398370383df276ca41082ba35aafd8 Author: Michal Nazarewicz Date: Thu Oct 7 13:05:21 2010 +0200 USB: storage: Use USB_ prefix instead of US_ prefix This commit changes prefix for some of the USB mass storage class related macros (ie. USB_SC_ for subclass and USB_PR_ for class). Signed-off-by: Michal Nazarewicz Cc: Alan Stern Cc: Matthew Wilcox Signed-off-by: Greg Kroah-Hartman commit 1992de83e375acc789daf66b7b72a812a5235b75 Author: Matthias G. Eckermann Date: Fri Sep 24 18:12:01 2010 +0200 USB: qcserial: Enable Diagnostics Monitor and GPS ports on Gobi 2000 this patch to qcserial.c enables the Diagnostics Monitor and NMEA GPS ports on Qualcomm Gobi 2000 devices. A Gobi 2000 device will provide 3 serial ports: # /dev/ttyUSB0 -> Diagnostics # /dev/ttyUSB1 -> 3G Modem # /dev/ttyUSB2 -> NMEA GPS port * The Diagnostics Monitor uses Qualcomm's DM protocol; I used libqcdm (ModemManager) to talk to it, found it working, but at least DM commands 12 and 64 are not implemented on my device (Gobi 2000 built into Thinkpad x100e). * Functionality of the 3G Modem port remains unchanged. * The GPS port and how to enable it has been confirmed now in the Gobi 3000 source code at: https://www.codeaurora.org/patches/quic/gobi/ Enable/disable GPS via: echo "\$GPS_START" > /dev/ttyUSB2 # use GPS echo "\$GPS_STOP" > /dev/ttyUSB2 Signed-off-by: Matthias G. Eckermann commit 6195e3c6aa84dbbf80a60731168118824bd58bba Author: Yauheni Kaliuta Date: Fri Sep 24 09:43:27 2010 +0300 USB: cdc.h: ncm: fix one more typo In usb_cdc_ncm_dpe32 the fields are 32 bit long and according to usb style (hungarian notation) should be called dwDatagramIndex and dwDatagramLength (see CDC NCM subclass spec, 3.3.2). Actually, they were called wDatagramIndex, wDatagramLength. Signed-off-by: Yauheni Kaliuta Signed-off-by: Greg Kroah-Hartman commit 677aeafe19e88c282af74564048243ccabb1c590 Author: Johan Hovold Date: Sun Sep 12 16:31:45 2010 +0200 USB: ftdi_sio: revert "USB: ftdi_sio: fix DTR/RTS line modes" This reverts commit 6a1a82df91fa0eb1cc76069a9efe5714d087eccd. RTS and DTR should not be modified based on CRTSCTS when calling set_termios. Modem control lines are raised at port open by the tty layer and should stay raised regardless of whether hardware flow control is enabled or not. This is in conformance with the way serial ports work today and many applications depend on this behaviour to be able to talk to hardware implementing hardware flow control (without the applications actually using it). Hardware which expects different behaviour on these lines can always use TIOCMSET/TIOCMBI[SC] after port open to change them. Reported-by: Daniel Mack Reported-by: Dave Mielke Signed-off-by: Johan Hovold Cc: stable Signed-off-by: Greg Kroah-Hartman commit 1f8dd0154e09220be346819b85d195c791bb0f0b Author: Matthew Garrett Date: Thu Sep 16 14:00:51 2010 -0400 USB: serial: Enable USB autosuspend by default on qcserial Seems to work fine in my testing. Signed-off-by: Matthew Garrett Signed-off-by: Greg Kroah-Hartman commit 969affff54702785330de553b790372e261e93f9 Author: Jean-Christophe PLAGNIOL-VILLARD Date: Mon Sep 20 18:31:07 2010 +0200 USB: atmel_usba_udc: force vbus_pin at -EINVAL when gpio_request failled to ensure gpio_is_valid return false Signed-off-by: Nicolas Ferre Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: stable Signed-off-by: Greg Kroah-Hartman commit e5dcd531ac7a040f1b4d35f58914a36ad6174e84 Author: Yauheni Kaliuta Date: Mon Sep 20 15:40:28 2010 +0300 USB: cdc.h: ncm: add missed constants and structures Make a dedicated structure for datagram pointer entry. There is no explicit declaration in the spec, but it's used by the host implementation and makes the structure more clear. Add some missed constants from the spec Signed-off-by: Yauheni Kaliuta Signed-off-by: Greg Kroah-Hartman commit 7fc09170cedc329ad274433b4f1a653e603600b5 Author: Yauheni Kaliuta Date: Mon Sep 20 15:40:27 2010 +0300 Revert "USB: ncm: added ncm.h with auxiliary definitions" This reverts commit 65e0b499105ec8ff3bc4ab7680873dec20127f9d. Since the host and gadget implementations are different, there is no common code for the file, remove for now. Signed-off-by: Yauheni Kaliuta Signed-off-by: Greg Kroah-Hartman commit 1f53c0e9bbf654ed93f63deee2bf5c9a1816966e Author: Yauheni Kaliuta Date: Mon Sep 20 15:40:26 2010 +0300 USB: cdc.h: ncm: typo and style fixes Some typos were in the initial commit, make the spelling according to the spec. Add some more comments. Also change constant names according to the style of the rest of the file Signed-off-by: Yauheni Kaliuta Signed-off-by: Greg Kroah-Hartman commit c6991b6fd2b4201174dc4620d0c8c4f5ff27b36f Author: Enrico Mioso Date: Fri Sep 17 10:54:23 2010 +0200 USB: option: Add new ONDA vendor id and product id for ONDA MT825UP This patch, adds to the option driver the Onda Communication (http://www.ondacommunication.com) vendor id, and the MT825UP modem device id. Note that many variants of this same device are being release here in Italy (at least one or two per telephony operator). These devices are perfectly equivalent except for some predefined settings (which can be changed of course). It should be noted that most ONDA devices are allready supported (they used other vendor's ids in the past). The patch seems working fine here, and the rest of the driver seems uninfluenced. Signed-off-by: Enrico Mioso Signed-off-by: Greg Kroah-Hartman commit 2f1136d1d08a63dcdbcd462621373f30d8dfe590 Author: DJ Delorie Date: Fri Sep 17 11:09:06 2010 -0400 USB: cp210x: Add Renesas RX-Stick device ID RX610 development board by Renesas Bus 001 Device 024: ID 045b:0053 Hitachi, Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x045b Hitachi, Ltd idProduct 0x0053 bcdDevice 1.00 iManufacturer 1 Silicon Labs iProduct 2 RX-Stick iSerial 3 0001 . . . http://am.renesas.com/rx610stick Signed-off-by: DJ Delorie Cc: stable Signed-off-by: Greg Kroah-Hartman commit ffb6748fa988927270cafb4d0988e42545b35f82 Author: Keshava Munegowda Date: Tue Sep 14 04:40:01 2010 +0530 usb: omap: ohci: Missing driver unregister in module exit The un-registration of OHCI driver was not done in the ohci_hcd_mod_exit function. This was affecting rmmod command not to work for OMAP3 platforms. The platform driver un-registration for OMAP3 platforms is perfomed while removing the OHCI module from kernel. Signed-off-by: Keshava Munegowda Signed-of-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman commit 3126d8236ca6f68eb8292c6af22c2e59afbeef24 Author: Rich Mattes Date: Tue Sep 14 00:35:40 2010 -0400 USB: ftdi_sio: Add PID for accesio products Adds support for Accesio USB to Serial adapters, which are built around FTDI FT232 UARTs. Tested with the Accesio USB-COM-4SM. Signed-off-by: Rich Mattes Cc: stable Signed-off-by: Greg Kroah-Hartman commit 82cef0b8bf90047ee10d6b826ca16630e4e80fae Author: Joe Perches Date: Mon Sep 13 21:23:58 2010 -0700 usb: host: oxu210hp-hcd: Use static const char * const where possible Signed-off-by: Joe Perches Signed-off-by: Greg Kroah-Hartman commit 834e2312e7a384877a876b0d34dffc3046c96bcb Author: Alan Stern Date: Mon Sep 13 10:43:25 2010 -0400 USB: teach "devices" file about Wireless and SuperSpeed USB The /sys/kernel/debug/usb/devices file doesn't know about Wireless or SuperSpeed USB. This patch (as1416b) teaches it, and updates the Documentation/usb/proc_sub_info.txt file accordingly. Signed-off-by: Alan Stern CC: David Vrabel CC: Sarah Sharp Signed-off-by: Greg Kroah-Hartman commit d3134c3b1a5d2a9dca2ddacacb5d08fad7941d8c Author: Andy Shevchenko Date: Mon Sep 13 11:24:52 2010 +0300 uwb: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Cc: David Vrabel Signed-off-by: Greg Kroah-Hartman commit ecfa153ef616b901e86d9a051b329fcda7a6ce7b Author: Mauro Carvalho Chehab Date: Sun Sep 12 11:41:50 2010 -0300 USB: option: Add more ZTE modem USB id's There are lots of ZTE USB id's currently not covered by usb/serial. Adds them, to allow those devices to work properly on Linux. While here, put the USB ID's for 0x2002/0x2003 at the sorted order. This patch is based on zte.c file found on MF645. PS.: The ZTE driver is commenting the USB ID for 0x0053. It also adds, commented, an USB ID for 0x0026. Not sure why, but I think that 0053 is used by their devices in storage mode only. So, I opted to keep the comment on this patch. Signed-off-by: Mauro Carvalho Chehab Cc: stable Signed-off-by: Greg Kroah-Hartman commit c0109b8fd29d1e1623fc0455cdf00463052bb566 Author: Joe Perches Date: Sat Sep 11 22:10:58 2010 -0700 USB: gadget: Remove pr_ uses of KERN_ Signed-off-by: Joe Perches Signed-off-by: Greg Kroah-Hartman commit e9137c2e44116a1fcb82bb99dc84318e792c150b Author: Javier Martinez Canillas Date: Thu Sep 9 17:31:29 2010 -0400 USB: isp1362-hcd: Removes CONFIG_USB_OTG dependent code, fix build breakage In today linux-next I got a compile error on usb/host/isp1362-hcd: drivers/usb/host/isp1362-hcd.c: In function ‘isp1362_hub_control’: drivers/usb/host/isp1362-hcd.c:1680: error: ‘ohci’ undeclared (first use in this function) The problem is when the CONFIG_USB_OTG option is enabled. ohci variable is never declared and there isn't any CONFIG_USB_OTG dependent code besides the portion defined in isp1362_hub_control. So I think that maybe USB OTG support is not needed/supported. This patch removes the CONFIG_USB_OTG dependent block so the driver can compile cleanly. Signed-off-by: Javier Martinez Canillas Cc: Mike Frysinger Cc: Lothar Wassmann Signed-off-by: Greg Kroah-Hartman commit 5c836e4d583701a5eecb288b5f131da39115f5ec Author: Roger Quadros Date: Wed Sep 8 13:48:44 2010 +0300 usb gadget: composite: prevent OOPS for non-standard control request The composite gadget will OOPS if the host sends a control request targetted to an interface of an un-configured composite device. This patch prevents this. The OOPS was observed during WHQL USB CV tests. With this patch, the device STALLs as per requirement. Failing test case: From host do the following. I used libusb-1.0 1) Set configuration to zero. libusb_control_transfer(device_handle, 0, /* standard OUT */ 0x9, /* setConfiguration */ 0, 0, NULL, 0, 0); 2) Query current configuratioan. libusb_control_transfer(device_handle, 0x80, /* standard IN*/ 0x8, /* getConfiguration */ 0, 0, data, 1, 0); 3) Send the non-standard ctrl transfer targetted to interface libusb_control_transfer(device_handle, 0x81, /* standard IN to interface*/ 0x6, /* getDescriptor */ 0x2300, 0, data, 0x12, 0); Signed-off-by: Roger Quadros Cc: stable Cc: David Brownell Cc: Michal Nazarewicz Cc: Robert Lukassen Cc: Kyungmin Park Signed-off-by: Greg Kroah-Hartman commit 3df7169e73fc1d71a39cffeacc969f6840cdf52b Author: Alan Stern Date: Fri Sep 10 16:37:05 2010 -0400 OHCI: work around for nVidia shutdown problem This patch (as1417) fixes a problem affecting some (or all) nVidia chipsets. When the computer is shut down, the OHCI controllers continue to power the USB buses and evidently they drive a Reset signal out all their ports. This prevents attached devices from going to low power. Mouse LEDs stay on, for example, which is disconcerting for users and a drain on laptop batteries. The fix involves leaving each OHCI controller in the OPERATIONAL state during system shutdown rather than putting it in the RESET state. Although this nominally means the controller is running, in fact it's not doing very much since all the schedules are all disabled. However there is ongoing DMA to the Host Controller Communications Area, so the patch also disables the bus-master capability of all PCI USB controllers after the shutdown routine runs. The fix is applied only to nVidia-based PCI OHCI controllers, so it shouldn't cause problems on systems using other hardware. As an added safety measure, in case the kernel encounters one of these running controllers during boot, the patch changes quirk_usb_handoff_ohci() (which runs early on during PCI discovery) to reset the controller before anything bad can happen. Reported-by: Pali Rohár Signed-off-by: Alan Stern CC: David Brownell Tested-by: Pali Rohár CC: stable Signed-off-by: Greg Kroah-Hartman commit 637ed74ff9e86d8c2979e430309a1fd28c921de9 Author: Dan Carpenter Date: Fri Sep 10 21:35:15 2010 +0200 USB: ohci-sm501: add iounmap on error path This ioremap() was leaked on an error path. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit 5c8db070b4480c43394680d9dfd2ddb06b97d2ae Author: Praveena Nadahally Date: Fri Sep 10 23:05:03 2010 +0530 USB: Change acm_iad_descriptor bFunctionProtocol to USB_CDC_ACM_PROTO_AT_V25TER The protocol code is set 00 in IAD and it's set to 01 in ACM control interface descriptor in f_acm.c file. Due to this, windows is unable to install the modem(ACM) driver based on class-subclass-protocol matching. This patch corrects the protocol code in ACM IAD to the same as in acm_control_interface_desc protocol code. Acked-by: Linus Walleij Signed-off-by: Praveena Nadahally Cc: stable Signed-off-by: Greg Kroah-Hartman commit 92d3489ec58b5897a407b07ad9954497a119d3d0 Author: Javier Martinez Canillas Date: Fri Sep 10 08:42:08 2010 -0400 USB: r8a66597-udc: Initialize uninitialized variable, fix compile warning In today linux-next I got a compile warning due a possible uninitialized variable This patch solves the issue initializing the variable Signed-off-by: Javier Martinez Canillas Cc: David Brownell Cc: Paul Mundt Cc: Magnus Damm Cc: Yoshihiro Shimoda Signed-off-by: Greg Kroah-Hartman commit 56e9406ca22968e3c9dc27d6dc0f1825e13bfff9 Author: Hao Wu Date: Thu Sep 9 22:35:54 2010 +0100 USB OTG Langwell: Update OTG Kconfig and driver version. This patch updated Kconfig for langwell otg transceiver driver. Add ipc driver(INTEL_SCU_IPC) as a dependency. Driver version is updated too. Signed-off-by: Hao Wu Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit d39a0edad60dc65cf4774ee732aa7a84cf35c27a Author: Hao Wu Date: Thu Sep 9 22:35:39 2010 +0100 USB OTG: Add common data structure for Intel MID Platform (Langwell/Penwell) This patch adds one new header file for the common data structure used in Intel Penwell/Langwell MID Platform OTG Transceiver drivers. After switched to the common data structure, Langwell/Penwell OTG Transceiver driver will provide an unified interface to host/client driver. Reported-by: Randy Dunlap Signed-off-by: Hao Wu Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 5014b5e33a5485ab669ce536078c957ec221ade3 Author: Thomas Gleixner Date: Tue Sep 7 14:32:43 2010 +0000 usb: ftdi-elan: Convert "mutex" to semaphore The "mutex" ftdi->sw_lock is used as a lock and a completion. Convert it to a real semaphore which allows both. Signed-off-by: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman commit a1df4e45c81ec9ae6b537f845db48b82ab40ac4f Author: Mihai Donțu Date: Wed Sep 8 02:54:02 2010 +0300 USB: gadget: rndis: fix up coding style issues in the file Corrected the coding style. Signed-off-by: Mihai Dontu Cc: David Brownell Signed-off-by: Greg Kroah-Hartman commit 65fd42724aee31018b0bb53f4cb04971423be664 Author: Matthieu CASTET Date: Mon Sep 6 18:26:56 2010 +0200 USB: ehci tdi : let's tdi_reset set host mode tdi_reset is already taking care of setting host mode for tdi devices. Don't duplicate code in platform driver. Make ehci_halt a nop if the controller is not in host mode (otherwise it will fail), and let's ehci_reset do the tdi_reset. We need to move hcd->has_tt flags before ehci_halt, in order ehci_halt knows we are a tdi device. Before the setup routine was doing : - put controller in host mode - ehci_halt - ehci_init - hcd->has_tt = 1; - ehci_reset Now we do : - hcd->has_tt = 1; - ehci_halt - ehci_init - ehci_reset PS : now we handle correctly the device -> host transition. Signed-off-by: Matthieu CASTET Cc: Alan Stern Signed-off-by: Greg Kroah-Hartman commit eabf0f5f09b1f1538d22c14aa0a703c11791bd1e Author: Michael Prokop Date: Mon Sep 6 09:53:48 2010 +0200 USB: Kconfig: fix typos in USB_FUNCTIONFS* description It's spelled "Function Filesystem" / "FunctionFS". This patch fixes some typos (FunctioFS->FunctionFS, Funcion->Function, funcion->function, redundant "as") in the Kconfig description of USB_FUNCTIONFS*. Signed-off-by: Michael Prokop Acked-by: Michal Nazarewicz Signed-off-by: Greg Kroah-Hartman commit d8087427ccefc0b3364735b96274375246fd452c Author: Alan Stern Date: Fri Sep 3 11:15:41 2010 -0400 USB: g_file_storage: don't generate automatic serial string This patch (as1413) changes g_file_storage to avoid generating a bogus automatic serial-number string descriptor. If the user doesn't provide a valid serial number via a module parameter then a warning is logged and the gadget won't have any serial string descriptor at all. Signed-off-by: Alan Stern Acked-by: David Brownell CC: Michal Nazarewicz Signed-off-by: Greg Kroah-Hartman commit 10f47168721c0143f23e94eac2fc797aa643de39 Author: Joe Perches Date: Thu Sep 2 16:34:36 2010 +0200 USB: langwell: Remove unnecessary return's from void functions There are about 2500 void functions in drivers/usb Only a few used return; at end of function. Standardize them a bit. Signed-off-by: Joe Perches Signed-off-by: Jiri Kosina Cc: Stephen Rothwell Signed-off-by: Greg Kroah-Hartman commit f7dd64916bb6cfae8c96eaa3c754c30b5046586f Author: Simon Arlott Date: Mon Aug 30 22:50:20 2010 +0100 USB: output an error message when the pipe type doesn't match the endpoint type Commit f661c6f8c67bd55e93348f160d590ff9edf08904 adds a check of the pipe type if CONFIG_USB_DEBUG is enabled, but it doesn't output anything if this scenario occurs. Signed-off-by: Simon Arlott Cc: Alan Stern Signed-off-by: Greg Kroah-Hartman commit 0cf7a6338808d702c256778188516a16805e6145 Author: Julia Lawall Date: Sat Aug 28 18:48:56 2010 +0200 USB: gadget: amd5536udc.c: Remove double test The same expression is tested twice and the result is the same each time. Instead test for use_dma_ppb as in the test above. The sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @expression@ expression E; @@ ( * E || ... || E | * E && ... && E ) // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman commit 5ea081785dde6041eb2f4acc2369abbb9099a981 Author: Michal Nazarewicz Date: Thu Aug 12 17:43:56 2010 +0200 init.h: add some more documentation to __ref* tags The __ref* tags may have been confusing for new kernel developers (I was confused by them for sure) so adding a few more sentences to comment to clear things up for people who see those for the first time. Signed-off-by: Michal Nazarewicz Acked-by: Uwe Kleine-König Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit c9bfff9c98671ad50e4abbfe1ab606a9957f7539 Author: Uwe Kleine-König Date: Thu Aug 12 17:43:55 2010 +0200 usb gadget: don't save bind callback in struct usb_configuration The bind function is most of the time only called at init time so there is no need to save a pointer to it in the configuration structure. This fixes many section mismatches reported by modpost. Signed-off-by: Uwe Kleine-König [m.nazarewicz@samsung.com: updated for -next] Signed-off-by: Michał Nazarewicz Signed-off-by: Greg Kroah-Hartman commit 07a18bd716ed5dea336429404b132568cfaaef95 Author: Michal Nazarewicz Date: Thu Aug 12 17:43:54 2010 +0200 usb gadget: don't save bind callback in struct usb_composite_driver The bind function is most of the time only called at init time so there is no need to save a pointer to it in the composite driver structure. This fixes many section mismatches reported by modpost. Signed-off-by: Michał Nazarewicz Acked-by: Uwe Kleine-König Signed-off-by: Greg Kroah-Hartman commit b0fca50f5a94a268ed02cfddf44448051ed9343f Author: Uwe Kleine-König Date: Thu Aug 12 17:43:53 2010 +0200 usb gadget: don't save bind callback in struct usb_gadget_driver To accomplish this the function to register a gadget driver takes the bind function as a second argument. To make things clearer rename the function to resemble platform_driver_probe. This fixes many section mismatches like WARNING: drivers/usb/gadget/g_printer.o(.data+0xc): Section mismatch in reference from the variable printer_driver to the function .init.text:printer_bind() The variable printer_driver references the function __init printer_bind() All callers are fixed. Signed-off-by: Uwe Kleine-König [m.nazarewicz@samsung.com: added dbgp] Signed-off-by: Michał Nazarewicz Signed-off-by: Greg Kroah-Hartman commit e12995ec8f8d99f2a339541fc28998af2d60af0f Author: Michal Nazarewicz Date: Thu Aug 12 17:43:52 2010 +0200 USB: Revert "USB: gadget: section mismatch warning fixed" This reverts a commit which proposed an invalid solution for a section mismatch. Next 3 commits will fix it correctly. Conflicts: drivers/usb/gadget/mass_storage.c Signed-off-by: Michal Nazarewicz Signed-off-by: Greg Kroah-Hartman commit a99d8a45bc2f495be45b8d417b795d7282a69091 Author: Michal Nazarewicz Date: Thu Aug 12 17:43:49 2010 +0200 USB: gadget: g_multi: moved strings handling code to composite This patch removes some of the string registration from the Multifunction Composite Gadget as composite layer can handle the iManufacturer and iProduct for us. This also adds the "needs_serial" so that composite layer will issue a warning if user space fails to provide the iSerialNumber module parameter. Signed-off-by: Michal Nazarewicz Signed-off-by: Kyungmin Park Signed-off-by: Greg Kroah-Hartman commit 7c2b61d02c384a0d5867e524ae72ad98ec2d33fd Author: Michal Nazarewicz Date: Thu Aug 12 17:43:47 2010 +0200 USB: gadget: mass_storage: moved strings handling code to composite This patch removes string registration from the Mass Storage Gadget. With recent changes to the composite framework, all that we need is handled by the composite layer. This means composite registers a string ID for manufacturer and product. This also adds the "needs_serial" so that composite layer will issue a warning if user space fails to provide the iSerialNumber module parameter. Signed-off-by: Michal Nazarewicz Signed-off-by: Kyungmin Park Signed-off-by: Greg Kroah-Hartman commit ad1a8102f957f4d25fc58cdc10736c5ade7557e1 Author: Michal Nazarewicz Date: Thu Aug 12 17:43:46 2010 +0200 USB: gadget: composite: Better string override handling The iManufatcurer, iProduct and iSerialNumber composite module parameters were only used when the gadget driver registers strings for manufacturer, product and serial number. If the gadget never bothered to set corresponding fields in USB device descriptors those module parameters are ignored. This commit makes the parameters work even if the strings ID have not been assigned. It also changes the way IDs are overridden -- what IDs are overridden is now saved in usb_composite_dev structure -- which makes it unnecessary to modify the string tables the way previous code did. The commit also adds a iProduct and iManufatcurer fields to the usb_composite_device structure. If they are set, appropriate strings are reserved and added to device descriptor. This makes it unnecessary for gadget drivers to maintain code for setting those. If iProduct is not set it defaults to usb_composite_device::name; if iManufatcurer is not set a default " with " is used. The last thing is that if needs_serial field of usb_composite_device is set and user failed to provided iSerialNumber parameter a warning is issued. Signed-off-by: Michal Nazarewicz Signed-off-by: Kyungmin Park Signed-off-by: Greg Kroah-Hartman commit fc19de61ef5c17b6e19766052c6ac85cf31de876 Author: Michal Nazarewicz Date: Thu Aug 12 17:43:48 2010 +0200 USB: gadget: functionfs: code cleanup This patch removes some of the string registration from the FunctionFS Gadget as composite layer can handle the iManufacturer and iProduct for us. It also removes some of the module parameters which were redundant as well as changes the name of others to better much the module parameter of the composite layer. Other then that, it also fixes formatting of multiline comments to match the coding style. Signed-off-by: Michal Nazarewicz Signed-off-by: Kyungmin Park Signed-off-by: Greg Kroah-Hartman commit 9cfe745e652eacf57ffc7862b7b3ccbdf336ad19 Author: Michal Nazarewicz Date: Thu Aug 12 17:43:51 2010 +0200 usb: gadget: mass_storage: optional SCSI WRITE FUA bit The nofua parameter (optionally ignore SCSI WRITE FUA) was added to the File Storage Gadget some time ago. This patch adds the same functionality to the Mass Storage Function. Signed-off-by: Michal Nazarewicz Cc: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 452ee0eb10bd3581cf667a1db18cb684889ce446 Author: Michal Nazarewicz Date: Thu Aug 12 17:43:50 2010 +0200 usb: gadget: storage: remove nofua file when unbinding The dev_attr_nofua file was created during fsg_bind() but was never removed. Made it a bit more symmetrical and added code to remove the file in fsg_unbind(). Signed-off-by: Michal Nazarewicz Acked-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit ba0534be935d7b24e5fdd6f82c443ee75abc9149 Author: Michal Nazarewicz Date: Thu Aug 12 17:43:45 2010 +0200 USB: gadget: g_ffs: fixed vendor and product ID This patch fixes the vendor and product ID the gadget uses by replacing the temporary IDs that were used during development (which should never get into mainline) with proper IDs. Signed-off-by: Michal Nazarewicz Signed-off-by: Kyungmin Park Cc: stable Signed-off-by: Greg Kroah-Hartman commit 1c6529e92b7682573837e9c9eb7b5ba7a8216a88 Author: Michal Nazarewicz Date: Thu Aug 12 17:43:44 2010 +0200 USB: gadget: g_multi: fixed vendor and product ID This patch fixes the vendor and product ID the gadget uses by replacing the temporary IDs that were used during development (which should never get into mainline) with proper IDs. Signed-off-by: Michal Nazarewicz Signed-off-by: Kyungmin Park Cc: stable Signed-off-by: Greg Kroah-Hartman commit 4bec99174a5911457cddd87ceab4f5e038cc8141 Author: Wolfram Sang Date: Sun Aug 29 18:17:14 2010 +0200 USB: core: update comment to match current function name Found while debugging a USB problem and trying to find the mentioned function. Signed-off-by: Wolfram Sang Signed-off-by: Greg Kroah-Hartman commit 37b5801e16d2e192fe2b20f4af33aa8c6e8786f3 Author: Parirajan Muthalagu Date: Wed Aug 25 16:33:26 2010 +0530 USB Gadget: Verify VBUS current before setting the device self-powered bit Acked-by: David Brownell Acked-by: Linus Walleij Signed-off-by: Praveena Nadahally Signed-off-by: Parirajan Muthalagu Signed-off-by: Greg Kroah-Hartman commit 90593899de83a6e6fdea563d058acd2f4334e3f9 Author: Johan Hovold Date: Thu Aug 19 00:13:48 2010 +0200 USB: sam-ba: add driver for Atmel SAM Boot Assistant (SAM-BA) Add new driver to access the SAM-BA boot application of Atmel AT91SAM devices. The SAM-BA firmware cannot handle merged write requests so we cannot use the generic write implementation (which uses the port write fifo). Tested with the SAM-BA 2.10 tools and an Atmel at91sam9260-ek. Signed-off-by: Johan Hovold Tested-by: Peter Korsgaard Signed-off-by: Greg Kroah-Hartman commit c6a76781da6b7ee2589a6ec87be30abdbc303384 Author: Dan Carpenter Date: Thu Aug 12 09:40:30 2010 +0200 USB: gadget: dbgp: cleanup: remove unneeded check len is always greater than or equal to zero here. First of all, it's type is unsigned and also we only assign it numbers which are greater than or equal to zero. Removing the check lets us pull everything in an indent level. Signed-off-by: Dan Carpenter Acked-by: Stephane duverger Signed-off-by: Greg Kroah-Hartman commit 912c93d1606f60932de3e2f31db3722a9f069ed9 Author: JiebingLi Date: Thu Aug 5 14:18:29 2010 +0100 USB: langwell: USB Client driver memory handling SRAM Memory handling for USB client function Signed-off-by: JiebingLi Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 3211cbc20b406799423385cf62e1f1879b1ca8cc Author: JiebingLi Date: Thu Aug 5 14:18:21 2010 +0100 USB: langwell: USB Client Remote Wakeup Support Remote wakeup support in client driver. Made non-debug only this time. Signed-off-by: JiebingLi Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 513b91b688f527766bfe335d1ffd145257ad1624 Author: JiebingLi Date: Thu Aug 5 14:18:13 2010 +0100 USB: langwell: USB Client PHY low power mode setting PHY low power mode setting with a static function Signed-off-by: JiebingLi Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 3eed298ffa94d77901cfda269c4368de83d133fb Author: JiebingLi Date: Thu Aug 5 14:18:05 2010 +0100 USB: langwell: USB Client Endpoint initialization Endpoint software structure initialization Signed-off-by: JiebingLi Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 5f81f4b0c0a3db9e46a0e8041d7721117ac41956 Author: JiebingLi Date: Thu Aug 5 14:17:54 2010 +0100 USB: langwell: USB Client driver code cleanup Code cleanup by using standard debugging API's and USB inline functions Signed-off-by: JiebingLi Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit f0ae849df1cd6b597130d890f2107ee31bf02c19 Author: Hao Wu Date: Thu Aug 5 14:17:28 2010 +0100 usb: Add Intel Langwell USB OTG Transceiver Driver This adds support for the USB transceiver driver in the Langwell chipset used on the Intel MID platforms. It folds up the original patch set which includes basic support for the device, PHY low power mode (Please notice that there is a limitation, after we drive VBus down, 2ms delay is required from SCU FW to sync up OTGSC register with USBCFG register), software timers (the hardware timers do not work in low power mode), HNP, SRP. Signed-off-by: Hao Wu Signed-off-by: Alek Du Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit cd3ecad19aea8debae9a48b53de2ec7a571f24e9 Author: Daniel Drake Date: Wed Oct 20 16:00:48 2010 -0700 serial8250: ratelimit "too much work" error Running a serial console, if too many kernel messages are generated within a short time causing a lot of serial I/O, the 8250 driver will generate another kernel message reporting this, which just adds to the I/O. It has a cascading effect and quickly results the system being brought to its knees by a flood of "too much work" messages. Ratelimit the error message to avoid this. [akpm@linux-foundation.org: use the superior printk_ratelimited()] [akpm@linux-foundation.org: printk_ratelimited() needs ratelimit.h] Signed-off-by: Daniel Drake Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit 0dd25df1a4e63c078f357aaffb09789c9438378f Author: Sonic Zhang Date: Sat Oct 16 18:22:34 2010 -0400 serial: bfin_sport_uart: speed up sport RX sample rate to be 3% faster The actual uart baud rate of devices vary between +/-2% of what is asked. The SPORT RX sample rate should be faster than double of the worst case. Otherwise, wrong data may be received. So set SPORT RX clock to be 3% faster in general. Reported-by: Olivier STOCK Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger Signed-off-by: Greg Kroah-Hartman commit af7f3743567e3d5b40e2f9c21541b7f40b99c103 Author: Alan Cox Date: Mon Oct 18 11:38:02 2010 -0700 serial: abstraction for 8250 legacy ports Not every platform that has generic legacy 8250 ports manages to have them clocked the right way or without errata. Provide a generic interface to allow platforms to override the default behaviour in a manner that dumps the complexity in *their* code not the 8250 driver. Signed-off-by: Alan Cox Signed-off-by: Dirk Brandewie Acked-by: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman commit 4e4e66029af090c98cb10fafd13e8dd5039037a9 Author: Volker Ernst Date: Wed Oct 13 11:03:57 2010 +0200 serial/imx: check that the buffer is non-empty before sending it out The .start_tx callback (imx_start_tx here) isn't only called when the buffer is non-empty. E.g. after resume or when handshaking is enabled and the other side starts to signal being ready. So check for an empty puffer already before sending the first character. This prevents sending out stale (or uninitialised) data. Signed-off-by: Volker Ernst Signed-off-by: Daniel Mack Cc: Andy Green [ukl: reword commit log, put check in while condition] Signed-off-by: Uwe Kleine-König Signed-off-by: Greg Kroah-Hartman commit e5586eccc9aaf485985480e4d3049acffaa3fa90 Author: Feng Tang Date: Thu Oct 14 17:47:35 2010 +0800 serial: mfd: add more baud rates support Add more baud rates support referring the baud_table[] defined in drivers/char/tty_ioctl.c: 3000000/2000000/1000000/500000 Signed-off-by: Feng Tang Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit abf4f6a51477a68fe144b0c62f10c410b0c41378 Author: Breno Leitao Date: Thu Oct 7 13:40:42 2010 -0300 jsm: Remove the uart port on errors If kzmalloc fails, the uart port is not removed causing a leak. This patch just add another label that removes the uart when the kzmalloc fails. Signed-off-by: Breno Leitao Signed-off-by: Greg Kroah-Hartman commit 7d172bfefb72a8dae56beff326299c5e21f6f6db Author: Manuel Lauss Date: Sat Sep 25 15:13:46 2010 +0200 Alchemy: Add UART PM methods. Custom UART PM hook for Alchemy chips: do standard UART pm and additionally en/disable uart block clocks as needed. This allows to get rid of a debug port PM hack in the Alchemy pm code. Tested on Db1200. Signed-off-by: Manuel Lauss Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman commit c161afe9759ddcc174d08e7c4f683d08ac9ba86f Author: Manuel Lauss Date: Sat Sep 25 15:13:45 2010 +0200 8250: allow platforms to override PM hook. Add a hook for platforms to specify custom pm methods. Signed-off-by: Manuel Lauss Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 70eebd0b604989705f46697814e48fb4ea1d1bb9 Author: Anton Vorontsov Date: Fri Oct 1 17:23:13 2010 +0400 altera_uart: Don't use plain integer as NULL pointer Fixes sparse warning. Signed-off-by: Anton Vorontsov Cc: Alan Cox Acked-by: Tobias Klauser commit 5d89a48acfbaae02e7ecf97d4d8cc570a31964c5 Author: Anton Vorontsov Date: Fri Oct 1 17:22:55 2010 +0400 altera_uart: Fix missing prototype for registering an early console Simply add an early_altera_uart_setup() prototype declaration, otherwise platform code have to do it in .c files, which is ugly. Signed-off-by: Anton Vorontsov Acked-by: Tobias Klauser Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 288e9feb51f428377d486e18a107c144554e5e40 Author: Anton Vorontsov Date: Fri Oct 1 17:22:37 2010 +0400 altera_uart: Fixup type usage of port flags port->flags is of type upf_t, which corresponds to UPF_* flags. ASYNC_BOOT_AUTOCONF is an unsigned integer, which happen to be the same as UPF_BOOT_AUTOCONF. Signed-off-by: Anton Vorontsov Acked-by: Tobias Klauser Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 99793c660c811309ae4ca94cc9cf1c2f34940197 Author: Anton Vorontsov Date: Fri Oct 1 18:23:24 2010 +0400 altera_uart: Make it possible to use Altera UART and 8250 ports together This fixes tty name, major and minor numbers. The major number 204 is used across many platform-specific serial drivers, so we use that. Signed-off-by: Anton Vorontsov Acked-by: Tobias Klauser Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 0d426eda7c94d864ead913f7099c623521368443 Author: Anton Vorontsov Date: Fri Oct 1 17:21:54 2010 +0400 altera_uart: Add support for different address strides Some controllers implement registers with a stride, to support those we must implement the proper IO accessors. Signed-off-by: Anton Vorontsov Acked-by: Tobias Klauser Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 6b5756f176568a710d008d3b478128fafb6707f0 Author: Anton Vorontsov Date: Fri Oct 1 17:21:42 2010 +0400 altera_uart: Add support for getting mapbase and IRQ from resources This makes it much easier to integrate the driver with the rest of the Linux (e.g. MFD subsystem). The old method is still supported though. Also, from now on, there is one platform device per port (no changes are needed for the platform code, as no one registers the devices anywhere in-tree yet). Signed-off-by: Anton Vorontsov Acked-by: Tobias Klauser Cc: Alan Cox , Signed-off-by: Greg Kroah-Hartman commit 2f8b9c15cd88ce22bd80e6eb3988dbaa49f1efd3 Author: Anton Vorontsov Date: Fri Oct 1 17:21:33 2010 +0400 altera_uart: Add support for polling mode (IRQ-less) Some Altera UART implementations doesn't route the IRQ line, so we have to work in polling mode. Signed-off-by: Anton Vorontsov Acked-by: Tobias Klauser Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 54381067ed7873e6173d6fe32818a585ad667723 Author: Anton Vorontsov Date: Fri Oct 1 17:21:25 2010 +0400 serial: Factor out uart_poll_timeout() from 8250 driver Soon we will use that handy function in the altera_uart driver. Signed-off-by: Anton Vorontsov Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 8ee16a1b8985ac930d293553f589b5894eb6a60e Author: Greg Kroah-Hartman Date: Wed Oct 6 13:29:44 2010 -0700 serial: mark the 8250 driver as maintained Clearly I have gone insane, so I might as well tell the world about it. Signed-off-by: Greg Kroah-Hartman commit 97d303b7657c1a45c158d002f829ff69196c493d Author: David Daney Date: Tue Oct 5 11:40:07 2010 -0700 serial: 8250: Don't delay after transmitter is ready. The loop in wait_for_xmitr() is delaying one extra uS after the ready condition has been met. Rewrite the loop to only delay if the transmitter is not ready. Signed-off-by: David Daney Signed-off-by: Greg Kroah-Hartman commit fd8b6cb4d820c4a717af1a0ac3ee387fd84571cf Author: Breno Leitao Date: Wed Oct 6 13:04:48 2010 -0300 tty: MAINTAINERS: add drivers/serial/jsm/ as maintained driver Soott Kilau is handing off the maintainership of the jsm serial driver to me, and this patch just add the driver as maintained. Signed-off-by: Breno Leitao Signed-off-by: Greg Kroah-Hartman commit 432c9ed22aff641039ccd400cdabf983fabc285e Author: Nicolas Pitre Date: Fri Oct 1 00:10:44 2010 -0400 vcs: invoke the vt update callback when /dev/vcs* is written to A notifier chain is called whenever the vt code modifies a terminal content, except for one case which is when the modification comes through writes to /dev/vcs* devices. Let's add the missing notifier invocation at the end of vcs_write() for that case too. Signed-off-by: Nicolas Pitre Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 47725ac76f51328d467b1430dfd027aba8706a11 Author: Nicolas Pitre Date: Tue Oct 5 14:22:37 2010 -0400 vcs: add poll/fasync support The /dev/vcs* devices are used, amongst other things, by accessibility applications such as BRLTTY to display the screen content onto refreshable braille displays. Currently this is performed by constantly reading from /dev/vcsa0 whether or not the screen content has changed. Given the default braille refresh rate of 25 times per second, this easily qualifies as the biggest source of wake-up events preventing laptops from entering deeper power saving states. To avoid this periodic polling, let's add support for select()/poll() and SIGIO with the /dev/vcs* devices. The implemented semantic is to report data availability whenever the corresponding vt has seen some update after the last read() operation. The application still has to lseek() back as usual in order to read() the new data. Not to create unwanted overhead, the needed data structure is allocated and the vt notification callback is registered only when the poll or fasync method is invoked for the first time per file instance. Signed-off-by: Nicolas Pitre Cc: Andrew Morton Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit f4a3e0bceb57466c31757f25e4e0ed108d1299ec Author: Dr. Werner Fink Date: Wed Sep 22 12:45:40 2010 +0200 tty: Add a new file /proc/tty/consoles Add a new file /proc/tty/consoles to be able to determine the registered system console lines. If the reading process holds /dev/console open at the regular standard input stream the active device will be marked by an asterisk. Show possible operations and also decode the used flags of the listed console lines. Signed-off-by: Werner Fink Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman commit a9e2e06015201c32c43d3615c9bf5e0d4efb4302 Author: Alan Cox Date: Fri Sep 24 15:49:18 2010 +0100 tty: Fix warning left over from TIOCGICOUNT changes Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 0587102cf9f427c185bfdeb2cef41e13ee0264b1 Author: Alan Cox Date: Thu Sep 16 18:21:52 2010 +0100 tty: icount changeover for other main devices Again basically cut and paste Convert the main driver set to use the hooks for GICOUNT Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 0bca1b913affbd7e2fdaffee62a499659a466eb5 Author: Alan Cox Date: Thu Sep 16 18:21:40 2010 +0100 tty: Convert the USB drivers to the new icount interface Simple pasting job using the new ops function. Also fix a couple of devices directly returning the internal struct (which happens at this point to match for the fields that matter but isn't correct or futureproof) Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit d281da7ff6f70efca0553c288bb883e8605b3862 Author: Alan Cox Date: Thu Sep 16 18:21:24 2010 +0100 tty: Make tiocgicount a handler Dan Rosenberg noted that various drivers return the struct with uncleared fields. Instead of spending forever trying to stomp all the drivers that get it wrong (and every new driver) do the job in one place. This first patch adds the needed operations and hooks them up, including the needed USB midlayer and serial core plumbing. Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 68707539df1e9d12435e5d54ffedc7ded50fcd01 Author: Davidlohr Bueso Date: Mon Sep 13 12:08:11 2010 -0400 serial: max3107: Fix memory leaks when returning on error Fix memory leaks in max3107_probe() when returning on error. Signed-off-by: Davidlohr Bueso Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 91efa75ce14db63d1eb47a2935bc7332de243f8d Author: Alan Cox Date: Mon Sep 13 15:39:56 2010 +0800 serial: mrst_max3110: Make the IRQ option runtime And while we are at it allow it to fail to find one. Without this the IRQ option will cause the 3110 driver to fail on 0.7 SFI firmware. Acked-by: Feng Tang Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit ee9b4500eb6433015f35762d390666fede48e574 Author: Feng Tang Date: Mon Sep 13 15:39:48 2010 +0800 serial: mrst_max3110: some code cleanup The cleanup for mrst_max3110 includes: * remove unneeded head files * make the spi_transfer dma safe, so that driver is more portable * add more check for error return value * use mutex_trylock for read thread Signed-off-by: Feng Tang Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit b670bde0b2497966d76154cfb9706c38cf8348f9 Author: Vasiliy Kulikov Date: Sun Sep 5 22:32:22 2010 +0400 tty_io: check return code of tty_register_device Function tty_register_device may return ERR_PTR(...). Check for it. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit df480518a688f0d28f7e7de69abe6a441d1c2c64 Author: Jiri Slaby Date: Fri Sep 3 10:31:37 2010 +0200 Char: mxser, call pci_disable_device from probe/remove Vasiliy found that pci_disable_device is not called on fail paths in mxser_probe. Actually, it is called from nowhere in the driver. There are three changes needed: 1) don't use pseudo-generic mxser_release_res. Let's use it only from ISA paths from now on. All the pci stuff is moved to probe and remove PCI-related functions. 2) reorder fail-paths in the probe function so that it makes sense and we can call them from the sequential code naturally (the further we are the earlier label we go to). 3) add pci_disable_device both to mxser_probe and mxser_remove. There is a nit of adding CONFIG_PCI ifdef to mxser_remove. it is because this driver supports ISA-only compilations and it would choke up on the newly added calls now. Signed-off-by: Jiri Slaby Cc: Kulikov Vasiliy Signed-off-by: Greg Kroah-Hartman commit 24b4b67d17c308aaa956b73ab1e88190f6642bbe Author: Samo Pogacnik Date: Wed Aug 25 20:44:07 2010 +0200 add ttyprintk driver Ttyprintk is a pseudo TTY driver, which allows users to make printk messages, via output to ttyprintk device. It is possible to store "console" messages inline with kernel messages for better analyses of the boot process, for example. Signed-off-by: Samo Pogacnik Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 891b9dd10764352926e1e107756aa229dfa2c210 Author: Jason Wang Date: Sat Aug 21 15:14:42 2010 +0800 serial-core: restore termios settings when resume console ports The commit 4547be7 rewrites suspend and resume functions. According to this rewrite, when a serial port is a printk console device and can suspend(without set no_console_suspend flag), it will definitely call set_termios function during its resume, but parameter termios isn't initialized, this will pass an unpredictable config to the serial port. If this serial port is not a userspace opened tty device , a suspend and resume action will make this serial port unusable. I.E. ttyS0 is a printk console device, ttyS1 or keyboard+display is userspace tty device, a suspend/resume action will make ttyS0 unusable. If a serial port is both a printk console device and an opened tty device, this issue can be overcome because it will call set_termios again with the correct parameter in the uart_change_speed function. Refer to the deleted content of commit 4547be7, revert parts relate to restore settings into parameter termios. It is safe because if a serial port is a printk console only device, the only meaningful field in termios is c_cflag and its old config is saved in uport->cons->cflag, if this port is also an opened tty device, it will clear uport->cons->cflag in the uart_open and the old config is saved in tty->termios. Signed-off-by: Jason Wang Acked-by: Stanislav Brabec Signed-off-by: Greg Kroah-Hartman commit ca2e71aa8cfb0056ce720f3fd53f59f5fac4a3e1 Author: Jason Wang Date: Sat Aug 21 15:14:41 2010 +0800 serial-core: skip call set_termios/console_start when no_console_suspend The commit 4547be7 rewrites suspend and resume functions, this introduces a problem on the OMAP3EVM platoform. when the kernel boots with no_console_suspend and we suspend the kernel, then resume it, the serial console will be not usable. This problem should be common for all platforms. The cause for this problem is that when enter suspend, if we choose no_console_suspend, the console_stop will be skiped. But in resume function, the console port will be set to uninitialized state by calling set_termios function and the console_start is called without checking whether the no_console_suspend is set, Now fix it. Signed-off-by: Jason Wang Acked-by: Stanislav Brabec Signed-off-by: Greg Kroah-Hartman commit d838016af3b15452043256acad0be63f215115ba Author: Jeff Mahoney Date: Fri Aug 20 17:14:11 2010 -0400 ioctl: Use asm-generic/ioctls.h on s390 (enables termiox) This patch converts s390 to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - S390 defines its own value for FIOQSIZE, asm-generic/ioctls.h keeps it - The generic version adds TIOCGRS485 and TIOCGRS485, which are unused by any driver available on this architecture - The generic version adds support for termiox Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Jeff Mahoney Signed-off-by: Greg Kroah-Hartman commit 00c9c56f6b4c16237c5beb3a91325bf54a37be91 Author: Jeff Mahoney Date: Fri Aug 20 17:14:10 2010 -0400 ioctl: Use asm-generic/ioctls.h on mn10300 (enables termiox) This patch converts mn10300 to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - The generic version provides TIOCGRS485 and TIOCSRS485 but they are unused by any driver available for this architecture. - The generic version adds support for termiox Cc: David Howells Cc: Koichi Yasutake Signed-off-by: Jeff Mahoney Signed-off-by: Greg Kroah-Hartman commit c3f38a7b3f019d32ef5cbe471cba7e0033102cad Author: Jeff Mahoney Date: Fri Aug 20 17:14:09 2010 -0400 ioctl: Use asm-generic/ioctls.h on m68k (enables termiox) This patch converts m68k to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - m68k defines its own value for FIOQSIZE, asm-generic/ioctls.h keeps it - The generic version adds TIOCSRS485 and TIOCGRS485m which are unused by any driver available on this architecture. - The generic version adds support for termiox Cc: Geert Uytterhoeven Cc: Roman Zippel Signed-off-by: Jeff Mahoney Signed-off-by: Greg Kroah-Hartman commit 73352e4398917f3aced4ed162aed84bf0acc5313 Author: Jeff Mahoney Date: Fri Aug 20 17:14:08 2010 -0400 ioctl: Use asm-generic/ioctls.h on m32r (enables termiox) This patch converts m32r to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - The generic version adds TIOCGRS485 and TIOCGRS485, which are unused by any driver available on this architecture. - The generic version adds support for termiox Cc: Hirokazu Takata Cc: Greg Kroah-Hartman Signed-off-by: Jeff Mahoney Signed-off-by: Greg Kroah-Hartman commit e207386865b958bdd331ad43b5150220e3a01806 Author: Jeff Mahoney Date: Fri Aug 20 17:14:07 2010 -0400 ioctl: Use asm-generic/ioctls.h on ia64 (enables termiox) This patch converts ia64 to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - The generic version adds TIOCSRS485 and TIOCGRS485, which are unused by any driver available on this architecture. - The generic version adds support for termiox Cc: Tony Luck Cc: Fenghua Yu Signed-off-by: Jeff Mahoney Signed-off-by: Greg Kroah-Hartman commit 30b4b274e4699d7a8b265f53ccb1b7ca536c6394 Author: Jeff Mahoney Date: Fri Aug 20 17:14:06 2010 -0400 ioctl: Use asm-generic/ioctls.h on h8300 (enables termiox) This patch converts h8300 to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - H8300 defines its own value for FIOQSIZE, asm-generic/ioctls.h keeps it - The generic version adds TIOCSRS485 and TIOGSRS485, but are unused by any driver available on this architecture. - The generic version adds support for termiox Cc: Yoshinori Sato Signed-off-by: Jeff Mahoney Signed-off-by: Greg Kroah-Hartman commit 4735d234954342b8f0f6cb20ce9aa35ffe83e712 Author: Jeff Mahoney Date: Fri Aug 20 17:14:05 2010 -0400 ioctl: Use asm-generic/ioctls.h on frv (enables termiox) This patch converts frv to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - FRV defines its own value for FIOQSIZE, asm-generic/ioctls.h keeps it - FRV defines TIOCTTYGSTRUCT, kept in arch-specific version - The generic version provides TIOCGRS485 and TIOCSRS485 but they are unused by any driver available for this architecture. - The generic version adds support for termiox Cc: David Howells Signed-off-by: Jeff Mahoney Signed-off-by: Greg Kroah-Hartman commit 8bc3372d9e57db3c65cf00cea6cf14969875b055 Author: Jeff Mahoney Date: Fri Aug 20 17:14:04 2010 -0400 ioctl: Use asm-generic/ioctls.h on cris (enables termiox) This patch converts cris to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - CRIS defines two ioctls: TIOCSERSETRS485 and TIOCSERWRRS485, kept in arch-specific portion - CRIS defines a different value for TIOCSRS485, kept via ifndef in generic - The generic version adds support for termiox Cc: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Jeff Mahoney Signed-off-by: Greg Kroah-Hartman commit 94da7d6f1ff3793669946146d9b6ab9c608b938e Author: Jeff Mahoney Date: Fri Aug 20 17:14:03 2010 -0400 ioctl: Use asm-generic/ioctls.h on avr32 (enables termiox) This patch converts avr32 to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - The generic version adds support for termiox Acked-by: Haavard Skinnemoen Signed-off-by: Jeff Mahoney Signed-off-by: Greg Kroah-Hartman commit ccc14f5b9716a5ed4720c7c6af2afbe88dd24a02 Author: Jeff Mahoney Date: Fri Aug 20 17:14:02 2010 -0400 ioctl: Use asm-generic/ioctls.h on arm (enables termiox) This patch converts arm to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - ARM defines its own value for FIOQSIZE, asm-generic/ioctls.h keeps it - The generic version adds support for termiox Reviewed-by: Russell King Signed-off-by: Jeff Mahoney Signed-off-by: Greg Kroah-Hartman commit f573bd1764f0f3f47754ca1ae7b2eb2909798a60 Author: Pekka Enberg Date: Tue Aug 24 07:48:34 2010 +0300 tty: Remove __GFP_NOFAIL from tty_add_file() This patch removes __GFP_NOFAIL use from tty_add_file() and adds proper error handling to the call-sites of the function. Cc: Andrew Morton Cc: Alan Cox Cc: Arnd Bergmann Signed-off-by: Pekka Enberg Acked-by: David Rientjes Signed-off-by: Greg Kroah-Hartman commit 8a28af7f7e42cd0f107e0d84e4ece89e7ef24d3f Author: Michal Simek Date: Tue Aug 17 10:42:05 2010 +0200 serial: Add CONSOLE_POLL support for uartlite CONSOLE_POLL support for uartlite enables KGDB debugging over serial line. Signed-off-by: Michal Simek Signed-off-by: Jason Wessel Acked-by: Peter Korsgaard Signed-off-by: Greg Kroah-Hartman commit a95898114059e1038f3f7ee9bd2e43aefa62709a Author: Dan Carpenter Date: Thu Aug 12 09:50:09 2010 +0200 serial: mfd: snprintf() returns largish values snprintf() returns the number of bytes which would have been written so it can be larger than the size of the buffer. In this case it's fine, but people copy and paste this code so I've fixed it. Signed-off-by: Dan Carpenter Acked-by: Feng Tang Signed-off-by: Greg Kroah-Hartman commit de838a93cbf35671f890360b886a5c2a8a5d1aa4 Author: Dmitry Eremin-Solenikov Date: Mon Aug 9 18:22:50 2010 +0400 serport: place serport serio device correctly in the device tree Make serport serio device to be a child of corresponding tty device instead of just hanging at /sys/devices/serioX. Signed-off-by: Dmitry Eremin-Solenikov Acked-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman commit 30004ac9c090dcdcca99556b4587b3bad828731a Author: Dmitry Eremin-Solenikov Date: Mon Aug 9 18:22:49 2010 +0400 tty: add tty_struct->dev pointer to corresponding device instance Some device drivers (mostly tty line disciplines) would like to have way know a struct device instance corresponding to passed tty_struct. Add a struct device pointer to struct tty_struct and populate it during initialize_tty_struct(). Signed-off-by: Dmitry Eremin-Solenikov Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 5abd935661e01289ba143c3b2c1ba300c65bcc5f Author: Mark Brown Date: Wed Oct 20 11:22:42 2010 -0700 driver core: Display error codes when class suspend fails Aid diagnostics by printing the error code from failed suspends, which doesn't otherwise seem to get displayed. Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman commit 07681215975e05a1454b0afdeef07deb0db626ee Author: Nathan Fontenot Date: Tue Oct 19 12:46:19 2010 -0500 Driver core: Add section count to memory_block struct Add a section count property to the memory_block struct to track the number of memory sections that have been added/removed from a memory block. This allows us to know when the last memory section of a memory block has been removed so we can remove the memory block. Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt Reviewed-by: KAMEZAWA Hiroyuki Signed-off-by: Greg Kroah-Hartman commit 2938ffbd466d2811a6012609684a2298eef35065 Author: Nathan Fontenot Date: Tue Oct 19 12:45:24 2010 -0500 Driver core: Add mutex for adding/removing memory blocks Add a new mutex for use in adding and removing of memory blocks. This is needed to avoid any race conditions in which the same memory block could be added and removed at the same time. Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt Reviewed-By: KAMEZAWA Hiroyuki Signed-off-by: Greg Kroah-Hartman commit e4619c857d1d769b1172a75ba6b6ebd1186a9c58 Author: Nathan Fontenot Date: Tue Oct 19 12:44:20 2010 -0500 Driver core: Move find_memory_block routine Move the find_memory_block() routine up to avoid needing a forward declaration in subsequent patches. Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt Reviewed-By: KAMEZAWA Hiroyuki Signed-off-by: Greg Kroah-Hartman commit 1ce873abed551a4a0f35e25af9eeec4efdcf341b Author: dann frazier Date: Fri Oct 15 10:14:34 2010 -0600 hpilo: Despecificate driver from iLO generation This driver supports iLO, iLO2 and iLO3. However, comments and Kconfig reference only iLO and iLO2. Let's just call it "iLO" to avoid having to update strings for each iLO generation. This is similar to the change made to hpwdt in commit 36e3ff44cebd7e46756dec88f30c982bebefdab7. Signed-off-by: dann frazier Signed-off-by: Greg Kroah-Hartman commit 63d027a63888e993545d10fdfe4107d543f01bca Author: Robin Holt Date: Wed Sep 29 14:00:56 2010 -0500 driver core: Convert link_mem_sections to use find_memory_block_hinted. Modify link_mem_sections() to pass in the previous mem_block as a hint to locating the next mem_block. Since they are typically added in order this results in a massive saving in time during boot of a very large system. For example, on a 16TB x86_64 machine, it reduced the total time spent linking all node's memory sections from 1 hour, 27 minutes to 46 seconds. Signed-off-by: Robin Holt To: Gary Hade To: Badari Pulavarty To: Ingo Molnar Reviewed-by: KAMEZAWA Hiroyuki Signed-off-by: Greg Kroah-Hartman commit 98383031ed77c6eb49ab612166fef9c0efe1604a Author: Robin Holt Date: Wed Sep 29 14:00:55 2010 -0500 driver core: Introduce find_memory_block_hinted which utilizes kset_find_obj_hinted. Introduce a find_memory_block_hinted() which utilizes the recently added kset_find_obj_hinted(). Signed-off-by: Robin Holt To: Dave Hansen To: Matt Tolentino Reviewed-by: KAMEZAWA Hiroyuki Signed-off-by: Greg Kroah-Hartman commit c25d1dfbd403209025df41a737f82ce8f43d93f5 Author: Robin Holt Date: Wed Sep 29 14:00:54 2010 -0500 kobject: Introduce kset_find_obj_hinted. One call chain getting to kset_find_obj is: link_mem_sections() find_mem_section() kset_find_obj() This is done during boot. The memory sections were added in a linearly increasing order and link_mem_sections tends to utilize them in that same linear order. Introduce a kset_find_obj_hinted which is passed the result of the previous kset_find_obj which it uses for a quick "is the next object our desired object" check before falling back to the old behavior. Signed-off-by: Robin Holt To: Robert P. J. Day Reviewed-by: KAMEZAWA Hiroyuki Signed-off-by: Greg Kroah-Hartman commit ead454feb6cbfe0fa6a1eeb30aa9abc338dacf62 Author: Randy Dunlap Date: Fri Sep 24 14:36:49 2010 -0700 driver core: fix build for CONFIG_BLOCK not enabled Fix build errors when CONFIG_BLOCK is not enabled: drivers/base/core.c: In function 'get_device_parent': drivers/base/core.c:634: error: 'block_class' undeclared (first use in this function) drivers/base/core.c: In function 'device_add_class_symlinks': drivers/base/core.c:723: error: 'block_class' undeclared (first use in this function) drivers/base/core.c: In function 'device_remove_class_symlinks': drivers/base/core.c:751: error: 'block_class' undeclared (first use in this function) Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit 7a868088ee48d1816c10f9be6d32aef4cf30bcf7 Author: matt mooney Date: Fri Sep 24 12:17:11 2010 -0700 driver-core: base: change to new flag variable Replace EXTRA_CFLAGS with ccflags-y. Signed-off-by: matt mooney Acked-by: WANG Cong Signed-off-by: Greg Kroah-Hartman commit 38f49a5132f24d29236820eb5c7dd956e47f94a3 Author: Eric W. Biederman Date: Mon Sep 20 00:57:03 2010 -0700 sysfs: only access bin file vm_ops with the active lock bb->vm_ops is a cached copy of the vm_ops of the underlying sysfs bin file, which means that after sysfs_bin_remove_file completes it is only longer valid to deference bb->vm_ops. So move all of the tests of bb->vm_ops inside of where we hold the sysfs active lock. Signed-off-by: Eric W. Biederman Signed-off-by: Greg Kroah-Hartman commit a6849fa1f7d7d7adbeb6a696beeabfa078acf173 Author: Eric W. Biederman Date: Mon Sep 20 00:56:27 2010 -0700 sysfs: Fail bin file mmap if vma close is implemented. It is not reasonably possible to wrap vma->close(). To correctly wrap close would imply calling close on any vmas that remain when sysfs_remove_bin_file is called. Finding the proper lists walking them getting the locking right etc, requires deep knowledge of the mm subsystem and as such would require assistence from the mm subsystem to implement. That assistence does not currently exist. Signed-off-by: Eric W. Biederman Signed-off-by: Greg Kroah-Hartman commit 5fc6e9cbce3342379719fc0f8294c45bb888f5cc Author: Randy Dunlap Date: Sat Sep 18 13:23:08 2010 -0700 FW_LOADER: fix kconfig dependency warning on HOTPLUG Fix kconfig dependency warning for FW_LOADER. Lots of drivers select FW_LOADER without bothering to depend on HOTPLUG and/or without selecting HOTPLUG. A kernel builds fine when FW_LOADER is enabled, whether HOTPLUG is enabled or not, and a kernel config file (make oldconfig) is not changed by this patch. (Yes, drivers/base/firmware_class.c uses interfaces from linux/kobject.h, which does have some CONFIG_HOTPLUG dependencies, but this patch does not change that.) warning: (MICROCODE || MICROCODE_INTEL && MICROCODE || MICROCODE_AMD && MICROCODE || PCMCIA_LOAD_CIS && PCCARD && PCMCIA && EXPERIMENTAL || USB_IRDA && NET && IRDA && USB || BT_HCIBCM203X && NET && BT && USB || BT_HCIBFUSB && NET && BT && USB || BT_HCIBT3C && NET && BT && PCMCIA || BT_MRVL_SDIO && NET ... !STAGING_EXCLUDE_BUILD && USB && (X86 || ARM) && WLAN || DRM_NOUVEAU && STAGING && !STAGING_EXCLUDE_BUILD && DRM && PCI || TI_ST && STAGING && !STAGING_EXCLUDE_BUILD && RFKILL || DELL_RBU && X86) selects FW_LOADER which has unmet direct dependencies (HOTPLUG) (5200 byte line reduced a lot) Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit c66fdab64fd791bdd49fed4f5785643251ddf586 Author: Eric W. Biederman Date: Tue Sep 14 11:38:36 2010 -0700 uio: Statically allocate uio_class and use class .dev_attrs. Instead of adding uio class attributes manually after the uio device has been created and we have sent a uevent to userspace, use the class attribute mechanism. This removes races and makes the code simpler. At the same time don't bother to dynamically allocate a struct class for uio, just declare one statically. Less code is needed and it is easier to set the class parameters.tune the class Signed-off-by: Eric W. Biederman Reviewed-by: Thomas Gleixner Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman commit 91960a46c658b719c03fba80f1c60a96393bbcfd Author: Eric W. Biederman Date: Tue Sep 14 11:38:06 2010 -0700 uio: Support 2^MINOR_BITS minors register_chrdev limits uio devices to 256 minor numbers which causes problems on one system I have with 384+ uio devices. So instead set UIO_MAX_DEVICES to the maximum number of minors and use alloc_chrdev_region to reserve the uio minors. The final result is that the code works the same but the uio driver now supports any minor the idr allocator comes up with. Signed-off-by: Eric W. Biederman Reviewed-by: Thomas Gleixner Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman commit 6427a7655afd7f07dfa83736defd1d94656c83e5 Author: Eric W. Biederman Date: Tue Sep 14 11:37:36 2010 -0700 uio: Cleanup irq handling. Change the value of UIO_IRQ_NONE -2 to 0. 0 is well defined in the rest of the kernel as the value to indicate an irq has not been assigned. Update the calls to request_irq and free_irq to only ignore UIO_IRQ_NONE and UIO_IRQ_CUSTOM allowing the rest of the kernel's possible irq numbers to be used. Signed-off-by: Eric W. Biederman Reviewed-by: Thomas Gleixner Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman commit 70a9156bad9d9d1476df35dde582b9f411bf5914 Author: Eric W. Biederman Date: Tue Sep 14 11:36:54 2010 -0700 uio: Don't clear driver data Currently uio sets it's driver data to NULL just as it is unregistering attributes. sysfs maks the guaranatee that it will not call attributes after device_destroy is called so this is unncessary and leads to lots of unnecessary code in uio.c Signed-off-by: Eric W. Biederman Reviewed-by: Thomas Gleixner Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman commit 3d4f9d76b0641b7984f95982e390927fc5998ad6 Author: Eric W. Biederman Date: Tue Sep 14 11:36:27 2010 -0700 uio: Fix lack of locking in init_uio_class There is no locking in init_uio_class so multiple drivers can race and create multiple uio classes. Fix this by simplifying the code. In particular always register the uio class during module_init and make things simpler. Signed-off-by: Eric W. Biederman Reviewed-by: Thomas Gleixner Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman commit e52eec13cd6b7f30ab19081b387813e03e592ae5 Author: Andi Kleen Date: Wed Sep 8 16:54:17 2010 +0200 SYSFS: Allow boot time switching between deprecated and modern sysfs layout I have some systems which need legacy sysfs due to old tools that are making assumptions that a directory can never be a symlink to another directory, and it's a big hazzle to compile separate kernels for them. This patch turns CONFIG_SYSFS_DEPRECATED into a run time option that can be switched on/off the kernel command line. This way the same binary can be used in both cases with just a option on the command line. The old CONFIG_SYSFS_DEPRECATED_V2 option is still there to set the default. I kept the weird name to not break existing config files. Also the compat code can be still completely disabled by undefining CONFIG_SYSFS_DEPRECATED_SWITCH -- just the optimizer takes care of this now instead of lots of ifdefs. This makes the code look nicer. v2: This is an updated version on top of Kay's patch to only handle the block devices. I tested it on my old systems and that seems to work. Cc: axboe@kernel.dk Signed-off-by: Andi Kleen Cc: Kay Sievers Signed-off-by: Greg Kroah-Hartman commit 39aba963d937edb20db7d9d93e6dda5d2adfdcdd Author: Kay Sievers Date: Sat Sep 4 22:33:14 2010 -0700 driver core: remove CONFIG_SYSFS_DEPRECATED_V2 but keep it for block devices This patch removes the old CONFIG_SYSFS_DEPRECATED_V2 config option, but it keeps the logic around to handle block devices in the old manner as some people like to run new kernel versions on old (pre 2007/2008) distros. Signed-off-by: Kay Sievers Cc: Jens Axboe Cc: Stephen Hemminger Cc: "Eric W. Biederman" Cc: Alan Stern Cc: "James E.J. Bottomley" Cc: Andrew Morton Cc: Alexey Kuznetsov Cc: Randy Dunlap Cc: Tejun Heo Cc: "David S. Miller" Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Ingo Molnar Cc: Peter Zijlstra Cc: David Howells Signed-off-by: Greg Kroah-Hartman commit 807508c8ff9af6ce8f25c5ca5f3eb06a8e7d3286 Author: Anton Vorontsov Date: Tue Sep 7 17:31:54 2010 +0400 base/platform: Simplifications for NULL platform data/resources handling There's no need to explicitly check for data and resources being NULL, as platform_device_add_{data,resources}() do this internally nowadays. This makes the code more linear and less indented. Signed-off-by: Anton Vorontsov Signed-off-by: Greg Kroah-Hartman commit 5cfc64ceb6222aabec640ba76e89529a8fc2c1f0 Author: Anton Vorontsov Date: Tue Sep 7 17:31:49 2010 +0400 base/platform: Safe handling for NULL platform data and resources Some users of platform_device_add_{data,resources}() assume that NULL data and resources will be handled specially, i.e. just ignored. But the platform core ends up calling kmemdup(NULL, 0, ...), which returns a non-NULL result (i.e. ZERO_SIZE_PTR), which causes drivers to oops on a valid code, something like: if (platform_data) stuff = platform_data->stuff; This patch makes the platform core a bit more safe for such cases. Signed-off-by: Anton Vorontsov Signed-off-by: Greg Kroah-Hartman commit 87544653abe4a03324bc85dae32d5bdaabcfccef Author: Greg Kroah-Hartman Date: Tue Sep 21 06:39:23 2010 -0700 debugfs: mark me as the maintainer Add DEBUGFS information to my MAINTAINERS entry as some people have asked about this recently. Signed-off-by: Greg Kroah-Hartman commit da0d7f982d538f4a5bcdddb84df4a484a3b1770b Author: Greg Kroah-Hartman Date: Wed Sep 1 18:06:09 2010 -0700 pch_phub: fix build warnings This patch fixes up all of the build warnings for the pch_phub driver. Cc: Masayuki Ohtake Signed-off-by: Greg Kroah-Hartman commit cf4ece53460c64a04a643ef13f6b6cb4bf3a8342 Author: Masayuki Ohtak Date: Wed Sep 1 21:16:30 2010 +0900 add Packet hub driver for Topcliff Platform controller hub Packet hub driver of Topcliff PCH Topcliff PCH is the platform controller hub that is going to be used in Intel's upcoming general embedded platform. All IO peripherals in Topcliff PCH are actually devices sitting on AMBA bus. Packet hub is a special converter device in Topcliff PCH that translate AMBA transactions to PCI Express transactions and vice versa. Thus packet hub helps present all IO peripherals in Topcliff PCH as PCIE devices to IA system. Topcliff PCH has MAC address and Option ROM data. These data are in SROM which is connected to PCIE bus. Packet hub driver of Topcliff PCH can access MAC address and Option ROM data in SROM via sysfs interface. Signed-off-by: Greg Kroah-Hartman commit c64a0926710153b9d44c979d2942f4a8648fd74e Author: Kevin Hilman Date: Wed Aug 25 12:50:00 2010 -0700 driver core: platform_bus: allow runtime override of dev_pm_ops Currently, the platform_bus allows customization of several of the busses dev_pm_ops methods by using weak symbols so that platform code can override them. The weak-symbol approach is not scalable when wanting to support multiple platforms in a single kernel binary. Instead, provide __init methods for platform code to customize the dev_pm_ops methods at runtime. NOTE: after these dynamic methods are merged, the weak symbols should be removed from drivers/base/platform.c. AFAIK, this will only affect SH and sh-mobile which should be converted to use this runtime approach instead of the weak symbols. After SH & sh-mobile are converted, the weak symobols could be removed. Tested on OMAP3. Cc: Magnus Damm Acked-by: Grant Likely Signed-off-by: Kevin Hilman Signed-off-by: Greg Kroah-Hartman commit 1037246cacd45d951227c8798f181b3ba5c8bcbe Author: Kulikov Vasiliy Date: Tue Aug 3 19:44:23 2010 +0400 uio: do not use PCI resources before pci_enable_device() IRQ and resource[] may not have correct values until after PCI hotplug setup occurs at pci_enable_device() time. The semantic match that finds this problem is as follows: // @@ identifier x; identifier request ~= "pci_request.*|pci_resource.*"; @@ ( * x->irq | * x->resource | * request(x, ...) ) ... *pci_enable_device(x) // Signed-off-by: Kulikov Vasiliy Acked-by: Michael S. Tsirkin Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman commit d79d32440c33cf60f1e0efbeb8144b1647be0b50 Author: Patrick Pannuto Date: Fri Aug 6 17:12:41 2010 -0700 driver core: platform: Use drv->driver.bus instead of assuming platform_bus_type In theory (although not *yet* in practice), a driver being passed to platform_driver_probe might have driver.bus set to something other than platform_bus_type. Locking drv->driver.bus is always correct. Signed-off-by: Patrick Pannuto Signed-off-by: Greg Kroah-Hartman commit 6a5c083de2f5fbf89a4b0a251be2c2205434d7ea Author: Thomas Renninger Date: Fri Aug 6 16:11:03 2010 +0200 Dynamic Debug: Initialize dynamic debug earlier via arch_initcall Having the ddebug_query= boot parameter it makes sense to set up dynamic debug as soon as possible. I expect sysfs files cannot be set up via an arch_initcall, because this one is even before fs_initcall. Therefore I splitted the dynamic_debug_init function into an early one and a later one providing /sys/../dynamic_debug/control file. Possibly dynamic_debug can be initialized even earlier, not sure whether this still makes sense then. I picked up arch_initcall as it covers quite a lot already. Dynamic debug needs to allocate memory, therefore it's not easily possible to set it up even before the command line gets parsed. Therefore the boot param query string is stored in a temp string which is applied when dynamic debug gets set up. This has been tested with ddebug_query="file ec.c +p" and I could retrieve pr_debug() messages early at boot during ACPI setup: ACPI: EC: Look up EC in DSDT ACPI: EC: ---> status = 0x08 ACPI: EC: transaction start ACPI: EC: <--- command = 0x80 ACPI: EC: ~~~> interrupt ACPI: EC: ---> status = 0x08 ACPI: EC: <--- data = 0xa4 ... ACPI: Interpreter enabled ACPI: (supports S0 S3 S4 S5) ACPI: Using IOAPIC for interrupt routing ACPI: EC: ---> status = 0x00 ACPI: EC: transaction start ACPI: EC: <--- command = 0x80 Signed-off-by: Thomas Renninger Acked-by: jbaron@redhat.com Acked-by: Pekka Enberg CC: linux-acpi@vger.kernel.org Signed-off-by: Greg Kroah-Hartman commit a648ec05bb950fae2f35d0490ddd6cf15010af72 Author: Thomas Renninger Date: Fri Aug 6 16:11:02 2010 +0200 Dynamic Debug: Introduce ddebug_query= boot parameter Dynamic debug lacks the ability to enable debug messages at boot time. One could patch initramfs or service startup scripts to write to /sys/../dynamic_debug/control, but this sucks. This patch makes it possible to pass a query in the same format one can write to /sys/../dynamic_debug/control via boot param. When dynamic debug gets initialized, this query will automatically be applied. Signed-off-by: Thomas Renninger Acked-by: jbaron@redhat.com Acked-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit fd89cfb8718753459fcea3fe6103d19de5e86c9b Author: Thomas Renninger Date: Fri Aug 6 16:11:01 2010 +0200 Dynamic Debug: Split out query string parsing/setup from proc_write The parsing and applying of dynamic debug strings is not only useful for /sys/../dynamic_debug/control write access, but can also be used for boot parameter parsing. The boot parameter is introduced in a follow up patch. Signed-off-by: Thomas Renninger Acked-by: jbaron@redhat.com Acked-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit 297b0c5be3b6e08890cbd7149313408847e81715 Author: Chris Wilson Date: Fri Oct 22 17:02:41 2010 +0100 drm/i915/ringbuffer: Write the value passed in to the tail register This should fix the error along the reset path were we tried to clear the tail register by setting it to 0, but were in fact setting it to the current value and complaining when it did not reset to 0. Signed-off-by: Chris Wilson commit c7f572168fc4840727c9bda955b7f103922209cd Author: Clemens Ladisch Date: Fri Oct 22 18:20:48 2010 +0200 ALSA: usb-audio: add Novation Launchpad support Add a quirk entry for the Novation Launchpad USB MIDI controller. QUIRK_MIDI_FASTLANE gets renamed to *_RAW_BYTES because this quirk type is now shared by different devices. Signed-off-by: Clemens Ladisch Tested-by: Jakob Flierl Signed-off-by: Takashi Iwai commit 36845d09b93ff04b1c26c47f2c278dd779462468 Author: Dominik Brodowski Date: Fri Oct 22 18:39:23 2010 +0200 pcmcia: fix ni_daq_700 compilation Reported-by: Anca Emanuel Signed-off-by: Dominik Brodowski commit 91151240ed8e97cc4457dae4094153c2744f1eb8 Merge: 211baf4 fe8e0c2 Author: Linus Torvalds Date: Fri Oct 22 08:54:21 2010 -0700 Merge branch 'x86-irq-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-irq-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, 32-bit: Align percpu area and irq stacks to THREAD_SIZE x86: Move alloc_desk_mask variables inside ifdef x86-32: Align IRQ stacks properly x86: Remove CONFIG_4KSTACKS x86: Always use irq stacks Fixed up trivial conflicts in include/linux/{irq.h, percpu-defs.h} commit eb288a1f45e2aa903ac8edf67dc6d59df0369fe1 Author: Linus Walleij Date: Thu Oct 21 21:06:44 2010 +0200 spi: fixed odd static string conventions in core code This patch removes convention of passing a static string as a parameter to another static string. The convention is intended to reduce text usage by sharing the common bits of the string, but the implementation is inherently fragile (a change to one format string but not the other will nullify any possible advantage), it isn't necessarily a net win depending on what this compiler does, and it it reduces code readability. Signed-off-by: Linus Walleij [grant.likely@secretlab.ca: removed dev_dbg->dev_err hunk] Signed-off-by: Grant Likely commit 211baf4ffc6e78a2299bb4215264ada313048ec5 Merge: c19483c 995bd3b Author: Linus Torvalds Date: Fri Oct 22 08:47:45 2010 -0700 Merge branch 'x86-timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: Hpet: Avoid the comparator readback penalty commit a69a0612c4cb7b08570d1b25b542cef478a2d79a Author: Rakib Mullick Date: Thu Oct 21 17:28:44 2010 +0600 [CPUFREQ]: x86, cpufreq: Mark longrun_get_policy with __cpuinit. This patch fixes the following warning. The function longrun_cpu_init() is marked with __cpuinit which calls longrun_get_policy() which is a __init function. So make longrun_get_policy with __cpuinit. WARNING: arch/x86/kernel/cpu/cpufreq/longrun.o(.cpuinit.text+0x4c5): Section mismatch in reference from the function longrun_cpu_init() to the function .init.text:longrun_get_policy() The function __cpuinit longrun_cpu_init() references a function __init longrun_get_policy(). If longrun_get_policy is only used by longrun_cpu_init then annotate longrun_get_policy with a matching annotation. Signed-off-by: Rakib Mullick Signed-off-by: Dave Jones commit 3f78a9f7fcee0e9b44a15f39ac382664e301fad5 Author: David C Niemi Date: Wed Oct 6 16:54:24 2010 -0400 [CPUFREQ] add sampling_down_factor tunable to improve ondemand performance Adds a new global tunable, sampling_down_factor. Set to 1 it makes no changes from existing behavior, but set to greater than 1 (e.g. 100) it acts as a multiplier for the scheduling interval for reevaluating load when the CPU is at its top speed due to high load. This improves performance by reducing the overhead of load evaluation and helping the CPU stay at its top speed when truly busy, rather than shifting back and forth in speed. This tunable has no effect on behavior at lower speeds/lower CPU loads. This patch is against 2.6.36-rc6. This patch should help solve kernel bug 19672 "ondemand is slow". Signed-off-by: David Niemi Acked-by: Venkatesh Pallipadi CC: Daniel Hollocher CC: CC: Signed-off-by: Dave Jones commit b2a33c172890b231444803b0bb38c25ac5a0f274 Author: Julia Lawall Date: Sun Sep 5 21:00:20 2010 +0200 [CPUFREQ] arch/x86/kernel/cpu/cpufreq: Fix unsigned return type In each case, the function has an unsigned return type, but returns a negative constant to indicate an error condition. Each function is only called once. For nforce2_detect_chipset, the result is only compared to 0, and for longrun_determine_freqs, the result is stored in a variable of type (signed) int. Thus, for both functions, unsigned can be dropped from the return type. A sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @exists@ identifier f; constant C; @@ unsigned f(...) { <+... * return -C; ...+> } // Signed-off-by: Julia Lawall Signed-off-by: Dave Jones commit bec037aa6ccb5d561c880e369c409a1b28da5eb4 Author: Julia Lawall Date: Thu Aug 5 22:23:00 2010 +0200 [CPUFREQ] drivers/cpufreq: Adjust confusing if indentation Indent the body of for_each_cpu. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r disable braces4@ position p1,p2; statement S1,S2; @@ ( if (...) { ... } | if (...) S1@p1 S2@p2 ) @script:python@ p1 << r.p1; p2 << r.p2; @@ if (p1[0].column == p2[0].column): cocci.print_main("branch",p1) cocci.print_secs("after",p2) // Signed-off-by: Julia Lawall Signed-off-by: Dave Jones commit 46e387bbd82d438b9131e237e6e2cb55a825da49 Merge: e9d0856 3ef8fd7 Author: Andi Kleen Date: Fri Oct 22 17:40:48 2010 +0200 Merge branch 'hwpoison-hugepages' into hwpoison Conflicts: mm/memory-failure.c commit e9d08567ef72a2d0fb9b14dded386352d3136442 Merge: df27570 a08c80e Author: Andi Kleen Date: Fri Oct 22 17:40:11 2010 +0200 Merge branch 'hwpoison-cleanups' into hwpoison commit df27570f43923c246567b074418411c06cf0dce2 Merge: d4429f6 f7cb8b5 Author: Andi Kleen Date: Fri Oct 22 17:40:07 2010 +0200 Merge branch 'hwpoison-fixes-2.6.37' into hwpoison commit c19483cc5e56ac5e22dd19cf25ba210ab1537773 Author: Alan Cox Date: Fri Oct 22 14:11:26 2010 +0100 bluetooth: Fix missing NULL check Fortunately this is only exploitable on very unusual hardware. [Reported a while ago but nothing happened so just fixing it] Signed-off-by: Alan Cox Cc: stable@kernel.org Signed-off-by: Linus Torvalds commit 62b7e5e09bcb854ff05e6ee1aa161f8283dc36ee Author: Takashi Iwai Date: Fri Oct 22 17:15:47 2010 +0200 ALSA: hda - Add workarounds for CT-IBG controllers Creative IBG controllers require the playback stream-tags to be started from 1, instead of capture+1. Otherwise the stream stalls. Reported-by: Wai Yew CHAY Cc: Signed-off-by: Takashi Iwai commit 2656c36699677238edc9ec1fea79039f1fddbcb6 Author: Thomas Gleixner Date: Fri Oct 22 14:47:57 2010 +0200 genirq: Warn if enable_irq is called before irq is set up The recent changes in the genirq core unearthed a bug in arch/um which called enable_irq() before the interrupt was set up. Warn and return instead of crashing the machine with a NULL pointer dereference. Signed-off-by: Thomas Gleixner Cc: Richard Weinberger commit 85ccc35b7e4a5e7894570fe9b4e4b56d82fc3181 Author: Chris Wilson Date: Fri Oct 22 14:59:29 2010 +0100 agp/intel: Restore valid PTE bit for Sandybridge after bdd3072 In cleaning up the mask functions in bdd3072, the setting of the PTE valid bit was dropped for Sandybridge. Signed-off-by: Chris Wilson commit a74ccea51d4314632a81d568d59bf885e5b09d93 Author: Clemens Ladisch Date: Fri Oct 22 15:52:34 2010 +0200 ALSA: hda - Fix wrong TLV mute bit for STAC/IDT codecs The bit value set for TLV mute was wrong in commit de8c85f7840e5e29629de95f5af24297fb325e0b, which resulted in bogus dB ranges that screw up PulseAudio. Corrected with the right constant. Signed-off-by: Takashi Iwai commit eea4a0b19a2719e3e23b5450dd9fbe97789d2a57 Merge: d7842da dd49a38 Author: Ingo Molnar Date: Fri Oct 22 15:13:45 2010 +0200 Merge branch 'tip/perf/core-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/urgent commit d7842da470f244d258f21c5f72cd8388b3541d04 Author: Stephane Eranian Date: Wed Oct 20 15:25:01 2010 +0200 perf_events: Fix for transaction recovery in group_sched_in() This new version (see commit 8e5fc1a) is much simpler and ensures that in case of error in group_sched_in() during event_sched_in(), the events up to the failed event go through regular event_sched_out(). But the failed event and the remaining events in the group have their timings adjusted as if they had also gone through event_sched_in() and event_sched_out(). This ensures timing uniformity across all events in a group. This also takes care of the tstamp_stopped problem in case the group could never be scheduled. The tstamp_stopped is updated as if the event had actually run. With this patch, the following now reports correct time_enabled, in case the NMI watchdog is active: $ task -e unhalted_core_cycles,instructions_retired,baclears,baclears noploop 1 noploop for 1 seconds 0 unhalted_core_cycles (100.00% scaling, ena=997,552,872, run=0) 0 instructions_retired (100.00% scaling, ena=997,552,872, run=0) 0 baclears (100.00% scaling, ena=997,552,872, run=0) 0 baclears (100.00% scaling, ena=997,552,872, run=0) And the older test case also works: $ task -einstructions_retired,baclears,baclears -e unhalted_core_cycles,baclears,baclears sleep 5 1680885 instructions_retired (69.39% scaling, ena=950756, run=291006) 10735 baclears (69.39% scaling, ena=950756, run=291006) 10735 baclears (69.39% scaling, ena=950756, run=291006) 0 unhalted_core_cycles (100.00% scaling, ena=817932, run=0) 0 baclears (100.00% scaling, ena=817932, run=0) 0 baclears (100.00% scaling, ena=817932, run=0) Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra LKML-Reference: <4cbeeebc.8ee7d80a.5a28.0d5f@mx.google.com> Signed-off-by: Ingo Molnar commit 9ffcfa6f1f63eeac15555b745c292eb9f59130f6 Author: Stephane Eranian Date: Wed Oct 20 15:25:01 2010 +0200 perf_events: Revert: Fix transaction recovery in group_sched_in() This patch reverts commit 8e5fc1a (perf_events: Fix transaction recovery in group_sched_in()) because it had one flaw in case the group could never be scheduled. It would cause time_enabled to get negative. Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra LKML-Reference: <4cbeeeb7.0aefd80a.6e40.0e2f@mx.google.com> Signed-off-by: Ingo Molnar commit 96681fc3c9e7d1f89ab64e5eec40b6467c97680f Author: Peter Zijlstra Date: Tue Oct 19 14:55:33 2010 +0200 perf, x86: Use NUMA aware allocations for PEBS/BTS/DS allocations For performance reasons its best to use memory node local memory for per-cpu buffers. This logic comes from a much larger patch proposed by Stephane. Suggested-by: Stephane Eranian Signed-off-by: Peter Zijlstra Acked-by: Stephane Eranian LKML-Reference: <20101019134808.514465326@chello.nl> Signed-off-by: Ingo Molnar commit f80c9e304b8e8062230b0cda2c2fdd586149c771 Author: Peter Zijlstra Date: Tue Oct 19 14:50:02 2010 +0200 perf, x86: Clean up reserve_ds_buffers() signature Now that reserve_ds_buffers() never fails, change it to return void and remove all code dealing with the error return. Signed-off-by: Peter Zijlstra Acked-by: Stephane Eranian LKML-Reference: <20101019134808.462621937@chello.nl> Signed-off-by: Ingo Molnar commit 6809b6ea73f7291f2e495d40397f1172c9caa77e Author: Peter Zijlstra Date: Tue Oct 19 14:22:50 2010 +0200 perf, x86: Less disastrous PEBS/BTS buffer allocation failure Currently PEBS/BTS buffers are allocated when we instantiate the first event, when this fails everything fails. This is a problem because esp. BTS tries to allocate a rather large buffer (64K), which can easily fail. This patch changes the logic such that when either buffer allocation fails, we simply don't allow events that would use these facilities, but continue functioning for all other events. This logic comes from a much larger patch proposed by Stephane. Suggested-by: Stephane Eranian Signed-off-by: Peter Zijlstra Acked-by: Stephane Eranian LKML-Reference: <20101019134808.354429461@chello.nl> Signed-off-by: Ingo Molnar commit 5553be2620ac901c21a25657bd5b59f73254e6d5 Author: Peter Zijlstra Date: Tue Oct 19 14:38:11 2010 +0200 perf, x86: Fixup the precise_ip computation In case we don't have PEBS, the LBR fixup doesn't make sense. Signed-off-by: Peter Zijlstra Acked-by: Stephane Eranian LKML-Reference: <20101019134808.354429461@chello.nl> Signed-off-by: Ingo Molnar commit 65af94baca56beb3514d6cfce782634db9cf676d Author: Peter Zijlstra Date: Tue Oct 19 14:37:23 2010 +0200 perf, x86: Extract DS alloc/free functions Again, mostly a cleanup to unclutter the reserve_ds_buffer() code. Signed-off-by: Peter Zijlstra Acked-by: Stephane Eranian LKML-Reference: <20101019134808.304495776@chello.nl> Signed-off-by: Ingo Molnar commit 5ee25c87318fa3722026fd77089fa7ba0db8d447 Author: Peter Zijlstra Date: Tue Oct 19 14:15:04 2010 +0200 perf, x86: Extract PEBS/BTS allocation functions Mostly a cleanup.. it reduces code indentation and makes the code flow of reserve_ds_buffers() clearer. Signed-off-by: Peter Zijlstra Acked-by: Stephane Eranian LKML-Reference: <20101019134808.253453452@chello.nl> Signed-off-by: Ingo Molnar commit b39f88acd7d989b6b247ba87c480fc24ed71d9c5 Author: Peter Zijlstra Date: Tue Oct 19 14:08:29 2010 +0200 perf, x86: Extract PEBS/BTS buffer free routines So that we may grow additional call-sites.. Signed-off-by: Peter Zijlstra Acked-by: Stephane Eranian LKML-Reference: <20101019134808.196793164@chello.nl> Signed-off-by: Ingo Molnar commit b2b5ce022acf5e9f52f7b78c5579994fdde191d4 Author: Peter Zijlstra Date: Fri Oct 15 15:24:15 2010 +0200 sched, cgroup: Fixup broken cgroup movement Dima noticed that we fail to correct the ->vruntime of sleeping tasks when we move them between cgroups. Reported-by: Dima Zavin Signed-off-by: Peter Zijlstra Tested-by: Mike Galbraith LKML-Reference: <1287150604.29097.1513.camel@twins> Signed-off-by: Ingo Molnar commit 878a3c37d36142a192bdf5b6bfcf920832f431d7 Author: Chris Wilson Date: Fri Oct 22 10:48:12 2010 +0100 drm/i915: Fix flushing regression from 9af90d19f Whilst moving the code around in 9af90d19f, I dropped the or'ing in of new write domains which would zero out the write domain for a render target if later reused as a source later in the batch. This meant that we might drop a required flush before reading from the render target. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31043 Reported-by: xunx.fang@intel.com Signed-off-by: Chris Wilson commit 005a1d15f5a6b2bb4ada80349513effbf22b4588 Author: Jens Axboe Date: Fri Oct 22 10:58:33 2010 +0200 xen-blkfront: disable barrier/flush write support The driver doesn't handle empty flushes. Disable barrier/flush write support until this is fixed up. Signed-off-by: Jens Axboe commit 07bd8516a2f967aa67904c68ab97bb896a448b09 Author: Jan Beulich Date: Fri Oct 22 08:22:35 2010 +0100 x86, asm: Restore parentheses around one pushl_cfi argument These were (intentionally) stripped by "fix CFI macro invocations to deal with shortcomings in gas" to expose problems with unexpected splitting of arguments by older gas also on newer versions, but as it turns out there is at least one distro (Ubuntu 6.06) where even not having *any* spaces in a macro argument doesn't reliably prevent splitting into multiple arguments. Signed-off-by: Jan Beulich Acked-by: Alexander van Heukelum LKML-Reference: <4CC157DB020000780001E8A2@vpn.id2.novell.com> Signed-off-by: Ingo Molnar commit a22dcdb0032c78c6b443f6897d7ac432a3b5a272 Author: Alexander van Heukelum Date: Thu Oct 21 23:30:49 2010 +0200 x86, asm: Fix ancient-GAS workaround It turns out to generate something like this: printk ( ("<3>") "something"); The extra parentheses here break the UML compile. Change the sed-program to add the parentheses only for numbers. Reported-by: Ingo Molnar Signed-off-by: Alexander van Heukelum Acked-by: Jan Beulich LKML-Reference: <1287696649.20421.1401306095@webmail.messagingengine.com> Signed-off-by: Ingo Molnar commit e27d8538695d1aee69eb4fdd6f98988e6ffc5c33 Author: Chris Wilson Date: Fri Oct 22 09:15:22 2010 +0100 drm/i915/sdvo: Remove unused encoding member This block is only used when detecting whether the connector is HDMI and never again, so scope the variable to the detection routine. Signed-off-by: Chris Wilson commit 3c17fe4b8f40a112a85758a9ab2aebf772bdd647 Author: David Härdeman Date: Fri Sep 24 21:44:32 2010 +0200 i915: enable AVI infoframe for intel_hdmi.c [v4] This patch enables the sending of AVI infoframes in drivers/gpu/drm/i915/intel_hdmi.c. My receiver currently loses sync when the HDMI output on my computer (DG45FC motherboard) is switched from 800x600 (the BIOS resolution) to 1920x1080 as part of the boot. Fixable by switching inputs on the receiver a couple of times. With this patch, my receiver has not lost sync yet (> 40 tries). Fourth version, now based on drm-intel-next from: git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel.git Two questions still remain: I'm assuming that the sdvo hardware also stores a header ECC byte in the MSB of the first dword - is this correct? Does the SDVOB and SDVOC handling in intel_hdmi_set_avi_infoframe() look correct? Signed-off-by: David Härdeman Signed-off-by: Chris Wilson commit 5cc1c567c1106c22cee3b069c440da3f85f637f0 Author: Mike Frysinger Date: Wed Sep 22 02:46:44 2010 +0000 Blackfin: bf526-ezbrd/bf527-ezkit: add NAND partition for u-boot Since these boards can boot out of NAND, make sure we give u-boot its own partition by default to avoid clobbering it. Signed-off-by: Mike Frysinger commit 46284cd6bfc99a38165c41651477ec6497aa38ec Author: Sonic Zhang Date: Mon Sep 20 11:06:18 2010 +0000 Blackfin: merge kernel init memory back into main memory region If the kernel's init section is merged back into the main memory region during boot (which it should since that is how we've laid out the kernel linker map), we want to make sure that these aren't counted as independent regions. Otherwise, if a large mapping is attempted which starts in the init region and extends into the main memory region, the access_ok func will deny it. This leads to weird messages during runtime like "unable to map xxx library" from the ldso but upon running the application again, everything works fine. So if the address of the end of the init region is the same as the start of the main memory region, simply enlarge the memory region to include the init region. Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger commit 05bbec38dbafa60583be8347dea88919d48cc733 Author: steven miao Date: Fri Sep 17 03:03:17 2010 +0000 Blackfin: gpio: add peripheral group check Many Blackfin parts group sets of pins into a single functional unit. This means you cannot use different pins within a group for different peripherals. Our resource conflict checking thus far has been limited to individual pins, so if someone tried to grab a different pin from the same group, it would be allowed while silently changing the other pins in the same group. One common example is the pin set PG12 - PG15 on BF51x parts. They may either be used with SPI0 (1st function), or they may be used with PTP/PWM/AMS3 (3rd function). Ideally, we'd like to use PG12 - PG14 for SPI0 while using PG15 with AMS3, but the hardware does not permit this. In the past, the software would allow the pins to be requested this way, but ultimately things like the Blackfin SPI driver would stop working when the hardware rerouted to a different peripheral. Signed-off-by: steven miao Signed-off-by: Mike Frysinger commit a71159b96a210d3e4d9bd24dd21278aa29770e9d Author: Mike Frysinger Date: Tue Sep 7 20:07:58 2010 +0000 Blackfin: dma: bf54x: add missing break for SPORT1 TX IRQ Reported-by: D Binderman Signed-off-by: Mike Frysinger commit 99a5b2878b56d24919eb7e646f2d8e02f63a6efc Author: Sonic Zhang Date: Mon Sep 6 10:16:04 2010 +0000 Blackfin: add new cacheflush syscall Flushing caches sometimes requires anomaly workarounds which require supervisor-only insns. Normally we don't need to flush caches from userspace so this isn't a problem, but when gcc generates trampolines on the stack, we do. So add a new syscall for gcc to use modeled after the mips version. Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger commit 73775b892ee70bdc0dbd6aeeebb50894d062f9a1 Author: Mike Frysinger Date: Fri Aug 27 20:43:39 2010 +0000 Blackfin: bf548-ezkit: increase u-boot partition size The BF54x processor has a ton of on-chip peripherals and in order to support them all, the u-boot image is quite large. So give it 512KiB in all bootable flashes to make our lives easier. Signed-off-by: Mike Frysinger commit 39d3c1ca1f9482faa7d216c09553a6b81b955930 Author: steven miao Date: Thu Aug 26 08:25:13 2010 +0000 Blackfin: boards: add example i2c resources for ad525x devices Signed-off-by: steven miao Signed-off-by: Mike Frysinger commit bedeea6e3bdca8ccb455aef11d9db23911af3863 Author: Michael Hennerich Date: Fri Aug 20 11:59:27 2010 +0000 Blackfin: SIC: fix off-by-one error in loop Make sure we include EMAC_SYSTAT when showing errors. Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger commit 948ca1a788e948379c7164e2cc08797929f17258 Author: Sonic Zhang Date: Wed Aug 18 09:17:25 2010 +0000 Blackfin: bf537-stamp: tweak i2c address for ad5280 add-on tftlcd board The predefined i2c address 0x2c doesn't match the configuration of the ad5280 PINs AD0 and AD1 on the tftlcd add-on board. Both AD0 and AD1 are of voltage 3.3V, which means the i2c address should be 0x2F. Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger commit 8060bb6f59c9a7b8621cf4d6ca999d9f75f203cb Author: Mike Frysinger Date: Mon Aug 16 16:18:12 2010 +0000 Blackfin: bf51x: enable support for 0.2 silicon Signed-off-by: Mike Frysinger commit 33ded95b1ca5ebd27a762cabaee63f50eb46dcd6 Author: Barry Song Date: Thu Aug 12 07:56:40 2010 +0000 Blackfin: initial preempt support while returning from interrupt Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit c0ab9387456d7660dead96ce1b5463741f087db1 Author: Robin Getz Date: Fri Jul 9 17:29:26 2010 +0000 Blackfin: workaround anomaly 05000481 (corruption with ITEST MMRs) Nothing actually needs to use these MMRs (as direct cache manipulation is done with the DTEST MMRs), so simply hide the read funcs behind the anomaly define. They're generally unusable anyways when this anomaly is in effect. Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger commit 3d7dc8836a0f08cbe6d8d499ddce05809b687f58 Author: Mike Frysinger Date: Fri Jul 2 21:02:50 2010 +0000 Blackfin: i2c-gpio boards: use GPIO_PF# defines Rather than use raw numbers for the GPIO pins, use proper GPIO defines. Signed-off-by: Mike Frysinger commit 41c3e3346ab8e5caf9e76395bd812fac884ad371 Author: Barry Song Date: Tue Jun 29 08:43:38 2010 +0000 Blackfin: access_ok: permit L1 stack When apps run with their stack in L1, some system calls might be made where a buffer is in the stack as an argument. So make sure the core Blackfin access code does not reject this memory location. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit 027285e86fca48f1af3ed8b86a5c03453766f5ca Author: Barry Song Date: Mon Jun 28 08:39:37 2010 +0000 Blackfin: bf561-ezkit: add AD1836 codec resources This board has an AD1836 codec, so make sure we have the right resources declared for it. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit 175671e75c54cf4b17c71d9c99151dd5635964b1 Author: Barry Song Date: Mon Jun 21 10:19:50 2010 +0000 Blackfin: ptrace: enable access to L1 stacks If an app is placing its stack in L1 scratchpad SRAM, make sure ptrace is granted access to it so that gdb can do its thing. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit c5af5451fcf97f38f0c79cbb9f929af2779f234d Author: Mike Frysinger Date: Wed Jun 16 19:29:51 2010 +0000 Blackfin: boards: fix num_chipselect values for on-chip SPI buses The num_chipselect field for on-chip Blackfin SPI buses is supposed to be 1 larger than the number of actual CSs available. This is because the hardware starts counting at 1 and not 0. There is a field for "CS0", but it is marked as "reserved" everywhere. Signed-off-by: Mike Frysinger commit 8effc4a68bfc341764a2e3f3006c6dc8e67e9a67 Author: Michael Hennerich Date: Tue Jun 15 09:51:05 2010 +0000 Blackfin: ad7160eval: new board port Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger commit 27e9f0b43600c19bb244aed588fbc25ba92d6343 Author: Sonic Zhang Date: Wed Jun 2 08:24:18 2010 +0000 Blackfin: bf537-stamp: re-use regulator framework with ad5398 parts We don't need our own header and structure to hook up the ad5398 part, so drop the custom resources for it. Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger commit 1b04cbeabdbda802c53f4bf85cd9db0c82643152 Author: Sonic Zhang Date: Wed Jun 2 05:00:21 2010 +0000 Blackfin: bf537-stamp: re-use the fixed regulator voltage driver Rather than write our own ADP switch driver, use the existing fixed regulator driver and rewrite the platform resources accordingly. Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger commit 2adcf194cbf3ec5181efa8e7af180e2c9f1a63e2 Author: Michael Hennerich Date: Fri May 21 13:20:38 2010 +0000 Blackfin: SIC: BF537: change default data/error relative priorities Some peripherals might generate an error interrupt shortly after the data interrupt due to the fact that the peripheral isn't serviced fast enough. In most cases this isn't a problem and is expected behavior. This hasn't been a problem on most parts since you simply don't request the error interrupt (or you leave it disabled while there is an expected state) and do the peripheral status checking in the data interrupt. The Blackfin SIC allows people to prioritize data and error interrupts, and the Blackfin CEC allows interrupts of equal or higher priority to nest. The current default settings gives error interrupts a higher priority than data interrupts. So if an error occurs while processing the data interrupt, it will be serviced immediately. However, the error interrupt on the BF537 SIC cannot be enabled on a per-peripheral basis. Once the error interrupt is enabled for one peripheral, it is automatically enabled for all peripherals. Therefore lower the default multiplexed error interrupt priority so most people need not worry themselves with this issue. Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger commit 0891baef7d2e1777b81e780c3b8cfcc169d6979f Author: Michael Hennerich Date: Mon Mar 8 11:58:53 2010 +0000 Blackfin: bf537-stamp: add example IIO resources Signed-off-by: Michael Hennerich Signed-off-by: Sonic Zhang Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit 6fbfa0c41878a5284156d4678dc514c92524e0b9 Author: Barry Song Date: Mon Apr 12 05:04:15 2010 +0000 Blackfin: bf537-stamp: use correct spi mode with ad2s90 parts Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit 3cbcb1616c071543525e2ef2fab439848c8bac88 Author: Cliff Cai Date: Thu Apr 22 05:55:56 2010 +0000 Blackfin: bf537-stamp: add example adau1373 i2c resources Signed-off-by: Cliff Cai Signed-off-by: Mike Frysinger commit a65912ca57886fcfd2568e422fbc58f91b015c9e Author: Yi Li Date: Tue Apr 6 05:53:16 2010 +0000 Blackfin: bf537-stamp: add example adav801/3 resources Signed-off-by: Yi Li Signed-off-by: Mike Frysinger commit 92b20f7fb28e541d7f8efb4e3e8d81733aa8adfc Author: Barry Song Date: Wed Mar 17 08:12:30 2010 +0000 Blackfin: bf537-stamp: add example ad1937 i2c resources Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit 67d9963bd79b8f861387982ac5c0ff796f12be61 Author: Mike Frysinger Date: Tue Mar 16 14:28:44 2010 +0000 Blackfin: bf537-stamp: fix NAND resources The NAND platform driver expects the registers to have a "mem" resource type rather than "io". Signed-off-by: Mike Frysinger commit 9e75894c50d126bf3c8efb0efc91d5a93d6163dd Author: Michael Hennerich Date: Thu Mar 18 12:51:49 2010 +0000 Blackfin: boards: use proper irq flags with isp1362-hcd With the recent kernel update the isp1362-hcd driver evaluates the IORESOURCE_IRQ resource flags and requests the irq with the given polarity/edge settings. However the ISP1362 config requires low level/edge interrupts. Most of the Blackfin boards use some random flag or no flag at all. Make all boards use a know good flag IORESOURCE_IRQ_LOWEDGE. Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger commit 657bb918d91d8e291f7c40e4a101c44b53fe25fa Author: Valentin Yakovenkov Date: Tue Mar 16 13:01:50 2010 +0000 Blackfin: bf561-acvilon: fix NAND resources The NAND platform driver expects the registers to have a "mem" resource type rather than "io". Signed-off-by: Valentin Yakovenkov Signed-off-by: Mike Frysinger commit bf80caf4f14010f73cd4f14b49bba8fe6ae94046 Author: Michael Hennerich Date: Fri Apr 16 13:53:23 2010 +0000 Blackfin: cm-bf548: add support for Socket CAN Add platform resources for the on-chip CAN peripheral so we can use it. Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger commit b4627321e18582dcbdeb45d77df29d3177107c65 Author: Vivek Goyal Date: Fri Oct 22 09:48:43 2010 +0200 cfq-iosched: Fix a gcc 4.5 warning and put some comments - Andi encountedred following warning with gcc 4.5 linux/block/cfq-iosched.c: In function ‘cfq_dispatch_requests’: linux/block/cfq-iosched.c:2156:3: warning: array subscript is above array bounds - Warning happens due to following code. slice = group_slice * count / max_t(unsigned, cfqg->busy_queues_avg[cfqd->serving_prio], cfq_group_busy_queues_wl(cfqd->serving_prio, cfqd, cfqg)); gcc is complaining about cfqg->busy_queues_avg[] being indexed by CFQ prio classes (RT, BE and IDLE) while the array size is only 2. - At run time, we never access cfqg->busy_queues_avg[IDLE] and return from function before this code hits. - To fix warning increase the array size though it will remain unused. This patch also puts some comments to clarify some of the confusions. - I have taken Jens's patch and modified it a bit. - Compile tested with gcc 4.4 and boot tested. I don't have gcc 4.5 running, Andi can you please test it with gcc 4.5 to make sure it worked. Reported-by: Andi Kleen Signed-off-by: Vivek Goyal Acked-by: Jeff Moyer Signed-off-by: Jens Axboe commit 7ba80063e90302287625a105c546c2fc318fcfbf Author: Barry Song Date: Thu Jan 28 09:37:21 2010 +0000 Blackfin: boards: update AD183x resources Make sure we use the right Kconfig names and platform strings. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit f9f0e3b1f7ac4e9fa822e87dd4bbb38f8c389487 Author: Barry Song Date: Tue Nov 17 09:45:59 2009 +0000 Blackfin: bf537-stamp: update GPIO CS devices Now that we've rewritten the GPIO CS handling in the Blackfin SPI peripheral, we need to update the platform resources accordingly. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit 3d6437b35d68836b6ec4d45a24dfdafc61a27a84 Author: Mike Frysinger Date: Thu Oct 15 04:13:29 2009 +0000 Blackfin: punt short SPI MMR bit names Now that the common header defines everything and the SPI drivers are using it, we can drop these duplicated global namespace polluters. Signed-off-by: Mike Frysinger commit 779b7e64b536ff65bcd40c0292871d2bb9b6d6e5 Author: Thorsten Glaser Date: Sun Oct 3 18:48:51 2010 +0000 m68k: Add missing I/O macros {in,out}{w,l}_p() for !CONFIG_ISA On m68k, I/O macros like inb() outw() etc. are only defined to something useful if CONFIG_ISA is set; dummies are in place if not, but four macros were missing from the !CONFIG_ISA case. Adding these makes some drivers, such as speakup, compile again. Signed-off-by: Thorsten Glaser Signed-off-by: Geert Uytterhoeven commit 2f81a18446c3061b74f4770eb95adeba2a864b0f Author: Geert Uytterhoeven Date: Tue Sep 14 21:34:58 2010 +0200 m68k: Remove big kernel lock in cache flush code The cache flush code doesn't need a lock, so we can remove the use of the BKL. Signed-off-by: Geert Uytterhoeven Reported-by: Arnd Bergmann Suggested-by: Andreas Schwab commit 22e58f9de5d140116eb3a30d5e54396e3030bed2 Author: Andrew Morton Date: Sat Oct 2 19:32:41 2010 +0200 m68k: __pa(): cast arg to long Fixes this: drivers/char/mem.c: In function 'mmap_kmem': drivers/char/mem.c:342: warning: cast to pointer from integer of different size by doing what other archtiectures do. Cc: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Geert Uytterhoeven commit 8ce71db25edccde4d8e3e39bffb4178bf1018ef1 Author: Christian Dietrich Date: Mon Sep 6 16:36:47 2010 +0200 fbdev: atafb - Remove undead ifdef ATAFB_FALCON The ATAFB_FALCON ifdef isn't necessary at this point, because it is checked in an outer ifdef level already and has no effect here. Signed-off-by: Christian Dietrich Acked-by: Krzysztof Helt Signed-off-by: Geert Uytterhoeven commit 10b68799b32d60ff578742d0deebc98afff30dba Author: Vasiliy Kulikov Date: Sun Sep 19 16:55:21 2010 +0400 zorro: Fix device_register() error handling If device_register() fails then call put_device(). See comment to device_register. Signed-off-by: Vasiliy Kulikov Signed-off-by: Geert Uytterhoeven commit 0c37dd7c41b7391698bbe354b81fe9909c281984 Author: Henrik Kretzschmar Date: Fri Aug 20 19:13:24 2010 +0200 fbdev/m68k: Fix section mismatches in q40fb.c This patch moves the q40_fix and q40_var structures from .init.data to .devinit.data. This is where now the probe function resides, which only uses them. Signed-off-by: Henrik Kretzschmar Signed-off-by: Geert Uytterhoeven commit c6597dc46121582475358e3d46971902587d02d6 Author: Greg Ungerer Date: Tue Sep 7 15:49:31 2010 +1000 m68k/m68knommu: merge the MMU and non-MMU traps.h The MMU and non-MMU versions of traps.h are virtually identical, merge them into a single file. Signed-off-by: Greg Ungerer Signed-off-by: Geert Uytterhoeven commit cddafa3500fde4a07e5bf899ec97a04069f8f7ce Author: Greg Ungerer Date: Mon Sep 13 14:10:45 2010 +1000 m68k/m68knommu: merge MMU and non-MMU thread_info.h The MMU and non-MMU versions of thread_info.h are quite similar. Merge the two files. Signed-off-by: Greg Ungerer Signed-off-by: Geert Uytterhoeven commit 69f99746a2cfd88b9caed8e320ad86405b228ada Author: Greg Ungerer Date: Wed Sep 8 10:31:11 2010 +1000 m68k/m68knommu: merge MMU and non-MMU atomic.h The only difference between the MMU and non-MMU versions of atomic.h is some extra support needed by ColdFire family processors. So merge this into the MMU version of atomic.h. Signed-off-by: Greg Ungerer Signed-off-by: Geert Uytterhoeven commit 138ff3462f53a7370bef15443e623ecba1c350bf Author: Greg Ungerer Date: Tue Sep 7 15:49:10 2010 +1000 m68k/m68knommu: clean up page.h There is a lot of common defines in the MMU and non-MMU variants of page.h. Factor out the common stuff into the master page.h. It still includes the underlying page_mm.h or page_no.h, but they only contain the real differences now. Signed-off-by: Greg Ungerer Signed-off-by: Geert Uytterhoeven commit b0860c1d80016df82b93b926f1cff3110ccb5028 Author: Greg Ungerer Date: Tue Sep 7 15:48:43 2010 +1000 m68k/m68knommu: merge machdep.h files into a single file No need to have separate machdep.h files for each of the MMU and non-MMU cases. Merge them all into a single file. Signed-off-by: Greg Ungerer Signed-off-by: Geert Uytterhoeven commit ea61bc461d09e8d331a307916530aaae808c72a2 Author: Greg Ungerer Date: Tue Sep 7 14:52:52 2010 +1000 m68k/m68knommu: merge MMU and non-MMU string.h The MMU and non-MMU string.h varients (string_no.h and string_mm.h) and almost the same. Switch to using the string_mm.h one, merging in the necessary ColdFire support. Signed-off-by: Greg Ungerer Signed-off-by: Geert Uytterhoeven commit 5bc5a70b62e5b672e40dd031da3e0444f62dbd3a Author: Christian Dietrich Date: Wed Aug 4 14:41:45 2010 +0200 m68k/m68knommu: Remove dead SMP config option CONFIG_SMP doesn't exist in Kconfig (for this architecure), therefore remove all references to it from the source. Signed-off-by: Christian Dietrich Signed-off-by: Geert Uytterhoeven commit a8a6aa0f060e98f9af170c0905d3d5af3b3fa21d Author: Greg Ungerer Date: Tue Sep 7 15:49:00 2010 +1000 m68k: move definition of THREAD_SIZE into thread_info_mm.h Move the definition of THREAD_SIZE from page_mm.h to thread_info_mm.h This logically associates it with the other thread definitions, and will make it easier to merge the MMU and non-MMU versions of page.h and thread_info.h. Signed-off-by: Greg Ungerer Signed-off-by: Geert Uytterhoeven commit 03e4012c6df858ace45bd8571be59d0c6021ad55 Author: Jeff Mahoney Date: Fri Aug 20 17:14:09 2010 -0400 m68k: Use asm-generic/ioctls.h (enables termiox) This patch converts m68k to use asm-generic/ioctls.h instead of its own version. The differences between the arch-specific version and the generic version are as follows: - m68k defines its own value for FIOQSIZE, asm-generic/ioctls.h keeps it - The generic version adds TIOCSRS485 and TIOCGRS485m which are unused by any driver available on this architecture. - The generic version adds support for termiox Cc: Geert Uytterhoeven Cc: Roman Zippel Cc: Greg Kroah-Hartman Signed-off-by: Jeff Mahoney Signed-off-by: Geert Uytterhoeven commit 808fa62f1b0f75eef76aa3a7682a8fd89eae581f Author: Christian Dietrich Date: Wed Aug 4 14:41:34 2010 +0200 m68k: Remove dead GG2 config option CONFIG_GG2 doesn't exist in Kconfig, therefore remove all references to it from the source. Signed-off-by: Christian Dietrich Signed-off-by: Geert Uytterhoeven commit 97ff46cb69da22037346670ae515217c658ace02 Author: Mingkai Hu Date: Tue Oct 12 18:18:34 2010 +0800 mtd/m25p80: add support to parse the partitions by OF node Signed-off-by: Mingkai Hu [grant.likely@secretlab.ca: wrap hunk with #ifdef CONFIG_OF] Signed-off-by: Grant Likely commit 73e1ac16258fe7e55cce4691e32c0b44d4579e08 Author: Michael Hennerich Date: Fri Oct 22 02:01:47 2010 -0400 spi/bfin_spi: only request GPIO on first load The gpiolib code does not allow people to do gpio_request() on a GPIO once it has already been requested. So make sure we only request the pin on the first setup of a SPI device. Otherwise, if you attempts to reconfigure a SPI device on the fly (like change bit sizes), the setup function incorrectly fails. Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger Signed-off-by: Grant Likely commit 782a895693a52fd8b288c33bdd7e98357888fc1f Author: Michael Hennerich Date: Fri Oct 22 02:01:48 2010 -0400 spi/bfin_spi: handle error/status changes after data interrupts The error interrupt on the BF537 SIC cannot be enabled on a per-peripheral basis. Once the error interrupt is enabled for one peripheral, it is automatically enabled for all. So in the Blackfin on-chip SPI driver, we need to clear out these known errors in the data interrupt once we've successfully finished processing all of the pending data. Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger Signed-off-by: Grant Likely commit ff10fca5ceacf7bc59636f5ab808e775d1717167 Author: Dominik Brodowski Date: Fri Oct 22 08:46:36 2010 +0200 pcmcia: IOCARD is also required for using IRQs Dave Hinds pointed out to me that 37979e1546a7 will break b43 and ray_cs, as IOCARD is not -- as the name would suggest -- only needed for cards using IO ports. Instead, as it re-deines several pins, it is also required for using interrupts. Signed-off-by: Dominik Brodowski commit 2c6605def534fc6d3d0635dd95f88d3d87d44d9f Author: Xiao Jiang Date: Thu Oct 21 16:15:50 2010 +0800 mx35pdk: add debug board support Enable debug board support for mx35pdk. Signed-off-by: Xiao Jiang Signed-off-by: Fabio Estevam Signed-off-by: Sascha Hauer commit 64f102b67f77f5054d27e58dbb26ec7ebef20e62 Author: Yong Shen Date: Thu Oct 21 21:18:59 2010 +0800 cpufreq for freescale mx51 Currently, only two operating points: 160Mhz and 800Mhz. the operating points are tested on babbage 3.0 Signed-off-by: Yong Shen Signed-off-by: Sascha Hauer commit b843e4ec01991a386a9e0e9030703524446e03da Author: Thomas Backlund Date: Thu Oct 21 13:19:10 2010 +0300 microblaze: Fix build with make 3.82 When running make headers_install_all on x86_64 and make 3.82 I hit this: arch/microblaze/Makefile:80: *** mixed implicit and normal rules. Stop. make: *** [headers_install_all] Error 2 So split the rules to satisfy make 3.82. Signed-off-by: Thomas Backlund Cc: Stable Signed-off-by: Michal Simek commit 2b9603a0d7e395fb844af90fba71448bc8019077 Author: Feng Tang Date: Mon Aug 2 15:52:15 2010 +0800 spi: enable spi_board_info to be registered after spi_master Currently spi_register_board_info() has to be called before its related spi_master be registered, otherwise these board info will be just ignored. This patch will remove this order limit, it adds a global spi master list like the existing global board info listr. Whenever a board info or a spi_master is registered, the spi master list or board info list will be scanned, and a new spi device will be created if there is a master-board info match. Signed-off-by: Feng Tang Signed-off-by: Grant Likely commit 557d58687dcdee6bc00c1a8f1fd4e0eac8fefce9 Author: Zhang Rui Date: Fri Oct 22 10:02:06 2010 +0800 ACPI battery: support percentage battery remaining capacity According to the ACPI spec, some kinds of primary battery can report percentage battery remaining capacity directly to OS. In this case, it reports the LastFullChargedCapacity == 100, BatteryPresentRate = 0xFFFFFFFF, and BatteryRemaingCapacity a percentage value, which actually means RemainingBatteryPercentage. Now we found some battery follows this rule even if it's a rechargeable. https://bugzilla.kernel.org/show_bug.cgi?id=15979 Handle these batteries correctly in ACPI battery driver so that they won't break userspace. Signed-off-by: Zhang Rui Tested-by: Sitsofe Wheeler Signed-off-by: Len Brown commit 7a18e96dcbdec3c96876444ae2c7e36ce458e151 Author: Thomas Renninger Date: Thu Oct 21 18:24:57 2010 +0200 ACPI: Make Embedded Controller command timeout delay configurable Here and then there show up machines which need higher timeout values. Finding this on affected machines can be cumbersome, because ACPI_EC_DELAY is a compile option -> make it configurable via boot param. This can even be provided writable at runtime via: /sys/modules/acpi/parameters/ec_delay Known machines where this helps: Some HP machines where for whatever reasons specific EC accesses take very long at resume from S3 (in _WAK function). The AE_TIME error is passed upwards and the ACPI interpreter will not execute the rest of the _WAK function which results in not properly initialized devices/variables with different side-effects. Afaik, on some MSI machines this helped as well. If this param is needed there probably are underlying problems like: - EC firmware bug - A kernel EC driver bug - An ACPI interpreter behavior (e.g. timings when specific EC accesses happen and how) which the EC does not like - ... which should get evaluated further, but often are nasty or impossible to fix from OS side. Signed-off-by: Thomas Renninger Signed-off-by: Len Brown commit 55f411de484a0136a77d050e877578a60bc2e094 Author: Greg Ungerer Date: Fri Oct 22 15:12:34 2010 +1000 m68knommu: convert to using tracehook_report_syscall_* Break up syscall_trace() into separate entry and exit routines that use tracehook_report_syscall_entry() and tracehook_report_syscall_exit(). Signed-off-by: Greg Ungerer commit 41a2159b5b662e74a85b4824e3517f2397cc5867 Author: Greg Ungerer Date: Tue Oct 12 12:24:49 2010 +1000 m68knommu: some boards use fixed phy for FEC ethernet Define a fixed phy setup for use on boarts that directly connect the FEC ethernet controller to a switch. Signed-off-by: Greg Ungerer commit d4429f608abde89e8bc1e24b43cd503feb95c496 Merge: e10117d 6a1c9df Author: Linus Torvalds Date: Thu Oct 21 21:19:54 2010 -0700 Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (71 commits) powerpc/44x: Update ppc44x_defconfig powerpc/watchdog: Make default timeout for Book-E watchdog a Kconfig option fsl_rio: Add comments for sRIO registers. powerpc/fsl-booke: Add e55xx (64-bit) smp defconfig powerpc/fsl-booke: Add p5020 DS board support powerpc/fsl-booke64: Use TLB CAMs to cover linear mapping on FSL 64-bit chips powerpc/fsl-booke: Add support for FSL Arch v1.0 MMU in setup_page_sizes powerpc/fsl-booke: Add support for FSL 64-bit e5500 core powerpc/85xx: add cache-sram support powerpc/85xx: add ngPIXIS FPGA device tree node to the P1022DS board powerpc: Fix compile error with paca code on ppc64e powerpc/fsl-booke: Add p3041 DS board support oprofile/fsl emb: Don't set MSR[PMM] until after clearing the interrupt. powerpc/fsl-booke: Add PCI device ids for P2040/P3041/P5010/P5020 QoirQ chips powerpc/mpc8xxx_gpio: Add support for 'qoriq-gpio' controllers powerpc/fsl_booke: Add support to boot from core other than 0 powerpc/p1022: Add probing for individual DMA channels powerpc/fsl_soc: Search all global-utilities nodes for rstccr powerpc: Fix invalid page flags in create TLB CAM path for PTE_64BIT powerpc/mpc83xx: Support for MPC8308 P1M board ... Fix up conflict with the generic irq_work changes in arch/powerpc/kernel/time.c commit ec37a48d1d16c30b655ac5280209edf52a6775d4 Author: Jesse Gross Date: Thu Oct 21 11:30:43 2010 +0000 bnx2/bnx2x: Unsupported Ethtool operations should return -EINVAL. Some cards don't support changing vlan offloading settings. Make Ethtool set_flags return -EINVAL in those cases. Reported-by: Ben Hutchings Signed-off-by: Jesse Gross Signed-off-by: David S. Miller commit 0988c4c7fb5881377ec20a6452f739a722e97c6b Author: Jesse Gross Date: Thu Oct 21 11:30:42 2010 +0000 vlan: Calling vlan_hwaccel_do_receive() is always valid. It is now acceptable to receive vlan tagged packets at any time, even if CONFIG_VLAN_8021Q is not set. This means that calling vlan_hwaccel_do_receive() should not result in BUG() but rather just behave as if there were no vlan devices configured. Reported-by: Vladislav Zolotarov Signed-off-by: Jesse Gross Signed-off-by: David S. Miller commit e10117d36ef758da0690c95ecffc09d5dd7da479 Merge: f3270b1 89692c0 Author: Linus Torvalds Date: Thu Oct 21 19:03:38 2010 -0700 Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: (26 commits) include/linux/libata.h: fix typo pata_bf54x: fix return type of bfin_set_devctl Drivers: ata: Makefile: replace the use of -objs with -y libahci: fix result_tf handling after an ATA PIO data-in command pata_sl82c105: implement sff_irq_check() method pata_sil680: implement sff_irq_check() method pata_pdc202xx_old: implement sff_irq_check() method pata_cmd640: implement sff_irq_check() method ata_piix: Add device ID for ICH4-L pata_sil680: make sil680_sff_exec_command() 'static' ata: Intel IDE-R support libata: reorder ata_queued_cmd to remove alignment padding on 64 bit builds libata: Signal that our SATL supports WRITE SAME(16) with UNMAP ata_piix: remove SIDPR locking libata: implement cross-port EH exclusion libata: add @ap to ata_wait_register() and introduce ata_msleep() ata_piix: implement LPM support libata: implement LPM support for port multipliers libata: reimplement link power management libata: implement sata_link_scr_lpm() and make ata_dev_set_feature() global ... commit f3270b16e00f0614fa418dcc50883da5949375b4 Merge: 3044100 2decd65 Author: Linus Torvalds Date: Thu Oct 21 19:01:34 2010 -0700 Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2 * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2: (48 commits) ocfs2: Avoid to evaluate xattr block flags again. ocfs2/cluster: Release debugfs file elapsed_time_in_ms ocfs2: Add a mount option "coherency=*" to handle cluster coherency for O_DIRECT writes. Initialize max_slots early When I tried to compile I got the following warning: fs/ocfs2/slot_map.c: In function ‘ocfs2_init_slot_info’: fs/ocfs2/slot_map.c:360: warning: ‘bytes’ may be used uninitialized in this function fs/ocfs2/slot_map.c:360: note: ‘bytes’ was declared here Compiler: gcc version 4.4.3 (GCC) on Mandriva I'm not sure why this warning occurs, I think compiler don't know that variable "bytes" is initialized when it is sent by reference to ocfs2_slot_map_physical_size and it throws that ugly warning. However, a simple initialization of "bytes" variable with 0 will fix it. ocfs2: validate bg_free_bits_count after update ocfs2/cluster: Bump up dlm protocol to version 1.1 ocfs2/cluster: Show per region heartbeat elapsed time ocfs2/cluster: Add mlogs for heartbeat up/down events ocfs2/cluster: Create debugfs dir/files for each region ocfs2/cluster: Create debugfs files for live, quorum and failed region bitmaps ocfs2/cluster: Maintain bitmap of failed regions ocfs2/cluster: Maintain bitmap of quorum regions ocfs2/cluster: Track bitmap of live heartbeat regions ocfs2/cluster: Track number of global heartbeat regions ocfs2/cluster: Maintain live node bitmap per heartbeat region ocfs2/cluster: Reorganize o2hb debugfs init ocfs2/cluster: Check slots for unconfigured live nodes ocfs2/cluster: Print messages when adding/removing nodes ocfs2/cluster: Print messages when adding/removing heartbeat regions ... commit 3044100e58c84e133791c8b60a2f5bef69d732e4 Merge: b515316 67e87f0 Author: Linus Torvalds Date: Thu Oct 21 18:52:11 2010 -0700 Merge branch 'core-memblock-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'core-memblock-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (74 commits) x86-64: Only set max_pfn_mapped to 512 MiB if we enter via head_64.S xen: Cope with unmapped pages when initializing kernel pagetable memblock, bootmem: Round pfn properly for memory and reserved regions memblock: Annotate memblock functions with __init_memblock memblock: Allow memblock_init to be called early memblock/arm: Fix memblock_region_is_memory() typo x86, memblock: Remove __memblock_x86_find_in_range_size() memblock: Fix wraparound in find_region() x86-32, memblock: Make add_highpages honor early reserved ranges x86, memblock: Fix crashkernel allocation arm, memblock: Fix the sparsemem build memblock: Fix section mismatch warnings powerpc, memblock: Fix memblock API change fallout memblock, microblaze: Fix memblock API change fallout x86: Remove old bootmem code x86, memblock: Use memblock_memory_size()/memblock_free_memory_size() to get correct dma_reserve x86: Remove not used early_res code x86, memblock: Replace e820_/_early string with memblock_ x86: Use memblock to replace early_res x86, memblock: Use memblock_debug to control debug message print out ... Fix up trivial conflicts in arch/x86/kernel/setup.c and kernel/Makefile commit 650a35f868f809aade56ef960d8a465f57ac74e2 Author: Guy Martin Date: Mon Jun 14 19:24:41 2010 +0200 parisc: add tty driver to PDC console This patch adds a tty driver to the PDC console. It allows the use of ports not supported by linux as a console (e.g. serial port on C8000.) The tty driver will not register the ttyB device if PDC console driver has been unregistered. This happens when the early printk console is disabled as it has not been selected as the primary console. Signed-off-by: Guy Martin Signed-off-by: Kyle McMartin commit f8301041d7bdca3197d718518242eeba0c75352f Author: Joe Perches Date: Mon May 31 20:23:16 2010 -0700 drivers/parisc/iosapic.c: Remove unnecessary kzalloc cast Convert kzalloc to kcalloc Signed-off-by: Joe Perches Reviewed-by: Grant Grundler Signed-off-by: Kyle McMartin commit b97680c419b75b0c2cf6837a9f268e2ecbaf50f6 Author: FUJITA Tomonori Date: Tue Jun 29 16:29:04 2010 +0900 parisc: remove homegrown L1_CACHE_ALIGN macro Let's use the standard L1_CACHE_ALIGN macro instead. Signed-off-by: FUJITA Tomonori Signed-off-by: Kyle McMartin commit 89692c03226a066a017048cf7fbacbaa645f0e79 Author: Andrea Gelmini Date: Sat Oct 16 15:19:18 2010 +0200 include/linux/libata.h: fix typo Signed-off-by: Andrea Gelmini Signed-off-by: Jeff Garzik commit c0695733d56ea12ad62ee534c2eed91f917548ae Author: Mike Frysinger Date: Thu Oct 21 04:00:40 2010 -0400 pata_bf54x: fix return type of bfin_set_devctl The new devctl func added for us to the driver has the wrong return type. Which is to say there shouldn't be any. This fixes compile time warnings as there shouldn't be any runtime difference. Signed-off-by: Mike Frysinger Signed-off-by: Jeff Garzik commit 4b1be934110cee3ad8d3f813f1a5bf28a56ca691 Author: Tracey Dent Date: Fri Oct 15 23:41:33 2010 -0400 Drivers: ata: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Jeff Garzik commit 6ad601955315b010a117306b994f2204fae85fdc Author: Tejun Heo Date: Fri Oct 15 11:00:08 2010 +0200 libahci: fix result_tf handling after an ATA PIO data-in command ATA devices don't send D2H Reg FIS after an successful ATA PIO data-in command. The host is supposed to take the TF and E_Status of the preceding PIO Setup FIS. Update ahci_qc_fill_rtf() such that it takes TF + E_Status from PIO Setup FIS after a successful ATA PIO data-in command. Without this patch, result_tf for such a command is filled with the content of the previous D2H Reg FIS which belongs to a previous command, which can make the command incorrectly seen as failed. * Patch updated to grab the whole TF + E_Status from PIO Setup FIS instead of just E_Status as suggested by Robert Hancock. Signed-off-by: Tejun Heo Reported-by: Mark Lord Cc: Robert Hancock Cc: stable@kernel.org Signed-off-by: Jeff Garzik commit 0c03a1dd5bd8a37932ae1d519156172affef22fd Author: Erik Gilling Date: Thu Apr 22 15:58:25 2010 -0700 spi: add spi_tegra driver v2 changes: from Thierry Reding: * add "select TEGRA_SYSTEM_DMA" to Kconfig from Grant Likely: * add oneline description to header * inline references to DRIVER_NAME * inline references to BUSY_TIMEOUT * open coded bytes_per_word() * spi_readl/writel -> spi_tegra_readl/writel * move transfer validation to spi_tegra_transfer * don't request_mem_region iomem as platform bus does that for us * __exit -> __devexit v3 changes: from Russell King: * put request_mem_region back int from Grant Likely: * remove #undef DEBUG * add SLINK_ to register bit defines * remove unused bytes_per_word * make spi_tegra_readl/writel static linine * various refactoring for clarity * mark err if BSY bit is not cleared after 1000 retries * move spinlock to protect setting of RDY bit * subsys_initcall -> module_init v3 changes: from Grant Likely: * update spi_tegra to use PTR_ERRless dma API v4 changes: from Grant Likely: * remove empty spi_tegra_cleanup fucntion * allow device ids of -1 Signed-off-by: Erik Gilling Acked-by: Grant Likely Cc: Thierry Reding Cc: Russell King spi: tegra: cleanups from upstream review Change-Id: Icecf7e64efcb39de072a15234ba1faa4bad40d25 Signed-off-by: Erik Gilling commit 2da83b90bbbac586fca2735f7da21966a31ec33f Author: Christian Dietrich Date: Mon Sep 6 16:36:06 2010 +0200 arch/parisc: Removing undead ifdef CONFIG_PA20 The CONFIG_PA20 ifdef isn't necessary at this point, because it is checked in an outer ifdef level already and has no effect here. Signed-off-by: Christian Dietrich Signed-off-by: Kyle McMartin commit f2a443931e6c7616aa023f55ddfdbca8943ab0e9 Author: Mike Rapoport Date: Mon Sep 27 11:26:34 2010 +0200 tegra: harmony: enable PCI Express Signed-off-by: Mike Rapoport CC: Olof Johansson CC: Gary King Signed-off-by: Colin Cross commit 77ffc1465cec32489889d6bc9c288b7b0d2ce9fb Author: Mike Rapoport Date: Mon Sep 27 11:26:33 2010 +0200 tegra: add PCI Express support Change-Id: Ibd0bcd46895eb88952b9db29e1f68572d39aae01 Signed-off-by: Mike Rapoport Acked-by: Arnd Bergmann CC: Russell King CC: Gary King Signed-off-by: Colin Cross commit 8d685bc5e5cad76c05c9986c23a821c5bcef7c16 Author: Mike Rapoport Date: Mon Sep 27 11:26:32 2010 +0200 tegra: add PCI Express clocks Signed-off-by: Mike Rapoport CC: Gary King Signed-off-by: Colin Cross commit 4de3a8fa334851e642d4889d6afa6e5d3daea10a Author: Colin Cross Date: Mon Apr 5 13:16:42 2010 -0700 [ARM] tegra: Add APB DMA support The APB DMA block handles DMA transfers to and from some peripherals in the Tegra SOC. It reads from sequential addresses on the memory bus, and writes repeatedly to the same address on the APB bus. Two transfer modes are supported, oneshot for transferring a known size to or from a peripheral, and continuous for streaming data. In continuous mode, a callback occurs when the buffer is half full to allow the existing data to be handled and a new request queued.x v2 changes: dma API no longer uses PTR_ERR Signed-off-by: Erik Gilling Signed-off-by: Colin Cross commit 7056d423f16103f6700569f60ca842d91bfaabab Author: Colin Cross Date: Thu Apr 22 20:30:13 2010 -0700 [ARM] tegra: Add cpufreq support Implement cpufreq support for the Tegra SOC. DVFS is handled by the core virtual cpu clock. The frequencies of the two cores are tied together, the highest frequency requested by either core determines the actual frequency. Signed-off-by: Colin Cross commit 8486bddc09c84606fb22cf30c6282335275d4dfa Author: Colin Cross Date: Thu Jun 24 18:57:00 2010 -0700 [ARM] tegra: common: Update common clock init table Renames clocks in the clock init table to match the datasheet names Signed-off-by: Colin Cross commit b1b1d4a6f244eb9513f006a188f7ed30d5014de5 Author: Phil Carmody Date: Fri Sep 10 13:47:59 2010 +0300 parisc: unwind - optimise linked-list searches for modules Having many dozens of modules, the searches down the linked list of sections would dominate the lookup time, dwarfing any savings from the binary search within the section. A simple move-to-front optimisation exploits the commonality of the code paths taken, and in simple real-world tests on other architectures reduced the number of steps in the search to barely more than 1. Signed-off-by: Phil Carmody Signed-off-by: Kyle McMartin commit 71fc84cc35ee05913306bfe6e2454cdfc5bf7081 Author: Colin Cross Date: Mon Jun 7 20:49:46 2010 -0700 [ARM] tegra: clock: Add dvfs support, bug fixes, and cleanups - Add drivers to clock lookup table - Add new pll_m entries - Support I2C U16 divider - Fix rate reporting on 32.768kHz clock - Call propagate rate only if set_rate succeeds - Add support for audio_sync clock - Add 24MHz to PLLA frequency list - Correct i2s1/2/spdifout mux - Add suspend support - Fix enable/disable parent clocks in set_parent - Add max_rate parameter to all clocks - DVFS support - Add virtual cpu clock with dvfs - Support clk_round_rate - Fix requesting very high periph frequencies - Add quirks for PLLU: PLLU is slightly different from the rest of the PLLs. The lock enable bit is at bit 22 instead of 18 in the MISC register, and the post divider field is a single bit with reversed values from other PLLs. - Simplify recalculating clock rates - Fix UART divider flags - Remove unused clock ops Signed-off-by: Colin Cross commit 73625e3e2e2bc36198f5b43e0f32d9dfb8e3b77c Author: Colin Cross Date: Wed Jun 23 15:49:17 2010 -0700 [ARM] tegra: Add support for reading fuses The Tegra SOC contains fuses to identify the CPU type and bin, and a unique id. The CPU info is required to determine the correct voltages for each cpu and core frequency. Signed-off-by: Colin Cross commit 2e47b8b3c2dc0f9f0651ee0f20e163da09b20fb9 Author: Colin Cross Date: Wed Apr 7 12:59:42 2010 -0700 [ARM] tegra: gpio: Add suspend and wake support Includes checkpatch fixes and TEGRA_NR_GPIOS changes from Mike Rapoport Signed-off-by: Colin Cross commit c5f04b8d10a73f2a016d6815d64dd5eebc734097 Author: Colin Cross Date: Fri Jul 9 15:13:52 2010 -0700 [ARM] tegra: pinmux: add safe values, move tegra2, add suspend - the reset values for some pin groups in the tegra pin mux can result in functional errors due to conflicting with actively-configured pin groups muxing from the same controller. this change adds a known safe, non- conflicting mux for every pin group, which can be used on platforms where the pin group is not routed to any peripheral - also add each pin group's I/O voltage rail, to enable platform code to map from the pin groups used by each interface to the regulators used for dynamic voltage control - add routines to individually configure the tristate, pin mux and pull- ups for a pingroup_config array, so that it is possible to program individual values at run-time without modifying other values. this allows driver power-management code to reprogram individual interfaces into lower power states during idle / suspend, or to reprogram the pin mux to support multiple physical busses per internal controller (e.g., sharing a single I2C or SPI controller across multiple pin groups) - move chip-specific data like pingroups and drive-pingroups out of the common code and into chip-specific code - fix debug output for group with no pullups - add a TEGRA_MUX_SAFE function. Setting a pingroup to TEGRA_MUX_SAFE will automatically select a mux setting that is guaranteed not to conflict with any of the hardware blocks. Signed-off-by: Gary King commit 460907bc26f5565aced3cf35a10e3579c671ef50 Author: Gary King Date: Mon Apr 5 20:30:59 2010 -0700 [ARM] tegra: add suspend and mirror irqs to legacy controller mirror IRQ enable and disable operations on the legacy PPI system interrupt controller, since the legacy controller is responsible for responding to wakeup interrupts when the CPU is in LP2 idle mode save the irq controller state on suspend and restore on resume Signed-off-by: Gary King commit 8726e4f50e3f445601c19a851c62586f5dc7dd49 Author: Colin Cross Date: Mon Apr 5 15:22:21 2010 -0700 [ARM] tegra: Add legacy irq support The "legacy irq controller" duplicates the functionality of the GIC, but remains powered during the cpu suspend and idle modes that power down the CPU and the GIC. Signed-off-by: Colin Cross commit c231d6976a161ae7b5b3aba4a1821b2e9c00c02c Author: Colin Cross Date: Tue Jul 27 21:34:38 2010 -0700 [ARM] tegra: update iomap Add missing io address map entries from datasheet. Add the IRAM area to the statically mapped io regions. Correct the onewire, USB, and statmon addresses Signed-off-by: Colin Cross commit f720817700de48a57f54535a5dd9783cca2d2d6b Author: matt mooney Date: Wed Sep 22 23:51:05 2010 -0700 parisc: change to new flag variable Replace EXTRA_CFLAGS with ccflags-y. Signed-off-by: matt mooney Signed-off-by: Kyle McMartin commit 338e4fab3d41aa14264e10ce505a7c908633cdad Author: Julia Lawall Date: Wed Oct 20 15:55:45 2010 -0700 drivers/char/agp/parisc-agp.c: eliminate memory leak alloc_pci_dev allocates some memory, so that memory should be freed before leaving the function in an error case. A simplified version of the semantic match that finds this problem is: (http://coccinelle.lip6.fr/) // @r exists@ local idexpression x; expression E; identifier f1; iterator I; @@ x = alloc_pci_dev(...); <... when != x when != true (x == NULL || ...) when != if (...) { <+...x...+> } when != I (...) { <+...x...+> } ( x == NULL | x == E | x->f1 ) ...> * return ...; // Signed-off-by: Julia Lawall Dan Carpenter Dave Airlie Cc: Helge Deller Cc: "James E.J. Bottomley" Signed-off-by: Andrew Morton Signed-off-by: Kyle McMartin commit f7a437dda2b5c104a897405cbff678aa1eb37897 Author: Sergei Shtylyov Date: Fri Oct 8 19:02:13 2010 +0400 pata_sl82c105: implement sff_irq_check() method Signed-off-by: Sergei Shtylyov Signed-off-by: Jeff Garzik commit 9b980e10fa7380b8315e8a414325045eab43826f Author: Sergei Shtylyov Date: Fri Oct 8 19:01:08 2010 +0400 pata_sil680: implement sff_irq_check() method Signed-off-by: Sergei Shtylyov Signed-off-by: Jeff Garzik commit 606254e3c1faeb091203c58c2da8e3e4433aae6d Author: Sergei Shtylyov Date: Fri Oct 8 18:57:45 2010 +0400 pata_pdc202xx_old: implement sff_irq_check() method Signed-off-by: Sergei Shtylyov Signed-off-by: Jeff Garzik commit c1ce90f25c52201469c71a2a91e2d9b27c3082f2 Author: Sergei Shtylyov Date: Fri Oct 8 18:56:39 2010 +0400 pata_cmd640: implement sff_irq_check() method Signed-off-by: Sergei Shtylyov Signed-off-by: Jeff Garzik commit 4bb969db48dd507e5313dafa285215cb1c36704a Author: Ben Hutchings Date: Sun Oct 10 22:42:21 2010 +0100 ata_piix: Add device ID for ICH4-L ICH4-L is a variant of ICH4 lacking USB2 functionality and with some different device IDs. It is documented in Intel specification update 290745-025, currently at , and is included in the device ID table for piix. Signed-off-by: Ben Hutchings Signed-off-by: Jeff Garzik commit ada5b12ecca3088ddb588c872db56abef322787e Author: Sergei Shtylyov Date: Tue Oct 5 20:31:47 2010 +0400 pata_sil680: make sil680_sff_exec_command() 'static' ... since, of course, it's not used outside this driver. Signed-off-by: Sergei Shtylyov Signed-off-by: Jeff Garzik commit 60039a5295b3d82a48fe132c699987d2e1408675 Author: Alan Cox Date: Tue Sep 28 13:19:38 2010 +0100 ata: Intel IDE-R support Intel IDE-R devices are part of the Intel AMT management setup. They don't have any special configuration registers or settings so the ata_generic driver will support them fully. Rather than add a huge table of IDs for each chipset and keep sending in new ones this patch autodetects them. Signed-off-by: Alan Cox Acked-by: Tejun Heo Signed-off-by: Jeff Garzik commit b34e90429ce8a23546b6b927d4e151df4c113644 Author: Richard Kennedy Date: Fri Sep 10 12:19:43 2010 +0100 libata: reorder ata_queued_cmd to remove alignment padding on 64 bit builds Reorder structure ata_queued_cmd to remove 8 bytes of alignment padding on 64 bit builds & therefore reduce the size of structure ata_port by 256 bytes. Overall this will have little impact, other than reducing the amount of memory that is cleared when allocating ata_ports. Signed-off-by: Richard Kennedy Signed-off-by: Jeff Garzik commit 02e0a60477d839b8f8f974790192f5230f2371d2 Author: Martin K. Petersen Date: Fri Sep 10 01:23:18 2010 -0400 libata: Signal that our SATL supports WRITE SAME(16) with UNMAP Until now identifying that a device supports WRITE SAME(16) with the UNMAP bit set has been black magic. Implement support for the SBC-3 Thin Provisioning VPD page and set the TPWS bit. Signed-off-by: Martin K. Petersen Signed-off-by: Jeff Garzik commit 9950110cf0f79db91c0103876f3a58c9069243eb Author: Tejun Heo Date: Mon Sep 6 17:57:40 2010 +0200 ata_piix: remove SIDPR locking Now that libata provides proper cross-port EH exclusion. The SIDPR locking added by commit 213373cf (ata_piix: fix locking around SIDPR access) is no longer necessary. Remove it. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit c0c362b60e259e3480a36ef70280d545818844f0 Author: Tejun Heo Date: Mon Sep 6 17:57:14 2010 +0200 libata: implement cross-port EH exclusion In libata, the non-EH code paths should always take and release ap->lock explicitly when accessing hardware or shared data structures. However, once EH is active, it's assumed that the port is owned by EH and EH methods don't explicitly take ap->lock unless race from irq handler or other code paths are expected. However, libata EH didn't guarantee exclusion among EHs for ports of the same host. IOW, multiple EHs may execute in parallel on multiple ports of the same controller. In many cases, especially in SATA, the ports are completely independent of each other and this doesn't cause problems; however, there are cases where different ports share the same resource, which lead to obscure timing related bugs such as the one fixed by commit 213373cf (ata_piix: fix locking around SIDPR access). This patch implements exclusion among EHs of the same host. When EH begins, it acquires per-host EH ownership by calling ata_eh_acquire(). When EH finishes, the ownership is released by calling ata_eh_release(). EH ownership is also released whenever the EH thread goes to sleep from ata_msleep() or explicitly and reacquired after waking up. This ensures that while EH is actively accessing the hardware, it has exclusive access to it while allowing EHs to interleave and progress in parallel as they hit waiting stages, which dominate the time spent in EH. This achieves cross-port EH exclusion without pervasive and fragile changes while still allowing parallel EH for the most part. This was first reported by yuanding02@gmail.com more than three years ago in the following bugzilla. :-) https://bugzilla.kernel.org/show_bug.cgi?id=8223 Signed-off-by: Tejun Heo Cc: Alan Cox Reported-by: yuanding02@gmail.com Signed-off-by: Jeff Garzik commit 97750cebb3000a9cc08f8ce8dc8c7143be7d7201 Author: Tejun Heo Date: Mon Sep 6 17:56:29 2010 +0200 libata: add @ap to ata_wait_register() and introduce ata_msleep() Add optional @ap argument to ata_wait_register() and replace msleep() calls with ata_msleep() which take optional @ap in addition to the duration. These will be used to implement EH exclusion. This patch doesn't cause any behavior difference. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit a97c40068fab5d85c4241451fc312cb9025d7e6c Author: Tejun Heo Date: Wed Sep 1 17:50:08 2010 +0200 ata_piix: implement LPM support Now that DIPM can be used independently from HIPM, ata_piix can support LPM too. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 6c8ea89cecd780faa4f4c8ed8b3b6ab88f9fa841 Author: Tejun Heo Date: Wed Sep 1 17:50:07 2010 +0200 libata: implement LPM support for port multipliers Port multipliers can do DIPM on fan-out links fine. Implement support for it. Tested w/ SIMG 57xx and marvell PMPs. Both the host and fan-out links enter power save modes nicely. SIMG 37xx and 47xx report link offline on SStatus causing EH to detach the devices. Blacklisted. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 6b7ae9545ad9875a289f4191c0216b473e313cb9 Author: Tejun Heo Date: Wed Sep 1 17:50:06 2010 +0200 libata: reimplement link power management The current LPM implementation has the following issues. * Operation order isn't well thought-out. e.g. HIPM should be configured after IPM in SControl is properly configured. Not the other way around. * Suspend/resume paths call ata_lpm_enable/disable() which must only be called from EH context directly. Also, ata_lpm_enable/disable() were called whether LPM was in use or not. * Implementation is per-port when it should be per-link. As a result, it can't be used for controllers with slave links or PMP. * LPM state isn't managed consistently. After a link reset for whatever reason including suspend/resume the actual LPM state would be reset leaving ap->lpm_policy inconsistent. * Generic/driver-specific logic boundary isn't clear. Currently, libahci has to mangle stuff which libata EH proper should be handling. This makes the implementation unnecessarily complex and fragile. * Tied to ALPM. Doesn't consider DIPM only cases and doesn't check whether the device allows HIPM. * Error handling isn't implemented. Given the extent of mismatch with the rest of libata, I don't think trying to fix it piecewise makes much sense. This patch reimplements LPM support. * The new implementation is per-link. The target policy is still port-wide (ap->target_lpm_policy) but all the mechanisms and states are per-link and integrate well with the rest of link abstraction and can work with slave and PMP links. * Core EH has proper control of LPM state. LPM state is reconfigured when and only when reconfiguration is necessary. It makes sure that LPM state is reset when probing for new device on the link. Controller agnostic logic is now implemented in libata EH proper and driver implementation only has to deal with controller specifics. * Proper error handling. LPM config failure is attributed to the device on the link and LPM is disabled for the link if it fails repeatedly. * ops->enable/disable_pm() are replaced with single ops->set_lpm() which takes @policy and @hints. This simplifies driver specific implementation. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit 1152b2617a6e1943b6b82e07c962950e56f1000c Author: Tejun Heo Date: Wed Sep 1 17:50:05 2010 +0200 libata: implement sata_link_scr_lpm() and make ata_dev_set_feature() global Link power management is about to be reimplemented. Prepare for it. * Implement sata_link_scr_lpm(). * Drop static from ata_dev_set_feature() and make it available to other libata files. * Trivial whitespace adjustments. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit c93b263e0d4fa8ce5fec0142a98196d1a127e845 Author: Tejun Heo Date: Wed Sep 1 17:50:04 2010 +0200 libata: clean up lpm related symbols and sysfs show/store functions Link power management related symbols are in confusing state w/ mixed usages of lpm, ipm and pm. This patch cleans up lpm related symbols and sysfs show/store functions as follows. * lpm states - NOT_AVAILABLE, MIN_POWER, MAX_PERFORMANCE and MEDIUM_POWER are renamed to ATA_LPM_UNKNOWN and ATA_LPM_{MIN|MAX|MED}_POWER. * Pre/postfixes are unified to lpm. * sysfs show/store functions for link_power_management_policy were curiously named get/put and unnecessarily complex. Renamed to show/store and simplified. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik commit c43d559f0423816bb2918d892131d21c51816c3d Author: Luck, Tony Date: Mon Aug 23 13:18:02 2010 -0700 [libata] Fix section mismatch: ata_sff_exit This build error showed up in linux-next tag next-20100820 for ia64: WARNING: vmlinux.o(.init.text+0x4a952): Section mismatch in reference from the function ata_init() to the function .exit.text:ata_sff_exit() The function __init ata_init() references a function __exit ata_sff_exit(). This is often seen when error handling in the init function uses functionality in the exit path. The fix is often to remove the __exit annotation of ata_sff_exit() so it may be used outside an exit section. Sure enough, dropping the __exit fixes the problem. Signed-off-by: Tony Luck Signed-off-by: Jeff Garzik commit 6a2148c6dc68cd221397a0b9d44ddb89802e5cc0 Author: Jeff Garzik Date: Thu Aug 19 16:11:32 2010 -0400 drivers/ata/libata-transport.c: include linux/slab.h Signed-off-by: Jeff Garzik commit 295124dce4ddfd40b1f12d3ffd2779673e87c701 Author: Grant Grundler Date: Tue Aug 17 10:56:53 2010 -0700 [libata] support for > 512 byte sectors (e.g. 4K Native) This change enables my x86 machine to recognize and talk to a "Native 4K" SATA device. When I started working on this, I didn't know Matthew Wilcox had posted a similar patch 2 years ago: http://git.kernel.org/?p=linux/kernel/git/willy/ata.git;a=shortlog;h=refs/heads/ata-large-sectors Gwendal Grignou pointed me at the the above code and small portions of this patch include Matthew's work. That's why Mathew is first on the "Signed-off-by:". I've NOT included his use of a bitmap to determine 512 vs Native for ATA command block size - just used a simple table. And bugs are almost certainly mine. Lastly, the patch has been tested with a native 4K 'Engineering Sample' drive provided by Hitachi GST. Signed-off-by: Matthew Wilcox Signed-off-by: Grant Grundler Reviewed-by: Gwendal Grignou Signed-off-by: Jeff Garzik commit 1aadf5c3bbbbb0db09dcb5aa26c61326e0d3e9e7 Author: Tejun Heo Date: Fri Jun 25 15:03:34 2010 +0200 libata: always use ata_qc_complete_multiple() for NCQ command completions Currently, sata_fsl, mv and nv call ata_qc_complete() multiple times from their interrupt handlers to indicate completion of NCQ commands. This limits the visibility the libata core layer has into how commands are being executed and completed, which is necessary to support IRQ expecting in generic way. libata already has an interface to complete multiple commands at once - ata_qc_complete_multiple() which ahci and sata_sil24 already use. This patch updates the three drivers to use ata_qc_complete_multiple() too and updates comments on ata_qc_complete[_multiple]() regarding their usages with NCQ completions. This change not only provides better visibility into command execution to the core layer but also simplifies low level drivers. * sata_fsl: It already builds done_mask. Conversion is straight forward. * sata_mv: mv_process_crpb_response() no longer checks for illegal completions, it just returns whether the tag is completed or not. mv_process_crpb_entries() builds done_mask from it and passes it to ata_qc_complete_multiple() which will check for illegal completions. * sata_nv adma: Similar to sata_mv. nv_adma_check_cpb() now just returns the tag status and nv_adma_interrupt() builds done_mask from it and passes it to ata_qc_complete_multiple(). * sata_nv swncq: It already builds done_mask. Drop unnecessary illegal transition checks and call ata_qc_complete_multiple(). In the long run, it might be a good idea to make ata_qc_complete() whine if called when multiple NCQ commands are in flight. Signed-off-by: Tejun Heo Cc: Ashish Kalra Cc: Saeed Bishara Cc: Mark Lord Cc: Robert Hancock Signed-off-by: Jeff Garzik commit d9027470b88631d0956ac37cdadfdeb9cdcf2c99 Author: Gwendal Grignou Date: Tue May 25 12:31:38 2010 -0700 [libata] Add ATA transport class This is a scheleton for libata transport class. All information is read only, exporting information from libata: - ata_port class: one per ATA port - ata_link class: one per ATA port or 15 for SATA Port Multiplier - ata_device class: up to 2 for PATA link, usually one for SATA. Signed-off-by: Gwendal Grignou Reviewed-by: Grant Grundler Signed-off-by: Jeff Garzik commit 489e176c71f36654dcb8835926f7e5717b8b4c19 Author: Kevin Hilman Date: Thu Oct 21 16:30:42 2010 -0700 davinci: fix remaining board support after io_pgoffst removal Some boards that were added after the mass io_pgoffst/io_physio removal, and were not updated in the original patch. Fixup here. c.f. original io_pgoffst/io_physio removal commit 6451d7783ba5ff24eb1a544eaa6665b890f30466 Signed-off-by: Kevin Hilman commit b5153163ed580e00c67bdfecb02b2e3843817b3e Merge: a8cbf22 6451d77 Author: Linus Torvalds Date: Thu Oct 21 16:42:32 2010 -0700 Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (278 commits) arm: remove machine_desc.io_pg_offst and .phys_io arm: use addruart macro to establish debug mappings arm: return both physical and virtual addresses from addruart arm/debug: consolidate addruart macros for CONFIG_DEBUG_ICEDCC ARM: make struct machine_desc definition coherent with its comment eukrea_mbimxsd-baseboard: Pass the correct GPIO to gpio_free cpuimx27: fix compile when ULPI is selected mach-pcm037_eet: fix compile errors Fixing ethernet driver compilation error for i.MX31 ADS board cpuimx51: update board support mx5: add cpuimx51sd module and its baseboard iomux-mx51: fix GPIO_1_xx 's IOMUX configuration imx-esdhc: update devices registration mx51: add resources for SD/MMC on i.MX51 iomux-mx51: fix SD1 and SD2's iomux configuration clock-mx51: rename CLOCK1 to CLOCK_CCGR for better readability clock-mx51: factorize clk_set_parent and clk_get_rate eukrea_mbimxsd: add support for DVI displays cpuimx25 & cpuimx35: fix OTG port registration in host mode i.MX31 and i.MX35 : fix errate TLSbo65953 and ENGcm09472 ... commit cdff08e76612e53580139653403aedea979aa639 Author: Steve French Date: Thu Oct 21 22:46:14 2010 +0000 [CIFS] move close processing from cifs_close to cifsFileInfo_put Now that it's feasible for a cifsFileInfo to outlive the filp under which it was created, move the close processing into cifsFileInfo_put. This means that the last user of the filehandle always does the actual on the wire close call. This also allows us to get rid of the closePend flag from cifsFileInfo. If we have an active reference to the file then it's never going to have a close pending. cifs_close is converted to simply put the filehandle. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Signed-off-by: Steve French commit d2360b8e845ce0e142e72697a504ee9372421dc3 Author: Arnaud Patard (Rtp) Date: Thu Jul 15 15:06:14 2010 +0200 i2c-s3c2410: Enable i2c clock only when doing some transfert This patch modify the s3c2410 i2c driver behaviour to enable the i2c clock only when needed. I'm not sure if this has a big impact on power usage but at least it's fixing a bug with the uda1380 codec which needs to be hard reset'ed if the i2c clock is enabled before it's powered on (at least on h1940). Signed-off-by: Arnaud Patard Signed-off-by: Ben Dooks commit a8cbf22559ceefdcdfac00701e8e6da7518b7e8e Merge: e36f561 9c03439 Author: Linus Torvalds Date: Thu Oct 21 14:53:17 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6: (26 commits) PM / Wakeup: Show wakeup sources statistics in debugfs PM: Introduce library for device-specific OPPs (v7) PM: Add sysfs attr for rechecking dev hash from PM trace PM: Lock PM device list mutex in show_dev_hash() PM / Runtime: Remove idle notification after failing suspend PM / Hibernate: Modify signature used to mark swap PM / Runtime: Reduce code duplication in core helper functions PM: Allow wakeup events to abort freezing of tasks PM: runtime: add missed pm_request_autosuspend PM / Hibernate: Make some boot messages look less scary PM / Runtime: Implement autosuspend support PM / Runtime: Add no_callbacks flag PM / Runtime: Combine runtime PM entry points PM / Runtime: Merge synchronous and async runtime routines PM / Runtime: Replace boolean arguments with bitflags PM / Runtime: Move code in drivers/base/power/runtime.c sysfs: Add sysfs_merge_group() and sysfs_unmerge_group() PM: Fix potential issue with failing asynchronous suspend PM / Wakeup: Introduce wakeup source objects and event statistics (v3) PM: Fix signed/unsigned warning in dpm_show_time() ... commit e36f561a2c88394ef2708f1ab300fe8a79e9f651 Merge: 70ada77 df9ee29 Author: Linus Torvalds Date: Thu Oct 21 14:37:27 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-2.6-irqflags * git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-2.6-irqflags: Fix IRQ flag handling naming MIPS: Add missing #inclusions of smc91x: Add missing #inclusion of Drop a couple of unnecessary asm/system.h inclusions SH: Add missing consts to sys_execve() declaration Blackfin: Rename IRQ flags handling functions Blackfin: Add missing dep to asm/irqflags.h Blackfin: Rename DES PC2() symbol to avoid collision Blackfin: Split the BF532 BFIN_*_FIO_FLAG() functions to their own header Blackfin: Split PLL code from mach-specific cdef headers commit 70ada77920723fbc2b35e9b301022fb1e166b41b Merge: b22793f 2764c50 Author: Linus Torvalds Date: Thu Oct 21 14:37:00 2010 -0700 Merge branch 'next-spi' of git://git.secretlab.ca/git/linux-2.6 * 'next-spi' of git://git.secretlab.ca/git/linux-2.6: (53 commits) spi/omap2_mcspi: Verify TX reg is empty after TX only xfer with DMA spi/omap2_mcspi: disable channel after TX_ONLY transfer in PIO mode spi/bfin_spi: namespace local structs spi/bfin_spi: init early spi/bfin_spi: check per-transfer bits_per_word spi/bfin_spi: warn when CS is driven by hardware (CPHA=0) spi/bfin_spi: cs should be always low when a new transfer begins spi/bfin_spi: fix typo in comment spi/bfin_spi: reject unsupported SPI modes spi/bfin_spi: use dma_disable_irq_nosync() in irq handler spi/bfin_spi: combine duplicate SPI_CTL read/write logic spi/bfin_spi: reset ctl_reg bits when setup is run again on a device spi/bfin_spi: push all size checks into the transfer function spi/bfin_spi: use nosync when disabling the IRQ from the IRQ handler spi/bfin_spi: sync hardware state before reprogramming everything spi/bfin_spi: save/restore state when suspending/resuming spi/bfin_spi: redo GPIO CS handling Blackfin: SPI: expand SPI bitmasks spi/bfin_spi: use the SPI namespaced bit names spi/bfin_spi: drop extra memory we don't need ... commit b22793f7fdc38d73c4bb4299a313deef56dcfe66 Merge: b653788 c0f37d2 Author: Linus Torvalds Date: Thu Oct 21 14:27:18 2010 -0700 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: [IA64] Cannot use register_percpu_irq() from ia64_mca_init() [IA64] Initialize interrupts later (from init_IRQ()) [IA64] enable ARCH_DMA_ADDR_T_64BIT [IA64] ioc3_serial: release resources in error return path [IA64] Stop using the deprecated __do_IRQ() code path [IA64] Remove unnecessary casts of private_data in perfmon.c [IA64] Fix missing iounmap in error path in cyclone.c [IA64] salinfo: sema_init instead of init_MUTEX [IA64] xen: use ARRAY_SIZE macro in xen_pv_ops.c [IA64] Use static const char * const in palinfo.c [IA64] remove asm/compat.h [IA64] Add CONFIG_STACKTRACE_SUPPORT [IA64] Move local_softirq_pending() definition [IA64] iommu: Add a dummy iommu_table.h file in IA64. [IA64] unwind - optimise linked-list searches for modules [IA64] unwind: remove preprocesser noise, and correct comment commit b65378898c2eefb20f419632c1199bc0592e2f79 Merge: 157b6ce 5b917a1 Author: Linus Torvalds Date: Thu Oct 21 14:25:16 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 * git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: (22 commits) pcmcia: synclink_cs: fix information leak to userland pcmcia: don't call flush_scheduled_work() spuriously serial_cs: drop spurious flush_scheduled_work() call pcmcia/yenta: guide users in case of problems with O2-bridges pcmcia: fix unused function compile warning pcmcia: vrc4173_cardu: Fix error path for pci_release_regions and pci_disable_device pcmcia: add a few debug statements pcmcia: remove obsolete and wrong comments pcmcia: avoid messages on module (un)loading pcmcia: move driver name to struct pcmcia_driver pcmcia: remove the "Finally, report what we've done" message pcmcia: use autoconfiguration feature for ioports and iomem pcmcia: introduce autoconfiguration feature pcmcia: Documentation update pcmcia: convert pcmcia_request_configuration to pcmcia_enable_device pcmcia: move config_{base,index,regs} to struct pcmcia_device pcmcia: simplify IntType pcmcia: simplify Status, ExtStatus register access pcmcia: remove Pin, Copy configuration register access pcmcia: move Vpp setup to struct pcmcia_device ... commit 157b6ceb13e4b4148ee03dd517dbe88748943125 Merge: 4a60cfa 6e96366 Author: Linus Torvalds Date: Thu Oct 21 14:23:48 2010 -0700 Merge branch 'x86-iommu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-iommu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, iommu: Update header comments with appropriate naming ia64, iommu: Add a dummy iommu_table.h file in IA64. x86, iommu: Fix IOMMU_INIT alignment rules x86, doc: Adding comments about .iommu_table and its neighbors. x86, iommu: Utilize the IOMMU_INIT macros functionality. x86, VT-d: Make Intel VT-d IOMMU use IOMMU_INIT_* macros. x86, GART/AMD-VI: Make AMD GART and IOMMU use IOMMU_INIT_* macros. x86, calgary: Make Calgary IOMMU use IOMMU_INIT_* macros. x86, xen-swiotlb: Make Xen-SWIOTLB use IOMMU_INIT_* macros. x86, swiotlb: Make SWIOTLB use IOMMU_INIT_* macros. x86, swiotlb: Simplify SWIOTLB pci_swiotlb_detect routine. x86, iommu: Add proper dependency sort routine (and sanity check). x86, iommu: Make all IOMMU's detection routines return a value. x86, iommu: Add IOMMU_INIT macros, .iommu_table section, and iommu_table_entry structure commit 4a60cfa9457749f7987fd4f3c956dbba5a281129 Merge: 62bea97 27afdf2 Author: Linus Torvalds Date: Thu Oct 21 14:11:46 2010 -0700 Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (96 commits) apic, x86: Use BIOS settings for IBS and MCE threshold interrupt LVT offsets apic, x86: Check if EILVT APIC registers are available (AMD only) x86: ioapic: Call free_irte only if interrupt remapping enabled arm: Use ARCH_IRQ_INIT_FLAGS genirq, ARM: Fix boot on ARM platforms genirq: Fix CONFIG_GENIRQ_NO_DEPRECATED=y build x86: Switch sparse_irq allocations to GFP_KERNEL genirq: Switch sparse_irq allocator to GFP_KERNEL genirq: Make sparse_lock a mutex x86: lguest: Use new irq allocator genirq: Remove the now unused sparse irq leftovers genirq: Sanitize dynamic irq handling genirq: Remove arch_init_chip_data() x86: xen: Sanitise sparse_irq handling x86: Use sane enumeration x86: uv: Clean up the direct access to irq_desc x86: Make io_apic.c local functions static genirq: Remove irq_2_iommu x86: Speed up the irq_remapped check in hot pathes intr_remap: Simplify the code further ... Fix up trivial conflicts in arch/x86/Kconfig commit 62bea97f54d806218a992b18d1f425cfb5060175 Merge: b61f6a5 8af3c15 Author: Linus Torvalds Date: Thu Oct 21 14:08:08 2010 -0700 Merge branch 'timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: ntp: Clamp PLL update interval commit 872a64d7e73f0e4dc435295da393db25332172b8 Author: Peter Ujfalusi Date: Thu Oct 21 15:03:03 2010 +0300 ASoC: tpa6130a2: Error handling for broken chip Correct/Implement handling of broken chip. Fail the i2c_prope if the communication with the chip fails. Signed-off-by: Peter Ujfalusi Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit b61f6a57f1919ef8dbd33f864df9b8b361c65b11 Merge: 0575db8 fb62db2 Author: Linus Torvalds Date: Thu Oct 21 14:06:17 2010 -0700 Merge branch 'futexes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'futexes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: futex: Fix kernel-doc notation & typos futex: Add lock context annotations futex: Mark restart_block.futex.uaddr[2] __user futex: Change 3rd arg of fetch_robust_entry() to unsigned int* commit 0575db881d18a4791013fc93ba756ad08b18fb48 Merge: c029e40 7ada876 Author: Linus Torvalds Date: Thu Oct 21 14:05:55 2010 -0700 Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: futex: Fix errors in nested key ref-counting commit c029e405bd3d4e92d09fbbc97c03952585986ebe Merge: a9ccd80 525906b Author: Linus Torvalds Date: Thu Oct 21 14:04:58 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp: (21 commits) EDAC, MCE: Fix shift warning on 32-bit EDAC, MCE: Add a BIT_64() macro EDAC, MCE: Enable MCE decoding on F12h EDAC, MCE: Add F12h NB MCE decoder EDAC, MCE: Add F12h IC MCE decoder EDAC, MCE: Add F12h DC MCE decoder EDAC, MCE: Add support for F11h MCEs EDAC, MCE: Enable MCE decoding on F14h EDAC, MCE: Fix FR MCEs decoding EDAC, MCE: Complete NB MCE decoders EDAC, MCE: Warn about LS MCEs on F14h EDAC, MCE: Adjust IC decoders to F14h EDAC, MCE: Adjust DC decoders to F14h EDAC, MCE: Rename files EDAC, MCE: Rework MCE injection EDAC: Export edac sysfs class to users. EDAC, MCE: Pass complete MCE info to decoders EDAC, MCE: Sanitize error codes EDAC, MCE: Remove unused function parameter EDAC, MCE: Add HW_ERR prefix ... commit a9ccd80aadadef8c424142d41fddea7c0880f0e9 Merge: 81d1c3a e79f86b Author: Linus Torvalds Date: Thu Oct 21 14:04:25 2010 -0700 Merge branch 'stable/swiotlb-0.9' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb-2.6 * 'stable/swiotlb-0.9' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb-2.6: swiotlb: Use page alignment for early buffer allocation swiotlb: make io_tlb_overflow static commit 81d1c3a52cd78fdbb9f0d80214fc9e7d49bf22c0 Merge: 5fe8321 3e0f686 Author: Linus Torvalds Date: Thu Oct 21 14:04:03 2010 -0700 Merge branch 'stable/for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft-2.6 * 'stable/for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft-2.6: ibft: fix kconfig dependencies commit 5fe8321b8886d814e65952d74b207fe59e1096ea Merge: 709d9f5 fa47f7e Author: Linus Torvalds Date: Thu Oct 21 13:54:05 2010 -0700 Merge branch 'x86-x2apic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-x2apic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, x2apic: Simplify apic init in SMP and UP builds x86, intr-remap: Remove IRTE setup duplicate code x86, intr-remap: Set redirection hint in the IRTE commit 709d9f54cc1847a2d24224ffedec7fd4d0f3c714 Merge: cca8209 b0f4c06 Author: Linus Torvalds Date: Thu Oct 21 13:53:24 2010 -0700 Merge branch 'x86-vmware-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-vmware-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, paravirt: Remove alloc_pmd_clone hook, only used by VMI x86, vmware: Remove deprecated VMI kernel support Fix up trivial #include conflict in arch/x86/kernel/smpboot.c commit cca8209ed962f87990345ba073979d2b55dd1187 Merge: d77bdc4 9e9006e Author: Linus Torvalds Date: Thu Oct 21 13:52:01 2010 -0700 Merge branch 'x86-olpc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-olpc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, olpc: XO-1 uses/depends on PCI x86, olpc: Register XO-1 platform devices x86, olpc: Add XO-1 poweroff support x86, olpc: Don't retry EC commands forever x86, olpc: Rework BIOS signature check x86, olpc: Only enable PCI configuration type override on XO-1 commit d77bdc423d6d6efcd18d329bbf8eb9351953dd30 Merge: 87affd0b 351e5a7 Author: Linus Torvalds Date: Thu Oct 21 13:51:41 2010 -0700 Merge branch 'x86-mtrr-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-mtrr-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, mtrr: Support mtrr lookup for range spanning across MTRR range x86, mtrr: Refactor MTRR type overlap check code commit 87affd0b9416d8f43d2d4de1f3fdfbe7f3559380 Merge: c3b86a2 940b3c7 Author: Linus Torvalds Date: Thu Oct 21 13:47:54 2010 -0700 Merge branch 'x86-mrst-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-mrst-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: sfi: Make local functions static x86, earlyprintk: Add hsu early console for Intel Medfield platform x86, earlyprintk: Add earlyprintk for Intel Moorestown platform x86: Add two helper macros for fixed address mapping x86, mrst: A function in a header file needs to be marked "inline" commit 4428bc0990ba545e2ef0dea8ec1b90c256b22958 Author: Dimitris Papastamos Date: Thu Oct 21 12:15:56 2010 +0100 ASoC: max98088: Staticise m98088_eq_band This function is not exported and it does not seem to be called from anywhere else therefore it should be static. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 1aafcd4d6966453ab44587c6e1214d463f3e88e2 Author: Dimitris Papastamos Date: Thu Oct 21 13:19:45 2010 +0100 ASoC: soc-core: Fix codec->name memory leak Ensure that the codec->name is freed when unregistering the codec. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit c3b86a29429dac1033e3f602f51fa8d00006a8eb Merge: 8d8d2e9 2aeb66d Author: Linus Torvalds Date: Thu Oct 21 13:47:29 2010 -0700 Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86-32, percpu: Correct the ordering of the percpu readmostly section x86, mm: Enable ARCH_DMA_ADDR_T_64BIT with X86_64 || HIGHMEM64G x86: Spread tlb flush vector between nodes percpu: Introduce a read-mostly percpu API x86, mm: Fix incorrect data type in vmalloc_sync_all() x86, mm: Hold mm->page_table_lock while doing vmalloc_sync x86, mm: Fix bogus whitespace in sync_global_pgds() x86-32: Fix sparse warning for the __PHYSICAL_MASK calculation x86, mm: Add RESERVE_BRK_ARRAY() helper mm, x86: Saving vmcore with non-lazy freeing of vmas x86, kdump: Change copy_oldmem_page() to use cached addressing x86, mm: fix uninitialized addr in kernel_physical_mapping_init() x86, kmemcheck: Remove double test x86, mm: Make spurious_fault check explicitly check the PRESENT bit x86-64, mem: Update all PGDs for direct mapping and vmemmap mapping changes x86, mm: Separate x86_64 vmalloc_sync_all() into separate functions x86, mm: Avoid unnecessary TLB flush commit 8d8d2e9ccd331a1345c88b292ebee9d256fd8749 Merge: 2a8b67f 3b4b682 Author: Linus Torvalds Date: Thu Oct 21 13:46:28 2010 -0700 Merge branch 'x86-mem-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-mem-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, mem: Optimize memmove for small size and unaligned cases x86, mem: Optimize memcpy by avoiding memory false dependece x86, mem: Don't implement forward memmove() as memcpy() commit 2a8b67fb72c4c4bc15fe8095e3ed613789c8b82f Merge: b6f7e38 ce5f682 Author: Linus Torvalds Date: Thu Oct 21 13:45:38 2010 -0700 Merge branch 'x86-idle-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-idle-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, hotplug: In the MWAIT case of play_dead, CLFLUSH the cache line x86, hotplug: Move WBINVD back outside the play_dead loop x86, hotplug: Use mwait to offline a processor, fix the legacy case x86, mwait: Move mwait constants to a common header file commit 71e2889d9d8f2149f38bbeedfa6d9aefa0875ca6 Author: Shawn Guo Date: Fri Oct 22 00:23:45 2010 +0800 mx25_3ds: add mmc support Update mx25_3ds board support to register esdhc device Signed-off-by: Shawn Guo Acked-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 6207c833940dd9183719f6428099f389a2a7d98e Author: Shawn Guo Date: Fri Oct 22 00:23:44 2010 +0800 mx35_3ds: add mmc support Update mx35_3ds board support to register esdhc device Signed-off-by: Shawn Guo Acked-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 7223066c3bd927c47673d21fd5e4774b7c4d8346 Author: Shawn Guo Date: Fri Oct 22 00:55:20 2010 +0800 babbage: esdhc device registration Update babbage board support to register esdhc device Signed-off-by: Shawn Guo Signed-off-by: Sascha Hauer commit b6f7e38dbb310557fe890b04b1a376c93f638c3b Merge: 214515b b2b57fe Author: Linus Torvalds Date: Thu Oct 21 13:34:32 2010 -0700 Merge branch 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, fpu: Merge fpu_save_init() x86-32, fpu: Rewrite fpu_save_init() x86, fpu: Remove PSHUFB_XMM5_* macros x86, fpu: Remove unnecessary ifdefs from i387 code. x86-32, fpu: Remove math_emulate stub x86-64, fpu: Simplify constraints for fxsave/fxtstor x86-64, fpu: Fix %cs value in convert_from_fxsr() x86-64, fpu: Disable preemption when using TS_USEDFPU x86, fpu: Merge __save_init_fpu() x86, fpu: Merge tolerant_fwait() x86, fpu: Merge fpu_init() x86: Use correct type for %cr4 x86, xsave: Disable xsave in i387 emulation mode Fixed up fxsaveq-induced conflict in arch/x86/include/asm/i387.h commit 76fac077db6b34e2c6383a7b4f3f4f7b7d06d8ce Author: Alok Kataria Date: Mon Oct 11 14:37:08 2010 -0700 x86, kexec: Make sure to stop all CPUs before exiting the kernel x86 smp_ops now has a new op, stop_other_cpus which takes a parameter "wait" this allows the caller to specify if it wants to stop until all the cpus have processed the stop IPI. This is required specifically for the kexec case where we should wait for all the cpus to be stopped before starting the new kernel. We now wait for the cpus to stop in all cases except for panic/kdump where we expect things to be broken and we are doing our best to make things work anyway. This patch fixes a legitimate regression, which was introduced during 2.6.30, by commit id 4ef702c10b5df18ab04921fc252c26421d4d6c75. Signed-off-by: Alok N Kataria LKML-Reference: <1286833028.1372.20.camel@ank32.eng.vmware.com> Cc: Eric W. Biederman Cc: Jeremy Fitzhardinge Cc: v2.6.30-36 Signed-off-by: H. Peter Anvin commit 214515b5787a1035b2c8807abe8be569de63b2f6 Merge: bf70030 d0ed0c3 Author: Linus Torvalds Date: Thu Oct 21 13:20:32 2010 -0700 Merge branch 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: Remove pr_ uses of KERN_ therm_throt.c: Trivial printk message fix for a unsuitable abbreviation of 'thermal' x86: Use {push,pop}{l,q}_cfi in more places i386: Add unwind directives to syscall ptregs stubs x86-64: Use symbolics instead of raw numbers in entry_64.S x86-64: Adjust frame type at paranoid_exit: x86-64: Fix unwind annotations in syscall stubs commit bf70030dc0b031f000c74721f2e9c88686b7da6d Merge: d60a279 366d4a4 Author: Linus Torvalds Date: Thu Oct 21 13:18:36 2010 -0700 Merge branch 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, cpu: Fix X86_FEATURE_NOPL x86, cpu: Re-run get_cpu_cap() after adjusting the CPUID level commit d60a2793ba562c6ea9bbf62112da3e6342adcf83 Merge: 781c5a6 40ffa93 Author: Linus Torvalds Date: Thu Oct 21 13:18:06 2010 -0700 Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: Remove stale pmtimer_64.c x86, cleanups: Use clear_page/copy_page rather than memset/memcpy x86: Remove unnecessary #ifdef ACPI/X86_IO_ACPI x86, cleanup: Remove obsolete boot_cpu_id variable commit 781c5a67f152c17c3e4a9ed9647f8c0be6ea5ae9 Merge: e990c77 9ea77bd Author: Linus Torvalds Date: Thu Oct 21 13:06:49 2010 -0700 Merge branch 'x86-bios-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-bios-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, bios: Make the x86 early memory reservation a kernel option x86, bios: By default, reserve the low 64K for all BIOSes commit e990c77d06dbacc8e5c5edd2c4a1005d318a4fa6 Merge: 2f0384e d7acb92 Author: Linus Torvalds Date: Thu Oct 21 13:06:00 2010 -0700 Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86-64, asm: If the assembler supports fxsave64, use it i386: Make kernel_execve() suitable for stack unwinding commit 2f0384e5fc4766ad909597547d0e2b716c036755 Merge: bc4016f 5c80cc7 Author: Linus Torvalds Date: Thu Oct 21 13:01:08 2010 -0700 Merge branch 'x86-amd-nb-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'x86-amd-nb-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, amd_nb: Enable GART support for AMD family 0x15 CPUs x86, amd: Use compute unit information to determine thread siblings x86, amd: Extract compute unit information for AMD CPUs x86, amd: Add support for CPUID topology extension of AMD CPUs x86, nmi: Support NMI watchdog on newer AMD CPU families x86, mtrr: Assume SYS_CFG[Tom2ForceMemTypeWB] exists on all future AMD CPUs x86, k8: Rename k8.[ch] to amd_nb.[ch] and CONFIG_K8_NB to CONFIG_AMD_NB x86, k8-gart: Decouple handling of garts and northbridges x86, cacheinfo: Fix dependency of AMD L3 CID x86, kvm: add new AMD SVM feature bits x86, cpu: Fix allowed CPUID bits for KVM guests x86, cpu: Update AMD CPUID feature bits x86, cpu: Fix renamed, not-yet-shipping AMD CPUID feature bit x86, AMD: Remove needless CPU family check (for L3 cache info) x86, tsc: Remove CPU frequency calibration on AMD commit bc4016f48161454a9a8e5eb209b0693c6cde9f62 Merge: 5d70f79 b7dadc3 Author: Linus Torvalds Date: Thu Oct 21 12:55:43 2010 -0700 Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (29 commits) sched: Export account_system_vtime() sched: Call tick_check_idle before __irq_enter sched: Remove irq time from available CPU power sched: Do not account irq time to current task x86: Add IRQ_TIME_ACCOUNTING sched: Add IRQ_TIME_ACCOUNTING, finer accounting of irq time sched: Add a PF flag for ksoftirqd identification sched: Consolidate account_system_vtime extern declaration sched: Fix softirq time accounting sched: Drop group_capacity to 1 only if local group has extra capacity sched: Force balancing on newidle balance if local group has capacity sched: Set group_imb only a task can be pulled from the busiest cpu sched: Do not consider SCHED_IDLE tasks to be cache hot sched: Drop all load weight manipulation for RT tasks sched: Create special class for stop/migrate work sched: Unindent labels sched: Comment updates: fix default latency and granularity numbers tracing/sched: Add sched_pi_setprio tracepoint sched: Give CPU bound RT tasks preference sched: Try not to migrate higher priority RT tasks ... commit 5d70f79b5ef6ea2de4f72a37b2d96e2601e40a22 Merge: 888a6f7 750ed15 Author: Linus Torvalds Date: Thu Oct 21 12:54:49 2010 -0700 Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (163 commits) tracing: Fix compile issue for trace_sched_wakeup.c [S390] hardirq: remove pointless header file includes [IA64] Move local_softirq_pending() definition perf, powerpc: Fix power_pmu_event_init to not use event->ctx ftrace: Remove recursion between recordmcount and scripts/mod/empty jump_label: Add COND_STMT(), reducer wrappery perf: Optimize sw events perf: Use jump_labels to optimize the scheduler hooks jump_label: Add atomic_t interface jump_label: Use more consistent naming perf, hw_breakpoint: Fix crash in hw_breakpoint creation perf: Find task before event alloc perf: Fix task refcount bugs perf: Fix group moving irq_work: Add generic hardirq context callbacks perf_events: Fix transaction recovery in group_sched_in() perf_events: Fix bogus AMD64 generic TLB events perf_events: Fix bogus context time tracking tracing: Remove parent recording in latency tracer graph options tracing: Use one prologue for the preempt irqs off tracer function tracers ... commit 888a6f77e0418b049f83d37547c209b904d30af4 Merge: 31b7eab 6506cf6c Author: Linus Torvalds Date: Thu Oct 21 12:54:12 2010 -0700 Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (52 commits) sched: fix RCU lockdep splat from task_group() rcu: using ACCESS_ONCE() to observe the jiffies_stall/rnp->qsmask value sched: suppress RCU lockdep splat in task_fork_fair net: suppress RCU lockdep false positive in sock_update_classid rcu: move check from rcu_dereference_bh to rcu_read_lock_bh_held rcu: Add advice to PROVE_RCU_REPEATEDLY kernel config parameter rcu: Add tracing data to support queueing models rcu: fix sparse errors in rcutorture.c rcu: only one evaluation of arg in rcu_dereference_check() unless sparse kernel: Remove undead ifdef CONFIG_DEBUG_LOCK_ALLOC rcu: fix _oddness handling of verbose stall warnings rcu: performance fixes to TINY_PREEMPT_RCU callback checking rcu: upgrade stallwarn.txt documentation for CPU-bound RT processes vhost: add __rcu annotations rcu: add comment stating that list_empty() applies to RCU-protected lists rcu: apply TINY_PREEMPT_RCU read-side speedup to TREE_PREEMPT_RCU rcu: combine duplicate code, courtesy of CONFIG_PREEMPT_RCU rcu: Upgrade srcu_read_lock() docbook about SRCU grace periods rcu: document ways of stalling updates in low-memory situations rcu: repair code-duplication FIXMEs ... commit 662a74b4b2b7b471417b3778485332a93d07e409 Author: Uwe Kleine-König Date: Wed Oct 20 17:44:30 2010 +0200 ARM: mx3: fix build failure concerning MXC_INT_MMC_SDHC2 Commit c074512 (imx-esdhc: update devices registration) renamed MX35_INT_MMC_SDHC2 to MX35_INT_ESDHC2 which broke expansion of the MXC_INT_MMC_SDHC2 macro. As (the only user of MXC_INT_MMC_SDHC2) is only used on mx31 use the MX31 prefixed symbol to define its resources. Moreover to reduce further confusion mxcsdhc_device0 is fixed accordingly and the MXC prefixed symbols are removed. Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 31b7eab27a314b153d8fa07ba9e9ec00a98141e1 Merge: 1053e6b 4ba053c Author: Linus Torvalds Date: Thu Oct 21 12:49:31 2010 -0700 Merge branch 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: lockdep: Check the depth of subclass lockdep: Add improved subclass caching affs: Use sema_init instead of init_MUTEX hfs: Convert tree_lock to mutex arm: Bcmring: semaphore cleanup printk: Make console_sem a semaphore not a pseudo mutex drivers/macintosh/adb: Do not claim that the semaphore is a mutex parport: Semaphore cleanup irda: Semaphore cleanup net: Wan/cosa.c: Convert "mutex" to semaphore net: Ppp_async: semaphore cleanup hamradio: Mkiss: semaphore cleanup hamradio: 6pack: semaphore cleanup net: 3c527: semaphore cleanup input: Serio/hp_sdc: semaphore cleanup input: Serio/hil_mlc: semaphore cleanup input: Misc/hp_sdc_rtc: semaphore cleanup lockup_detector: Make callback function static lockup detector: Fix grammar by adding a missing "to" in the comments lockdep: Remove __debug_show_held_locks commit 1053e6bba091d9d18797f7789df6a7ef8735f20c Merge: a8fe150 3d8a1a6 Author: Linus Torvalds Date: Thu Oct 21 12:49:15 2010 -0700 Merge branch 'core-iommu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'core-iommu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86/amd-iommu: Update copyright headers x86/amd-iommu: Reenable AMD IOMMU if it's mysteriously vanished over suspend AGP: Warn when GATT memory cannot be set to UC x86, GART: Disable GART table walk probes x86, GART: Remove superfluous AMD64_GARTEN commit a8fe1500986c32b46b36118aa250f6badca11bfc Merge: 94ebd23 f0d3d98 Author: Linus Torvalds Date: Thu Oct 21 12:41:19 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6: (26 commits) selinux: include vmalloc.h for vmalloc_user secmark: fix config problem when CONFIG_NF_CONNTRACK_SECMARK is not set selinux: implement mmap on /selinux/policy SELinux: allow userspace to read policy back out of the kernel SELinux: drop useless (and incorrect) AVTAB_MAX_SIZE SELinux: deterministic ordering of range transition rules kernel: roundup should only reference arguments once kernel: rounddown helper function secmark: export secctx, drop secmark in procfs conntrack: export lsm context rather than internal secid via netlink security: secid_to_secctx returns len when data is NULL secmark: make secmark object handling generic secmark: do not return early if there was no error AppArmor: Ensure the size of the copy is < the buffer allocated to hold it TOMOYO: Print URL information before panic(). security: remove unused parameter from security_task_setscheduler() tpm: change 'tpm_suspend_pcr' to be module parameter selinux: fix up style problem on /selinux/status selinux: change to new flag variable selinux: really fix dependency causing parallel compile failure. ... commit 94ebd235c493f43681f609b0e02733337053e8f0 Merge: f6f0a6d fe5a50a Author: Linus Torvalds Date: Thu Oct 21 12:40:33 2010 -0700 Merge branch 'virtio' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus * 'virtio' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus: virtio_blk: remove BKL leftovers virtio: console: Disable lseek(2) for port file operations virtio: console: Send SIGIO in case of port unplug virtio: console: Send SIGIO on new data arrival on ports virtio: console: Send SIGIO to processes that request it for host events virtio: console: Reference counting portdev structs is not needed virtio: console: Add reference counting for port struct virtio: console: Use cdev_alloc() instead of cdev_init() virtio: console: Add a find_port_by_devt() function virtio: console: Add a list of portdevs that are active virtio: console: open: Use a common path for error handling virtio: console: remove_port() should return void virtio: console: Make write() return -ENODEV on hot-unplug virtio: console: Make read() return -ENODEV on hot-unplug virtio: console: Unblock poll on port hot-unplug virtio: console: Un-block reads on chardev close virtio: console: Check if portdev is valid in send_control_msg() virtio: console: Remove control vq data only if using multiport support virtio: console: Reset vdev before removing device commit f6f0a6d6a7258eff41fd202fc70df18271a2de79 Merge: 2017bd1 33027af Author: Linus Torvalds Date: Thu Oct 21 12:39:53 2010 -0700 Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw * git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw: (22 commits) GFS2: fixed typo GFS2: Fix type mapping for demote_rq interface GFS2 fatal: filesystem consistency error on rename GFS2: Improve journal allocation via sysfs GFS2: Add "norecovery" mount option as a synonym for "spectator" GFS2: Fix spectator umount issue GFS2: Fix compiler warning from previous patch GFS2: reserve more blocks for transactions GFS2: Fix journal check for spectator mounts GFS2: Remove upgrade mount option GFS2: Remove localcaching mount option GFS2: Remove ignore_local_fs mount argument GFS2: Make . and .. qstrs constant GFS2: Use new workqueue scheme GFS2: Update handling of DLM return codes to match reality GFS2: Don't enforce min hold time when two demotes occur in rapid succession GFS2: Fix whitespace in previous patch GFS2: fallocate support GFS2: Add a bug trap in allocation code GFS2: No longer experimental ... commit 2017bd19454ea7cdae19922d15b6930f6c8088a2 Merge: 9f1ad09 efa4c12 Author: Linus Torvalds Date: Thu Oct 21 12:38:28 2010 -0700 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: (22 commits) ceph: do not carry i_lock for readdir from dcache fs/ceph/xattr.c: Use kmemdup rbd: passing wrong variable to bvec_kunmap_irq() rbd: null vs ERR_PTR ceph: fix num_pages_free accounting in pagelist ceph: add CEPH_MDS_OP_SETDIRLAYOUT and associated ioctl. ceph: don't crash when passed bad mount options ceph: fix debugfs warnings block: rbd: removing unnecessary test block: rbd: fixed may leaks ceph: switch from BKL to lock_flocks() ceph: preallocate flock state without locks held ceph: add pagelist_reserve, pagelist_truncate, pagelist_set_cursor ceph: use mapping->nrpages to determine if mapping is empty ceph: only invalidate on check_caps if we actually have pages ceph: do not hide .snap in root directory rbd: introduce rados block device (rbd), based on libceph ceph: factor out libceph from Ceph file system ceph-rbd: osdc support for osd call and rollback operations ceph: messenger and osdc changes for rbd ... commit 9f1ad09493451c19d00c004da479acf699eeedd6 Merge: f6f94e2 46bf36e Author: Linus Torvalds Date: Thu Oct 21 12:33:45 2010 -0700 Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/hfsplus * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/hfsplus: (29 commits) hfsplus: fix getxattr return value hfsplus: remove the unused hfsplus_kmap/hfsplus_kunmap helpers hfsplus: create correct initial catalog entries for device files hfsplus: remove superflous rootflags field in hfsplus_inode_info hfsplus: fix link corruption hfsplus: validate btree flags hfsplus: handle more on-disk corruptions without oopsing hfsplus: hfs_bnode_find() can fail, resulting in hfs_bnode_split() breakage hfsplus: fix oops on mount with corrupted btree extent records hfsplus: fix rename over directories hfsplus: convert tree_lock to mutex hfsplus: add missing extent locking in hfsplus_write_inode hfsplus: protect readdir against removals from open_dir_list hfsplus: use atomic bitops for the superblock flags hfsplus: add per-superblock lock for volume header updates hfsplus: remove the rsrc_inodes list hfsplus: do not cache and write next_alloc hfsplus: fix error handling in hfsplus_symlink hfsplus: merge mknod/mkdir/creat hfsplus: clean up hfsplus_write_inode ... commit a4ac0d847af9dd34d5953a5e264400326144b6b2 Author: Henry Ptasinski Date: Thu Oct 21 11:37:53 2010 -0700 staging: brcm80211: brcmfmac: Removed codeversion from firmware filenames. The basename-apiversion-codeversion construction for firmware filenames is not used by most other firmware files, adds complexity, and is not providing any value. Rename the firmware files using just basename-apiversion. Users of the brcmfmac driver will need to update the linux-firmware package to get the renamed files, or manually rename their installed firmware files. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit dc3f82c2e5c3f06e43855f417e4fcfc244383916 Author: Chia-I Wu Date: Thu Oct 21 19:35:54 2010 +0100 drm/i915: Fix current fb blocking for page flip Block execbuffer for the fb to be flipped away, not the one that is to be flipped in. [ickle: rewritten for -next] Signed-off-by: Chia-I Wu Acked-by: Jesse Barnes Acked-by: Kristian Høgsberg Signed-off-by: Chris Wilson commit 0a00bc2019ea54875b7263b1b0340c556379708a Author: Henry Ptasinski Date: Thu Oct 21 11:04:12 2010 -0700 staging: brcm80211: Remove unnecessary header files. These header files are no longer needed. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 30e4352349623fbe02d2709e96bc3d2a93aafbab Author: Henry Ptasinski Date: Thu Oct 21 11:04:11 2010 -0700 staging: brcm80211: Remove unnecessary includes from bcmutils.c Removed includ of bcmip.h and vlan.h, as they're no longer needed. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit ab3275a6b57cd42d25dc1f32123ac5d1fb438984 Author: Henry Ptasinski Date: Thu Oct 21 11:04:10 2010 -0700 staging: brcm80211: Removed unnecessary pktsetprio() function. This function is completely unnecessary, as packet classification is done higher up in the stack. As used, the function actually mis-classifies frames in some cases since it overwrites the classification done by the stack. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 7940a34b2e1e0485211a17d8c3ab4da1ea3e1330 Merge: 6451d77 8939b35 Author: Kevin Hilman Date: Thu Oct 21 11:21:55 2010 -0700 Merge branch 'davinci-next' into davinci-for-linus Conflicts: arch/arm/mach-davinci/board-da830-evm.c arch/arm/mach-davinci/board-da850-evm.c commit a1c16ed2664205dd69c0ea0ec6945f7f10d3edf9 Author: Greg Kroah-Hartman Date: Thu Oct 21 11:17:44 2010 -0700 Staging: brcm80211: remove typedefs.h It's not needed anymore, so remove it and clean up the .h inclusion mess a bit to get everything to build properly again. Wow, this needs some unwinding... Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 469b9b88488e89114bb3e9ac5ee7906b7b96123f Author: Masami Hiramatsu Date: Thu Oct 21 19:13:41 2010 +0900 perf probe: Add basic module support Add basic module probe support on perf probe. This introduces "--module " option to perf probe for putting probes and showing lines and variables in the given module. Currently, this supports only probing on running modules. Supporting off-line module probing is the next step. e.g.) [show lines] # ./perf probe --module drm -L drm_vblank_info 0 int drm_vblank_info(struct seq_file *m, void *data) 1 { struct drm_info_node *node = (struct drm_info_node *) m->private 3 struct drm_device *dev = node->minor->dev; ... [show vars] # ./perf probe --module drm -V drm_vblank_info:3 Available variables at drm_vblank_info:3 @ (unknown_type) data struct drm_info_node* node struct seq_file* m [put a probe] # ./perf probe --module drm drm_vblank_info:3 node m Add new event: probe:drm_vblank_info (on drm_vblank_info:3 with node m) You can now use it on all perf tools, such as: perf record -e probe:drm_vblank_info -aR sleep 1 [list probes] # ./perf probe -l probe:drm_vblank_info (on drm_vblank_info:3@drivers/gpu/drm/drm_info.c with ... Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Frederic Weisbecker LKML-Reference: <20101021101341.3542.71638.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Masami Hiramatsu Signed-off-by: Arnaldo Carvalho de Melo commit f00a3ddf91d596bece5fa31e8ce2e8a3b4c0623b Author: Chris Wilson Date: Thu Oct 21 14:57:17 2010 +0100 drm/i915: IS_IRONLAKE is synonymous with gen == 5 So remove the redundant bit in the capabilities block and s/IS_IRONLAKE/IS_GEN5/. Signed-off-by: Chris Wilson commit 549f7365820a212a1cfd0871d377b1ad0d1e5723 Author: Chris Wilson Date: Tue Oct 19 11:19:32 2010 +0100 drm/i915: Enable SandyBridge blitter ring Based on an original patch by Zhenyu Wang, this initializes the BLT ring for SandyBridge and enables support for user execbuffers. Cc: Zhenyu Wang Signed-off-by: Chris Wilson commit fb8c5a56c7ddbc2b0d2ee7a8da60fe1355f75141 Author: Masami Hiramatsu Date: Thu Oct 21 19:13:35 2010 +0900 perf probe: Show accessible global variables Add --externs for allowing --vars to show accessible global (externally defined) variables from a given probe point too. This will give you a hint which globals can be accessible from the probe point. Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Frederic Weisbecker LKML-Reference: <20101021101335.3542.31003.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Masami Hiramatsu Signed-off-by: Arnaldo Carvalho de Melo commit c82ec0a2bd7725a2d2ac3065d8cde13e1f717d3c Author: Masami Hiramatsu Date: Thu Oct 21 19:13:29 2010 +0900 perf probe: Function style fix Just change the order of function arguments for ease of read; moving optional bool flag to the last. Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Frederic Weisbecker LKML-Reference: <20101021101329.3542.51200.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Masami Hiramatsu Signed-off-by: Arnaldo Carvalho de Melo commit e36c1cd7292efcb8daca26cd6331481736544742 Author: Chris Wilson Date: Thu Oct 21 19:00:02 2010 +0100 drm/i915/ringbuffer: Remove broken intel_fill_struct() ... before someone tries to use it. The code both calls intel_ring_begin/advance() and open-codes the bookkeeping performed by those two functions. Signed-off-by: Chris Wilson commit cf6eb489e5c04c8f8d5fd7bf90b8346c987688bc Author: Masami Hiramatsu Date: Thu Oct 21 19:13:23 2010 +0900 perf probe: Show accessible local variables Add -V (--vars) option for listing accessible local variables at given probe point. This will help finding which local variables are available for event arguments. e.g.) # perf probe -V call_timer_fn:23 Available variables at call_timer_fn:23 @ function_type* fn int preempt_count long unsigned int data struct list_head work_list struct list_head* head struct timer_list* timer struct tvec_base* base Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Frederic Weisbecker LKML-Reference: <20101021101323.3542.40282.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Masami Hiramatsu Signed-off-by: Arnaldo Carvalho de Melo commit 632941c4f8fbd5b90dcb1672cd0422dfd7332bc9 Author: Masami Hiramatsu Date: Thu Oct 21 19:13:16 2010 +0900 perf probe: Support global variables Allow users to set external defined global variables as event arguments (e.g. jiffies). Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar LKML-Reference: <20101021101316.3542.1999.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Masami Hiramatsu Signed-off-by: Arnaldo Carvalho de Melo commit 378eeaad3e1cfea7f6614018fb335de93df2ba1f Author: Masami Hiramatsu Date: Thu Oct 21 19:13:09 2010 +0900 perf probe: Fix local variable searching loop Fix to check the die's address and search into the die only if it has given address. This will avoid finding wrong variables in wrong basic block. Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar LKML-Reference: <20101021101309.3542.46434.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Masami Hiramatsu Signed-off-by: Arnaldo Carvalho de Melo commit 4046b8bb5ffae9ee916e504cdadee804f10e0c56 Author: Masami Hiramatsu Date: Thu Oct 21 19:13:02 2010 +0900 perf probe: Fix type searching Fix to get the actual type die of variables by using dwarf_attr_integrate() which gets attribute from die even if the type die is connected by DW_AT_abstract_origin. Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar LKML-Reference: <20101021101302.3542.38549.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Masami Hiramatsu Signed-off-by: Arnaldo Carvalho de Melo commit c717966744e618af76aa5d7fe6cc44dba487bdc6 Author: Chris Wilson Date: Thu Oct 21 18:51:09 2010 +0100 drm/i915/ringbuffer: Fix emit batch buffer regression from 8187a2b In commit 8187a2b, the number of dwords used in the ringbuffer for executing the batch buffer was erroneously changed from 2 to 4. Signed-off-by: Chris Wilson commit f024c48a77c3c20d99de8f3424e8d3a061896885 Author: Greg Kroah-Hartman Date: Thu Oct 21 10:50:21 2010 -0700 Staging: brcm80211: remove uintptr typedef usage Use a unsigned long, that is the proper type for this type of thing on Linux. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 530719b2341fea925f58a5d6be0353fa43a88baf Author: Grant Likely Date: Thu Oct 21 11:34:55 2010 -0600 of/irq: of_irq.c needs to include linux/irq.h It works on current architectures simply because asm/prom.h includes it, but it broke when x86 turned on CONFIG_OF. Signed-off-by: Grant Likely commit 4c60071c1ea3e204b9dc25c7519f7beef355d47f Author: David Daney Date: Tue Oct 19 15:50:31 2010 -0700 of/mips: Cleanup some include directives/files. The __init directives should go on the definitions of things, not the declaration, also __init is meaningless for inline functions, so remove it from prom.h. This allows us to get rid of a useless #include, but most of the rest of them are useless too, so kill them as well. If of_i2c.c needs irq definitions, it should include linux/irq.h directly, not assume indirect inclusion via asm/prom.h. Signed-off-by: David Daney Acked-by: Ralf Baechle Signed-off-by: Grant Likely commit f2ffa5ab74f4dfd598860f96ca37a71c4d0a28a8 Author: Dezhong Diao Date: Wed Oct 13 00:52:46 2010 -0600 of/mips: Add device tree support to MIPS Add the ability to enable CONFIG_OF on the MIPS architecture. Signed-off-by: Dezhong Diao [grant.likely@secretlab.ca: cleared out obsolete hooks, removed ARCH_HAS_DEVTREE_MEM, remove __init tags from header file, removed debugfs support hunk] [ddaney@linux-mips.org: backed out over aggressive trimming of hooks] Acked-by: Ralf Baechle Tested-by: David Daney Signed-off-by: Grant Likely commit 32c97689c46b272302053778f1a6c2facb0e220c Author: Grant Likely Date: Wed Oct 20 11:45:14 2010 -0600 of/flattree: Eliminate need to provide early_init_dt_scan_chosen_arch This patch refactors the early init parsing of the chosen node so that architectures aren't forced to provide an empty implementation of early_init_dt_scan_chosen_arch. Instead, if an architecture wants to do something different, it can either use a wrapper function around early_init_dt_scan_chosen(), or it can replace it altogether. This patch was written in preparation to adding device tree support to both x86 ad MIPS. Signed-off-by: Grant Likely Tested-by: David Daney commit 7096d0422153ffcc2264eef652fc3a7bca3e6d3c Author: Grant Likely Date: Wed Oct 20 11:45:13 2010 -0600 of/device: Rework to use common platform_device_alloc() for allocating devices The current code allocates and manages platform_devices created from the device tree manually. It also uses an unsafe shortcut for allocating the platform_device and the resource table at the same time. (which I added in the last rework; sorry). This patch refactors the code to use platform_device_alloc() for allocating new devices. This reduces the amount of custom code implemented by of_platform, eliminates the unsafe alloc trick, and has the side benefit of letting the platform_bus code manage freeing the device data and resources when the device is freed. Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt Cc: Greg Kroah-Hartman Cc: "David S. Miller" Cc: Michal Simek commit 8ee48db6be4d6634d3ade242470381040d4b8e21 Author: Greg Kroah-Hartman Date: Thu Oct 21 10:03:44 2010 -0700 Staging: hv: remove struct vmbus_channel_interface Now that no one uses this structure, remove it, and channel_interface.c (which is now empty) and the function, vmbus_get_interface() which is not needed anymore either. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 036a257b0d6809988f9d3fb01e01c358ca8c45de Author: Greg Kroah-Hartman Date: Thu Oct 21 10:00:19 2010 -0700 Staging: hv: remove Open from struct vmbus_channel_interface No one calls it anymore, so remove it. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 60f841ac36cc7eff80239bd219cda7cafac3ea2a Author: Greg Kroah-Hartman Date: Thu Oct 21 09:59:06 2010 -0700 Staging: hv: storvsc: call vmbus_open directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 81c92f43e783dc247d3672211e3c4a94e76f4286 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:58:42 2010 -0700 Staging: hv: netvsc: call vmbus_open directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 36ceadfc65a78822dfb8e87fc9daab6be3ac3994 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:58:21 2010 -0700 Staging: hv: channel: export vmbus_open to modules Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit ba9bf63080bea106e91e4639cea8940b9b3851a1 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:54:42 2010 -0700 Staging: hv: remove Close from struct vmbus_channel_interface No one calls it anymore, so remove it. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 1fb9dff04c97398c4c10a97037aa1c3505663153 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:53:31 2010 -0700 Staging: hv: netvsc: call vmbus_close directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 1382e0178eeb073594c90a80409e0923adc5048c Author: Greg Kroah-Hartman Date: Thu Oct 21 09:53:11 2010 -0700 Staging: hv: storvsc: call vmbus_close directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 70bfa307861c8790ce72ae92c4e173c898cc8ff3 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:52:22 2010 -0700 Staging: hv: channel: export vmbus_close to modules Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 780e312175f688ab5ab6124c91d46fa2b9afe2d2 Author: Jean-François Moine Date: Tue Oct 19 04:29:10 2010 -0300 [media] gspca: Fix coding style issues The errors were found by checkpatch.pl. Most fixes are: - remove spaces followed by TAB(s), - split lines greater than 80 characters, - move most '{'s from start of line to end of previous line. (Some '{'s at start of line remain when the '}'s are on the same line) Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 5dd30f5170b60e7124eed4ae1b389f280fac8930 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:48:39 2010 -0700 Staging: hv: remove SendPacket from struct vmbus_channel_interface No one calls it anymore, so remove it. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 6d7bccc2215c37205ede6c9cf84db64e7c4f9443 Author: Arnd Bergmann Date: Thu Oct 21 15:58:01 2010 +0200 BKL: remove BKL from freevxfs All uses of the BKL in freevxfs were the result of a pushdown into code that doesn't really need it. As Christoph points out, this is a read-only file system, which eliminates most of the races in readdir/lookup. Signed-off-by: Arnd Bergmann Cc: Christoph Hellwig commit 073c21416268658bd1bc573af85eeac2ebb56ed5 Author: Arnd Bergmann Date: Thu Oct 21 15:53:15 2010 +0200 BKL: remove BKL from qnx4 All uses of the BKL in qnx4 were the result of a pushdown into code that doesn't really need it. As Christoph points out, this is a read-only file system, which eliminates most of the races in readdir/lookup. Signed-off-by: Arnd Bergmann Acked-by: Anders Larsen Cc: Christoph Hellwig commit b60d71e2b6d352bd781ee6ec5c141fc0cd2cd8f6 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:43:56 2010 -0700 Staging: hv: storvsc: call vmbus_sendpacket directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 5a4df29058625ce59f549730817961b293f58d49 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:43:24 2010 -0700 Staging: hv: netvsc: call vmbus_sendpacket directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit b3289aa819979dc75c169e15515ce3d2f0576e71 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:34:43 2010 -0700 Staging: hv: remove SendPacketPageBuffer from struct vmbus_channel_interface No one calls it anymore, so remove it. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit ff3f8eece20bb45f8b515641b3797b6047a657fd Author: Greg Kroah-Hartman Date: Thu Oct 21 09:32:46 2010 -0700 Staging: hv: netvsc: call vmbus_sendpacket_pagebuffer directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 76ad3b684ae6bf43662f8fc57501e4ad0e3b12e8 Author: Németh Márton Date: Tue Oct 19 03:33:47 2010 -0300 [media] gspca - sonixj: Add horizontal and vertical flip for po2030n The PO2030N sensor chip found in hama AC-150 webcam supports horizontal and vertical flipping the image by hardware. Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit ccbc5df21ca0c616c5e47d1e7f58ff5b312e03a7 Author: Németh Márton Date: Mon Oct 18 07:00:48 2010 -0300 [media] gspca - sonixj: Remove magic numbers for delay The number 0xdd is used for marking delay init sequence steps. Replace 0xdd values only if the meaning is delay. Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 713efeb4dbc07f76f06581eba18ff29f704fc250 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:29:54 2010 -0700 Staging: hv: channel: export vmbus_sendpacket_pagebuffer to modules Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 58d53f9e73c9e752d458f3444b587a91481e3ae2 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:28:30 2010 -0700 Staging: hv: remove SendPacketMultiPageBuffer from struct vmbus_channel_interface No one calls it anymore, so remove it. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 51255071af2feeb753ee3d90981869bef1566552 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:26:50 2010 -0700 Staging: hv: storvsc: call vmbus_sendpacket_multipagebuffer directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 75f05ba09f50ef934cf6dbe9bf7460a9618d8e88 Author: Jean-François Moine Date: Thu Oct 21 04:09:34 2010 -0300 [media] gspca - sonixj: Fix a regression with sensor hv7131r The bug was introduced by commit d5aa3856fd09ad0ea04619d6cba31192dac08e84 removing the probe sequence of hv7131r with bridge sn9c120 and so, letting the sensor inactive. Signed-off-by: Jean-François Moine Cc: stable@kernel.org Signed-off-by: Mauro Carvalho Chehab commit 0303a90a744662e934877a5d637a43197229274b Author: Jean-François Moine Date: Thu Oct 21 04:05:15 2010 -0300 [media] gspca - sonixj: Fix a regression of sensors hv7131r and mi0360 The bug was introduced by commit 23a98274cc348880ecb6803307c254448084953a applying values of sensor sp80708 to sensors hv7131r and mi0360. Signed-off-by: Jean-François Moine Cc: stable@kernel.org Signed-off-by: Mauro Carvalho Chehab commit 4cb106faf1e1d5566eded521d14e141b5eac36e2 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:23:59 2010 -0700 Staging: hv: channel: export vmbus_sendpacket_multipagebuffer to modules Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 22ff5c9166ed31130426714232f4a6f79235af34 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:16:54 2010 -0700 Staging: hv: remove RecvPacket from struct vmbus_channel_interface No one calls it anymore, so remove it. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 50ea95dfa2c3d4e99223867dfa2bfc8b17a890c1 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:15:14 2010 -0700 Staging: hv: storvsc: call vmbus_recvpacket directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 559f816e13b1e40e274d1aeeaaa7468986f997c0 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:11:00 2010 -0700 Staging: hv: remove RecvPacketRaw from struct vmbus_channel_interface No one calls it anymore, so remove it. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 9f630068e8ccba24d728f196cb3ddc120ebee38e Author: Greg Kroah-Hartman Date: Thu Oct 21 09:09:48 2010 -0700 Staging: hv: netvsc: call vmbus_receivepacket_raw directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit adaee6bd45f6e172cde0a98461e4e1ba19284373 Author: Greg Kroah-Hartman Date: Thu Oct 21 09:09:23 2010 -0700 Staging: hv: channel: export vmbus_receivepacket_raw to modules Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit cae5b843c82d76e643d6822597a9ea2866e9b30d Author: Greg Kroah-Hartman Date: Thu Oct 21 09:05:27 2010 -0700 Staging: hv: rename context to channel in struct hv_device As it really is a channel, not a "context" name it so. This also entailed making a few more functions typesafe as they were sending a struct vmbus_channel pointer as a void pointer. There are still a few more that need to be converted (the osd callbacks are one), but this is good for now. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 40004e24c489cbeea9089a35530b553834391bf1 Author: Ruslan Pisarev Date: Wed Oct 20 06:35:34 2010 -0300 [media] tm6000: fix macros and comments coding style issue in tm6000.h This is a patch to the tm6000.h file that fixed up a macros and comment error found by the checkpatch.pl tools. Signed-off-by: Ruslan Pisarev Signed-off-by: Mauro Carvalho Chehab commit 51a5d39610f433f282985bcba18b90c2791c2669 Author: Ruslan Pisarev Date: Wed Oct 20 06:36:18 2010 -0300 [media] Staging: tm6000: Delete braces from return in tm6000-cards.c This is a patch to the tm6000-cards.c file that fixed up a space error found by the checkpatch.pl tools. Signed-off-by: Ruslan Pisarev Signed-off-by: Mauro Carvalho Chehab commit d0058645c682a04c261516e917414ed8e39b2296 Author: Ruslan Pisarev Date: Wed Oct 20 06:35:54 2010 -0300 [media] tm6000: fix comments coding style issue in group of files This is a patch to the tm6000-cards.c tm6000-core.c tm6000-dvb.c tm6000-i2c.c tm6000-input.c tm6000-regs.h tm6000-stds.c tm6000-usb-isoc.h tm6000.h files that fixed up a comments warnings found by the checkpatch.pl tools. Signed-off-by: Ruslan Pisarev Signed-off-by: Mauro Carvalho Chehab commit 60fbfdfd8c811b6f7d825d6b2a4d09b7da2e6247 Author: Ruslan Pisarev Date: Wed Oct 20 06:35:12 2010 -0300 [media] Staging: tm6000: fix braces, tabs, comments and space coding style issue in tm6000-video.c This is a patch to the tm6000-video.c file that fixed up a braces, tabs, comments and space Errors and Warnings found by the checkpatch.pl tools. [mchehab@redhat.com: some changes didn't apply as it were based to an older version, so used patch -f to apply only the changes that are OK] Signed-off-by: Ruslan Pisarev Signed-off-by: Mauro Carvalho Chehab commit 7053a27a4c7fb3cf02944a7077c88a23b226c5f0 Author: Greg Kroah-Hartman Date: Thu Oct 21 08:55:36 2010 -0700 Staging: hv: make *context a real pointer in struct hv_device This is really the struct vmbus_channel for the device, not a void pointer, so use the real structure to ensure type safety everywhere. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit d7fe4a602df6b31475303a9f9d4d4c9fc6ae34f5 Author: Ruslan Pisarev Date: Wed Oct 20 06:34:40 2010 -0300 [media] tm6000: don't initialize static var on tm6000-i2c.c This is a patch to the tm6000-i2c.c file that fixed "ERROR: do not initialise statics to 0 or NULL" found by the checkpatch.pl tools. Signed-off-by: Ruslan Pisarev Signed-off-by: Mauro Carvalho Chehab commit d068cb4f6f469627af0a5bd45d3a21ed0df81368 Author: Greg Kroah-Hartman Date: Thu Oct 21 08:50:16 2010 -0700 Staging: hv: remove EstablishGpadl from struct vmbus_channel_interface No one calls it anymore, so remove it. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 81f162035745b59d0defd210751d52c20d4b6746 Author: Greg Kroah-Hartman Date: Thu Oct 21 08:48:19 2010 -0700 Staging: hv: netvsc: call vmbus_establish_gpadl directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 98873724aa3957f27f35a82f20c85262fae42f0d Author: Greg Kroah-Hartman Date: Thu Oct 21 08:47:43 2010 -0700 Staging: hv: channel: export vmbus_establish_gpadl to modules Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 024fafbac36b176d978ccd0fb1cae1fbc38c7fee Author: Jonathan Corbet Date: Tue Oct 19 21:32:11 2010 -0300 [media] Add the via framebuffer camera controller driver Add a driver for the video capture port on VIA integrated chipsets. This version has a remaining OLPCism or two and expects to be talking to an ov7670; those can be improved as the need arises. This work was supported by the One Laptop Per Child project. Thanks to Laurent Pinchart for a number of useful comments. Cc: Florian Tobias Schandinat Signed-off-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab commit 2198a10b501fd4443430cb17e065a9e859cc58c9 Merge: 9941fb6 db5a753 Author: David S. Miller Date: Thu Oct 21 08:43:05 2010 -0700 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 Conflicts: net/core/dev.c commit a78770572074c63fd34dd64fbfd777675bef23db Author: Greg Kroah-Hartman Date: Thu Oct 21 08:42:55 2010 -0700 Staging: hv: remove TeardownGpadl from struct vmbus_channel_interface No one calls it anymore, so remove it. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit dc4589c814a3a50a4cfc2077690fc7fd397308c8 Author: Daniel Drake Date: Mon Oct 18 18:07:36 2010 -0300 [media] ov7670: fix QVGA visible area The QVGA mode has a green horizontal line on the left hand side, and a red (or sometimes blue) vertical line at the bottom. Tweak the visible area to remove them. Thanks to Mauro for explaining how to fix this. Signed-off-by: Daniel Drake Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab commit 314bf1d12a5f7597b316552b008051c26627eabb Author: Greg Kroah-Hartman Date: Thu Oct 21 08:40:55 2010 -0700 Staging: hv: netvsc: call vmbus_teardown_gpadl directly Don't do the interface indirection, it's not needed at all. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 629292522a13b7e7f93ace8a5c79de2812c230a9 Author: Derek Kelly Date: Sat Oct 16 16:33:53 2010 -0300 [media] av7110: Fix driver name This patch changes the name of the av7110 driver from the generic "dvb" to "av7110", to be descriptive of the driver. I've included Oliver Endriss's ack from the original post, which contained a mangled patch. The content of the patch is unchanged. Signed-off-by: Derek Kelly Acked-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab commit 18726d7a60fdced593b94ff7cc5264ba753ef656 Author: Greg Kroah-Hartman Date: Thu Oct 21 08:39:59 2010 -0700 Staging: hv: channel: export vmbus_teardown_gpadl to modules Drivers need to call this directly, so export it, like other vmbus functions. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit cec4e6c113d490c227819da98d541e6156ed6ce2 Author: Michel Garnier Date: Sat Oct 16 14:42:01 2010 -0300 [media] em28xx: Add dvb support for Terratec Cinergy Hybrid T USB XS FR Signed-off-by: Michel Garnier Signed-off-by: Mauro Carvalho Chehab commit 5b917a1420d3d1a9c8da49fb0090692dc9aaee86 Author: Vasiliy Kulikov Date: Sun Oct 17 18:41:24 2010 +0400 pcmcia: synclink_cs: fix information leak to userland Structure new_line is copied to userland with some padding fields unitialized. It leads to leaking of stack memory. Signed-off-by: Vasiliy Kulikov CC: stable@kernel.org Signed-off-by: Dominik Brodowski commit 9941fb62762253774cc6177d0b9172ece5133fe1 Merge: a5190b4 3b1a1ce Author: David S. Miller Date: Thu Oct 21 08:21:34 2010 -0700 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6 commit f4bc6bb2d562703eafc895c37e7be20906de139d Author: Thomas Gleixner Date: Tue Oct 19 15:00:13 2010 +0200 tracing: Cleanup the convoluted softirq tracepoints With the addition of trace_softirq_raise() the softirq tracepoint got even more convoluted. Why the tracepoints take two pointers to assign an integer is beyond my comprehension. But adding an extra case which treats the first pointer as an unsigned long when the second pointer is NULL including the back and forth type casting is just horrible. Convert the softirq tracepoints to take a single unsigned int argument for the softirq vector number and fix the call sites. Signed-off-by: Thomas Gleixner LKML-Reference: Acked-by: Peter Zijlstra Acked-by: mathieu.desnoyers@efficios.com Cc: Frederic Weisbecker Cc: Steven Rostedt commit 3b1a1ce6f418cb7ab35eb55c8a6575987a524e30 Merge: cc6eb43 b0aeef3 Author: Patrick McHardy Date: Thu Oct 21 16:25:51 2010 +0200 Merge branch 'for-patrick' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/lvs-test-2.6 commit cc6eb433856983e91071469c4ce57accb6947ccb Author: Balazs Scheidler Date: Thu Oct 21 16:21:10 2010 +0200 tproxy: use the interface primary IP address as a default value for --on-ip The REDIRECT target and the older TProxy versions used the primary address of the incoming interface as the default value of the --on-ip parameter. This was unintentionally changed during the initial TProxy submission and caused confusion among users. Since IPv6 has no notion of primary address, we just select the first address on the list: this way the socket lookup finds wildcard bound sockets properly and we cannot really do better without the user telling us the IPv6 address of the proxy. This is implemented for both IPv4 and IPv6. Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit b64c9256a9b76fc9f059f71bd08ba88fb0cbba2e Author: Balazs Scheidler Date: Thu Oct 21 16:19:42 2010 +0200 tproxy: added IPv6 support to the socket match The ICMP extraction bits were contributed by Harry Mason. Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit a5190b4eea1f1c53ee26b3d1176441cafa8e7f79 Author: stephen hemminger Date: Fri Oct 15 12:43:10 2010 +0000 cxgb3: function namespace cleanup Make local functions static. Remove functions that are defined and never used. Compile tested only. Signed-off-by: Stephen Hemminger Acked-by: Divy Le Ray Signed-off-by: David S. Miller commit 6ad7889327a5ee6ab4220bd34e4428c7d0de0f32 Author: Balazs Scheidler Date: Thu Oct 21 16:17:26 2010 +0200 tproxy: added IPv6 support to the TPROXY target This requires a new revision as the old target structure was IPv4 specific. Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit 5d18c1c2a9a74e0f966c257520b8b7f5136c87b3 Author: J. Bruce Fields Date: Tue Oct 19 23:00:12 2010 -0400 nfsd4: only require krb5 principal for NFSv4.0 callbacks In the sessions backchannel case, we don't need a krb5 principal name for the client; we use the already-created forechannel credentials instead. Some cleanup, while we're there: make it clearer which code here is 4.0- or sessions- specific. Signed-off-by: J. Bruce Fields commit 3b9afb29917f4ab08decf358ecfd354a72a91ac0 Author: Balazs Scheidler Date: Thu Oct 21 16:12:14 2010 +0200 tproxy: added IPv6 socket lookup function to nf_tproxy_core Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit 8323c3b2a6b6543919d5ebdddc7d52f192126161 Author: J. Bruce Fields Date: Tue Oct 19 19:36:51 2010 -0400 nfsd4: move minorversion to client The minorversion seems more a property of the client than the callback channel. Some time we should probably also enforce consistent minorversion usage from the client; for now, this is just a cosmetic change. Signed-off-by: J. Bruce Fields commit 792c95dd519c54d6b0fd6401b3da7ea67b0d6b72 Author: J. Bruce Fields Date: Tue Oct 12 19:55:25 2010 -0400 nfsd4: delay session removal till free_client Have unhash_client_locked() remove client and associated sessions from global hashes, but delay further dismantling till free_client(). (After unhash_client_locked(), the only remaining references outside the destroying thread are from any connections which have xpt_user callbacks registered.) This will simplify locking on session destruction. Signed-off-by: J. Bruce Fields commit 5a3c9d71343cf27b7afef24ed312368d48dada09 Author: J. Bruce Fields Date: Tue Oct 19 17:56:52 2010 -0400 nfsd4: separate callback change and callback probe Only one of the nfsd4_callback_probe callers actually cares about changing the callback information. Signed-off-by: J. Bruce Fields commit 8b5ce5cd44743af84507721fa2cb4125ae67955c Author: J. Bruce Fields Date: Tue Oct 19 17:31:50 2010 -0400 nfsd4: callback program number is per-session The callback program is allowed to depend on the session which the callback is going over. No change in behavior yet, while we still only do callbacks over a single session for the lifetime of the client. Signed-off-by: J. Bruce Fields commit d29c374cd20de620898d2936396048518809ae24 Author: J. Bruce Fields Date: Tue Jun 15 17:34:11 2010 -0400 nfsd4: track backchannel connections We need to keep track of which connections are available for use with the backchannel, which for the forechannel, and which for both. Signed-off-by: J. Bruce Fields commit 86c3e16cc7aace4d1143952813b6cc2a80c51295 Author: J. Bruce Fields Date: Sat Oct 2 17:04:00 2010 -0400 nfsd4: confirm only on succesful create_session Following rfc 5661, section 18.36.4: "If the session is not successfully created, then no changes are made to any client records on the server." We shouldn't be confirming or incrementing the sequence id in this case. Signed-off-by: J. Bruce Fields commit ac7c46f29a44f6d7f6d2e36dc874c0b7056acad2 Author: J. Bruce Fields Date: Mon Jun 14 19:01:57 2010 -0400 nfsd4: make backchannel sequence number per-session Currently we don't deal well with a client that has multiple sessions associated with it (even simultaneously, or serially over the lifetime of the client). In particular, we don't attempt to keep the backchannel running after the original session diseappears. We will fix that soon. Once we do that, we need the slot sequence number to be per-session; otherwise, for example, we cannot correctly handle a case like this: - All session 1 connections are lost. - The client creates session 2. We use it for the backchannel (since it's the only working choice). - The client gives us a new connection to use with session 1. - The client destroys session 2. At this point our only choice is to go back to using session 1. When we do so we must use the sequence number that is next for session 1. We therefore need to maintain multiple sequence number streams. Signed-off-by: J. Bruce Fields commit 90c8145bb6fe1d9e0a808de6a701748967588bbd Author: J. Bruce Fields Date: Mon Jun 14 17:49:37 2010 -0400 nfsd4: use client pointer to backchannel session Instead of copying the sessionid, use the new cl_cb_session pointer, which indicates which session we're using for the backchannel. Signed-off-by: J. Bruce Fields commit edd76786633a3145661c7a90c9baccae8e3c9e84 Author: J. Bruce Fields Date: Mon Jun 14 22:26:31 2010 -0400 nfsd4: move callback setup into session init code The backchannel should be associated with a session, it isn't really global to the client. We do, however, want a pointer global to the client which tracks which session we're currently using for client-based callbacks. This is a first step in that direction; for now, just reshuffling of code with no significant change in behavior. Signed-off-by: J. Bruce Fields commit cd5b814458e5554457c6e62f17aed122145b065e Author: J. Bruce Fields Date: Sat Oct 2 17:03:35 2010 -0400 nfsd4: don't cache seq_misordered replies Signed-off-by: J. Bruce Fields commit 9247685088398cf21bcb513bd2832b4cd42516c4 Author: Chuck Lever Date: Wed Oct 20 11:53:01 2010 -0400 SUNRPC: Properly initialize sock_xprt.srcaddr in all cases The source address field in the transport's sock_xprt is initialized ONLY IF the RPC application passed a pointer to a source address during the call to rpc_create(). However, xs_bind() subsequently uses the value of this field without regard to whether the source address was initialized during transport creation or not. So far we've been lucky: the uninitialized value of this field is zeroes. xs_bind(), until recently, used only the sin[6]_addr field in this sockaddr, and all zeroes is a valid value for this: it means ANYADDR. This is a happy coincidence. However, xs_bind() now wants to use the sa_family field as well, and expects it to be initialized to something other than zero. Therefore, the source address sockaddr field should be fully initialized at transport create time in _every_ case, not just when the RPC application wants to use a specific bind address. Bruce added a workaround for this missing initialization by adjusting commit 6bc9638a, but the "right" way to do this is to ensure that the source address sockaddr is always correctly initialized from the get-go. This patch doesn't introduce a behavior change. It's simply a clean-up of Bruce's fix, to prevent future problems of this kind. It may look like overkill, but a) it clearly documents the default initial value of this field, b) it doesn't assume that the sockaddr_storage memory is first initialized to any particular value, and c) it will fail verbosely if some unknown address family is passed in Originally introduced by commit d3bc9a1d. Signed-off-by: Chuck Lever Signed-off-by: J. Bruce Fields commit 4232e8634ad82c5a53389e4016de15a8b15c09c3 Author: Chuck Lever Date: Wed Oct 20 11:52:51 2010 -0400 SUNRPC: Use conventional switch statement when reclassifying sockets Clean up. Defensive coding: If "family" is ever something that is neither AF_INET nor AF_INET6, xs_reclassify_socket6() is not the appropriate default action. Choose to do nothing in that case. Introduced by commit 6bc9638a. Signed-off-by: Chuck Lever Signed-off-by: J. Bruce Fields commit a25e758c5fa1137e1bbc440194e55f7c59177145 Author: Tejun Heo Date: Fri Oct 15 17:49:27 2010 +0200 sunrpc/xprtrdma: clean up workqueue usage * Create and use svc_rdma_wq instead of using the system workqueue and flush_scheduled_work(). This workqueue is necessary to serve as flushing domain for rdma->sc_work which is used to destroy itself and thus can't be flushed explicitly. * Replace cancel_delayed_work() + flush_scheduled_work() with cancel_delayed_work_sync(). * Implement synchronous connect in xprt_rdma_connect() using flush_delayed_work() on the rdma_connect work instead of using flush_scheduled_work(). This is to prepare for the deprecation and removal of flush_scheduled_work(). Signed-off-by: Tejun Heo Signed-off-by: J. Bruce Fields commit cc4ce020935eab2d261b7b8d24a9843b56ad594c Author: Somnath Kotur Date: Thu Oct 21 07:11:14 2010 -0700 be2net: Changes to use only priority codes allowed by f/w Changes to use one of the priority codes allowed by CNA f/w for NIC traffic from host. The driver gets the bit map of the priority codes allowed for host traffic through a asynchronous message from the f/w that the driver subscribes to. Signed-off-by: Somnath Kotur Signed-off-by: David S. Miller commit 7f80d734b3b5d23b9851cc03cc20733bca2c724e Author: Chris Bagwell Date: Mon Oct 11 18:47:18 2010 -0500 eeepc-wmi: Add cpufv sysfs interface eeepc-laptop provides a sysfs interface to read and control what it calls cpufv. When WMI is enabled, the ACPI interface changes slightly and becames a write-only control with 3 valid values. Expose cpufv again to allow for user space utils that can extended battery life noticably and come a little closer to parity with eeepc-laptop. Write-only is OK for most user space apps because read status was mostly used to prevent unneeded mode changes. Since this same check to ignore changes to same mode also exists in the DSDT then it was wasted ACPI call. acpi_osi="!Windows 2009" can be used for get back eeepc-laptop's read support of cpufv for debugging things such as behaviour during resume. This patch was tested with EEE PC 1005PE by monitoring powertop output while writing values of "0", "1", and "2" and by reviewing the decompiled DSDT of an 1201NL and comparing it to 1005PE's DSDT. Signed-off-by: Chris Bagwell Signed-off-by: Matthew Garrett commit eda1748418beb1b9a75d0cea3304edf922c66134 Author: Chris Bagwell Date: Mon Oct 11 18:47:17 2010 -0500 eeepc-wmi: add additional hotkeys Added 4 hotkeys using same keymap values as eeepc-latop. These are mousepad toggle, resolution change, screen off, and task manager. These were tested on 1005PE and are the Fn-F3, F4, F7, and F9, respectively. Also, added a new hot key for power toggles (Fn-Space on 1005PE) and is meant to drive cpufv interface from userspace. Signed-off-by: Chris Bagwell Signed-off-by: Matthew Garrett commit e253fb944d3335a29bc392eafbe14c43832e806a Author: Jean Delvare Date: Thu Oct 21 11:50:47 2010 +0200 panasonic-laptop: Simplify calls to acpi_pcc_retrieve_biosdata Function acpi_pcc_retrieve_biosdata is always called with parameters (pcc, pcc->sinf), so we can drop the second parameter. It was dangerous to pass the sinf array separately anyway, as its length is checked as pcc->num_sifr, which pretty much assumed it was pcc->sinf (or at least had the same size.) This change makes the code slightly more compact and thus marginally faster. Signed-off-by: Jean Delvare Cc: Harald Welte Signed-off-by: Matthew Garrett commit aa13857f13c3d5535904781e264d8f9115e30438 Author: Jean Delvare Date: Thu Oct 21 11:48:47 2010 +0200 panasonic-laptop: Handle errors properly if they happen acpi_pcc_retrieve_biosdata() returns success instead of error if HKEY.SINF is invalid. Fix this. Furthermore, if acpi_pcc_retrieve_biosdata() returns an error during device addition, initialization is properly reverted but value 0 is returned, which means success. This would cause a crash when later using or removing the device, so fix this too. Signed-off-by: Jean Delvare Cc: Harald Welte Cc: Bruno Premont Signed-off-by: Matthew Garrett commit 4119617919c243755946699808ffd0f4befa62c7 Author: Axel Lin Date: Fri Oct 8 17:54:31 2010 +0800 intel_pmic_gpio: fix off-by-one value range checking In pmic_irq_type(), we use gpio as array index for trigger, thus the valid value range for gpio should be 0 .. NUM_GPIO - 1. Signed-off-by: Axel Lin Signed-off-by: Matthew Garrett commit 35f0ce032b0f2d6974da516b5a113f49b7b70b09 Author: Vernon Mauery Date: Tue Oct 5 15:47:18 2010 -0700 IBM Real-Time "SMI Free" mode driver -v7 After a period of RFC for this driver, I think it is ready for inclusion in the platform-driver-x86 tree, hopefully to be staged in the next merge window into Linus's tree. --Vernon ------------------------------------------------------------ IBM Real-Time "SMI Free" mode driver This driver supports the Real-Time Linux (RTL) BIOS feature. The RTL feature allows non-fatal System Management Interrupts (SMIs) to be disabled on supported IBM platforms and is intended to be coupled with a user-space daemon to monitor the hardware in a way that can be prioritized and scheduled to better suit the requirements for the system. The Device is presented as a special "_RTL_" table to the OS in the Extended BIOS Data Area. There is a simple protocol for entering and exiting the mode at runtime. This driver creates a simple sysfs interface to allow a simple entry and exit from RTL mode in the UFI/BIOS. Since the driver is specific to IBM SystemX hardware (x86- based servers) it only builds on x86 builds. To reduce the risk of loading on the wrong hardware, the module uses DMI information and checks a list of servers that are known to work. Signed-off-by: Vernon Mauery Signed-off-by: Matthew Garrett commit 260586d2b444909380137de6c6423e5b44edf4db Author: Daniel Drake Date: Tue Oct 5 15:55:21 2010 +0100 Add OLPC XO-1 rfkill driver Add a software rfkill switch for the WLAN interface in the OLPC XO-1 laptop. It uses the OLPC embedded controller to cut/restore power to the Marvell WLAN chip on the motherboard. Signed-off-by: Daniel Drake Signed-off-by: Matthew Garrett commit bd9fc3a72345807683a009c1e19dc0d517f0f4e7 Author: Jean Delvare Date: Tue Oct 5 12:08:57 2010 +0200 Move hdaps driver to platform/x86 The hdaps driver isn't a hardware monitoring driver, so it shouldn't live under driver/hwmon. drivers/platform/x86 seems much more appropriate, as the driver is only useful on x86 laptops. Signed-off-by: Jean Delvare Cc: Guenter Roeck Cc: Matthew Garrett Cc: Frank Seidel Signed-off-by: Matthew Garrett commit 0a513f6af962525ed4b3395f8c8d5daae8682aa9 Author: Balazs Scheidler Date: Thu Oct 21 16:10:03 2010 +0200 tproxy: allow non-local binds of IPv6 sockets if IP_TRANSPARENT is enabled Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit 6c46862280c5f55eda7750391bc65cd7e08c7535 Author: Balazs Scheidler Date: Thu Oct 21 16:08:28 2010 +0200 tproxy: added tproxy sockopt interface in the IPV6 layer Support for IPV6_RECVORIGDSTADDR sockopt for UDP sockets were contributed by Harry Mason. Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit aa976fc011efa1f0e3290c6c9addf7c20757f885 Author: Balazs Scheidler Date: Thu Oct 21 16:05:41 2010 +0200 tproxy: added udp6_lib_lookup function Just like with IPv4, we need access to the UDP hash table to look up local sockets, but instead of exporting the global udp_table, export a lookup function. Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit 88440ae70eda83d0cc94148d404f4990c9f1289c Author: Balazs Scheidler Date: Thu Oct 21 16:04:33 2010 +0200 tproxy: added const specifiers to udp lookup functions The parameters for various UDP lookup functions were non-const, even though they could be const. TProxy has some const references and instead of downcasting it, I added const specifiers along the path. Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit e97c3e278e951501c2f385de70c3ceacdea78c4a Author: Balazs Scheidler Date: Thu Oct 21 16:03:43 2010 +0200 tproxy: split off ipv6 defragmentation to a separate module Like with IPv4, TProxy needs IPv6 defragmentation but does not require connection tracking. Since defragmentation was coupled with conntrack, I split off the two, creating an nf_defrag_ipv6 module, similar to the already existing nf_defrag_ipv4. Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit 74c4792c8789a165ed41ef3b9c12084c6491cadf Author: Mauro Carvalho Chehab Date: Wed Oct 20 11:56:50 2010 -0300 [media] ir-raw-event: Fix a stupid error at a printk Signed-off-by: Mauro Carvalho Chehab commit 437258432a322e12a80fae57237aa9b87b0b9e60 Author: Mauro Carvalho Chehab Date: Mon Oct 18 21:18:49 2010 -0300 [media] cx231xx: Fix compilation breakage if DVB is not selected In file included from drivers/media/video/cx231xx/cx231xx-audio.c:40: drivers/media/video/cx231xx/cx231xx.h:559: error: field ‘frontends’ has incomplete type make[4]: ** [drivers/media/video/cx231xx/cx231xx-audio.o] Erro 1 make[3]: ** [drivers/media/video/cx231xx] Erro 2 make[2]: ** [drivers/media/video] Erro 2 make[1]: ** [drivers/media] Erro 2 make: ** [drivers] Erro 2 Reported-by: Marcio Araujo Alves Signed-off-by: Mauro Carvalho Chehab commit 44ed8950f8529ad58becc2de2f14a49ad32393ad Author: Mauro Carvalho Chehab Date: Mon Oct 18 19:28:07 2010 -0300 [media] cx231xx: Remove IR support from the driver Polaris design uses MCE support. Instead of reinventing the wheel, just let mceusb handle the remote controller. Acked-by: Jarod Wilson Acked-by: Sri Devi Signed-off-by: Mauro Carvalho Chehab commit 10e4ebb6d5fcc60e0b78b228c2683cb6ee4543ba Author: Mauro Carvalho Chehab Date: Mon Oct 18 21:10:46 2010 -0300 [media] cx231xx: Only register USB interface 1 Interface 0 is used by IR. The current driver starts initializing on it, finishing on interface 6. Change the logic to only handle interface 1. This allows another driver (mceusb) to take care of the IR interface. Reviewed-by: Jarod Wilson Acked-by: Sri Devi Signed-off-by: Mauro Carvalho Chehab commit 56e92f60c3baa08a66a025ba4ed10c15c4a059cb Author: Mauro Carvalho Chehab Date: Mon Oct 18 16:32:50 2010 -0300 [media] mceusb: add support for cx231xx-based IR (e. g. Polaris) For now, it adds support for Conexant EVK and for Pixelview. We should probably find a better way to specify all Conexant Polaris devices, to avoid needing to repeat this setup on both mceusb and cx231xx-cards. Reviewed-by: Jarod Wilson Acked-by: Sri Devi Signed-off-by: Mauro Carvalho Chehab commit 6de5bd128d381ad88ac6d419a5e597048eb468cf Author: Arnd Bergmann Date: Sat Sep 11 18:00:57 2010 +0200 BKL: introduce CONFIG_BKL. With all the patches we have queued in the BKL removal tree, only a few dozen modules are left that actually rely on the BKL, and even there are lots of low-hanging fruit. We need to decide what to do about them, this patch illustrates one of the options: Every user of the BKL is marked as 'depends on BKL' in Kconfig, and the CONFIG_BKL becomes a user-visible option. If it gets disabled, no BKL using module can be built any more and the BKL code itself is compiled out. The one exception is file locking, which is practically always enabled and does a 'select BKL' instead. This effectively forces CONFIG_BKL to be enabled until we have solved the fs/lockd mess and can apply the patch that removes the BKL from fs/locks.c. Signed-off-by: Arnd Bergmann commit 75b2d09a295d3232fdacd0a0a07d91c6f118ca18 Author: Matthew Garrett Date: Tue Oct 5 09:18:30 2010 -0400 ideapad-laptop: Fix Makefile The makefile didn't get updated when the driver changed name, which broke the build. Signed-off-by: Matthew Garrett commit ffcfff3a8d6cc94f1fb598e0b021c64ce35b5036 Author: Alek Du Date: Mon Oct 4 16:40:35 2010 +0100 intel_pmic_gpio: swap the bits and mask args for intel_scu_ipc_update_register The intel_scu_ipc_update_register 2nd paramter should the bits and 3rd paramter should be the mask. This typo was introduced during IPC function changing... Reported-by: Ryan Zhou Signed-off-by: Alek Du Signed-off-by: Alan Cox Signed-off-by: Matthew Garrett commit bfa97b7dab708b100040a1335ea0860a8b9ef346 Author: Ike Panhc Date: Fri Oct 1 15:40:22 2010 +0800 ideapad: Add param: no_bt_rfkill Add new module parameter that force module not to register bluetooth rfkill. There is report that saying using this bluetooth rfkill to enable/disable bluetooth will let bluetooth device initial failed when enable on Lenovo ideapad S12. Fortunately there is another rfkill registered by bluetooth driver for S12 and user can shutdown the bluetooth by either bluetooth driver or HW RF switch. For dual OS user, it may have some trouble that using Linux after turning off bluetooth with another OS if we do not register bluetooth rfkill at all. So we will force bluetooth enable when no_bt_rfkill=1. Signed-off-by: Ike Panhc Tested-by: Mario 'BitKoenig' Holbe Signed-off-by: Matthew Garrett commit 57ac3b051cc09693f2e0f4725c87091ab11c7318 Author: Ike Panhc Date: Fri Oct 1 15:40:09 2010 +0800 ideapad: Change the driver name to ideapad-laptop Since the platform drivers doing more for laptops than just using specific ACPI device. It will be good to change the name from *_acpi to *-laptop. Reference: http://lkml.org/lkml/2010/8/14/154 Signed-off-by: Ike Panhc Acked-by: Len Brown Signed-off-by: Matthew Garrett commit fa08359ee29bd0dc52a4281d0e482fff08664b96 Author: Ike Panhc Date: Fri Oct 1 15:39:59 2010 +0800 ideapad: rewrite the sw rfkill set Control power of rf modules by ec commands Signed-off-by: Ike Panhc Signed-off-by: Matthew Garrett commit 2b7266bd49efc84f6642cf9bb7fb37d286345d15 Author: Ike Panhc Date: Fri Oct 1 15:39:49 2010 +0800 ideapad: rewrite the hw rfkill notify 1. Read hw rfkill status by ec command 2. Not to touch sw status of each rfkill when hw rfkill notify 3. Initial rfkill status when module loaded Signed-off-by: Ike Panhc Signed-off-by: Matthew Garrett commit 26c81d5c9a88af404a5fef43caa259e8637fec94 Author: Ike Panhc Date: Fri Oct 1 15:39:40 2010 +0800 ideapad: use EC command to control camera Signed-off-by: Ike Panhc Signed-off-by: Matthew Garrett commit dfa7f6fe0ad7697ba43303bf37487987409b1b91 Author: Ike Panhc Date: Fri Oct 1 15:39:29 2010 +0800 ideapad: use return value of _CFG to tell if device exist or not There are several bits of the return value of _CFG shows if RF/Camera devices exist or not. Signed-off-by: Ike Panhc Signed-off-by: Matthew Garrett commit 6f8371c05e64138c305aa1b6a21857cd7a50e147 Author: Ike Panhc Date: Fri Oct 1 15:39:14 2010 +0800 ideapad: make sure we bind on the correct device By reading from method _CFG to make sure we bind on the correct VPC2004 device. Signed-off-by: Ike Panhc Signed-off-by: Matthew Garrett commit 8e7d354370f61cbe82a8b4a0f74224aed900b410 Author: Ike Panhc Date: Fri Oct 1 15:39:05 2010 +0800 ideapad: check VPC bit before sync rfkill hw status Check VPC bit to make sure the HW rfkill is touched. Signed-off-by: Ike Panhc Signed-off-by: Matthew Garrett commit 6a09f21dd1e205a68c8f8c4f39e4cff8f63801b6 Author: Ike Panhc Date: Fri Oct 1 15:38:46 2010 +0800 ideapad: add ACPI helpers There are two methods under VPC2004 which is used to access VDAT/VCMD of EC register. Add helpers for read and write these two registers. And add read_method_int for reading the return value from ACPI methods which requires no parameter. Signed-off-by: Ike Panhc Signed-off-by: Matthew Garrett commit 037accfa14b28ecf49d9060063929c4b4cde373f Author: Keng-Yu Lin Date: Tue Sep 28 11:43:31 2010 +0800 dell-laptop: Add debugfs support Export the status of RF killswitch through debugfs. The killswitch status is obtained by the SMI to BIOS. Exporting this status through debugfs can help identify the issue with the misbehaving firmware. Signed-off-by: Keng-Yu Lin Signed-off-by: Matthew Garrett commit c64eefd48c44fa8145ad1f96edabf4a053fffc49 Author: Dmitry Torokhov Date: Thu Aug 26 00:15:30 2010 -0700 WMI: embed struct device directly into wmi_block Instead of creating wmi_blocks and then register corresponding devices on a separate pass do it all in one shot, since lifetime rules for both objects are the same. This also takes care of leaking devices when device_create fails for one of them. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 614ef4322200086447d5e1f79e8876213c94f499 Author: Dmitry Torokhov Date: Thu Aug 26 00:15:25 2010 -0700 WMI: make use of class device's attributres Instead of adding modalias attribute manually set it up as class's device attribute so driver core will create and remove it for us. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 8e07514db8d037a8454e81cd529a9844c9fa7075 Author: Dmitry Torokhov Date: Thu Aug 26 00:15:19 2010 -0700 WMI: use pr_err() and friends This makes source more concise and easier to read. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 762e1a2ff6c1116d8f6f175994753fa2319097f2 Author: Dmitry Torokhov Date: Thu Aug 26 00:15:14 2010 -0700 WMI: use separate list head for storing wmi blocks Do not abuse wmi_block structure to hold the head of list of blocks, use separate list_head for that. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 378306628e26d2945a1ed245f177a693c314e68d Author: Dmitry Torokhov Date: Thu Aug 26 00:15:09 2010 -0700 WMI: simplify handling of returned WMI blocks in parse_wdg() There is no reason why we allocate memory and copy data into an intermediate buffer, it is not like we are working with data coming from userspace. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 3d2c63eb5e0abfd06b19928c8ed43020b3451a3c Author: Dmitry Torokhov Date: Thu Aug 26 00:15:03 2010 -0700 WMI: fix potential NULL pointer dereference Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 64ed0ab8d060d28a7787de29c76178c2efc1dd65 Author: Dmitry Torokhov Date: Thu Aug 26 00:14:58 2010 -0700 WMI: do not leak memory in parse_wdg() If we _WDG returned object that is not buffer we were forgetting to free memory allocated for that object. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 4e4304d7498c85f6ea798ee5fcb5d3bd3741e74f Author: Dmitry Torokhov Date: Thu Aug 26 00:14:53 2010 -0700 WMI: fix wmi_gtoa() to actully terminate the string Courtesy of sparse... Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 2d5ab5551f38793f8977114d78a98aad138cfb4e Author: Dmitry Torokhov Date: Thu Aug 26 00:14:48 2010 -0700 WMI: free wmi blocks when parse_wdg() fails Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 5212cd678af82fef00f6d60d14de01c1211aad56 Author: Dmitry Torokhov Date: Thu Aug 26 00:14:42 2010 -0700 WMI: remove EC region handler when _WDG parsing fails Driver initialization was forgetting to remove EC address space handler in cases when parse_wdg() method failed. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit ac9b1e5b63d5d9829ecf2294f0486ccd270c5db4 Author: Dmitry Torokhov Date: Thu Aug 26 00:12:19 2010 -0700 asus-laptop: use attribute group to manage attributes Instead of registering (and removing) every attribute individually switch to using sysfs attribute group. This makes sure that we properly unwind and do not try to remove non-existent attributes which may not be safe to do in the future. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 209009b2cb29124ad707fbb3ba4c95d3d100a1c4 Author: Alan Cox Date: Mon Sep 13 15:55:05 2010 +0100 scu_ipc: Fix warning caused by include changes We need to include the SFI headers. This is fine as the SCU is only relevant to x86 platforms with SFI. Fixes the -next warning report. Signed-off-by: Alan Cox Signed-off-by: Matthew Garrett commit 392bd8b58414106b129d72a33fa99b999b720237 Author: Andy Shevchenko Date: Sat Sep 11 16:31:02 2010 +0300 platform: x86: throw away custom methods In 2.6.35 the hex_to_bin() was introduced. Signed-off-by: Andy Shevchenko Cc: Carlos Corbacho Cc: Matthew Garrett Cc: platform-driver-x86@vger.kernel.org Signed-off-by: Matthew Garrett commit 91e5d284a7f14c70187914056b0466163a5e2f03 Author: Randy Dunlap Date: Sat Aug 28 10:10:50 2010 -0700 acpi_toshiba: fix kconfig error Fix kconfig recursive dependency error in ACPI_TOSHIBA: it uses both select and depends on for BACKLIGHT_CLASS_DEVICE. drivers/video/backlight/Kconfig:117:error: recursive dependency detected! drivers/video/backlight/Kconfig:117: symbol BACKLIGHT_CLASS_DEVICE is selected by ACPI_TOSHIBA drivers/platform/x86/Kconfig:490: symbol ACPI_TOSHIBA depends on LEDS_CLASS drivers/leds/Kconfig:12: symbol LEDS_CLASS is selected by BACKLIGHT_ADP8860 drivers/video/backlight/Kconfig:285: symbol BACKLIGHT_ADP8860 depends on BACKLIGHT_CLASS_DEVICE Signed-off-by: Randy Dunlap Signed-off-by: Matthew Garrett commit af9902e130d30ce46b5827d18f8dd56e2accbaf1 Author: Pascal de Bruijn Date: Mon Aug 30 09:09:53 2010 +0200 Don't show error if Acer WMI is not found Signed-off-by: Matthew Garrett commit b404ecbf91a5c19c0f448b513aa26696eee09392 Author: Dmitry Torokhov Date: Wed Aug 25 07:45:45 2010 -0700 asus-laptop: remove no longer used keycode_map field The driver uses sparse keymap library and does not use this field anymore. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 23f45c3a76e715217f40ac397c15815c774cad7f Author: Corentin Chary Date: Tue Aug 24 09:30:46 2010 +0200 asus-laptop: fix gps rfkill The GPS rfkill crappy code. The ops_data argument wasn't set, and was totally misused. The fix have been tested on an Asus R2H. Cc: stable@kernel.org Signed-off-by: Corentin Chary Signed-off-by: Matthew Garrett commit b58baecddee634903f339b7f7e9db7fc2a1449f1 Author: Corentin Chary Date: Tue Aug 24 09:30:45 2010 +0200 asus-laptop: Add key found on Asus N61JQ Signed-off-by: Corentin Chary Signed-off-by: Matthew Garrett commit 71e687dc499819caa0d6ee0f80dcda1d5c24b5b2 Author: Corentin Chary Date: Tue Aug 24 09:30:44 2010 +0200 platform-x86: sync eeepc-laptop and asus-laptop Makes asus-laptop and eeepc-laptop _init/_exit functions looks exactly the same as they do the same thing. Signed-off-by: Corentin Chary Signed-off-by: Matthew Garrett commit 384a7cd9ace5b37a17ffea436f09170cdf671c88 Author: Dmitry Torokhov Date: Wed Aug 4 22:30:19 2010 -0700 toshiba-acpi - switch to using sparse keymap Instead of implementing its own version of keymap hanlding switch over to using sparse keymap library. Also, install notify handler only after we allocated input device, otherwise we may risk getting event too early and crash. Similarly, notify handler should be removed before we unregister input device. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 4d291ed7217d617dacbf54b4bd35819b0d08b981 Author: Dmitry Torokhov Date: Wed Aug 4 22:30:13 2010 -0700 Input: hp-wmi - switch to using sparse keymap library Instead of implementing its own version of keymap hanlding switch over to using sparse keymap library. Also make sure that we install notify handler only after we allocated input device and that we remove notify handler before unregistering input device. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 890a7c8e8dc2d0890e795bda9ad3484ebac42c0b Author: Dmitry Torokhov Date: Wed Aug 4 22:30:08 2010 -0700 Input: dell-wmi - switch to using sparse keymap library Instead of implementing its own version of keymap hanlding switch over to using sparse keymap library. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 1a765cac9a241380511a3b1dd4edf74a41cbfdf9 Author: Dmitry Torokhov Date: Wed Aug 4 22:30:02 2010 -0700 panasonic-laptop - switch to using sparse keymap library nstead of implementing its own version of keymap hanlding switch over to using sparse keymap library. Cc: Harald Welte Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 97490f1cf82cccf2e088aafffb0517802f0ee336 Author: Dmitry Torokhov Date: Wed Aug 4 22:29:57 2010 -0700 topstar-laptop - switch to using sparse keymap library Instead of implementing its own version of keymap hanlding switch over to using sparse keymap library. Acked-by: Herton Ronaldo Krzesinski Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett commit 9efd85dfff92d9b52675045362677064321332bf Author: Mauro Carvalho Chehab Date: Mon Oct 11 10:48:11 2010 -0300 [media] tm6000: fix resource locking Signed-off-by: Mauro Carvalho Chehab commit 4ae18398008d9a7fdddc6beb2e0b85fcc9cf093d Author: Mauro Carvalho Chehab Date: Mon Oct 11 09:57:34 2010 -0300 [media] tm6000: Use just one lock for devlist This avoids a race condition Signed-off-by: Mauro Carvalho Chehab commit 5bba6c56dc99ff88f79a79572e29ecf445710878 Author: Konrad Rzeszutek Wilk Date: Thu Oct 21 09:36:07 2010 -0400 X86/PCI: Remove the dependency on isapnp_disable. This looks to be vestigial dependency that had never been used even in the original code base (2.6.18) from which this driver was up-ported. Without this fix, with the CONFIG_ISAPNP, we get this compile failure: arch/x86/pci/xen.c: In function 'pci_xen_init': arch/x86/pci/xen.c:138: error: 'isapnp_disable' undeclared (first use in this function) arch/x86/pci/xen.c:138: error: (Each undeclared identifier is reported only once arch/x86/pci/xen.c:138: error: for each function it appears in.) Reported-by: Li Zefan Tested-by: Li Zefan Signed-off-by: Konrad Rzeszutek Wilk commit 06f08e3a4d86e746f5e8e09030e6560e37386b7f Author: Mauro Carvalho Chehab Date: Sat Oct 9 21:15:33 2010 -0300 [media] tm6000-alsa: fix some locking issues Those locking issues affect tvtime, causing a kernel oops/panic, due to a race condition. Signed-off-by: Mauro Carvalho Chehab commit dc961136b982c4260b6701d9c619bf7a4a7ac6ed Author: Mauro Carvalho Chehab Date: Sat Oct 9 17:05:14 2010 -0300 [media] tm6000: don't use BKL at the driver Instead, use core lock handling. Signed-off-by: Mauro Carvalho Chehab commit 39dc948c6921169e13224a97fa53188922acfde8 Merge: a731cd1 f6f94e2 Author: Alex Elder Date: Thu Oct 21 08:29:34 2010 -0500 Merge branch 'v2.6.36' commit 3f9bcca7820a6711307b6499952b13cfcfc31dd6 Author: Suresh Jayaraman Date: Mon Oct 18 23:29:37 2010 +0530 cifs: convert cifs_tcp_ses_lock from a rwlock to a spinlock cifs_tcp_ses_lock is a rwlock with protects the cifs_tcp_ses_list, server->smb_ses_list and the ses->tcon_list. It also protects a few ref counters in server, ses and tcon. In most cases the critical section doesn't seem to be large, in a few cases where it is slightly large, there seem to be really no benefit from concurrent access. I briefly considered RCU mechanism but it appears to me that there is no real need. Replace it with a spinlock and get rid of the last rwlock in the cifs code. Signed-off-by: Suresh Jayaraman Signed-off-by: Steve French commit efba4bc12c7e81b8ece677eed5b8c8bc754802dc Author: Mauro Carvalho Chehab Date: Thu Oct 21 11:13:37 2010 -0200 [media] cx25840: Remove a now unused variable drivers/media/video/cx25840/cx25840-core.c: In function ‘cx25840_s_frequency’: drivers/media/video/cx25840/cx25840-core.c:1563: warning: unused variable ‘state’ Signed-off-by: Mauro Carvalho Chehab commit 11e0f1a89750d0139eecbb41b89d6b2d33a718b6 Author: Sylwester Nawrocki Date: Mon Oct 18 06:51:35 2010 -0300 [media] SR030PC30: Avoid use of uninitialized variables Signed-off-by: Mauro Carvalho Chehab commit c29bc4d77d530af27d066d54e9d2c612dd1b9018 Author: Maxim Levitsky Date: Sat Oct 16 19:56:30 2010 -0300 [media] IR: ene_ir: don't upload all settings on each TX packet This is just unnessesary, and now more logical Also a lot of refactoring Signed-off-by: Maxim Levitsky Signed-off-by: Mauro Carvalho Chehab commit e1b1ddbe8f415343ed8da323964498f4f0e1b693 Author: Maxim Levitsky Date: Sat Oct 16 19:56:29 2010 -0300 [media] IR: ene_ir: add support for carrier reports Signed-off-by: Maxim Levitsky Signed-off-by: Mauro Carvalho Chehab commit 4651918a4afdd49bdea21d2f919b189ef17a6399 Author: Maxim Levitsky Date: Sat Oct 16 19:56:28 2010 -0300 [media] IR: extend ir_raw_event and do refactoring Add new event types for timeout & carrier report Move timeout handling from ir_raw_event_store_with_filter to ir-lirc-codec, where it is really needed. Now lirc bridge ensures proper gap handling. Extend lirc bridge for carrier & timeout reports Note: all new ir_raw_event variables now should be initialized like that: DEFINE_IR_RAW_EVENT(ev); To clean an existing event, use init_ir_raw_event(&ev); Signed-off-by: Maxim Levitsky Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit e5953cbdff26f7cbae7eff30cd9b18c4e19b7594 Author: Nicolas Kaiser Date: Thu Oct 21 14:56:00 2010 +0200 pipe: fix failure to return error code on ->confirm() The arguments were transposed, we want to assign the error code to 'ret', which is being returned. Signed-off-by: Nicolas Kaiser Cc: stable@kernel.org Signed-off-by: Jens Axboe commit dd49a38cf30944be27892c10b1c0e5b3fa73bcb2 Author: Steven Rostedt Date: Wed Oct 20 21:51:26 2010 -0400 tracing: Do not limit the size of the number of CPU buffers The tracing per_cpu buffers were limited to 999 CPUs for a mear savings in stack space of a char array. Up the array to 30 characters which is more than enough to hold a 64 bit number. Reported-by: Robin Holt Suggested-by: Ingo Molnar Signed-off-by: Steven Rostedt commit 4d1529043705737ba442f5a0048043718e601ce4 Author: Mike Snitzer Date: Thu Oct 21 14:54:19 2010 +0200 Added blk-lib.c and blk-barrier.c was renamed to blk-flush.c Signed-off-by: Mike Snitzer Signed-off-by: Jens Axboe commit fb249ca61d469a9cb666ba7e1d992787dc6bad82 Author: Derek Kelly Date: Sat Oct 16 16:07:47 2010 -0300 [media] dvb-usb-gp8psk: Fix tuner timeout (against git) This patches adjusts the tuner delay to be longer in response to several users experiencing tuner timeouts. This change fixes that problem and allows those users to be able to tune. Signed-off-by: Derek Kelly Signed-off-by: Mauro Carvalho Chehab commit d12da8e9349667336753709915c5bf7d0de15700 Author: Derek Kelly Date: Sat Oct 16 16:18:15 2010 -0300 [media] dvb-usb-gp8psk: Fix driver name This patch updates the name of the dvb-usb-gp8psk driver from "Genpix 8psk-to-USB2 DVB-S" to "Genpix DVB-S". The old name doesn't reflect newer devices such as the Skywalker line which also user this driver. Signed-off-by: Derek Kelly Signed-off-by: Mauro Carvalho Chehab commit 525906bc898d712f21e5bfcfc85ab0e517e3d086 Author: Borislav Petkov Date: Fri Oct 15 15:27:02 2010 +0200 EDAC, MCE: Fix shift warning on 32-bit Fix drivers/edac/mce_amd.c:262: warning: left shift count >= width of type on 32-bit builds. Reported-by: Randy Dunlap Signed-off-by: Borislav Petkov commit cf1d2200dbc214c26a116c4d0c75b7cf27bb19b6 Author: Borislav Petkov Date: Fri Oct 15 15:20:18 2010 +0200 EDAC, MCE: Add a BIT_64() macro Add a macro for 64-bit vectors to use when accessing MSR contents. Signed-off-by: Borislav Petkov commit fda7561f438aeddf074e2db0890e283195aa7779 Author: Borislav Petkov Date: Wed Sep 22 16:12:03 2010 +0200 EDAC, MCE: Enable MCE decoding on F12h Turn on MCE decoding on F12h. Signed-off-by: Borislav Petkov commit cb9d5ecdff66197f65a6be8032ccc1ebf7199684 Author: Borislav Petkov Date: Thu Sep 16 17:36:12 2010 +0200 EDAC, MCE: Add F12h NB MCE decoder F12h is completely covered by the generic path. Signed-off-by: Borislav Petkov commit e7281eb37da045abac5bd795d1169fc2e3eeea49 Author: Borislav Petkov Date: Thu Sep 16 16:45:22 2010 +0200 EDAC, MCE: Add F12h IC MCE decoder ... which is the same as for K8 and F10h. Signed-off-by: Borislav Petkov commit 9be0bb1072e3544934e0ac20f184e50805aecf9c Author: Borislav Petkov Date: Thu Sep 16 15:08:14 2010 +0200 EDAC, MCE: Add F12h DC MCE decoder F12h DC MCE signatures are a subset of F10h's so reuse them. Signed-off-by: Borislav Petkov commit f0157b3afd2ec6331245768a785487249a3c9734 Author: Borislav Petkov Date: Tue Oct 5 19:07:16 2010 +0200 EDAC, MCE: Add support for F11h MCEs F11h has almost the same MCE signatures as K8 except DRAM ECC and MC5 bank errors. Reuse functionality from the other families. Signed-off-by: Borislav Petkov commit 9530d608ef0e1f76b7fd82bb92645062292fc009 Author: Borislav Petkov Date: Mon Sep 6 15:05:45 2010 +0200 EDAC, MCE: Enable MCE decoding on F14h Now that all decoders have been taught about F14h, models < 0x10 MCEs, enable decoding on this family of CPUs. Also, issue a short informational message upon boot that MCE decoding gets enabled. Signed-off-by: Borislav Petkov commit fe4ea2623bec3e595f8e77a8514307c389c096ae Author: Borislav Petkov Date: Tue Aug 31 18:38:24 2010 +0200 EDAC, MCE: Fix FR MCEs decoding Those are N/A on K8, so don't decode them there. Signed-off-by: Borislav Petkov commit 5ce88f6ea6bef929f59f9468413f922c9a486fa4 Author: Borislav Petkov Date: Tue Aug 31 18:28:08 2010 +0200 EDAC, MCE: Complete NB MCE decoders Add support for decoding F14h BU MCEs and improve decoding of the remaining families. Signed-off-by: Borislav Petkov commit ded506232865e8e932bc21c87f48170d50db4d97 Author: Borislav Petkov Date: Fri Aug 27 17:03:34 2010 +0200 EDAC, MCE: Warn about LS MCEs on F14h F14h CPUs do not generate LS MCEs so exit early and warn the user in case this path is ever hit that something else might be going haywire. Signed-off-by: Borislav Petkov commit dd53bce4e8987f6848840d42bbeead5221eff308 Author: Borislav Petkov Date: Thu Aug 26 19:05:49 2010 +0200 EDAC, MCE: Adjust IC decoders to F14h Add support for IC MCEs for F14h CPUs. K8 and F10h are almost identical so use one function for both. Signed-off-by: Borislav Petkov commit 888ab8e6eb2e41179cdc8edf5d0abd1cce0f0370 Author: Borislav Petkov Date: Wed Aug 18 15:11:35 2010 +0200 EDAC, MCE: Adjust DC decoders to F14h Add a per-family data cache decoders. Since there is a certain overlap between the different DC MCE signatures, reuse functionality between the families as far as possible. Signed-off-by: Borislav Petkov commit 47ca08a40b043815134d489e21870b53276f1a4a Author: Borislav Petkov Date: Mon Sep 27 15:30:39 2010 +0200 EDAC, MCE: Rename files Drop "edac_" string from the filenames since they're prefixed with edac/ in their pathname anyway. Signed-off-by: Borislav Petkov commit 9cdeb404a1870c5022915e576dbdc3cde21af5bf Author: Borislav Petkov Date: Thu Sep 2 18:33:24 2010 +0200 EDAC, MCE: Rework MCE injection Add sysfs injection facilities for testing of the MCE decoding code. Remove large parts of amd64_edac_dbg.c, as a result, which did only NB MCE injection anyway and the new injection code supports that functionality already. Add an injection module so that MCE decoding code in production kernels like those in RHEL and SLES can be tested. Signed-off-by: Borislav Petkov commit 30e1f7a8122145f44f45c95366e27b6bb0b08428 Author: Borislav Petkov Date: Thu Sep 2 17:26:48 2010 +0200 EDAC: Export edac sysfs class to users. Move toplevel sysfs class to the stub and make it available to non-modularized code too. Add proper refcounting of its users and move the registration functionality into the reference counting routines. Signed-off-by: Borislav Petkov commit 7cfd4a87441f5ca3018fdd1f7ad67e8a73a05dc2 Author: Borislav Petkov Date: Wed Sep 1 14:45:20 2010 +0200 EDAC, MCE: Pass complete MCE info to decoders ... instead of the MCi_STATUS info only for improved handling of certain types of errors later. Signed-off-by: Borislav Petkov commit 6337583d7dc0dced36ab98dd63de2389c95c22d9 Author: Borislav Petkov Date: Mon Sep 6 18:13:39 2010 +0200 EDAC, MCE: Sanitize error codes Clean up error codes names, shorten to mnemonics, add RRRR boundary checking. Signed-off-by: Borislav Petkov commit 0ee8efa8f4672ce35ee370291c0f21d7b87b1e3f Author: Borislav Petkov Date: Mon Aug 30 12:34:19 2010 +0200 EDAC, MCE: Remove unused function parameter Remove remains from previous functionality. Signed-off-by: Borislav Petkov commit c9f281fd96b29367363ee232021c030d025c52a8 Author: Borislav Petkov Date: Wed Aug 18 18:21:42 2010 +0200 EDAC, MCE: Add HW_ERR prefix .. so that the user knows what she's looking at there in dmesg. Also, fix a minor cosmetic output inconsistency. Signed-off-by: Borislav Petkov commit ca755e0a49ff1272efff0b3bfdf3f1e0b0fc5d57 Author: Borislav Petkov Date: Wed Sep 1 16:32:20 2010 +0200 EDAC: Fix error return We should return a negative value when we cannot get the toplevel edac sysfs class. Signed-off-by: Borislav Petkov commit 5af79f86db6a29a158510b5dc255d8844d95c4e9 Author: Sven Barth Date: Sat Jul 10 15:02:21 2010 -0300 [media] Add support for AUX_PLL on cx2583x chips This adds support for the AUX_PLL in cx2583x chips which is available in those although the audio part of the chip is not. The AUX_PLL is used at least by Terratec in their Grabster AV400 device. Signed-off-by: Sven Barth Acked-by: Mike Isely Reviewed-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab commit e83726b0460f4741c8f10e1488fbcc0a9e5f0b7e Author: Eric Dumazet Date: Thu Oct 21 04:39:09 2010 -0700 l2tp: small cleanup Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit b0aeef30433ea6854e985c2e9842fa19f51b95cc Author: Julian Anastasov Date: Mon Oct 11 11:23:07 2010 +0300 nf_nat: restrict ICMP translation for embedded header Skip ICMP translation of embedded protocol header if NAT bits are not set. Needed for IPVS to see the original embedded addresses because for IPVS traffic the IPS_SRC_NAT_BIT and IPS_DST_NAT_BIT bits are not set. It happens when IPVS performs DNAT for client packets after using nf_conntrack_alter_reply to expect replies from real server. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit 612eef4f4714d5c0e7127b7b245dbfc444d14a4b Author: Marc Kleine-Budde Date: Wed Oct 20 00:02:26 2010 +0000 can: mcp251x: fix generation of error frames The function "mcp251x_error_skb" is used to generate error frames. They are identified by the "CAN_ERR_FLAG" in can_id. The function overwrites the can_id so that the frames show up as normal frames instead of error frames. This patch fixes the problem by or'ing the can_id instead of overwriting it. Signed-off-by: Marc Kleine-Budde Tested-by: Jargalan Nermunkh Signed-off-by: David S. Miller commit 5601b2dfae86198667dd6e075a074fbef0c83423 Author: Marc Kleine-Budde Date: Wed Oct 20 00:02:25 2010 +0000 can: mcp251x: fix endless loop in interrupt handler if CANINTF_MERRF is set Commit d3cd15657516141adce387810be8cb377baf020e introduced a bug, the interrupt handler would loop endlessly if the CANINTF_MERRF bit is set, because it's not cleared. This patch fixes the problem by masking out the CANINTF_MERRF and all other non interesting bits. Signed-off-by: Marc Kleine-Budde Signed-off-by: David S. Miller commit 1e55659ce6ddb5247cee0b1f720d77a799902b85 Author: Oliver Hartkopp Date: Tue Oct 19 09:32:04 2010 +0000 can-raw: add msg_flags to distinguish local traffic CAN has no addressing scheme. It is currently impossible for userspace to tell is a received CAN frame comes from another process on the local host, or from a remote CAN device. This patch add support for userspace applications to distinguish between 'own', 'local' and 'remote' CAN traffic. The distinction is made by returning flags in msg->msg_flags in the call to recvmsg(). The added documentation explains the introduced flags. Signed-off-by: Kurt Van Dijck Signed-off-by: Oliver Hartkopp Signed-off-by: David S. Miller commit 32a875adcdcf5f470bf967250cfd01722e23844f Author: stephen hemminger Date: Tue Oct 19 06:48:16 2010 +0000 9p: client code cleanup Make p9_client_version static since only used in one file. Remove p9_client_auth because it is defined but never used. Compile tested only. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit ff51bf841587c75b58d25ed77263158619784dd3 Author: stephen hemminger Date: Tue Oct 19 08:08:33 2010 +0000 rds: make local functions/variables static The RDS protocol has lots of functions that should be declared static. rds_message_get/add_version_extension is removed since it defined but never used. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit d0c2b0d265a0f1f92922a99a31def9da582197ac Author: stephen hemminger Date: Tue Oct 19 07:12:10 2010 +0000 napi: unexport napi_reuse_skb The function napi_reuse_skb is only used inside core. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit a0e00369f1e1ff9142a20efe4785890e52b2e525 Author: Allan Stephens Date: Mon Oct 18 11:43:56 2010 +0000 tipc: delete needless memset from bearer enabling. Eliminates zeroing out of the new bearer structure at the start of activation, since it is already in that state. Signed-off-by: Allan Stephens Signed-off-by: Paul Gortmaker Acked-by: Neil Horman Signed-off-by: David S. Miller commit 13eea19213c1f4b711124ddc08c4bb9344442b64 Author: Julia Lawall Date: Mon Oct 18 04:11:14 2010 +0000 drivers/net/ax88796.c: Return error code in failure In this code, 0 is returned on failure, even though other failures return -ENOMEM or other similar values. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @a@ identifier alloc; identifier ret; constant C; expression x; @@ x = alloc(...); if (x == NULL) { <+... \(ret = -C; \| return -C; \) ...+> } @@ identifier f, a.alloc; expression ret; expression x,e1,e2,e3; @@ ret = 0 ... when != ret = e1 *x = alloc(...) ... when != ret = e2 if (x == NULL) { ... when != ret = e3 return ret; } // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller commit afed4ccb0d975f1d3c98880ecf19a24f3d842394 Author: James Hogan Date: Sun Oct 17 01:48:59 2010 +0000 b44: fix resume, request_irq after hw reset On resume, call request_irq() after resetting the hardware rather than before. It's a shared interrupt so the handler could be called immediately if another device on the same irq interrupts (and will be called immediately if CONFIG_DEBUG_SHIRQ=y), but unless the hardware is reinitialised with b44_init_hw() the read of the interrupt status register will hang the system. Signed-off-by: James Hogan Signed-off-by: David S. Miller commit 31b9c19bfe32bed7fdf80cd0b1aa9d0f0569844a Author: stephen hemminger Date: Mon Oct 18 05:39:18 2010 +0000 cxgb4: function namespace cleanup (v3) Make functions only used in one file local. Remove lots of dead code, relating to unsupported functions in mainline driver like RSS, IPv6, and TCP offload. Signed-off-by: Stephen Hemminger Acked-by: Dimitris Michailidis Signed-off-by: David S. Miller commit b003f4e171304234eae9cc11c9fd7f1cbaaf0d6b Author: Jan Kiszka Date: Sun Oct 17 05:18:15 2010 +0000 CAPI: Silence lockdep warning on get_capi_appl_by_nr usage As long as we hold capi_controller_lock, we can safely access capi_applications without RCU protection as no one can modify the application list underneath us. Introduce an RCU-free __get_capi_appl_by_nr for this purpose. This silences lockdep warnings on suspicious rcu_dereference usage. Signed-off-by: Jan Kiszka Signed-off-by: David S. Miller commit 1e253c3b8a1aeed51eef6fc366812f219b97de65 Author: Benjamin Poirier Date: Mon Oct 18 16:09:35 2010 +0000 bridge: Forward reserved group addresses if !STP Make all frames sent to reserved group MAC addresses (01:80:c2:00:00:00 to 01:80:c2:00:00:0f) be forwarded if STP is disabled. This enables forwarding EAPOL frames, among other things. Signed-off-by: Benjamin Poirier Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit a5c30b349b872aa2ac13babbd5ceb26737f17e95 Author: Tejun Heo Date: Tue Oct 19 06:04:42 2010 +0000 net/neighbour: cancel_delayed_work() + flush_scheduled_work() -> cancel_delayed_work_sync() flush_scheduled_work() is going away. Prepare for it. Signed-off-by: Tejun Heo Signed-off-by: David S. Miller commit db5a753bf198ef7a50e17d2ff358adf37efe8648 Author: Neil Horman Date: Thu Oct 21 01:06:16 2010 +0000 Revert d88dca79d3852a3623f606f781e013d61486828a TIPC needs to have its endianess issues fixed. Unfortunately, the format of a subscriber message is passed in directly from user space, so requiring this message to be in network byte order breaks user space ABI. Revert this change until such time as we can determine how to do this in a backwards compatible manner. Signed-off-by: Neil Horman Signed-off-by: David S. Miller commit 8c974438085d2c81b006daeaab8801eedbd19758 Author: Neil Horman Date: Thu Oct 21 01:06:15 2010 +0000 Revert c6537d6742985da1fbf12ae26cde6a096fd35b5c Backout the tipc changes to the flags int he subscription message. These changees, while reasonable on the surface, interefere with user space ABI compatibility which is a no-no. This was part of the changes to fix the endianess issues in the TIPC protocol, which would be really nice to do but we need to do so in a way that is backwards compatible with user space. Signed-off-by: Neil Horman Signed-off-by: David S. Miller commit 093d282321daeb19c107e5f1f16d7f68484f3ade Author: Balazs Scheidler Date: Thu Oct 21 13:06:43 2010 +0200 tproxy: fix hash locking issue when using port redirection in __inet_inherit_port() When __inet_inherit_port() is called on a tproxy connection the wrong locks are held for the inet_bind_bucket it is added to. __inet_inherit_port() made an implicit assumption that the listener's port number (and thus its bind bucket). Unfortunately, if you're using the TPROXY target to redirect skbs to a transparent proxy that assumption is not true anymore and things break. This patch adds code to __inet_inherit_port() so that it can handle this case by looking up or creating a new bind bucket for the child socket and updates callers of __inet_inherit_port() to gracefully handle __inet_inherit_port() failing. Reported by and original patch from Stephen Buck . See http://marc.info/?t=128169268200001&r=1&w=2 for the original discussion. Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit d2ed817766987fd05e69b7da65d4861b38f1aa2a Author: Ben Greear Date: Thu Oct 21 04:06:29 2010 -0700 net/core: Allow tagged VLAN packets to flow through VETH devices. When there are VLANs on a VETH device, the packets being transmitted through the VETH device may be 4 bytes bigger than MTU. A check in dev_forward_skb did not take this into account and so dropped these packets. This patch is needed at least as far back as 2.6.34.7 and should be considered for -stable. Signed-off-by: Ben Greear Signed-off-by: David S. Miller commit be8c648051048bc66fbca590d00f3e8543ec32af Author: Arnaud Patard Date: Thu Oct 21 03:59:57 2010 -0700 phy/marvell: fix 88e1121 support Commit c477d0447db08068a497e7beb892b2b2a7bff64b added support for RGMII rx/tx delays except that it ends up clearing rx/tx delays bit for modes differents that RGMII*ID. Due to this, ethernet is not working anymore on my guruplug server +. This patch is fixing that. Signed-off-by: Arnaud Patard Signed-off-by: David S. Miller commit 94399431379dfc77565c9861013f41ab0078c18b Author: Stephen Rothwell Date: Tue Oct 19 18:07:30 2010 +1100 [media] v4l-dvb: using vmalloc needs vmalloc.h in cx231xx-417.c Fixes these build errors and warnings: drivers/media/video/cx231xx/cx231xx-417.c: In function 'cx231xx_load_firmware': drivers/media/video/cx231xx/cx231xx-417.c:943: error: implicit declaration of function 'vmalloc' drivers/media/video/cx231xx/cx231xx-417.c:943: warning: cast to pointer from integer of different size drivers/media/video/cx231xx/cx231xx-417.c:950: warning: cast to pointer from integer of different size drivers/media/video/cx231xx/cx231xx-417.c:1039: error: implicit declaration of function 'vfree' Signed-off-by: Stephen Rothwell commit 0310871d8f71da4ad8643687fbc40f219a0dac4d Author: Hans Verkuil Date: Sun Oct 17 07:24:20 2010 -0300 [media] msp3400: fix mute audio regression The switch to the new control framework caused a regression where the audio was no longer unmuted after the carrier scan finished. The original code attempted to set the volume control to its current value in order to have the set-volume control code to be called that handles the volume and muting. However, the framework will not call that code unless the new volume value is different from the old. Instead we now call msp_s_ctrl directly. It is a bit of a hack: we really need a v4l2_ctrl_refresh_ctrl function for this (or something along those lines). Thanks to Andy Walls for bisecting this and to Shane Shrybman for reporting it! Reported-by: Shane Shrybman Thanks-to: Andy Walls Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit f43402fa55bf5e7e190c176343015122f694857c Author: Jean-François Moine Date: Sat Oct 16 13:54:05 2010 -0300 [media] gspca - main: Fix a regression with the PS3 Eye webcam When audio is present, some alternate settings were skipped. This prevented some webcams to work, especially when bulk transfer was used. This patch permits to use the last or only alternate setting. Reported-by: Antonio Ospite Tested-by: Antonio Ospite Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 27ab76065c0c6734ea98ccc7080046a72d98455b Author: Yi Zou Date: Wed Oct 20 23:00:30 2010 +0000 ixgbe: add a refcnt when turning on/off FCoE offload capability The FCoE offload is enabled/disabled per adapter, but upper FCoE protocol stack could have multiple FCoE instances created on the same physical network interface, e.g., FCoE on multiple VLAN interfaces on the same physical network interface. In this case we want to turn on FCoE offload at the first request from ndo_fcoe_enable() but only turn off FCoE offload at the very last call to ndo_fcoe_disable(). This is fixed by adding a refcnt in the per adapter FCoE structure and tear down FCoE offload when refcnt decrements to zero. Signed-off-by: Yi Zou Tested-by: Ross Brattain Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit de1036b1cea147c5049c65f5bd26fb451f1624cd Author: Eric Dumazet Date: Wed Oct 20 23:00:04 2010 +0000 ixgbe: fix stats handling Current ixgbe stats have following problems : - Not 64 bit safe (on 32bit arches) - Not safe in ixgbe_clean_rx_irq() : All cpus dirty a common location (netdev->stats.rx_bytes & netdev->stats.rx_packets) without proper synchronization. This slow down a bit multiqueue operations, and possibly miss some updates. Fixes : Implement ndo_get_stats64() method to provide accurate 64bit rx|tx bytes/packets counters, using 64bit safe infrastructure. ixgbe_get_ethtool_stats() also use this infrastructure to provide 64bit safe counters. Signed-off-by: Eric Dumazet Acked-by: Don Skidmore Tested-by: Stephen Ko Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 3a338cbb8bb46a6b86f4dca54bf73b9c78751659 Author: Emil Tantilov Date: Wed Oct 20 22:59:40 2010 +0000 ixgbe: update copyright info Update copyright notice Signed-off-by: Emil Tantilov Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit e47dfcd81edb7c6065fd2219c818b3b526bd624d Author: Guo-Fu Tseng Date: Mon Oct 18 14:10:44 2010 +0000 jme: Advance version number Advance version number and update copyright info Signed-off-by: Guo-Fu Tseng Signed-off-by: David S. Miller commit 334fbbb747c978ae9171b9c29dfcea881f4a8d57 Author: Guo-Fu Tseng Date: Mon Oct 18 14:10:43 2010 +0000 jme: Adding mii-tool support Adding mii-tool support for some distribution only have mii-tool installed by default. Signed-off-by: Guo-Fu Tseng Signed-off-by: David S. Miller commit ea192aa89c3b26d56113e70c72238f6951d4097f Author: Guo-Fu Tseng Date: Mon Oct 18 14:10:42 2010 +0000 jme: Prevent possible read re-order error Adding read memory barrier in between flag reading and data reading of receive descriptors. This prevents the data being read before hardware complete writing informations. Reported-by: Stefan Hajnoczi Signed-off-by: Guo-Fu Tseng Signed-off-by: David S. Miller commit 3ee94018a9f49ca98e3f77f54a769c784115dbb8 Author: Guo-Fu Tseng Date: Mon Oct 18 14:10:41 2010 +0000 jme: Add comment in jme_set_settings Explains what `fdc` variable is for. Signed-off-by: Guo-Fu Tseng Signed-off-by: David S. Miller commit c8a8684d5cfb0f110a962c93586630c0bf91ebc1 Author: Guo-Fu Tseng Date: Mon Oct 18 14:10:40 2010 +0000 jme: Fix PHY power-off error Adding phy_on in opposition to phy_off. Signed-off-by: Guo-Fu Tseng Cc: Signed-off-by: David S. Miller commit 6006db84a91838813cdad8a6622a4e39efe9ea47 Author: Balazs Scheidler Date: Thu Oct 21 12:47:34 2010 +0200 tproxy: add lookup type checks for UDP in nf_tproxy_get_sock_v4() Also, inline this function as the lookup_type is always a literal and inlining removes branches performed at runtime. Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit 106e4c26b1529e559d1aae777f11b4f8f7bafc26 Author: Balazs Scheidler Date: Thu Oct 21 12:45:14 2010 +0200 tproxy: kick out TIME_WAIT sockets in case a new connection comes in with the same tuple Without tproxy redirections an incoming SYN kicks out conflicting TIME_WAIT sockets, in order to handle clients that reuse ports within the TIME_WAIT period. The same mechanism didn't work in case TProxy is involved in finding the proper socket, as the time_wait processing code looked up the listening socket assuming that the listener addr/port matches those of the established connection. This is not the case with TProxy as the listener addr/port is possibly changed with the tproxy rule. Signed-off-by: Balazs Scheidler Signed-off-by: KOVACS Krisztian Signed-off-by: Patrick McHardy commit 7bfc47532301a84c575cfc20b4531f5de5c326bc Author: Bandan Das Date: Sat Oct 16 20:19:59 2010 +0000 bonding: cleanup: remove braces from single block statements checkpatch.pl cleanup : Remove braces from single statement blocks. Signed-off-by: Bandan Das Signed-off-by: David S. Miller commit 128ea6c3eece8e87c05813d3a57f4ea079c3dbc7 Author: Bandan Das Date: Sat Oct 16 20:19:58 2010 +0000 bonding: cleanup : add space around operators checkpatch.pl cleanup: Added spaces around operators at various places. Also fixed some c99 style comments that I came across. Signed-off-by: Bandan Das Signed-off-by: David S. Miller commit 7453da829786061e81c9c11b7a34a2834146894f Author: Tracey Dent Date: Fri Oct 15 17:53:29 2010 +0000 Drivers: atm: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: David S. Miller commit f4e8ab7cc4e819011ca6325e54383b3da7a5d130 Author: Bernard Blackham Date: Mon Oct 18 13:16:39 2010 +0000 smsc95xx: generate random MAC address once, not every ifup The smsc95xx driver currently generates a new random MAC address every time the interface is brought up. This makes it impossible to override using the standard `ifconfig hw ether` approach. Past patches tried to make the MAC address a module parameter or base it off the die ID, but it seems to me much simpler (and hopefully less controversial) to stick with the current random generation scheme, but allow the user to change the address. This patch does exactly that - it moves the random address generation from smsc95xx_reset() into smsc95xx_bind(), so that it is done once on module load, not on every ifup. The user can then override this using the standard mechanisms. Applies against 2.6.35 and linux-2.6 head. Signed-off-by: Bernard Blackham Signed-off-by: David S. Miller commit fdb246f526e422b18b48d578085c01ab28ec2c33 Author: Michael Chan Date: Mon Oct 18 14:30:54 2010 +0000 bnx2: Increase max rx ring size from 1K to 2K A number of customers are reporting packet loss under certain workloads (e.g. heavy bursts of small packets) with flow control disabled. A larger rx ring helps to prevent these losses. No change in default rx ring size and memory consumption. Signed-off-by: Andy Gospodarek Acked-by: John Feeney Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 3511c9132f8b1e1b5634e41a3331c44b0c13be70 Author: Changli Gao Date: Sat Oct 16 13:04:08 2010 +0000 net_sched: remove the unused parameter of qdisc_create_dflt() The first parameter dev isn't in use in qdisc_create_dflt(). Signed-off-by: Changli Gao Acked-by: Jamal Hadi Salim Signed-off-by: David S. Miller commit 26d8ee75e08cfca8b65ade871d68c8cd96e4ea23 Author: stephen hemminger Date: Fri Oct 15 05:09:34 2010 +0000 bonding: make release_and_destroy static Only used in main file. Signed-off-by: Stephen Hemminger Acked-by: Andy Gospodarek Signed-off-by: Jay Vosburgh Signed-off-by: David S. Miller commit 1c4c40c42da468ef02dc04940930c1926c964558 Author: stephen hemminger Date: Fri Oct 15 05:14:19 2010 +0000 xfrm: make xfrm_bundle_ok local Only used in one place. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 8d8a0b1cc2a8f9794a3f1f747089b6a93774408d Author: stephen hemminger Date: Fri Oct 15 05:12:01 2010 +0000 rtnetlink: remove rtnl_kill_links The function rtnl_kill_links is defined but never used. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 6f747aca5e61778190d1e27bdc469f49149f0230 Author: stephen hemminger Date: Fri Oct 15 05:15:59 2010 +0000 xfrm6: make xfrm6_tunnel_free_spi local Function only defined and used in one file. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 191cc6877408348e90f4adb64726b60a93246b8b Author: stephen hemminger Date: Fri Oct 15 11:09:14 2010 +0000 pch_gbe: make local functions static Make routines that are only used in one file static. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit ae316bb57d25d73ae9c1ddc9c59fe56d733849bf Author: stephen hemminger Date: Fri Oct 15 11:06:20 2010 +0000 vmxnet3: make bit twiddle routines inline Gcc doesn't usually handle inline across compilation units, and the functions don't have to be global in scope. Move the set/reset flag functions int the existing vmxnet3 header. Signed-off-by: Stephen Hemminger Acked-by: Shreyas Bhatewara Signed-off-by: David S. Miller commit 379b7383413d883ffc4db55914626ca303e6f7f5 Author: stephen hemminger Date: Fri Oct 15 11:02:56 2010 +0000 bonding: make bond_resend_igmp_join_requests_delayed static Signed-off-by: Stephen Hemminger Acked-by: Flavio Leitner Signed-off-by: Jay Vosburgh Signed-off-by: David S. Miller commit d215697fe14a0c5a96765c6279b4751e632587a5 Author: stephen hemminger Date: Mon Oct 18 05:27:31 2010 +0000 sfc: make functions static Make local functions and variable static. Do some rearrangement of the string table stuff to put it where it gets used. Signed-off-by: Stephen Hemminger Acked-by: Ben Hutchings Signed-off-by: David S. Miller commit d0280232813a6a5e2bfca6e9257b866352115c09 Author: stephen hemminger Date: Mon Oct 18 14:03:21 2010 +0000 bridge: make br_parse_ip_options static Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 11165f1457181e4499e5eada442434a07827ffd8 Author: stephen hemminger Date: Mon Oct 18 14:27:29 2010 +0000 socket: localize functions A couple of functions in socket.c are only used there and should be localized. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 7e12bb0adb5b3114a73098d3536b3c45635e6c95 Author: stephen hemminger Date: Mon Oct 18 17:40:10 2010 +0000 netxen: make local function static. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 9b0c290e78d667e6a483bde8c7cef7dd15f49017 Author: Eric Dumazet Date: Wed Oct 20 22:03:38 2010 +0000 fib: introduce fib_alias_accessed() helper Perf tools session at NFWS 2010 pointed out a false sharing on struct fib_alias that can be avoided pretty easily, if we set FA_S_ACCESSED bit only if needed (ie : not already set) Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 7b5edbc4cfe2297b0915adea5aa1eafcafadbf06 Author: Eric Dumazet Date: Fri Oct 15 19:22:34 2010 +0000 net/sched: fix missing spinlock init Under network load, doing : tc qdisc del dev eth0 root triggers : [ 167.193087] BUG: spinlock bad magic on CPU#3, udpflood/4928 [ 167.193139] lock: c15bc324, .magic: 00000000, .owner: /-1, .owner_cpu: -1 [ 167.193193] Pid: 4928, comm: udpflood Not tainted 2.6.36-rc7-11417-g215340c-dirty #323 [ 167.193245] Call Trace: [ 167.193292] [] ? printk+0x18/0x20 [ 167.193342] [] spin_bug+0xa3/0xf0 [ 167.193389] [] do_raw_spin_lock+0x7d/0x160 [ 167.193440] [] ? __dev_xmit_skb+0x27e/0x2b0 [ 167.193496] [] ? trace_hardirqs_on+0xb/0x10 [ 167.193545] [] _raw_spin_lock+0x3a/0x40 [ 167.193593] [] ? __dev_xmit_skb+0x27e/0x2b0 [ 167.193641] [] __dev_xmit_skb+0x27e/0x2b0 commit 79640a4ca695 (add additional lock to qdisc to increase throughput) forgot to initialize noop_qdisc and noqueue_qdisc busylock Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 3f0a4d296e554c89e15a01d29776ab4c4642ab79 Author: Hans Verkuil Date: Sun Oct 17 17:14:15 2010 -0300 [media] Re: [git:v4l-dvb/v2.6.37] [media] Fix compilation of Siliconfile SR030PC30 VGA camera Siliconfile SR030PC30 VGA camera fails to compile with this error: drivers/media/video/sr030pc30.c: In function ‘sr030pc30_probe’: drivers/media/video/sr030pc30.c:834: error: implicit declaration of function ‘kzalloc’ drivers/media/video/sr030pc30.c:834: warning: assignment makes pointer from integer without a cast drivers/media/video/sr030pc30.c: In function ‘sr030pc30_remove’: drivers/media/video/sr030pc30.c:858: error: implicit declaration of function ‘kfree’ Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit e902a68b06e145ddd0bb5228739fdae606d851a1 Author: Janne Grunau Date: Mon Oct 11 10:29:36 2010 -0300 [media] hdpvr: add usb product id 0x4903 Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab commit 39bcb3ae030b0b64262adf6c5243bf767d8b75dc Author: Alan Young Date: Mon Jul 26 08:50:32 2010 -0300 [media] hdpvr: decrease URB timeout to 90ms Based on USB traces of the windows driver. Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab commit fe023ad15e4a9147c208e4c4cac98d7fd40ab0bd Author: Janne Grunau Date: Tue Jul 27 11:01:47 2010 -0300 [media] hdpvr: fix audio input setting for pre AC3 firmwares Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab commit d4533332c0c60335f117ffc65cc4a067314bb441 Author: Janne Grunau Date: Tue Jul 27 10:40:43 2010 -0300 [media] hdpvr: use AC3 as default audio codec for SPDIF Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab commit 35b53664d5d0331c8ec2ef44e74eaf4d18f00c06 Author: Janne Grunau Date: Tue Jul 27 11:03:35 2010 -0300 [media] hdpvr: add two known to work firmware versions refine the firmware version test and print the version only once Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab commit 74a558b1f441c03b025cd6c11e79a94e99368856 Author: Alan Young Date: Mon Jul 26 08:30:06 2010 -0300 [media] hdpvr: print firmware date Hauppauge released different firmwares using the same version number. The firmware date can be used to identify the exact driver/firmware combination. Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab commit 1f33d61b149f6672d7784023cb464cf7a09e0d72 Author: Alan Young Date: Mon Jul 26 16:27:32 2010 -0300 [media] hdpvr: remove unecessary sleep in buffer drain loop Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab commit 8df787daefb781ca46a5ede3743ac78be897ec57 Author: Alan Young Date: Mon Jul 26 08:17:53 2010 -0300 [media] hdpvr: remove unnecessary sleep in hdpvr_config_call Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab commit 4f5c933abb34532dc962185c999509b97a97fa1b Author: James M McLaren Date: Sun Oct 3 19:09:18 2010 -0300 [media] hdpvr: Add missing URB_NO_TRANSFER_DMA_MAP flag Necessary on arm. Signed-off-by: Janne Grunau Cc: stable@kernel.org Signed-off-by: Mauro Carvalho Chehab commit 44a81550410ada5b30f0a611d9446dc9cbf4cb59 Author: Matti Aaltonen Date: Thu Oct 7 10:16:11 2010 -0300 [media] V4L2: Add seek spacing and RDS CAP bits Add spacing field to v4l2_hw_freq_seek. Add V4L2_TUNER_CAP_RDS_BLOCK_IO, which indicates that the tuner/ transmitter if capable of transmitting/receiving RDS blocks. Add V4L2_TUNER_CAP_RDS_CONTROLS capability, which indicates that the RDS data is handled as values of predefined controls like radio text, program ID and so on. Signed-off-by: Matti J. Aaltonen Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 352a587ccdd4690b4465e29fef91942d8c94826d Author: Malcolm Priestley Date: Sun Sep 26 15:16:20 2010 -0300 [media] DiSEqC bug fixed for stv0288 based interfaces Fixed problem with DiSEqC communication. The message was wrongly modulated, so the DiSEqC switch was not work. This patch fixes DiSEqC messages, simple tone burst and tone on/off. I verified it with osciloscope against the DiSEqC documentation. Interface: PCI DVB-S TV tuner TeVii S420 Kernel: 2.6.32-24-generic (UBUNTU 10.4) Signed-off-by: Josef Pavlik Tested-by: Malcolm Priestley Cc: Igor M. Liplianin Signed-off-by: Mauro Carvalho Chehab commit 0e44dec17f8b8737f47c9f547b6674b9921612b9 Author: Andy Shevchenko Date: Sat Sep 11 14:33:27 2010 -0300 [media] dvb: mantis: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Cc: Manu Abraham Signed-off-by: Mauro Carvalho Chehab commit d639609061e7ddcd4220c7bcbefd6cb0789454ee Author: Pawel Osciak Date: Mon Sep 6 03:53:48 2010 -0300 [media] v4l: videobuf: remove unused is_userptr variable Remove unused is_userptr variable from videobuf-dma-contig. Signed-off-by: Pawel Osciak Signed-off-by: Kyungmin Park Signed-off-by: Marek Szyprowski Signed-off-by: Mauro Carvalho Chehab commit 111ac84a80199654db55c06e2565d4ab343c135d Author: Sergey Ivanov <123kash@gmail.com> Date: Mon Aug 9 10:18:32 2010 -0300 [media] Twinhan 1027 + IR Port support Patch add support of TwinHan 1027 DVB-S card. Refreshed version of https://patchwork.kernel.org/patch/79753/ patch. (adapted for the new IR system), still works. DVB-S support come from a patch originally authored by Manu Abraham (abraham.manu@gmail.com). IR Port support were added by Sergey. Cc: Manu Abraham Signed-off-by: Mauro Carvalho Chehab commit fba39807ceba3e2aab022fa8c7181a322fe12675 Author: Jean-François Moine Date: Sat Oct 16 14:12:53 2010 -0300 [media] gspca - mars: Add illuminator controls Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit d4015493139ed1a6ec7b576ce7e4a3b11cc9561d Author: Jean-François Moine Date: Sat Oct 16 14:10:59 2010 -0300 [media] gspca - mars: Propagate USB errors to higher level Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit e3b4d2c6ae5d15f9f9ae36cfc5335b3a0861644f Author: Jean-François Moine Date: Sat Oct 16 14:07:06 2010 -0300 [media] gspca - mars: Use the new video control mechanism Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 2e0544a8ac5d96efc17bab94f08957ce0efb1220 Author: Jean-François Moine Date: Sat Oct 16 13:59:13 2010 -0300 [media] gspca - main: Have discontinuous sequence numbers when frames are lost This patch also sets to 0 the sequence of the first frame. Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 3e9c2b8477059c3ae39ed9373fddd23e4c754acc Author: Sylwester Nawrocki Date: Mon Oct 11 13:33:57 2010 -0300 [media] Add driver for Siliconfile SR030PC30 VGA camera Add an I2C/v4l2-subdev driver for Siliconfile SR030PC30 VGA camera sensor with Image Signal Processor. SR030PC30 is the low resolution camera sensor on Samsung Aquila boards. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab commit a7d5bbcf9c77596f94154906ca54ce8e28945a68 Author: Sylwester Nawrocki Date: Mon Oct 11 13:19:27 2010 -0300 [media] s5p-fimc: Add suport for FIMC on S5PC210 SoCs Enable FIMC operation on S5PC210 (S5PV310) SoCs. This a minimal adaptation to obtain functionality of older FIMC IP revisions (S5PC100, S5PC110) on S5PC210 SOcs. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab commit 5f3cc4474cdeab3ee44962fd752baec24e8fecec Author: Sylwester Nawrocki Date: Thu Oct 7 10:06:16 2010 -0300 [media] s5p-fimc: Add camera capture support Add a video device driver per each FIMC entity to support the camera capture input mode. Video capture node is registered only if CCD sensor data is provided through driver's platfrom data and board setup code. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Reviewed-by: Marek Szyprowski Signed-off-by: Mauro Carvalho Chehab commit 28f06ff4b75a309d9255567b3a15b6a5bf63747d Author: Sylwester Nawrocki Date: Tue Sep 28 14:19:26 2010 -0300 [media] s5p-fimc: Do not lock both buffer queues in s_fmt It is not necessary to lock both capture and output buffer queue while setting format for single queue. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab commit 47654df8a925ea4f6660b357cbd4ef2ead50c6ad Author: Sylwester Nawrocki Date: Fri Oct 8 05:01:22 2010 -0300 [media] s5p-fimc: Fix 90/270 deg rotation errors Due to errorneous swapping of image dimensions the rotation control was not handled properly in subsequent calls. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab commit 548aafcd9e73b14fd959ec3689d1551bf7f388d3 Author: Sylwester Nawrocki Date: Fri Oct 8 05:01:14 2010 -0300 [media] s5p-fimc: mem2mem driver refactoring and cleanup Register access functions refactored for camera capture interface control. Removed the workqueue since it was only useful for FIFO output mode which is not supported at this time. Fixed errors on module unload. Comments and whitespace cleanup. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab commit 77e6208252cccc377aecec18340ee0bfbcb02108 Author: Sylwester Nawrocki Date: Tue Sep 28 05:49:11 2010 -0300 [media] s5p-fimc: Register definition cleanup Add MIPI CSI format definitions, prepare DMA address definitions for interlaced input frame mode. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab commit d7148e3f731f6d59d080db7fdeb1b586ed431543 Author: Guennadi Liakhovetski Date: Wed Oct 6 04:04:10 2010 -0300 [media] V4L: sh_mobile_ceu_camera: use default .get_parm() and .set_parm() operations No need to duplicate default .get_parm() and .set_parm() operations. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 67826235ee4c40b20ea0d8ddfbd32bb20e9bb457 Author: Guennadi Liakhovetski Date: Tue Oct 5 12:33:25 2010 -0300 [media] V4L: add an IMX074 sensor soc-camera / v4l2-subdev driver This patch adds an initial driver for the IMXъ74 image sensor from Sony. Lacking documentation, only very basic functionality in one specific image format has been implemented and tested. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 32e1f777274b0e642a8af381a4e07d7858506f37 Author: Guennadi Liakhovetski Date: Tue Oct 5 12:32:41 2010 -0300 [media] V4L: add IMX074 sensor chip ID Chip identification register contains the value 0x74. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 06e17821b5a689543a890861e5a08e1f9586e2bf Author: Janusz Krzysztofik Date: Fri Sep 10 22:26:16 2010 -0300 [media] SoC Camera: add support for g_parm / s_parm operations This patch adds support for g_parm / s_parm operations to the SoC Camera framework. It is usefull for checking/setting camera frame rate. Example usage can be found in the previous patch from this series, "SoC Camera: add driver for OV6650 sensor". Created and tested against linux-2.6.36-rc3 on Amstrad Delta. Signed-off-by: Janusz Krzysztofik Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 2f6e2404799ad610317157b73169c109788da0b0 Author: Janusz Krzysztofik Date: Tue Oct 5 11:52:45 2010 -0300 [media] SoC Camera: add driver for OV6650 sensor This patch provides a V4L2 SoC Camera driver for OV6650 camera sensor, found on OMAP1 SoC based Amstrad Delta videophone. Since I have no experience with camera sensors, and the sensor documentation I was able to find was not very comprehensive, I left most settings at their default (reset) values, except for: - those required for proper mediabus parameters and picture geometry and format setup, - those used by controls. Resulting picture quality may be far from perfect, but better than nothing. In order to be able to get / set the sensor frame rate from userspace, I decided to provide two not yet SoC camera supported operations, g_parm and s_parm. These can be used after applying patch 4/6 from this series, "SoC Camera: add support for g_parm / s_parm operations". Created and tested against linux-2.6.36-rc5 on Amstrad Delta. Signed-off-by: Janusz Krzysztofik Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit bdc621fcedf031426551caed4e7517603690fad1 Author: Janusz Krzysztofik Date: Thu Sep 30 08:35:49 2010 -0300 [media] SoC Camera: add driver for OMAP1 camera interface This is a V4L2 driver for TI OMAP1 SoC camera interface. Both videobuf-dma versions are supported, contig and sg, selectable with a module option. The former uses less processing power, but often fails to allocate contignuous buffer memory. The latter is free of this problem, but generates tens of DMA interrupts per frame. If contig memory allocation ever fails, the driver falls back to sg automatically on next open, but still can be switched back to contig manually. Both paths work stable for me, even under heavy load, on my OMAP1510 based Amstrad Delta videophone, that is the oldest, least powerfull OMAP1 implementation. The interface generally works in pass-through mode. Since input data byte endianess can be swapped, it provides up to two v4l2 pixel formats per each of several soc_mbus formats that have their swapped endian counterparts. Boards using this driver can provide it with the following platform data: - if and what freqency clock is expected by an on-board camera sensor, - what is the maximum pixel clock that should be accepted from the sensor, - what is the polarity of the sensor provided pixel clock, - if the interface GPIO line is connected to a sensor reset/powerdown input and what is the input polarity. Created and tested against linux-2.6.36-rc5 on Amstrad Delta. Signed-off-by: Janusz Krzysztofik Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 0915d559a062f8f1034cf160f4af060df47dd0a3 Author: Sascha Hauer Date: Tue Aug 3 07:57:47 2010 -0300 [media] v4l2-mediabus: Add pixelcodes for BGR565 formats Signed-off-by: Sascha Hauer Acked-by: Robert Jarzmik Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 669470a8cc3c98acf9663a908d7cc596fe728927 Author: Michael Grzeschik Date: Tue Aug 3 07:57:43 2010 -0300 [media] mt9m111: changed MIN_DARK_COLS to MT9M131 spec count Signed-off-by: Philipp Wiesner Signed-off-by: Michael Grzeschik Acked-by: Robert Jarzmik Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 214ce3faacafa3cca2fdd340d18ff35cfe463c2b Author: Steven Toth Date: Wed Oct 6 21:52:22 2010 -0300 [media] saa7164: Removed use of the BKL Remove usage of the BKL and instead used video_set_drvdata() during open fops. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 18024ee2df675ad921a8c65e7a9e22180d32da84 Author: Steven Toth Date: Wed Oct 6 21:50:55 2010 -0300 [media] saa7164: Remove V4L2_CAP_STREAMING capability flag Remove V4L2_CAP_STREAMING capability flag, we don't support the ioctls. It breaks VLC otherwise. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 106d7e376f3fcca7832561d6399f6b42f8530018 Author: Gavin Hurlbut Date: Thu Sep 30 18:21:20 2010 -0300 [media] Fix the -E{*} returns in the VBI device as well Signed-off-by: Gavin Hurlbut Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit f20a07d431c3c516c37beff9638f70c8e059a3fc Author: Gavin Hurlbut Date: Wed Sep 29 15:18:20 2010 -0300 [media] Fix the negative -E{BLAH} returns from fops_read Signed-off-by: Gavin Hurlbut Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit f89076c5f13dc2fafd6c4a411111f1be7aab0098 Author: Gavin Hurlbut Date: Mon Sep 27 23:50:43 2010 -0300 [media] Change the second input names to include " 2" to distinguish them Signed-off-by: Gavin Hurlbut Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit c7e242baf73a284eff92444fb58af11439e3a22c Author: Mauro Carvalho Chehab Date: Mon Oct 11 17:39:06 2010 -0300 [media] saa7134: Fix lots os spaces at the wrong places There are lots of checkpatch complains about: ERROR: space prohibited after that open parenthesis '(' ERROR: space prohibited after that open square bracket '[' ERROR: space prohibited before that close parenthesis ')' ERROR: space prohibited before that close square bracket ']' This script should fix all of them: for i in drivers/media/video/saa7164/*.[ch]; do cat $i|perl -ne 's/\[\ +(.*)/[$1/; s/\ +\]/$1\]/g; s/\(\ +(.*)/($1/g; s/\ +\)/$1)/g; print $_;' >a && mv a $i; done Signed-off-by: Mauro Carvalho Chehab commit 4d270cfb36683f623f2c23f96b695deb1812476e Author: Mauro Carvalho Chehab Date: Mon Oct 11 17:17:45 2010 -0300 [media] saa7164: Don't use typedefs According with CodingStyle, drivers shouldn't use typedef, except on very special cases. This is not the case of saa7164. So, convert all usecases to struct/enum. After changing the saa7164-types.h, all we need to do is to run those scripts to fix all occurrences of the bad types and double check/fix everything that might be broken after the test (of course, I did a small script to generate those scripts). for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmBusType_t/enum tmBusType/; print " \>a \&\& mv a tmBusType; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResCmd_t/enum tmComResCmd/; print " \>a \&\& mv a tmComResCmd; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTermType_t/enum tmComResTermType/; print " \>a \&\& mv a tmComResTermType; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmBufferFlag_t/enum tmBufferFlag/; print " \>a \&\& mv a tmBufferFlag; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResHWDescr_t/struct tmComResHWDescr/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResInterfaceDescr_t/struct tmComResInterfaceDescr/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResBusDescr_t/struct tmComResBusDescr/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmBusType_t/struct tmBusType/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResBusInfo_t/struct tmComResBusInfo/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResInfo_t/struct tmComResInfo/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResCmd_t/struct tmComResCmd/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmDescriptor_t/struct tmDescriptor/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResDescrHeader_t/struct tmComResDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResExtDevDescrHeader_t/struct tmComResExtDevDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResGPIO_t/struct tmComResGPIO/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResPathDescrHeader_t/struct tmComResPathDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTermType_t/struct tmComResTermType/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResAntTermDescrHeader_t/struct tmComResAntTermDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTunerDescrHeader_t/struct tmComResTunerDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmBufferFlag_t/struct tmBufferFlag/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmBuffer_t/struct tmBuffer/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmHWStreamParameters_t/struct tmHWStreamParameters/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmStreamParameters_t/struct tmStreamParameters/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResDMATermDescrHeader_t/struct tmComResDMATermDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTSFormatDescrHeader_t/struct tmComResTSFormatDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResSelDescrHeader_t/struct tmComResSelDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResProcDescrHeader_t/struct tmComResProcDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResEncVideoBitRate_t/struct tmComResEncVideoBitRate/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResEncVideoInputAspectRatio_t/struct tmComResEncVideoInputAspectRatio/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResEncVideoGopStructure_t/struct tmComResEncVideoGopStructure/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResEncoderDescrHeader_t/struct tmComResEncoderDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResAFeatureDescrHeader_t/struct tmComResAFeatureDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResAudioDefaults_t/struct tmComResAudioDefaults/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResEncAudioBitRate_t/struct tmComResEncAudioBitRate/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTunerStandard_t/struct tmComResTunerStandard/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResTunerStandardAuto_t/struct tmComResTunerStandardAuto/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResPSFormatDescrHeader_t/struct tmComResPSFormatDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResVBIFormatDescrHeader_t/struct tmComResVBIFormatDescrHeader/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResProbeCommit_t/struct tmComResProbeCommit/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResDebugSetLevel_t/struct tmComResDebugSetLevel/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmComResDebugGetData_t/struct tmComResDebugGetData/g; print " $i >a && mv a $i; done for i in drivers/media/video/saa7164/*.[ch]; do perl -ne "s/tmFwInfoStruct_t/struct tmFwInfoStruct/g; print " $i >a && mv a $i; done Signed-off-by: Mauro Carvalho Chehab commit 5cecdc813b864bb89382f8dd67e75398cd8dfd43 Author: Mauro Carvalho Chehab Date: Mon Oct 11 16:26:04 2010 -0300 [media] saa7164: fix a warning at some printk's on i386 drivers/media/video/saa7164/saa7164-buffer.c: In function ‘saa7164_buffer_display’: drivers/media/video/saa7164/saa7164-buffer.c:76: warning: cast to pointer from integer of different size drivers/media/video/saa7164/saa7164-buffer.c:78: warning: cast to pointer from integer of different size Signed-off-by: Mauro Carvalho Chehab commit 841fec0054a0b4e35a0b1dec51b11b69c071ed1a Author: Steven Toth Date: Mon Sep 27 22:36:40 2010 -0300 [media] saa7164: Disable firmware debug message output ... Also disable collection of messages via kernel thread. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit dec2f091f69d615f17db7b503f4cb385845f9436 Author: Steven Toth Date: Sun Sep 5 14:49:15 2010 -0300 [media] saa7164: Remove loud debugging during video_poll() Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 22760ed39c2383e7711753e7582dac5d6d5f647c Author: Steven Toth Date: Sun Sep 5 11:24:50 2010 -0300 [media] saa7164: bugfix, avoid oops when driver unloads without firmware Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit a1c592b766ee94aaf0e2549b8ba4d0298c328484 Author: Steven Toth Date: Sun Sep 5 09:49:43 2010 -0300 [media] saa7164: saa7164-buffer.c line 274 bugfix Mark buffers free when the dvb dma engine stops. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 2e732d64416b243883f753e4a00960c3f3709317 Author: Steven Toth Date: Sat Jul 31 16:51:23 2010 -0300 [media] saa7164: Some whitespace cleanup Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 3dee4317b72bcb2d1f1ecee1b2bd8950eec2ff7f Author: Steven Toth Date: Sat Jul 31 16:34:58 2010 -0300 [media] saa7164: fix vbi compiler warnings Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 99b73d38fa014bcf0f08557cf716907eceffaa1c Author: Steven Toth Date: Sat Jul 31 16:24:25 2010 -0300 [media] saa7164: change debug to saa_debug Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 1247ff5c0acb0fb50b076e390bb770acc95d1d7e Author: Steven Toth Date: Sat Jul 31 16:18:35 2010 -0300 [media] saa7164: monitor the RISC cpu load via a thread Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 0b62ceb03545099f0ab43a787cef5307b34b2fe4 Author: Steven Toth Date: Sat Jul 31 16:17:51 2010 -0300 [media] saa7164: collect/show the firmware debugging via a thread Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 6d152c200e8630dcebcac094d4beff37c1288281 Author: Steven Toth Date: Sat Jul 31 16:16:29 2010 -0300 [media] saa7164: enforce the march 10th firmware is used Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 606658292a0f8dc01f3165e741b711572af2d83f Author: Steven Toth Date: Sat Jul 31 16:15:22 2010 -0300 [media] saa7164: Monitor the command bus and check for inconsistencies Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 1107237e4870055147379f297af02341d75ce6f6 Author: Steven Toth Date: Sat Jul 31 16:10:02 2010 -0300 [media] saa7164: VBI irq cleanup and V4L VBI raw pitch adjustments Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit e48836b8bd7252b3a53eaa355c10322b3f5d236b Author: Steven Toth Date: Sat Jul 31 16:08:52 2010 -0300 [media] saa7164: add firmware debug message collection and procfs changes Check for PROCFS and dynamically adjust code. Cache some PCIe values in the device context. Provide a mechanism to collect the debug messages coming from the firmware. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit e8ce2f21665442a29a2b2d1b25197b05405a7216 Author: Steven Toth Date: Sat Jul 31 16:06:06 2010 -0300 [media] saa7164: add NTSC VBI support IRQ handlers, firmware messages, deferred queue handlers, V4L api's etc. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 11bd27b2e7ab8125b0f8d763b8b61d07a5a38acf Author: Steven Toth Date: Sat Jul 31 16:34:19 2010 -0300 [media] saa7164: Add missing saa7164-vbi.c file Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 96d8420d17809f0b090da3dddb26a3625b1b6e7a Author: Steven Toth Date: Sat Jul 31 16:04:59 2010 -0300 [media] saa7164: rename a structure for readability Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 32299a1461ef080e9d8808cf1a762c59403ac63b Author: Steven Toth Date: Sat Jul 31 16:03:55 2010 -0300 [media] saa7164: Avoid spurious error after firmware starts Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 46b9db2d856793526abf59b5366d2dd7b04c92b7 Author: Steven Toth Date: Sat Jul 31 16:02:41 2010 -0300 [media] saa7164: New firmware changes, new size, new filename Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 1b0e8e46297a214336d85c8e278a8a004f97889e Author: Steven Toth Date: Sat Jul 31 16:01:00 2010 -0300 [media] saa7164: allow DMA engine buffers to vary in size between analog and digital Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 7c1618227e6932fcd92597507ee63c01da73e623 Author: Steven Toth Date: Sat Jul 31 15:55:22 2010 -0300 [media] saa7164: code cleanup Removed some previous debugging code, whitespace cleanup and spurious comments. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit cfbaf33733b99d214d5616dcb48a690630c19d65 Author: Steven Toth Date: Sat Jul 31 15:49:28 2010 -0300 [media] saa7164: irqhandler cleanup and helper function added Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit b31f1222990c02bccb73805648493b5e132a52f9 Author: Steven Toth Date: Sat Jul 31 15:29:34 2010 -0300 [media] saa7164: mundane buffer debugging changes to track issues Code is removed in future patches in this set. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit f6eeece8ec2a323f004265527282f443e083d25a Author: Steven Toth Date: Sat Jul 31 15:28:18 2010 -0300 [media] saa7164: Implement resolution control firmware command .. also fix a minor line 80 wrapping coding style issue. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit a97781ac918073117bb8e63619c77e0380bbcc8d Author: Steven Toth Date: Sat Jul 31 15:27:01 2010 -0300 [media] saa7164: adjust the PS pack size handling to fill buffers 100% Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 12d3203e39db306f56611b3f47ba425ca6a409f9 Author: Steven Toth Date: Sat Jul 31 15:13:45 2010 -0300 [media] saa7164: buffer crc checks and ensure we use the memcpy func Buffer crc checks and ensure we use the correct PCIe IO memcpy func Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 46eeb8dd30d3651e6ea55c2e60594206cd591d79 Author: Steven Toth Date: Sat Jul 31 15:11:59 2010 -0300 [media] saa7164: add guard bytes around critical buffers to detect failure If the guard bytes are trampled then we have a memory related problem. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 58acca1056434dbbbcb3f1aacd759f1039a3169d Author: Steven Toth Date: Sat Jul 31 15:10:52 2010 -0300 [media] saa7164: measure via histograms various irq and queue latencies saa7164: measure via histograms various irq and queue latencies Attempting to determine where buffering issues under high load are due to highly latent irq or work queue handling. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 66e1d37884eb43214292ed433fcffb72692c4838 Author: Steven Toth Date: Sat Jul 31 15:09:25 2010 -0300 [media] saa7164: allow the number of encoder buffers to be user configurable Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 9230acaac461c492ff9dea24bbe6a7f568b62cf6 Author: Steven Toth Date: Sat Jul 31 15:06:49 2010 -0300 [media] saa7164: patches to monitor TS payload for inconsistencies ... and report errors to console. (Debugging a DMA buffering issue). These are made optional in later patches. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 5fa56ccdacc54f5f694141c1a74f781cf77874bb Author: Steven Toth Date: Sat Jul 31 15:05:35 2010 -0300 [media] saa7164: allow variable length GOP sizes and switch encoder default to CBR Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit f91d095c92e8fdcb6bd8cb35e8fa9c87d9c10768 Author: Steven Toth Date: Sat Jul 31 15:03:31 2010 -0300 [media] saa7164: allow encoder output format to be user configurable Allow PS and TS. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 968b11b20143036098a7013817a15615a54383d3 Author: Steven Toth Date: Sat Jul 31 14:59:38 2010 -0300 [media] saa7164: implement encoder peak bitrate feature Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 3ed43cf96aa9fc565d74855649d8cee0def67f38 Author: Steven Toth Date: Sat Jul 31 14:58:35 2010 -0300 [media] saa7164: allow the IBP reference distance to be configurable Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 2600d71cc535907e5d95cd31751c587afc370065 Author: Steven Toth Date: Sat Jul 31 14:51:30 2010 -0300 [media] saa7164: add support for encoder CBR and VBR optionally Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 076031310b182ce89cea861982ff49ed6799767a Author: Steven Toth Date: Sat Jul 31 14:50:46 2010 -0300 [media] saa7164: generate a fixed kernel warning if the irq is 'late' Now we start to see a number of patches applied that are related to debugging the driver. This patch is removed in the coming patches as you start to see the irq handler evolve as I worked through the DMA data corruption issues. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit eafea210719067eee084c047503830c59ae2107b Author: Steven Toth Date: Sat Jul 31 14:48:45 2010 -0300 [media] saa7164: allow the encoder GOP structure to be configured Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 4a52be0faa014380b7bf15c5ca7e3dea7cb4ea52 Author: Steven Toth Date: Sat Jul 31 14:47:36 2010 -0300 [media] saa7164: command dequeue fixup to clean the bus after error Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 91d80189fab8c473a392d81b6834b8032191c990 Author: Steven Toth Date: Sat Jul 31 14:46:51 2010 -0300 [media] saa7164: Implement encoder irq handling in a deferred work queue Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 7615e434aefd95181eae099c4f019e021b024eb6 Author: Steven Toth Date: Sat Jul 31 14:44:53 2010 -0300 [media] saa7164: add various encoder message functions Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit add3f580a4342b8bca7e0fb4737fe9eeaefa4319 Author: Steven Toth Date: Sat Jul 31 14:43:07 2010 -0300 [media] saa7164: convert buffering structs to be more generic Current structs assume transport, making a number of changes to switch to generic functions allowing a smoother integration for the analog encoder. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 335961ca2e5098e222fdfbde93de3714899128fd Author: Steven Toth Date: Sat Jul 31 14:41:09 2010 -0300 [media] saa7164: Add some encoder firmwares message types and structs Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 9b8b0199b86eaa595e3ccacb413e955a193f1962 Author: Steven Toth Date: Sat Jul 31 14:39:44 2010 -0300 [media] saa7164: basic definitions for -encoder.c Add the skeleton file, update the build environment, copyrights. Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit 2e75bcea00273146615dbc6ed3bbabce8d0bc1ca Author: Jiri Slaby Date: Fri Oct 1 18:13:40 2010 -0300 [media] drivers/media/IR/ene_ir.c: fix NULL dereference When 'dev' allocation fails in ene_probe we jump to error label where we dereference the 'dev'. Fix it by jumping few lines below. Signed-off-by: Jiri Slaby Cc: Maxim Levitsky Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab commit 92d0d66c1515c8ee3b700ab3d610587c71fe497f Author: Julia Lawall Date: Sat Oct 2 10:59:15 2010 -0300 [media] drivers/media/dvb/ttpci/av7110_av.c: Add missing error handling code Extend the error handling code with operations found in other nearby error handling code. A simplified version of the sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ @r@ statement S1,S2,S3; constant C1,C2,C3; @@ *if (...) {... S1 return -C1;} ... *if (...) {... when != S1 return -C2;} ... *if (...) {... S1 return -C3;} // Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab commit bdd1751b49be2860cc8c6a61e8fadda0caf22e5a Author: Derek Kelly Date: Sat Oct 16 14:23:51 2010 -0300 [media] gp8psk: Add support for the Genpix Skywalker-2 gp8psk: Add support for the Genpix Skywalker-2 per user requests. Patched against git. Signed-off-by: Derek Kelly Signed-off-by: Mauro Carvalho Chehab commit a90f933507859941c4a58028d7593a80f57895c4 Author: Jean Delvare Date: Wed Oct 13 09:24:25 2010 -0300 [media] i2c: Stop using I2C_CLASS_TV_DIGITAL Detection class I2C_CLASS_TV_DIGITAL is set by many adapters but no I2C device driver is setting it anymore, which means it can be dropped. I2C devices on digital TV adapters are instantiated explicitly these days, which is much better. Signed-off-by: Jean Delvare Signed-off-by: Mauro Carvalho Chehab commit 0a5f1f211f61d7e1b5a6d80314fdf98360ae577a Author: Jean Delvare Date: Wed Oct 13 09:22:54 2010 -0300 [media] i2c: Stop using I2C_CLASS_TV_ANALOG Detection class I2C_CLASS_TV_ANALOG is set by a few adapters but no I2C device driver is setting it anymore, which means it can be dropped. I2C devices on analog TV adapters are instantiated explicitly these days, which is much better. Signed-off-by: Jean Delvare Signed-off-by: Mauro Carvalho Chehab commit 2962fc0120dc73a17fdf350754c9a3c15726baaa Author: Paul Walmsley Date: Sat Oct 9 01:31:40 2010 -0300 [media] tvp5150: COMPOSITE0 input should not force-enable TV mode When digitizing composite video from a analog videotape source using the TVP5150's first composite input channel, the captured stream exhibits tearing and synchronization problems[1]. It turns out that commit c0477ad9feca01bd8eff95d7482c33753d05c700 caused "TV mode" (as opposed to "VCR mode" or "auto-detect") to be forcibly enabled for both composite inputs. According to the chip documentation[2], "TV mode" disables a "chrominance trap" input filter, which appears to be necessary for high-quality video capture from an analog videotape source. [ Commit c7c0b34c27bbf0671807e902fbfea6270c8f138d subsequently restricted the problem to the first composite input, apparently inadvertently. ] Since any type of composite signal source can be connected to the TVP5150's first composite input, unconditionally forcing "TV mode" isn't correct. There doesn't appear to be a good way for applications to tell the driver what is connected. Fortunately, the TVP5150 has an operating mode auto-detection feature, which, when enabled, should cause the TVP5150 to auto-detect whether it should use "VCR mode" or "TV mode". Enabling operating mode auto-detection improved video capture quality significantly[3]. Therefore, fix this bug by using operating mode auto-detection. (Also, while here, fix a CodingStyle issue.) For those users who may find this patch via a mailing list archive but who are not able to upgrade to a kernel with a fixed driver: the TVP5150's S-Video and second composite input sources have auto-detection enabled, so you may wish to try using those -- if available on your device -- until this fix makes it a downstream distribution near you. 1. Pre-patch tvtime snapshot using a Pinnacle PCTV HD Pro as the capture device and a Sony EV-S2000 as a video source: http://www.booyaka.com/~paul/tvp5150/1a.png 2. Section 3.21.3, "Operation Mode Control Register", _TVP5150AM1 Ultralow-Power NTSC/PAL/SECAM Video Decoder (Rev. D)_ [SLES209D], downloaded 8 October 2010, available via http://focus.ti.com/lit/ds/symlink/tvp5150am1.pdf 3. Post-patch tvtime snapshot (same signal chain as #1, above): http://www.booyaka.com/~paul/tvp5150/1b.png Signed-off-by: Paul Walmsley Signed-off-by: Mauro Carvalho Chehab commit a06423c9a264d99345e1b5a04d5ced1168c609b8 Author: Maxim Levitsky Date: Fri Oct 15 13:06:37 2010 -0300 [media] IR: ene_ir: few bugfixes This is a result of last round of debug with Sami R . Thank you Sami very much! The biggest bug I fixed is that, I was clobbering the CIRCFG register after it is setup That wasn't a good idea really And some small refactoring, etc. Tested-by: Sami R Signed-off-by: Maxim Levitsky Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 2a4848949160208d6d02c0d9d340d2a22059b5b0 Author: Maxim Levitsky Date: Fri Oct 15 13:06:35 2010 -0300 [media] IR: extend and sort the MCE keymap Add new keys, found on: Toshiba Qosmio F50-10q. Toshiba Qosmio X300 Toshiba A500-141 Also sort the keytable by scancode number as that makes sense and alows easily to add new keycodes. Thanks to: Sami R Alexander Skiba Jordi Pelegrin For reports and testing. Signed-off-by: Maxim Levitsky Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 4e6e29ad10dc8ff174d7fd15b54e32c783fd8ab8 Author: Jarod Wilson Date: Fri Oct 15 11:07:37 2010 -0300 [media] IR/nuvoton: address all checkpatch.pl issues The driver was missing KERN_ facilities on a number of printks. The register dump functions have been updated to use KERN_INFO, so that the register dump gets logged in syslog (they only run on driver load, and only when debug is enabled). The buffer dump routine now uses KERN_DEBUG, as that spew will happen quite frequently (several times every IR signal), and shouldn't need to be logged. Also split up the small handful of lines that were just over 80 characaters, and fixed the ioctl.h include. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 06e6588edfb2be6fb3e544097c07274bd7b64084 Author: Dan Carpenter Date: Mon Oct 4 16:28:01 2010 -0300 [media] saa7134: add test after for loop Add a check after the for loops to see if we found what we were looking for or if we reached the end of the list. Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab commit 8a197fcc31d3eac0791eef6e92ce1a07d49bb3d3 Author: Ben Hutchings Date: Sun Oct 3 22:18:11 2010 -0300 [media] vivi: Don't depend on FONTS CONFIG_FONTS has nothing to do with whether find_font() is defined. Signed-off-by: Ben Hutchings Acked-by: Randy Dunlap Signed-off-by: Mauro Carvalho Chehab commit abe1def46d84aa27d3f84d729204b162e8c64d76 Author: Andrew Morton Date: Fri Oct 1 18:13:41 2010 -0300 [media] drivers/media/video/cx23885/cx23885-core.c: fix cx23885_dev_checkrevision() It was missing the `break'. Addresses https://bugzilla.kernel.org/show_bug.cgi?id=18672 Reported-by: Igor Signed-off-by: Andrew Morton Cc: stable@kernel.org Signed-off-by: Mauro Carvalho Chehab commit 11b64d31c00359e2e6fa73b0ae4688663e848765 Author: Maxim Levitsky Date: Mon Sep 6 18:26:11 2010 -0300 [media] IR: ene_ir: updates * Add support for newer firmware version that uses different buffer format. Makes hardware work for many users. * Register name updates * Lot of refactoring * Lots of fixes as a result of full testing * Idle mode is done now by resetting the device, and this eliminates the ugly sample_period = 75 hack. Every feature of the driver is now well tested. Signed-off-by: Maxim Levitsky Signed-off-by: Mauro Carvalho Chehab commit 991369e33f0182903d2c64e4b1c6c74ed6f83089 Author: Mauro Carvalho Chehab Date: Thu Oct 14 17:49:33 2010 -0300 [media] ir: properly handle an error at input_register Be sure to rollback all init if input register fails. Cc: Maxim Levitsky Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 58b3dd449feaa997129bde23592c6a31da039e4e Author: Maxim Levitsky Date: Mon Sep 6 18:26:07 2010 -0300 [media] IR: make sure we register the input device when it is safe to do so As soon as input device is registered, it might be accessed (and it is) This can trigger a hardware interrupt that can access not yet initialized ir->raw, (by sending a sample) This can be reproduced by holding down a remote button and reloading the module. And this always crashes the systems where hardware decides to send an interrupt right at the moment it is enabled. Signed-off-by: Maxim Levitsky Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit c6ef1e7fdc752bbaeacb3570cf955ba2ad60c61b Author: Maxim Levitsky Date: Mon Sep 6 18:26:06 2010 -0300 [media] IR: plug races in IR raw thread Unfortunelly (my fault) the kernel thread that now handles IR processing has classical races in regard to wakeup and stop. This patch hopefully closes them all. Tested with module reload running in a loop, while receiver is blasted with IR data for 10 minutes. Signed-off-by: Maxim Levitsky Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit c47d3e7f94a88bbb4c2c441fb34d98a6db32cb8f Author: Mauro Carvalho Chehab Date: Thu Oct 14 17:35:48 2010 -0300 [media] Add a todo file for staging/tm6000 Signed-off-by: Mauro Carvalho Chehab commit fe8b671306c78a963934cb5d6e354178390b8c87 Author: Mauro Carvalho Chehab Date: Thu Sep 30 14:46:47 2010 -0300 [media] saa7134: port Asus P7131 Hybrid to use the new rc-core The rc map table were corrected thanks to Giorgio input and tests. Reported-by: Giorgio Vazzana Tested-by: Giorgio Vazzana Signed-off-by: Mauro Carvalho Chehab commit d2fd44a33083973157d6e0e0e8bcfd5faa214bbb Author: Tommy Jonsson Date: Sun Sep 12 16:03:45 2010 -0300 [media] firedtv: support for PSK8 for S2 devices. To watch HD Add support for tuning with PSK8 modulation, pilot and rolloff with the S2 versions of firedtv. Signed-off-by: Tommy Jonsson Signed-off-by: Stefan Richter (trivial simplification) Signed-off-by: Mauro Carvalho Chehab commit b4d752b308493b08b51ea04361848ef63d0cad42 Author: Mauro Carvalho Chehab Date: Thu Oct 14 12:23:56 2010 -0300 [media] ir: avoid race conditions at device disconnect It is possible that, while ir_unregister_class() is handling, some application could try to access the sysfs nodes, causing an OOPS. Reviewed-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 328b8f1ba50b708a1b3c0acd7c41ee1b356822f6 Merge: 57fa721 f6f94e2 Author: Robert Richter Date: Thu Oct 21 11:39:26 2010 +0200 Merge commit 'v2.6.36' into oprofile/core commit 0d79641a96d612aaa6d57a4d4f521d7ed9c9ccdd Author: Julian Anastasov Date: Sun Oct 17 16:46:17 2010 +0300 ipvs: provide address family for debugging As skb->protocol is not valid in LOCAL_OUT add parameter for address family in packet debugging functions. Even if ports are not present in AH and ESP change them to use ip_vs_tcpudp_debug_packet to show at least valid addresses as before. This patch removes the last user of skb->protocol in IPVS. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit 3233759be7eeca9998c514b8f49e8cf2b85e64d3 Author: Julian Anastasov Date: Sun Oct 17 16:43:36 2010 +0300 ipvs: inherit forwarding method in backup Connections in backup server should inherit the forwarding method from real server. It is a way to fix a problem where the forwarding method in backup connection is damaged by logical OR operation with the real server's connection flags. And the change is needed for setups where the backup server uses different forwarding method for the same real servers. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit cb59155f21d4c0507d2034c2953f6a3f7806913d Author: Julian Anastasov Date: Sun Oct 17 16:40:51 2010 +0300 ipvs: changes for local client This patch deals with local client processing. Prefer LOCAL_OUT hook for scheduling connections from local clients. LOCAL_IN is still supported if the packets are not marked as processed in LOCAL_OUT. The idea to process requests in LOCAL_OUT is to alter conntrack reply before it is confirmed at POST_ROUTING. If the local requests are processed in LOCAL_IN the conntrack can not be updated and matching by state is impossible. Add the following handlers: - ip_vs_reply[46] at LOCAL_IN:99 to process replies from remote real servers to local clients. Now when both replies from remote real servers (ip_vs_reply*) and local real servers (ip_vs_local_reply*) are handled it is safe to remove the conn_out_get call from ip_vs_in because it does not support related ICMP packets. - ip_vs_local_request[46] at LOCAL_OUT:-98 to process requests from local client Handling in LOCAL_OUT causes some changes: - as skb->dev, skb->protocol and skb->pkt_type are not defined in LOCAL_OUT make sure we set skb->dev before calling icmpv6_send, prefer skb_dst(skb) for struct net and remove the skb->protocol checks from TUN transmitters. [ horms@verge.net.au: removed trailing whitespace ] Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit fc604767613b6d2036cdc35b660bc39451040a47 Author: Julian Anastasov Date: Sun Oct 17 16:38:15 2010 +0300 ipvs: changes for local real server This patch deals with local real servers: - Add support for DNAT to local address (different real server port). It needs ip_vs_out hook in LOCAL_OUT for both families because skb->protocol is not set for locally generated packets and can not be used to set 'af'. - Skip packets in ip_vs_in marked with skb->ipvs_property because ip_vs_out processing can be executed in LOCAL_OUT but we still have the conn_out_get check in ip_vs_in. - Ignore packets with inet->nodefrag from local stack - Require skb_dst(skb) != NULL because we use it to get struct net - Add support for changing the route to local IPv4 stack after DNAT depending on the source address type. Local client sets output route and the remote client sets input route. It looks like IPv6 does not need such rerouting because the replies use addresses from initial incoming header, not from skb route. - All transmitters now have strict checks for the destination address type: redirect from non-local address to local real server requires NAT method, local address can not be used as source address when talking to remote real server. - Now LOCALNODE is not set explicitly as forwarding method in real server to allow the connections to provide correct forwarding method to the backup server. Not sure if this breaks tools that expect to see 'Local' real server type. If needed, this can be supported with new flag IP_VS_DEST_F_LOCAL. Now it should be possible connections in backup that lost their fwmark information during sync to be forwarded properly to their daddr, even if it is local address in the backup server. By this way backup could be used as real server for DR or TUN, for NAT there are some restrictions because tuple collisions in conntracks can create problems for the traffic. - Call ip_vs_dst_reset when destination is updated in case some real server IP type is changed between local and remote. [ horms@verge.net.au: removed trailing whitespace ] Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit f5a41847acc535e2e2018e397b1876ba7577d9d9 Author: Julian Anastasov Date: Sun Oct 17 16:35:46 2010 +0300 ipvs: move ip_route_me_harder for ICMP Currently, ip_route_me_harder after ip_vs_out_icmp is called even if packet is not related to IPVS connection. Move it into handle_response_icmp. Also, force rerouting if sending to local client because IPv4 stack uses addresses from the route. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit 1ca5bb5450aa2401fa272efeb741ebb260d0fbb0 Author: Julian Anastasov Date: Sun Oct 17 16:32:29 2010 +0300 ipvs: create ip_vs_defrag_user Create new function ip_vs_defrag_user to return correct IP_DEFRAG_xxx user depending on the hooknum. It will be needed when we add handlers in LOCAL_OUT. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit 4256f1aaa662697c1faa0984b7a698c2c8c57735 Author: Julian Anastasov Date: Sun Oct 17 16:29:40 2010 +0300 ipvs: fix CHECKSUM_PARTIAL for TUN method The recent change in IP_VS_XMIT_TUNNEL to set CHECKSUM_NONE is not correct. After adding IPIP header skb->csum becomes invalid but the CHECKSUM_PARTIAL case must be supported. So, use skb_forward_csum() which is most suitable for us to allow local clients to send IPIP to remote real server. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit 489fdedaed5ddb437dd2840eb93df37a6dd8c7de Author: Julian Anastasov Date: Sun Oct 17 16:27:31 2010 +0300 ipvs: stop ICMP from FORWARD to local Delivering locally ICMP from FORWARD hook is not supported. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit 190ecd27cd7294105e3b26ca71663c7d940acbbb Author: Julian Anastasov Date: Sun Oct 17 16:24:37 2010 +0300 ipvs: do not schedule conns from real servers This patch is needed to avoid scheduling of packets from local real server when we add ip_vs_in in LOCAL_OUT hook to support local client. Currently, when ip_vs_in can not find existing connection it tries to create new one by calling ip_vs_schedule. The default indication from ip_vs_schedule was if connection was scheduled to real server. If real server is not available we try to use the bypass forwarding method or to send ICMP error. But in some cases we do not want to use the bypass feature. So, add flag 'ignored' to indicate if the scheduler ignores this packet. Make sure we do not create new connections from replies. We can hit this problem for persistent services and local real server when ip_vs_in is added to LOCAL_OUT hook to handle local clients. Also, make sure ip_vs_schedule ignores SYN packets for Active FTP DATA from local real server. The FTP DATA connection should be created on SYN+ACK from client to assign correct connection daddr. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit cf356d69db0afef692cd640917bc70f708c27f14 Author: Julian Anastasov Date: Sun Oct 17 16:21:07 2010 +0300 ipvs: switch to notrack mode Change skb->ipvs_property semantic. This is preparation to support ip_vs_out processing in LOCAL_OUT. ipvs_property=1 will be used to avoid expensive lookups for traffic sent by transmitters. Now when conntrack support is not used we call ip_vs_notrack method to avoid problems in OUTPUT and POST_ROUTING hooks instead of exiting POST_ROUTING as before. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit 8b27b10f5863a5b63e46304a71aa01463d1efac4 Author: Julian Anastasov Date: Sun Oct 17 16:17:20 2010 +0300 ipvs: optimize checksums for apps Avoid full checksum calculation for apps that can provide info whether csum was broken after payload mangling. For now only ip_vs_ftp mangles payload and it updates the csum, so the full recalculation is avoided for all packets. Add CHECKSUM_UNNECESSARY for snat_handler (TCP and UDP). It is needed to support SNAT from local address for the case when csum is fully recalculated. Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit 5bc9068e9d962ca6b8bec3f0eb6f60ab4dee1d04 Author: Julian Anastasov Date: Sun Oct 17 16:14:31 2010 +0300 ipvs: fix CHECKSUM_PARTIAL for TCP, UDP Fix CHECKSUM_PARTIAL handling. Tested for IPv4 TCP, UDP not tested because it needs network card with HW CSUM support. May be fixes problem where IPVS can not be used in virtual boxes. Problem appears with DNAT to local address when the local stack sends reply in CHECKSUM_PARTIAL mode. Fix tcp_dnat_handler and udp_dnat_handler to provide vaddr and daddr in right order (old and new IP) when calling tcp_partial_csum_update/udp_partial_csum_update (CHECKSUM_PARTIAL). Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman commit d827d86b6fe87b420ef3c0685ab580290ae64beb Author: Stanislaw Gruszka Date: Wed Oct 20 22:25:43 2010 +0000 r8169: print errors when dma mapping fail If dma mapping fail we are dropping packages or fail to open device. But exact reason of drop/fail stays unknow for a user, so print errors. Signed-off-by: Stanislaw Gruszka Signed-off-by: David S. Miller commit fccec10b33503a2b1197c8e7a3abd30443bedb08 Author: Stanislaw Gruszka Date: Wed Oct 20 22:25:42 2010 +0000 r8169: (re)init phy on resume Fix switching device to low-speed mode after resume reported in: https://bugzilla.redhat.com/show_bug.cgi?id=502974 Reported-and-tested-by: Laurentiu Badea Signed-off-by: Stanislaw Gruszka Signed-off-by: David S. Miller commit 323bb6857533d7132e1d4fd9cc8edc599a06f5e6 Author: Stanislaw Gruszka Date: Wed Oct 20 22:25:41 2010 +0000 r8169: changing mtu clean up Since we do not change rx buffer size any longer, we can clean up rtl8169_change_mtu and in consequence rtl8169_down. Signed-off-by: Stanislaw Gruszka Signed-off-by: David S. Miller commit cac4b22f3d6a2601d896e9ae5147d173342c66f8 Author: Stanislaw Gruszka Date: Wed Oct 20 22:25:40 2010 +0000 r8169: do not account fragments as packets Only increase tx_{packets,dropped} statistics when transmit or drop full skb, not just fragment. Signed-off-by: Stanislaw Gruszka Signed-off-by: David S. Miller commit 48addcc9edd551d09063148886bd6f3467d74c15 Author: Stanislaw Gruszka Date: Wed Oct 20 22:25:39 2010 +0000 r8169: use pointer to struct device as local variable Signed-off-by: Stanislaw Gruszka Signed-off-by: David S. Miller commit 231aee63c1e270353fc0dc7fd4d5605a96562ec0 Author: Stanislaw Gruszka Date: Wed Oct 20 22:25:38 2010 +0000 r8169: replace PCI_DMA_{TO,FROM}DEVICE to DMA_{TO,FROM}_DEVICE Signed-off-by: Stanislaw Gruszka Signed-off-by: David S. Miller commit 0ecbe1cadd406cb48424c796450bfaa18cb0b3ac Author: Stanislaw Gruszka Date: Wed Oct 20 22:25:37 2010 +0000 r8169: init rx ring cleanup Signed-off-by: Stanislaw Gruszka Signed-off-by: David S. Miller commit 3eafe50708deca10d155ccff597a91dcecc2d869 Author: Stanislaw Gruszka Date: Wed Oct 20 22:25:36 2010 +0000 r8169: check dma mapping failures Check possible dma mapping errors and do clean up if it happens. Fix overwrap bug in rtl8169_tx_clear on the way. Signed-off-by: Stanislaw Gruszka Signed-off-by: David S. Miller commit 11a691bea48887c27425cc40bf291e74c922df25 Author: Geert Uytterhoeven Date: Thu Oct 21 10:32:29 2010 +0200 block: Turn bvec_k{un,}map_irq() into static inline functions Convert bvec_k{un,}map_irq() from macros to static inline functions if !CONFIG_HIGHMEM, so we can easier detect mistakes like the one fixed in 93055c31045a2d5599ec613a0c6cdcefc481a460 ("ps3disk: passing wrong variable = to bvec_kunmap_irq()") Signed-off-by: Geert Uytterhoeven Signed-off-by: Jens Axboe commit 9bcc08939223c5a2bad42748ee53ab69f5338a32 Author: Hao Zheng Date: Wed Oct 20 13:56:11 2010 +0000 bnx2x: Update bnx2x to use new vlan accleration. Make the bnx2x driver use the new vlan accleration model. Signed-off-by: Hao Zheng Signed-off-by: Jesse Gross CC: Eilon Greenstein Signed-off-by: David S. Miller commit f62bbb5e62c6e4a91fb222d22bc46e8d4d7e59ef Author: Jesse Gross Date: Wed Oct 20 13:56:10 2010 +0000 ixgbe: Update ixgbe to use new vlan accleration. Make the ixgbe driver use the new vlan accleration model. Signed-off-by: Jesse Gross CC: Peter Waskiewicz CC: Emil Tantilov CC: Jeff Kirsher Signed-off-by: David S. Miller commit 7d0fd2117e3d0550d7987b3aff2bfbc0244cf7c6 Author: Jesse Gross Date: Wed Oct 20 13:56:09 2010 +0000 bnx2: Update bnx2 to use new vlan accleration. Make the bnx2 driver use the new vlan accleration model. Signed-off-by: Jesse Gross CC: Michael Chan Signed-off-by: David S. Miller commit 361ff8a6cf90d62c0071b7e532e37369bfd3ae77 Author: Jesse Gross Date: Wed Oct 20 13:56:08 2010 +0000 bridge: Add support for TX vlan offload. If some of the underlying devices support it, enable vlan offload on transmit for bridge devices. This allows senders to take advantage of the hardware support, similar to other forms of acceleration. Signed-off-by: Jesse Gross Signed-off-by: David S. Miller commit d5dbda23804156ae6f35025ade5307a49d1db6d7 Author: Jesse Gross Date: Wed Oct 20 13:56:07 2010 +0000 ethtool: Add support for vlan accleration. Now that vlan acceleration is handled consistently regardless of usage, it is possible to enable and disable it at will. This adds support for Ethtool operations that change the offloading status for debugging purposes, similar to other forms of hardware acceleration. Signed-off-by: Jesse Gross Signed-off-by: David S. Miller commit 3701e51382a026cba10c60b03efabe534fba4ca4 Author: Jesse Gross Date: Wed Oct 20 13:56:06 2010 +0000 vlan: Centralize handling of hardware acceleration. Currently each driver that is capable of vlan hardware acceleration must be aware of the vlan groups that are configured and then pass the stripped tag to a specialized receive function. This is different from other types of hardware offload in that it places a significant amount of knowledge in the driver itself rather keeping it in the networking core. This makes vlan offloading function more similarly to other forms of offloading (such as checksum offloading or TSO) by doing the following: * On receive, stripped vlans are passed directly to the network core, without attempting to check for vlan groups or reconstructing the header if no group * vlans are made less special by folding the logic into the main receive routines * On transmit, the device layer will add the vlan header in software if the hardware doesn't support it, instead of spreading that logic out in upper layers, such as bonding. There are a number of advantages to this: * Fixes all bugs with drivers incorrectly dropping vlan headers at once. * Avoids having to disable VLAN acceleration when in promiscuous mode (good for bridging since it always puts devices in promiscuous mode). * Keeps VLAN tag separate until given to ultimate consumer, which avoids needing to do header reconstruction as in tg3 unless absolutely necessary. * Consolidates common code in core networking. Signed-off-by: Jesse Gross Signed-off-by: David S. Miller commit 65ac6a5fa658b90f1be700c55e7cd72e4611015d Author: Jesse Gross Date: Wed Oct 20 13:56:05 2010 +0000 vlan: Avoid hash table lookup to find group. A struct net_device always maps to zero or one vlan groups and we always know the device when we are looking up a group. We currently do a hash table lookup on the device to find the group but it is much simpler to just store a pointer. Signed-off-by: Jesse Gross Signed-off-by: David S. Miller commit 7b9c60903714bf0a19d746b228864bad3497284e Author: Jesse Gross Date: Wed Oct 20 13:56:04 2010 +0000 vlan: Enable software emulation for vlan accleration. Currently users of hardware vlan accleration need to know whether the device supports it before generating packets. However, vlan acceleration will soon be available in a more flexible manner so knowing ahead of time becomes much more difficult. This adds a software fallback path for vlan packets on devices without the necessary offloading support, similar to other types of hardware accleration. Signed-off-by: Jesse Gross Signed-off-by: David S. Miller commit eab6d18d20fc5b5ba04a7e7fcd6f357197870e51 Author: Jesse Gross Date: Wed Oct 20 13:56:03 2010 +0000 vlan: Don't check for vlan group before vlan_tx_tag_present. Many (but not all) drivers check to see whether there is a vlan group configured before using a tag stored in the skb. There's not much point in this check since it just throws away data that should only be present in the expected circumstances. However, it will soon be legal and expected to get a vlan tag when no vlan group is configured, so remove this check from all drivers to avoid dropping the tags. Signed-off-by: Jesse Gross Signed-off-by: David S. Miller commit b738127dfb469bb9f595cdace30e7f881e8146b2 Author: Jesse Gross Date: Wed Oct 20 13:56:02 2010 +0000 vlan: Rename VLAN_GROUP_ARRAY_LEN to VLAN_N_VID. VLAN_GROUP_ARRAY_LEN is simply the number of possible vlan VIDs. Since vlan groups will soon be more of an implementation detail for vlan devices, rename the constant to be descriptive of its actual purpose. Signed-off-by: Jesse Gross Signed-off-by: David S. Miller commit 13937911f93ef52ae652f4652761aea6a58d3193 Author: Jesse Gross Date: Wed Oct 20 13:56:01 2010 +0000 ebtables: Allow filtering of hardware accelerated vlan frames. An upcoming commit will allow packets with hardware vlan acceleration information to be passed though more parts of the network stack, including packets trunked through the bridge. This adds support for matching and filtering those packets through ebtables. Signed-off-by: Jesse Gross Signed-off-by: David S. Miller commit 53c90536e96218ed6d60e7ea7a69a92b68805cdf Author: Vasanthy Kolluri Date: Wed Oct 20 10:17:19 2010 +0000 enic: Fix log message Fix a log message Signed-off-by: Vasanthy Kolluri Signed-off-by: Roopa Prabhu Signed-off-by: David Wang Signed-off-by: David S. Miller commit d058590976cb76defb636d78999cca353a09695b Author: Vasanthy Kolluri Date: Wed Oct 20 10:17:14 2010 +0000 enic: Change min MTU Change min MTU to 68. Signed-off-by: Vasanthy Kolluri Signed-off-by: Roopa Prabhu Signed-off-by: David Wang Signed-off-by: David S. Miller commit 2db77e0f331d343511d08e204be5e22f934e1a68 Author: Vasanthy Kolluri Date: Wed Oct 20 10:17:09 2010 +0000 enic: Replace firmware devcmd CMD_ENABLE with CMD_ENABLE_WAIT Replace no wait CMD_ENABLE firmware devcmd with CMD_ENABLE_WAIT Signed-off-by: Vasanthy Kolluri Signed-off-by: Roopa Prabhu Signed-off-by: David Wang Signed-off-by: David S. Miller commit c76fd32d0504c0450edb0e00890aa32e3ff1f73d Author: Vasanthy Kolluri Date: Wed Oct 20 10:17:04 2010 +0000 enic: Make firmware cognizant of the user set mac address Let the firmware know about the mac address set by the user using ndo_set_mac_address Signed-off-by: Vasanthy Kolluri Signed-off-by: Roopa Prabhu Signed-off-by: David Wang Signed-off-by: David S. Miller commit 717258ba4b3ecca9c7c0ef2b76d7aa5800242bad Author: Vasanthy Kolluri Date: Wed Oct 20 10:16:59 2010 +0000 enic: Add support for multiple hardware receive queues Add support for multiple hardware receive queues. The ingress traffic is hashed into one of the receive queues based on IP or TCP or both headers. The max no. of receive queues supported is 8. Signed-off-by: Vasanthy Kolluri Signed-off-by: Roopa Prabhu Signed-off-by: David Wang Signed-off-by: David S. Miller commit e0e8ab596012d8c2147beb3c8b70d2d6ab90acda Author: Denis Kirjanov Date: Wed Oct 20 04:21:51 2010 +0000 ibmveth: Free irq on error path Free irq on error path. Signed-off-by: Denis Kirjanov Signed-off-by: David S. Miller commit 88426f2acae0cf887446013db9eab776871610e7 Author: Denis Kirjanov Date: Wed Oct 20 04:21:13 2010 +0000 ibmveth: Cleanup error handling inside ibmveth_open Remove duplicated code in one place. Signed-off-by: Denis Kirjanov Signed-off-by: David S. Miller commit 45aafd32996e27bfc4862654ff31231bdddbe200 Author: Artem Bityutskiy Date: Wed Oct 20 11:54:58 2010 +0300 UBI: tighten the corrupted PEB criteria If we get a bit-flip of ECC error while reading the data area, do not add it to corrupted list, because it is possible that this is just unstable PEB with corruptions caused by unclean reboots. This patch also improves commentaries. Signed-off-by: Artem Bityutskiy commit df3fca4cdddfa6e1f51b65214d4342660649bd1f Author: Artem Bityutskiy Date: Wed Oct 20 11:51:21 2010 +0300 UBI: fix check_data_ff return code When the data does not contain all 0xFF bytes, 'check_data_ff()' should return 1, not -EINVAL; Also, the caller ('process_eb()') should not add the PEB to the "corrupted" list if there was a read error. Signed-off-by: Artem Bityutskiy commit fb22b59b2c38054cc847f6acc5c46daa26dc6dd3 Author: Artem Bityutskiy Date: Tue Oct 19 22:00:11 2010 +0300 UBI: remember copy_flag while scanning While scanning the flash we read all VID headers and store some important information in 'struct ubi_scan_leb'. Store also the 'copy_flag' value there as it is needed when comparing LEBs. We do not increase memory consumption because this is just one bit and we have plenty of spare bits in 'struct ubi_scan_leb' (sizeof(struct ubi_scan_leb) is 48 both with and without this patch). Signed-off-by: Artem Bityutskiy commit 6599fcbd01baf9d57e847db103d215ea4ec088f9 Author: Artem Bityutskiy Date: Mon Oct 18 10:00:40 2010 +0300 UBIFS: do not allocate unneeded scan buffer In 'ubifs_replay_journal()' we allocate 'sbuf' for scanning the log. However, we already have 'c->sbuf' for these purposes, so do not allocate yet another one. This reduces UBIFS memory consumption while recovering. Signed-off-by: Artem Bityutskiy commit 3601ba27353a968df843454e4b81155376682505 Author: Artem Bityutskiy Date: Mon Oct 18 08:32:35 2010 +0300 UBIFS: do not forget to cancel timers This is a bug-fix: when we unmount, and we are currently in R/O mode because of an error - we do not sync write-buffers, which means we also do not cancel write-buffer timers we may possibly have armed. This patch fixes the issue. The issue can easily be reproduced by enabling UBIFS failure debug mode (echo 4 > /sys/module/ubifs/parameters/debug_tsts) and unmounting as soon as a failure happen. At some point the system oopses because we have an armed hrtimer but UBIFS is unmounted already. Signed-off-by: Artem Bityutskiy commit 39037559e651c417fb68b828926dc61cd5d6e5e2 Author: Artem Bityutskiy Date: Mon Oct 18 08:28:50 2010 +0300 UBIFS: remove a bit of unneeded code This is a clean-up patch which: 1. Removes explicite 'hrtimer_cancel()' after 'ubifs_wbuf_sync()' in 'ubifs_remount_ro()', because the timers will be canceled by 'ubifs_wbuf_sync()', no need to cancel them for the second time. 2. Remove "if (c->jheads)" check from 'ubifs_put_super()', because at journal heads must always be allocated there, since we checked earlier that we were mounted R/W, and the olny situation when journal heads are not allocated is when mounter or re-mounted R/O. Signed-off-by: Artem Bityutskiy commit d836b31e164e15a5f366199f4ee757c6be7dc91e Merge: 4993e0d 6d97e55 Author: David S. Miller Date: Thu Oct 21 01:08:39 2010 -0700 Merge branch 'vhost-net' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost commit 00cd0bb7307970b745aefd2b3e1db929792b43bd Author: Takashi Iwai Date: Thu Oct 21 09:57:40 2010 +0200 ALSA: hda - Apply ideapad quirk to Acer laptops with Cxt5066 Multiple Acer laptops with the SSID 1025:04xx require the quirk mode=ideapad, so let's use mask to apply to all these. Signed-off-by: Takashi Iwai commit 4993e0d211105bc72d4ffc62ba20232d25ad418a Merge: 4c2a1b8 d793fe8 Author: David S. Miller Date: Thu Oct 21 00:54:29 2010 -0700 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth-2.6 commit 4c2a1b86644a6f3fc6b788d3a591563aff71f836 Merge: e226930 f6f94e2 Author: David S. Miller Date: Thu Oct 21 00:54:21 2010 -0700 Merge branch 'master' of /home/davem/src/GIT/linux-2.6/ commit 2aeb66d3036dbafc297ac553a257a40283dadb3e Author: H. Peter Anvin Date: Thu Oct 21 00:15:00 2010 -0700 x86-32, percpu: Correct the ordering of the percpu readmostly section Checkin c957ef2c59e952803766ddc22e89981ab534606f had inconsistent ordering of .data..percpu..page_aligned and .data..percpu..readmostly; the still-broken version affected x86-32 at least. The page aligned version really must be page aligned... Signed-off-by: H. Peter Anvin LKML-Reference: <1287544022.4571.7.camel@sli10-conroe.sh.intel.com> Cc: Shaohua Li Cc: Eric Dumazet commit fe5a50a10c7b3bf38e47045eadc6b87a5c157f44 Author: Christoph Hellwig Date: Wed Sep 15 01:27:23 2010 +0200 virtio_blk: remove BKL leftovers Remove the BKL usage added in "block: push down BKL into .locked_ioctl". Virtio-blk doesn't use the BKL for anything, and doesn't implement any ioctl command by itself, but only uses the generic scsi_cmd_ioctl which is fine without the BKL. Signed-off-by: Christoph Hellwig Signed-off-by: Rusty Russell commit 299fb61c08c2fcd1bb6d3a4e87e53dc368475416 Author: Amit Shah Date: Thu Sep 16 14:43:09 2010 +0530 virtio: console: Disable lseek(2) for port file operations The ports are char devices; do not have seeking capabilities. Calling nonseekable_open() from the fops_open() call and setting the llseek fops pointer to no_llseek ensures an lseek() call from userspace returns -ESPIPE. Signed-off-by: Amit Shah CC: Arnd Bergmann Signed-off-by: Rusty Russell commit a461e11e7b8ca2705889bcf9582f6a8f84884bd2 Author: Amit Shah Date: Thu Sep 2 18:47:54 2010 +0530 virtio: console: Send SIGIO in case of port unplug If a port has registered for SIGIO signals, let the application know that the port is getting unplugged. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 55f6bcce3691f68476a530daa6666b66c43420a8 Author: Amit Shah Date: Thu Sep 2 18:47:53 2010 +0530 virtio: console: Send SIGIO on new data arrival on ports Send a SIGIO signal when new data arrives on a port. This is sent only when the process has requested for the signal to be sent using fcntl(). Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 3eae0adea949d8fdd8fa3e5301192901219d2c64 Author: Amit Shah Date: Thu Sep 2 18:47:52 2010 +0530 virtio: console: Send SIGIO to processes that request it for host events A process can request for SIGIO on host connect / disconnect events using the O_ASYNC file flag using fcntl(). If that's requested, and if the guest-side connection for the port is open, any host-side open/close events for that port will raise a SIGIO. The process can then use poll() within the signal handler to find out which port triggered the signal. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit e062013c7d22e40ee634b818d28fd615db36998e Author: Amit Shah Date: Thu Sep 2 18:38:30 2010 +0530 virtio: console: Reference counting portdev structs is not needed Explain in a comment why there's no need to reference-count the portdev struct: when a device is yanked out, we can't do anything more with it anyway so just give up doing anything more with the data or the vqs and exit cleanly. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit b353a6b821627053f82b4e7b907e824cb7a6879c Author: Amit Shah Date: Thu Sep 2 18:38:29 2010 +0530 virtio: console: Add reference counting for port struct When a port got hot-unplugged, when a port was open, any file operation after the unplugging resulted in a crash. This is fixed by ref-counting the port structure, and releasing it only when the file is closed. This splits the unplug operation in two parts: first marks the port as unavailable, removes all the buffers in the vqs and removes the port from the per-device list of ports. The second stage, invoked when all references drop to zero, releases the chardev and frees all other memory. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit d22a69892bd8f29e3096f6f54c2c00d8aec2e796 Author: Amit Shah Date: Thu Sep 2 18:20:59 2010 +0530 virtio: console: Use cdev_alloc() instead of cdev_init() This moves to using cdev on the heap instead of it being embedded in the ports struct. This helps individual refcounting and will allow us to properly remove cdev structs after hot-unplugs and close operations. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 04950cdf071b6e5aa4794c93ad3e3ce8a1c4aa8c Author: Amit Shah Date: Thu Sep 2 18:20:58 2010 +0530 virtio: console: Add a find_port_by_devt() function To convert to using cdev as a pointer to avoid kref troubles, we have to use a different method to get to a port from an inode than the current container_of method. Add find_port_by_devt() that looks up all portdevs and ports with those portdevs to find the right port. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 6bdf2afd02ae12bf8ac93e6d14c4b4dfef7c4c59 Author: Amit Shah Date: Thu Sep 2 18:11:49 2010 +0530 virtio: console: Add a list of portdevs that are active The virtio_console.c driver is capable of handling multiple devices at a time. Maintain a list of devices for future traversal. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 8ad37e83c8dc413f92b10c3d9bdeabe9237f521d Author: Amit Shah Date: Thu Sep 2 18:11:48 2010 +0530 virtio: console: open: Use a common path for error handling Just re-arrange code for future patches. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 7a2853178dfba9553d58f356113f47fd582e9cc6 Author: Amit Shah Date: Thu Sep 2 18:11:47 2010 +0530 virtio: console: remove_port() should return void When a port is removed, we have to assume the port is gone. So a success/failure return value doesn't make sense. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit f4028119714e452f9b49377ec55e0ed1e5d1dfa4 Author: Amit Shah Date: Thu Sep 2 18:11:46 2010 +0530 virtio: console: Make write() return -ENODEV on hot-unplug When a port is hot-unplugged while an app was blocked on a write() call, the call was unblocked but would not get an error returned. Return -ENODEV to ensure the app knows the port has gone away. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit b3dddb9e6ddab74327f5557c1a6640ea0f56ad1c Author: Amit Shah Date: Thu Sep 2 18:11:45 2010 +0530 virtio: console: Make read() return -ENODEV on hot-unplug When a port is hot-unplugged while an app was blocked on a read() call, the call was unblocked but would not get an error returned. Return -ENODEV to ensure the app knows the port has gone away. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 8529a504273d4efa6bb004dcd6ef28fe67b64ae9 Author: Amit Shah Date: Thu Sep 2 18:11:44 2010 +0530 virtio: console: Unblock poll on port hot-unplug When a port is hot-unplugged while an app is blocked on poll(), unblock the poll() and return. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 3709ea7ae7d698b428576c2db0bbb6e08a18cf12 Author: Amit Shah Date: Thu Sep 2 18:11:43 2010 +0530 virtio: console: Un-block reads on chardev close If a chardev is closed, any blocked read / poll calls should just return and not attempt to use other state. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 84ec06c59a14d0941dd58ca6793b24a7e86b3b85 Author: Amit Shah Date: Thu Sep 2 18:11:42 2010 +0530 virtio: console: Check if portdev is valid in send_control_msg() A portdev may have been hot-unplugged while a port was open()ed. Skip sending control messages when the portdev isn't valid. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 96eb872b2a041b1536ccc6ae2fa87eb28f6e2bb2 Author: Amit Shah Date: Thu Sep 2 18:11:41 2010 +0530 virtio: console: Remove control vq data only if using multiport support If a portdev isn't using multiport support, it won't have any control vq data to remove. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 02238959944ce031f066f21e541a14933aca6575 Author: Amit Shah Date: Thu Sep 2 18:11:40 2010 +0530 virtio: console: Reset vdev before removing device The virtqueues should be disabled before attempting to remove the device. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell commit 14d34f166c57e77e3d7f9bc8b43d349186d922c1 Author: Takashi Iwai Date: Thu Oct 21 09:03:25 2010 +0200 ALSA: hda - Add some workarounds for Creative IBG Creative HD-audio controller chips require some workarounds: - Additional delay before RIRB response - Set the initial RIRB counter to 0xc0 The latter seems to be done in general in Windows driver, so we may use this value later for all types if it's confirmed to work better. Reported-by: Wai Yew CHAY Cc: Signed-off-by: Takashi Iwai commit 24b55c69b66eb2a122842820ec14ab215fc8572f Author: Takashi Iwai Date: Thu Oct 21 08:55:13 2010 +0200 ALSA: hda - Fix wrong SPDIF NID assignment for CA0110 The dig_out_nid field must take a digital-converter widget, but the current ca0110 parser passed the pin wrongly instead. Reported-by: Wai Yew CHAY Cc: Signed-off-by: Takashi Iwai commit 693194f3b8af349a510604dffad9bdbbcf1c7db8 Author: Kailang Yang Date: Thu Oct 21 08:51:48 2010 +0200 ALSA: hda - Fix codec rename rules for ALC662-compatible codecs Signed-off-by: Kailang Yang Signed-off-by: Takashi Iwai commit bf1b022588eba78c990fd58fd2471cd92c2c5683 Author: Kailang Yang Date: Thu Oct 21 08:49:56 2010 +0200 ALSA: hda - Add alc_init_jacks() call to other codecs Signed-off-by: Kailang Yang Signed-off-by: Takashi Iwai commit a1dfe9c7c9b780865f7a847d3a12fe9214005a58 Author: Michal Simek Date: Thu Oct 7 17:39:03 2010 +1000 fbdev/xilinxfb: Microblaze driver support DCR bus is natively used for PowerPC. Microblaze has no infrastructure for compile DCR that's why is necessary to exclude it. Signed-off-by: Michal Simek Acked-by: Grant Likely CC: Andrei Konovalov CC: "David S. Miller" CC: linux-kernel@vger.kernel.org commit 1180b28ca82c529972bfd438467d5cd71cca5372 Author: Michal Simek Date: Sat Oct 9 14:05:58 2010 +1000 microblaze: Support C optimized lib functions for little-endian Optimized C library functions can rapidly speedup the kernel. memset doesn't need to be optimized because there is no difference in behavior on little/big endian cpu. Signed-off-by: Michal Simek commit 93e2e85139509338c68279c7260ebb68177b23a9 Author: Michal Simek Date: Sat Oct 9 13:58:24 2010 +1000 microblaze: Separate library optimized functions memcpy/memmove/memset Signed-off-by: Michal Simek commit ccea0e6e49e4db8ee7968c183ecddb3e399c5f54 Author: Michal Simek Date: Thu Oct 7 17:39:21 2010 +1000 microblaze: Support timer on AXI lite New microblaze systems uses two buses. One for memories and flashes and the second for low-speed peripherals which can run on different CLK. This is the reason why the kernel is trying to read clock-frequency directly from node. If there is then the kernel will work with it. If not then cpu CLK is used. Signed-off-by: Michal Simek commit 02b08045a0306c38131c6d7155c4034a775d40b1 Author: Michal Simek Date: Tue Sep 28 16:04:14 2010 +1000 microblaze: Add support for little-endian Microblaze Microblaze little-endian toolchain exports __MICROBLAZEEL__ which is used in the kernel to identify little/big endian. The most of the changes are in loading values from DTB which is always big endian. Little endian platforms are based on new AXI bus which has impact to early uartlite initialization. Signed-off-by: Michal Simek commit e4f29092272ee91a34d3660c31f15ed103057aa0 Author: Michal Simek Date: Tue Sep 28 15:49:17 2010 +1000 microblaze: KGDB little endian support Just need to use little-endian opcode for brki r16, 0x18 Signed-off-by: Michal Simek CC: Jason Wessel commit 8e2ad016b20f98790d5995aae1d157d1613ab9e6 Author: Michal Simek Date: Fri Aug 13 12:47:42 2010 +0200 microblaze: Add PVR for endians plus detection Upcomming microblaze version will support little-endian. Signed-off-by: Michal Simek Acked-by: Grant Likely commit 44180a573ec936cd989a7c0478f5fd1cf8e1ebc3 Author: Michal Simek Date: Fri Sep 10 13:22:35 2010 +0200 net: emaclite: Add support for little-endian platforms Upcomming Microblaze is little endian that's why is necessary to fix protocol and length loading. Signed-off-by: Michal Simek Acked-by: Grant Likely Acked-by: David S. Miller CC: Eric Dumazet CC: netdev@vger.kernel.org CC: linux-kernel@vger.kernel.org CC: devicetree-discuss@lists.ozlabs.org commit b4dcaee50a3859bc3c7e6bace5daeec1d903e239 Author: Michal Simek Date: Fri Sep 10 12:58:37 2010 +0200 microblaze: trivial: Add comment for AXI pvr AXI and OPB share some PVR macros. Signed-off-by: Michal Simek commit 6c3bbdd6609aefa6494ee3020f80108dbdccf755 Author: Nishanth Aravamudan Date: Wed Sep 15 11:05:51 2010 -0700 microblaze: pci-common cleanup Use set_dma_ops and remove now used-once oddly named temp pointer sd. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Signed-off-by: Michal Simek commit 67f4aaa21cf8cf09726cd26b506f3407ad7f11f9 Author: Michal Simek Date: Tue Sep 28 16:17:03 2010 +1000 microblaze: Support early console on uart16550 Early console support reuse setting from U-BOOT that's why it is not necessary to setup baudrates, etc. Signed-off-by: Michal Simek commit 51f5fa50942ab013aa2e321bdfdba1c34ebf3256 Author: Michal Simek Date: Tue Sep 28 16:40:00 2010 +1000 microblaze: Do not compile early console support for uartlite if is disabled Kconfig blocks to select any other early console support that's why this patch has no real impact on current kernel version. But it is done because of uart16550. Signed-off-by: Michal Simek commit 9a7e8d805ea042a7f37c8d3cef8350db63df9d57 Author: Michal Simek Date: Tue Sep 28 16:38:28 2010 +1000 microblaze: Setup early console dynamically Just setup pointer early console in run time. Signed-off-by: Michal Simek commit 2af9ebe951bb12434e9f10cd1f0f83943ef3f54b Author: Michal Simek Date: Tue Sep 28 16:33:53 2010 +1000 microblaze: Rename all uartlite early printk functions This is done because of uart16550 early printk support Signed-off-by: Michal Simek commit 96a5ff42298d0ea44d5aa321a56aeba280b52645 Author: Michal Simek Date: Tue Sep 28 16:27:49 2010 +1000 microblaze: remove early printk uarlite console dependency from header This dependency is resolved in menuconfig. Signed-off-by: Michal Simek commit e65f1e2843d31d9ed74c7cce273adc0d97b5140f Author: Michal Simek Date: Tue Sep 14 08:09:37 2010 +0200 microblaze: Remove additional compatible properties Device-tree BSP generates longer compatible properties that's why we can remove extra/old one. Signed-off-by: Michal Simek commit a7d8355008e4f6bbdcb8f998328afa685cec959c Author: Michal Simek Date: Tue Sep 28 15:43:59 2010 +1000 microblaze: Remove hardcoded asm instraction for PVR loading It comes from past where pvr wasn't supported in msr instruction. Signed-off-by: Michal Simek commit 92ee8bd468b43938319d6ff51afb071b6e9ef758 Author: Joe Perches Date: Mon Sep 13 21:23:49 2010 -0700 microblaze: Use static const char * const where possible Signed-off-by: Joe Perches Signed-off-by: Michal Simek commit 099a2f4284eba5da2708d0e8fe0797dc095d47ca Author: Michal Simek Date: Fri Sep 10 12:43:42 2010 +0200 microblaze: Define VMALLOC_START/END per cpu changes requires VMALLOC_START/END to be define even for noMMU systems. Signed-off-by: Michal Simek commit bd3b492a29a5221fef1c24ecfd00bb335945dce9 Author: Michal Simek Date: Thu Aug 12 13:06:59 2010 +0200 microblaze: Export missing symbols for modules Several kernel modules requires empty_zero_page and mbc to be exported. Signed-off-by: Michal Simek commit 4e07dba7cb8c9c76a52d0e32b69f13bb583a9674 Author: Michal Simek Date: Thu Aug 12 14:28:53 2010 +0200 microblaze: Add libgcc function directly to kernel Replaced libgcc functions with asm optimized implementation. Signed-off-by: Michal Simek commit cec051671dc2bb72cc2870aa149d7101ea494b8b Author: Michal Simek Date: Tue Aug 17 11:49:24 2010 +0200 microblaze: support gpio_to_irq() gpiolib returns -ENXIO if struct gpio_chip::to_irq isn't set, so it's safe to always call. Based on PPC patch "powerpc/gpio: support gpio_to_irq()" 78331aded913d76c7ff996a1a0747d54b057460b Signed-off-by: Michal Simek commit ac2e7c92ee071d398b72a7848a298664b80f9712 Author: Michal Simek Date: Tue Aug 17 11:48:36 2010 +0200 microblaze: Define empty mmiowb mmiowb is required by any driver. Signed-off-by: Michal Simek commit 4d24d7f7aeca897bada4936a2bd10c33c4f23308 Author: Michal Simek Date: Mon Aug 16 10:52:20 2010 +0200 microblaze: wire up prlimit64 and fanotify* syscalls Signed-off-by: Michal Simek commit b9b12fd147553676c6b9483bdc9e3eae0b449aa0 Author: FUJITA Tomonori Date: Sat Aug 14 16:18:26 2010 +0900 microblaze: use asm-generic/pci-dma-compat.h Use asm-generic/pci-dma-compat.h instead of the homegrown pci_set_dma_mask and pci_set_consistent_dma_mask. Signed-off-by: FUJITA Tomonori commit 6d5f2f6d4114578e2504ed3f675d450cbde5a161 Author: Michal Simek Date: Fri Aug 13 12:47:18 2010 +0200 microblaze: Add PVR for BTC Signed-off-by: Michal Simek commit f66efecad0b468214f574b295f4152aa95d74d4e Author: Michal Simek Date: Fri Aug 13 12:44:17 2010 +0200 microblaze: Add new microblaze versions PVR for 7.30.b, 8.00.a versions. Signed-off-by: Michal Simek commit b3ea83809347a6f717daa01854677582a7e47a62 Author: Michal Simek Date: Thu Aug 12 14:27:28 2010 +0200 microblaze: remove OUTPUT_FORMAT from linker script OUTPUT_FORMAT setup bigendian platform. Microblaze Linux port is becoming bi endian that's why it is removed. Signed-off-by: Michal Simek commit 600eb6110a3f15aedffc3cce31b6065a09e7cb31 Author: Michal Simek Date: Mon Aug 9 14:37:42 2010 +0200 microblaze: Fix r16 and r17 reg saving r16 and r17 should be saved across interrupt and exception handling. Signed-off-by: Michal Simek commit 36cf089dc648f542622eb43daaa35b3a90f510a6 Author: Christian Dietrich Date: Tue Aug 10 14:00:52 2010 +0200 microblaze: Removing dead CONTIGUOUS_PAGE_ALLOC config option CONFIG_CONTIGUOUS_PAGE_ALLOC doesn't exist in Kconfig, therefore removing all references to it from the source. Signed-off-by: Christian Dietrich Signed-off-by: Michal Simek commit 69717607f028d7d4f4b355afb86556f3dd9363fc Author: Michal Simek Date: Fri Aug 6 14:13:13 2010 +0200 microblaze: Report if only one timer is used Kernel needs two timers because of clocksource and clockevent. It is better to show warning message directly on early console if available. If it isn't available kernel log buffer contains it. Signed-off-by: Michal Simek commit 7d4320956f0f8aa2c36c23f209acc3e4c3ae52d6 Author: Michal Simek Date: Fri Aug 6 10:42:30 2010 +0200 microblaze: Clear return value in pt_regs Signal code uses r3 value which saved in restore_sigcontext to rt_sigframe but it require to be zeroed. If is not zero rt_sigframe contains wrong values. Signed-off-by: Michal Simek commit 791d0a169b912220d58e0ce4564d7bf1e68146a8 Author: Michal Simek Date: Fri Aug 6 10:36:02 2010 +0200 microblaze: Fix sys_rt_sigreturn_wrapper Do not save return registers before rt_sigreturn is called. _user_exception(syscall handler) already setup return address that's why it is removed from rt_sigreturn_wrapper. Signed-off-by: Michal Simek commit 06d1973490199d38a65029101199e04004fbe8f3 Author: Michal Simek Date: Fri Aug 6 08:51:54 2010 +0200 microblaze: remove unused TIF_KERNEL_TRACE TIF_KERNEL_TRACE is not used anywhere. Signed-off-by: Michal Simek commit 68c6ac3366764730c6cc6bcc7003b233bd6b6571 Author: Michal Simek Date: Fri Aug 6 08:50:35 2010 +0200 microblaze: Add seccomp support Add seccomp support. Signed-off-by: Michal Simek commit 0425609680927f3368b0e0270452d41759d43b3f Author: Michal Simek Date: Tue Aug 3 11:32:20 2010 +0200 microblaze: Remove old user debugging gdb stub Old gdb uses priviledged exception handler to handle gdb exception. New gdb uses brki r16, 0x18 that's why we can remove old gdb support. Signed-off-by: Michal Simek commit 95d3a8cd1596b7d34b873d1fa5a70bbc656f5410 Author: Michal Simek Date: Fri Aug 6 08:49:13 2010 +0200 microblaze: trivial: thread_info cleanup Coding style cleanup. Signed-off-by: Michal Simek commit 5f0cb3e01ec41b35b8452856f2ddd7a9f36fb80b Author: Michal Simek Date: Mon Aug 16 11:02:18 2010 +0200 microblaze: Fix pmd_populate macro Compilation warning: mm/memory.c: In function '__pte_alloc': mm/memory.c:421: warning: assignment makes integer from pointer without a cast Signed-off-by: Michal Simek commit f859f0a235d4d9e7eae49bf10bab6b0967d328f6 Author: Michal Simek Date: Tue Aug 10 08:19:03 2010 +0200 microblaze: kgdb: Remove unused variable and fix return value I forget to remove unused variable from kgdb_arch_handle_exception. Fix return value in microblaze_kgdb_break function. Error log: arch/microblaze/kernel/kgdb.c: In function 'microblaze_kgdb_break': arch/microblaze/kernel/kgdb.c:83: warning: 'return' with a value, in function returning void arch/microblaze/kernel/kgdb.c: In function 'kgdb_arch_handle_exception': arch/microblaze/kernel/kgdb.c:119: warning: unused variable 'cpu' Signed-off-by: Michal Simek commit 4bdfd9ebc3bb6e111309b711a601bce7a8ae6857 Author: Michal Simek Date: Tue Aug 10 08:57:45 2010 +0200 microblaze: Fix generic DTS to ensure OF requirements LL Temac dts nodes should contain ranges property. It is sufficient to use empty ranges property. Signed-off-by: Michal Simek commit c4554c32a7a6f81e9226084c43a3b8e17853c535 Author: Joe Perches Date: Sat Sep 11 22:10:51 2010 -0700 microblaze: Remove pr_ uses of KERN_ Signed-off-by: Joe Perches Signed-off-by: Michal Simek commit b784cfcec7293f688b09d3850826216a4e134d2e Author: Dan Carpenter Date: Tue Oct 12 10:42:08 2010 -0300 [media] IR/streamzap: fix usec to nsec conversion There is an integer overflow here because 0x03000000 * 1000 is too large for 31 bits. rawir.duration should be in terms of nsecs. IR_MAX_DURATION and 0x03000000 are already in terms of nsecs. STREAMZAP_TIMEOUT and STREAMZAP_RESOLUTION are 255 and 256 respectively and are in terms of usecs. The original code had a deadline of 1.005 seconds and the new code has a deadline of .065 seconds. Signed-off-by: Dan Carpenter Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit b768d47eb6e467b198351c0344e2e3e49c45c476 Author: Jarod Wilson Date: Tue Oct 12 10:41:27 2010 -0300 [media] IR/streamzap: shorten up some define names for readability Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 4fc215430f6764f3e30bdf86bc2a46ab2e0c4404 Author: Jarod Wilson Date: Sat Oct 9 15:17:03 2010 -0300 [media] lirc_dev: fixup error messages w/missing newlines Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 8be292cc035ebc3422f08e84682626dd8ed8334b Author: Jarod Wilson Date: Sat Oct 9 15:07:06 2010 -0300 [media] lirc: wire up .compat_ioctl to main ioctl handler As pointed out (and tested) by Joris van Rantwijk, we do actually need to wire up .compat_ioctl for 32-bit lirc userspace to work with 64-bit lirc kernelspace. Do it. And add a check to make sure we get a valid irctl in the ioctl handler. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit a126681810a327bee60a58ac5ad77f4518cf7a5f Author: Jarod Wilson Date: Fri Oct 8 17:35:09 2010 -0300 [media] staging/lirc: ioctl portability fixups Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit be1f985ffa49467f604318182616678b3e5184fd Author: Jarod Wilson Date: Fri Oct 8 17:24:21 2010 -0300 [media] IR/lirc: further ioctl portability fixups >From Joris van Rantwijk : I tested lirc_serial and found that it works fine. Except the LIRC ioctls do not work in my 64-bit-kernel/32-bit-user setup. I added compat_ioctl entries in the drivers to fix this. While doing so, I noticed inconsistencies in the argument type of the LIRC ioctls. All ioctls are declared in lirc.h as having argument type __u32, however there are a few places where the driver calls get_user/put_user with an unsigned long argument. The patch below changes lirc_dev and lirc_serial to use __u32 for all ioctl arguments, and adds compat_ioctl entries. It should probably also be done in the other low-level drivers, but I don't have hardware to test those. I've dropped the .compat_ioctl addition from Joris' original patch, as I swear the non-compat definition should now work for both 32-bit and 64-bit userspace. Technically, I think we still need/want a in getting a reply to you). Reported-by: Joris van Rantwijk Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit d322bf4ab2b513d03bd53b4436dbf6f2a36a7a76 Author: Jarod Wilson Date: Fri Oct 8 16:23:56 2010 -0300 [media] IR/Kconfig: sort hardware entries alphabetically Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit fbdc781c6ba9742b475ca9979007ea12bed0d044 Author: Jarod Wilson Date: Fri Oct 8 16:16:23 2010 -0300 [media] nuvoton-cir: add proper rx fifo overrun handling Per discussion with Andy Walls on irc, rx fifo overruns are not all that uncommon on a busy system, and the initial posting of the nuvoton-cir driver doesn't handle them well enough. With this addition, we'll drain the hw fifo, attempt to process any ir pulse trains completed with that flush, then we'll issue a hw rx fifo clear and reset the raw ir sample kfifo and start over collecting raw ir data. Also slightly refactors the cir interrupt enabling so that we always get consistent flags set and only have to modify them in one place, should they need to be altered. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 6d2f5c27880c2c72e35432eae10c7a74251050c0 Author: Jarod Wilson Date: Thu Oct 7 17:50:34 2010 -0300 [media] IR: add driver for Nuvoton w836x7hg integrated CIR This is a new ir-core pnp driver for the Nuvoton w836x7hg integrated CIR function. The chip is found on at least the ASRock ION 330HT boxes and apparently, on a number of Intel DP55-series motherboards: http://www.asrock.com/nettop/overview.asp?Model=ION%20330HT http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=17685&lang=eng This driver was made possible by a hardware donation from Nuvoton, along with sample code (in the form of an lirc driver) and datasheet, so huge thanks to them for supporting this effort. Note that this driver constitutes a massive rewrite, porting from the lirc interfaces to the ir-core interfaces, and restructuring the driver to look more like Maxim Levitsky's ene_ir driver (as well as generally making it look more like kernel code). There's some work left to be done on this driver, to fully support the range of functionality possible, but receive and IR power-on/wake are both functional (may require setting wake key under another OS atm). The hardware I've got (one of the ASRock boxes) only supports RX, so TX is completely untested as of yet. Certain RX parameters, like sample resolution and RX IRQ sample length trigger level could possibly stand to be made tweakable via modparams or sysfs nodes, but the current values work well enough for me w/an MCE RC6A remote. The original lirc driver carried support for the Windows MCE IR keyboard/mouse device, which I plan to add back generically, in a way that should be usable by any raw IR receiver (or at least by this driver and the mceusb driver). Suspend and resume have also been tested, the power button on my remote can be used to wake the machine, and CIR functionality resumes just fine. Module unload/reload has also been tested, though not extensively or repetitively. Also tested to work with the lirc bridge plugin for userspace decoding. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 72b667ebc1e7ed655ddaa8ff9abf84f8b0925d79 Author: Jean-François Moine Date: Sat Oct 2 04:35:25 2010 -0300 [media] gspca - sonixj: Use the new video control mechanism Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 62833acd7d3328d17d18f595b4b074865bf1b7f2 Author: Jean-François Moine Date: Sat Oct 2 04:27:02 2010 -0300 [media] gspca - ov519: Use the new video control mechanism Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 016f2362278b1f235223b12744585676be2a89a7 Author: Jean-François Moine Date: Sat Oct 2 04:17:38 2010 -0300 [media] gspca - stk014: Use the new video control mechanism Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 6a33091f13d840a2ba020605180a3e591be5c2cd Author: Jean-François Moine Date: Sat Oct 2 04:12:25 2010 -0300 [media] gspca - main: New video control mechanism The new control mechanism uses dynamic control values in the subdriver descriptor. It simplifies standard control handling. Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 27a61c13ec5d9c1da5286fd1697ab5930b916b4f Author: Laurent Pinchart Date: Sat Oct 2 09:04:53 2010 -0300 [media] uvcvideo: Fix uvc_query_v4l2_ctrl() and uvc_xu_ctrl_query() locking Take the ctrl_mutex mutex before touching control information in those functions. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit b5977a58c330ac6afdc64bab9b1dd674f11c0635 Author: Laurent Pinchart Date: Fri Oct 1 15:39:49 2010 -0300 [media] uvcvideo: Fix bogus XU controls information XU control information is supposed to be entirely discoverable using standard UVC queries. As some devices report bogus information (such as reporting a read-only control as being read-write), add a fixup table for XU controls. This table can also be used to selectively disable requests supposed to be supported by all XU controls (GET_MIN, GET_MAX, GET_DEF, GET_RES) but not correctly (or at all) supported by the device. The table currently disables GET_CUR on the Logitech motor control XU pan/tilt controls. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 52c58ad6f95ff60343bf0c517182d5f649ca0403 Author: Laurent Pinchart Date: Wed Sep 29 16:03:03 2010 -0300 [media] uvcvideo: Delay initialization of XU controls XU controls initialization requires querying the device for control information. As some buggy UVC devices will crash when queried repeatedly in a tight loop, delay XU controls initialization until first use. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 071c8bb827c80a68510a1cdb7e8bebbda1a494d6 Author: Laurent Pinchart Date: Wed Sep 29 16:00:08 2010 -0300 [media] uvcvideo: Embed uvc_control_info inside struct uvc_control Now that control information structures are not shared between control instances, embed a uvc_control_info instance inside the uvc_control structure instead of storing a pointer. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 8fb91b33c6bfa3ac5e4ad76920b7bcd7bdbbb6d0 Author: Martin Rubli Date: Wed Sep 8 04:15:23 2010 -0300 [media] uvcvideo: Remove sysadmin requirements for UVCIOC_CTRL_MAP This patch removes the sysadmin requirements for UVCIOC_CTRL_MAP (and the stub implementation of UVCIOC_CTRL_ADD). This requirement no longer makes sense with the new XU control access mechanisms since XU controls can be accessed without adding control mappings first. A maximum number (currently 1024) of control mappings per device is enforced to avoid excess memory consumption caused by careless user space applications. Signed-off-by: Martin Rubli Signed-off-by: Mauro Carvalho Chehab commit ba2fa99668bb9bf03757a020f15bba295d5c0a3e Author: Laurent Pinchart Date: Mon Sep 20 05:53:21 2010 -0300 [media] uvcvideo: Hardcode the index/selector relationship for XU controls Devices advertise XU controls using a bitmask, in which each bit corresponds to a control. The control selector, used to query the control, isn't available in the USB descriptors. All known UVC devices use control selectors equal to the control bit index plus one. Hardcode that relationship in the driver, making the UVCIOC_CTRL_ADD ioctl obsolete. All necessary information about XU controls can be obtained by the driver at enumeration time. The UVCIOC_CTRL_ADD ioctl is still supported for compatibility reasons, but now always returns -EEXIST. Finally, control mappings are now on a per-device basis and no longer global. As this changes the userspace interface, bump the driver version number to 1.0.0 (it was about time). Signed-off-by: Martin Rubli Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 650b95feee353305203724cb2e8b2bc50f6d130a Author: Laurent Pinchart Date: Sat Oct 2 11:06:05 2010 -0300 [media] uvcvideo: Generate discontinuous sequence numbers when frames are lost Increase the sequence number of the v4l2_buffer structure regardless of any buffer states, so that discontinuous sequence numbers allow applications to detect lost video frames. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 9bb7262de9c077ccccb129f47d128edb7af5f92e Author: Laurent Pinchart Date: Sun Oct 3 17:40:29 2010 -0300 [media] uvcvideo: Set bandwidth to at least 1024 with the FIX_BANDWIDTH quirk The bandwidth estimate computed with the FIX_BANDIWDTH quirk is too low for many cameras. Don't use maximum packet sizes lower than 1024 bytes to try and work around the problem. According to measurements done on two different camera models, the value is high enough to get most resolutions working while not preventing two simultaneous VGA streams at 15 fps. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 11fc5baf1dab2d30f03a391cabc5fd1808cfbe29 Author: Laurent Pinchart Date: Mon Sep 20 06:10:10 2010 -0300 [media] uvcvideo: Update e-mail address and copyright notices Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 707dcd903f1805313ec4e79e386aeca8651ebf66 Author: Laurent Pinchart Date: Fri Sep 17 05:37:26 2010 -0300 [media] uvcvideo: Print query name in uvc_query_ctrl() Instead of printing the query hex value in error messages, print its name to make the messages more readable. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit f9d81df9b8d77f238b3053eb645572ab6651cc8d Author: Laurent Pinchart Date: Fri Sep 17 05:24:13 2010 -0300 [media] uvcvideo: Constify the uvc_entity_match_guid arguments They're not modified by the function, make them const. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit fa34168bd8979ef00dbc35dbca6d7564d4e42798 Author: Laurent Pinchart Date: Fri Jul 23 10:06:08 2010 -0300 [media] uvcvideo: Blacklist more controls for Hercules Dualpix Exchange The Hercules Dualpix Exchange (06f8:3005) camera expose an absolute zoom that is not implemented. Blacklist it. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 9c84d89bf13b702ca0e0db5eb3880300c4bd58f4 Author: Hans Verkuil Date: Mon Oct 11 12:36:37 2010 -0300 [media] radio-mr800: fix locking order Don't hold the lock before unregistering the device, since when the device is unregistered the datastruct containing the lock may be freed (if the refcount went to 0). Also fixed the framework documentation that erroneously suggested the wrong locking order as well. Reported-by: David Ellingsworth Signed-off-by: Hans Verkuil Acked-by: David Ellingsworth Signed-off-by: Mauro Carvalho Chehab commit 1cd72781db93c00fbee0bf4aed9e310a1d589738 Author: Antti Palosaari Date: Tue Oct 12 17:22:32 2010 -0300 [media] af9015: move remote controllers to new RC core Use new RC core instead of old legacy RC implementation. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 3cbf5072ee0f38da278d67b7fafcfd6c86f83d36 Author: Antti Palosaari Date: Tue Oct 12 17:19:08 2010 -0300 [media] fix A-Link DTU(m) remote controller PIP button Button is PIP => KEY_NEW http://www.linuxtv.org/wiki/index.php/Remote_Controllers Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit dfd6f7fab5ae962c6d7f9a66bc7ca6a154f83306 Author: Antti Palosaari Date: Tue Oct 12 17:13:08 2010 -0300 [media] fix TerraTec remote controller PIP button Button is PIP => KEY_NEW http://www.linuxtv.org/wiki/index.php/Remote_Controllers Thanks to Cart. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit f8b3d9a00294cd81d6d123d03aa030c2b5454764 Author: Antti Palosaari Date: Tue Oct 12 17:08:10 2010 -0300 [media] fix MSI DIGIVOX mini III remote controller power buttons Fix power button mappings as defined in http://www.linuxtv.org/wiki/index.php/Remote_Controllers Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 20d747b4c44ba1a5c8604a88dc898260a2a3bcf8 Author: Antti Palosaari Date: Mon Oct 11 20:25:44 2010 -0300 [media] Total Media In Hand remote controller Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 860d1e29205860ebab539e41011e765e1bc417a1 Author: Antti Palosaari Date: Mon Oct 11 20:19:23 2010 -0300 [media] rename rc-msi-digivox.c -> rc-msi-digivox-iii.c Rename remote controller driver I added earlier. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit c12d2f746b34baf9e97cae06a8757dc6be387e62 Author: Antti Palosaari Date: Mon Oct 11 19:12:58 2010 -0300 [media] MSI DIGIVOX mini II remote controller Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit ad7fac348470b6b2ac0b4579e3bdb6da5a6166e0 Author: Antti Palosaari Date: Mon Oct 11 18:54:13 2010 -0300 [media] A-Link DTU(m) remote controller Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 3f37fcedb2a104ba9d70a5a9c4c89abe4ef075d6 Author: Antti Palosaari Date: Mon Oct 11 17:31:59 2010 -0300 [media] TwinHan AzureWave AD-TU700(704J) remote controller Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit a7a177877cbfa0de15410a4d00984bdb2aaf4ea6 Author: Antti Palosaari Date: Mon Oct 11 16:08:13 2010 -0300 [media] LeadTek Y04G0051 remote controller keytable Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit ae54a699c3d625ae2b4f87350ecb97ba034a656b Author: Antti Palosaari Date: Mon Oct 11 10:59:48 2010 -0300 [media] AverMedia RM-KS remote controller keytable Imported from af9015.h. Initial keytable was from Jose Alberto Reguero and Felipe Morales Moreno Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit ff533801bd9fa91fc61053900fd40b10132427c0 Author: Antti Palosaari Date: Mon Oct 11 08:24:00 2010 -0300 [media] Digittrade DVB-T USB Stick remote controller keytable Digittrade DVB-T USB Stick remote controller. Imported from af9015.h. Initial keytable was from Alain Kalker Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit a3d34e6ac362dafdb7aa0c3438b105c7822cdcd1 Author: Antti Palosaari Date: Mon Oct 11 07:36:54 2010 -0300 [media] TrekStor DVB-T USB Stick remote controller Imported from af9015.h. Initial keytable was from Marc Schneider Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 76ba9c4d50c66ae43f2694c6ad652ddd4c3be000 Author: Antti Palosaari Date: Mon Oct 11 06:56:46 2010 -0300 [media] MSI DIGIVOX mini III remote controller keytable MSI DIGIVOX mini III remote controller. Uses NEC extended 0x61d6. This remote seems to be same as rc-kworld-315u.c. Anyhow, add new remote since rc-kworld-315u.c lacks NEC extended address byte. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 68617b31b39fdfd7920d55710994755e7259b16b Author: Antti Palosaari Date: Thu Oct 7 21:56:48 2010 -0300 [media] TerraTec remote controller keytable TerraTec slim remote, 7 rows, 4 columns. Uses NEC extended 0x02bd. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 675375d7ae14849d5698c771aff964a0ea2ac404 Author: Antti Palosaari Date: Thu Oct 7 21:46:41 2010 -0300 [media] af9015: remove needless variable set Variable is don't care in that case. No need to set value. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 9a3ecc738258f22b7c09050ca219b37c9eaae6d5 Author: Antti Palosaari Date: Thu Oct 7 21:37:06 2010 -0300 [media] af9015: make checkpatch.pl happy Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 8ccdf1ae9d223d144919788c221c1c559fa56588 Author: Yann E. MORIN Date: Fri Oct 1 16:55:43 2010 -0300 [media] v4l/dvb: add support for AVerMedia AVerTV Red HD+ (A850T) The AVerTV Red HD+ (A850T) is basically the same as the existing AVerTV Volar Black HD (A850), but is specific to the french market. The A850T identifies itself as a A850, but has its own PID. It even suffers from the same EEPROM deficiencies. This is based off a collection of information gathered from the french support forums for Ubuntu, which I tried to properly format into this patch: http://forum.ubuntu-fr.org/viewtopic.php?pid=3322825 Signed-off-by: "Yann E. MORIN" Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 9e35cd222bc913f34b8f69e2b41daa7aa041d79a Author: Antti Palosaari Date: Thu Oct 7 16:34:55 2010 -0300 [media] af9013: cache some reg values to reduce reg reads Demod + tuner specific RF AGC and IF AGC limit values are read from demod memory in every signal strength query. Cache those to reduce I2C traffic. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit edb709b61abd3ba475e59d1ad81aab21ad025db6 Author: Antti Palosaari Date: Wed Oct 6 21:35:20 2010 -0300 [media] af9013: optimize code size Precalculate coefficients register values. This reduces text size around 300 bytes. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 589851d5990f85cce884f831ec70b9aa40b7ad5f Author: Mauro Carvalho Chehab Date: Tue Oct 12 12:11:55 2010 -0300 [media] V4L-DVB: tm6000: Move VBI init to a separate function While here, documment that VBI may need changes, based on video STD, and do some cleanup at device init, to be sure that VBI init will happen all the times, and to remove a duplicated video standard call. Signed-off-by: Mauro Carvalho Chehab commit 421d1b70718232dfbd386f67b135f5e23f569c6e Author: Dmitry Belimov Date: Tue Oct 12 11:39:37 2010 -0300 [media] tm6000: Improve audio standards handling and add SECAM-DK Rework audio. Add SECAM-DK, move SECAM to SECAM-B | SECAM-G. Add some new audio standards and tricks for future, see tm6000_set_audio_std. For SECAM-DK it works. Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov Signed-off-by: Mauro Carvalho Chehab commit 709944eae2505eb4c93c0fff4bd4de18dfd8c570 Author: Mauro Carvalho Chehab Date: Thu Oct 7 02:28:24 2010 -0300 [media] tm6000: add audio standards table The better is to remove the audio init from tm6000-core and add a separate per-standard set of tables. Signed-off-by: Mauro Carvalho Chehab commit 39a96b4cf592e79aefd1b4f2b136c20ec7bf10a7 Author: Mauro Carvalho Chehab Date: Sat Oct 9 15:53:58 2010 -0300 [media] em28xx-audio: fix some locking issues Those locking issues affect tvtime, causing a kernel oops/panic, due to a race condition. Signed-off-by: Mauro Carvalho Chehab commit 643800d5c806cf46b0cd184b595a14cce83224e4 Author: Mauro Carvalho Chehab Date: Sat Oct 9 13:13:35 2010 -0300 [media] cx231xx: use core-assisted lock Instead of doing its own lock, use core-assisted one. As a bonus, it will do the proper unlock during queue wait events. This fixes a long-standing bug where softwares like tvtime would hang if you try to use cx231xx-alsa. Signed-off-by: Mauro Carvalho Chehab commit 0f86158375308804f86d36c7d45aaff1d7dc0d96 Author: Mauro Carvalho Chehab Date: Sat Oct 9 12:04:25 2010 -0300 [media] cx231xx: Colibri carrier offset was wrong for PAL/M Signed-off-by: Mauro Carvalho Chehab commit 1001f90865c2ccd1df7b3a86603c134528e23090 Author: Mauro Carvalho Chehab Date: Thu Oct 7 21:05:52 2010 -0300 [media] cx231xx: remove some unused functions This file came originally from cx23885 driver. Some functions aren't used. Now that they are declared as static, we have those errors: drivers/media/video/cx231xx/cx231xx-417.c:615: warning: ‘mc417_gpio_set’ defined but not used drivers/media/video/cx231xx/cx231xx-417.c:625: warning: ‘mc417_gpio_clear’ defined but not used drivers/media/video/cx231xx/cx231xx-417.c:635: warning: ‘mc417_gpio_enable’ defined but not used As they're not used, just remove them. If needed, they can be restored from the git logs or from the cx23885 driver. Signed-off-by: Mauro Carvalho Chehab commit 82c3ccaa974345b42cabcdb19f81f4776156b1f7 Author: Mauro Carvalho Chehab Date: Thu Oct 7 21:01:31 2010 -0300 [media] cx231xx: declare static functions as such drivers/media/video/cx23885/built-in.o: In function `mc417_memory_write': /home/v4l/v4l/patchwork/drivers/media/video/cx23885/cx23885-417.c:482: multiple definition of `mc417_memory_write' drivers/media/video/cx231xx/built-in.o:/home/v4l/v4l/patchwork/drivers/media/video/cx231xx/cx231xx-417.c:477: first defined here drivers/media/video/cx23885/built-in.o: In function `mc417_gpio_set': /home/v4l/v4l/patchwork/drivers/media/video/cx23885/cx23885-417.c:636: multiple definition of `mc417_gpio_set' drivers/media/video/cx231xx/built-in.o:/home/v4l/v4l/patchwork/drivers/media/video/cx231xx/cx231xx-417.c:615: first defined here drivers/media/video/cx23885/built-in.o: In function `mc417_gpio_enable': /home/v4l/v4l/patchwork/drivers/media/video/cx23885/cx23885-417.c:656: multiple definition of `mc417_gpio_enable' drivers/media/video/cx231xx/built-in.o:/home/v4l/v4l/patchwork/drivers/media/video/cx231xx/cx231xx-417.c:635: first defined here drivers/media/video/cx23885/built-in.o: In function `mc417_memory_read': /home/v4l/v4l/patchwork/drivers/media/video/cx23885/cx23885-417.c:546: multiple definition of `mc417_memory_read' drivers/media/video/cx231xx/built-in.o:/home/v4l/v4l/patchwork/drivers/media/video/cx231xx/cx231xx-417.c:541: first defined here drivers/media/video/cx23885/built-in.o: In function `mc417_gpio_clear': /home/v4l/v4l/patchwork/drivers/media/video/cx23885/cx23885-417.c:646: multiple definition of `mc417_gpio_clear' drivers/media/video/cx231xx/built-in.o:/home/v4l/v4l/patchwork/drivers/media/video/cx231xx/cx231xx-417.c:625: first defined here drivers/media/video/cx23885/built-in.o: In function `mc417_register_read': /home/v4l/v4l/patchwork/drivers/media/video/cx23885/cx23885-417.c:388: multiple definition of `mc417_register_read' drivers/media/video/cx231xx/built-in.o:/home/v4l/v4l/patchwork/drivers/media/video/cx231xx/cx231xx-417.c:401: first defined here drivers/media/video/cx23885/built-in.o: In function `mc417_register_write': /home/v4l/v4l/patchwork/drivers/media/video/cx23885/cx23885-417.c:324: multiple definition of `mc417_register_write' drivers/media/video/cx231xx/built-in.o:/home/v4l/v4l/patchwork/drivers/media/video/cx231xx/cx231xx-417.c:343: first defined here Signed-off-by: Mauro Carvalho Chehab commit bae94dc39e9530842379208c4406512d34dc7ef3 Author: Mauro Carvalho Chehab Date: Thu Oct 7 03:33:00 2010 -0300 [media] cx231xx-417: Fix a gcc warning gcc didn't like to have i++ inside a complex operation: drivers/media/video/cx231xx/cx231xx-417.c: In function ‘cx231xx_load_firmware’: drivers/media/video/cx231xx/cx231xx-417.c:1059: warning: operation on ‘i’ may be undefined drivers/media/video/cx231xx/cx231xx-417.c:1061: warning: operation on ‘i’ may be undefined drivers/media/video/cx231xx/cx231xx-417.c:1063: warning: operation on ‘i’ may be undefined Btw, I agree with gcc, as we're using i and i++ at the same operation and, depending on how optimization may occur, it may produce a wrong code. While here, fix CodingStyle issues on the changed code. Acked-by: Sri Deevi Signed-off-by: Mauro Carvalho Chehab commit 955e6ed843ddddb57cf599584574c505175cd86f Author: Mauro Carvalho Chehab Date: Thu Oct 7 03:23:25 2010 -0300 [media] CodingStyle cleanup at s5h1432 and cx231xx The patches received from the vendor contained a lot of CodingStyle issues. Cleans the style issues reported by checkpatch.pl on those drivers. It is better to do such style fixes when merging a big set of changes than latter. Of course, the better is to receive patches already cleaned ;) Acked-by: Sri Deevi Signed-off-by: Mauro Carvalho Chehab commit 61b04cb24a129f2483d5110e119fc2e365177741 Author: Mauro Carvalho Chehab Date: Mon Sep 27 03:07:22 2010 -0300 [media] cx231xx-audio: fix some locking issues Acked-by: Sri Deevi Signed-off-by: Mauro Carvalho Chehab commit e350d44fed8eb86a7192a579e3687fcd76a4645b Author: Mauro Carvalho Chehab Date: Sun Sep 26 22:58:28 2010 -0300 [media] tda18271: allow restricting max out to 4 bytes By default, tda18271 tries to optimize I2C bus by updating all registers at the same time. Unfortunately, some devices doesn't support it. The current logic has a problem when small_i2c is equal to 8, since there are some transfers using 11 + 1 bytes. Fix the problem by enforcing the max size at the right place, and allows reducing it to max = 3 + 1. Acked-by: Michael Krufky Acked-by: Sri Deevi Signed-off-by: Mauro Carvalho Chehab commit 78bb6df6f2dd390a3480249187a055c385c0618a Author: Mauro Carvalho Chehab Date: Sun Sep 26 20:48:38 2010 -0300 [media] cx231xx: Only change gpio direction when needed Acked-by: Sri Deevi Signed-off-by: Mauro Carvalho Chehab commit a6f6fb9c86aa202cbc04796efe9187b698b9b225 Author: Mauro Carvalho Chehab Date: Sun Sep 26 20:38:24 2010 -0300 [media] cx231xx: better handle the master port enable command Improves the logic, for it to be clearer and to avoid having board-dependent config there. Acked-by: Sri Deevi Signed-off-by: Mauro Carvalho Chehab commit 1a4aa920d0b49af2c0d9bbedb3bb75be4e174218 Author: Mauro Carvalho Chehab Date: Sun Sep 26 20:01:51 2010 -0300 [media] cx231xx: properly use the right tuner i2c address The driver has a field to indicate what bus is used by tuner and by demod. However, this field were never used. On Pixelview, it uses I2C 2 for tuner, instead of I2C 1. drivers/media/video/cx231xx/cx231xx-cards.c Acked-by: Sri Deevi Signed-off-by: Mauro Carvalho Chehab commit 24c80b651b6e938ab8c41ffb2ca9896bca764e10 Author: Mauro Carvalho Chehab Date: Sun Sep 26 18:16:51 2010 -0300 [media] cx231xx: properly implement URB control messages log This allows usage of a tool at v4l-utils tree to parse URB messages and display them to userspace. The tool is available at: http://git.linuxtv.org/v4l-utils.git?a=blob;f=contrib/cx231xx/parse_cx231xx.pl;hb=HEAD Acked-by: Sri Deevi Signed-off-by: Mauro Carvalho Chehab commit 92fbb811a8c433f0f9a2b6ede0875c588b32d85c Author: Mauro Carvalho Chehab Date: Sun Sep 26 00:00:49 2010 -0300 [media] cx231xx: fix Kconfig dependencies ERROR: "cx2341x_mpeg_ctrls" [drivers/media/video/cx231xx/cx231xx.ko] undefined! ERROR: "cx2341x_fill_defaults" [drivers/media/video/cx231xx/cx231xx.ko] undefined! ERROR: "cx2341x_log_status" [drivers/media/video/cx231xx/cx231xx.ko] undefined! ERROR: "cx2341x_ctrl_get_menu" [drivers/media/video/cx231xx/cx231xx.ko] undefined! ERROR: "cx2341x_update" [drivers/media/video/cx231xx/cx231xx.ko] undefined! ERROR: "cx2341x_ctrl_query" [drivers/media/video/cx231xx/cx231xx.ko] undefined! ERROR: "cx2341x_ext_ctrls" [drivers/media/video/cx231xx/cx231xx.ko] undefined! Acked-by: Sri Deevi Signed-off-by: Mauro Carvalho Chehab commit 62c78c967f2e06958ebbc53686802e44bd961636 Author: Mauro Carvalho Chehab Date: Sat Sep 25 23:46:08 2010 -0300 [media] cx231xx: remove a printk warning at -avcore and at -417 drivers/media/video/cx231xx/cx231xx-avcore.c:1608: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’ drivers/media/video/cx231xx/cx231xx-417.c:1047: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’ Signed-off-by: Mauro Carvalho Chehab commit 6af8cc0b2553b7bed060592c07244bd2d75737c9 Author: Devin Heitmueller Date: Thu Aug 19 15:18:32 2010 -0300 [media] cx231xx: Fix vblank/vactive line counts for PAL/SECAM Adjust the vblank and vactive counts so that they don't throw an error in cx25840's set_std call (we did an equivalent change for NTSC when we got the scaler working). Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 222c43520513f308ad50308d134c8ea62d7d5cf1 Author: Devin Heitmueller Date: Thu Aug 19 13:45:56 2010 -0300 [media] cx231xx: properly set active line count for PAL/SECAM The cx231xx_do_mode_ctrl_overrides() function was not touching the vactive line count for PAL/SECAM modes, which in some use cases results in it being left in the chip default state of 480 (NTSC). Explicitly set the values, as is already done for NTSC. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 2ded0fe140738accc4213d08b5605f7805fd18d3 Author: Devin Heitmueller Date: Thu Aug 19 11:09:28 2010 -0300 [media] cx231xx: whitespace cleanup Fix some indentation problems and remove an "if (1)" from the Colibri setup function. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit b6cd9c4a1de9baa1a2dcd5349a8631c86a0cb61b Author: Devin Heitmueller Date: Thu Aug 19 11:05:38 2010 -0300 [media] cx231xx: remove board specific check for Colibri configuration The cx231xx_set_Colibri_For_LowIF() function is only ever called if the tuner has a DIF (see vidioc_s_frequency() in cx231xx-video.c). Hence, we do not need to do a board specific check in this function. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 8aed3f479bd25c8ba452c00585c8c261747f9143 Author: Devin Heitmueller Date: Thu Aug 19 10:55:05 2010 -0300 [media] cx231xx: Make the DIF configuration based on the tuner not the board id The current code was deciding whether a DIF was present based on the board profile. However, this is just another thing for someone to get wrong when adding new boards. Make the decision based on the tuner instead, so that a developer adding new boards only needs to specify which tuner the device has. Of course, the first time somebody adds a board with a tuner other than xc5000 or tda18271, he/she will need to add another line for that tuner. But we provide a friendly message in dmesg to let them know that. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit b522591a4580b54430873784e1b956646d7970d9 Author: Devin Heitmueller Date: Wed Aug 18 19:10:03 2010 -0300 [media] cx231xx: remove i2c ir stubs Nobody is ever going to implement an i2c based IR controller on a bridge that has an onboard universal IR receiver. This stuff was all copied from em28xx, which has old enough versions of the chip that some didn't have onboard IR. Remove the stubs related to i2c based IR (keeping the cx231xx-input code). Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 2b43db320eba4d5ceba5804c38afa21e65f83016 Author: Devin Heitmueller Date: Wed Aug 18 18:09:28 2010 -0300 [media] cx231xx: move printk() line related to 417 initialization Move a printk() message which refers to enabling the cx23417 so that it only shows up on a board that has the cx23417. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 9f51259f4acfffc71dd8f2f2c1472f7caedbdfae Author: Devin Heitmueller Date: Wed Aug 18 18:04:04 2010 -0300 [media] cx231xx: fixup video grabber board profile The video grabber reference design (Veyron) does not have a tuner input, so do not have it defined in the board profile. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 888062188cfbed50bbe14f7e180cdc70336dfc4c Author: Devin Heitmueller Date: Wed Aug 18 17:50:07 2010 -0300 [media] cx231xx: make output mode configurable via the board profile Extend the board profile structure to allow configuration of the output mode. Right now they are all doing VIP 1.1 format, but we have a board that needs ITU656 format (which hasn't been checked in yet). Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 4270c3cac41e248ee339d18e01251989b74a30f1 Author: Devin Heitmueller Date: Sat Jul 31 00:49:01 2010 -0300 [media] cx231xx: Add initial support for Hauppauge USB-Live2 Add initial support for the Hauppauge USBLive 2 (2040:c200). Note that I had to copy a bunch of the case statements used for the Conexant video grabber reference design (which also doesn't have a tuner). This will likely need to be refactored out into the board profile. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 8d4c20c960aa9325bd3b9995f518e1f05c374856 Author: Devin Heitmueller Date: Mon Jul 12 16:52:10 2010 -0300 [media] cx231xx: set correct i2c port for Exeter tuner The tuner is on i2c port 3 just like all the reference designs. Having it improperly set to port #1 causes the tuner initialization to fail when enabling the device. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit c09d6695bd45bb5ac57d7766e2096fe03effd5cc Author: Devin Heitmueller Date: Mon Jul 12 16:50:30 2010 -0300 [media] cx231xx: set standard tune to last known frequency when switching inputs If switching to a tuner input, reset the standard and tune to the last known frequency. We need to do this in particular for this bridge since the tuner gets powered down when captuing on the composite or s-video inputs. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 66d7c4318a5933099b3c57a8551b32f9f35eb741 Author: Devin Heitmueller Date: Mon Jul 12 15:42:34 2010 -0300 [media] cx231xx: Remove hack which puts device into bulk mode Remove a hack which was jammed into s_input to force the device into bulk mode at runtime (an abuse of the API). If this sort of functionality is actually needed (aside from the existing "transfer_mode" modprobe variable), a patch can be submitted which makes use of a private control. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit b88ba6193d5f2469b2b29b52e8cca78a4caa47e0 Author: Devin Heitmueller Date: Mon Jul 12 15:37:00 2010 -0300 [media] cx231xx: Set the power mode instead of using the digital mux GPIOs The Exeter hardware design does not use GPIOs to manage whether its in digital mode or analog mode, but we need to setup the power control properly. For that board, setup power control and remove the mux select call. It is highly likely that this change could be used by other boards as well, which would make power management cleaner (fixing known issues transitioning between analog and digital mode). Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 6e6a2ba9cf67b437c51baacd20d58112ad74d685 Author: Devin Heitmueller Date: Mon Jul 12 15:34:57 2010 -0300 [media] cx231xx: do not call video_mux as part of isoc setup You cannot call the video_mux routine from within the isoc setup, because that code is shared with the digital isoc handler. This was causing the GPIOs and power control to be put into the wrong state when starting up digital mode. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit cc355753e860559744baf5ddb2fcf427433e0346 Author: Devin Heitmueller Date: Mon Jul 12 15:31:56 2010 -0300 [media] cx231xx: Clear avmode bits before setting We need to clear out the field before setting individual bits, or else we end up with a union of whatever was there and what we are trying to set. For example, switching to digital mode ends up being 0x30 instead of 0x10 if we were previously in analog tv mode. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 435b4f7897b7e2f233c313e65ac82bd1d3599c43 Author: Devin Heitmueller Date: Fri Jul 9 13:29:31 2010 -0300 [media] cx231xx: make video scaler work properly Move the responsibility for setting up the horizontal and vertical scalers entirely to the cx25840 driver. The cx231xx-avcore was actually programming garbage into the HSCALE_CTRL and VSCALE_CTRL registers (because of differences in how the em28xx driver worked, which the cx231xx driver was derived from). The net effect is that the scaler now works properly (tested with both PAL and NTSC under mplayer and tvtime). This patch also gets rid of cx25840 errors showing up in dmesg which say "720x480 is not a valid size" (since we now properly setup the size of the active video area). Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit d5a1754d523f5145a6e4ec8fa3a592cc57400467 Author: Devin Heitmueller Date: Thu Jul 8 17:20:04 2010 -0300 [media] cx231xx: reduce log severity for some debug events Change the log level from info to debug for some log events that occur frequently and should never need to be seen in normal operation. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit e3e0aaaafae24658f3d8683c65bc6793adbdfeb8 Author: Devin Heitmueller Date: Thu Jul 8 17:05:30 2010 -0300 [media] cx231xx: remove board specific initialization There is no need for a switch statement here. Use the contents of the board profile to dictate the tuner driver and i2c address. Eventually if a board ever comes around which has a different i2c bus than #1, well that should be a field in the board profile as well. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 99d35a0e4c5f90fedd08b378be880308e3ef8cb3 Author: Devin Heitmueller Date: Thu Jul 8 15:45:13 2010 -0300 [media] cx231xx: Ensure VBI fields are sent in the correct order The current code was sending one videobuf per field (despite having specified V4L2_FIELD_SEQ_TB during setup). As a result, application which used the read() interface would work, except they would sometimes have the fields reversed (depending on the luck of which field the device was on when the application started VBI capture). The net effect was that CC decoding would only work about 50% of the time. Restructure the VBI code a bit so that works like all the other drivers, such that both fields are delivered in a single videobuf buffer, which ensures that they are always received in a predictable order. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit adc0356e9ba59b9b014a58c9e117b10c9ce522d9 Author: Devin Heitmueller Date: Thu Jul 8 13:12:47 2010 -0300 [media] cx231xx: Fix VBI parameters for sampling rate and offset The VBI sampling rate and offset were incorrectly specified, which resulted in CC data not being rendered under zvbi or tvtime. Set the fields correctly. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit dd067a8de79fcc75b3fbd84aba398c9296b47cb2 Author: Devin Heitmueller Date: Wed Jul 7 19:28:23 2010 -0300 [media] cx231xx: fix format string warning Change a %x to a %p since the variable is a pointer Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 2bfcc0611d1b53cf5ce2079b1f1a90bb769a9ea9 Author: Devin Heitmueller Date: Wed Jul 7 19:26:42 2010 -0300 [media] cx231xx-dvb: remove unused variable Get rid of warning about unused variable Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit bda7f4ee67b8a7a6315b906224d01d44d5a433b4 Author: Devin Heitmueller Date: Wed Jul 7 18:25:38 2010 -0300 [media] s5h1432: fix codingstyle issues Run Lindent and fix a few spacing issues. This patch makes no functional change to the driver. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 9dfde5578d1111da96142d16fdfa2039d8992744 Author: Devin Heitmueller Date: Wed Jul 7 11:33:56 2010 -0300 [media] Use smaller i2c transaction size with 18271 tuner Configure the tda18271 to use a smaller transaction size by default, which works around some sort of i2c bug in the Polaris driver (which needs to be debugged). This should be safe for other boards (being in tuner-core means it will be enabled by default), although testing needs to be done. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 761f6cf6425e8024b983ddfa905a4c0002718fbe Author: Devin Heitmueller Date: Tue Jul 6 19:24:19 2010 -0300 [media] cx231xx: fix race condition in DVB initialization Fix case where analog calls come in while the DVB side of the board is still initializing. This patch is actually just an exact port of the same patch made by Mauro to em28xx in hg rev 14762. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit d78148fba47c7c79f3d14db1abe29172b45ab9c8 Author: Devin Heitmueller Date: Tue Jul 6 18:25:19 2010 -0300 [media] cx231xx: add USB ID Hauppauge model 111301 Add a USB ID for model 111301. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 1a50fddefd17ec1359d08cd23c77da42fabbb4a7 Author: Michael Krufky Date: Tue Jul 6 18:23:53 2010 -0300 [media] cx231xx: add support for Hauppauge EXETER Add support for various Hauppauge EXETER designs. Note by DJH: fixed a few minor 'make checkpatch' warnings before commit. Signed-off-by: Michael Krufky Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 64fbf44455260684fa5bfdd3121af3d0ef0b48dd Author: Palash Bandyopadhyay Date: Tue Jul 6 18:12:25 2010 -0300 [media] cx231xx: Added support for Carraera, Shelby, RDx_253S and VIDEO_GRABBER Added support for new cx231xx boards - Carraera, Shelby, RDx_253S and VIDEO_GRABBER. [mchehab@redhat.com: Fix a merge conflict with BKL removal patches] Signed-off-by: Palash Bandyopadhyay Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit 47b75ec14653f12f9fd6fd76bfd5891ba35e1e79 Author: Palash Bandyopadhyay Date: Tue Jul 6 16:40:58 2010 -0300 [media] s5h1432: Add new s5h1432 driver Introduce a new driver for the s5h1432 Signed-off-by: Palash Bandyopadhyay Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab commit e4115bb2841019aa19cc5bcf0f1aa24789d05ccf Author: Ruslan Pisarev Date: Mon Sep 27 10:01:36 2010 -0300 [media] Staging: cx25821: fix braces and space coding style issues Errors found by the checkpatch.pl tool. [mchehab@redhat.com: merged a series of CodingStyle cleanup patches for cx25851. They're all from the same author, and patches the same driver] Signed-off-by: Ruslan Pisarev Cc: Palash Bandyopadhyay Signed-off-by: Mauro Carvalho Chehab commit 01bc79918637432bf6ee7f4ad7fa547c0a14fa6a Author: Ruslan Pisarev Date: Mon Sep 27 10:00:24 2010 -0300 [media] Staging: cx25821: remove spaces after parenthesis fix "ERROR: space prohibited after that open parenthesis '('" This is a patch to the cx25821-audio-upstream.h file that fixed up a space errors found by the checkpatch.pl tools. Signed-off-by: Ruslan Pisarev Signed-off-by: Mauro Carvalho Chehab commit 96eb729a5b9d1c7cff78f5d34dcce5d59c97d7d3 Author: Daniel Drake Date: Fri Sep 24 14:17:47 2010 -0300 [media] cafe_ccic: Implement VIDIOC_ENUM_FRAMEINTERVALS and ENUM_FRAMESIZES This allows GStreamer to pick appropriate framerates and resolutions based on desired capture parameters. Signed-off-by: Daniel Drake Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab commit b0326b7f8de020d70487673123bc93138c091151 Author: Daniel Drake Date: Fri Sep 24 14:17:37 2010 -0300 [media] ov7670: implement VIDIOC_ENUM_FRAMESIZES GStreamer uses this. Signed-off-by: Daniel Drake Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab commit e99dfcf7f68d8dffccfa795d1548790cee2d7395 Author: Jonathan Corbet Date: Fri Sep 24 14:17:29 2010 -0300 [media] ov7670: implement VIDIOC_ENUM_FRAMEINTERVALS Inquiring minds (and gstreamer) want to know. Signed-off-by: Jonathan Corbet Signed-off-by: Daniel Drake Signed-off-by: Mauro Carvalho Chehab commit df2b9b0f9c02689ce3b3f0b5dbc6c9b272bbe1ab Author: Daniel Drake Date: Fri Sep 24 14:17:17 2010 -0300 [media] cafe_ccic: Fix hang in command write processing This patch, which basically reverts 6d77444ac, fixes an occasional on-boot or on-capture hang on the XO-1 laptop. It seems like the cafe hardware is flakier than we thought and that in some cases, the commands get executed but are never reported as completed (even if we substantially increase the delays before reading registers). Reintroduce the 1-second CAFE_SMBUS_TIMEOUT to catch and avoid this strange hardware bug. Signed-off-by: Daniel Drake Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab commit a716e9d75f04ff71fb5e391a7a189b6f1b032bbc Author: Pete Eberlein Date: Thu Sep 23 14:43:41 2010 -0300 [media] go7007: MJPEG buffer overflow The go7007 driver has a potential buffer overflow and pointer corruption bug which causes a crash while capturing MJPEG. The motion detection (MODET) active_map array can be overflowed by JPEG frame data that emulates a MODET start code. The active_map overflow overwrites the active_buf pointer, causing a crash. The JPEG data that emulated MODET start code was being removed from the output, resulting in garbled JPEG frames. Therefore ignore MODET start codes when MODET is not enabled. Signed-off-by: Pete Eberlein Signed-off-by: Mauro Carvalho Chehab commit 94d4350c544066d590eee93582220128e8be8b1c Author: Mauro Carvalho Chehab Date: Thu Oct 7 09:42:43 2010 -0300 [media] staging/tm6000: Fix a warning message I added a code to the driver to force it to produce a warning. This were intended to remind me about a very bad hack. I never found a way to workaround. So, instead of those warnings: drivers/staging/tm6000/tm6000-core.c: In function ‘tm6000_init_analog_mode’: drivers/staging/tm6000/tm6000-core.c:328: warning: ISO C90 forbids mixed declarations and code Let's document the issue and hope if someone with the support of the vendor might fix it. Signed-off-by: Mauro Carvalho Chehab commit 2b361ab6d54ddd4322d730ecbee25ab4b98aa36f Author: Mauro Carvalho Chehab Date: Thu Oct 7 09:36:43 2010 -0300 [media] lirc_igorplugusb: Fix a compilation waring drivers/staging/lirc/lirc_igorplugusb.c: In function ‘usb_remote_probe’: drivers/staging/lirc/lirc_igorplugusb.c:393: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 3 has type ‘unsigned int’ Signed-off-by: Mauro Carvalho Chehab commit 1bede7521dbc12b386f72f26d41933789ccc9d7d Author: Mauro Carvalho Chehab Date: Thu Oct 7 09:31:33 2010 -0300 [media] videobuf-dma-sg: Use min_t(size_t, PAGE_SIZE ..) As pointed by Laurent: I think min_t(size_t, PAGE_SIZE, size) is the preferred way. Thanks-to: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit 22c00854f3db563427527a8f71c20bd3943b13e0 Author: Geert Uytterhoeven Date: Thu Sep 30 16:55:07 2010 -0300 [media] lirc: Make struct file_operations pointer const struct file_operations was made const in the drivers, but not in struct lirc_driver: drivers/staging/lirc/lirc_it87.c:365: warning: initialization discards qualifiers from pointer target type drivers/staging/lirc/lirc_parallel.c:571: warning: initialization discards qualifiers from pointer target type drivers/staging/lirc/lirc_serial.c:1073: warning: initialization discards qualifiers from pointer target type drivers/staging/lirc/lirc_sir.c:482: warning: initialization discards qualifiers from pointer target type drivers/staging/lirc/lirc_zilog.c:1284: warning: assignment discards qualifiers from pointer target type Signed-off-by: Geert Uytterhoeven Acked-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 7242063018c06977dc6825026b3075076e6f227b Author: Mauro Carvalho Chehab Date: Sat Oct 9 16:43:40 2010 -0300 V4L/DVB: Fix a merge conflict that affects unlock_ioctl Signed-off-by: Mauro Carvalho Chehab commit be737a826949760b75c3b46fc86686274965fca1 Author: Mauro Carvalho Chehab Date: Wed Oct 6 22:54:33 2010 -0300 V4L/DVB: tm6000: Fix warnings due to a small array size drivers/staging/tm6000/tm6000-stds.c:101: warning: excess elements in array initializer drivers/staging/tm6000/tm6000-stds.c:101: warning: (near initialization for ‘tv_stds[0].common’) drivers/staging/tm6000/tm6000-stds.c:160: warning: excess elements in array initializer drivers/staging/tm6000/tm6000-stds.c:160: warning: (near initialization for ‘tv_stds[1].common’) drivers/staging/tm6000/tm6000-stds.c:219: warning: excess elements in array initializer drivers/staging/tm6000/tm6000-stds.c:219: warning: (near initialization for ‘tv_stds[2].common’) drivers/staging/tm6000/tm6000-stds.c:336: warning: excess elements in array initializer drivers/staging/tm6000/tm6000-stds.c:336: warning: (near initialization for ‘tv_stds[4].common’) Signed-off-by: Mauro Carvalho Chehab commit d302548a9f88ee417e680ac1e731ef11006b1735 Author: Mauro Carvalho Chehab Date: Wed Oct 6 22:02:58 2010 -0300 V4L/DVB: saa7134-input can't be a module right now There are some symbols at saa7134-input that are used on saa7134 and vice-versa. Due to that, module install fails. So, partially revert commit 9f495cf7d691c99bf7bdcec9f35fcfdad2cf9ae9. Signed-off-by: Mauro Carvalho Chehab commit d026d8284378110c8629a259caaccae4628f1ce0 Author: Mauro Carvalho Chehab Date: Wed Oct 6 21:57:04 2010 -0300 V4L/DVB: videobuf-dma-sg: Fix a warning due to the usage of min(PAGE_SIZE, arg) drivers/media/video/videobuf-dma-sg.c: In function ‘videobuf_pages_to_sg’: drivers/media/video/videobuf-dma-sg.c:119: warning: comparison of distinct pointer types lacks a cast drivers/media/video/videobuf-dma-sg.c:120: warning: comparison of distinct pointer types lacks a cast Signed-off-by: Mauro Carvalho Chehab commit 266815e25522879cf10d4a8677f1589b7b67ee68 Author: Jean-François Moine Date: Fri Oct 1 08:06:51 2010 -0300 V4L/DVB: gspca - sonixj: Have 0c45:6130 handled by sonixj instead of sn9c102 The driver sn9c102 does not know about the sensor mi0360b. Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit a95bd640e7e5642eca52b946f7a27481980154ac Author: Jean-François Moine Date: Fri Oct 1 07:54:30 2010 -0300 V4L/DVB: gspca - sonixj: Bad detection of the end of image The 'end of image' block may be splitted between two ISOC packets. This case was not tested, so, some images could be lost and concatenated to previous one(s), raising 'frame overflow' errors. Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit a067db847335207bd059f5b93bcbbb04910d8a69 Author: Jean-François Moine Date: Fri Oct 1 07:51:24 2010 -0300 V4L/DVB: gspca - sonixj: Add sensor mi0360b Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 294d8b4a969b834f0d02c623eef050a0f3c1e209 Author: Jean-François Moine Date: Fri Oct 1 07:37:15 2010 -0300 V4L/DVB: gspca - mr97310a: Declare static the constant tables Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 2856643e2e18f306227ae1257b63fc713d426dc7 Author: Jean-François Moine Date: Fri Oct 1 07:33:26 2010 -0300 V4L/DVB: gspca - many subdrivers: Handle the buttons when CONFIG_INPUT=m Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 85c55efb0a20c5dac435a6817ffb20fe988b9122 Author: Jarkko Nikula Date: Tue Sep 21 05:49:42 2010 -0300 V4L/DVB: radio-si4713: Release i2c adapter in driver cleanup paths Call to i2c_put_adapter was missing in radio_si4713_pdriver_probe and radio_si4713_pdriver_remove. Signed-off-by: Jarkko Nikula Acked-by: Eduardo Valentin Signed-off-by: Mauro Carvalho Chehab commit 73f4d265f660be3d69ee930bbf55c9ba069be079 Author: Dmitri Belimov Date: Mon Sep 20 17:07:15 2010 -0300 V4L/DVB: tm6000+audio I rework my last patch for audio and now audio works well. This patch can be submited to GIT tree Quality of audio now is good for SECAM-DK. For other standard I set some value from datasheet need some tests. 1. Fix pcm buffer overflow 2. Rework pcm buffer fill method 3. Swap bytes in audio stream 4. Change some registers value for TM6010 5. Change pcm buffer size Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov Signed-off-by: Mauro Carvalho Chehab commit 3dae8b41dc5651f8eb22cf310e8b116480ba25b7 Author: Matthew Garrett Date: Thu Sep 16 15:00:04 2010 -0300 V4L/DVB: uvc: Enable USB autosuspend by default on uvcvideo We've been doing this for a while in Fedora without any complaints. Signed-off-by: Matthew Garrett Acked-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab commit bfc3d57ff75a6ac34cc4b88a4abd6d6d9ef32e73 Author: Mauro Carvalho Chehab Date: Sun Sep 26 00:39:26 2010 -0300 V4L/DVB: tda18271: Add some hint about what tda18217 reg ID returned Instead of doing: [ 82.581639] tda18271 4-0060: creating new instance [ 82.588411] Unknown device detected @ 4-0060, device not supported. [ 82.594695] tda18271_attach: [4-0060|M] error -22 on line 1272 [ 82.600530] tda18271 4-0060: destroying instance Print: [ 468.740392] Unknown device (0) detected @ 4-0060, device not supported. for the error message, to help detecting what's going wrong with the device. This helps to detect when the driver is using the wrong I2C bus (or have the i2g gate switch pointing to the wrong place), on devices like cx231xx that just return 0 on reads to a non-existent i2c device. Reviewed-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab commit 3fd8e647eaa76a1eb5bdd0fcecf49364a089b71d Author: Hans Verkuil Date: Thu Sep 30 09:29:37 2010 -0300 V4L/DVB: v4l2-common: Move v4l2_find_nearest_format from videodev2.h to v4l2-common.h This function is an internal API and belongs in v4l2-common.h, not videodev.h. The return pointer and probe argument should be const as well. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit e3cfd447d01cf723ccda0ad6bfa2e85b73d3d747 Author: Hans Verkuil Date: Thu Sep 30 09:18:52 2010 -0300 V4L/DVB: videobuf: add ext_lock argument to the queue init functions (part 2) Missed a few init functions on non-Intel platforms the first time :-( Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 4bf8b679029127fd84e9bfeb8710723a426e89ad Author: Jean-François Moine Date: Sat Sep 25 06:12:44 2010 -0300 V4L/DVB: gspca - sonixj: Propagate USB errors to higher level Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit cdd15a0a1b69de00f0809bddb0a9ca66a50509ce Author: Jean-François Moine Date: Sat Sep 25 05:36:11 2010 -0300 V4L/DVB: gspca - spca505: Remove the eeprom write commands of NxUltra With a null request byte, these commands prevented the next commands to be executed. Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit a2efdd7b189a1ed0413b058a77c3529fb0758e80 Author: Jean-François Moine Date: Sat Sep 25 03:23:34 2010 -0300 V4L/DVB: gspca - cpia1: Fix compilation warning when gspca debug disabled Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 8129888a7ab2c903562d7a6e49f6884858eb55e8 Author: Jean-François Moine Date: Sat Sep 25 03:20:45 2010 -0300 V4L/DVB: gspca - benq: Remove useless module load/unload messages Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 8dbf3e7c3a89bb398d69e373962a6b447d1ff3d7 Author: Jean-François Moine Date: Sat Sep 25 03:19:33 2010 -0300 V4L/DVB: gspca - benq: Display error messages when gspca debug disabled Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 57bee29d6e8cf721864fa47a18366bee5ff24f21 Author: Guennadi Liakhovetski Date: Tue Aug 17 14:29:51 2010 -0300 V4L/DVB: soc-camera: allow only one video queue per device Multiple user-space application instances can open the same video device, but it only makes sense for one of them to manage the videobuffer queue and set video format of the device. Restrict soc-camera respectively. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 79c6ff93c74e793ccceb464ee3698478c812ce79 Author: Guennadi Liakhovetski Date: Fri Aug 27 13:41:44 2010 -0300 V4L/DVB: V4L2: add a generic function to find the nearest discrete format to the required one Many video drivers implement a fixed set of frame formats and thus face a task of finding the best match for a user-requested format. Implementing this in a generic function has also an advantage, that different drivers with similar supported format sets will select the same format for the user, which improves consistency across drivers. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 45f4d4e8799ff1d7ef72747203935f1f2533743d Author: Michael Grzeschik Date: Fri Aug 27 09:39:05 2010 -0300 V4L/DVB: mx2_camera: add informative camera clock frequency printout Signed-off-by: Michael Grzeschik Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 7c6b73197062180d51e9871982b083a651838992 Author: Baruch Siach Date: Tue Jul 27 09:06:10 2010 -0300 V4L/DVB: mx2_camera: implement forced termination of active buffer for mx25 This allows userspace to terminate a capture without waiting for the current frame to complete. Signed-off-by: Baruch Siach Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 88bfd0bd7f8343c3c2ff65fe4d3fc3aff6ecca7c Author: Baruch Siach Date: Tue Jul 27 09:06:09 2010 -0300 V4L/DVB: mx2_camera: fix comment typo Signed-off-by: Baruch Siach Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 7c3a2066aa99b9e6c725803fd153ee8895219dba Author: Michael Grzeschik Date: Mon Aug 9 11:57:04 2010 -0300 V4L/DVB: mx2_camera: remove emma limitation for RGB565 In the current source status the emma has no limitation for any PIXFMT since the data is parsed raw and unprocessed into the memory. Signed-off-by: Michael Grzeschik Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit ec73365bd47bb7e113f66d0d617676722c9447b1 Author: Michael Grzeschik Date: Tue Aug 3 07:57:41 2010 -0300 V4L/DVB: mt9m111: register cleanup hex to dec bitoffset Signed-off-by: Philipp Wiesner Signed-off-by: Michael Grzeschik Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab commit 873ecd8f8f5eed877df74e54e7c20aee9ef887e5 Author: Hans Verkuil Date: Sun Sep 19 06:00:54 2010 -0300 V4L/DVB: cpia2: remove V4L1 support from this driver V4L1 is deprecated and will be removed completely soon. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 401e5f8d38f539765cf550fa76b684d10975840c Author: Mauro Carvalho Chehab Date: Thu Sep 30 08:41:49 2010 -0300 V4L/DVB: em28xx: fix a compilation warning drivers/media/video/em28xx/em28xx-video.c: In function ‘vidioc_s_register’: drivers/media/video/em28xx/em28xx-video.c:1617: warning: unused variable ‘rc’ Signed-off-by: Mauro Carvalho Chehab commit 361ae54fc7f06a0cee1fb6e6a659a42556b56702 Author: Hans Verkuil Date: Sun Sep 26 08:01:18 2010 -0300 V4L/DVB: radio-mr800: remove BKL Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit d5906dd6564bbf59a27bf1be87743b8794b5468e Author: Hans Verkuil Date: Sun Sep 26 07:45:15 2010 -0300 V4L/DVB: em28xx: the default std was not passed on to the subdevs The initial em28xx std (PAL) was not passed on to the subdevs. This led to these tvp5150 kernel log errors when running v4l2-ctl --all: tvp5150 0-005c: VBI can't be configured without knowing number of lines The reason was that tvp5150 was still using its own internal default: STD_ALL. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 0499a5aa777f8e56e46df362f0bb9d9d116186f9 Author: Hans Verkuil Date: Sun Sep 26 07:34:45 2010 -0300 V4L/DVB: em28xx: remove BKL Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit fedc6c81fa329281ab3e6b156bd7b75da33ed936 Author: Hans Verkuil Date: Mon Sep 20 18:25:55 2010 -0300 V4L/DVB: vivi: remove BKL Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 0e0809a58869e3e422985f868ad5e0da1fc0ba85 Author: Hans Verkuil Date: Sun Sep 26 09:01:26 2010 -0300 V4L/DVB: videobuf: add queue argument to videobuf_waiton() videobuf_waiton() must unlock and relock ext_lock if it has to wait. For that to happen it needs the videobuf_queue pointer. Don't attempt to unlock/relock q->ext_lock unless it was locked in the first place. vb->state has to be protected by a spinlock to be safe. This patch is based on code from Mauro Carvalho Chehab . [mchehab@redhat.com: add extra argument to a few missing places] Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 08bff03ed697a583612b62a6ac566bd5bce98012 Author: Hans Verkuil Date: Mon Sep 20 17:39:46 2010 -0300 V4L/DVB: videobuf: add ext_lock argument to the queue init functions Add an ext_lock argument to the videobuf init functions. This allows drivers to pass the vdev->lock pointer (or any other externally held lock) to videobuf. For now all drivers just pass NULL. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 97397687886aa8ecd4ec603fab9e70e970c11597 Author: Hans Verkuil Date: Mon Sep 20 17:24:30 2010 -0300 V4L/DVB: videobuf: prepare to make locking optional in videobuf Currently videobuf uses the vb_lock mutex to lock its data structures. But this locking will (optionally) move into the v4l2 core, which means that in that case vb_lock shouldn't be used since the external lock is already held. Prepare for this by adding a pointer to such an external mutex and don't lock if that pointer is set. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit ee6869afc922a9849979e49bb3bbcad794872fcb Author: Hans Verkuil Date: Sun Sep 26 08:47:38 2010 -0300 V4L/DVB: v4l2: add core serialization lock Drivers can optionally set a pointer to a mutex in struct video_device. The core will use that to lock before calling open, read, write, unlocked_ioctl, poll, mmap or release. Updated the documentation as well and ensure that v4l2-event knows about the lock: it will unlock it before doing a blocking wait on an event and relock it afterwards. Ensure that the 'video_is_registered' check is done when the lock is held: a typical disconnect will take the lock as well before unregistering the device nodes, so to prevent race conditions the video_is_registered check should also be done with the lock held. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit c29fcff3daafbf46d64a543c1950bbd206ad8c1c Author: Hans Verkuil Date: Sun Sep 26 08:20:13 2010 -0300 V4L/DVB: v4l2-dev: remove get_unmapped_area The get_unmapped_area file operation is unused. Remove. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit d69f27186c16008540166c8017e9d4db2b477588 Author: Hans Verkuil Date: Sun Sep 26 08:16:56 2010 -0300 V4L/DVB: v4l2-dev: after a disconnect any ioctl call will be blocked Until now all fops except release and (unlocked_)ioctl returned an error after the device node was unregistered. Extend this as well to the ioctl fops. There is nothing useful that an application can do here and it complicates the driver code unnecessarily. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 96322b80e29802d2d3087987f6dc4e5aa19df64b Author: Mauro Carvalho Chehab Date: Thu Sep 30 08:26:28 2010 -0300 V4L/DVB: Deprecate stradis driver The driver author seems to not worked on this driver since its conversion from 2.2 to 2.4. Nobody is known to have a stradis hardware for testing. As it still uses V4L1 API, BKL and probably some other old stuff, someone would need to work on it to preserve the driver. Instead of investing time and efforts to keep porting it to work with new API's, it seems better to just drop the driver. So, let's move it to drivers/staging and label it to die at 2.6.38, if nobody cares enough to port parallel port support to gspca or to create a new driver that uses the same gspca-cpia sub-driver. Signed-off-by: Mauro Carvalho Chehab commit 7af97effb3f5a374482179aca490b5038de56fa6 Author: Mauro Carvalho Chehab Date: Thu Sep 30 08:25:42 2010 -0300 V4L/DVB: Deprecate cpia driver (used for parallel port webcams) cpia driver were re-written inside gspca driver, for USB devices. The only functionality that were not migrated is the support for parallel port, as: 1) the developer didn't find any hardware; 2) it doesn't seem important to keep support for a parallel port webcam, as this is an obsolete technology; 3) the changes at gspca for it to work with parallel port would be very large; 4) this driver still uses BKL. So, let's move it to drivers/staging and label it to die at 2.6.38, if nobody cares enough to port parallel port support to gspca or to create a new driver that uses the same gspca-cpia sub-driver. Signed-off-by: Mauro Carvalho Chehab commit da497e30c161963c413e259438b1b54672055b11 Author: Mauro Carvalho Chehab Date: Wed Sep 15 09:23:20 2010 -0300 V4L/DVB: cx88: Remove BKL Signed-off-by: Mauro Carvalho Chehab commit 8979e9d42b87648fd89bcc5d8b3157a8f3f4dfdb Author: Mauro Carvalho Chehab Date: Wed Sep 15 08:22:09 2010 -0300 V4L/DVB: bttv: use unlocked ioctl Signed-off-by: Mauro Carvalho Chehab commit c37db91fd0d42d27141b6c49b768070df29e1c5e Author: Mauro Carvalho Chehab Date: Wed Sep 15 08:18:31 2010 -0300 V4L/DVB: bttv: fix driver lock and remove explicit calls to BKL Signed-off-by: Mauro Carvalho Chehab commit ca960bfe136844952041d2e7dc030a6d4d5c7469 Author: Mauro Carvalho Chehab Date: Sat Sep 18 08:35:57 2010 -0300 V4L/DVB: bttv: Fix mutex unbalance at bttv_poll Don't do double mutex_unlock when reading a stream at bttv_poll. Signed-off-by: Mauro Carvalho Chehab commit 8822f0d60b7cd550465e7d07dbe02084f5476d91 Author: Mauro Carvalho Chehab Date: Tue Sep 14 12:19:51 2010 -0300 V4L/DVB: bttv-driver: document functions using mutex_lock There are a few ancillary static routines used by ioctl functions that takes bttv lock internally. As we'll be adding the same lock for all ioctl's that need, we need to properly document them, to avoid doing double locks Signed-off-by: Mauro Carvalho Chehab commit f2f8e8503e16985a784ed4e3fc5125fd5f86adf6 Author: Mauro Carvalho Chehab Date: Wed Sep 15 08:35:45 2010 -0300 V4L/DVB: radio-si470x: use unlocked ioctl Signed-off-by: Mauro Carvalho Chehab commit cf9b475d5f9b58c23aca76b367f8318743d064e9 Author: Mauro Carvalho Chehab Date: Tue Sep 14 09:56:22 2010 -0300 V4L/DVB: radio-si470x: remove the BKL lock used internally at the driver Signed-off-by: Mauro Carvalho Chehab commit e69e34e9d964b66013dc09a112e6b46def0af1ef Author: Anatolij Gustschin Date: Wed Sep 15 18:31:09 2010 -0300 V4L/DVB: v4l: fsl-viu.c: add slab.h include to fix compile breakage mpc512x kernel configurations without SPI support do not build: drivers/media/video/fsl-viu.c: In function 'viu_open': drivers/media/video/fsl-viu.c:1248: error: implicit declaration of function 'kzalloc' drivers/media/video/fsl-viu.c:1248: warning: assignment makes pointer from integer without a cast drivers/media/video/fsl-viu.c: In function 'viu_release': drivers/media/video/fsl-viu.c:1335: error: implicit declaration of function 'kfree' If CONFIG_SPI is enabled, the slab.h will be included in linux/spi/spi.h which is included by media/v4l2-common.h and the fsl_viu.c driver builds. Let's incluce linux/slab.h directly to fix the build breakage. Signed-off-by: Anatolij Gustschin Signed-off-by: Mauro Carvalho Chehab commit 104a698657148e130ad22c8fc245e9bac317c7c5 Author: Arnd Bergmann Date: Tue Sep 14 16:35:06 2010 -0300 V4L/DVB: dvb/bt8xx: kill the big kernel lock The bt8xx driver only uses the big kernel lock in its dst_ca_ioctl function and never to serialize against other code, so we can trivially replace it with a private mutex. Signed-off-by: Arnd Bergmann Signed-off-by: Mauro Carvalho Chehab commit e4e62b35b8cf008f47ffd240d04bde654d289a46 Author: Arnd Bergmann Date: Tue Sep 14 16:35:07 2010 -0300 V4L/DVB: dvb-core: kill the big kernel lock The dvb core only uses the big kernel lock in the open and ioctl functions, which means it can be replaced with a dvb specific mutex. Fortunately, all the ioctl functions go through dvb_usercopy, so we can move the serialization in there. Signed-off-by: Arnd Bergmann Signed-off-by: Mauro Carvalho Chehab commit 634c6931637093f012df56d489e0b2f7735c235f Author: Joe Perches Date: Mon Sep 13 19:07:14 2010 -0300 V4L/DVB: drivers/media/video/zoran: Don't use initialized char array Just fill the array as necessary and terminate with 0 Signed-off-by: Joe Perches Signed-off-by: Mauro Carvalho Chehab commit 5cac1f665fd18c75c9914ecd3fe808cebfe639f0 Author: Andy Shevchenko Date: Sat Sep 11 14:33:28 2010 -0300 V4L/DVB: media: cx23885: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Mauro Carvalho Chehab commit f89ca6fae204ca0c6eb0bb444290ad8032bf7aa2 Author: Jean Delvare Date: Fri Sep 10 10:36:37 2010 -0300 V4L/DVB: cx22702: Simplify cx22702_set_tps() Code in function cx22702_set_tps() can be slightly simplified. Apparently gcc was smart enough to optimize it anyway, but it can't hurt to make the code more readable. Signed-off-by: Jean Delvare Cc: Steven Toth Signed-off-by: Mauro Carvalho Chehab commit bdc6fad34139fdd5182e05977b4e5dc7ac132675 Author: Jean Delvare Date: Fri Sep 10 10:35:12 2010 -0300 V4L/DVB: cx22702: Some things never change The init sequence never changes so it can be marked const. Likewise, cx22702_ops is a template and can thus be made read-only. Signed-off-by: Jean Delvare Signed-off-by: Mauro Carvalho Chehab commit 27f84acf0be090a4948596696e534b65f0bff980 Author: Jean Delvare Date: Fri Sep 10 10:33:42 2010 -0300 V4L/DVB: cx22702: Avoid duplicating code in branches Calling the same functions in if/else or switch/case branches is inefficient. Refactor the code for a smaller binary and increased readability. Signed-off-by: Jean Delvare Signed-off-by: Mauro Carvalho Chehab commit d6c1ef6faa45b6a07a439719084756c3d136fa90 Author: Mauro Carvalho Chehab Date: Thu Sep 30 00:56:08 2010 -0300 V4L/DVB: Fix Kconfig dependencies for VIDEO_IR warning: (VIDEO_GO7007 && STAGING && !STAGING_EXCLUDE_BUILD && VIDEO_DEV && PCI && I2C && INPUT && BKL && SND || VIDEO_CX25821 && STAGING && !STAGING_EXCLUDE_BUILD && DVB_CORE && VIDEO_DEV && PCI && I2C && INPUT && BKL) selects VIDEO_IR which has unmet direct dependencies (IR_CORE) warning: (VIDEO_CX25821 && STAGING && !STAGING_EXCLUDE_BUILD && DVB_CORE && VIDEO_DEV && PCI && I2C && INPUT && BKL) selects VIDEO_IR which has unmet direct dependencies (IR_CORE) Signed-off-by: Mauro Carvalho Chehab commit 896c1422ed49961bf32c980a57218d8c5f8ce3bd Author: Mauro Carvalho Chehab Date: Wed Sep 29 14:41:52 2010 -0300 V4L/DVB: saa7134: split RC code into a different module This allows the removal of CONFIG_INPUT from saa7134, and helps to create a better Kconfig dependency hierarchy. Signed-off-by: Mauro Carvalho Chehab commit e051f69ae3ef9bd87977d7473bf82e2080e37044 Author: Mauro Carvalho Chehab Date: Wed Sep 29 13:46:23 2010 -0300 V4l/DVB: saa7134: properly mark some functions as static Signed-off-by: Mauro Carvalho Chehab commit 92d474bd298da37957a3dde8705ff3e8bf84e386 Author: Hans Verkuil Date: Wed Sep 15 16:07:08 2010 -0300 V4L/DVB: tvaudio: remove obsolete tda8425 initialization The tda8425 initialization function sets up the inputmap for riva boards. After some digging I discovered that this was for the V4L rivatv driver that is found on sourceforge. This driver hasn't been maintained since the last 5 years and will no longer work with the current v4l framework. So we can safely remove this. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 5b9a6f37ab019456d15f6e2e45ebdb9f4c5a0d25 Author: Jean Delvare Date: Fri Sep 10 10:32:21 2010 -0300 V4L/DVB: cx22702: Drop useless initializations to 0 These variables are either unconditionally set right afterward, or already set to 0 by kzalloc. Signed-off-by: Jean Delvare Signed-off-by: Mauro Carvalho Chehab commit 24764107ec78230304811b11334090f65d1bc352 Author: Jean Delvare Date: Fri Sep 10 14:03:07 2010 -0300 V4L/DVB: cx22702: Clean up register access functions * Avoid temporary variables. * Optimize success paths. * Make error messages consistently verbose. Signed-off-by: Jean Delvare Signed-off-by: Mauro Carvalho Chehab commit a0a4714c404dfd0c28092743dd8bc244fcda357a Author: Thomas Gleixner Date: Tue Sep 7 11:33:27 2010 -0300 V4L/DVB: dvb: Convert "mutex" to semaphore Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Signed-off-by: Mauro Carvalho Chehab commit df1868e4ee605444bbb98505126bdfb3519749af Author: Jarod Wilson Date: Fri Sep 17 18:12:31 2010 -0300 V4L/DVB: IR/lirc_dev: check for valid irctl in unregister path Prompted by Red Hat bugzilla #633023 Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 04292fc0031a28d298dfa03c4cd9ce6abef9b4e0 Author: Jarod Wilson Date: Wed Sep 15 00:28:41 2010 -0300 V4L/DVB: IR/imon: set up mce-only devices w/mce keytable Currently, they get set up with the pad keytable, which they can't actually use at all. Also add another variant of volume scancodes from another 0xffdc device, and properly set up the 0x9e 0xffdc device as an iMON VFD w/MCE proto IR. Based on data and a prior patch from Anders Eriksson on the lirc list. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 693508df9824ecc2bf308a35b58159aa2fecf91f Author: Jarod Wilson Date: Wed Sep 15 15:56:03 2010 -0300 V4L/DVB: IR/imon: protect ictx's kc and last_keycode w/spinlock Lest we get our keycodes wrong... Thus far, in practice, I've not found it to actually matter, but its one of the issues raised in https://bugzilla.kernel.org/show_bug.cgi?id=16351 that wasn't addressed by converting to using native IR keydown/up functions. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit eaf2bcc923ed6c56da8f856e7dc380321433fbda Author: David Härdeman Date: Wed Sep 15 15:42:07 2010 -0300 V4L/DVB: imon: split mouse events to a separate input dev This is a stab at separating the mouse (and front panel/knob) events out to a separate input device. This is necessary in preparation for the next patch which makes the rc-core input dev opaque to rc drivers. I can't verify the correctness of the patch beyond the fact that it compiles without warnings. The driver has resisted most of my attempts at understanding it properly...for example, the double calls to le64_to_cpu() and be64_to_cpu() which are applied in imon_incoming_packet() and imon_panel_key_lookup() would amount to a bswab64() call, irregardless of the cpu endianness, and I think the code wouldn't have worked on a big-endian machine... - Minor alterations to apply with minimal core IR changes - Use timer for imon keys too, since its entirely possible for the receiver to miss release codes (either by way of another key being pressed while the first is held or by the remote pointing away from the recevier when the key is release. yes, I know, its ugly). - Bump driver version number, since this is a fairly significant change (for the much much better). Tested successfully w/an imon knob receiver. Signed-off-by: David Härdeman Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit ee08940531193ccce680ca3c2f17ecc497c4bb67 Author: Jarod Wilson Date: Wed Sep 15 15:31:12 2010 -0300 V4L/DVB: IR: export ir_keyup so imon driver can use it directly The imon driver currently reimplements its own version of ir_keyup (along with key release timer functionality also already present in the core IR code). A follow-up imon patch will make use of ir_keyup and the IR stack's key release code. Trivial extraction from David Härdeman's pending rc-core merge and device interface abstraction patchset to facilitate merging a patch based on his imon input dev split patch ahead of the larger churn, which is slated for post-2.6.37-rc1 (after Dmitry's large keycode patches are merged in mainline). Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit c72ba8e6ae7376d20e509a9a54a2dd45fb483fc2 Author: Mauro Carvalho Chehab Date: Thu Sep 23 01:23:10 2010 -0300 V4L/DVB: saa7134: get rid of I2C_HW_SAA7134 The only reason for keeping I2C_HW_SAA7134 is to allow setting a per-device polling interval. Just move this info to the platform data, allowing drivers to change it per device, where needed. Signed-off-by: Mauro Carvalho Chehab commit 44243fc2ef99948bc9b046901880885616dd5e89 Author: Mauro Carvalho Chehab Date: Thu Sep 23 00:51:44 2010 -0300 V4L/DVB: Remove the usage of I2C_HW_B_CX2388x on ir-kbd-i2c.c Move the cx88 specific initialization for Hauppauge XVR remotes into cx88-input, removing the need for test it inside ir-kbd-i2c. The reference at cx88 for this symbol, at: drivers/media/video/cx88/cx88-i2c.c: core->i2c_adap.id = I2C_HW_B_CX2388x; drivers/media/video/cx88/cx88-vp3054-i2c.c: vp3054_i2c->adap.id = I2C_HW_B_CX2388x; Can't be removed yet, since lirc-i2c still uses it. Signed-off-by: Mauro Carvalho Chehab commit c0c46826274a4da5d9e312d7cfd4ca0806c0a358 Author: Mauro Carvalho Chehab Date: Wed Sep 22 23:24:04 2010 -0300 V4L/DVB: bttv: Move PV951 IR to the right driver Signed-off-by: Mauro Carvalho Chehab commit 8403472f19fea7e7cec7899e998f38b899e59604 Author: Hans Verkuil Date: Fri Sep 17 15:07:28 2010 -0300 V4L/DVB: usbvision: remove BKL from usbvision Removed the BKL from usbvision. There was an initialization bug as well where the i2c bus was registered twice. Although when the BKL was present no oops was generated, I did run into other i2c problems. Now that I protect against duplicate i2c registration that bug is now gone as well. But trying to disconnect the USB cable while someone is still using the device still leads to a crash. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 1f2052539666bd8b43ed26c9b1c3687628c49ecc Author: Hans Verkuil Date: Wed Sep 15 16:36:07 2010 -0300 V4L/DVB: v4l: remove obsolete include/media/v4l2-i2c-drv.h file The include/media/v4l2-i2c-drv.h header was used to be able to compile drivers in the v4l-dvb hg repository for legacy kernels (mainly pre-2.6.26) without creating an #ifdef mess. The hg repository dropped support for kernels < 2.6.26 so we can remove this header. All i2c drivers that used it have now been converted to use proper i2c code. The header was a hack, but it did its job well. So I would call this an honorable removal. :-) Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 8dd4eddaf7b2acbc4b7aa097d0e2b373e519e97b Author: Hans Verkuil Date: Wed Sep 15 16:18:11 2010 -0300 V4L/DVB: tm6000: removed unused i2c adapter ID Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit a40231a67c443c5913366a45e9fc3da20a798790 Author: Hans Verkuil Date: Wed Sep 15 16:16:20 2010 -0300 V4L/DVB: ir-kbd-i2c: remove obsolete I2C_HW_B_CX2341X test Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit a644c072ea2a0ba9bd46430a4710cc3ac7cbdc21 Author: Hans Verkuil Date: Wed Sep 15 16:14:57 2010 -0300 V4L/DVB: saa7146/tuner: remove mxb hack Remove a hack in the tuner code for the mxb board. This hack is no longer needed since the tuner is now probed on its correct address as specified by the mxb driver. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 1edc246c32dafd03979a341eec2528b7cdf5c37d Author: Hans Verkuil Date: Wed Sep 15 15:59:53 2010 -0300 V4L/DVB: v4l: remove unused i2c-id.h headers Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 22ac5f67a6c3626bd2834c9095cbc1e56c5abbce Author: Hans Verkuil Date: Wed Sep 15 15:53:43 2010 -0300 V4L/DVB: s2250: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 978cff6bf3ccb2b4ca37108d64d295f5993e713e Author: Hans Verkuil Date: Wed Sep 15 15:52:25 2010 -0300 V4L/DVB: au8522_decoder: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit da48a8dd32ad09f3ba04b4949ce9d58467859d96 Author: Hans Verkuil Date: Wed Sep 15 15:51:04 2010 -0300 V4L/DVB: ks0127: remove obsolete v4l2_i2c_drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit c9611802b6230bd584b667790cd7844c3414a172 Author: Hans Verkuil Date: Wed Sep 15 15:49:56 2010 -0300 V4L/DVB: adv7170: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit ad62cdfe396a7f51b200db8c85e75805028889a0 Author: Hans Verkuil Date: Wed Sep 15 15:48:49 2010 -0300 V4L/DVB: cx25840: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 96209a202aeb2496e7c67bb6ab1db2b0d6b73768 Author: Hans Verkuil Date: Wed Sep 15 15:47:42 2010 -0300 V4L/DVB: saa7127: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 37a0cfcb47b1f4ab814da37d10771e185b9bd59b Author: Hans Verkuil Date: Wed Sep 15 15:46:37 2010 -0300 V4L/DVB: upd64083: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit c771145bf35b3579d0154ff2a07dbe5cdd27cac3 Author: Hans Verkuil Date: Wed Sep 15 15:45:20 2010 -0300 V4L/DVB: tvp5150: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit c2d999f3161e398dff3dc801629e5c0acecb9785 Author: Hans Verkuil Date: Wed Sep 15 15:44:11 2010 -0300 V4L/DVB: vpx3220: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 50337aceff0f9e2952f67c5945215d884c023d68 Author: Hans Verkuil Date: Wed Sep 15 15:42:38 2010 -0300 V4L/DVB: cs53l32a: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit e2c52ba68029a2e68d8f4970597147844772cb2b Author: Hans Verkuil Date: Wed Sep 15 15:41:23 2010 -0300 V4L/DVB: tea6420: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 5b9f80af0c2678e854725640a15b2c7a386ac185 Author: Hans Verkuil Date: Wed Sep 15 15:40:07 2010 -0300 V4L/DVB: tda7432: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit ff6e5422e4a6db93e05c8d29c1db79540f1f1707 Author: Hans Verkuil Date: Wed Sep 15 15:38:54 2010 -0300 V4L/DVB: saa7110: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit cd5882c531717090e3e3501be0a2c2ebe5ec79c6 Author: Hans Verkuil Date: Wed Sep 15 15:37:46 2010 -0300 V4L/DVB: tda9875: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 02a2098adbe6c1053cbcd81ecb9422f4502da925 Author: Hans Verkuil Date: Wed Sep 15 15:36:23 2010 -0300 V4L/DVB: tuner: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 8e71ff0a48e22e06dfedffb6386cb5e519810013 Author: Hans Verkuil Date: Wed Sep 15 15:33:43 2010 -0300 V4L/DVB: tlv320aic23b: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 3f4172007aaa9fb717f7b7db8edf4b9d73aa4e7f Author: Hans Verkuil Date: Wed Sep 15 15:32:24 2010 -0300 V4L/DVB: bt856: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 534d4f832fc9f5db8ebcdecf0077fa7a17c6782a Author: Hans Verkuil Date: Wed Sep 15 15:31:11 2010 -0300 V4L/DVB: saa7191: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit dc71443f4636a564ea6dbf28c014dcf681e6e554 Author: Hans Verkuil Date: Wed Sep 15 15:29:53 2010 -0300 V4L/DVB: adv7175: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit a5b2c49386fe6a62bf5d2513c99d4e70b10c03db Author: Hans Verkuil Date: Wed Sep 15 15:27:48 2010 -0300 V4L/DVB: wm8775: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 7a004d135c3f15842c113db4864f4315c1c61f1d Author: Hans Verkuil Date: Wed Sep 15 15:26:38 2010 -0300 V4L/DVB: tvaudio: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 0c748826fe55c15b7f9d7566865ca0c85af1f72f Author: Hans Verkuil Date: Wed Sep 15 15:25:23 2010 -0300 V4L/DVB: tea6415c: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 7a49e540186269ca3af8580ecabb69c3318f05e4 Author: Hans Verkuil Date: Wed Sep 15 15:24:03 2010 -0300 V4L/DVB: bt866: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 61a489c8ba33c8ef11e3a8b55c22afe834bdf1d4 Author: Hans Verkuil Date: Wed Sep 15 15:22:34 2010 -0300 V4L/DVB: msp3400: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit dfc5a0161f0b22f542700d911841d6cfc59030f8 Author: Hans Verkuil Date: Wed Sep 15 15:19:42 2010 -0300 V4L/DVB: saa7185: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit d30f60b3d65a9fb5ef644a621e4a9c174dafa2aa Author: Hans Verkuil Date: Wed Sep 15 15:18:29 2010 -0300 V4L/DVB: m52790: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 9f490cd63297f7e7b46ccf2b88928d94ab98f149 Author: Hans Verkuil Date: Wed Sep 15 15:17:19 2010 -0300 V4L/DVB: indycam: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 00cc8db8ee5f29ae8cc49fc16a21bd1f04ca39f7 Author: Hans Verkuil Date: Wed Sep 15 15:15:55 2010 -0300 V4L/DVB: bt819: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 099bd5e3bed01ebf55d9b7a2f8f02557c9f66786 Author: Hans Verkuil Date: Wed Sep 15 15:14:36 2010 -0300 V4L/DVB: saa6752hs: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 440d0516167966efa47ec35e4e3d1120fa07b1c7 Author: Hans Verkuil Date: Wed Sep 15 15:12:49 2010 -0300 V4L/DVB: saa6588: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 962961ef7222f4c83daab24d1b00aee67b8ed5f0 Author: Hans Verkuil Date: Wed Sep 15 15:11:15 2010 -0300 V4L/DVB: upd64031a: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 6ce58bead37b8aa4ba83ff057614341c3a4cd40d Author: Hans Verkuil Date: Wed Sep 15 15:09:38 2010 -0300 V4L/DVB: mt9v011: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit ef2ac770cd69909f6387d8a9e045cb41b46aedcf Author: Hans Verkuil Date: Wed Sep 15 15:08:09 2010 -0300 V4L/DVB: ov7670: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit cb595b516030bb0c356386e6c8de8569f1966e5b Author: Hans Verkuil Date: Wed Sep 15 15:06:40 2010 -0300 V4L/DVB: tda9840: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit aac235384de6566bba363c3988c1a214d7121627 Author: Hans Verkuil Date: Wed Sep 15 15:04:55 2010 -0300 V4L/DVB: saa7115: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 720d916e64a1bd70948b0a7e97ba0fff0e2f43d1 Author: Hans Verkuil Date: Wed Sep 15 15:01:48 2010 -0300 V4L/DVB: saa717x: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 51e868466d60e0aea1b5d1d822bf30fdcde24dd4 Author: Hans Verkuil Date: Wed Sep 15 15:00:07 2010 -0300 V4L/DVB: cs5345: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 49facfaaf5caa8390ab6037ed1994b793f04eb66 Author: Hans Verkuil Date: Wed Sep 15 14:58:16 2010 -0300 V4L/DVB: wm8739: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 1f3526673f71124b16cc619adee8c7a0c1373f26 Author: Hans Verkuil Date: Wed Sep 15 14:56:12 2010 -0300 V4L/DVB: vp27smpx: remove obsolete v4l2-i2c-drv.h header Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 7074f407198c79498795bb0fd04c2df36ab97a19 Author: Hans Verkuil Date: Wed Sep 15 14:49:07 2010 -0300 V4L/DVB: pwc: remove BKL Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 479567ce3af7b99d645a3c53b8ca2fc65e46efdc Author: Hans Verkuil Date: Sun Sep 12 17:05:11 2010 -0300 V4L/DVB: pwc: fully convert driver to V4L2 Remove the V4L1 API from this driver, making it fully V4L2. Also fix a bug where the /dev/videoX device was created too early, which led to initialization problems of the camera, making it unable to capture video. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit a1de2e4b72f27b906cb2eea3003fd62377dbf5ea Author: Hans Verkuil Date: Sat Sep 11 07:05:47 2010 -0300 V4L/DVB: V4L Doc: removed duplicate link Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 6756207a71a0f976ab027186d0966a2162aaf922 Author: Hans Verkuil Date: Sat Sep 11 11:38:51 2010 -0300 V4L/DVB: V4L Doc: correct the documentation for VIDIOC_QUERYMENU The VIDIOC_QUERYMENU documentation was not correct. EINVAL can be returned if the driver does not support some of the menu items. I.e. in a list of MPEG bitrates a driver generally supports only a subset of these. This behavior has been in place for years, but was never properly documented. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 0827d0664dfa046dc9359c1a45f613d916431ed7 Author: Hans Verkuil Date: Sat Sep 11 08:39:47 2010 -0300 V4L/DVB: V4L Doc: document V4L2_CAP_RDS_OUTPUT capability We forgot to add this capability to the QUERYCAP documentation. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 5e765c6e445da16527a04aa3931f21e5deb476d8 Author: Hans Verkuil Date: Sat Sep 11 08:36:55 2010 -0300 V4L/DVB: V4L Doc: fix DocBook syntax errors Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 47399d98e79c7fd4fac0e2457db26f3842ecb990 Author: Andy Walls Date: Sun Sep 12 14:45:21 2010 -0300 V4L/DVB: gspca_cpia1: Disable illuminator controls if not an Intel Play QX3 The illuminator controls should only be available to the user for the Intel Play QX3 microscope. The implementation to inhibit the controls is intended to be consistent with the other gspca driver implementations. Signed-off-by: Andy Walls Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit c67be3ccd7616ed828586d5d3f4b48b438c0a433 Author: Andy Walls Date: Sun Sep 12 14:45:18 2010 -0300 V4L/DVB: gspca_cpia1: Restore QX3 illuminators' state on resume Turn the lights of the QX3 on (or off) as needed when resuming and at module load. Signed-off-by: Andy Walls Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 51513353ec13a1318df31aaa4af4a6d196868904 Author: Andy Walls Date: Sun Sep 12 14:45:14 2010 -0300 V4L/DVB: gspca_cpia1: Add basic v4l2 illuminator controls for the Intel Play QX3 This patch adds basic V4L2 controls for the illuminators on the Intel Play QX3 microscope. Signed-off-by: Andy Walls Acked-by: Hans de Goede Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 008d35f2f5256751a18f1f4aea79e3caf140098d Author: Jean-François Moine Date: Mon Sep 13 07:04:49 2010 -0300 V4L/DVB: v4l2: Add illuminator controls Some media devices (microscopes) may have one or many illuminators. This patch makes them controlable by the applications. Acked-by: Hans Verkuil Acked-by: Andy Walls Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 2a3b501ffd28b2be355f558479543028ccdead48 Author: Alexander Goncharov Date: Mon Sep 13 06:58:16 2010 -0300 V4L/DVB: gspca - sonixj: Add webcam 0c45:612b Signed-off-by: Alexander Goncharov Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 860e7f474cb5bd9a691ebde302ac094093a1f5a7 Author: Jean-François Moine Date: Mon Sep 13 06:40:17 2010 -0300 V4L/DVB: gspca - sonixj: Webcam 0c45:6102 added Tested-by: Simon Danner Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 9b1d3caea9a531595f7524be94f0bb25897b887e Author: Jean-François Moine Date: Mon Sep 13 05:26:35 2010 -0300 V4L/DVB: gspca - sn9c20x: Better image sizes When compressed, the images take less than one byte per pixel. Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit b1e4665b667bcec77d62742fa9238aeac3cb4232 Author: Jean-François Moine Date: Mon Sep 13 05:25:41 2010 -0300 V4L/DVB: gspca - sn9c20x: Fix the number of bytes per line Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 0b656321f338a2e5e3d9a9bdce959a2d76857967 Author: Jean-François Moine Date: Mon Sep 13 05:19:58 2010 -0300 V4L/DVB: gspca - all modules: Display error messages when gspca debug disabled Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit 548264375b1c0d51b418bf7ab6d2fec647307ab7 Author: Jean-François Moine Date: Mon Sep 13 04:53:03 2010 -0300 V4L/DVB: gspca - all modules: Remove useless module load/unload messages Signed-off-by: Jean-François Moine Signed-off-by: Mauro Carvalho Chehab commit ed19a5db7826a150f0746123b23ac5cb0b2621f8 Author: Antti Palosaari Date: Sun Sep 12 21:02:55 2010 -0300 V4L/DVB: af9015: use value from config instead hardcoded one Replace 2nd demod default address 0x3a with value got from eeprom config. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 9b22edd4b0f3520bc1279338d52dc63e76852bef Author: Antti Palosaari Date: Sun Sep 12 20:48:58 2010 -0300 V4L/DVB: af9013: optimize code size Optimize af9013_set_coeff(). Move configuration values to own table. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit d3bb73de97a9685bb150f81017d7e184fdb18451 Author: Antti Palosaari Date: Sun Sep 12 13:31:56 2010 -0300 V4L/DVB: af9015: reimplement remote controller Remove HID and polling via firmware API. Implement direct access to remote codes via memory read and write. HID and polling via firmware api never worked 100% well and there was also some limitations which tied used remote and device together. After that it is possible to use upcoming kernel remote controller core. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 2ec01b41e3e06bd22d8f6c7f330605b554e9b121 Author: Antti Palosaari Date: Thu Sep 9 17:38:28 2010 -0300 V4L/DVB: af9015: map TerraTec Cinergy T Stick Dual RC remote to device ID Detect TerraTec Cinergy T Stick Dual RC remote config using device USB ID instead of device EEPROM hash. It was found that there is devices with slightly different EEPROM content... Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 86dcab644575693fac3552ba4a0d20b88ad43656 Author: Antti Palosaari Date: Thu Sep 9 17:05:10 2010 -0300 V4L/DVB: af9015: add remote support for TerraTec Cinergy T Stick Dual RC Thanks to the TerraTec! Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit ab07fdd69116d877d4fdb6a8f6355a02e65e6be0 Author: Antti Palosaari Date: Thu Sep 9 14:59:10 2010 -0300 V4L/DVB: af9015: add support for TerraTec Cinergy T Stick Dual RC Add USB ID [0ccd:0099] for TerraTec Cinergy T Stick Dual RC. Device is based for AF9015 + AF9013 + 2 x MxL5007T chips. Thanks to the TerraTec! Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit a4f31d0da5c6807a0f5dfc7d285d8d4bdaa1e36e Author: Antti Palosaari Date: Thu Sep 9 14:53:59 2010 -0300 V4L/DVB: af9013: add support for MaxLinear MxL5007T tuner Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 76391a71543ba0c45e634b31cc33cef1e1be8e79 Author: Antti Palosaari Date: Thu Sep 9 12:10:50 2010 -0300 V4L/DVB: af9015: fix bug introduced by commit 490ade7e3f4474f626a8f5d778ead4e599b94fbc Commit 490ade7e3f4474f626a8f5d778ead4e599b94fbc merge conflict fix leads situation where last nine device definitions were overridden mistakenly. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit a44b91d9fe02a96b8d53863a1653bd4c14a31ea7 Author: Antti Palosaari Date: Thu Sep 9 12:05:31 2010 -0300 V4L/DVB: af9015: simple comment update Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 11382f3d8a2d54d1db0aa6a768cd94214536c1b2 Author: Mats Randgaard Date: Tue Sep 7 11:28:23 2010 -0300 V4L/DVB: vpif_cap: don't ignore return code of videobuf_poll_stream() Signed-off-by: Mats Randgaard Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 1f8766b4e3f06c2206e7ff48da72d2886672759a Author: Mats Randgaard Date: Mon Aug 30 10:30:37 2010 -0300 V4L/DVB: vpif_cap/disp: Replaced kmalloc with kzalloc Signed-off-by: Mats Randgaard Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit ffa1b391c61b9f9a2b5d14859bfdd9259fc6c4da Author: Mats Randgaard Date: Mon Aug 30 10:30:36 2010 -0300 V4L/DVB: vpif_cap/disp: Removed section mismatch warning Signed-off-by: Mats Randgaard Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 87660547def9d343dd5d21644b7a79a15a9b83c1 Author: Mauro Carvalho Chehab Date: Sat Sep 4 00:53:30 2010 -0300 devices.txt: Remove the old obsolete vtx device nodes Teletext interface is provided via VBI interface for a long time. There's no need nor is there any known program using those old /dev/vtx nodes. Signed-off-by: Mauro Carvalho Chehab commit f44026dbe42d38f2e2dfdc7bf35cafc7e44794d7 Author: Hans Verkuil Date: Fri Aug 6 12:52:43 2010 -0300 V4L/DVB: Documentation: update now that the vtx/videotext API has been removed Remove all references to /dev/vtx in the documentation, except for some historical comments in dev-teletext.xml. Documentation/devices.txt is not updated, this will go through Alan Cox who maintains this file. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 226c0eeaea6732c686a5f4e06f25e5850cd5dd61 Author: Hans Verkuil Date: Fri Aug 6 12:48:00 2010 -0300 V4L/DVB: videotext: remove this obsolete API Remove the vtx (aka videotext aka teletext) API from the v4l2 core. This API was scheduled for removal in kernel 2.6.35. The vtx device nodes have been superseded by vbi device nodes for many years. No applications exist that use the vtx support. Of the two i2c drivers that actually support this API the saa5249 has been impossible to use for a year now and no known hardware that supports this device exists. The saa5246a is theoretically supported by the old mxb boards, but it never actually worked. In summary: there is no hardware that can use this API and there are no applications actually implementing this API. The vtx support still reserves minors 192-223 and we would really like to reuse those for upcoming new functionality. In the unlikely event that new hardware appears that wants to use the functionality provided by the vtx API, then that functionality should be build around the sliced VBI API instead. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 563711f16f5d5ee8b639a3d6ee4cef199617009c Author: Hans Verkuil Date: Fri Aug 6 11:08:54 2010 -0300 V4L/DVB: saa5246a/saa5249: Remove obsolete teletext drivers These old i2c teletext drivers are not supported by any hardware and cannot be tested anymore. Note that while the mxb board seemingly used the saa5246a driver, in reality this teletext driver never worked. These drivers are removed as part of the vtx feature removal, originally scheduled for 2.6.35. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit be96624a38e6de619603b5741a39e715eb44227c Author: Malcolm Priestley Date: Sat Aug 28 18:18:45 2010 -0300 V4L/DVB: STV0288 Incorrect bit sample for Vitterbi status bit 3(LK) indicates that the Vstatus is locked. Currently using bit 7(CF) which is usually present, results in early aborted search in FEC_AUTO and missing channels. Signed-off-by: Malcolm Priestley Cc: Igor M. Liplianin Signed-off-by: Mauro Carvalho Chehab commit d2f918bba7a482bee18cc0ede7791f7d846dd5d0 Author: Malcolm Priestley Date: Thu Sep 2 17:29:30 2010 -0300 V4L/DVB: Support or LME2510(C) DM04/QQBOX USB DVB-S BOXES DM04/QQBOX DVB-S USB BOX with LME2510C+SHARP:BS2F7HZ7395 or LME2510+LGTDQT-P001F tuner. [mchehab@redhat.com: Fix merge conflicts/compilation and CodingStyle issues] Signed-off-by: Malcolm Priestley Signed-off-by: Mauro Carvalho Chehab commit 9d10f3d7e73d3428555da97134fc597710a55f39 Author: Mauro Carvalho Chehab Date: Wed Sep 8 12:51:56 2010 -0300 V4L/DVB: ix2505v: make scripts/checkpatch.pl happy WARNING: please, no space before tabs + * ^IPOR = Power on Reset (VCC H=<2.2v L=>2.2v)$ WARNING: unnecessary whitespace before a quoted newline + deb_info("Frq=%d x=%d N=%d A=%d \n", frequency, x, N, A); WARNING: please, no space before tabs +^Ielse ^I^I/*frequency up to 2150000*/$ WARNING: unnecessary whitespace before a quoted newline + deb_info("Data 0=[%x%x%x%x] \n", data[0], data[1], data[2], data[3]); WARNING: unnecessary whitespace before a quoted newline + deb_info("Data 2=[%x%x] \n", data[2], data[3]); Cc: Malcolm Priestley Signed-off-by: Mauro Carvalho Chehab commit 1ae2c5893d091bdfa382cbcfa3e09461f3a6c884 Author: Malcolm Priestley Date: Sat Aug 28 18:07:37 2010 -0300 V4L/DVB: Support for Sharp IX2505V (marked B0017) DVB-S silicon tuner Tuner used in Sharp BS2F7VZ7395 dvbs module. When ix2505v tuner is attached to stv0288 form this module. Signed-off-by: Malcolm Priestley Signed-off-by: Mauro Carvalho Chehab commit f78729b40a01a72b189a0618e1cf58facb68c129 Author: Julia Lawall Date: Sat Aug 28 12:41:05 2010 -0300 V4L/DVB: drivers/media/dvb/siano: Remove double test The same expression is tested twice and the result is the same each time. The sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @expression@ expression E; @@ ( * E || ... || E | * E && ... && E ) // Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab commit 6b81bef8cde141d8d8172a35633af27e17cf487a Author: Julia Lawall Date: Fri Aug 27 02:57:18 2010 -0300 V4L/DVB: drivers/media/video/em28xx: Remove potential NULL dereference If the NULL test is necessary, the initialization involving a dereference of the tested value should be moved after the NULL test. The sematic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ type T; expression E; identifier i,fld; statement S; @@ - T i = E->fld; + T i; ... when != E when != i if (E == NULL) S + i = E->fld; // Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab commit d7ef485daa657456cad4994873148377b3561b8b Author: Stefan Lippers-Hollmann Date: Wed Aug 25 10:08:48 2010 -0300 V4L/DVB: af9015: add USB ID for Terratec Cinergy T Stick RC MKII Adding the USB ID for my TerraTec Electronic GmbH Cinergy T RC MKII [0ccd:0097] and hooking it up into af9015, on top of your new NXP TDA18218 patches, makes it work for me. Just the shipped IR remote control doesn't seem to create keycode events yet (tested with different remote=%d parameters), are there any hints to add support for that? [ 2.250022] usb 1-10: new high speed USB device using ehci_hcd and address 5 [ 2.369287] usb 1-10: New USB device found, idVendor=0ccd, idProduct=0097 [ 2.369290] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2.369293] usb 1-10: Product: USB2.0 DVB-T TV Stick [ 2.369294] usb 1-10: Manufacturer: NEWMI [ 2.369296] usb 1-10: SerialNumber: 010101010600001 [ 2.534023] usbcore: registered new interface driver hiddev [ 2.537235] input: NEWMI USB2.0 DVB-T TV Stick as /devices/pci0000:00/0000:00:02.1/usb1/1-10/1-10:1.1/input/input0 [ 2.537323] generic-usb 0003:0CCD:0097.0001: input,hidraw0: USB HID v1.01 Keyboard [NEWMI USB2.0 DVB-T TV Stick] on usb-0000:00:02.1-10/input1 [ 2.537349] usbcore: registered new interface driver usbhid [ 2.537351] usbhid: USB HID core driver [ 3.263177] generic-usb 0003:04D9:1603.0002: input,hidraw1: USB HID v1.10 Keyboard [ USB Keyboard] on usb-0000:00:02.0-8.1/input0 [ 3.286946] generic-usb 0003:04D9:1603.0003: input,hidraw2: USB HID v1.10 Device [ USB Keyboard] on usb-0000:00:02.0-8.1/input1 [ 3.467136] generic-usb 0003:046D:C050.0004: input,hidraw3: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:02.0-8.2/input0 [ 3.660890] generic-usb 0003:10D5:000D.0005: input,hidraw4: USB HID v1.10 Keyboard [No brand SP02-A1] on usb-0000:00:02.0-8.3/input0 [ 5.567632] dvb-usb: found a 'TerraTec Cinergy T Stick RC' in cold state, will try to load a firmware [ 5.693497] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw' [ 5.773109] dvb-usb: found a 'TerraTec Cinergy T Stick RC' in warm state. [ 5.773168] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer. [ 5.774290] DVB: registering new adapter (TerraTec Cinergy T Stick RC) [ 6.007696] af9013: firmware version:5.1.0 [ 6.010843] DVB: registering adapter 0 frontend 0 (Afatech AF9013 DVB-T)... [ 6.032697] tda18218: NXP TDA18218HN successfully identified. [ 6.034442] dvb-usb: TerraTec Cinergy T Stick RC successfully initialized and connected. [ 6.040612] usbcore: registered new interface driver dvb_usb_af9015 [mchehab@redhat.com: Fix merge conflict with another board addition] Signed-off-by: Stefan Lippers-Hollmann Acked-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 2e4e98e788d8fbe30892bee3375067a4937155da Author: lawrence rust Date: Wed Aug 25 09:50:20 2010 -0300 V4L/DVB: drivers/media: Make static data tables and strings const Making static data const avoids allocation of additional r/w memory and reduces initialisation time. It also provides some additional opportunities for compiler optimisations. Signed-off-by: Lawrence Rust Signed-off-by: Mauro Carvalho Chehab commit f71d76812e6cd3af8e293eeb8eb465c208e771cc Author: Mauro Carvalho Chehab Date: Wed Sep 8 10:18:18 2010 -0300 V4L/DVB: cx25821: fix gcc warning when compiled with allyesconfig drivers/staging/cx25821/cx25821-alsa.c:632: warning: ‘cx25821_audio_pci_tbl’ defined but not used Signed-off-by: Mauro Carvalho Chehab commit b6b85ff87b6232ba89fba303b7b7b93c893d3523 Author: Mauro Carvalho Chehab Date: Wed Sep 8 10:14:51 2010 -0300 V4L/DVB: cx88: Fix some gcc warnings drivers/media/video/cx88/cx88-dsp.c: In function ‘detect_a2_a2m_eiaj’: drivers/media/video/cx88/cx88-dsp.c:158: warning: ‘carrier_freq’ may be used uninitialized in this function drivers/media/video/cx88/cx88-dsp.c:158: warning: ‘stereo_freq’ may be used uninitialized in this function drivers/media/video/cx88/cx88-dsp.c:158: warning: ‘dual_freq’ may be used uninitialized in this function Signed-off-by: Mauro Carvalho Chehab commit 692d5522646fdf432329efbe5092dc9c5ca83e85 Author: Laurent Pinchart Date: Fri Jul 30 17:24:55 2010 -0300 V4L/DVB: v4l: Add a v4l2_subdev host private data field The existing priv field stores subdev private data owned by the subdev driver. Host (bridge) drivers might need to store per-subdev host-specific data, such as a pointer to platform data. Add a v4l2_subdev host_priv field to store host-specific data, and rename the existing priv field to dev_priv. Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit c4ce6d14b92aa1772c9d84d068d1b45114fe73cc Author: Laurent Pinchart Date: Fri Jul 30 17:24:54 2010 -0300 V4L/DVB: v4l: Use v4l2_get_subdevdata instead of accessing v4l2_subdev::priv Replace direct access to the v4l2_subdev priv field with the inline v4l2_get_subdevdata method. Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 401ad27867781c327855025d4becd5bc30fe7e42 Author: Stefan Ringel Date: Tue Aug 24 16:36:09 2010 -0300 V4L/DVB: tm6000: bugfix param string Signed-off-by: Stefan Ringel Signed-off-by: Mauro Carvalho Chehab commit d06b49ed18736d32530067e2cad5a18d3482a2b9 Author: lawrence rust Date: Mon Aug 23 07:49:58 2010 -0300 V4L/DVB: cx88: convert core->tvaudio into an enum Using an enum and removing the default case from switch statements accessing the value enables the compiler to emit a warning (enabled with -Wall) when an audio mode is not handled. This highlights an omission in the function cx88_dsp_detect_stereo_sap() (in cx88-dsp.c) not handling WW_EIAJ and WW_M. Signed-off-by: Lawrence Rust Signed-off-by: Mauro Carvalho Chehab commit 3053814c1cbedb9d2802240f414588009706c74d Author: Julia Lawall Date: Mon Aug 16 13:27:47 2010 -0300 V4L/DVB: drivers/media/video: Use available error codes Error codes are stored in rc, but the return value is always 0. Return rc instead. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ local idexpression x; constant C; @@ if (...) { ... x = -C ... when != x ( return <+...x...+>; | return NULL; | return; | * return ...; ) } // Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab commit f27709792912d30a4f1f5ae98fd23aab2d4483b4 Author: Julia Lawall Date: Mon Aug 16 13:26:13 2010 -0300 V4L/DVB: drivers/media: Use available error codes In each case, error codes are stored in rc, but the return value is always 0. Return rc instead. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ local idexpression x; constant C; @@ if (...) { ... x = -C ... when != x ( return <+...x...+>; | return NULL; | return; | * return ...; ) } // Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab commit 46a7a3cc9fe11f7a8d58fee6e7d5849298bc0212 Author: Julia Lawall Date: Mon Aug 16 13:25:39 2010 -0300 V4L/DVB: drivers/media/video/zoran: Use available error codes Error codes are stored in res, but the return value is always 0. Return res instead. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ local idexpression x; constant C; @@ if (...) { ... x = -C ... when != x ( return <+...x...+>; | return NULL; | return; | * return ...; ) } // Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab commit 473d80247332b818caf6d25ed3eaaa10d3dfcfb7 Author: Julia Lawall Date: Thu Aug 5 17:22:44 2010 -0300 V4L/DVB: drivers/media/video: Adjust confusing if indentation In cx23885/cx23885-video.c, cx88/cx88-video.c, davinci/vpif_capture.c, and davinci/vpif_display.c, group the aligned code into a single if branch. In saa7134/saa7134-video.c, outdent the code following the if. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r disable braces4@ position p1,p2; statement S1,S2; @@ ( if (...) { ... } | if (...) S1@p1 S2@p2 ) @script:python@ p1 << r.p1; p2 << r.p2; @@ if (p1[0].column == p2[0].column): cocci.print_main("branch",p1) cocci.print_secs("after",p2) // Signed-off-by: Julia Lawall Signed-off-by: Mauro Carvalho Chehab commit 6c2d4dd139de417d18151b98c157aa35387038a3 Author: Guennadi Liakhovetski Date: Thu Aug 12 17:16:00 2010 -0300 V4L/DVB: V4L2: avoid name conflicts in macros "sd" and "err" are too common names to be used in macros for local variables. Prefix them with an underscore to avoid name clashing. [mchehab@redhat.com: whitespace cleanups] Signed-off-by: Guennadi Liakhovetski Reviewed-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab commit 7a569f524dd36806b995c844f29e28ff40c444b2 Author: Jarod Wilson Date: Sat Aug 7 13:31:40 2010 -0300 V4L/DVB: IR/streamzap: functional in-kernel decoding This patch makes in-kernel decoding with the stock Streamzap PC Remote work out of the box. There are quite a few things going on in this patch, all related to getting this working: 1) I had to enable reporting of a long space at the end of each signal, or I had weird buffering and keybounce issues. 2) The keymap has been reworked slightly to match actual decoded values, the first edition was missing the pre-data bits present in the lirc config file for this remote. 3) There's a whole new decoder included, specifically for the not-quite-RC5 15-bit protocol variant used by the Streamzap PC Remote. The decoder, while usable with other recievers (tested with an mceusb receiver), will only be loaded by the streamzap driver, as its likely not of use in almost all other situations. This can be revisited if/when all keytable loading (and disabling of unneeded protocol decoder engines) is moved to userspace, but for now, I think this makes the most sense. Note that I did try to enable handling the streamzap RC5-ish protocol in the current RC5 decoder, but there's no particularly easy way to tell if its 14-bit RC5 or 15-bit Streamzap until we see bit 14, and even then, in testing an attempted decoder merge, only 2/3 of the keys were properly recognized as being the 15-bit variant and decoded correctly, the rest were close enough to compliant with 14-bit that they were decoded as such (but they have overlap with one another, and thus we can't just shrug and use the 14-bit decoded values). Also of note in this patch is the removal of the streamzap driver's internal delay buffer. Per discussion w/Christoph, it shouldn't be needed by lirc any longer anyway, and it doesn't seem to make any difference to the in-kernel decoder engine. That being the case, I'm yanking it all out, as it greatly simplifies the driver code. Signed-off-by: Jarod Wilson Signed-off-by: Mauro Carvalho Chehab commit 516c714c6c823e412dc485ca9c5307348cddd097 Author: Mauro Carvalho Chehab Date: Mon Sep 6 14:05:43 2010 -0300 V4L/DVB: Add documentation about the Ibmcam/Konica new gspca driver formats Cc: Hans de Goede Signed-off-by: Mauro Carvalho Chehab commit 76e241d421e785dacdc8f7a4c39ecc42c8313a9e Author: Mauro Carvalho Chehab Date: Mon Sep 6 13:57:22 2010 -0300 gspca/konica: Fix compilation merge conflict drivers/media/video/gspca/konica.c: In function ‘sd_start’: drivers/media/video/gspca/konica.c:322: error: implicit declaration of function ‘usb_buffer_alloc’ drivers/media/video/gspca/konica.c:325: warning: assignment makes pointer from integer without a cast make[3]: ** [drivers/media/video/gspca/konica.o] Erro 1 Signed-off-by: Mauro Carvalho Chehab commit 41f424ba4ddc9ea0b241363a24007073c49a6116 Author: Hans de Goede Date: Mon Sep 6 05:24:21 2010 -0300 V4L/DVB: gspca_xirlink_cit: adjust ibm netcam pro framerate for available bandwidth gspca_xirlink_cit: adjust ibm netcam pro framerate for available bandwidth Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab commit b517af722860dcf9878754217575137be35ea0cc Author: Hans de Goede Date: Sun Sep 5 16:30:30 2010 -0300 V4L/DVB: gspca_konica: New gspca subdriver for konica chipset using cams This new driver replaces the (known to not work / crash) usbvideo konicawc driver. Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab commit 1fddcf0e8b3b6e6405b051da0a6faa93ea7af5cf Author: Hans de Goede Date: Sun Sep 5 07:06:04 2010 -0300 V4L/DVB: gspca_*: correct typo in my email address in various subdrivers gspca_*: correct typo in my email address in various subdrivers Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab commit 7b7736c451d6e5724ff0d591fecdd89b37617b59 Author: Hans de Goede Date: Sun Jul 4 08:03:19 2010 -0300 V4L/DVB: Mark usbvideo ibmcam driver as deprecated Mark usbvideo ibmcam driver as deprecated, it is replaced by the new gscpa xirlink_cit driver. Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab commit 59f8b0bf3c12598cf4a5b333b0287774dbbdbe1f Author: Hans de Goede Date: Sun Sep 5 07:03:48 2010 -0300 V4L/DVB: gspca_xirlink_cit: support bandwidth changing for devices with 1 alt setting Some xirlink_cit models have only 1 alt setting, but the actual used bandwidth can be programmed through a register use this to allow streaming while other isoc streams (for example sound) are active at the same time. Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab commit 55c1b7d3572c9f7e7177447fdd2f48d9787e7ff3 Author: Hans de Goede Date: Mon Aug 30 14:47:45 2010 -0300 V4L/DVB: gspca_xirlink_cit: Use alt setting -> fps formula for model 1 cams too gspca_xirlink_cit: Use alt setting -> fps formula for model 1 cams too Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab commit 659fefa0eb177ae7377206a7a5a59161b0668c58 Author: Hans de Goede Date: Sun Sep 5 16:19:19 2010 -0300 V4L/DVB: gspca_xirlink_cit: Add support for camera with a bcd version of 0.01 Add support for camera with a bcd version of 0.01, I've dupped these Model0 cams. Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab commit 59f90a01e8f1a377213ae6b6f8e8399975c0dc3b Author: Hans de Goede Date: Wed Jun 9 11:39:50 2010 -0300 V4L/DVB: gspca_xirlink_cit: Add support for Model 1, 2 & 4 cameras Note this is untested as I don't have hardware to test, but all initsequences were taken over 1 on 1 from the old ibmcam driver so things should work. Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab commit 1f33de0f8b91b70ccadb44958f09aa5bee7c1a44 Author: Hans de Goede Date: Sun Sep 5 16:05:22 2010 -0300 V4L/DVB: gspca_xirlink_cit: New gspca subdriver replacing v4l1 usbvideo/ibmcam.c The old usbvideo ibmcam driver needs to be replaced with a v4l2 driver preferably using the gspca webcam framework rather then the old usbvideo framework. This new gspca sub driver sets a first step in that direction. The ibmcam driver supports 4 different model webcams. This new driver (for now) only supports Model 3 cameras, as my test cam is a Model 3 cam, or so I thought. Upon reading: http://www.linux-usb.org/ibmcam/ I learned that the IBM Netcamera Pro I have even though having the same usb id and the same bcd version is different from the Model 3 cameras supported by the ibmcam driver. So this new gscpa subdriver supports Model 3 cameras (untested), and the IBM Netcamera Pro. Currently use with the IBM Netcamera Pro requires a module parameter. I hope to be able to autodetect which is which in the future. Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab commit f1edeea6c2ec6f2a1362fe53b2f4e8b1c50c4216 Author: Antti Palosaari Date: Fri Aug 13 13:45:02 2010 -0300 V4L/DVB: af9015: add missing TDA18218 Kconfig option Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit ee3d440c0c864489e3afb982544c9c22a40e2188 Author: Antti Palosaari Date: Fri Aug 13 03:51:26 2010 -0300 V4L/DVB: af9015: add support for tda18218 silicon tuner Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 2158e5090b5cc99ba05b43657a35d567cf077fe3 Author: Antti Palosaari Date: Fri Aug 13 03:49:24 2010 -0300 V4L/DVB: af9013: add support for tda18218 silicon tuner Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit 51ff2e2c8eaf0cc25c024849743613680b87778c Author: Antti Palosaari Date: Fri Aug 13 03:41:02 2010 -0300 V4L/DVB: NXP TDA18218 silicon tuner driver Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab commit fba32e0c70364f46a3d9ff36af5c85f1bd32ac7a Author: Hans Verkuil Date: Sun May 9 07:42:03 2010 -0300 V4L/DVB: v4l2-subdev: remove obsolete enum/try/s/g_fmt These have now all been replaced by enum/try/s/g_mbus_fmt. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit aabb541118af0a2fee3a878f61292384bf80fb2f Author: Hans Verkuil Date: Sat May 8 18:55:44 2010 -0300 V4L/DVB: ov7670: remove obsolete enum/try/s_fmt ops Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 1e426228839f93c1a61c215b57557f1eb4f79a2d Author: Hans Verkuil Date: Sat May 8 18:53:44 2010 -0300 V4L/DVB: cafe_ccic: convert to the mediabus API Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 959f3bdadfefb59e27c53c2e9ab13192119b0e3c Author: Hans Verkuil Date: Sat May 8 18:28:41 2010 -0300 V4L/DVB: ov7670: add enum/try/s_mbus_fmt support Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit d7709ffff4117f7c7700755accfe9d5e429efc53 Author: Hans Verkuil Date: Fri Aug 6 16:25:04 2010 -0300 V4L/DVB: v4l: add RGB444 mediabus formats These are needed for the ov7670 driver. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit c5e76a6d2aecca761f57b7a40df79812fad7fb98 Author: Hans Verkuil Date: Fri Aug 6 16:18:23 2010 -0300 V4L/DVB: cx25821: convert to the mediabus API Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit b8c75ed898408cc7ca599a20ce27c40c425bd143 Author: Hans Verkuil Date: Fri Aug 6 16:42:55 2010 -0300 V4L/DVB: go7007: convert to use the mediabus API Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 515d93fb238e201901610bceddedc4027f565d5e Author: Hans Verkuil Date: Sun May 9 07:22:37 2010 -0300 V4L/DVB: tvp7002: remove obsolete enum/try/s/g_fmt Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 8f56aaa3e65d675b756fac67b8abc8f2acaaf2f2 Author: Hans Verkuil Date: Sun May 9 07:20:40 2010 -0300 V4L/DVB: tvp514x: remove obsolete enum/try/s/g_fmt Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit d3ca77595f4b1f17a6d41a89f942fea2b3b17d0c Author: Hans Verkuil Date: Sat Aug 7 06:49:33 2010 -0300 V4L/DVB: vpfe_capture: convert to new mediabus API Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit db7b5460405c399e5444d2a1d313f43cf4072801 Author: Hans Verkuil Date: Sun May 9 07:07:35 2010 -0300 V4L/DVB: tvp7002: add support for enum/try/g/s_mbus_fmt Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 838119138ee2ebcb0dcc3bad808a403c29910cd5 Author: Hans Verkuil Date: Sun May 9 06:50:25 2010 -0300 V4L/DVB: tvp514x: add support for enum/g/try/s_mbus_fmt Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit 0edc4afbcf59e4156e06f9e91f72c8fc47ceb856 Author: Hans Verkuil Date: Sat Aug 7 06:27:16 2010 -0300 V4L/DVB: v4l: add new YUV mediabus formats Needed for tvp7002 and tvp514x drivers. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab commit e1efc9b6ac22c605fd326b3f6af9b393325d43b4 Author: Thomas Hellstrom Date: Tue Oct 19 09:01:01 2010 +0200 drm/ttm: Optimize delayed buffer destruction This commit replaces the ttm_bo_cleanup_ref function with two new functions. One for the case where the bo is not yet on the delayed destroy list, and one for the case where the bo was on the delayed destroy list, at least at the time of call. This makes it possible to optimize the two cases somewhat. It also enables the possibility to directly destroy buffers on the delayed delete list when they are about to be evicted or swapped out. Currently they were only evicted / swapped and destruction was left for the delayed buffer destruction thread. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit 40d857bba2915a4e8d82f44744a186bfdd1a46ea Author: Thomas Hellstrom Date: Tue Oct 19 09:01:00 2010 +0200 drm/ttm: Avoid using the ttm_mem_type_manager::put_locked function Release the lru spinlock early. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit a405f833f4cd6490caaf381efe58a5628b545733 Author: Greg Ungerer Date: Wed Oct 13 13:42:22 2010 +1000 m68knommu: support the external GPIO based interrupts of the 5272 The external GPIO interrupts of the ColdFire 5272 SoC are edge triggered, unlike the internal interrupt sources (which are level triggered). Add proper support for these interrupts. Signed-off-by: Greg Ungerer commit 730251f27df1ed0177609d1e49817f0c3ada0b1a Author: Greg Ungerer Date: Thu Oct 7 17:16:56 2010 +1000 m68knommu: mask of vector bits in exception word properly The vector field of the processors exception frame actually contains both the vector exception number and fault status field bits. The exception processing code was not correctly masking out the fault status field bits before switching on the vector number. The default case was catching the bad check, but we are reporting the wrong kind of exception in some cases. Reported-by: Alexander Stein Signed-off-by: Greg Ungerer commit dea2aff876c004cccf29549242c93b208787aa64 Author: matt mooney Date: Wed Sep 22 23:50:45 2010 -0700 m68knommu: change to new flag variables Replace EXTRA_CFLAGS with ccflags-y and EXTRA_AFLAGS with asflags-y. Signed-off-by: matt mooney Signed-off-by: Greg Ungerer commit 48a232d14c0853854497fb44207fc96d8b7e7dff Author: Philippe De Muyter Date: Tue Sep 21 17:14:36 2010 +0200 m68knommu: Fix MCFUART_TXFIFOSIZE for m548x. Serial lines on the MCF548x have really big fifos : 512 bytes. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer commit ea49f8ffae6262e8de9a0d3e9fcdd384156c7e05 Author: Philippe De Muyter Date: Mon Sep 20 13:11:11 2010 +0200 m68knommu: add basic mmu-less m548x support Add a very basic mmu-less support for coldfire m548x family. This is perhaps also valid for m547x family. The port comprises the serial, tick timer and reboot support. The gpio part compiles but is empty. This gives a functional albeit limited linux for the m548x coldfire family. This has been tested on a Freescale M548xEVB Lite board with a M5484 processor and the default dbug monitor. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer commit a7c681f620e75cb0efbe7da092723a6ecd17bc01 Author: Philippe De Muyter Date: Wed Sep 8 15:01:43 2010 +0200 m68knommu: .gitignore vmlinux.lds Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer commit 04570b46215f81001c94b2baea4af3284d6161ec Author: Greg Ungerer Date: Thu Sep 9 17:12:53 2010 +1000 m68knommu: stop using __do_IRQ The use of __do_IRQ is deprecated, so lets stop using it. Generally the interrupts on the supported processors here are level triggered, so this is strait forward to switch over to using the standard handle_level_irq flow handler. (Although some ColdFire parts support edge triggered GPIO line interrupts we have no support for them yet). Signed-off-by: Greg Ungerer commit eb497e7b4996c4c6d2afaa19ee6a32aba867ae4c Author: Philippe De Muyter Date: Mon Aug 30 13:17:17 2010 +0200 m68knommu: rename PT_OFF_VECTOR to PT_OFF_FORMATVEC. In m68k/m68knommu assembly files, the same value is called sometimes PT_OFF_VECTOR, but more frequently PT_OFF_FORMATVEC. Standardize name to PT_OFF_FORMATVEC. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer commit 8851338dd09ed3544bb9a427ae04f1c481ce5456 Author: Philippe De Muyter Date: Wed Sep 1 15:23:28 2010 +0200 m68knommu: add support for Coldfire 547x/548x interrupt controller The Coldfire MCF547x/MCF548x have the same interrupt controller as the MCF528x e.g., but only one, not two as in the MCF528x. Modify intc-2.c to support only one interrupt controller if MCFICM_INTC1 is not defined. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer commit aa108e4eae67c9aa6ad77e4fc17b044caffd135c Author: Philippe De Muyter Date: Wed Aug 18 18:27:34 2010 +0200 m68k{nommu}: Remove unused DEFINE's from asm-offsets.c m68k{nommu}/asm-offsets.c define many constants which are not used anymore anywhere; remove IRQ_DEVID, IRQ_HANDLER, IRQ_NEXT, STAT_IRQ, TASK_ACTIVE_MM, TASK_BLOCKED, TASK_FLAGS, TASK_PTRACE, TASK_STATE, TASK_THREAD_INFO, TI_CPU, TI_EXECDOMAIN and TI_TASK. Signed-off-by: Philippe De Muyter Acked-by: Geert Uytterhoeven Signed-off-by: Greg Ungerer commit 5061ea2cceca043ec99a52dd89f569567fc2cede Author: Philippe De Muyter Date: Tue Aug 17 18:52:39 2010 +0200 m68knommu: whitespace cleanup in 68328/entry.S Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer commit 03cbc3852710d30aa8548387ed1b1d87214f8ddb Author: Philippe De Muyter Date: Thu Aug 19 19:04:58 2010 +0200 m68knommu: Document supported chips in intc-2.c and intc-simr.c. The chips lists were in commit logs, but should also be in source files. This way it is easier to choose the right source file for a not yet supported Coldfire. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer commit c8a2786b107873e34d540b8e3e54bd3cef03bc56 Author: Philippe De Muyter Date: Tue Aug 17 18:58:29 2010 +0200 m68knommu: fix strace support for 68328/68360 strace enabled is marked using the `flags' field of the `thread_info' struct. 68360 version of entry.S did test a wrong bit in a wrong structure (task_struct). 68328 version of entry.S did test the right bit in the right structure, but wrongly, because the `flags' field is 32 bit wide, while the used assembler insn (btst) only accesses a 8 bit byte in memory. Fix both using code already used in the coldfire version of entry.S Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer commit 47422259b44e53e670b4ee375ff98f0603e6dd45 Author: Philippe De Muyter Date: Fri Aug 6 17:47:13 2010 +0200 m68knommu: fix default starting date Currently m68knommu boards without RTC chip start with an unexpected default date of 1999-11-30 (Actually the source asks for 2000-00-00) Make that 1970-01-01 instead, as expected. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer commit 713e919e09492342eb8cd56f5aa7e3b33f672968 Author: Christian Dietrich Date: Wed Aug 4 14:42:43 2010 +0200 arch/m68knommu: Removing dead 68328_SERIAL_UART2 config option CONFIG_68328_SERIAL_UART2 doesn't exist in Kconfig, therefore removing all references to it from the source. Signed-off-by: Christian Dietrich Signed-off-by: Greg Ungerer commit 4a33fbcb3cdb0172e6e355a4ced3ca4d16622ffd Author: Christian Dietrich Date: Wed Aug 4 14:42:34 2010 +0200 arch/m68knommu: Removing dead RAM_{16,32}_MB config option CONFIG_RAM_{16,32}_MB doesn't exist in Kconfig, therefore removing all references to it from the source. Signed-off-by: Christian Dietrich Signed-off-by: Greg Ungerer commit a37f6aeeeabd2aefa55f4101454510bec98b20ca Author: Christian Dietrich Date: Wed Aug 4 14:42:19 2010 +0200 arch/m68knommu: Removing dead M68KFPU_EMU config option CONFIG_M68KFPU_EMU doesn't exist in Kconfig, therefore removing all references to it from the source. This Flags seems to exist only on m68k with mmu, and this dead blocks are copy paste. Signed-off-by: Christian Dietrich Signed-off-by: Greg Ungerer commit 7f19756325e4b30ed608bd358a4f0561308c9b6b Author: Christian Dietrich Date: Wed Aug 4 14:42:08 2010 +0200 arch/m68knommu: Removing dead RELOCATE config option CONFIG_RELOCATE doesn't exist in Kconfig, therefore removing all references to it from the source. Signed-off-by: Christian Dietrich Signed-off-by: Greg Ungerer commit cb8a5565cbab5d03501bb0c05dda05078a7295fd Author: Christian Dietrich Date: Wed Aug 4 14:41:59 2010 +0200 arch/m68knommu: Removing dead M68000 config option CONFIG_M68000 doesn't exist in Kconfig, therefore removing all references to it from the source. Signed-off-by: Christian Dietrich Signed-off-by: Greg Ungerer commit 9387377eb79a44f453fd27c3d00a2e5da587e369 Author: Jeremy Fitzhardinge Date: Wed Oct 6 08:51:32 2010 -0700 xen/privcmd: make privcmd visible in domU It has its uses in a domU as well as dom0. Xen will prevent an unprivileged domain from doing anything untoward. Signed-off-by: Jeremy Fitzhardinge commit de1ef2065c4675ab1062ebc8d1cb6c5f42b61d04 Author: Ian Campbell Date: Thu May 21 10:09:46 2009 +0100 xen/privcmd: move remap_domain_mfn_range() to core xen code and export. This allows xenfs to be built as a module, previously it required flush_tlb_all and arbitrary_virt_to_machine to be exported. Signed-off-by: Ian Campbell Signed-off-by: Jeremy Fitzhardinge commit f020e2905166e12f9a8f109fe968cb5a9db887e9 Author: Ian Campbell Date: Wed May 20 15:42:14 2009 +0100 privcmd: MMAPBATCH: Fix error handling/reporting On error IOCTL_PRIVCMD_MMAPBATCH is expected to set the top nibble of the effected MFN and return 0. Currently it leaves the MFN unmodified and returns the number of failures. Therefore: - reimplement remap_domain_mfn_range() using direct HYPERVISOR_mmu_update() calls and small batches. The xen_set_domain_pte() interface does not report errors and since some failures are expected/normal using the multicall infrastructure is too noisy. - return 0 as expected - writeback the updated MFN list to mmapbatch->arr not over mmapbatch, smashing the caller's stack. - remap_domain_mfn_range can be static. With this change I am able to start an HVM domain. Signed-off-by: Ian Campbell Cc: Jeremy Fitzhardinge Signed-off-by: Jeremy Fitzhardinge commit 8e3e99918b9ccd6bc2369ddbcd74056f8796e1e0 Author: Jeremy Fitzhardinge Date: Sat Mar 21 23:51:26 2009 -0700 xenbus: export xen_store_interface for xenfs xen_store_interface is needed by xenfs, and xenfs may be a module. [ Impact: build fix for modular xenfs ] Signed-off-by: Jeremy Fitzhardinge commit f31fdf510531333dea95f0a92e6eaa1c3a7541e2 Author: Jeremy Fitzhardinge Date: Sun Mar 8 04:10:00 2009 -0700 xen/privcmd: make sure vma is ours before doing anything to it Test vma->vm_ops is our operations to make sure we created it. We don't want to stomp on other random vmas. [ Impact: bugfix; prevent ioctl from affecting other mappings ] Signed-off-by: Jeremy Fitzhardinge commit 441c7416b55d3d48b4aaafc5bdd804092387d877 Author: Jeremy Fitzhardinge Date: Fri Mar 6 09:56:59 2009 -0800 xen/privcmd: print SIGBUS faults Print more detail about privcmd mapping faults for debugging. [ Impact: debug ] Signed-off-by: Jeremy Fitzhardinge commit 35f8c1c343f2918ea24f05282d14e711887d8278 Author: Jeremy Fitzhardinge Date: Fri Mar 6 09:56:26 2009 -0800 xen/xenfs: set_page_dirty is supposed to return true if it dirties I don't think it matters at all in this case (there's only one caller which checks the return value), but may as well be strictly correct. [ Impact: cleanup ] Signed-off-by: Jeremy Fitzhardinge commit 24a89b5be4cf2b7f1b49b56b6cb4a7b71fccf241 Author: Jeremy Fitzhardinge Date: Mon Feb 9 12:05:49 2009 -0800 xen/privcmd: create address space to allow writable mmaps These are necessary to allow writeable mmap of the privcmd node to succeed without being marked read-only for writenotify purposes. Which in turn is necessary to allow mappings of foreign guest pages [ Impact: bugfix: allow writable mappings ] Signed-off-by: Ian Campbell Signed-off-by: Jeremy Fitzhardinge commit 1c5de1939c204bde9cce87f4eb3d26e9f9eb732b Author: Jeremy Fitzhardinge Date: Mon Feb 9 12:05:49 2009 -0800 xen: add privcmd driver The privcmd interface in xenfs allows the tool stack in the privileged domain to get fairly direct access to the hypervisor in order to do various management things such as domain construction. [ Impact: new xenfs interface for privileged operations ] Signed-off-by: Jeremy Fitzhardinge commit 1246ae0bb992f106a245eea2b8dd901ced868e7a Author: Jeremy Fitzhardinge Date: Mon Feb 9 12:05:49 2009 -0800 xen: add variable hypercall caller Allow non-constant hypercall to be called, for privcmd. [ Impact: make arbitrary hypercalls; needed for privcmd ] Signed-off-by: Jeremy Fitzhardinge commit eba3ff8b99863bcc9e66b8d528e4750229e29693 Author: Jeremy Fitzhardinge Date: Mon Feb 9 12:05:49 2009 -0800 xen: add xen_set_domain_pte() Add xen_set_domain_pte() to allow setting a pte mapping a page from another domain. The common case is to map from DOMID_IO, the pseudo domain which owns all IO pages, but will also be used in the privcmd interface to map other domain pages. [ Impact: new Xen-internal API for cross-domain mappings ] Signed-off-by: Jeremy Fitzhardinge commit 655d406a7c80bffc03263d071b6ba1e0fcf548f9 Author: Ian Campbell Date: Fri Feb 6 18:46:48 2009 -0800 xen: add /proc/xen/xsd_{kva,port} to xenfs These are used by the userspace xenstore daemon, which runs in dom0. Xenstored is what's behind the xenfs "xenbus" filesystem. [ Impact: provide mapping and port to usermode for xenstore ] Signed-off-by: Ian Campbell Signed-off-by: Jeremy Fitzhardinge commit f0d3d9894e43fc68d47948e2c6f03e32da88b799 Author: Stephen Rothwell Date: Wed Oct 20 16:08:00 2010 +1100 selinux: include vmalloc.h for vmalloc_user Include vmalloc.h for vmalloc_user (fixes ppc build warning). Acked-by: Eric Paris Signed-off-by: James Morris commit ff660c80d00b52287f1f67ee6c115dc0057bcdde Author: Eric Paris Date: Tue Oct 19 18:17:32 2010 -0400 secmark: fix config problem when CONFIG_NF_CONNTRACK_SECMARK is not set When CONFIG_NF_CONNTRACK_SECMARK is not set we accidentally attempt to use the secmark fielf of struct nf_conn. Problem is when that config isn't set the field doesn't exist. whoops. Wrap the incorrect usage in the config. Signed-off-by: Eric Paris Signed-off-by: James Morris commit 845ca30fe9691f1bab7cfbf30b6d11c944eb4abd Author: Eric Paris Date: Wed Oct 13 17:50:31 2010 -0400 selinux: implement mmap on /selinux/policy /selinux/policy allows a user to copy the policy back out of the kernel. This patch allows userspace to actually mmap that file and use it directly. Signed-off-by: Eric Paris Signed-off-by: James Morris commit cee74f47a6baba0ac457e87687fdcf0abd599f0a Author: Eric Paris Date: Wed Oct 13 17:50:25 2010 -0400 SELinux: allow userspace to read policy back out of the kernel There is interest in being able to see what the actual policy is that was loaded into the kernel. The patch creates a new selinuxfs file /selinux/policy which can be read by userspace. The actual policy that is loaded into the kernel will be written back out to userspace. Signed-off-by: Eric Paris Signed-off-by: James Morris commit 00d85c83ac52e2c1a66397f1abc589f80c543425 Author: Eric Paris Date: Wed Oct 13 17:50:19 2010 -0400 SELinux: drop useless (and incorrect) AVTAB_MAX_SIZE AVTAB_MAX_SIZE was a define which was supposed to be used in userspace to define a maximally sized avtab when userspace wasn't sure how big of a table it needed. It doesn't make sense in the kernel since we always know our table sizes. The only place it is used we have a more appropiately named define called AVTAB_MAX_HASH_BUCKETS, use that instead. Signed-off-by: Eric Paris Signed-off-by: James Morris commit 4419aae1f4f380a3fba0f4f12ffbbbdf3f267c51 Author: Eric Paris Date: Wed Oct 13 17:50:14 2010 -0400 SELinux: deterministic ordering of range transition rules Range transition rules are placed in the hash table in an (almost) arbitrary order. This patch inserts them in a fixed order to make policy retrival more predictable. Signed-off-by: Eric Paris Signed-off-by: James Morris commit b28efd54d9d5c8005a29cd8782335beb9daaa32d Author: Eric Paris Date: Wed Oct 13 17:50:08 2010 -0400 kernel: roundup should only reference arguments once Currently the roundup macro references it's arguments more than one time. This patch changes it so it will only use its arguments once. Suggested-by: Andrew Morton Signed-off-by: Eric Paris Signed-off-by: James Morris commit 686a0f3d71203bbfcc186900bbb8ac2cfc3d803c Author: Eric Paris Date: Wed Oct 13 17:50:02 2010 -0400 kernel: rounddown helper function The roundup() helper function will round a given value up to a multiple of another given value. aka roundup(11, 7) would give 14 = 7 * 2. This new function does the opposite. It will round a given number down to the nearest multiple of the second number: rounddown(11, 7) would give 7. I need this in some future SELinux code and can carry the macro myself, but figured I would put it in the core kernel so others might find and use it if need be. Signed-off-by: Eric Paris Signed-off-by: James Morris commit 1ae4de0cdf855305765592647025bde55e85e451 Author: Eric Paris Date: Wed Oct 13 16:25:00 2010 -0400 secmark: export secctx, drop secmark in procfs The current secmark code exports a secmark= field which just indicates if there is special labeling on a packet or not. We drop this field as it isn't particularly useful and instead export a new field secctx= which is the actual human readable text label. Signed-off-by: Eric Paris Acked-by: Patrick McHardy Signed-off-by: James Morris commit 1cc63249adfa957b34ca51effdee90ff8261d63f Author: Eric Paris Date: Wed Oct 13 16:24:54 2010 -0400 conntrack: export lsm context rather than internal secid via netlink The conntrack code can export the internal secid to userspace. These are dynamic, can change on lsm changes, and have no meaning in userspace. We should instead be sending lsm contexts to userspace instead. This patch sends the secctx (rather than secid) to userspace over the netlink socket. We use a new field CTA_SECCTX and stop using the the old CTA_SECMARK field since it did not send particularly useful information. Signed-off-by: Eric Paris Reviewed-by: Paul Moore Acked-by: Patrick McHardy Signed-off-by: James Morris commit d5630b9d276bd389299ffea620b7c340ab19bcf5 Author: Eric Paris Date: Wed Oct 13 16:24:48 2010 -0400 security: secid_to_secctx returns len when data is NULL With the (long ago) interface change to have the secid_to_secctx functions do the string allocation instead of having the caller do the allocation we lost the ability to query the security server for the length of the upcoming string. The SECMARK code would like to allocate a netlink skb with enough length to hold the string but it is just too unclean to do the string allocation twice or to do the allocation the first time and hold onto the string and slen. This patch adds the ability to call security_secid_to_secctx() with a NULL data pointer and it will just set the slen pointer. Signed-off-by: Eric Paris Reviewed-by: Paul Moore Signed-off-by: James Morris commit 2606fd1fa5710205b23ee859563502aa18362447 Author: Eric Paris Date: Wed Oct 13 16:24:41 2010 -0400 secmark: make secmark object handling generic Right now secmark has lots of direct selinux calls. Use all LSM calls and remove all SELinux specific knowledge. The only SELinux specific knowledge we leave is the mode. The only point is to make sure that other LSMs at least test this generic code before they assume it works. (They may also have to make changes if they do not represent labels as strings) Signed-off-by: Eric Paris Acked-by: Paul Moore Acked-by: Patrick McHardy Signed-off-by: James Morris commit 15714f7b58011cf3948cab2988abea560240c74f Author: Eric Paris Date: Tue Oct 12 11:40:08 2010 -0400 secmark: do not return early if there was no error Commit 4a5a5c73 attempted to pass decent error messages back to userspace for netfilter errors. In xt_SECMARK.c however the patch screwed up and returned on 0 (aka no error) early and didn't finish setting up secmark. This results in a kernel BUG if you use SECMARK. Signed-off-by: Eric Paris Acked-by: Paul Moore Signed-off-by: James Morris commit 3ed02ada2a5e695e2fbb5e4a0008cfcb0f50feaa Author: John Johansen Date: Sat Oct 9 00:47:53 2010 -0700 AppArmor: Ensure the size of the copy is < the buffer allocated to hold it Actually I think in this case the appropriate thing to do is to BUG as there is currently a case (remove) where the alloc_size needs to be larger than the copy_size, and if copy_size is ever greater than alloc_size there is a mistake in the caller code. Signed-off-by: John Johansen Acked-by: Kees Cook Signed-off-by: James Morris commit 9f1c1d426b0402b25cd0d7ca719ffc8e20e46d5f Author: Tetsuo Handa Date: Fri Oct 8 14:43:22 2010 +0900 TOMOYO: Print URL information before panic(). Configuration files for TOMOYO 2.3 are not compatible with TOMOYO 2.2. But current panic() message is too unfriendly and is confusing users. Signed-off-by: Tetsuo Handa Reviewed-by: KOSAKI Motohiro Signed-off-by: James Morris commit b0ae19811375031ae3b3fecc65b702a9c6e5cc28 Author: KOSAKI Motohiro Date: Fri Oct 15 04:21:18 2010 +0900 security: remove unused parameter from security_task_setscheduler() All security modules shouldn't change sched_param parameter of security_task_setscheduler(). This is not only meaningless, but also make a harmful result if caller pass a static variable. This patch remove policy and sched_param parameter from security_task_setscheduler() becuase none of security module is using it. Cc: James Morris Signed-off-by: KOSAKI Motohiro Signed-off-by: James Morris commit 9b3056cca09529d34af2d81305b2a9c6b622ca1b Author: Dmitry Torokhov Date: Fri Oct 1 14:16:39 2010 -0700 tpm: change 'tpm_suspend_pcr' to be module parameter Fix the following warning: drivers/char/tpm/tpm.c:1085: warning: `tpm_suspend_setup' defined but not used and make the workaround operable in case when TPM is compiled as a module. As a side-effect the option will be called tpm.suspend_pcr. Signed-off-by: Dmitry Torokhov Cc: Rajiv Andrade Cc: David Safford Cc: James Morris Cc: Debora Velarde Signed-off-by: Andrew Morton Signed-off-by: James Morris commit 36f7f28416c97dbb725154930066d115b4447e17 Author: KaiGai Kohei Date: Thu Sep 30 11:49:55 2010 +0900 selinux: fix up style problem on /selinux/status This patch fixes up coding-style problem at this commit: 4f27a7d49789b04404eca26ccde5f527231d01d5 selinux: fast status update interface (/selinux/status) Signed-off-by: KaiGai Kohei Signed-off-by: James Morris commit 8b0c543e5cb1e47a54d3ea791b8a03b9c8a715db Author: matt mooney Date: Wed Sep 22 23:50:06 2010 -0700 selinux: change to new flag variable Replace EXTRA_CFLAGS with ccflags-y. Signed-off-by: matt mooney Signed-off-by: James Morris commit 60272da0341e9eaa136e1dc072bfef72c995d851 Author: Paul Gortmaker Date: Wed Sep 15 20:14:53 2010 -0400 selinux: really fix dependency causing parallel compile failure. While the previous change to the selinux Makefile reduced the window significantly for this failure, it is still possible to see a compile failure where cpp starts processing selinux files before the auto generated flask.h file is completed. This is easily reproduced by adding the following temporary change to expose the issue everytime: - cmd_flask = scripts/selinux/genheaders/genheaders ... + cmd_flask = sleep 30 ; scripts/selinux/genheaders/genheaders ... This failure happens because the creation of the object files in the ss subdir also depends on flask.h. So simply incorporate them into the parent Makefile, as the ss/Makefile really doesn't do anything unique. With this change, compiling of all selinux files is dependent on completion of the header file generation, and this test case with the "sleep 30" now confirms it is functioning as expected. Signed-off-by: Paul Gortmaker Signed-off-by: James Morris commit ceba72a68d17ee36ef24a71b80dde39ee934ece8 Author: Paul Gortmaker Date: Mon Aug 9 17:34:25 2010 -0400 selinux: fix parallel compile error Selinux has an autogenerated file, "flask.h" which is included by two other selinux files. The current makefile has a single dependency on the first object file in the selinux-y list, assuming that will get flask.h generated before anyone looks for it, but that assumption breaks down in a "make -jN" situation and you get: selinux/selinuxfs.c:35: fatal error: flask.h: No such file or directory compilation terminated. remake[9]: *** [security/selinux/selinuxfs.o] Error 1 Since flask.h is included by security.h which in turn is included nearly everywhere, make the dependency apply to all of the selinux-y list of objs. Signed-off-by: Paul Gortmaker Signed-off-by: James Morris commit 119041672592d1890d89dd8f194bd0919d801dc8 Author: KaiGai Kohei Date: Tue Sep 14 18:28:39 2010 +0900 selinux: fast status update interface (/selinux/status) This patch provides a new /selinux/status entry which allows applications read-only mmap(2). This region reflects selinux_kernel_status structure in kernel space. struct selinux_kernel_status { u32 length; /* length of this structure */ u32 sequence; /* sequence number of seqlock logic */ u32 enforcing; /* current setting of enforcing mode */ u32 policyload; /* times of policy reloaded */ u32 deny_unknown; /* current setting of deny_unknown */ }; When userspace object manager caches access control decisions provided by SELinux, it needs to invalidate the cache on policy reload and setenforce to keep consistency. However, the applications need to check the kernel state for each accesses on userspace avc, or launch a background worker process. In heuristic, frequency of invalidation is much less than frequency of making access control decision, so it is annoying to invoke a system call to check we don't need to invalidate the userspace cache. If we can use a background worker thread, it allows to receive invalidation messages from the kernel. But it requires us an invasive coding toward the base application in some cases; E.g, when we provide a feature performing with SELinux as a plugin module, it is unwelcome manner to launch its own worker thread from the module. If we could map /selinux/status to process memory space, application can know updates of selinux status; policy reload or setenforce. A typical application checks selinux_kernel_status::sequence when it tries to reference userspace avc. If it was changed from the last time when it checked userspace avc, it means something was updated in the kernel space. Then, the application can reset userspace avc or update current enforcing mode, without any system call invocations. This sequence number is updated according to the seqlock logic, so we need to wait for a while if it is odd number. Signed-off-by: KaiGai Kohei Acked-by: Eric Paris -- security/selinux/include/security.h | 21 ++++++ security/selinux/selinuxfs.c | 56 +++++++++++++++ security/selinux/ss/Makefile | 2 +- security/selinux/ss/services.c | 3 + security/selinux/ss/status.c | 129 +++++++++++++++++++++++++++++++++++ 5 files changed, 210 insertions(+), 1 deletions(-) Signed-off-by: James Morris commit 4b04a7cfc5ccb573ca3752429c81d37f8dd2f7c6 Author: Yong Zhang Date: Sat Aug 28 10:25:09 2010 +0800 .gitignore: ignore apparmor/rlim_names.h Signed-off-by: Yong Zhang Signed-off-by: John Johansen Signed-off-by: James Morris commit 065d78a0603cc6f8d288e96dbf761b96984b634f Author: Tetsuo Handa Date: Sat Aug 28 14:58:44 2010 +0900 LSM: Fix security_module_enable() error. We can set default LSM module to DAC (which means "enable no LSM module"). If default LSM module was set to DAC, security_module_enable() must return 0 unless overridden via boot time parameter. Signed-off-by: Tetsuo Handa Acked-by: Serge E. Hallyn Signed-off-by: James Morris commit daa6d83a2863c28197b0c7dabfdf1e0606760b78 Author: Eric Paris Date: Tue Aug 3 15:26:05 2010 -0400 selinux: type_bounds_sanity_check has a meaningless variable declaration type is not used at all, stop declaring and assigning it. Signed-off-by: Eric Paris Acked-by: Stephen Smalley Signed-off-by: James Morris commit 68eda8f59081c74a51d037cc29893bd7c9b3c2d8 Author: Dan Carpenter Date: Sun Aug 8 00:17:51 2010 +0200 tomoyo: cleanup. don't store bogus pointer If domain is NULL then &domain->list is a bogus address. Let's leave head->r.domain NULL instead of saving an unusable pointer. This is just a cleanup. The current code always checks head->r.eof before dereferencing head->r.domain. Signed-off-by: Dan Carpenter Acked-by: Tetsuo Handa commit 150b19d43065762f19a4e6060b07c9bbbc85bcc7 Author: Greg Kroah-Hartman Date: Wed Oct 20 16:07:11 2010 -0700 Staging: hv: make get_channel_info static This is done by moving it to the only .c file it is used in. This also allowed us to delete the channel_interface.h file, as it's no longer needed. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit a4e91ed24bc6b68caa534a9de35f7fc770bffde9 Author: Greg Kroah-Hartman Date: Wed Oct 20 16:02:49 2010 -0700 Staging: hv: vmbus_drv: remove vmbus_child_device_get_info Just make the call to get_channel_info() directly. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 66f2b061546974b96b7b238a92ce89a87ecf0754 Author: FUJITA Tomonori Date: Wed Oct 20 15:55:35 2010 -0700 x86, mm: Enable ARCH_DMA_ADDR_T_64BIT with X86_64 || HIGHMEM64G Set CONFIG_ARCH_DMA_ADDR_T_64BIT when we set dma_addr_t to 64 bits in ; this allows Kconfig decisions based on this property. Signed-off-by: FUJITA Tomonori LKML-Reference: <201010202255.o9KMtZXu009370@imap1.linux-foundation.org> Acked-by: "H. Peter Anvin" Signed-off-by: Andrew Morton Signed-off-by: H. Peter Anvin commit e957bda0f4c88b29a027be23f4cc05f2abab2329 Author: Greg Kroah-Hartman Date: Wed Oct 20 16:00:37 2010 -0700 Staging: hv: remove GetChannelInfo from struct vmbus_driver It was only set to one value, so just make the call to get_channel_info() directly. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 40bc5360d7fe6fae4ec454c1dca90d6cdaa7e448 Author: Greg Kroah-Hartman Date: Wed Oct 20 15:57:19 2010 -0700 Staging: hv: remove GetInfo pointer from struct vmbus_channel_interface It's only set by one thing, and never called. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit ee00966818584e8dbf7a5c7118c3b3cfebd6be14 Author: Greg Kroah-Hartman Date: Wed Oct 20 15:55:36 2010 -0700 Staging: hv: remove VmbusGetChannelInfo It's not needed, make the function pointer point to get_channel_info() instead. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit b4a0dca771350b4eb0b262b5bbcf2aab5b47d1ea Author: Marek Szyprowski Date: Mon Oct 4 18:38:12 2010 +0900 ARM: S5PV210: GONI: Add support for QT602240 TS driver Add required platform definitions for QT602240 touchscreen on I2C2 bus. Signed-off-by: Kyungmin Park Signed-off-by: Marek Szyprowski Signed-off-by: Kukjin Kim commit 528ef1b5f3998cd3199926526b4c188d52e4ba7c Author: Marek Szyprowski Date: Mon Oct 4 16:39:22 2010 +0900 ARM: S5PV210: Add si470x radio device to the GONI board Add required platform definitions for si470x radio device on Samsung Goni board. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Signed-off-by: Marek Szyprowski [kgene.kim@samsung.com: minor title fixes] Signed-off-by: Kukjin Kim commit 8415d5c41564a9b7c802f26d5a4795ddb823d6ed Author: Marek Szyprowski Date: Mon Oct 4 16:39:20 2010 +0900 ARM: S5PV210: Add support for S6E63M0 LCD controller on GONI board Add required platform definitions for S6E63M0 LCD controller on Samsung Goni board. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park [kgene.kim@samsung.com: minor title fixes] [kgene.kim@samsung.com: fix build error] Signed-off-by: Kukjin Kim commit ea31fd4330c823bd156d6484e32a0777c35f200f Author: Jongpill Lee Date: Sat Oct 2 19:13:42 2010 +0900 ARM: S5PV210: Add Power Management Support This patch adds suspend-to-ram support for S5PV210. Note. This patch is confirmed on SMDKV210 and SMDKC110 board. Signed-off-by: Jongpill Lee Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit dc425471b6d4e2a3c1d74745433816fc313f30e7 Author: Sangbeom Kim Date: Fri Oct 8 21:50:20 2010 +0900 ARM: S5PV210: Fix build error on pm debug This patch fixes build error by S3C2410 PM Suspend debug option due to undefined address. Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit 9adf5d222cfbbc4b7e972bfe3472368f9b453091 Author: Marek Szyprowski Date: Sat Oct 2 11:48:09 2010 +0900 ARM: S5P: Unify defines for both gpio interrupt types Samsung S5P SoCs have the same interrupt type defines for both external interrupts and gpio interrupts. This patch removes all duplicates from S5PC100 and S5PV210 specific includes as well as gpio interrupt code and put a common defines to plat/irqs.h NOTE: Do not use this for S5P6440 and S5P6450. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park [kgene.kim@samsung.com: add note for S5P64X0] Signed-off-by: Kukjin Kim commit 8ce14a221efe8ef9019e2c5b1e06fcd329e66d78 Author: Joonyoung Shim Date: Fri Oct 1 11:24:39 2010 +0900 ARM: SAMSUNG: Add common samsung_gpiolib_to_irq function This patch adds a common callback for gpio_to_irq() for external and gpio interrupts for Samsung SoCs. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Signed-off-by: Marek Szyprowski Cc: Ben Dooks [kgene.kim@samsung.com: moved samsung_gpiolib_to_irq() for s3c24xx build] Signed-off-by: Kukjin Kim commit 02c38497d668f46467e8ec57a243be0be5bd7f85 Author: Joonyoung Shim Date: Fri Oct 1 11:23:06 2010 +0900 ARM: S5PC100: Move External Interrupt definitions This patch moves external interrupt definitions from mach/gpio.h to mach/regs-gpio.h for consistency with S5PV210. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Signed-off-by: Marek Szyprowski Signed-off-by: Kukjin Kim commit 7e47935bb7190cd4bbc6fa4023b64b4785a2bcdc Author: Joonyoung Shim Date: Fri Oct 1 11:18:05 2010 +0900 ARM: S5PC100: Use generic S5P GPIO Interrupt interface S5PC100 SoC can use common S5P GPIO interrupt code. This patch removes specific S5PC100 gpio interrupts code and adds required defines and code to make use of common S5P code. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Signed-off-by: Marek Szyprowski Signed-off-by: Kukjin Kim commit 5fdc97b5d95aa8175c085545a4c37bccd45dd950 Author: Marek Szyprowski Date: Fri Oct 1 11:16:44 2010 +0900 ARM: S5PV210: Add support for GPIO Interrupt S5PV210/S5PC110 can use common S5P GPIO interrupt code. This patch adds required defines and code to make use of it. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park [kgene.kim@samsung.com: minor title fixes] Signed-off-by: Kukjin Kim commit 170a46177094b390299d1206748d7f15cd375dc9 Author: Marek Szyprowski Date: Fri Oct 1 10:40:37 2010 +0900 ARM: S5P: Add common S5P GPIO Interrupt support This patch adds common code to enable support of GPIO interrupt on S5P SoCs. The total number of GPIO pins is quite large on S5P SoCs. Registering irq support for all of them would be a resource waste. Because of that the interrupt support for standard GPIO pins is registered dynamically by the s5p_register_gpio_interrupt() function. Signed-off-by: Marek Szyprowski Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park [kgene.kim@samsung.com: minor title fixes] Signed-off-by: Kukjin Kim commit ca1931ca1e87c32f9abaef378c6996b25774cb02 Author: Marek Szyprowski Date: Wed Sep 29 22:10:51 2010 +0900 ARM: S5PV210: Enable USB HSOTG gadget build Add the necessary definitions and mapping information to enable the s3c-hsotg gadget to build. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park Signed-off-by: Kukjin Kim commit e9dde6f1d96e782616f423bae8b46a85748d7ef0 Author: Marek Szyprowski Date: Wed Sep 29 22:05:19 2010 +0900 ARM: S5PV210: Add Support for MMC regulators on GONI board Add required platform definitions for MMC power regulators on Samsung Goni board. GPIO pin GONI_EXT_FLASH_EN has been transferred from machine startup code to fixed voltage regulator. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park Reviewed-by: Mark Brown Signed-off-by: Kukjin Kim commit d5889d5d1405b8f0e3f7a552ea899fad08d2d85a Author: Marek Szyprowski Date: Thu Sep 30 20:59:46 2010 +0900 ARM: S5PV210: Add Support for OTG USB Gadget on GONI board Add required platform definitions for s3c-hsotg driver to enable usb gadget support on Samsung Goni board. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park Signed-off-by: Kukjin Kim commit e4615b8607909bcc31ef90a6c04b4f951ea133e1 Author: Marek Szyprowski Date: Wed Sep 29 21:50:04 2010 +0900 ARM: S5PV210: fb setup for GONI - remove pixel clock Since commit 67a38950f0917aecfe1a3e46720d8bbb0020 there is no need to set pixel clock for the s3c-fb driver's window information. The correct pixel clock value can be automatically calculated from the other screen parameters. This patch removes the redundant pixel clock parameter. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park Signed-off-by: Kukjin Kim commit 9d1fc39c2c47e7bd15c56a976e5cb7f5541669f1 Author: Marek Szyprowski Date: Wed Sep 29 21:49:17 2010 +0900 ARM: S5PV210: update framebuffer setup information for GONI Change the default upper_margin and vsync_len to get rid of repeated last line on the display. Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park Signed-off-by: Kukjin Kim commit 658bf4bef844c9a15e6700e1e27c939529f4a5ca Author: Thomas Abraham Date: Sat Oct 2 12:45:25 2010 +0900 ARM: S5P: Remove the unused clk_arm clock from plat-s5p All the S5P series SoCs use the 'struct clksrc_clk' type to represent the armclk. So the clk_arm clock instance available in the plat-s5p clock code is not used in any of the S5P series SoCs. This patch removes the unused clk_arm instance from plat-s5p clock code. Reported-by: Jaecheol Lee Signed-off-by: Thomas Abraham Signed-off-by: Kukjin Kim commit 5aed1f706b01ab27a307cf9983b2ee28d7d88919 Author: Kukjin Kim Date: Wed Sep 29 21:20:56 2010 +0900 ARM: S5P64XX: Remove redundant selection PLAT_S5P. This patch removes redundant selection PLAT_S5P in the CPU_S5P64XX config. Because PLAT_S5P is selected if select ARCH_S5P64XX in the plat-s5p/Kconfig. Signed-off-by: Kukjin Kim commit 398151e6fe25d3e223f79f060f73ac17c73acbfb Author: Kyungmin Park Date: Wed Sep 29 21:37:50 2010 +0900 ARM: S5P: Remove redundant selection PLAT_S5P for S5PC100, S5PV210 and S5PV310 The selection PLAT_S5P is selected with plat-s5p/Kconfig. So remove it form each CPU_S5PXXXX config. Signed-off-by: Kyungmin Park [kgene.kim@samsung.com: edited title] Signed-off-by: Kukjin Kim commit f567fa6f62d263b50125b3321f43ba77c221dd82 Author: Kyungmin Park Date: Wed Sep 29 21:33:29 2010 +0900 ARM: S5PV310: Place the common SPARSEMEM at ARCH_S5PV310 In case of S5PV310/S5PC210, it uses the SPARSEMEM as default memory configuration. So moved to ARCH_S5PV310 config. Signed-off-by: Kyungmin Park [kgene.kim@samsung.com: edited title] Signed-off-by: Kukjin Kim commit eecb6a8420fde47ebc37d03f72ef6dcb8e93c0ef Author: Kyungmin Park Date: Wed Sep 29 21:29:27 2010 +0900 ARM: S5PV210: Place the common SPARSEMEM at ARCH_S5PV210 In case of S5PV210/S5PC110, it uses the SPARSEMEM as default memory configuration. So moved to ARCH_S5PV210 config. Signed-off-by: Kyungmin Park [kgene.kim@samsung.com: edited title] Signed-off-by: Kukjin Kim commit 50442b55e3a96c98229b36d1bcca0c5c4d81fe15 Author: Kyuho Choi Date: Wed Sep 29 20:51:03 2010 +0900 ARM: S5PV210: Add Torbreck board support This patch adds to support Torbreck board of aESOP community using Samsung S5PV210 SoC. Signed-off-by: Kyuho Choi Signed-off-by: Hyunchul Ko Signed-off-by: Kukjin Kim commit 1114275674787ac2f5f27f2c10368890d27fae1c Author: Boojin Kim Date: Wed Sep 29 20:42:15 2010 +0900 ARM: S5PV310: Fix physical address of System Controller Register The physical address of SYSCON(System Controller) is wrong. This patch fixs this wrong physical address value from 0x10020000 to 0x10010000. Signed-off-by: Boojin Kim Signed-off-by: Kukjin Kim commit 0c0f909689c8387265a3682d4205c063071ec36a Author: Changhwan Youn Date: Wed Sep 29 20:31:42 2010 +0900 ARM: S5PV310: Optimize interrupt source searching code It is reported by Junseok Jung that using clz instruction is better instead of using for-loop to find the interrupt source. This patch modifies interrupt source searching code using __ffs(). The __ffs() is implemented using clz instruction. Suggested-by: Junseok Jung Signed-off-by: Changhwan Youn Signed-off-by: Kukjin Kim commit 8d75c9128a07bd1f81952a518ed818d1a3e90c96 Author: Jemings Ko Date: Mon Sep 20 15:33:04 2010 +0900 ARM: S5PV310: Add support Watchdog Timer This patch adds support Watchdog Timer for S5PV310 and S5PC210. Signed-off-by: Jemings Ko Signed-off-by: Kukjin Kim commit cdff6e6fd2d4360e2d5bc39afe3f1ef17d79dbf0 Author: Changhwan Youn Date: Mon Sep 20 15:25:51 2010 +0900 ARM: S5PV310: Add support RTC This patch adds support RTC for S5PV310 and S5PC210. Signed-off-by: Changhwan Youn Signed-off-by: Jemings Ko Signed-off-by: Kukjin Kim commit 1d826d14cc2783d0c09750c2e1eeb2bdd358769b Author: Jaecheol Lee Date: Wed Sep 15 15:57:37 2010 +0900 ARM: S5PV210: Add DMC map_desc table for supporting DMC access This patch adds DMC(DRAM Memory Controller) map_desc table. Because some driver such as CPUFREQ need to access DMC register. Signed-off-by: Jaecheol Lee Signed-off-by: Kukjin Kim commit 2a5555822ea83d583b46437cff6829eec0166475 Author: Joonyoung Shim Date: Thu Sep 9 08:17:43 2010 +0900 ARM: S5PV210: Add keypad device to the GONI board This patch is to support keypad device to the GONI board. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park Signed-off-by: Kukjin Kim commit 8f3b9cff23ed15c1ef2f4e60c677f3c7d5e535ce Author: Jaecheol Lee Date: Sat Sep 18 10:50:46 2010 +0900 ARM: S5PV310: Fix clkset_moutcore_list This patch fixes source clocks of moutcore. That should be clk_mout_apll instead of clk_sclk_apll. Signed-off-by: Jaecheol Lee Signed-off-by: Kukjin Kim commit eda9c023b1d6c986c7191de78ba3f09acf366c0f Author: Kukjin Kim Date: Fri Aug 20 21:09:18 2010 +0900 ARM: SAMSUNG: Change the 3rd HSMMC interrupt name for compatibility This patch changes the 3rd HSMMC interrupt name for compatibility from IRQ_MMC to IRQ_HSMMC3. Signed-off-by: Kukjin Kim commit 33f469d2d9ea1e4bd29b6840ea73cf0ea2f1515c Author: Jongpill Lee Date: Wed Aug 18 22:54:48 2010 +0900 ARM: S5PV310: Adds various special clocks This patch adds various special clocks for S5PV310/S5PC210. Signed-off-by: Jongpill Lee Signed-off-by: Kukjin Kim commit 06cba8d5b64945c137c47065ca864a16a2d5710c Author: Jongpill Lee Date: Wed Aug 18 22:51:23 2010 +0900 ARM: S5PV310: Add video clocks This patch adds video clocks for S5PV310/S5PC210. Signed-off-by: Jongpill Lee Signed-off-by: Kukjin Kim commit 82260bf38f36950f413ea6beb29717a3944752c3 Author: Jongpill Lee Date: Wed Aug 18 22:49:24 2010 +0900 ARM: S5PV310: Add various clocks This patch adds various clocks for S5PV310/S5PC210. Signed-off-by: Jongpill Lee Signed-off-by: Kukjin Kim commit 340ea1ef4b3d14d621f7a696341bf6cdf2bc188f Author: Jongpill Lee Date: Wed Aug 18 22:39:26 2010 +0900 ARM: S5PV310: Adds SDMMC clock for S5PV310 This patch adds SDMMC clocks for S5PV310/S5PC210. Signed-off-by: Jongpill Lee Signed-off-by: Kukjin Kim commit 37e017292f56f3d39fb497d7fc9038967095e230 Author: Jongpill Lee Date: Wed Aug 18 22:33:43 2010 +0900 ARM: S5PV310: Adds enable and ctrlbit for clk_vpllsrc This patch adds enable and ctrlbit for struct clksrc_clk clk_vpllsrc Signed-off-by: Jongpill Lee Signed-off-by: Kukjin Kim commit 228ef9872b5c7e6fdb67a7a04547b33284242940 Author: Jongpill Lee Date: Wed Aug 18 22:24:53 2010 +0900 ARM: S5PV310: Adds printing ACLK200, ACLK100, ACLK160 and ACLK133 This patch adds log messages of aclk_200, aclk_100, aclk_160, and aclk_133. And adds clk_p.rate from calculated aclk_100. Signed-off-by: Jongpill Lee Signed-off-by: Kukjin Kim commit b99380e1047842de199089cc0945d5d9f0ff6a17 Author: Jongpill Lee Date: Wed Aug 18 22:16:45 2010 +0900 ARM: S5PV310: Adds clk_sclk_usbphy0, _usbphy1, and _hdmiphy This patch adds struct clk clk_sclk_usbphy0, _usbphy1, and _hdmiphy for adding member of clkset_group_list. Signed-off-by: Jongpill Lee Signed-off-by: Kukjin Kim commit 9e23552f8ecf85cd4a74741051ed2cfbab630164 Author: Kukjin Kim Date: Wed Aug 18 22:06:02 2010 +0900 ARM: S5PV310: Adds clkset_aclk for removing clkset_aclk_xxx This patch adds 'clkset_aclk' to use commonly. And removed struct clksrc_sources clkset_aclk_200, clkset_aclk_100, clkset_aclk_160, and clkset_aclk_133. Signed-off-by: Kukjin Kim commit a6aa7a55848ff84b2f296ad30726f0e1ebc5f0ea Author: Kukjin Kim Date: Wed Aug 18 22:03:19 2010 +0900 ARM: S5PV310: Removed unused clock This pach removed unused clock on S5PV310/S5PC210. Signed-off-by: Kukjin Kim commit e33ed879f02182b01a601ae3de70acd536c894c2 Author: Kukjin Kim Date: Wed Aug 18 21:59:01 2010 +0900 ARM: S5PV310: Adds clock addresses for S5PV310 This patch adds definition of clock address. Signed-off-by: Kukjin Kim commit 11adcc29f068229ca77fb91b42047f1a03cf500c Author: Changhwan Youn Date: Fri Aug 20 18:17:51 2010 +0900 ARM: S5PV310: Add CPU hotplug support for S5PV310 This patch adds CPU hotplug support for S5PV310/S5PC210. Signed-off-by: Changhwan Youn Signed-off-by: Kukjin Kim commit 34d79315a22b743a8f4e26c2e11fa16469c71473 Author: Kyungmin Park Date: Sat Aug 21 09:49:49 2010 +0900 ARM: S5PV310: Add GPIO keys at Universal board Universal board has 5 GPIO keys. Signed-off-by: Kyungmin Park Signed-off-by: Kukjin Kim commit ca0ffd469af6a00a24a1f888ac280e3e7d4951f5 Author: Kukjin Kim Date: Fri Aug 6 20:33:46 2010 +0900 ARM: S5PV310: update S5PV310 Kconfig for supporting multiple machines This patch updates Kconfig of mach-s5pv310 for easily dividing S5PC210 and S5PV310 boards. S5PC210(MCP) machines and S5PV310 machines can be build into one kernel, this will be provied/submitted when new defconfig can be merged. Signed-off-by: Kukjin Kim commit 50fe56d24897838d5b65ee4d4baa6cad73de804b Author: Greg Kroah-Hartman Date: Wed Oct 20 15:51:57 2010 -0700 Staging: hv: make alloc_channel static It's only used in one file, and is a pretty generic name. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit c05b48af822c415baeadafa6c4a4ea7f79f337db Author: Kukjin Kim Date: Fri Aug 6 20:12:06 2010 +0900 ARM: S5PV310: Add SMDKC210 board support file This patch adds Samsung SMDKC210 board support file. The SoC of SMDKC210, S5PC210(MCP) is one of package option of S5PV310. And because composition of SMDKC210 and SMDKV310 differs, need SMDKC210 with SMDKV310. Signed-off-by: Kukjin Kim commit 77099f0afe94928b5b0066a7efa5fa9f81696b54 Author: Andy Shevchenko Date: Wed Oct 20 18:47:44 2010 +0300 staging: batman-adv: remove useless addr_to_string() Since all *printf() methods in the kernel understand '%pM' modifier the conversion to the string is useless beforehand. Additionally this patch decreases batman_if structure by 20 bytes. Signed-off-by: Andy Shevchenko Cc: Marek Lindner Cc: Simon Wunderlich Cc: Andrew Lunn Signed-off-by: Greg Kroah-Hartman commit fe894f97ad89951a7bdb150ad5645178b89fd6b7 Author: Darius Augulis Date: Tue Oct 19 16:10:02 2010 +0900 ARM: S3C64XX: add touchscreen support for mach-mini6410 Add touchscreen device support for mach-mini6410 Signed-off-by: Darius Augulis Signed-off-by: Kukjin Kim commit bbd7ac63a6bfdb7bd10471441b431b283e96edad Author: Darius Augulis Date: Tue Oct 19 16:09:59 2010 +0900 ARM: S3C64XX: add backlight control for mach-mini6410 Add support for platform-lcd device for mach-mini6410 Signed-off-by: Darius Augulis Signed-off-by: Kukjin Kim commit 2abca87cb691485fdff348c279e5a928e51ceb5d Author: Darius Augulis Date: Tue Oct 19 16:06:54 2010 +0900 ARM: S3C64XX: add frame buffer support for mach-mini6410 Add support for frame buffer device for mach-mini6410. Patch also adds support for feature string parsing for mini6410. The feature string is kernel command line passed and currently lets select only LCD configuration. At the moment there is support for two LCD configurations - 4.3" and 7.0". Feature parser is mach-mini2440 based. Signed-off-by: Darius Augulis Signed-off-by: Kukjin Kim commit 1c5d76ef3064b6a939146023b7e1577f528b29a6 Author: Darius Augulis Date: Tue Oct 19 16:04:16 2010 +0900 ARM: S3C64XX: add nand support for mach-mini6410 Add nand device support and mtd partition table for mini6410 Signed-off-by: Darius Augulis Signed-off-by: Kukjin Kim commit e9debd989b33a3bbdde39e2a21ee92e11a8a360a Author: Darius Augulis Date: Thu Oct 21 07:42:29 2010 +0900 ARM: S3C64XX: add support for mach-mini6410 Add support for mini6410 board from FriendlyARM Signed-off-by: Darius Augulis Signed-off-by: Kukjin Kim commit efa4c1206eaff047c474af2136748a58eb8cc33b Author: Sage Weil Date: Mon Oct 18 14:04:31 2010 -0700 ceph: do not carry i_lock for readdir from dcache We were taking dcache_lock inside of i_lock, which introduces a dependency not found elsewhere in the kernel, complicationg the vfs locking scalability work. Since we don't actually need it here anyway, remove it. We only need i_lock to test for the I_COMPLETE flag, so be careful to do so without dcache_lock held. Signed-off-by: Sage Weil commit 61413c2f594e6b63db2b14c70c2e7d8cf02f9c00 Author: Julia Lawall Date: Sun Oct 17 21:55:21 2010 +0200 fs/ceph/xattr.c: Use kmemdup Convert a sequence of kmalloc and memcpy to use kmemdup. The semantic patch that performs this transformation is: (http://coccinelle.lip6.fr/) // @@ expression a,flag,len; expression arg,e1,e2; statement S; @@ a = - \(kmalloc\|kzalloc\)(len,flag) + kmemdup(arg,len,flag) <... when != a if (a == NULL || ...) S ...> - memcpy(a,arg,len+1); // Signed-off-by: Julia Lawall Signed-off-by: Sage Weil commit 85b5aaa624aac568b8a3a88dbe4de6628c7cc527 Author: Dan Carpenter Date: Mon Oct 11 21:15:11 2010 +0200 rbd: passing wrong variable to bvec_kunmap_irq() We should be passing "buf" here insead of "bv". This is tricky because it's not the same as kmap() and kunmap(). GCC does warn about it if you compile on i386 with CONFIG_HIGHMEM. Signed-off-by: Dan Carpenter Signed-off-by: Sage Weil commit b8d0638a98aa4a42ff322234b882487cd74e5c52 Author: Dan Carpenter Date: Mon Oct 11 21:14:23 2010 +0200 rbd: null vs ERR_PTR ceph_alloc_page_vector() returns ERR_PTR(-ENOMEM) on errors. Signed-off-by: Dan Carpenter Signed-off-by: Sage Weil commit 240634e9b3a8ae2a9e2b7effeea3b9a5b30d68fb Author: Sage Weil Date: Tue Oct 5 12:03:23 2010 -0700 ceph: fix num_pages_free accounting in pagelist Decrement the free page counter when removing a page from the free_list. Signed-off-by: Sage Weil commit 571dba52a34015a5a7aa5d480a86936878444a6f Author: Greg Farnum Date: Fri Sep 24 14:56:40 2010 -0700 ceph: add CEPH_MDS_OP_SETDIRLAYOUT and associated ioctl. Signed-off-by: Sage Weil commit 010e3b48fca57920557d2b80b83f8b2899fb5d1e Author: Yehuda Sadeh Date: Thu Sep 30 11:58:31 2010 -0700 ceph: don't crash when passed bad mount options This only happened when parse_extra_token was not passed to ceph_parse_option() (hence, only happened in rbd). Signed-off-by: Yehuda Sadeh commit 6f453ed6c07dbed83b368269c9c0fb170866ee71 Author: Randy Dunlap Date: Tue Sep 28 09:53:10 2010 -0700 ceph: fix debugfs warnings Include "super.h" outside of CONFIG_DEBUG_FS to eliminate a compiler warning: fs/ceph/debugfs.c:266: warning: 'struct ceph_fs_client' declared inside parameter list fs/ceph/debugfs.c:266: warning: its scope is only this definition or declaration, which is probably not what you want fs/ceph/debugfs.c:271: warning: 'struct ceph_fs_client' declared inside parameter list Signed-off-by: Randy Dunlap Signed-off-by: Yehuda Sadeh commit f4cf3deef4c474381e8fee2e6099d49edd9105cb Author: Yehuda Sadeh Date: Mon Sep 27 10:51:53 2010 -0700 block: rbd: removing unnecessary test rbd_get_segment() can't return a negative value, we don't need to check the return output. Signed-off-by: Yehuda Sadeh commit 28f259b7cd78eb29d38b7ae6b475d656e08fd348 Author: Vasiliy Kulikov Date: Sun Sep 26 12:59:37 2010 +0400 block: rbd: fixed may leaks rbd_client_create() doesn't free rbdc, this leads to many leaks. seg_len in rbd_do_op() is unsigned, so (seg_len < 0) makes no sense. Also if fixed check fails then seg_name is leaked. Signed-off-by: Vasiliy Kulikov Signed-off-by: Yehuda Sadeh commit 496e59553c51ce18acc836de070106b583926b87 Author: Sage Weil Date: Wed Sep 22 19:57:10 2010 -0700 ceph: switch from BKL to lock_flocks() Switch from using the BKL explicitly to the new lock_flocks() interface. Eventually this will turn into a spinlock. Signed-off-by: Sage Weil commit fca4451acfdcf894154e4809529ca28a09db88ff Author: Greg Farnum Date: Fri Sep 17 10:24:02 2010 -0700 ceph: preallocate flock state without locks held When the lock_kernel() turns into lock_flocks() and a spinlock, we won't be able to do allocations with the lock held. Preallocate space without the lock, and retry if the lock state changes out from underneath us. Signed-off-by: Greg Farnum Signed-off-by: Sage Weil commit ac0b74d8a1ced8ea86147467daf06b15b130dd94 Author: Greg Farnum Date: Fri Sep 17 10:10:55 2010 -0700 ceph: add pagelist_reserve, pagelist_truncate, pagelist_set_cursor These facilitate preallocation of pages so that we can encode into the pagelist in an atomic context. Signed-off-by: Greg Farnum Signed-off-by: Sage Weil commit 18a38193efcaac1fb3c94ad8fa04bb117850a3c2 Author: Sage Weil Date: Fri Sep 17 10:46:44 2010 -0700 ceph: use mapping->nrpages to determine if mapping is empty This is simpler and faster. Signed-off-by: Sage Weil commit 93afd449aa3c0430ef409c13e1cb2b3f0458fc10 Author: Sage Weil Date: Fri Sep 17 08:38:25 2010 -0700 ceph: only invalidate on check_caps if we actually have pages The i_rdcache_gen value only implies we MAY have cached pages; actually check the mapping to see if it's worth bothering with an invalidate. Signed-off-by: Sage Weil commit 4c32f5dda5ffe23687a55da1538b7cc426710d1a Author: Sage Weil Date: Tue Aug 24 16:27:36 2010 -0700 ceph: do not hide .snap in root directory Snaps in the root directory are now supported by the MDS, and harmless on older versions. Signed-off-by: Sage Weil commit 602adf400201636e95c3fed9f31fba54a3d7e844 Author: Yehuda Sadeh Date: Thu Aug 12 16:11:25 2010 -0700 rbd: introduce rados block device (rbd), based on libceph The rados block device (rbd), based on osdblk, creates a block device that is backed by objects stored in the Ceph distributed object storage cluster. Each device consists of a single metadata object and data striped over many data objects. The rbd driver supports read-only snapshots. Signed-off-by: Yehuda Sadeh Signed-off-by: Sage Weil commit 3d14c5d2b6e15c21d8e5467dc62d33127c23a644 Author: Yehuda Sadeh Date: Tue Apr 6 15:14:15 2010 -0700 ceph: factor out libceph from Ceph file system This factors out protocol and low-level storage parts of ceph into a separate libceph module living in net/ceph and include/linux/ceph. This is mostly a matter of moving files around. However, a few key pieces of the interface change as well: - ceph_client becomes ceph_fs_client and ceph_client, where the latter captures the mon and osd clients, and the fs_client gets the mds client and file system specific pieces. - Mount option parsing and debugfs setup is correspondingly broken into two pieces. - The mon client gets a generic handler callback for otherwise unknown messages (mds map, in this case). - The basic supported/required feature bits can be expanded (and are by ceph_fs_client). No functional change, aside from some subtle error handling cases that got cleaned up in the refactoring process. Signed-off-by: Sage Weil commit ae1533b62b3369e6ae32338f4a77d64d0e88f676 Author: Yehuda Sadeh Date: Tue May 18 16:38:08 2010 -0700 ceph-rbd: osdc support for osd call and rollback operations This will be used for rbd snapshots administration. Signed-off-by: Yehuda Sadeh commit 68b4476b0bc13fef18266b4140309a30e86739d2 Author: Yehuda Sadeh Date: Tue Apr 6 15:01:27 2010 -0700 ceph: messenger and osdc changes for rbd Allow the messenger to send/receive data in a bio. This is added so that we wouldn't need to copy the data into pages or some other buffer when doing IO for an rbd block device. We can now have trailing variable sized data for osd ops. Also osd ops encoding is more modular. Signed-off-by: Yehuda Sadeh Signed-off-by: Sage Weil commit 3499e8a5d4dbb083324efd942e2c4fb7eb65f27c Author: Yehuda Sadeh Date: Tue Apr 6 14:51:47 2010 -0700 ceph: refactor osdc requests creation functions The osd requests creation are being decoupled from the vino parameter, allowing clients using the osd to use other arbitrary object names that are not necessarily vino based. Also, calc_raw_layout now takes a snap id. Signed-off-by: Yehuda Sadeh Signed-off-by: Sage Weil commit 7669a2c95e502a77f93f27e5449fc93a00d588b6 Author: Yehuda Sadeh Date: Mon May 17 12:31:35 2010 -0700 ceph: lookup pool in osdmap by name Implement a pool lookup by name. This will be used by rbd. Signed-off-by: Yehuda Sadeh Signed-off-by: Sage Weil commit 932967202182743c01a2eee4bdfa2c42697bc586 Author: Shaohua Li Date: Wed Oct 20 11:07:03 2010 +0800 x86: Spread tlb flush vector between nodes Currently flush tlb vector allocation is based on below equation: sender = smp_processor_id() % 8 This isn't optimal, CPUs from different node can have the same vector, this causes a lot of lock contention. Instead, we can assign the same vectors to CPUs from the same node, while different node has different vectors. This has below advantages: a. if there is lock contention, the lock contention is between CPUs from one node. This should be much cheaper than the contention between nodes. b. completely avoid lock contention between nodes. This especially benefits kswapd, which is the biggest user of tlb flush, since kswapd sets its affinity to specific node. In my test, this could reduce > 20% CPU overhead in extreme case.The test machine has 4 nodes and each node has 16 CPUs. I then bind each node's kswapd to the first CPU of the node. I run a workload with 4 sequential mmap file read thread. The files are empty sparse file. This workload will trigger a lot of page reclaim and tlbflush. The kswapd bind is to easy trigger the extreme tlb flush lock contention because otherwise kswapd keeps migrating between CPUs of a node and I can't get stable result. Sure in real workload, we can't always see so big tlb flush lock contention, but it's possible. [ hpa: folded in fix from Eric Dumazet to use this_cpu_read() ] Signed-off-by: Shaohua Li LKML-Reference: <1287544023.4571.8.camel@sli10-conroe.sh.intel.com> Cc: Eric Dumazet Signed-off-by: H. Peter Anvin commit c957ef2c59e952803766ddc22e89981ab534606f Author: Shaohua Li Date: Wed Oct 20 11:07:02 2010 +0800 percpu: Introduce a read-mostly percpu API Add a new readmostly percpu section and API. This can be used to avoid dirtying data lines which are generally not written to, which is especially important for data which may be accessed by processors other than the one for which the percpu area belongs to. [ hpa: moved it *after* the page-aligned section, for obvious reasons. ] Signed-off-by: Shaohua Li LKML-Reference: <1287544022.4571.7.camel@sli10-conroe.sh.intel.com> Cc: Eric Dumazet Signed-off-by: H. Peter Anvin commit b40827fa7268fda8a62490728a61c2856f33830b Author: Borislav Petkov Date: Sat Aug 28 15:58:33 2010 +0200 x86-32, mm: Add an initial page table for core bootstrapping This patch adds an initial page table with low mappings used exclusively for booting APs/resuming after ACPI suspend/machine restart. After this, there's no need to add low mappings to swapper_pg_dir and zap them later or create own swsusp PGD page solely for ACPI sleep needs - we have initial_page_table for that. Signed-off-by: Borislav Petkov LKML-Reference: <20101020070526.GA9588@liondog.tnic> Signed-off-by: H. Peter Anvin commit d25e6b0b326278a1096e8334584c3e64517057a3 Merge: e44dea3 40ffa93 Author: H. Peter Anvin Date: Wed Oct 20 14:22:45 2010 -0700 Merge branch 'x86/cleanups' into x86/trampoline commit e44dea35ccb78ab7dc3a75ccec71d7d6f35017c4 Merge: 51ea8a8 b0f4c06 Author: H. Peter Anvin Date: Wed Oct 20 13:18:17 2010 -0700 Merge branch 'x86/vmware' into x86/trampoline commit b5dc608c98d929abbf2fe932ed07b3c868d83342 Author: Chris Wilson Date: Wed Oct 20 20:59:57 2010 +0100 drm/i915: Copy the updated reloc->presumed_offset back to the user If the userspace driver is using a constant relocation array with a static buffer, they will pass the same relocation array back to the kernel. So we *do* need to update the presumed offset value in those relocations to reflect the current object so that they remain correct with future batchbuffers and we avoid the necessity of having to suspend execution and perform redundant relocations. Fixes the regression introduced by 12f889c for applications using absolute addressing on trees of buffer (i.e. the current consumers of libdrm_intel.so). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30996 Reported-by: Wang, Jinjin Signed-off-by: Chris Wilson commit f01f7c56a1425b9749a99af821e1de334fb64d7e Author: Borislav Petkov Date: Tue Oct 19 22:17:37 2010 +0000 x86, mm: Fix incorrect data type in vmalloc_sync_all() arch/x86/mm/fault.c: In function 'vmalloc_sync_all': arch/x86/mm/fault.c:238: warning: assignment makes integer from pointer without a cast introduced by 617d34d9e5d8326ec8f188c616aa06ac59d083fe. Signed-off-by: Borislav Petkov LKML-Reference: <20101020103642.GA3135@kryptos.osrc.amd.com> Signed-off-by: H. Peter Anvin commit b8b2663bd7c9da04ac804659b9f617c199d0252c Author: Steven Rostedt Date: Tue Oct 19 13:23:25 2010 -0400 ring-buffer: Remove unused macro RB_TIMESTAMPS_PER_PAGE With the binding of time extends to events we no longer need to use the macro RB_TIMESTAMPS_PER_PAGE. Remove it. Signed-off-by: Steven Rostedt commit d9abde2138e0a00a0d7e44676928efa0ef629d48 Author: Steven Rostedt Date: Tue Oct 19 13:17:08 2010 -0400 ring-buffer: Micro-optimize with some strategic inlining By using inline and noinline, we are able to make the fast path of recording an event 4% faster. Signed-off-by: Steven Rostedt commit 140ff89127c74b1b1c1b0152a36ea3720ccf6bc3 Author: Steven Rostedt Date: Fri Oct 8 10:50:30 2010 -0400 ring-buffer: Remove condition to add timestamp in fast path There's a condition to check if we should add a time extend or not in the fast path. But this condition is racey (in the sense that we can add a unnecessary time extend, but nothing that can break anything). We later check if the time or event time delta should be zero or have real data in it (not racey), making this first check redundant. This check may help save space once in a while, but really is not worth the hassle to try to save some space that happens at most 134 ms at a time. Signed-off-by: Steven Rostedt commit 69d1b839f7eee347e357b3f6cce7f630cc6ff93d Author: Steven Rostedt Date: Thu Oct 7 18:18:05 2010 -0400 ring-buffer: Bind time extend and data events together When the time between two timestamps is greater than 2^27 nanosecs (~134 ms) a time extend event is added that extends the time difference to 59 bits (~18 years). This is due to events only having a 27 bit field to store time. Currently this time extend is a separate event. We add it just before the event data that is being written to the buffer. But before the event data is committed, the event data can also be discarded (as with the case of filters). But because the time extend has already been committed, it will stay in the buffer. If lots of events are being filtered and no event is being written, then every 134ms a time extend can be added to the buffer without any data attached. To keep from filling the entire buffer with time extends, a time extend will never be the first event in a page because the page timestamp can be used. Time extends can only fill the rest of a page with some data at the beginning. This patch binds the time extend with the data. The difference here is that the time extend is not committed before the data is added. Instead, when a time extend is needed, the space reserved on the ring buffer is the time extend + the data event size. The time extend is added to the first part of the reserved block and the data is added to the second. The time extend event is passed back to the reserver, but since the reserver also uses a function to find the data portion of the reserved block, no changes to the ring buffer interface need to be made. When a commit is discarded, we now remove both the time extend and the event. With this approach no more than one time extend can be in the buffer in a row. Data must always follow a time extend. Thanks to Mathieu Desnoyers for suggesting this idea. Suggested-by: Mathieu Desnoyers Cc: Thomas Gleixner Signed-off-by: Steven Rostedt commit afcc5c6872f0215d515a637041bb51f8691a8ea7 Author: Steven Rostedt Date: Wed Oct 20 13:37:56 2010 -0400 ring-buffer: Remove ring_buffer_event_time_delta() The ring_buffer_event_time_delta() static inline function does not have any users. Remove it. Signed-off-by: Steven Rostedt commit 2d7d06dd8ffcbafc03bf2c1cb4b2fb2c4c405ec1 Author: Konrad Rzeszutek Wilk Date: Wed Oct 20 13:04:13 2010 -0400 xen: Update Makefile with CONFIG_BLOCK dependency for biomerge.c Without this dependency we get these compile errors: linux-next-20101020/drivers/xen/biomerge.c: In function 'xen_biovec_phys_mergeable': linux-next-20101020/drivers/xen/biomerge.c:8: error: dereferencing pointer to incomplete type linux-next-20101020/drivers/xen/biomerge.c:9: error: dereferencing pointer to incomplete type linux-next-20101020/drivers/xen/biomerge.c:11: error: implicit declaration of function '__BIOVEC_PHYS_MERGEABLE' Signed-off-by: Konrad Rzeszutek Wilk Reported-by: Randy Dunlap commit 31f9783f48388aacf7f791d607b16d36e63a2b79 Author: Konrad Rzeszutek Wilk Date: Wed Oct 20 11:34:16 2010 -0400 MAINTAINERS: Add myself to the Xen Hypervisor Interface and remove Chris Wright. Chris is working on other stuff now, and I am working full-time with Jeremy on these bits. Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Jeremy Fitzhardinge Acked-by: Chris Wright commit 2764c500be0c1f057349ee6c81557239de060f87 Author: Ilkka Koskinen Date: Tue Oct 19 17:07:31 2010 +0300 spi/omap2_mcspi: Verify TX reg is empty after TX only xfer with DMA In case of TX only with DMA, the driver assumes that the data has been transferred once DMA callback in invoked. However, SPI's shift register may still contain data. Thus, the driver is supposed to verify that the register is empty and the end of the SPI transfer has been reached. Signed-off-by: Ilkka Koskinen Tested-by: Tuomas Katila Acked-by: Tony Lindgren Signed-off-by: Grant Likely commit f25106aeab7408394b9dd707e5ecf557e269c723 Author: Steven Rostedt Date: Wed Oct 20 12:40:12 2010 -0400 ring-buffer: Pass delta by value and not by reference The delta between events is passed to the timestamp code by reference and the timestamp code will reset the value. But it can be reset from the caller. No need to pass it in by reference. By changing the call to pass by value, lets gcc optimize the code a bit more where it can store the delta in a register and not worry about updating the reference. Signed-off-by: Steven Rostedt commit e1993ed6420afd4421336d75e73641f75da87a7f Author: Jason Wang Date: Tue Oct 19 18:03:27 2010 +0800 spi/omap2_mcspi: disable channel after TX_ONLY transfer in PIO mode In the TX_ONLY transfer, the SPI controller also receives data simultaneously and saves them in the rx register. After the TX_ONLY transfer, the rx register will hold the random data received during the last tx transaction. If the direct following transfer is RX_ONLY, this random data has the possibility to affect this transfer like this: When the SPI controller is changed from TX_ONLY to RX_ONLY, the random data makes the rx register full immediately and triggers a dummy write automatically(in SPI RX_ONLY transfers, we need a dummy write to trigger the first transaction). So the first data received in the RX_ONLY transfer will be that random data instead of something meaningful. We can avoid this by inserting a Disable/Re-enable toggle of the channel after the TX_ONLY transfer, since it purges the rx register. Signed-off-by: Jason Wang Tested-by: Grazvydas Ignotas Acked-by: Tony Lindgren Signed-off-by: Grant Likely commit e8bc43e84fada397af1b677b07dbf26e6ac78fcc Author: Steven Rostedt Date: Wed Oct 20 10:58:02 2010 -0400 ring-buffer: Pass timestamp by value and not by reference The original code for the ring buffer had locations that modified the timestamp and that change was used by the callers. Now, the timestamp is not reused by the callers and there is no reason to pass it by reference. By changing the call to pass by value, lets gcc optimize the code a bit more where it can store the timestamp in a register and not worry about updating the reference. Signed-off-by: Steven Rostedt commit cb174681a9ececa6702f114b85bdf82144b6a5af Author: Jiri Slaby Date: Tue Oct 19 11:29:55 2010 +0200 HID: hidraw: fix window in hidraw_release There is a window between hidraw_table check and its dereference. In that window, the device may be unplugged and removed form the system and we will then dereference NULL. Lock that place properly so that either we get NULL and jump out or we can work with real pointer. Signed-off-by: Jiri Slaby Signed-off-by: Jiri Kosina commit 569b10a506c4d5bc7398d040930539d84d3a2186 Author: Antonio Ospite Date: Tue Oct 19 16:13:10 2010 +0200 HID: hid-sony: override usbhid_output_raw_report for Sixaxis Override usbhid_output_raw_report in order to force output reports (sent via hidraw_write, for instance) on the control endpoint. The Sony Sixaxis (PS3 Controller) accepts output reports only on the control endpoint, it silently discards them when they arrive over the interrupt endpoint where usbhid would normally deliver them. Signed-off-by: Antonio Ospite Signed-off-by: Jiri Kosina commit 6436b6a7a64f946c5a5f3d8a8c0e6404e2bda8d5 Author: Abhilash Kesavan Date: Wed Oct 20 19:43:35 2010 +0900 ARM: S3C2416: Add Power Management support for SMDK2416 Adds suspend-to-ram support for SMDK2416 based on existing 2412 PM code Signed-off-by: Abhilash Kesavan Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit e0e451ea092915fa683e5fe7a9e52df33726a5ac Author: Yauhen Kharuzhy Date: Wed Oct 20 19:40:46 2010 +0900 ARM: S3C24XX: Fix gpiolib support for ports K..M S3C2443 and S3C2416 has 12 GPIO banks (from A to M), increase ARCH_NR_GPIOS for this architectures. Also typo from previous commit has been fixed: CONFIG_CPU_S3C24XX instead CONFIG_CPU_244X. Signed-off-by: Yauhen Kharuzhy Tested-by: Vasily Khoruzhick Signed-off-by: Kukjin Kim commit f3305da35a26def93b476051f4d7b6bc791e561e Merge: 83fc3bc0 5de9e45 Author: Takashi Iwai Date: Wed Oct 20 12:22:11 2010 +0200 Merge remote branch 'alsa/devel' into topic/misc commit 27b75c95f10d249574d9c4cb9dab878107faede8 Author: Eric Dumazet Date: Fri Oct 15 05:44:11 2010 +0000 net: avoid RCU for NOCACHE dst There is no point using RCU for dst we allocate for a very short time (used once). Change dst_release() to take DST_NOCACHE into account, but also change skb_dst_set_noref() to force a refcount increment for such dst. This is a _huge_ gain, because we dont waste memory to store xx thousand of dsts. Instead of queueing them to RCU, we can free them instantly. CPU caches can stay hot, re-using same memory blocks to hold temporary dsts. Note : remove unneeded smp_mb__before_atomic_dec(); in dst_release(), since atomic_dec_return() implies a full memory barrier. Stress test, 160.000.000 udp frames sent, IP route cache disabled (DDOS). Before: real 0m38.091s user 0m13.189s sys 7m53.018s After: real 0m29.946s user 0m12.157s sys 7m40.605s For reference, if IP route cache was enabled : real 0m32.030s user 0m10.521s sys 8m15.243s Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 69dc4987cbe5fe70ae1c2a08906d431d53cdd242 Author: Chris Wilson Date: Tue Oct 19 10:36:51 2010 +0100 drm/i915: Track objects in global active list (as well as per-ring) To handle retirements, we need per-ring tracking of active objects. To handle evictions, we need global tracking of active objects. As we enable more rings, rebuilding the global list from the individual per-ring lists quickly grows tiresome and overly complicated. Tracking the active objects in two lists is the lesser of two evils. Signed-off-by: Chris Wilson commit 87acb0a550694ff1a7725ea3a73b80d8ccf56180 Author: Chris Wilson Date: Tue Oct 19 10:13:00 2010 +0100 drm/i915: Simplify most HAS_BSD() checks ... by always initialising the empty ringbuffer it is always then safe to check whether it is active. Signed-off-by: Chris Wilson commit 9af90d19f8a166694753b3f0558d3a8bcd66c0b5 Author: Chris Wilson Date: Sun Oct 17 10:01:56 2010 +0100 drm/i915: cache the last object lookup during pin_and_relocate() The most frequent relocation within a batchbuffer is a contiguous sequence of vertex buffer relocations, for which we can virtually eliminate the drm_gem_object_lookup() overhead by caching the last handle to object translation. In doing so we refactor the pin and relocate retry loop out of do_execbuffer into its own helper function and so improve the error paths. Signed-off-by: Chris Wilson commit e6484930d7c73d324bccda7d43d131088da697b9 Author: Tom Herbert Date: Mon Oct 18 18:04:39 2010 +0000 net: allocate tx queues in register_netdevice This patch introduces netif_alloc_netdev_queues which is called from register_device instead of alloc_netdev_mq. This makes TX queue allocation symmetric with RX allocation. Also, queue locks allocation is done in netdev_init_one_queue. Change set_real_num_tx_queues to fail if requested number < 1 or greater than number of allocated queues. Signed-off-by: Tom Herbert Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit bd25fa7ba59cd26094319dfba0011b48465f7355 Author: Tom Herbert Date: Mon Oct 18 18:00:16 2010 +0000 net: cleanups in RX queue allocation Clean up in RX queue allocation. In netif_set_real_num_rx_queues return error on attempt to set zero queues, or requested number is greater than number of allocated queues. In netif_alloc_rx_queues, do BUG_ON if queue_count is zero. Signed-off-by: Tom Herbert Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit 55513fb4281464e97aa1ff2b9c906ca5aed917c5 Author: Tom Herbert Date: Mon Oct 18 17:55:58 2010 +0000 net: fail alloc_netdev_mq if queue count < 1 In alloc_netdev_mq fail if requested queue_count < 1. Signed-off-by: Tom Herbert Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit 5eeaa2db162f1f6d83e988d4d28f4ba7be600e44 Merge: c5e90f5 c64557d Author: David S. Miller Date: Wed Oct 20 01:59:48 2010 -0700 Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 commit c5e90f562047ff9713183cf5e18f5e8997bc7373 Author: Changli Gao Date: Tue Oct 19 21:51:03 2010 +0000 phonet: remove the unused variable pn Signed-off-by: Changli Gao Signed-off-by: David S. Miller commit f13d493d9cf772d510d78ae00bb9f4d680b3170b Author: Neil Horman Date: Tue Oct 19 07:04:26 2010 +0000 netpoll: Revert napi_poll fix for bonding driver In an erlier patch I modified napi_poll so that devices with IFF_MASTER polled the per_cpu list instead of the device list for napi. I did this because the bonding driver has no napi instances to poll, it instead expects to check the slave devices napi instances, which napi_poll was unaware of. Looking at this more closely however, I now see this isn't strictly needed. As the bond driver poll_controller calls the slaves poll_controller via netpoll_poll_dev, which recursively calls poll_napi on each slave, allowing those napi instances to get serviced. The earlier patch isn't at all harmfull, its just not needed, so lets revert it to make the code cleaner. Sorry for the noise, Signed-off-by: Neil Horman Reviewed-by: WANG Cong Signed-off-by: David S. Miller commit 9ff76c951c5194d44a7cdce51d807d67fc3ae514 Author: Neil Horman Date: Tue Oct 19 07:04:25 2010 +0000 netpoll: Remove netpoll blocking from uninit path Some recent testing in netpoll with bonding showed this backtrace ------------[ cut here ]------------ kernel BUG at drivers/net/bonding/bonding.h:134! invalid opcode: 0000 [#1] SMP last sysfs file: /sys/devices/pci0000:00/0000:00:1d.2/usb7/devnum CPU 0 Pid: 1876, comm: rmmod Not tainted 2.6.36-rc3+ #10 D26928/ RIP: 0010:[] [] bond_uninit+0x6f4/0x7a0 RSP: 0018:ffff88003b1b5d58 EFLAGS: 00010296 RAX: ffff88003b9b6200 RBX: ffff8800373e8e00 RCX: 00000000000f4240 RDX: 00000000ffffffff RSI: 0000000000000286 RDI: 0000000000000286 RBP: ffff88003b1b5dc8 R08: 0000000000000000 R09: 00000001af7de920 R10: 0000000000000000 R11: ffff880002495e98 R12: ffff880037922700 R13: ffff880038c31000 R14: ffff880037922730 R15: 0000000000000286 FS: 00007f90e6d72700(0000) GS:ffff880002400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 000000346f0d9ad0 CR3: 000000003b263000 CR4: 00000000000006f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process rmmod (pid: 1876, threadinfo ffff88003b1b4000, task ffff88003b36aa80) Stack: 00000000ffffffff ffff88003b1b5d7a ffff8800379221e8 ffff880037922000 <0> ffff88003b1b5dc8 ffffffff813eb5fb ffff88003b1b5da8 0000000031b177a3 <0> ffff88003b1b5da8 ffff880037922000 ffff88003b1b5e48 ffff88003b1b5e48 Call Trace: [] ? rtmsg_ifinfo+0xcb/0xf0 [] rollback_registered_many+0x168/0x280 [] unregister_netdevice_many+0x19/0x80 [] __rtnl_kill_links+0x63/0x90 [] __rtnl_link_unregister+0x2b/0x60 [] rtnl_link_unregister+0x1e/0x30 [] bonding_exit+0x37/0x51 [bonding] [] sys_delete_module+0x19e/0x270 [] ? audit_syscall_entry+0x252/0x280 [] system_call_fastpath+0x16/0x1b RIP [] bond_uninit+0x6f4/0x7a0 [bonding] RSP ---[ end trace 1395ad691cea24d1 ]--- It occurs because of my recent netpoll blocking patches, which I added to avoid recursive deadlock in the bonding driver. It relies on some per cpu bits, but the shutdown path forces some rescheduling as we cancel workqueues for the driver and wait for some device refcounts. If after the forced reschedule, we wind up on a different cpu we trigger the bughalt in unblock_netpoll_tx. The fix is to remove the netpoll block/unblock calls from bond_release_all. This is safe to do because bond_uninit, which is called via ndo_uninit in rollback_registered_many, doesn't occur until we send a NETDEV_UNREGISTER event, which triggers netconsole to remove us as a netpoll client, so we are guaranteed not to recurse into our own tx path here. Signed-off-by: Neil Horman Reviewed-by: WANG Cong Signed-off-by: David S. Miller commit 5de9e45fcfccdf8151a82fc1a521e7042cbe482a Author: Jaroslav Kysela Date: Wed Oct 20 09:33:03 2010 +0200 ALSA: snd-aloop - add pause support Signed-off-by: Jaroslav Kysela commit dd04bb12d047a4d4461772093472a40dbe171e5f Author: Jaroslav Kysela Date: Wed Oct 20 08:27:02 2010 +0200 ALSA: snd-aloop - fix locking issues (running flag updates) On SMP machines, the cable->running update must be atomic, otherwise stream is not started correctly sometimes. Signed-off-by: Jaroslav Kysela commit 6451d7783ba5ff24eb1a544eaa6665b890f30466 Author: Nicolas Pitre Date: Thu Oct 14 22:21:46 2010 -0400 arm: remove machine_desc.io_pg_offst and .phys_io Since we're now using addruart to establish the debug mapping, we can remove the io_pg_offst and phys_io members of struct machine_desc. The various declarations were removed using the following script: grep -rl MACHINE_START arch/arm | xargs \ sed -i '/MACHINE_START/,/MACHINE_END/ { /\.\(phys_io\|io_pg_offst\)/d }' [ Initial patch was from Jeremy Kerr, example script from Russell King ] Signed-off-by: Nicolas Pitre Acked-by: Eric Miao commit c293393faa8e11a5a80a9e358718432b8697f451 Author: Jeremy Kerr Date: Wed Jul 7 11:19:48 2010 +0800 arm: use addruart macro to establish debug mappings Since we can get both physical and virtual addresses from the addruart macro, we can use this to establish the debug mappings. In the case of CONFIG_DEBUG_ICEDCC, we don't need any mappings, but may still need to setup r7 correctly. Incorporating ASM changes from Nicolas Pitre . Signed-off-by: Jeremy Kerr Tested-by: Kevin Hilman commit 0ea1293009826da45e1019f45dfde1e557bb30df Author: Jeremy Kerr Date: Tue Jul 6 18:30:06 2010 +0800 arm: return both physical and virtual addresses from addruart Rather than checking the MMU status in every instance of addruart, do it once in kernel/debug.S, and change the existing addruart macros to return both physical and virtual addresses. The main debug code can then select the appropriate address to use. This will also allow us to retreive the address of a uart for the MMU state that we're not current in. Updated with fixes for OMAP from Jason Wang and Tony Lindgren , and fix for versatile express from Lorenzo Pieralisi . Signed-off-by: Jeremy Kerr Signed-off-by: Lorenzo Pieralisi Signed-off-by: Jason Wang Signed-off-by: Tony Lindgren Tested-by: Kevin Hilman commit 1ea64615601229f0dc16dee91dc5b50216411baa Author: Jeremy Kerr Date: Wed Jul 21 10:40:50 2010 +0200 arm/debug: consolidate addruart macros for CONFIG_DEBUG_ICEDCC We have the same (empty) macro for all IDEDCC flavours, so consolidate it to one. Signed-off-by: Jeremy Kerr commit d71e3eb5894dbb626dc7e28cfd4f33ebee9a739a Author: Nicolas Pitre Date: Thu Oct 14 22:37:52 2010 -0400 ARM: make struct machine_desc definition coherent with its comment As mentioned in the comment right at the top, the first four fields are directly accessed by assembly code in head.S. Move nr_irqs so the comment is true again. Signed-off-by: Nicolas Pitre commit 27afdf2008da0b8878a73e32e4eb12381b84e224 Author: Robert Richter Date: Wed Oct 6 12:27:54 2010 +0200 apic, x86: Use BIOS settings for IBS and MCE threshold interrupt LVT offsets We want the BIOS to setup the EILVT APIC registers. The offsets were hardcoded and BIOS settings were overwritten by the OS. Now, the subsystems for MCE threshold and IBS determine the LVT offset from the registers the BIOS has setup. If the BIOS setup is buggy on a family 10h system, a workaround enables IBS. If the OS determines an invalid register setup, a "[Firmware Bug]: " error message is reported. We need this change also for upcomming cpu families. Signed-off-by: Robert Richter LKML-Reference: <1286360874-1471-3-git-send-email-robert.richter@amd.com> Signed-off-by: Ingo Molnar commit a68c439b1966c91f0ef474e2bf275d6792312726 Author: Robert Richter Date: Wed Oct 6 12:27:53 2010 +0200 apic, x86: Check if EILVT APIC registers are available (AMD only) This patch implements checks for the availability of LVT entries (APIC500-530) and reserves it if used. The check becomes necessary since we want to let the BIOS provide the LVT offsets. The offsets should be determined by the subsystems using it like those for MCE threshold or IBS. On K8 only offset 0 (APIC500) and MCE interrupts are supported. Beginning with family 10h at least 4 offsets are available. Since offsets must be consistent for all cores, we keep track of the LVT offsets in software and reserve the offset for the same vector also to be used on other cores. An offset is freed by setting the entry to APIC_EILVT_MASKED. If the BIOS is right, there should be no conflicts. Otherwise a "[Firmware Bug]: ..." error message is generated. However, if software does not properly determines the offsets, it is not necessarily a BIOS bug. Signed-off-by: Robert Richter LKML-Reference: <1286360874-1471-2-git-send-email-robert.richter@amd.com> Signed-off-by: Ingo Molnar commit 14d4962dc863ab42e898d66d4837aa6c3afedc3b Merge: 9717967 2b666ca Author: Ingo Molnar Date: Wed Oct 20 04:38:56 2010 +0200 Merge branch 'linus' into irq/core Merge reason: update to almost-final-.36 Signed-off-by: Ingo Molnar commit 6eaa61496fb3b93cceface7a296415fc4c030bce Author: Trond Myklebust Date: Mon Oct 4 17:59:08 2010 -0400 NFSv4: Don't call nfs4_reclaim_complete() on receiving NFS4ERR_STALE_CLIENTID If the server sends us an NFS4ERR_STALE_CLIENTID while the state management thread is busy reclaiming state, we do want to treat all state that wasn't reclaimed before the STALE_CLIENTID as if a network partition occurred (see the edge conditions described in RFC3530 and RFC5661). What we do not want to do is to send an nfs4_reclaim_complete(), since we haven't yet even started reclaiming state after the server rebooted. Signed-off-by: Trond Myklebust Cc: stable@kernel.org commit ae1007d37e00144b72906a4bdc47d517ae91bcc1 Author: Trond Myklebust Date: Mon Oct 4 17:59:08 2010 -0400 NFSv4: Don't call nfs4_state_mark_reclaim_reboot() from error handlers In the case of a server reboot, the state recovery thread starts by calling nfs4_state_end_reclaim_reboot() in order to avoid edge conditions when the server reboots while the client is in the middle of recovery. However, if the client has already marked the nfs4_state as requiring reboot recovery, then the above behaviour will cause the recovery thread to treat the open as if it was part of such an edge condition: the open will be recovered as if it was part of a lease expiration (and all the locks will be lost). Fix is to remove the call to nfs4_state_mark_reclaim_reboot from nfs4_async_handle_error(), and nfs4_handle_exception(). Instead we leave it to the recovery thread to do this for us. Signed-off-by: Trond Myklebust Cc: stable@kernel.org commit b0ed9dbc24f1fd912b2dd08b995153cafc1d5b1c Author: Trond Myklebust Date: Mon Oct 4 17:59:08 2010 -0400 NFSv4: Fix open recovery NFSv4 open recovery is currently broken: since we do not clear the state->flags states before attempting recovery, we end up with the 'can_open_cached()' function triggering. This again leads to no OPEN call being put on the wire. Reported-by: Sachin Prabhu Signed-off-by: Trond Myklebust Cc: stable@kernel.org commit bc4866b6e0b44f8ea0df22a16e5927714beb4983 Author: Trond Myklebust Date: Mon Oct 4 17:59:08 2010 -0400 NFS: Don't SIGBUS if nfs_vm_page_mkwrite races with a cache invalidation In the case where we lock the page, and then find out that the page has been thrown out of the page cache, we should just return VM_FAULT_NOPAGE. This is what block_page_mkwrite() does in these situations. Signed-off-by: Trond Myklebust Cc: stable@kernel.org commit 42e55736f7efd7658f8826a5f441c3ccb962db74 Merge: 9cb047d 5c37209 Author: Dan Williams Date: Tue Oct 19 15:34:26 2010 -0700 Merge branch 'dma40' into dmaengine commit 9cb047d4d19fc15791a64d900d483405eae6200d Author: Nicolas Kaiser Date: Fri Oct 8 00:48:01 2010 +0200 dma/timberdale: simplify conditional Simplify: ((a && b) || (!a && !b)) => (a == b) Signed-off-by: Nicolas Kaiser Acked-by: Jack Stone Signed-off-by: Dan Williams commit 5c3720935813c45c2893fdb53eb6f73f1aee93c7 Author: Rabin Vincent Date: Tue Oct 12 13:00:55 2010 +0000 ste_dma40: remove channel_type It has been replaced with separate fields. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 51f5d744ed07a6b82e5cbbeeabd73605d62dcfc9 Author: Rabin Vincent Date: Tue Oct 12 13:00:54 2010 +0000 ste_dma40: remove enum for endianess A bool will suffice. The default is little endian. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 4a6aed3c4eb69702335ed3689132d07eabaaf86d Author: Rabin Vincent Date: Tue Oct 12 13:00:53 2010 +0000 ste_dma40: remove TIM_FOR_LINK option This does not seem to be implemented. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 20a5b6d043a9a12d01cec76993ba3658a6d36ba7 Author: Rabin Vincent Date: Tue Oct 12 13:00:52 2010 +0000 ste_dma40: move mode_opt to separate config Defaults are "basic mode" for physical channels, and "logical source logical destination" for logical channels. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 38bdbf020ad7ae1bca564a7db238cdf8b2f462a8 Author: Rabin Vincent Date: Tue Oct 12 13:00:51 2010 +0000 ste_dma40: move channel mode to a separate field And keep it logical by default. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 730c1871680774ea0700debc2981c7a53f51d92e Author: Rabin Vincent Date: Tue Oct 12 13:00:50 2010 +0000 ste_dma40: move priority to separate field And keep it low priority by default. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit ce2ca1252ba8688a4997b4104793540f4c28c0d8 Author: Rabin Vincent Date: Tue Oct 12 13:00:49 2010 +0000 ste_dma40: add variable to indicate valid dma_cfg Since we want to reduce the amount of required channel configuration and remove channel_type, don't depend on it to indicate whether the configuration is valid. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 9c034392533f3e9f00656d5c58478cff2560ef81 Author: Rafael J. Wysocki Date: Tue Oct 19 23:42:49 2010 +0200 PM / Wakeup: Show wakeup sources statistics in debugfs There may be wakeup sources that aren't associated with any devices and their statistics information won't be available from sysfs. Also, for debugging purposes it is convenient to have all of the wakeup sources statistics available from one place. For these reasons, introduce new file "wakeup_sources" in debugfs containing those statistics. Signed-off-by: Rafael J. Wysocki Acked-by: Greg Kroah-Hartman commit 3234282f33b29d349bcada40204fc7c8fda7fe72 Author: Jan Beulich Date: Tue Oct 19 14:52:26 2010 +0100 x86, asm: Fix CFI macro invocations to deal with shortcomings in gas gas prior to (perhaps) 2.16.90 has problems with passing non- parenthesized expressions containing spaces to macros. Spaces, however, get inserted by cpp between any macro expanding to a number and a subsequent + or -. For the +, current x86 gas then removes the space again (future gas may not do so), but for the - the space gets retained and is then considered a separator between macro arguments. Fix the respective definitions for both the - and + cases, so that they neither contain spaces nor make cpp insert any (the latter by adding seemingly redundant parentheses). Signed-off-by: Jan Beulich LKML-Reference: <4CBDBEBA020000780001E05A@vpn.id2.novell.com> Cc: Alexander van Heukelum Signed-off-by: H. Peter Anvin commit 809b4e00baf006a990a73329ba381d536c6fa277 Merge: a0a5568 79a94c3 Author: Russell King Date: Tue Oct 19 22:06:36 2010 +0100 Merge branch 'devel-stable' into devel commit 79a94c3538bda6869d7bb150b5e02dd3a72314dd Merge: f779b7d f1de161 Author: Russell King Date: Tue Oct 19 22:04:42 2010 +0100 Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable commit 617d34d9e5d8326ec8f188c616aa06ac59d083fe Author: Jeremy Fitzhardinge Date: Tue Sep 21 12:01:51 2010 -0700 x86, mm: Hold mm->page_table_lock while doing vmalloc_sync Take mm->page_table_lock while syncing the vmalloc region. This prevents a race with the Xen pagetable pin/unpin code, which expects that the page_table_lock is already held. If this race occurs, then Xen can see an inconsistent page type (a page can either be read/write or a pagetable page, and pin/unpin converts it between them), which will cause either the pin or the set_p[gm]d to fail; either will crash the kernel. vmalloc_sync_all() should be called rarely, so this extra use of page_table_lock should not interfere with its normal users. The mm pointer is stashed in the pgd page's index field, as that won't be otherwise used for pgds. Reported-by: Ian Campbell Originally-by: Jan Beulich LKML-Reference: <4CB88A4C.1080305@goop.org> Signed-off-by: Jeremy Fitzhardinge Signed-off-by: H. Peter Anvin commit 44235dcde416104b8e1db7606c283f4c0149c760 Author: Jeremy Fitzhardinge Date: Thu Oct 14 17:04:59 2010 -0700 x86, mm: Fix bogus whitespace in sync_global_pgds() Whitespace cleanup only. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: H. Peter Anvin commit f779b7dd3259ec138c7aba793f0602b20262af83 Merge: 3c00079 fe0cdec Author: Russell King Date: Tue Oct 19 20:12:24 2010 +0100 Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into devel-stable Conflicts: arch/arm/mach-at91/include/mach/system.h arch/arm/mach-imx/mach-cpuimx27.c AT91 conflict resolution: Acked-by: Anders Larsen IMX conflict resolution confirmed by Uwe Kleine-König. commit 3e24e132878c83910b61eb7704511a6d96a0389f Author: Tejun Heo Date: Tue Oct 19 17:55:54 2010 +0200 cifs: cancel_delayed_work() + flush_scheduled_work() -> cancel_delayed_work_sync() flush_scheduled_work() is going away. Signed-off-by: Tejun Heo Reviewed-by: Jeff Layton Signed-off-by: Steve French commit 89f150f401c32b0a587dcb98d3bcfafe0b9c1c70 Author: Shirish Pargaonkar Date: Tue Oct 19 11:47:52 2010 -0500 Clean up two declarations of blob_len - Eliminate double declaration of variable blob_len - Modify function build_ntlmssp_auth_blob to return error code as well as length of the blob. Signed-off-by: Shirish Pargaonkar Reviewed-by: Jeff Layton Signed-off-by: Steve French commit 3c00079b31f910309b30ed5c2fd2b7a2d86bba60 Merge: 7f9c7e2 88b5227 Author: Russell King Date: Tue Oct 19 19:55:59 2010 +0100 Merge branch 'msm-core' of git://codeaurora.org/quic/kernel/dwalker/linux-msm into devel-stable commit 750ed158bf6c782d2813da1bca2c824365a0b777 Merge: 3f7edb1 7e40798 Author: Ingo Molnar Date: Tue Oct 19 20:41:38 2010 +0200 Merge branch 'tip/perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core commit d38a5edf812c2f715242aa20b6beb785939a0096 Author: Uwe Kleine-König Date: Tue Oct 19 09:13:39 2010 +0200 ACPI dock: move some functions to .init.text find_dock and find_bay are only called by dock_init which lives in .init.text dock_add is only called by find_dock and find_bay. So all three functions can be moved to .init.text, too. This fixes: WARNING: vmlinux.o(.text+0x2134b7): Section mismatch in reference from the function dock_add() to the function .init.text:platform_device_register_resndata() The function dock_add() references the function __init platform_device_register_resndata(). This is often because dock_add lacks a __init annotation or the annotation of platform_device_register_resndata is wrong. for a build with unset CONFIG_MODULES. Signed-off-by: Uwe Kleine-König Acked-by: Greg Kroah-Hartman Signed-off-by: Len Brown commit ab7c13c4a5a22335b0cfc6f364ee77abed66503c Author: Len Brown Date: Tue Oct 19 13:58:34 2010 -0400 ACPI: thermal: remove unused limit code acpi_processor_apply_limit() acpi_thermal_cpufreq_increase() acpi_thermal_cpufreq_decrease() Signed-off-by: Len Brown commit cd389a34a182639e8b6bf0e812fe8ec038bfddc5 Author: nohee ko Date: Sun Oct 17 10:51:24 2010 -0700 staging: brcm80211: brcmfmac: add debugfs, display wi-fi statistics Add debugfs to display wi-fi profile/statistics. Initially some profile parameters such as dtim_period, beacon_int will be seen at /sys/kernel/debug/ieee80211/phy#/netdev:eth#. This will provide users with current connection status. Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 1e0645c3236b8ae44d10abb6a1304784359a3ea8 Author: nohee ko Date: Sun Oct 17 10:42:18 2010 -0700 staging: brcm80211: brcmfmac: add profile, beacon_int, dtim_period Add profile, beacon_int & dtim_period. This profile can be seen through debugfs. Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit c5ca038fa5ff48f9b7019b57800ff16857778ef6 Author: nohee ko Date: Sun Oct 17 10:38:35 2010 -0700 staging: brcm80211: brcmfmac: enable passive, active scan selection Enable passive, active scan selection. Previously it did active scan and reported probe response result regardless of active_scan flag Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit f49200c36738a315eb094a3ed8260f00d1bafee0 Author: nohee ko Date: Sun Oct 17 10:33:19 2010 -0700 staging: brcm80211: brcmfmac: remove unnecessary cflags, WL_ISCAN_DISABLED & WL_ROAM_DISABLED Remove unnecessary cflags, WL_ISCAN_DISABLED and WL_ROAM_DISABLED. Iscan is ON and Roam by FW is OFF by default. Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit bd384c2722428498669840db44c6a7aafab54c29 Author: Gustavo Silva Date: Tue Oct 19 00:40:42 2010 -0500 Staging: frontier: fix coding style issues in tranzport.c This is a patch to the tranzport.c file that fixes up the following issue WARNING: please, no space for starting a line x 23 Signed-off-by: Gustavo Silva Signed-off-by: Greg Kroah-Hartman commit 01eac60bccdb0ce49a2937d59da1e4749697a9aa Author: Stephen Hemminger Date: Mon Oct 18 18:47:25 2010 -0700 ACPI: static sleep_states[] and acpi_gts_bfs_check Only used in one file so should be static. Signed-off-by: Stephen Hemminger Signed-off-by: Len Brown commit 5ba8b1c6fe40c314a02e28553c25552d8f1442e7 Author: Stephen Hemminger Date: Mon Oct 18 08:42:48 2010 -0700 ACPI: remove dead code Found by running make namespacecheck on linux-next Signed-off-by: Stephen Hemminger Signed-off-by: Len Brown commit 3a2468d0274d10916baf5318f9004a8061533370 Author: Len Brown Date: Thu Oct 14 20:43:56 2010 -0400 ACPI: delete dedicated MAINTAINERS entries for ACPI EC and BATTERY drivers We thank Alexey Starikovskiy for his significant contributions not only to the ACPI EC and battery code, but for his profound positive impact on the ACPICA core itself. Alexey is busy with new challenges now, and so we'll take his name out of MAINTAINERS to reflect that the EC and battery are once again maintained as part part of the general ACPI sub-system without a dedicated sub-maintainer. Signed-off-by: Len Brown commit a4084c147bd06ecc13d787eec626ff1faf8f5851 Author: Jean Delvare Date: Sun Oct 10 14:54:52 2010 +0200 ACPI: Only processor needs CPU_IDLE ACPI support itself doesn't need CPU_IDLE, only ACPI_PROCESSOR does, so only ACPI_PROCESSOR should select CPU_IDLE. Signed-off-by: Jean Delvare Signed-off-by: Len Brown commit 747e94ae3d1b4c9bf5380e569f614eb9040b79e7 Author: Steven Rostedt Date: Fri Oct 8 13:51:48 2010 -0400 ring-buffer: Make write slow path out of line Gcc inlines the slow path of the ring buffer write which can hurt performance. This patch simply forces the slow path function rb_move_tail() to always be a function. The ring_buffer_benchmark module with reader_disabled=1 shows that this patch changes the time to record an event from 135 ns to 132 ns. (3 ns or 2.22% improvement) Signed-off-by: Steven Rostedt commit c694ed85eab4e7966cd83fca509ce27494e3e296 Author: Bob Beers Date: Sat Oct 16 18:06:36 2010 -0400 Staging: cxt1e1: multiple definition of max_mtu fix eliminate multiple definition of max_mtu by renaming with cxt1e1_ prefix, similarly rename max_mru Signed-off-by: Bob Beers Signed-off-by: Greg Kroah-Hartman commit b3495cebaaa64c9e6df9ab663dfb75e86a08f9ce Author: Vasiliy Kulikov Date: Sun Oct 17 18:51:57 2010 +0400 staging: speakup: fix memory leak speakup_init() didn't free first_console if speakup_kobj_init() fails. Also propagate speakup_kobj_init()'s return code. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit 6a56486716d54d2c16c46cde6a5cf10062cd6719 Author: Vasiliy Kulikov Date: Sun Oct 17 18:51:53 2010 +0400 staging: speakup: fix leaks of sysfs groups speakup_kobj_init() and speakup_kobj_exit() didn't remove i18n_attr_group and main_attr_group sysfs groups. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit 1a88a068710910aa9a303bc061f405b0768fef80 Author: Marek Belisko Date: Sat Oct 16 22:37:27 2010 +0200 staging: ft1000: Remove FT1000_INFO typedef usage. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 8e99c33d08ec605133693a9b61f22c0495fc2866 Author: Marek Belisko Date: Sat Oct 16 22:37:26 2010 +0200 staging: ft1000: Remove dead code from ft1000_hw.c Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 29437ab09f9c49d1422b79eedc7718cd689286b8 Author: Marek Belisko Date: Sat Oct 16 22:37:25 2010 +0200 staging: ft1000: Get rid of using typedef. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit a1277d85dc15a829d97b027de6e1f049c29a9306 Author: William Hubbs Date: Fri Oct 15 22:13:39 2010 -0500 staging: speakup: varhandlers.c style fixes fix issues reported by checkpatch.pl Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit 7025005f15896118de7724b5e27c67e65612d32f Author: William Hubbs Date: Fri Oct 15 22:13:38 2010 -0500 staging: speakup: thread.c style fixes fix issues reported by checkpatch.pl Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit 1e560261b75e4d7a6584045e332230eb8e0058c4 Author: William Hubbs Date: Fri Oct 15 22:13:37 2010 -0500 staging: speakup: synth.c style fixes fix issues reported by checkpatch.pl Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit baf9ac9ff8864ce9379b1fd2429103ce8c4d7430 Author: William Hubbs Date: Fri Oct 15 22:13:36 2010 -0500 staging: speakup: serialio.c style fixes fix issues reported by checkpatch.pl Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit a1768fbbd96ae1028cc3ffb56aebfa025087a677 Author: William Hubbs Date: Fri Oct 15 22:13:35 2010 -0500 staging: speakup: selection.c style fixes fix issues reported by checkpatch.pl Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit 16d355156ba475c0fefb19133174cdf61a5101ba Author: William Hubbs Date: Fri Oct 15 22:13:34 2010 -0500 staging: speakup: main.c style fixes - fix issues reported by checkpatch.pl - run code through Lindent - move some prototypes to speakup.h Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit f976520bee1ca20c5ff73ffc277b71545b698b7a Author: William Hubbs Date: Fri Oct 15 22:13:33 2010 -0500 staging: speakup: i18n.c fix long lines A help message had to be slightly reworded, but the meaning is the same. Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit 2b6d83d6623dfc4ea036b62b405ce206edfcaa52 Author: Andy Shevchenko Date: Sat Oct 16 13:11:12 2010 +0300 staging: wlags49_h2: remove useless DbgHwAddr() method There is no needs to prepare string for MAC addresses beforehand, due to kernel's *printf() have '%pM' format option. Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit a113af9a35191901a2be532a7d70ee2dff8ad82d Author: Andy Shevchenko Date: Sat Oct 16 13:11:11 2010 +0300 staging: wlags49_h2: fix format of timeStamp debug output Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 1bc80e95274a96f1bd6af25bb65f33cef57f6704 Author: Marek Lindner Date: Tue Oct 19 11:59:15 2010 +0200 Staging: batman-adv: process OGMs bigger than MAX_AGGREGATION_BYTES Reported-by: Sam Yeung Signed-off-by: Marek Lindner Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 15f00687e3b7b88c23d498d2c65e5911d8efa214 Author: Marek Lindner Date: Tue Oct 19 11:59:14 2010 +0200 Staging: batman-adv: fix crash when new OGM is generated If aggregation is not enabled the local translation table can grow much bigger and expects to fill a full ethernet packet. Reported-by: Sam Yeung Signed-off-by: Marek Lindner Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 24fb009bae18f2ef712800ee9b2f52c177d9d3f9 Author: Marek Lindner Date: Tue Oct 19 11:59:13 2010 +0200 Staging: batman-adv: protect against ogm packet overflow by checking table length Reported-by: Sam Yeung Signed-off-by: Marek Lindner Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 3c45603024c8dd5321f9504b351df3cb825e5951 Author: Marek Lindner Date: Tue Oct 19 11:59:12 2010 +0200 Staging: batman-adv: document fragmentation sysfs API Signed-off-by: Marek Lindner Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 5dfa2ba9e658f099c11eab251da348429f6a9d7d Author: Linus Lüssing Date: Tue Oct 19 11:59:11 2010 +0200 Staging: batman-adv: Fix resizing of broadcast seqno buffers on if deletion Not only the entries of the deleted interface got erased, but also all ones with a lower if_num. This commit fixes this issue by setting the destination appropriately. Signed-off-by: Linus Lüssing Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 9b37bc2c711b2a76ef3daa9437bbf9c58411afbd Author: Sven Eckelmann Date: Tue Oct 19 11:59:10 2010 +0200 Staging: batman-adv: Don't dereference unchecked incoming soft_iface send_packet derefenced forw_packet->if_incoming and checked if forw_packet->if_incoming is NULL. This cannot happen, but still makes irritates when reading through the functions. Reported-by: Dan Carpenter Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 1ee600ced32c4cabaeead0a4e84a6d4c9110f82c Author: Sven Eckelmann Date: Tue Oct 19 11:59:09 2010 +0200 Staging: batman-adv: Add hash recommendations to TODO David Miller recommended in 20100924.134334.28812338.davem@davemloft.net that we must make the hash abstraction helper more efficient and may remove it completely. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit f1de1613da54f754d5d2bbf79fcacbd5ed965537 Author: Fabio Estevam Date: Thu Oct 14 08:38:04 2010 -0700 eukrea_mbimxsd-baseboard: Pass the correct GPIO to gpio_free Pass the correct GPIO to gpio_free Signed-off-by: Fabio Estevam Acked-by: Eric Bénard Signed-off-by: Sascha Hauer commit 4e6898a731c7060facc837f2ab2cb27205228c25 Author: Eric Bénard Date: Fri Oct 8 10:37:40 2010 +0200 cpuimx27: fix compile when ULPI is selected without this patch we get : arch/arm/mach-imx/built-in.o: In function `eukrea_cpuimx27_init': eukrea_mbimx27-baseboard.c:(.init.text+0x44c): undefined reference to `mxc_ulpi_access_ops' Signed-off-by: Eric Bénard Signed-off-by: Uwe Kleine-König commit c0f832bca9672831fc5bdab1a0f93f80592dac4c Author: Eric Bénard Date: Fri Oct 15 01:00:01 2010 +0200 mach-pcm037_eet: fix compile errors this patch fix the following errors : arch/arm/mach-mx3/mach-pcm037_eet.c:62: error: implicit declaration of function 'MXC_SPI_CS' arch/arm/mach-mx3/mach-pcm037_eet.c:185: error: implicit declaration of function 'imx35_add_spi_imx0' from the Kconfig pcm037 is i.MX31 based and not i.MX35 so replace imx35_add_spi_imx0 by imx31_add_spi_imx0 Signed-off-by: Eric Bénard [ukl: remove unneeded #include ] Signed-off-by: Uwe Kleine-König commit d24d96e05565c9bd81becba695131b0144c01707 Author: Ian Lartey Date: Thu Oct 14 12:07:33 2010 +0100 Fixing ethernet driver compilation error for i.MX31 ADS board This is only a partial revert of "ARM: mx3/mx31ads: fold board header in its only user" [commit ccfa7c269843001077df02d98918c6c9bde91395)] As some of the the board defines are also used in the cs89x0 ethernet driver by the i.MX31 ADS. Signed-off-by: Ian Lartey Signed-off-by: Sascha Hauer commit a3927416bf7f5cc9a0cfddab1e36035738bc287c Author: Eric Bénard Date: Tue Oct 12 16:29:20 2010 +0200 cpuimx51: update board support add NAND, SDHC Signed-off-by: Eric Bénard commit 70b1726820ba85febfd067471534a19a9902ea60 Author: Eric Bénard Date: Tue Oct 12 16:12:36 2010 +0200 mx5: add cpuimx51sd module and its baseboard Signed-off-by: Eric Bénard commit b545d9ed1b92f169d0326afac091328be5e76620 Author: Eric Bénard Date: Tue Oct 12 14:16:16 2010 +0200 iomux-mx51: fix GPIO_1_xx 's IOMUX configuration this patch really configure the GPIO in GPIO mode. Signed-off-by: Eric Bénard commit c074512905c0a08be2a91670bdd69cd1de4e2823 Author: Eric Bénard Date: Tue Oct 12 13:12:32 2010 +0200 imx-esdhc: update devices registration Tested on i.MX25 and i.MX35 and i.MX51 Signed-off-by: Eric Bénard commit 6a001b886c8c4ff7477a3692a2d87a9dbdd860ee Author: Eric Bénard Date: Mon Oct 11 17:59:47 2010 +0200 mx51: add resources for SD/MMC on i.MX51 the attached patch allows SD to work on i.MX51 with Wolfram's drivers Tested on i.MX51. Based on original patch from: Richard Zhu Signed-off-by: Eric Bénard commit 217f580ba643eff91bac04a474a7db6d40863d5b Author: Eric Bénard Date: Tue Oct 12 12:29:37 2010 +0200 iomux-mx51: fix SD1 and SD2's iomux configuration Based on original patch from: Richard Zhu Signed-off-by: Eric Bénard commit 7e5a747113cabb71ec855411bb7666e8963a75b7 Author: Eric Bénard Date: Tue Oct 12 12:26:32 2010 +0200 clock-mx51: rename CLOCK1 to CLOCK_CCGR for better readability Signed-off-by: Eric Bénard commit 0076232d54b3fb2908c7fcf19bf699c4e8376213 Author: Eric Bénard Date: Mon Oct 11 21:55:24 2010 +0200 clock-mx51: factorize clk_set_parent and clk_get_rate Signed-off-by: Eric Bénard commit c0550c4bf1a6b868ac98b63f88ffd1a7ebdbeaeb Author: Eric Bénard Date: Fri Oct 8 10:56:10 2010 +0200 eukrea_mbimxsd: add support for DVI displays Signed-off-by: Eric Bénard commit 52d084fc90f754a7aed7e7d6e1484be45454aba3 Author: Eric Bénard Date: Tue Oct 5 18:02:30 2010 +0200 cpuimx25 & cpuimx35: fix OTG port registration in host mode the PHY is UTMI so don't create an ULPI viewpoint. Signed-off-by: Eric Bénard commit 4a66b5d980a244c403c3f6cb42c762ef5c112956 Author: Eric Bénard Date: Tue Oct 5 11:20:21 2010 +0200 i.MX31 and i.MX35 : fix errate TLSbo65953 and ENGcm09472 Without this exiting WFI can result in cache corruption. Code taken from Freescale's 2.6.27 BSP and tested on i.MX35 Signed-off-by: Eric Bénard commit ec4aac206b65d9764d601a7ee433e161878623b9 Author: Eric Bénard Date: Tue Oct 12 14:08:42 2010 +0200 mx25: fix compile error in platform-imx-dma.c this patch fix the following errors : arch/arm/plat-mxc/devices/platform-imx-dma.c:44: error: ‘MX25_SDMA_BASE_ADDR’ undeclared here (not in a function) arch/arm/plat-mxc/devices/platform-imx-dma.c:44: error: ‘MX25_INT_SDMA’ undeclared here (not in a function) Signed-off-by: Eric Bénard Acked-by: Uwe Kleine-König commit e482b3bee66d627356904746c217f8f1bf891e60 Author: Eric Bénard Date: Tue Oct 12 19:26:34 2010 +0200 mx25: fix clock's calculation * get_rate_arm : when 400MHz clock is selected (cctl & 1<<14), ARM clock is 400MHz (MPLL * 3 / 4) and not 800MHz * get_rate_per : peripherals's clock is derived from AHB and not from IPG (ref manual : figure 5-1) * can2_clk : use the correct ID * without this patch, peripherals getting their clock from PER clocks work fine because of the 2 errors which fix themselves (ARM clock x 2 and per clock actually based on IPG which is AHB/2) but flexcan can't work as it gets its clock from IPG and thus calculates its bitrate using a reference value which is twice what it really is. Signed-off-by: Eric Bénard commit 6136a6ddc9db50d909344bb7e6f45dbe631f2e29 Author: Marc Kleine-Budde Date: Wed Oct 13 10:00:10 2010 +0200 ARM: imx: add lost 3rd imx-i2c device for mx35 During the reorganisation of the imx-i2c devices (in 64de5ec168d9743903e6ec482c3e9f37af49f9c1) the 3rd imx-i2c device for the mx35 got lost. This patch adds the missing device. Signed-off-by: Marc Kleine-Budde Acked-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 68a2f7301ae3a97bf7b1713d20de7618c9b9a5f5 Author: Dinh Nguyen Date: Tue Oct 12 11:29:01 2010 -0500 ARM: imx: Add iram allocator functions Add IRAM(Internal RAM) allocation functions using GENERIC_ALLOCATOR. The allocation size is 4KB multiples to guarantee alignment. The idea for these functions is for i.MX platforms to use them to dynamically allocate IRAM usage. Applies on 2.6.36-rc7 Signed-off-by: Dinh Nguyen Reviewed-by: Amit Kucheria Acked-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 0683e31ad5d9b4cab3cc32d033269e8cf675823a Author: Dmitry Kravkov Date: Tue Oct 19 05:13:00 2010 +0000 bnx2x: update version to 1.60.00-3 Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit f4a66897e77277335ae98ffeb1f4ebb9cf24ed6d Author: Vladislav Zolotarov Date: Tue Oct 19 05:13:09 2010 +0000 bnx2x: prevent false parity error in MSI-X memory of HC block Signed-off-by: Dmitry Kravkov Signed-off-by: Vladislav Zolotarov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit a0fd065cd5d8f758b27c13cafabbbcf59d1eb8ec Author: Dmitry Kravkov Date: Tue Oct 19 05:13:05 2010 +0000 bnx2x: fix possible deadlock in HC hw block The possible deadlock (on 57710 devices only) will prevent from the device to generate interrupts. Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit d86bef73b4a24e59e7c1f896a72bbf38430ac2c6 Author: Eduardo Blanco Date: Tue Oct 19 10:26:47 2010 +0100 Fixed race condition at ip_vs.ko module init. Lists were initialized after the module was registered. Multiple ipvsadm processes at module load triggered a race condition that resulted in a null pointer dereference in do_ip_vs_get_ctl(). As a result, __ip_vs_mutex was left locked preventing all further ipvsadm commands. Signed-off-by: Eduardo J. Blanco Signed-off-by: Simon Horman commit 7e40798f406fe73f9bac496a390daabd8768a8f7 Author: Steven Rostedt Date: Tue Oct 19 10:56:19 2010 -0400 tracing: Fix compile issue for trace_sched_wakeup.c The function start_func_tracer() was incorrectly added in the #ifdef CONFIG_FUNCTION_TRACER condition, but is still used even when function tracing is not enabled. The calls to register_ftrace_function() and register_ftrace_graph() become nops (and their arguments are even ignored), thus there is no reason to hide start_func_tracer() when function tracing is not enabled. Reported-by: Ingo Molnar Signed-off-by: Steven Rostedt commit 8f3a6de313391b6910aa7db185eb9f3e930a51cf Author: Pavel Emelyanov Date: Tue Oct 5 23:30:19 2010 +0400 sunrpc: Turn list_for_each-s into the ..._entry-s Saves some lines of code and some branticks when reading one. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit 50fa0d40a9d601bb8e6c9a595e90940bc846f7df Author: Pavel Emelyanov Date: Tue Oct 5 20:49:35 2010 +0400 sunrpc: Remove dead "else" branch from bc xprt creation Since the xprt in question is forcibly set to be bound the else branch of this check is unneeded. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit c636b572e00e38855dc7a56a0fa438dd835f39de Author: Pavel Emelyanov Date: Wed Oct 6 13:45:56 2010 +0400 sunrpc: Don't return NULL from rpcb_create > The reason for this is in the future, we may want to support additional > address family types. We should, therefore, ensure that every piece of > code that is sensitive to address families fail in some orderly manner > to let developers know where a change is needed. Makes sense. I was under impression, that AF-s other than INET are not cared about at all :( Here's a fixed version of the patch. Log: Its callers check for ERR_PTR. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit f10fef38d2d1605c977346457d0adb0919d0bbe7 Author: Pavel Emelyanov Date: Tue Oct 5 20:47:16 2010 +0400 sunrpc: Remove useless if (task == NULL) from xprt_reserve_xprt The task in question is dereferenced above (and is actually never NULL). Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit 8c14ff2aaf26d58aa2258a59bd419c906d105938 Author: Pavel Emelyanov Date: Mon Oct 4 16:58:02 2010 +0400 sunrpc: Remove UDP worker wrappers Same for UDP sockets creation paths. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit cdd518d524b49e6e80b109bf985376456a2985ce Author: Pavel Emelyanov Date: Mon Oct 4 16:57:40 2010 +0400 sunrpc: Remove TCP worker wrappers The v4 and the v6 wrappers only pass the respective family to the xs_tcp_setup_socket. This family can be taken from the xprt's sockaddr. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit 7dfe1fc36278c3aa0db29356c491db6353678e98 Author: Pavel Emelyanov Date: Mon Oct 4 16:57:11 2010 +0400 sunrpc: Pass family to setup_socket calls Now we have a single socket creation routine and can call it directly from the setup_socket routines. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit 6bc9638ab495516f8a34d2ae48f2f43f145e186f Author: Pavel Emelyanov Date: Mon Oct 4 16:56:38 2010 +0400 sunrpc: Merge xs_create_sock code After xs_bind is merged it's easy to merge its callers. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever [bfields@redhat.com: fix address family initialization] Signed-off-by: J. Bruce Fields commit beb59b68280d9779cc16591115547678d1c74a66 Author: Pavel Emelyanov Date: Tue Oct 5 15:53:08 2010 +0400 sunrpc: Merge the xs_bind code There's the only difference betseen the xs_bind4 and the xs_bind6 - the size of sockaddr structure they use. Fortunatelly its size can be indirectly get from the transport. Change since v1: * use sockaddr_storage instead of sockaddr * use rpc_set_port instead of manual port assigning Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever [bfields@redhat.com: fix address family initialization] Signed-off-by: J. Bruce Fields commit 573018c07e040b2c3f3cb8251f66fa4a5cb7425d Author: Pavel Emelyanov Date: Mon Oct 4 16:55:38 2010 +0400 sunrpc: Call xs_create_sockX directly from setup_socket Remove now unneeded wrappers that just add type and protocol to socket creation callback. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit 22d44a7d8a03456aa6d0a047c051aa28728e6ecd Author: Pavel Emelyanov Date: Mon Oct 4 16:54:55 2010 +0400 sunrpc: Factor out v6 sockets creation Same patch for v6 protocols. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit 22f793268de3b4dff8abfcd873ba7afc1f34224f Author: Pavel Emelyanov Date: Mon Oct 4 16:54:26 2010 +0400 sunrpc: Factor out v4 sockets creation The UDPv4 and TCPv4 socket creation callbacks now look very similar. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit b65c0310611af73569f94c526a1e2323d99b380a Author: Pavel Emelyanov Date: Mon Oct 4 16:53:46 2010 +0400 sunrpc: Factor out udp sockets creation Make it look like the TCP sockets creation. Unfortunately the git diff made the patch look messy :( Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit 58dddac9c55c604f01152832c1c3d2c17a5adea9 Author: Pavel Emelyanov Date: Mon Oct 4 16:52:55 2010 +0400 sunrpc: Remove duplicate xprt/transport arguments from calls The xs_tcp_reuse_connection takes the xprt only to pass it down to the xs_abort_connection. The later one can get it from the given transport itself. Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit a9f5f0f7bf72f3f1451e844681fb3cb5d0b1c80d Author: Pavel Emelyanov Date: Mon Oct 4 16:52:25 2010 +0400 sunrpc: Get xprt pointer once in xs_tcp_setup_socket Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit baaf4e487a9c42b345bde14698fd566f864c9287 Author: Pavel Emelyanov Date: Mon Oct 4 16:51:56 2010 +0400 sunrpc: Remove unused sock arg from xs_next_srcport Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit 5d4ec932972a0dd5486c59909e62dc62105d065c Author: Pavel Emelyanov Date: Mon Oct 4 16:51:23 2010 +0400 sunrpc: Remove unused sock arg from xs_get_srcport Signed-off-by: Pavel Emelyanov Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields commit 5fc01ab6934c43b42c41bc753fe1123c16d7f38f Author: Artem Bityutskiy Date: Fri Sep 3 23:08:15 2010 +0300 UBI: preserve corrupted PEBs Currently UBI erases all corrupted eraseblocks, irrespectively of the nature of corruption: corruption due to power cuts and non-power cut corruption. The former case is OK, but the latter is not, because UBI may destroy potentially important data. With this patch, during scanning, when UBI hits a PEB with corrupted VID header, it checks whether this PEB contains only 0xFF data. If yes, it is safe to erase this PEB and it is put to the 'erase' list. If not, this may be important data and it is better to avoid erasing this PEB. Instead, UBI puts it to the corr list and moves out of the pool of available PEB. IOW, UBI preserves this PEB. Such corrupted PEB lessen the amount of available PEBs. So the more of them we accumulate, the less PEBs are available. The maximum amount of non-power cut corrupted PEBs is 8. This patch is a response to UBIFS problem where reporter (Matthew L. Creech ) observes that UBIFS index points to an unmapped LEB. The theory is that corresponding PEB somehow got corrupted and UBI wiped it. This patch (actually a series of patches) tries to make sure such PEBs are preserved - this would make it is easier to analyze the corruption. Signed-off-by: Artem Bityutskiy commit feeba4b872e5166ca64c44fbb5bbec234dfce199 Author: Artem Bityutskiy Date: Fri Sep 3 22:50:53 2010 +0300 UBI: add truly corrupted PEBs to corrupted list Start using the 'corr' list and add there PEBs which look truly corrupted, which means they have corrupted VID header and the data which follows the corrupted header does not contain all 0xFF bytes. At the moment, this does not change UBI functionality much because these PEBs will be erase when scanning finishes. But the plan is to teach UBI preserving them. Signed-off-by: Artem Bityutskiy commit 315324947cbc7264af86b7ecdc2d5fb5f8556222 Author: Artem Bityutskiy Date: Fri Sep 3 22:27:46 2010 +0300 UBI: introduce debugging helper function Introduce a helper function to print hexdump: 'ubi_dbg_print_hex_dump()'. It is compiled out if debugging is enabled. Will be used in the next patch. Signed-off-by: Artem Bityutskiy commit bb00e180a93a6c8e89c3b2d1f9473781e1e2d2a4 Author: Artem Bityutskiy Date: Sat Jul 31 09:37:34 2010 +0300 UBI: make check_pattern function non-static This patch turns static function 'check_pattern()' into a non-static 'ubi_check_pattern()'. This is just a preparation for the chages which are coming in the next patches. Signed-off-by: Artem Bityutskiy commit 0525dac9fd31e5a12fb934238abd09e2752a5967 Author: Artem Bityutskiy Date: Fri Sep 3 17:11:37 2010 +0300 UBI: do not put eraseblocks to the corrupted list unnecessarily Currently UBI maintains 2 lists of PEBs during scanning: 1. 'erase' list - PEBs which have no corruptions but should be erased 2. 'corr' list - PEBs which have some corruptions and should be erased But we do not really need 2 lists for PEBs which should be erased after scanning is done - this is redundant. So this patch makes sure all PEBs which are corrupted are moved to the head of the 'erase' list. We add them to the head to make sure they are erased first and we get rid of corruption ASAP. However, we do not remove the 'corr' list and realted functions, because the plan is to use this list for other purposes. Namely, we plan to put eraseblocks with corruption which does not look like it was caused by unclean power cut. Then we'll preserve thes PEBs in order to avoid killing potentially valuable user data. This patch also amends PEBs accounting, because it was closely tight to the 'erase'/'corr' lists separation. Signed-off-by: Artem Bityutskiy commit 3fb34124da9d5e37576d9f87d7a5005ba1d82dd7 Author: Artem Bityutskiy Date: Fri Sep 3 15:36:12 2010 +0300 UBI: separate out corrupted list This patch introduces 'add_corrupted()' function and separates out 'corr' list manipulation from the common 'add_to_list()' function. This is just a preparation for further changes - this patch does not change functionality. Signed-off-by: Artem Bityutskiy commit b33215084c1c06258a2d9deb035d343aafa4066e Author: Artem Bityutskiy Date: Fri Sep 3 14:40:55 2010 +0300 UBI: change cascade of ifs to switch statements This patch improves readability and simplifies scanning code by changing a long cascade of 'if' statements to a switch statement. This should presumably be a little faster as well. Signed-off-by: Artem Bityutskiy commit e0e718c281ce1dd4006681e1255535cc6f2857d4 Author: Artem Bityutskiy Date: Fri Sep 3 14:53:23 2010 +0300 UBI: rename a local variable Rename local variable 'ec_corr' into 'ec_err' to make the code a little bit more readable. 'ec_err' is more appropriate because it sounds more like 'error when EC was read' and it looks more logical because we use it together with 'err'. Just a minor nicification which should improve the rather complex scanning code. Signed-off-by: Artem Bityutskiy commit 92e1a7d9e7e07fb1cf0cbbcdf202938d0819b54d Author: Artem Bityutskiy Date: Fri Sep 3 14:22:17 2010 +0300 UBI: handle bit-flips when no header found Currently UBI has one small flaw - when we read EC or VID header, but find only 0xFF bytes, we return UBI_IO_FF and do not report whether we had bit-flips or not. In case of the VID header, the scanning code adds this PEB to the free list, even though there were bit-flips. Imagine the following situation: we start writing VID header to a PEB and have a power cut, so the PEB becomes unstable. When we scan and read the PEB, we get a bit-flip. Currently, UBI would just ignore this and treat the PEB as free. This patch changes UBI behavior and now UBI will schedule this PEB for erasure. Signed-off-by: Artem Bityutskiy commit 74d82d2660058e32644f0c673656b2a1d01d3688 Author: Artem Bityutskiy Date: Fri Sep 3 02:11:20 2010 +0300 UBI: remove duplicate IO error codes The 'UBI_IO_PEB_EMPTY' and 'UBI_IO_PEB_FREE' are essentially the same and mean that there are only 0xFF bytes instead of headers. Simplify UBI a little by turning them into a single 'UBI_IO_FF' error code. Also, stop maintaining commentaries in 'ubi_io_read_vid_hdr()' which are almost identical to commentaries in 'ubi_io_read_ec_hdr()'. Signed-off-by: Artem Bityutskiy commit 756e1df1d2b8b572a92dd1b82d2a432d5b280b1c Author: Artem Bityutskiy Date: Fri Sep 3 01:30:16 2010 +0300 UBI: rename IO error code Rename UBI_IO_BAD_HDR_READ into UBI_IO_BAD_HDR_EBADMSG which is presumably more self-documenting and readable. Indeed, the '_READ' suffix does not tell much and even confuses, while '_EBADMSG' tells about uncorrectable ECC error, because we use -EBADMSG all over the place to represent ECC errors. Signed-off-by: Artem Bityutskiy commit c174a08c72ae77a05be59d0d810dc13239b81e8e Author: Artem Bityutskiy Date: Fri Sep 3 15:11:17 2010 +0300 UBI: fix small 80 characters limit style issue One line was longer than 80 lines, make it shorter. Signed-off-by: Artem Bityutskiy commit 1dd786328ff42b239a00fdbcdaed6fd9709042bf Author: H Hartley Sweeten Date: Thu Aug 19 17:28:50 2010 -0700 UBI: cleanup and simplify Kconfig Cleanup the Kconfig for UBI by using menuconfig to enable/disable the entire driver. Remove the dependency checks for MTD_UBI and MTD_UBI_DEBUG by wrapping the options in if/endif blocks and remove any redundant checks. Remove all default n since that is the Kconfig default. Change menu "Additional UBI debugging messages" into a comment to remove one menu level. Signed-off-by: H Hartley Sweeten Signed-off-by: Artem Bityutskiy commit e2269308359d5863b6aa1fcb95a425a2ab255f1f Author: Ben Hutchings Date: Thu Oct 14 17:41:53 2010 +0000 r6040: Fix multicast filter some more This code has been broken forever, but in several different and creative ways. So far as I can work out, the R6040 MAC filter has 4 exact-match entries, the first of which the driver uses for its assigned unicast address, plus a 64-entry hash-based filter for multicast addresses (maybe unicast as well?). The original version of this code would write the first 4 multicast addresses as exact-match entries from offset 1 (bug #1: there is no entry 4 so this could write to some PHY registers). It would fill the remainder of the exact-match entries with the broadcast address (bug #2: this would overwrite the last used entry). If more than 4 multicast addresses were configured, it would set up the hash table, write some random crap to the MAC control register (bug #3) and finally walk off the end of the list when filling the exact-match entries (bug #4). All of this seems to be pointless, since it sets the promiscuous bit when the interface is made promiscuous or if >4 multicast addresses are enabled, and never clears it (bug #5, masking bug #2). The recent(ish) changes to the multicast list fixed bug #4, but completely removed the limit on iteration over the exact-match entries (bug #6). Bug #4 was reported as and more recently as . Florian Fainelli attempted to fix these in commit 3bcf8229a8c49769e48d3e0bd1e20d8e003f8106, but that actually dealt with bugs #1-3, bug #4 having been fixed in mainline at that point. That commit fixes the most important current bug #6. Signed-off-by: Ben Hutchings Cc: stable@kernel.org [2.6.35 only] Signed-off-by: David S. Miller commit 6d388b43d2c4ef6f0806c9bb9a5edebf00a23c6a Author: Tracey Dent Date: Tue Oct 19 20:52:26 2010 +0800 crypto: Makefile - replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Herbert Xu commit f4e523f2ad179f6bf5691ddc3cd2893856fafc66 Author: Tejun Heo Date: Tue Oct 19 20:50:23 2010 +0800 crypto: hifn_795x - use cancel_delayed_work_sync() Make hifn_795x::hifn_remove() call cancel_delayed_work_sync() instead of calling cancel_delayed_work() followed by flush_scheduled_work(). This is to prepare for the deprecation and removal of flush_scheduled_work(). Signed-off-by: Tejun Heo Signed-off-by: Herbert Xu commit 3f7edb1656e5beba2b5e617d31e4064e1eed0bc0 Author: Heiko Carstens Date: Tue Oct 12 11:03:44 2010 +0200 [S390] hardirq: remove pointless header file includes Remove a couple of pointless header file includes. Fixes a compile bug caused by header file include dependencies with "irq: Add tracepoint to softirq_raise" within linux-next. Reported-by: Sachin Sant Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky [ cherry-picked from the s390 tree to fix "2bf2160: irq: Add tracepoint to softirq_raise" ] Signed-off-by: Ingo Molnar commit 3c4ea5b4985ecf831e22034d5d5db6e6391f3911 Author: Tony Luck Date: Mon Sep 20 13:15:07 2010 -0700 [IA64] Move local_softirq_pending() definition Ugly #include dependencies. We need to have local_softirq_pending() defined before it gets used in . But provides the definition *after* this #include chain: Signed-off-by: Tony Luck [ cherry-picked from the ia64 tree to fix "2bf2160: irq: Add tracepoint to softirq_raise" ] Signed-off-by: Ingo Molnar commit 8723e1b4ad9be4444423b4d41509ce859a629649 Author: Eric Dumazet Date: Tue Oct 19 00:39:26 2010 +0000 inet: RCU changes in inetdev_by_index() Convert inetdev_by_index() to not increment in_dev refcount. Callers hold RCU or RTNL, and should not decrement in_dev refcount. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 9e917dca74138cccf398ce8bb924c7fd2980ec1d Author: Eric Dumazet Date: Tue Oct 19 00:39:18 2010 +0000 net: avoid a dev refcount in ip_mc_find_dev() We hold RTNL in ip_mc_find_dev(), no need to touch device refcount. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit c429ffbe038a649d121e6cecba5cf66777f39370 Author: Jassi Brar Date: Tue Oct 19 16:04:21 2010 +0900 ASoC: WM8580: Remove useless assignment The variable is not used anyway. Signed-off-by: Jassi Brar Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 0589944661b9a9b9692f455fbbfce5eeda8fa7b6 Author: Jarkko Nikula Date: Tue Oct 19 11:10:45 2010 +0300 ASoC: Fix I2C component device id number creation Use bitwise AND instead of logical AND when masking. Signed-off-by: Jarkko Nikula Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 7ada876a8703f23befbb20a7465a702ee39b1704 Author: Darren Hart Date: Sun Oct 17 08:35:04 2010 -0700 futex: Fix errors in nested key ref-counting futex_wait() is leaking key references due to futex_wait_setup() acquiring an additional reference via the queue_lock() routine. The nested key ref-counting has been masking bugs and complicating code analysis. queue_lock() is only called with a previously ref-counted key, so remove the additional ref-counting from the queue_(un)lock() functions. Also futex_wait_requeue_pi() drops one key reference too many in unqueue_me_pi(). Remove the key reference handling from unqueue_me_pi(). This was paired with a queue_lock() in futex_lock_pi(), so the count remains unchanged. Document remaining nested key ref-counting sites. Signed-off-by: Darren Hart Reported-and-tested-by: Matthieu Fertré Reported-by: Louis Rilling Cc: Peter Zijlstra Cc: Eric Dumazet Cc: John Kacur Cc: Rusty Russell LKML-Reference: <4CBB17A8.70401@linux.intel.com> Signed-off-by: Thomas Gleixner Cc: stable@kernel.org commit 5d6076bb2e642bbcb1263c6cf239b9a1f3d0df08 Author: Paul Gortmaker Date: Thu Oct 14 14:21:51 2010 +0000 3c52x: remove IRQF_SAMPLE_RANDOM from legacy MCA drivers. If you are genuinely using one of these legacy MCA drivers then you are tragically on hardware where you really don't have the extra CPU cycles to be wasting on this. In addition, it makes two less cases for people to inadvertently blindly copy flags from without explicitly thinking whether it makes sense -- see the addition to feature-removal.txt as per commit 9d9b8fb0e5ebf4b0398e579f6061d4451fea3242. Signed-off-by: Paul Gortmaker Signed-off-by: David S. Miller commit 7ff52efdca367d4bfe2449bd3d4a1f8172c5953a Author: Arnd Bergmann Date: Mon Oct 4 21:24:14 2010 +0200 dabusb: remove the BKL The dabusb device driver is sufficiently serialized using its own mutex, no need for the big kernel lock here in addition. Signed-off-by: Arnd Bergmann Cc: Mauro Carvalho Chehab commit a6f8dbc654c3dddc5ac98cf59a88447a90e99ece Author: Arnd Bergmann Date: Mon Oct 4 21:18:23 2010 +0200 sunrpc: remove the big kernel lock The sunrpc cache_ioctl function does not need the big kernel lock because it uses its own queue_lock already. rpc_pipe_ioctl apparently should be using i_lock like the other operations on the pipe file descriptor do. Signed-off-by: Arnd Bergmann commit 1fa4f3b57cf0c525027ea61011312de139b04f9b Author: Namhyung Kim Date: Mon Sep 27 16:06:54 2010 +0900 init/main.c: remove BKL notations According to commit 5e3d20a68f63fc5a310687d81956c3b96e488b84 (init: Remove the BKL from startup code) these sparse notations should be removed also. Signed-off-by: Namhyung Kim Signed-off-by: Arnd Bergmann commit 01b284f9b6d51cc3f3bcf3b49f16d2601d3ca22d Author: Arnd Bergmann Date: Fri Sep 17 20:39:22 2010 +0200 blktrace: remove the big kernel lock According to Jens, this code does not need the BKL at all, it is sufficiently serialized by bd_mutex. Signed-off-by: Arnd Bergmann Cc: Jens Axboe Cc: Steven Rostedt commit 0fc86c7bd924debd0bddee790ecc884604fdcc63 Author: Arnd Bergmann Date: Sat Sep 11 20:11:08 2010 +0200 rtmutex-tester: make it build without BKL The big kernel lock is going away, so make sure that if it is disabled by Kconfig, we do not try to validate it, which would result in compile errors. Signed-off-by: Arnd Bergmann Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Arjan van de Ven Cc: Andrew Morton commit 72024f1ec5164a70d84dd8cf4458fe4064a6b692 Author: Arnd Bergmann Date: Sat Sep 11 19:56:45 2010 +0200 dvb-core: kill the big kernel lock The dvb core only uses the big kernel lock in the open and ioctl functions, which means it can be replaced with a dvb specific mutex. Fortunately, all the ioctl functions go through dvb_usercopy, so we can move the serialization in there. Signed-off-by: Arnd Bergmann Cc: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org commit adfedd216d9f0bc3f5bfa8aab42932301d4edc31 Author: Arnd Bergmann Date: Sat Sep 11 19:53:25 2010 +0200 dvb/bt8xx: kill the big kernel lock The bt8xx driver only uses the big kernel lock in its dst_ca_ioctl function and never to serialize against other code, so we can trivially replace it with a private mutex. Signed-off-by: Arnd Bergmann Cc: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab commit efbec1cd042008b49fe3cad45604088c54905a06 Author: Arnd Bergmann Date: Sat Sep 11 19:31:43 2010 +0200 tlclk: remove big kernel lock This driver already has a global mutex, so let's just use that in the open function instead of the BKL. It may not even be needed there, but this patch should have the smallest impact. Signed-off-by: Arnd Bergmann Cc: Mark Gross commit c4a047272566b44b44222369d50a307c708c4f74 Author: Al Viro Date: Mon Aug 24 22:42:56 2009 +0000 fix rawctl compat ioctls breakage on amd64 and itanic RAW_SETBIND and RAW_GETBIND 32bit versions are fscked in interesting ways. 1) fs/compat_ioctl.c has COMPATIBLE_IOCTL(RAW_SETBIND) followed by HANDLE_IOCTL(RAW_SETBIND, raw_ioctl). The latter is ignored. 2) on amd64 (and itanic) the damn thing is broken - we have int + u64 + u64 and layouts on i386 and amd64 are _not_ the same. raw_ioctl() would work there, but it's never called due to (1). As it is, i386 /sbin/raw definitely doesn't work on amd64 boxen. 3) switching to raw_ioctl() as is would *not* work on e.g. sparc64 and ppc64, which would be rather sad, seeing that normal userland there is 32bit. The thing is, slapping __packed on the struct in question does not DTRT - it eliminates *all* padding. The real solution is to use compat_u64. 4) of course, all that stuff has no business being outside of raw.c in the first place - there should be ->compat_ioctl() for /dev/rawctl instead of messing with compat_ioctl.c. [akpm@linux-foundation.org: coding-style fixes] [arnd@arndb.de: port to 2.6.36] Signed-off-by: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Arnd Bergmann commit 9a181c58617134822ae596339dbea076ef9b5cf7 Author: Arnd Bergmann Date: Sat Sep 11 18:38:03 2010 +0200 uml: kill big kernel lock Three uml device drivers still use the big kernel lock, but all of them can be safely converted to using a per-driver mutex instead. Most likely this is not even necessary, so after further review these can and should be removed as well. The exec system call no longer requires the BKL either, so remove it from there, too. Signed-off-by: Arnd Bergmann Cc: Jeff Dike Cc: user-mode-linux-devel@lists.sourceforge.net commit daaae6b010ac0f60c9c35e481589966f9f1fcc22 Author: Tejun Heo Date: Tue Oct 19 11:28:15 2010 +0200 workqueue: remove in_workqueue_context() Commit a25909a4 (lockdep: Add an in_workqueue_context() lockdep-based test function) added in_workqueue_context() but there hasn't been any in-kernel user and the lockdep annotation in workqueue is scheduled to change. Remove the unused function. Signed-off-by: Tejun Heo Cc: Paul E. McKenney commit 31ddd871fc3db73e2024cb3eb3ee5051edf5a80f Author: Tejun Heo Date: Tue Oct 19 11:14:49 2010 +0200 workqueue: Clarify that schedule_on_each_cpu is synchronous The documentation for schedule_on_each_cpu() states that it calls a function on each online CPU from keventd. This can easily be interpreted as an asyncronous call because the description does not mention that flush_work is called. Clarify that it is synchronous. tj: rephrased a bit Signed-off-by: Mel Gorman Reviewed-by: KOSAKI Motohiro Signed-off-by: Tejun Heo commit 1cc9e8f4c45999e6069f41521d9d391eeeccc3b3 Author: Charles Date: Mon Oct 18 16:22:00 2010 +0800 ALSA: hda - Fix codec muted after rebooting from Windows Windows may leave pin power-down registers set after reboot, and this resulted in muted output on Linux. Reset these registers at initialization properly. Signed-off-by: Charles Chin Signed-off-by: Takashi Iwai commit 10ccd84695c2a03075bad2f4fc728575fe9051f8 Author: Tejun Heo Date: Tue Oct 19 11:08:41 2010 +0200 memory_hotplug: drop spurious calls to flush_scheduled_work() lru_add_drain_all() uses schedule_on_each_cpu() which is synchronous. There is no reason to call flush_scheduled_work() after lru_add_drain_all(). Drop the spurious calls. This is to prepare for the deprecation and removal of flush_scheduled_work(). Signed-off-by: Tejun Heo Acked-by: KAMEZAWA Hiroyuki Reviewed-by: Minchan Kim Acked-by: Mel Gorman commit 714f095f74582764d629785f03b459a3d0503624 Author: Hans Schillstrom Date: Tue Oct 19 10:38:48 2010 +0200 ipvs: IPv6 tunnel mode IPv6 encapsulation uses a bad source address for the tunnel. i.e. VIP will be used as local-addr and encap. dst addr. Decapsulation will not accept this. Example LVS (eth1 2003::2:0:1/96, VIP 2003::2:0:100) (eth0 2003::1:0:1/96) RS (ethX 2003::1:0:5/96) tcpdump 2003::2:0:100 > 2003::1:0:5: IP6 (hlim 63, next-header TCP (6) payload length: 40) 2003::3:0:10.50991 > 2003::2:0:100.http: Flags [S], cksum 0x7312 (correct), seq 3006460279, win 5760, options [mss 1440,sackOK,TS val 1904932 ecr 0,nop,wscale 3], length 0 In Linux IPv6 impl. you can't have a tunnel with an any cast address receiving packets (I have not tried to interpret RFC 2473) To have receive capabilities the tunnel must have: - Local address set as multicast addr or an unicast addr - Remote address set as an unicast addr. - Loop back addres or Link local address are not allowed. This causes us to setup a tunnel in the Real Server with the LVS as the remote address, here you can't use the VIP address since it's used inside the tunnel. Solution Use outgoing interface IPv6 address (match against the destination). i.e. use ip6_route_output() to look up the route cache and then use ipv6_dev_get_saddr(...) to set the source address of the encapsulated packet. Additionally, cache the results in new destination fields: dst_cookie and dst_saddr and properly check the returned dst from ip6_route_output. We now add xfrm_lookup call only for the tunneling method where the source address is a local one. Signed-off-by:Hans Schillstrom Signed-off-by: Patrick McHardy commit 1d7cfea152cae6159aa30ceae38c3eaf13ea083c Author: Chris Wilson Date: Sun Oct 17 09:45:41 2010 +0100 drm/i915: Do interrupible mutex lock first to avoid locking for unreference One of the primarily consumers of the i915 driver is X, a large signal driven application. Frequently when writing into the buffers, there is a pending signal which causes us not to take the interruptible lock but then we need to take that same lock around the object unreference. By rearranging the code to do the interruptible lock as the first check, we can avoid the frequent additional locking around the unreference. Signed-off-by: Chris Wilson commit 139d363bcf2d995a72694ddd2b8665af6cb7fb54 Author: Andrea Gelmini Date: Fri Oct 15 17:14:33 2010 +0200 drivers: gpu: drm: i915: Fix a typo. "userpace" -> "userspace" Signed-off-by: Andrea Gelmini Signed-off-by: Chris Wilson commit 3dde04b0152634d42994b34b86bbf3c70fbc6b19 Author: Chris Wilson Date: Thu Oct 14 16:30:41 2010 +0100 agp/intel: Also add B43.1 to list of supported devices This was a missing piece from 41a5142 that dropped recognition of the AGP module for the second B43 variant. Reported-by: Stefan Bader Signed-off-by: Chris Wilson Cc: stable@kernel.org commit 4f27b75d56334f33cbccff5da8372dc4aba122ba Author: Chris Wilson Date: Thu Oct 14 15:26:45 2010 +0100 drm/i915: rearrange mutex acquisition for pread ... to avoid the double acquisition along fast[er] paths. Signed-off-by: Chris Wilson commit fbd5a26d500c7cd8943cc5f37ccc7e49cf386053 Author: Chris Wilson Date: Thu Oct 14 15:03:58 2010 +0100 drm/i915: Rearrange acquisition of mutex during pwrite ... to avoid reacquiring it to drop the object reference count on exit. Note we have to make sure we now drop (and reacquire) the lock around acquiring the mm semaphore on the slow paths. Signed-off-by: Chris Wilson commit b5e4feb6615fe07150f05bb0e0ccc0ff9138b9ec Author: Chris Wilson Date: Thu Oct 14 13:47:43 2010 +0100 drm/i915: Attempt to prefault user pages for pread/pwrite ... in the hope that it makes the atomic fast paths more likely. Signed-off-by: Chris Wilson commit 202f2fef7a1aa6b2e4fa6e1de3ef582342fd41f0 Author: Chris Wilson Date: Thu Oct 14 13:20:40 2010 +0100 drm/i915: Avoid taking the mutex for dropping the refcnt upon creation After allocation a handle for the fresh object, we know that we can safely drop the refcnt without triggering a free so we do not need the mutex. Strangely, this mutex acquisition is the one that appears on driver profiles. Signed-off-by: Chris Wilson commit f0c43d9b7ec1bb9827b3dd5ac5915d22ceed8f6a Author: Chris Wilson Date: Thu Oct 14 12:44:48 2010 +0100 drm/i915: Perform relocations in CPU domain [if in CPU domain] Avoid an early eviction of the batch buffer into the uncached GTT domain, and so do the relocation fixup in cacheable memory. Signed-off-by: Chris Wilson commit ebbf41df4aabb6d506fa18ea8cb4c2b4388a18b9 Author: Pablo Neira Ayuso Date: Tue Oct 19 10:19:06 2010 +0200 netfilter: ctnetlink: add expectation deletion events This patch allows to listen to events that inform about expectations destroyed. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy commit 2549d6c26ce1c85a76990b972a2c7e8f440455cd Author: Chris Wilson Date: Thu Oct 14 12:10:41 2010 +0100 drm/i915: Avoid vmallocing a buffer for the relocations ... perform an access validation check up front instead and copy them in on-demand, during i915_gem_object_pin_and_relocate(). As around 20% of the CPU overhead may be spent inside vmalloc for the relocation entries when submitting an execbuffer [for x11perf -aa10text], the savings are considerable and result in around a 10% throughput increase [for glyphs]. Signed-off-by: Chris Wilson commit 55b7d6e8c4690047ac001026cb75a47f747db816 Author: Chris Wilson Date: Sun Sep 19 09:29:33 2010 +0100 drm/i915/hdmi: Add 'force_audio' property Allow the user to override the detection of the sink's audio capabilities from EDID. Not all sinks support the required EDID level to specify whether they handle audio over the display connection, so allow the user to enable it manually. Signed-off-by: Chris Wilson commit 7f36e7edd6c1851ea1f061ddbefb6f820a0575a2 Author: Chris Wilson Date: Sun Sep 19 09:29:33 2010 +0100 drm/i915/sdvo: Add 'force_audio' property Allow the user to override the detection of the sink's audio capabilities from EDID. Not all sinks support the required EDID level to specify whether they handle audio over the display connection, so allow the user to enable it manually. Signed-off-by: Chris Wilson commit f684960ed5b902994ba6540138d910f5caf7ea2a Author: Chris Wilson Date: Sun Sep 19 09:29:33 2010 +0100 drm/i915/dp: Add 'force_audio' property Allow the user to override the detection of the sink's audio capabilities from EDID. Not all sinks support the required EDID level to specify whether they handle audio over the display connection, so allow the user to enable it manually. Signed-off-by: Chris Wilson commit 2e3d6006aca163db3eeb931cec631974aaa3c293 Author: Zhenyu Wang Date: Fri Sep 10 10:39:40 2010 +0800 drm/i915: Enable HDMI audio for monitor with audio support Rely on monitor's audio capability to turn on audio output for HDMI. Tested-by: Wu Fengguang Signed-off-by: Zhenyu Wang Signed-off-by: Chris Wilson commit a9756bb5b25d5d997df0c5d8c95db01292191bea Author: Zhenyu Wang Date: Sun Sep 19 13:09:06 2010 +0800 drm/i915: Enable DisplayPort audio This will turn on DP audio output by checking monitor's audio capability. Signed-off-by: Zhenyu Wang [ickle: rebase onto recent changes and rearranged for clarity] Signed-off-by: Chris Wilson commit 8fe9790d1652e7c306c862ea102a5e6126b412e1 Author: Zhenyu Wang Date: Sun Sep 19 14:27:28 2010 +0800 drm/edid: add helper function to detect monitor audio capability To help to determine if digital display port needs to enable audio output or not. This one adds a helper to get monitor's audio capability via EDID CEA extension block. Tested-by: Wu Fengguang Signed-off-by: Zhenyu Wang Reviewed-by: Adam Jackson Signed-off-by: Chris Wilson commit 6d139a87b747aaebc969ac5f4eb8db766fcd9cbd Author: Bryan Freed Date: Thu Oct 14 09:14:51 2010 +0100 drm/i915: Initialize panel timing registers if VBIOS did not The time between start of the pixel clock and backlight enable is a basic panel timing constraint. If the Panel Power On/Off registers are found to be 0, assume we are booting without VBIOS initialization and set these registers to something reasonable. Change-Id: Ibed6cc10d46bf52fd92e0beb25ae3525b5eef99d Signed-off-by: Bryan Freed [ickle: rearranged into a separate function to distinguish its role from simply parsing the VBIOS tables.] Signed-off-by: Chris Wilson commit e60a0b107b3df072e23cb6d68510aa2615b059ce Author: Chris Wilson Date: Wed Oct 13 10:09:14 2010 +0100 drm/i915: Sleep whilst waiting for the ring If userspace is submitting so many long running batches that the ring becomes full, throttle by sleeping for a 1ms before checking for free space. Simply yielding was causing excessive scheduler overhead whilst making no progress. Signed-off-by: Chris Wilson commit 7b5337ddbaf7e4b71ef6fd6307c6f9ef84f636e9 Author: Zhenyu Wang Date: Wed Oct 13 16:40:12 2010 +0800 drm/i915: Fix GPIO pin to register mapping In i2c GPIO fallback, index 6 is reserved for nothing. Signed-off-by: Zhenyu Wang Signed-off-by: Chris Wilson commit 8b99e68c0a40bcf082c1ba9aaad83cca4def8cec Author: Chris Wilson Date: Wed Oct 13 09:59:17 2010 +0100 drm/i915: restore fixed FDI link rate on Sandybridge FDI_PLL_BIOS_0 register is for Ironlake only, don't apply to Sandybridge. Original-patch-by: Zhenyu Wang Signed-off-by: Chris Wilson commit 736085bcf91720fd90175c288c542c721c281bb0 Author: Jesse Barnes Date: Fri Oct 8 10:35:55 2010 -0700 drm/i915/dp: down the DP link even if the reg indicates it's already down Since the PLL may still be on, and the training pattern may not be correct. Fixes suspend/resume on my PCH eDP test system. Signed-off-by: Jesse Barnes [ickle: minor merge conflict and silence the compiler] Signed-off-by: Chris Wilson commit 701394cc534a4a7883ddc4f8f82fb438b3d664ff Author: Daniel Vetter Date: Sun Oct 10 18:54:08 2010 +0100 drm/i915: Fix oops on HWS unload Freeing the Hardware Status Page was writing to the HWS register in order to disable the GPU writing to the HWS page. Unfortunately, we were writing to the mmio register after unmapping the register space, hence the oops. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 939fe4d7d6e2c92370ca5d1fb70e81043f5ff8d9 Author: Chris Wilson Date: Sat Oct 9 10:33:26 2010 +0100 drm/i915: Remove duplicate set of ADPA definitions Signed-off-by: Chris Wilson commit 83e41eb9cc3de6c08d63bbcf2c953bfbf65c025c Author: Chris Wilson Date: Fri Oct 8 16:28:27 2010 +0100 Revert "drm/i915: Prevent module unload to avoid random memory corruption" This reverts commit 6939a5aca7cfada279a24c307e772f33104fca20. Daniel Vetter supplied a set of fixes for all the module unload bugs he could trigger on his machines, so let the fun recommence! commit fb9a90f7c674f3ddef6baf55cb1612dadd8ea752 Merge: 2d7b836 21c74a8 Author: Chris Wilson Date: Tue Oct 19 09:13:00 2010 +0100 Merge remote branch 'airlied/drm-core-next' into tmp commit 6362beea8914cbd4630ccde3617d944aeca2d48f Author: Mike Miller Date: Tue Oct 19 09:40:34 2010 +0200 cciss: fix PCI IDs for new Smart Array controllers cciss: fix PCI IDs for new controllers This patch fixes the botched up PCI IDs of new controllers. Please consider this patch for inclusion. Signed-off-by: Mike Miller Signed-off-by: Jens Axboe commit 9717967c4b704ce344c954afb5bb160aa9c01c34 Author: Yinghai Lu Date: Mon Oct 18 13:47:48 2010 -0700 x86: ioapic: Call free_irte only if interrupt remapping enabled On a system that support intr-rempping when booting with "intremap=off" [ 177.895501] BUG: unable to handle kernel NULL pointer dereference at 00000000000000f8 [ 177.913316] IP: [] free_irte+0x47/0xc0 ... [ 178.173326] Call Trace: [ 178.173574] [] destroy_irq+0x3a/0x75 [ 178.192934] [] arch_teardown_msi_irq+0xe/0x10 [ 178.193418] [] arch_teardown_msi_irqs+0x56/0x7f [ 178.213021] [] free_msi_irqs+0x8d/0xeb Call free_irte only when interrupt remapping is enabled. Signed-off-by: Yinghai Lu LKML-Reference: <4CBCB274.7010108@kernel.org> Signed-off-by: Thomas Gleixner commit 57fa7214330be2e292ddb1402834ff0b221ef29a Author: Paul Mackerras Date: Tue Oct 19 16:55:35 2010 +1100 perf, powerpc: Fix power_pmu_event_init to not use event->ctx Commit c3f00c70 ("perf: Separate find_get_context() from event initialization") changed the generic perf_event code to call perf_event_alloc, which calls the arch-specific event_init code, before looking up the context for the new event. Unfortunately, power_pmu_event_init uses event->ctx->task to see whether the new event is a per-task event or a system-wide event, and thus crashes since event->ctx is NULL at the point where power_pmu_event_init gets called. (The reason it needs to know whether it is a per-task event is because there are some hardware events on Power systems which only count when the processor is not idle, and there are some fixed-function counters which count such events. For example, the "run cycles" event counts cycles when the processor is not idle. If the user asks to count cycles, we can use "run cycles" if this is a per-task event, since the processor is running when the task is running, by definition. We can't use "run cycles" if the user asks for "cycles" on a system-wide counter.) Fortunately the information we need is in the event->attach_state field, so we just use that instead. Signed-off-by: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: Peter Zijlstra Cc: Frederic Weisbecker LKML-Reference: <20101019055535.GA10398@drongo> Signed-off-by: Ingo Molnar Reported-by: Alexey Kardashevskiy Signed-off-by: Ingo Molnar commit fa251f89903d73989e2f63e13d0eaed1e07ce0da Merge: dd3932e cd07202 Author: Jens Axboe Date: Tue Oct 19 09:13:04 2010 +0200 Merge branch 'v2.6.36-rc8' into for-2.6.37/barrier Conflicts: block/blk-core.c drivers/block/loop.c mm/swapfile.c Signed-off-by: Jens Axboe commit 7681bfeeccff5efa9eb29bf09249a3c400b15327 Author: Yasuaki Ishimatsu Date: Tue Oct 19 09:05:00 2010 +0200 block: fix accounting bug on cross partition merges /proc/diskstats would display a strange output as follows. $ cat /proc/diskstats |grep sda 8 0 sda 90524 7579 102154 20464 0 0 0 0 0 14096 20089 8 1 sda1 19085 1352 21841 4209 0 0 0 0 4294967064 15689 4293424691 ~~~~~~~~~~ 8 2 sda2 71252 3624 74891 15950 0 0 0 0 232 23995 1562390 8 3 sda3 54 487 2188 92 0 0 0 0 0 88 92 8 4 sda4 4 0 8 0 0 0 0 0 0 0 0 8 5 sda5 81 2027 2130 138 0 0 0 0 0 87 137 Its reason is the wrong way of accounting hd_struct->in_flight. When a bio is merged into a request belongs to different partition by ELEVATOR_FRONT_MERGE. The detailed root cause is as follows. Assuming that there are two partition, sda1 and sda2. 1. A request for sda2 is in request_queue. Hence sda1's hd_struct->in_flight is 0 and sda2's one is 1. | hd_struct->in_flight --------------------------- sda1 | 0 sda2 | 1 --------------------------- 2. A bio belongs to sda1 is issued and is merged into the request mentioned on step1 by ELEVATOR_BACK_MERGE. The first sector of the request is changed from sda2 region to sda1 region. However the two partition's hd_struct->in_flight are not changed. | hd_struct->in_flight --------------------------- sda1 | 0 sda2 | 1 --------------------------- 3. The request is finished and blk_account_io_done() is called. In this case, sda2's hd_struct->in_flight, not a sda1's one, is decremented. | hd_struct->in_flight --------------------------- sda1 | -1 sda2 | 1 --------------------------- The patch fixes the problem by caching the partition lookup inside the request structure, hence making sure that the increment and decrement will always happen on the same partition struct. This also speeds up IO with accounting enabled, since it cuts down on the number of lookups we have to do. When reloading partition tables, quiesce IO to ensure that no request references to the partition struct exists. When it is safe to free the partition table, the IO for that device is restarted again. Signed-off-by: Yasuaki Ishimatsu Cc: stable@kernel.org Signed-off-by: Jens Axboe commit 1fa41266e9d20f6d66f9d7d067d9825e2c1002b9 Merge: ebf31f5 d7b4d6d Author: Ingo Molnar Date: Tue Oct 19 08:21:10 2010 +0200 Merge branch 'tip/perf/recordmcount-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core commit 10dcc7a2bde3e0acafad5492faab430c5b6d8fab Author: Darius Augulis Date: Tue Oct 19 13:52:37 2010 +0900 ARM: S3C64XX: add USB host support for mach-real6410 Add USB host device support for mach-real6410 Signed-off-by: Darius Augulis Signed-off-by: Kukjin Kim commit 4374c456724abf99210c9d2aa419bd6ea8cddaa6 Author: Darius Augulis Date: Tue Oct 19 13:52:34 2010 +0900 ARM: S3C64XX: add touchscreen support for mach-real6410 Add touchscreen device support for mach-real6410 Signed-off-by: Darius Augulis Signed-off-by: Kukjin Kim commit 88fbadea18bd58a5a5ae2051e6bbbec7dcbacbb4 Author: Darius Augulis Date: Tue Oct 19 13:52:32 2010 +0900 ARM: S3C64XX: add nand support for mach-real6410 Add nand device support and mtd partition table for mach-real6410 Signed-off-by: Darius Augulis Signed-off-by: Kukjin Kim commit c115f67c03e468f18431840a97279cd3bfee8ad7 Author: Darius Augulis Date: Tue Oct 19 13:52:29 2010 +0900 ARM: S3C64XX: add frame buffer support for mach-real6410 Add support for frame buffer device for mach-real6410. Patch also adds support for feature string parsing for real6410. The feature string is kernel command line passed and currently lets select only LCD configuration. At the moment there is support for two LCD configurations - 4.3" and 7.0". Feature parser is mach-mini2440 based. Signed-off-by: Darius Augulis Signed-off-by: Kukjin Kim commit 21c74a8ea8b47eb6c3c621e36578f6e27f65c5c7 Author: Jason Wessel Date: Wed Oct 13 14:09:44 2010 -0500 drm, kdb, kms: Change mode_set_base_atomic() enter argument to be an enum The enter argument as implemented by commit 413d45d3627 (drm, kdb, kms: Add an enter argument to mode_set_base_atomic() API) should be more descriptive as to what it does vs just passing 1 and 0 around. There is no runtime behavior change as a result of this patch. Reported-by: Jesse Barnes Signed-off-by: Jason Wessel CC: David Airlie CC: dri-devel@lists.freedesktop.org Signed-off-by: Dave Airlie commit 99231028ff713820829b798d056c08a584281c25 Author: Jason Wessel Date: Wed Oct 13 14:09:43 2010 -0500 kdb, kms: Save and restore the LUT on atomic KMS enter/exit When changing VTs non-atomically the kernel works in conjunction with the Xserver in user space and receives the LUT information from the Xserver via a system call. When changing modes atomically for kdb, this information must be saved and restored without disturbing user space as if nothing ever happened. There is a short cut used by this patch where gamma_store is used as the save space. If this turns out to be a problem in the future a pre-allocated chunk of memory will be required for each crtc to save and restore the LUT information. Signed-off-by: Jason Wessel CC: Jesse Barnes CC: David Airlie CC: dri-devel@lists.freedesktop.org Signed-off-by: Dave Airlie commit 38ed0fcacd6176cdadd070df42c29f94c546aec5 Author: Jason Wessel Date: Wed Oct 13 14:09:42 2010 -0500 Revert "radeon, kdb, kms: Save and restore the LUT on atomic KMS enter/exit" This reverts commit ff773714dd30b802c336064109c535d8b2774e2f. A generic solution is needed to save and retore the LUT information. CC: Jesse Barnes CC: dri-devel@lists.freedesktop.org Signed-off-by: Jason Wessel Signed-off-by: Dave Airlie commit f6086134d0b17b2c37f537a5429a919b3d2cced8 Author: Francisco Jerez Date: Sat Oct 16 00:45:15 2010 +0000 agp/amd-k7: Allow binding user memory to the AGP GART. TTM-based DRM drivers need to be able to bind user memory to the AGP aperture. This patch fixes the "[TTM] AGP Bind memory failed." errors and the subsequent fallout seen with the nouveau driver. Signed-off-by: Francisco Jerez Tested-by: Grzesiek Sójka Signed-off-by: Dave Airlie commit 965d38074e6eae71757a8baf9a348139e1e6894d Author: Jean Delvare Date: Sat Oct 9 12:36:45 2010 +0000 drm/ttm: Simplify ttm_bo_wait_unreserved Function ttm_bo_wait_unreserved can be slightly simplified. Signed-off-by: Jean Delvare Cc: Thomas Hellstrom Cc: Jerome Glisse Signed-off-by: Dave Airlie commit 5480f727dc4c049eb46b191bfaeb034067aa6835 Author: Dave Airlie Date: Tue Oct 19 10:36:47 2010 +1000 Revert "drm/radeon/kms: remove some pll algo flags" This reverts commit f28488c282d8916b9b6190cc41714815bbaf97d5. On my rv610 test machine the monitor failed to light up after this. Signed-off-by: Dave Airlie commit 82acf2a8fe4764e21a7ad406590453b004751e58 Author: Feng Tang Date: Tue Oct 19 10:15:03 2010 +0800 SFI: remove the v0.7 related definitions from sfi.h SFI v0.8's DEVS and GPIO tables replaces v0.7's SPI/I2C tables. Signed-off-by: Feng Tang Signed-off-by: Len Brown commit d537155a09cd69f309fa31fc8bcc7a4b1d5a9f6c Author: Michael Hennerich Date: Mon Oct 18 17:46:03 2010 -0700 Input: adp5588-keys - use more obvious i2c_device_id name string KBUILD_MODNAME normalizes "-" to "_". This is non-obvious and results in the id name for ADP5588 being "adp5588_keys" while the other supported id is "adp5587-keys". So avoid this define and use an explicit string as the id name. Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger Signed-off-by: Dmitry Torokhov commit 4a84386fc27fdc7d2ea69fdbc641008e8f943159 Author: Tom Tucker Date: Tue Oct 12 15:33:57 2010 -0500 svcrdma: Cleanup DMA unmapping in error paths. There are several error paths in the code that do not unmap DMA. This patch adds calls to svc_rdma_unmap_dma to free these DMA contexts. Signed-off-by: Tom Tucker Signed-off-by: J. Bruce Fields commit b432e6b3d9c1b4271c43f02b45136f33a8ed5820 Author: Tom Tucker Date: Tue Oct 12 15:33:52 2010 -0500 svcrdma: Change DMA mapping logic to avoid the page_address kernel API There was logic in the send path that assumed that a page containing data to send to the client has a KVA. This is not always the case and can result in data corruption when page_address returns zero and we end up DMA mapping zero. This patch changes the bus mapping logic to avoid page_address() where necessary and converts all calls from ib_dma_map_single to ib_dma_map_page in order to keep the map/unmap calls symmetric. Signed-off-by: Tom Tucker Signed-off-by: J. Bruce Fields commit c9220b0f7cbd1d2272426aa81a72ae2f6582bb71 Author: Dave Airlie Date: Fri Oct 8 08:57:10 2010 +1000 drm/ttm: add unlocked variant of new manager put node. We need the unlocked variant for the new codepath introduced to fix the race condition in master recently. Signed-off-by: Dave Airlie commit b7ae5056c94a8191c1fd0b5697707377516c0c5d Merge: 2126d0a 6a2a11d Author: Dave Airlie Date: Tue Oct 19 09:48:34 2010 +1000 Merge branch 'drm-fixes' of /home/airlied/kernel/linux-2.6 into drm-core-next Conflicts: drivers/gpu/drm/i915/intel_fb.c drivers/gpu/drm/radeon/r600_blit_kms.c drivers/gpu/drm/ttm/ttm_bo.c commit e86e1244a41352d1b78d32c10316fc4df2c86a8a Author: Mark Brown Date: Mon Oct 18 16:45:24 2010 -0700 ASoC: Restore MAX98088 CODEC driver This reverts commit f6765502f8daae3d237a394889276c8987f3e299 and adds the missing include file. Signed-off-by: Peter Hsiang Signed-off-by: Mark Brown commit 02ffc5f3f91c265e110ddd1fdd7019a18426ebe5 Author: Julia Lawall Date: Mon Oct 18 16:11:13 2010 +0200 ASoC: davinci-mcasp.c: Return error code in failure In this code, 0 is returned on failure, even though other failures return -ENOMEM or other similar values. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @a@ identifier alloc; identifier ret; constant C; expression x; @@ x = alloc(...); if (x == NULL) { <+... \(ret = -C; \| return -C; \) ...+> } @@ identifier f, a.alloc; expression ret; expression x,e1,e2,e3; @@ ret = 0 ... when != ret = e1 *x = alloc(...) ... when != ret = e2 if (x == NULL) { ... when != ret = e3 return ret; } // Signed-off-by: Julia Lawall Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit fe0cdec8bad919fd91cd344123906a55f3857209 Author: Kukjin Kim Date: Thu Sep 9 21:57:29 2010 +0900 ARM: S5PV310: Fix build error on GPIO map This patch fixes build error about GPIO address due to conflict of commit 4d914705 and 19a2c065. - commit 4d914705: Fix on GPIO base addresses - commit 19a2c065: Moves initial map for merging S5P64X0 Signed-off-by: Kukjin Kim commit a0a55682b83fd5f012afadcf415b030d7424ae68 Merge: 23beab7 865a4fa Author: Russell King Date: Mon Oct 18 22:34:47 2010 +0100 Merge branch 'hotplug' into devel Conflicts: arch/arm/kernel/head-common.S commit 23beab76b490172a9ff3d52843e4d27a35b2a4c6 Merge: 8ed9059 5fb31a9 80be7a7 19852e5 29e29f2 725343f 9e978f0 f3af03d 5333a3d Author: Russell King Date: Mon Oct 18 22:34:25 2010 +0100 Merge branches 'at91', 'dcache', 'ftrace', 'hwbpt', 'misc', 'mmci', 's3c', 'st-ux' and 'unwind' into devel commit 2c52f8d3f787ec8e39022da7d57b9f4f482ad2d0 Author: Konrad Rzeszutek Wilk Date: Mon Oct 18 17:11:10 2010 -0400 x86: xen: Sanitse irq handling (part two) Thomas Gleixner cleaned up event handling to use the sparse_irq handling, but the xen-pcifront patches utilized the old mechanism. This fixes them to work with sparse_irq handling. Signed-off-by: Konrad Rzeszutek Wilk commit d7b4d6de57d414a6384376880f2caf7125a45494 Author: Steven Rostedt Date: Mon Oct 18 14:42:00 2010 -0400 ftrace: Remove recursion between recordmcount and scripts/mod/empty When DYNAMIC_FTRACE is enabled and we use the C version of recordmcount, all objects are run through the recordmcount program to create a separate section that stores all the callers of mcount. The build process has a special file: scripts/mod/empty.o. This is built from empty.c which is literally an empty file (except for a single comment). This file is used to find information about the target elf format, like endianness and word size. The problem comes up when we need to build recordmcount. The build process requires that empty.o is built first. The build rules for empty.o will try to execute recordmcount on the empty.o file. We get an error that recordmcount does not exist. To avoid this recursion, the build file will skip running recordmcount if the file that it is building is script/mod/empty.o. [ extra comment Suggested-by: Sam Ravnborg ] Reported-by: Ingo Molnar Tested-by: Ingo Molnar Cc: Michal Marek Cc: linux-kbuild@vger.kernel.org Signed-off-by: Steven Rostedt commit f3af03de0b1c42225d492d874d9afeed0c02568c Author: Srinidhi Kasagar Date: Thu Oct 14 08:12:40 2010 +0100 ARM: 6441/1: ux500: The platform is not just based on early drop silicon version. Update Kconfig text accordingly. Signed-off-by: srinidhi kasagar Acked-by: Linus Walleij Signed-off-by: Russell King commit a731cd116c9334e01bcf3e676c0c621fe7de6ce4 Author: Thomas Gleixner Date: Tue Sep 7 14:33:15 2010 +0000 xfs: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. (Ported to current XFS code by .) Signed-off-by: Thomas Gleixner Signed-off-by: Alex Elder commit 6743099ce57a40509a86849a22317ed4b7516911 Author: Arkadiusz Mi?kiewicz Date: Sun Sep 26 06:10:18 2010 +0000 xfs: Extend project quotas to support 32bit project ids This patch adds support for 32bit project quota identifiers. On disk format is backward compatible with 16bit projid numbers. projid on disk is now kept in two 16bit values - di_projid_lo (which holds the same position as old 16bit projid value) and new di_projid_hi (takes existing padding) and converts from/to 32bit value on the fly. xfs_admin (for existing fs), mkfs.xfs (for new fs) needs to be used to enable PROJID32BIT support. Signed-off-by: Arkadiusz Miśkiewicz Reviewed-by: Christoph Hellwig Signed-off-by: Alex Elder commit 1a1a3e97bad42e92cd2f32e81c396c8ee0bddb28 Author: Christoph Hellwig Date: Wed Oct 6 18:41:18 2010 +0000 xfs: remove xfs_buf wrappers Stop having two different names for many buffer functions and use the more descriptive xfs_buf_* names directly. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 6c77b0ea1bdf85dfd48c20ceb10fd215a95c66e2 Author: Christoph Hellwig Date: Wed Oct 6 18:41:17 2010 +0000 xfs: remove xfs_cred.h We're not actually passing around credentials inside XFS for a while now, so remove all xfs_cred.h with it's cred_t typedef and all instances of it. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 78a4b0961ff241c6f23b16329db0d67e97cb86a7 Author: Christoph Hellwig Date: Wed Oct 6 18:41:16 2010 +0000 xfs: remove xfs_globals.h This header only provides one extern that isn't actually declared anywhere, and shadowed by a macro. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 668332e5fec809bb100da619fda80e033b12b4a7 Author: Christoph Hellwig Date: Wed Oct 6 18:41:15 2010 +0000 xfs: remove xfs_version.h It used to have a place when it contained an automatically generated CVS version, but these days it's entirely superflous. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 1ae4fe6dba24ebabcd12cd0fa45cc5955394cbd8 Author: Christoph Hellwig Date: Wed Oct 6 18:41:14 2010 +0000 xfs: remove xfs_refcache.h This header has been completely unused for a couple of years. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 4957a449a1bce2f5095f57f84114dc038a8f08d5 Author: Christoph Hellwig Date: Wed Oct 6 18:41:13 2010 +0000 xfs: fix the xfs_trans_committed Use the correct prototype for xfs_trans_committed instead of casting it. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit dfe188d4283752086d48380cde40d9801c318667 Author: Christoph Hellwig Date: Wed Oct 6 18:41:12 2010 +0000 xfs: remove unused t_callback field in struct xfs_trans Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit d276734d937a649ff43fd197d0df7a747bd55b7e Author: Christoph Hellwig Date: Wed Oct 6 18:31:23 2010 +0000 xfs: fix bogus m_maxagi check in xfs_iget These days inode64 should only control which AGs we allocate new inodes from, while we still try to support reading all existing inodes. To make this actually work the check ontop of xfs_iget needs to be relaxed to allow inodes in all allocation groups instead of just those that we allow allocating inodes from. Note that we can't simply remove the check - it prevents us from accessing invalid data when fed invalid inode numbers from NFS or bulkstat. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 1b0407125f9a5be63e861eb27c8af9e32f20619c Author: Christoph Hellwig Date: Thu Sep 30 02:25:56 2010 +0000 xfs: do not use xfs_mod_incore_sb_batch for per-cpu counters Update the per-cpu counters manually in xfs_trans_unreserve_and_mod_sb and remove support for per-cpu counters from xfs_mod_incore_sb_batch to simplify it. And added benefit is that we don't have to take m_sb_lock for transactions that only modify per-cpu counters. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 96540c78583a417113df4d027e6b68a595ab9a09 Author: Christoph Hellwig Date: Thu Sep 30 02:25:55 2010 +0000 xfs: do not use xfs_mod_incore_sb for per-cpu counters Export xfs_icsb_modify_counters and always use it for modifying the per-cpu counters. Remove support for per-cpu counters from xfs_mod_incore_sb to simplify it. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 61ba35dea0593fbc8d062cab3e4c4c3da5ce7104 Author: Christoph Hellwig Date: Thu Sep 30 02:25:54 2010 +0000 xfs: remove XFS_MOUNT_NO_PERCPU_SB Fail the mount if we can't allocate memory for the per-CPU counters. This is consistent with how we handle everything else in the mount path and makes the superblock counter modification a lot simpler. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 50f59e8eed85ec4c79bc2454ed50c7886f6c5ebf Author: Dave Chinner Date: Fri Sep 24 19:59:15 2010 +1000 xfs: pack xfs_buf structure more tightly pahole reports the struct xfs_buf has quite a few holes in it, so packing the structure better will reduce the size of it by 16 bytes. Also, move all the fields used in cache lookups into the first cacheline. Before on x86_64: /* size: 320, cachelines: 5 */ /* sum members: 298, holes: 6, sum holes: 22 */ After on x86_64: /* size: 304, cachelines: 5 */ /* padding: 6 */ /* last cacheline: 48 bytes */ Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit 74f75a0cb7033918eb0fa4a50df25091ac75c16e Author: Dave Chinner Date: Fri Sep 24 19:59:04 2010 +1000 xfs: convert buffer cache hash to rbtree The buffer cache hash is showing typical hash scalability problems. In large scale testing the number of cached items growing far larger than the hash can efficiently handle. Hence we need to move to a self-scaling cache indexing mechanism. I have selected rbtrees for indexing becuse they can have O(log n) search scalability, and insert and remove cost is not excessive, even on large trees. Hence we should be able to cache large numbers of buffers without incurring the excessive cache miss search penalties that the hash is imposing on us. To ensure we still have parallel access to the cache, we need multiple trees. Rather than hashing the buffers by disk address to select a tree, it seems more sensible to separate trees by typical access patterns. Most operations use buffers from within a single AG at a time, so rather than searching lots of different lists, separate the buffer indexes out into per-AG rbtrees. This means that searches during metadata operation have a much higher chance of hitting cache resident nodes, and that updates of the tree are less likely to disturb trees being accessed on other CPUs doing independent operations. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit 69b491c214d7fd4d4df972ae5377be99ca3753db Author: Dave Chinner Date: Mon Sep 27 11:09:51 2010 +1000 xfs: serialise inode reclaim within an AG Memory reclaim via shrinkers has a terrible habit of having N+M concurrent shrinker executions (N = num CPUs, M = num kswapds) all trying to shrink the same cache. When the cache they are all working on is protected by a single spinlock, massive contention an slowdowns occur. Wrap the per-ag inode caches with a reclaim mutex to serialise reclaim access to the AG. This will block concurrent reclaim in each AG but still allow reclaim to scan multiple AGs concurrently. Allow shrinkers to move on to the next AG if it can't get the lock, and if we can't get any AG, then start blocking on locks. To prevent reclaimers from continually scanning the same inodes in each AG, add a cursor that tracks where the last reclaim got up to and start from that point on the next reclaim. This should avoid only ever scanning a small number of inodes at the satart of each AG and not making progress. If we have a non-shrinker based reclaim pass, ignore the cursor and reset it to zero once we are done. Signed-off-by: Dave Chinner Reviewed-by: Alex Elder commit e3a20c0b02e1704ab115dfa9d012caf0fbc45ed0 Author: Dave Chinner Date: Fri Sep 24 19:51:50 2010 +1000 xfs: batch inode reclaim lookup Batch and optimise the per-ag inode lookup for reclaim to minimise scanning overhead. This involves gang lookups on the radix trees to get multiple inodes during each tree walk, and tighter validation of what inodes can be reclaimed without blocking befor we take any locks. This is based on ideas suggested in a proof-of-concept patch posted by Nick Piggin. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit 78ae5256768b91f25ce7a4eb9f56d563e302cc10 Author: Dave Chinner Date: Tue Sep 28 12:28:19 2010 +1000 xfs: implement batched inode lookups for AG walking With the reclaim code separated from the generic walking code, it is simple to implement batched lookups for the generic walk code. Separate out the inode validation from the execute operations and modify the tree lookups to get a batch of inodes at a time. Reclaim operations will be optimised separately. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit e13de955ca67b0bd1cec9a2f9352a3053065bf7f Author: Dave Chinner Date: Tue Sep 28 12:28:06 2010 +1000 xfs: split out inode walk inode grabbing When doing read side inode cache walks, the code to validate and grab an inode is common to all callers. Split it out of the execute callbacks in preparation for batching lookups. Similarly, split out the inode reference dropping from the execute callbacks into the main lookup look to be symmetric with the grab. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit 65d0f20533c503b50bd5e7e86434512af7761eea Author: Dave Chinner Date: Fri Sep 24 18:40:15 2010 +1000 xfs: split inode AG walking into separate code for reclaim The reclaim walk requires different locking and has a slightly different walk algorithm, so separate it out so that it can be optimised separately. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit 69d6cc76cff3573ceefda178b75e20878866fdc3 Author: Dave Chinner Date: Wed Sep 22 10:47:20 2010 +1000 xfs: remove buftarg hash for external devices For RT and external log devices, we never use hashed buffers on them now. Remove the buftarg hash tables that are set up for them. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit 1922c949c59f93beb560d59874bcc6d5c00115ac Author: Dave Chinner Date: Wed Sep 22 10:47:20 2010 +1000 xfs: use unhashed buffers for size checks When we are checking we can access the last block of each device, we do not need to use cached buffers as they will be tossed away immediately. Use uncached buffers for size checks so that all IO prior to full in-memory structure initialisation does not use the buffer cache. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit 26af655233dd486659235f3049959d2f7dafc5a1 Author: Dave Chinner Date: Wed Sep 22 10:47:20 2010 +1000 xfs: kill XBF_FS_MANAGED buffers Filesystem level managed buffers are buffers that have their lifecycle controlled by the filesystem layer, not the buffer cache. We currently cache these buffers, which makes cleanup and cache walking somewhat troublesome. Convert the fs managed buffers to uncached buffers obtained by via xfs_buf_get_uncached(), and remove the XBF_FS_MANAGED special cases from the buffer cache. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit ebad861b5702c3e2332a3e906978f47144d22f70 Author: Dave Chinner Date: Wed Sep 22 10:47:20 2010 +1000 xfs: store xfs_mount in the buftarg instead of in the xfs_buf Each buffer contains both a buftarg pointer and a mount pointer. If we add a mount pointer into the buftarg, we can avoid needing the b_mount field in every buffer and grab it from the buftarg when needed instead. This shrinks the xfs_buf by 8 bytes. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit 5adc94c247c3779782c7b0b8b5e28cf50596eb37 Author: Dave Chinner Date: Fri Sep 24 21:58:31 2010 +1000 xfs: introduced uncached buffer read primitve To avoid the need to use cached buffers for single-shot or buffers cached at the filesystem level, introduce a new buffer read primitive that bypasses the cache an reads directly from disk. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit 686865f76e35b28ba7aa6afa19209426f0da6201 Author: Dave Chinner Date: Fri Sep 24 20:07:47 2010 +1000 xfs: rename xfs_buf_get_nodaddr to be more appropriate xfs_buf_get_nodaddr() is really used to allocate a buffer that is uncached. While it is not directly assigned a disk address, the fact that they are not cached is a more important distinction. With the upcoming uncached buffer read primitive, we should be consistent with this disctinction. While there, make page allocation in xfs_buf_get_nodaddr() safe against memory reclaim re-entrancy into the filesystem by allowing a flags parameter to be passed. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit dcd79a1423f64ee0184629874805c3ac40f3a2c5 Author: Dave Chinner Date: Tue Sep 28 12:27:25 2010 +1000 xfs: don't use vfs writeback for pure metadata modifications Under heavy multi-way parallel create workloads, the VFS struggles to write back all the inodes that have been changed in age order. The bdi flusher thread becomes CPU bound, spending 85% of it's time in the VFS code, mostly traversing the superblock dirty inode list to separate dirty inodes old enough to flush. We already keep an index of all metadata changes in age order - in the AIL - and continued log pressure will do age ordered writeback without any extra overhead at all. If there is no pressure on the log, the xfssyncd will periodically write back metadata in ascending disk address offset order so will be very efficient. Hence we can stop marking VFS inodes dirty during transaction commit or when changing timestamps during transactions. This will keep the inodes in the superblock dirty list to those containing data or unlogged metadata changes. However, the timstamp changes are slightly more complex than this - there are a couple of places that do unlogged updates of the timestamps, and the VFS need to be informed of these. Hence add a new function xfs_trans_ichgtime() for transactional changes, and leave xfs_ichgtime() for the non-transactional changes. Signed-off-by: Dave Chinner Reviewed-by: Alex Elder Reviewed-by: Christoph Hellwig commit e176579e70118ed7cfdb60f963628fe0ca771f3d Author: Dave Chinner Date: Wed Sep 22 10:47:20 2010 +1000 xfs: lockless per-ag lookups When we start taking a reference to the per-ag for every cached buffer in the system, kernel lockstat profiling on an 8-way create workload shows the mp->m_perag_lock has higher acquisition rates than the inode lock and has significantly more contention. That is, it becomes the highest contended lock in the system. The perag lookup is trivial to convert to lock-less RCU lookups because perag structures never go away. Hence the only thing we need to protect against is tree structure changes during a grow. This can be done simply by replacing the locking in xfs_perag_get() with RCU read locking. This removes the mp->m_perag_lock completely from this path. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit bd32d25a7cf7242512e77e70bab63df4402ab91c Author: Dave Chinner Date: Wed Sep 22 10:47:20 2010 +1000 xfs: remove debug assert for per-ag reference counting When we start taking references per cached buffer to the the perag it is cached on, it will blow the current debug maximum reference count assert out of the water. The assert has never caught a bug, and we have tracing to track changes if there ever is a problem, so just remove it. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit d1583a3833290ab9f8b13a064acbb5e508c59f60 Author: Dave Chinner Date: Fri Sep 24 18:14:13 2010 +1000 xfs: reduce the number of CIL lock round trips during commit When commiting a transaction, we do a lock CIL state lock round trip on every single log vector we insert into the CIL. This is resulting in the lock being as hot as the inode and dcache locks on 8-way create workloads. Rework the insertion loops to bring the number of lock round trips to one per transaction for log vectors, and one more do the busy extents. Also change the allocation of the log vector buffer not to zero it as we copy over the entire allocated buffer anyway. This patch also includes a structural cleanup to the CIL item insertion provided by Christoph Hellwig. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Alex Elder commit 9c169915ad374cd9efb1556943b2074ec07e1749 Author: Poyo VL Date: Thu Sep 2 07:41:55 2010 +0000 xfs: eliminate some newly-reported gcc warnings Ionut Gabriel Popescu submitted a simple change to eliminate some "may be used uninitialized" warnings when building XFS. The reported condition seems to be something that GCC did not used to recognize or report. The warnings were produced by: gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux) Signed-off-by: Ionut Gabriel Popescu Signed-off-by: Alex Elder commit c0e59e1ac0a106bbab93404024bb6e7927ad9d6d Author: Christoph Hellwig Date: Tue Sep 7 23:34:07 2010 +0000 xfs: remove the ->kill_root btree operation The implementation os ->kill_root only differ by either simply zeroing out the now unused buffer in the btree cursor in the inode allocation btree or using xfs_btree_setbuf in the allocation btree. Initially both of them used xfs_btree_setbuf, but the use in the ialloc btree was removed early on because it interacted badly with xfs_trans_binval. In addition to zeroing out the buffer in the cursor xfs_btree_setbuf updates the bc_ra array in the btree cursor, and calls xfs_trans_brelse on the buffer previous occupying the slot. The bc_ra update should be done for the alloc btree updated too, although the lack of it does not cause serious problems. The xfs_trans_brelse call on the other hand is effectively a no-op in the end - it keeps decrementing the bli_recur refcount until it hits zero, and then just skips out because the buffer will always be dirty at this point. So removing it for the allocation btree is just fine. So unify the code and move it to xfs_btree.c. While we're at it also replace the call to xfs_btree_setbuf with a NULL bp argument in xfs_btree_del_cursor with a direct call to xfs_trans_brelse given that the cursor is beeing freed just after this and the state updates are superflous. After this xfs_btree_setbuf is only used with a non-NULL bp argument and can thus be simplified. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit acecf1b5d8a846bf818bf74df454330f0b444b0a Author: Christoph Hellwig Date: Mon Sep 6 01:44:45 2010 +0000 xfs: stop using xfs_qm_dqtobp in xfs_qm_dqflush In xfs_qm_dqflush we know that q_blkno must be initialized already from a previous xfs_qm_dqread. So instead of calling xfs_qm_dqtobp we can simply read the quota buffer directly. This also saves us from a duplicate xfs_qm_dqcheck call check and allows xfs_qm_dqtobp to be simplified now that it is always called for a newly initialized inode. In addition to that properly unwind all locks in xfs_qm_dqflush when xfs_qm_dqcheck fails. This mirrors a similar cleanup in the inode lookup done earlier. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 52fda114249578311776b25da9f73a9c34f4fd8c Author: Christoph Hellwig Date: Mon Sep 6 01:44:22 2010 +0000 xfs: simplify xfs_qm_dqusage_adjust There is no need to have the users and group/project quota locked at the same time. Get rid of xfs_qm_dqget_noattach and just do a xfs_qm_dqget inside xfs_qm_quotacheck_dqadjust for the quota we are operating on right now. The new version of xfs_qm_quotacheck_dqadjust holds the inode lock over it's operations, which is not a problem as it simply increments counters and there is no concern about log contention during mount time. Signed-off-by: Christoph Hellwig Signed-off-by: Alex Elder commit 447223520520b17d3b6d0631aa4838fbaf8eddb4 Author: Dave Chinner Date: Tue Aug 24 12:02:11 2010 +1000 xfs: Introduce XFS_IOC_ZERO_RANGE XFS_IOC_ZERO_RANGE is the equivalent of an atomic XFS_IOC_UNRESVSP/ XFS_IOC_RESVSP call pair. It enabled ranges of written data to be turned into zeroes without requiring IO or having to free and reallocate the extents in the range given as would occur if we had to punch and then preallocate them separately. This enables applications to zero parts of files very quickly without changing the layout of the files in any way. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig commit 3ae4c9deb30a8d5ee305b461625dcb298c9804a9 Author: Dave Chinner Date: Tue Aug 24 12:01:50 2010 +1000 xfs: use range primitives for xfs page cache operations While XFS passes ranges to operate on from the core code, the functions being called ignore the either the entire range or the end of the range. This is historical because when the function were written linux didn't have the necessary range operations. Update the functions to use the correct operations. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig commit b7dadc38797584f6203386da1947ed5edf516646 Author: Ingo Molnar Date: Mon Oct 18 20:00:37 2010 +0200 sched: Export account_system_vtime() KVM uses it for example: ERROR: "account_system_vtime" [arch/x86/kvm/kvm.ko] undefined! Cc: Venkatesh Pallipadi Cc: Peter Zijlstra LKML-Reference: <1286237003-12406-3-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar commit d267f87fb8179c6dba03d08b91952e81bc3723c7 Author: Venkatesh Pallipadi Date: Mon Oct 4 17:03:23 2010 -0700 sched: Call tick_check_idle before __irq_enter When CPU is idle and on first interrupt, irq_enter calls tick_check_idle() to notify interruption from idle. But, there is a problem if this call is done after __irq_enter, as all routines in __irq_enter may find stale time due to yet to be done tick_check_idle. Specifically, trace calls in __irq_enter when they use global clock and also account_system_vtime change in this patch as it wants to use sched_clock_cpu() to do proper irq timing. But, tick_check_idle was moved after __irq_enter intentionally to prevent problem of unneeded ksoftirqd wakeups by the commit ee5f80a: irq: call __irq_enter() before calling the tick_idle_check Impact: avoid spurious ksoftirqd wakeups Moving tick_check_idle() before __irq_enter and wrapping it with local_bh_enable/disable would solve both the problems. Fixed-by: Yong Zhang Signed-off-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra LKML-Reference: <1286237003-12406-9-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar commit aa483808516ca5cacfa0e5849691f64fec25828e Author: Venkatesh Pallipadi Date: Mon Oct 4 17:03:22 2010 -0700 sched: Remove irq time from available CPU power The idea was suggested by Peter Zijlstra here: http://marc.info/?l=linux-kernel&m=127476934517534&w=2 irq time is technically not available to the tasks running on the CPU. This patch removes irq time from CPU power piggybacking on sched_rt_avg_update(). Tested this by keeping CPU X busy with a network intensive task having 75% oa a single CPU irq processing (hard+soft) on a 4-way system. And start seven cycle soakers on the system. Without this change, there will be two tasks on each CPU. With this change, there is a single task on irq busy CPU X and remaining 7 tasks are spread around among other 3 CPUs. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra LKML-Reference: <1286237003-12406-8-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar commit 305e6835e05513406fa12820e40e4a8ecb63743c Author: Venkatesh Pallipadi Date: Mon Oct 4 17:03:21 2010 -0700 sched: Do not account irq time to current task Scheduler accounts both softirq and interrupt processing times to the currently running task. This means, if the interrupt processing was for some other task in the system, then the current task ends up being penalized as it gets shorter runtime than otherwise. Change sched task accounting to acoount only actual task time from currently running task. Now update_curr(), modifies the delta_exec to depend on rq->clock_task. Note that this change only handles CONFIG_IRQ_TIME_ACCOUNTING case. We can extend this to CONFIG_VIRT_CPU_ACCOUNTING with minimal effort. But, thats for later. This change will impact scheduling behavior in interrupt heavy conditions. Tested on a 4-way system with eth0 handled by CPU 2 and a network heavy task (nc) running on CPU 3 (and no RSS/RFS). With that I have CPU 2 spending 75%+ of its time in irq processing. CPU 3 spending around 35% time running nc task. Now, if I run another CPU intensive task on CPU 2, without this change /proc//schedstat shows 100% of time accounted to this task. With this change, it rightly shows less than 25% accounted to this task as remaining time is actually spent on irq processing. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra LKML-Reference: <1286237003-12406-7-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar commit e82b8e4ea4f3dffe6e7939f90e78da675fcc450e Author: Venkatesh Pallipadi Date: Mon Oct 4 17:03:20 2010 -0700 x86: Add IRQ_TIME_ACCOUNTING This patch adds IRQ_TIME_ACCOUNTING option on x86 and runtime enables it when TSC is enabled. This change just enables fine grained irq time accounting, isn't used yet. Following patches use it for different purposes. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra LKML-Reference: <1286237003-12406-6-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar commit b52bfee445d315549d41eacf2fa7c156e7d153d5 Author: Venkatesh Pallipadi Date: Mon Oct 4 17:03:19 2010 -0700 sched: Add IRQ_TIME_ACCOUNTING, finer accounting of irq time s390/powerpc/ia64 have support for CONFIG_VIRT_CPU_ACCOUNTING which does the fine granularity accounting of user, system, hardirq, softirq times. Adding that option on archs like x86 will be challenging however, given the state of TSC reliability on various platforms and also the overhead it will add in syscall entry exit. Instead, add a lighter variant that only does finer accounting of hardirq and softirq times, providing precise irq times (instead of timer tick based samples). This accounting is added with a new config option CONFIG_IRQ_TIME_ACCOUNTING so that there won't be any overhead for users not interested in paying the perf penalty. This accounting is based on sched_clock, with the code being generic. So, other archs may find it useful as well. This patch just adds the core logic and does not enable this logic yet. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra LKML-Reference: <1286237003-12406-5-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar commit 6cdd5199daf0cb7b0fcc8dca941af08492612887 Author: Venkatesh Pallipadi Date: Mon Oct 4 17:03:18 2010 -0700 sched: Add a PF flag for ksoftirqd identification To account softirq time cleanly in scheduler, we need to identify whether softirq is invoked in ksoftirqd context or softirq at hardirq tail context. Add PF_KSOFTIRQD for that purpose. As all PF flag bits are currently taken, create space by moving one of the infrequently used bits (PF_THREAD_BOUND) down in task_struct to be along with some other state fields. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra LKML-Reference: <1286237003-12406-4-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar commit e1e10a265d28273ab8c70be19d43dcbdeead6c5a Author: Venkatesh Pallipadi Date: Mon Oct 4 17:03:17 2010 -0700 sched: Consolidate account_system_vtime extern declaration Just a minor cleanup patch that makes things easier to the following patches. No functionality change in this patch. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra LKML-Reference: <1286237003-12406-3-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar commit 75e1056f5c57050415b64cb761a3acc35d91f013 Author: Venkatesh Pallipadi Date: Mon Oct 4 17:03:16 2010 -0700 sched: Fix softirq time accounting Peter Zijlstra found a bug in the way softirq time is accounted in VIRT_CPU_ACCOUNTING on this thread: http://lkml.indiana.edu/hypermail//linux/kernel/1009.2/01366.html The problem is, softirq processing uses local_bh_disable internally. There is no way, later in the flow, to differentiate between whether softirq is being processed or is it just that bh has been disabled. So, a hardirq when bh is disabled results in time being wrongly accounted as softirq. Looking at the code a bit more, the problem exists in !VIRT_CPU_ACCOUNTING as well. As account_system_time() in normal tick based accouting also uses softirq_count, which will be set even when not in softirq with bh disabled. Peter also suggested solution of using 2*SOFTIRQ_OFFSET as irq count for local_bh_{disable,enable} and using just SOFTIRQ_OFFSET while softirq processing. The patch below does that and adds API in_serving_softirq() which returns whether we are currently processing softirq or not. Also changes one of the usages of softirq_count in net/sched/cls_cgroup.c to in_serving_softirq. Looks like many usages of in_softirq really want in_serving_softirq. Those changes can be made individually on a case by case basis. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra LKML-Reference: <1286237003-12406-2-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar commit 75dd321d79d495a0ee579e6249ebc38ddbb2667f Author: Nikhil Rao Date: Fri Oct 15 13:12:30 2010 -0700 sched: Drop group_capacity to 1 only if local group has extra capacity When SD_PREFER_SIBLING is set on a sched domain, drop group_capacity to 1 only if the local group has extra capacity. The extra check prevents the case where you always pull from the heaviest group when it is already under-utilized (possible with a large weight task outweighs the tasks on the system). For example, consider a 16-cpu quad-core quad-socket machine with MC and NUMA scheduling domains. Let's say we spawn 15 nice0 tasks and one nice-15 task, and each task is running on one core. In this case, we observe the following events when balancing at the NUMA domain: - find_busiest_group() will always pick the sched group containing the niced task to be the busiest group. - find_busiest_queue() will then always pick one of the cpus running the nice0 task (never picks the cpu with the nice -15 task since weighted_cpuload > imbalance). - The load balancer fails to migrate the task since it is the running task and increments sd->nr_balance_failed. - It repeats the above steps a few more times until sd->nr_balance_failed > 5, at which point it kicks off the active load balancer, wakes up the migration thread and kicks the nice 0 task off the cpu. The load balancer doesn't stop until we kick out all nice 0 tasks from the sched group, leaving you with 3 idle cpus and one cpu running the nice -15 task. When balancing at the NUMA domain, we drop sgs.group_capacity to 1 if the child domain (in this case MC) has SD_PREFER_SIBLING set. Subsequent load checks are not relevant because the niced task has a very large weight. In this patch, we add an extra condition to the "if(prefer_sibling)" check in update_sd_lb_stats(). We drop the capacity of a group only if the local group has extra capacity, ie. nr_running < group_capacity. This patch preserves the original intent of the prefer_siblings check (to spread tasks across the system in low utilization scenarios) and fixes the case above. It helps in the following ways: - In low utilization cases (where nr_tasks << nr_cpus), we still drop group_capacity down to 1 if we prefer siblings. - On very busy systems (where nr_tasks >> nr_cpus), sgs.nr_running will most likely be > sgs.group_capacity. - When balancing large weight tasks, if the local group does not have extra capacity, we do not pick the group with the niced task as the busiest group. This prevents failed balances, active migration and the under-utilization described above. Signed-off-by: Nikhil Rao Signed-off-by: Peter Zijlstra LKML-Reference: <1287173550-30365-5-git-send-email-ncrao@google.com> Signed-off-by: Ingo Molnar commit fab476228ba37907ad75216d0fd9732ada9c119e Author: Nikhil Rao Date: Fri Oct 15 13:12:29 2010 -0700 sched: Force balancing on newidle balance if local group has capacity This patch forces a load balance on a newly idle cpu when the local group has extra capacity and the busiest group does not have any. It improves system utilization when balancing tasks with a large weight differential. Under certain situations, such as a niced down task (i.e. nice = -15) in the presence of nr_cpus NICE0 tasks, the niced task lands on a sched group and kicks away other tasks because of its large weight. This leads to sub-optimal utilization of the machine. Even though the sched group has capacity, it does not pull tasks because sds.this_load >> sds.max_load, and f_b_g() returns NULL. With this patch, if the local group has extra capacity, we shortcut the checks in f_b_g() and try to pull a task over. A sched group has extra capacity if the group capacity is greater than the number of running tasks in that group. Thanks to Mike Galbraith for discussions leading to this patch and for the insight to reuse SD_NEWIDLE_BALANCE. Signed-off-by: Nikhil Rao Signed-off-by: Peter Zijlstra LKML-Reference: <1287173550-30365-4-git-send-email-ncrao@google.com> Signed-off-by: Ingo Molnar commit 2582f0eba54066b5e98ff2b27ef0cfa833b59f54 Author: Nikhil Rao Date: Wed Oct 13 12:09:36 2010 -0700 sched: Set group_imb only a task can be pulled from the busiest cpu When cycling through sched groups to determine the busiest group, set group_imb only if the busiest cpu has more than 1 runnable task. This patch fixes the case where two cpus in a group have one runnable task each, but there is a large weight differential between these two tasks. The load balancer is unable to migrate any task from this group, and hence do not consider this group to be imbalanced. Signed-off-by: Nikhil Rao Signed-off-by: Peter Zijlstra LKML-Reference: <1286996978-7007-3-git-send-email-ncrao@google.com> [ small code readability edits ] Signed-off-by: Ingo Molnar commit ef8002f6848236de5adc613063ebeabddea8a6fb Author: Nikhil Rao Date: Wed Oct 13 12:09:35 2010 -0700 sched: Do not consider SCHED_IDLE tasks to be cache hot This patch adds a check in task_hot to return if the task has SCHED_IDLE policy. SCHED_IDLE tasks have very low weight, and when run with regular workloads, are typically scheduled many milliseconds apart. There is no need to consider these tasks hot for load balancing. Signed-off-by: Nikhil Rao Signed-off-by: Peter Zijlstra LKML-Reference: <1287173550-30365-2-git-send-email-ncrao@google.com> Signed-off-by: Ingo Molnar commit 115e19c53501edc11f730191f7f047736815ae3d Author: Boaz Harrosh Date: Thu Oct 7 14:28:18 2010 -0400 exofs: Set i_mapping->backing_dev_info anyway Though it has been promised that inode->i_mapping->backing_dev_info is not used and the supporting code is fine. Until the pointer will default to NULL, I'd rather it points to the correct thing regardless. At least for future infrastructure coder it is a clear indication of where are the key points that inodes are initialized. I know because it took me time to find this out. Signed-off-by: Boaz Harrosh commit 7aebf4106b4263667696485303af498aa1eea9ef Author: Boaz Harrosh Date: Wed Oct 13 12:55:43 2010 -0400 exofs: Cleaup read path in regard with read_for_write Last BUG fix added a flag to the the page_collect structure to communicate with readpage_strip. This calls for a clean up removing that flag's reincarnations in the read functions parameters. Signed-off-by: Boaz Harrosh commit ebf31f502492527e2b6b5e5cf85a4ebc7fc8a52e Author: Peter Zijlstra Date: Sun Oct 17 12:15:00 2010 +0200 jump_label: Add COND_STMT(), reducer wrappery The use of the JUMP_LABEL() construct ends up creating endless silly wrappers, create a higher level construct to reduce this clutter. Signed-off-by: Peter Zijlstra Cc: Jason Baron Cc: Steven Rostedt Cc: Arnaldo Carvalho de Melo Cc: Frederic Weisbecker Cc: Paul Mackerras LKML-Reference: Signed-off-by: Ingo Molnar commit 7e54a5a0b655734326dc78c2b5efc1eb35497bb6 Author: Peter Zijlstra Date: Thu Oct 14 22:32:45 2010 +0200 perf: Optimize sw events Acked-by: Frederic Weisbecker Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar commit 82cd6def9806dcb6a325fb6abbc1d61388a15f6a Author: Peter Zijlstra Date: Thu Oct 14 17:57:23 2010 +0200 perf: Use jump_labels to optimize the scheduler hooks Trades a call + conditional + ret for an unconditional jmp. Acked-by: Frederic Weisbecker Signed-off-by: Peter Zijlstra LKML-Reference: <20101014203625.501657727@chello.nl> Signed-off-by: Ingo Molnar commit 8b92538d84e50062560ba33adbaed7887b6e4a42 Author: Peter Zijlstra Date: Thu Oct 14 21:39:02 2010 +0200 jump_label: Add atomic_t interface Add an interface to allow usage of jump_labels with atomic counters. Signed-off-by: Peter Zijlstra Acked-by: Frederic Weisbecker LKML-Reference: <20101014203625.501657727@chello.nl> Signed-off-by: Ingo Molnar commit 3b6e901f839f42afb40f614418df82c08b01320a Author: Peter Zijlstra Date: Thu Oct 14 21:10:38 2010 +0200 jump_label: Use more consistent naming Now that there's still only a few users around, rename things to make them more consistent. Signed-off-by: Peter Zijlstra LKML-Reference: <20101014203625.448565169@chello.nl> Signed-off-by: Ingo Molnar commit d580ff8699e8811a9af37e9de4dea375401bdeec Author: Peter Zijlstra Date: Thu Oct 14 17:43:23 2010 +0200 perf, hw_breakpoint: Fix crash in hw_breakpoint creation hw_breakpoint creation needs to account stuff per-task to ensure there is always sufficient hardware resources to back these things due to ptrace. With the perf per pmu context changes the event initialization no longer has access to the event context, for the simple reason that we need to first find the pmu (result of initialization) before we can find the context. This makes hw_breakpoints unhappy, because it can no longer do per task accounting, cure this by frobbing a task pointer in the event::hw bits for now... Signed-off-by: Peter Zijlstra Cc: Frederic Weisbecker LKML-Reference: <20101014203625.391543667@chello.nl> Signed-off-by: Ingo Molnar commit c6be5a5cb62592d9d661899a2aa78236eb00ffa5 Author: Peter Zijlstra Date: Thu Oct 14 16:59:46 2010 +0200 perf: Find task before event alloc So that we can pass the task pointer to the event allocation, so that we can use task associated data during event initialization. Signed-off-by: Peter Zijlstra LKML-Reference: <20101014203625.340789919@chello.nl> Signed-off-by: Ingo Molnar commit e7d0bc047548d76feee6b23f7d3d9da927189a50 Author: Peter Zijlstra Date: Thu Oct 14 16:54:51 2010 +0200 perf: Fix task refcount bugs Currently it looks like find_lively_task_by_vpid() takes a task ref and relies on find_get_context() to drop it. The problem is that perf_event_create_kernel_counter() shouldn't be dropping task refs. Signed-off-by: Peter Zijlstra Acked-by: Frederic Weisbecker Acked-by: Matt Helsley LKML-Reference: <20101014203625.278436085@chello.nl> Signed-off-by: Ingo Molnar commit 74c3337c2fc6389d3a57a622a936036b6db6b2e8 Author: Peter Zijlstra Date: Fri Oct 15 11:40:29 2010 +0200 perf: Fix group moving Matt found we trigger the WARN_ON_ONCE() in perf_group_attach() when we take the move_group path in perf_event_open(). Since we cannot de-construct the group (we rely on it to move the events), we have to simply ignore the double attach. The group state is context invariant and doesn't need changing. Reported-by: Matt Fleming Signed-off-by: Peter Zijlstra LKML-Reference: <1287135757.29097.1368.camel@twins> Signed-off-by: Ingo Molnar commit e360adbe29241a0194e10e20595360dd7b98a2b3 Author: Peter Zijlstra Date: Thu Oct 14 14:01:34 2010 +0800 irq_work: Add generic hardirq context callbacks Provide a mechanism that allows running code in IRQ context. It is most useful for NMI code that needs to interact with the rest of the system -- like wakeup a task to drain buffers. Perf currently has such a mechanism, so extract that and provide it as a generic feature, independent of perf so that others may also benefit. The IRQ context callback is generated through self-IPIs where possible, or on architectures like powerpc the decrementer (the built-in timer facility) is set to generate an interrupt immediately. Architectures that don't have anything like this get to do with a callback from the timer tick. These architectures can call irq_work_run() at the tail of any IRQ handlers that might enqueue such work (like the perf IRQ handler) to avoid undue latencies in processing the work. Signed-off-by: Peter Zijlstra Acked-by: Kyle McMartin Acked-by: Martin Schwidefsky [ various fixes ] Signed-off-by: Huang Ying LKML-Reference: <1287036094.7768.291.camel@yhuang-dev> Signed-off-by: Ingo Molnar commit 8e5fc1a7320baf6076391607515dceb61319b36a Author: Stephane Eranian Date: Fri Oct 15 16:54:01 2010 +0200 perf_events: Fix transaction recovery in group_sched_in() The group_sched_in() function uses a transactional approach to schedule a group of events. In a group, either all events can be scheduled or none are. To schedule each event in, the function calls event_sched_in(). In case of error, event_sched_out() is called on each event in the group. The problem is that event_sched_out() does not completely cancel the effects of event_sched_in(). Furthermore event_sched_out() changes the state of the event as if it had run which is not true is this particular case. Those inconsistencies impact time tracking fields and may lead to events in a group not all reporting the same time_enabled and time_running values. This is demonstrated with the example below: $ task -eunhalted_core_cycles,baclears,baclears -e unhalted_core_cycles,baclears,baclears sleep 5 1946101 unhalted_core_cycles (32.85% scaling, ena=829181, run=556827) 11423 baclears (32.85% scaling, ena=829181, run=556827) 7671 baclears (0.00% scaling, ena=556827, run=556827) 2250443 unhalted_core_cycles (57.83% scaling, ena=962822, run=405995) 11705 baclears (57.83% scaling, ena=962822, run=405995) 11705 baclears (57.83% scaling, ena=962822, run=405995) Notice that in the first group, the last baclears event does not report the same timings as its siblings. This issue comes from the fact that tstamp_stopped is updated by event_sched_out() as if the event had actually run. To solve the issue, we must ensure that, in case of error, there is no change in the event state whatsoever. That means timings must remain as they were when entering group_sched_in(). To do this we defer updating tstamp_running until we know the transaction succeeded. Therefore, we have split event_sched_in() in two parts separating the update to tstamp_running. Similarly, in case of error, we do not want to update tstamp_stopped. Therefore, we have split event_sched_out() in two parts separating the update to tstamp_stopped. With this patch, we now get the following output: $ task -eunhalted_core_cycles,baclears,baclears -e unhalted_core_cycles,baclears,baclears sleep 5 2492050 unhalted_core_cycles (71.75% scaling, ena=1093330, run=308841) 11243 baclears (71.75% scaling, ena=1093330, run=308841) 11243 baclears (71.75% scaling, ena=1093330, run=308841) 1852746 unhalted_core_cycles (0.00% scaling, ena=784489, run=784489) 9253 baclears (0.00% scaling, ena=784489, run=784489) 9253 baclears (0.00% scaling, ena=784489, run=784489) Note that the uneven timing between groups is a side effect of the process spending most of its time sleeping, i.e., not enough event rotations (but that's a separate issue). Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra LKML-Reference: <4cb86b4c.41e9d80a.44e9.3e19@mx.google.com> Signed-off-by: Ingo Molnar commit ba0cef3d149ce4db293c572bf36ed352b11ce7b9 Author: Stephane Eranian Date: Fri Oct 15 15:15:01 2010 +0200 perf_events: Fix bogus AMD64 generic TLB events PERF_COUNT_HW_CACHE_DTLB:READ:MISS had a bogus umask value of 0 which counts nothing. Needed to be 0x7 (to count all possibilities). PERF_COUNT_HW_CACHE_ITLB:READ:MISS had a bogus umask value of 0 which counts nothing. Needed to be 0x3 (to count all possibilities). Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra Cc: Robert Richter Cc: # as far back as it applies LKML-Reference: <4cb85478.41e9d80a.44e2.3f00@mx.google.com> Signed-off-by: Ingo Molnar commit c530ccd9a1864a44a7ff35826681229ce9f2357a Author: Stephane Eranian Date: Fri Oct 15 15:26:01 2010 +0200 perf_events: Fix bogus context time tracking You can only call update_context_time() when the context is active, i.e., the thread it is attached to is still running. However, perf_event_read() can be called even when the context is inactive, e.g., user read() the counters. The call to update_context_time() must be conditioned on the status of the context, otherwise, bogus time_enabled, time_running may be returned. Here is an example on AMD64. The task program is an example from libpfm4. The -p prints deltas every 1s. $ task -p -e cpu_clk_unhalted sleep 5 2,266,610 cpu_clk_unhalted (0.00% scaling, ena=2,158,982, run=2,158,982) 0 cpu_clk_unhalted (0.00% scaling, ena=2,158,982, run=2,158,982) 0 cpu_clk_unhalted (0.00% scaling, ena=2,158,982, run=2,158,982) 0 cpu_clk_unhalted (0.00% scaling, ena=2,158,982, run=2,158,982) 0 cpu_clk_unhalted (0.00% scaling, ena=2,158,982, run=2,158,982) 5,242,358,071 cpu_clk_unhalted (99.95% scaling, ena=5,000,359,984, run=2,319,270) Whereas if you don't read deltas, e.g., no call to perf_event_read() until the process terminates: $ task -e cpu_clk_unhalted sleep 5 2,497,783 cpu_clk_unhalted (0.00% scaling, ena=2,376,899, run=2,376,899) Notice that time_enable, time_running are bogus in the first example causing bogus scaling. This patch fixes the problem, by conditionally calling update_context_time() in perf_event_read(). Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra Cc: stable@kernel.org LKML-Reference: <4cb856dc.51edd80a.5ae0.38fb@mx.google.com> Signed-off-by: Ingo Molnar commit 4ba053c04aece1f4734056f21b751eee47ea3fb1 Author: Hitoshi Mitake Date: Wed Oct 13 17:30:26 2010 +0900 lockdep: Check the depth of subclass Current look_up_lock_class() doesn't check the parameter "subclass". This rarely rises problems because the main caller of this function, register_lock_class(), checks it. But register_lock_class() is not the only function which calls look_up_lock_class(). lock_set_class() and its callees also call it. And lock_set_class() doesn't check this parameter. This will rise problems when the the value of subclass is larger than MAX_LOCKDEP_SUBCLASSES. Because the address (used as the key of class) caliculated with too large subclass has a probability to point another key in different lock_class_key. Of course this problem depends on the memory layout and occurs with really low probability. Signed-off-by: Hitoshi Mitake Cc: Dmitry Torokhov Cc: Vojtech Pavlik Cc: Frederic Weisbecker Signed-off-by: Peter Zijlstra LKML-Reference: <1286958626-986-1-git-send-email-mitake@dcl.info.waseda.ac.jp> Signed-off-by: Ingo Molnar commit 620162505e5d46bc4494b1761743e4b0b3bf8e16 Author: Hitoshi Mitake Date: Tue Oct 5 18:01:51 2010 +0900 lockdep: Add improved subclass caching Current lockdep_map only caches one class with subclass == 0, and looks up hash table of classes when subclass != 0. It seems that this has no problem because the case of subclass != 0 is rare. But locks of struct rq are acquired with subclass == 1 when task migration is executed. Task migration is high frequent event, so I modified lockdep to cache subclasses. I measured the score of perf bench sched messaging. This patch has slightly but certain (order of milli seconds or 10 milli seconds) effect when lots of tasks are running. I'll show the result in the tail of this description. NR_LOCKDEP_CACHING_CLASSES specifies how many classes can be cached in the instances of lockdep_map. I discussed with Peter Zijlstra in LinuxCon Japan about this approach and he taught me that caching every subclasses(8) is cleary waste of memory. So number of cached classes should be configurable. === Score comparison of benchmarks === # "min" means best score, and "max" means worst score for i in `seq 1 10`; do ./perf bench -f simple sched messaging; done before: min: 0.565000, max: 0.583000, avg: 0.572500 after: min: 0.559000, max: 0.568000, avg: 0.563300 # with more processes for i in `seq 1 10`; do ./perf bench -f simple sched messaging -g 40; done before: min: 2.274000, max: 2.298000, avg: 2.286300 after: min: 2.242000, max: 2.270000, avg: 2.259700 Signed-off-by: Hitoshi Mitake Cc: Frederic Weisbecker Signed-off-by: Peter Zijlstra LKML-Reference: <1286269311-28336-2-git-send-email-mitake@dcl.info.waseda.ac.jp> Signed-off-by: Ingo Molnar commit f2f108eb4511f22a6f7568090cfcf4e7b2dc0f62 Merge: 756b032 2b666ca Author: Ingo Molnar Date: Mon Oct 18 18:43:43 2010 +0200 Merge branch 'linus' into core/locking Merge reason: Update to almost-final-.36 Signed-off-by: Ingo Molnar commit 17bdcf949d03306b308c5fb694849cd35f119807 Author: Linus Walleij Date: Mon Oct 11 16:36:51 2010 +0200 sched: Drop all load weight manipulation for RT tasks Load weights are for the CFS, they do not belong in the RT task. This makes all RT scheduling classes leave the CFS weights alone. This fixes a real bug as well: I noticed the following phonomena: a process elevated to SCHED_RR forks with SCHED_RESET_ON_FORK set, and the child is indeed SCHED_OTHER, and the niceval is indeed reset to 0. However the weight inserted by set_load_weight() remains at 0, giving the task insignificat priority. With this fix, the weight is reset to what the task had before being elevated to SCHED_RR/SCHED_FIFO. Cc: Lennart Poettering Cc: stable@kernel.org Signed-off-by: Linus Walleij Signed-off-by: Peter Zijlstra LKML-Reference: <1286807811-10568-1-git-send-email-linus.walleij@stericsson.com> Signed-off-by: Ingo Molnar commit 34f971f6f7988be4d014eec3e3526bee6d007ffa Author: Peter Zijlstra Date: Wed Sep 22 13:53:15 2010 +0200 sched: Create special class for stop/migrate work In order to separate the stop/migrate work thread from the SCHED_FIFO implementation, create a special class for it that is of higher priority than SCHED_FIFO itself. This currently solves a problem where cpu-hotplug consumes so much cpu-time that the SCHED_FIFO class gets throttled, but has the bandwidth replenishment timer pending on the now dead cpu. It is also required for when we add the planned deadline scheduling class above SCHED_FIFO, as the stop/migrate thread still needs to transcent those tasks. Tested-by: Heiko Carstens Signed-off-by: Peter Zijlstra LKML-Reference: <1285165776.2275.1022.camel@laptop> Signed-off-by: Ingo Molnar commit 4924627423d5e286136ad2520f5be536345ae590 Author: Peter Zijlstra Date: Sun Oct 17 21:46:10 2010 +0200 sched: Unindent labels Labels should be on column 0. Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar commit b534422b2d1189740c6144c3c7a296be89f581c7 Author: Dmitry Torokhov Date: Mon Oct 18 09:24:22 2010 -0700 Input: ad7877 - switch to using threaded IRQ Instead of using asynchronous SPI API and then spinning waiting for SPI transfer to complete when disabling the device, let's use threaded IRQ model and spi_sync(). Acked-by: Michael Hennerich Tested-by: Michael Hennerich Signed-off-by: Dmitry Torokhov commit 2fd18abad179b11cbd881f2bd271b193ababfb65 Author: Dmitry Torokhov Date: Mon Oct 18 09:22:38 2010 -0700 Input: ad7877 - use attribute group to control visibility of attributes Instead of manually creating one set of attributes or another set up is_visible method in attribute group structure to control whether aux3 or gpio3 attribute is presented to userspace. Acked-by: Michael Hennerich Signed-off-by: Dmitry Torokhov commit fc58d12be416eb51932eec594667ca3181903b9e Author: Dmitry Eremin-Solenikov Date: Mon Oct 18 09:18:13 2010 -0700 Input: serio - add support for PS2Mult multiplexer protocol PS2Mult is a simple serial protocol used for multiplexing several PS/2 streams into one serial data stream. It's used e.g. on TQM85xx series of boards. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Torokhov commit bda80da469a93122121de601dd469ce1aaa6effa Author: Michal Simek Date: Mon Oct 18 15:33:09 2010 +1000 of/xsysace: Fix OF probing on little-endian systems Convert big-endian DTB to little-endian if necessary. Signed-off-by: Michal Simek Signed-off-by: Grant Likely commit 45b0cb8abdbdd425934f6b02dbb3963dd89fef55 Author: Neil Horman Date: Wed Oct 13 16:01:53 2010 +0000 bonding: Re-enable netpoll over bonding With the inclusion of previous fixup patches, netpoll over bonding apears to work reliably with failover conditions. This reverts Gospos previous commit c22d7ac844f1cb9c6a5fd20f89ebadc2feef891b, and allows access again to the netpoll functionality in the bonding driver. Signed-off-by: Neil Horman Signed-off-by: David S. Miller commit 3b410a310b48a8e7de3438957635093596ad5ca5 Author: Neil Horman Date: Wed Oct 13 16:01:52 2010 +0000 bonding: Fix netconsole to not deadlock on rmmod Netconsole calls netpoll_cleanup on receipt of a NETDEVICE_UNREGISTER event. The notifier subsystem calls these event handlers with rtnl_lock held, which netpoll_cleanup also takes, resulting in deadlock. Fix this by calling the __netpoll_cleanup interior function instead, and fixing up the additional pointers. Signed-off-by: Neil Horman Signed-off-by: David S. Miller commit 990c3d6f9c4115347659fc2b163907c8c832ae44 Author: Neil Horman Date: Wed Oct 13 16:01:51 2010 +0000 bonding: Fix napi poll for bonding driver Usually the netpoll path, when preforming a napi poll can get away with just polling all the napi instances of the configured device. Thats not the case for the bonding driver however, as the napi instances which may wind up getting flagged as needing polling after the poll_controller call don't belong to the bonded device, but rather to the slave devices. Fix this by checking the device in question for the IFF_MASTER flag, if set, we know we need to check the full poll list for this cpu, rather than just the devices napi instance list. Signed-off-by: Neil Horman Signed-off-by: David S. Miller commit e843fa50887582c867d8b7995f81fe9c1a076806 Author: Neil Horman Date: Wed Oct 13 16:01:50 2010 +0000 bonding: Fix deadlock in bonding driver resulting from internal locking when using netpoll The monitoring paths in the bonding driver take write locks that are shared by the tx path. If netconsole is in use, these paths can call printk which puts us in the netpoll tx path, which, if netconsole is attached to the bonding driver, result in deadlock (the xmit_lock guards are useless in netpoll_send_skb, as the monitor paths in the bonding driver don't claim the xmit_lock, nor should they). The solution is to use a per cpu flag internal to the driver to indicate when a cpu is holding the lock in a path that might recusrse into the tx path for the driver via netconsole. By checking this flag on transmit, we can defer the sending of the netconsole frames until a later time using the retransmit feature of netpoll_send_skb that is triggered on the return code NETDEV_TX_BUSY. I've tested this and am able to transmit via netconsole while causing failover conditions on the bond slave links. Signed-off-by: Neil Horman Signed-off-by: David S. Miller commit c2355e1ab910278a94d487b78590ee3c8eecd08a Author: Neil Horman Date: Wed Oct 13 16:01:49 2010 +0000 bonding: Fix bonding drivers improper modification of netpoll structure The bonding driver currently modifies the netpoll structure in its xmit path while sending frames from netpoll. This is racy, as other cpus can access the netpoll structure in parallel. Since the bonding driver points np->dev to a slave device, other cpus can inadvertently attempt to send data directly to slave devices, leading to improper locking with the bonding master, lost frames, and deadlocks. This patch fixes that up. This patch also removes the real_dev pointer from the netpoll structure as that data is really only used by bonding in the poll_controller, and we can emulate its behavior by check each slave for IS_UP. Signed-off-by: Neil Horman Signed-off-by: David S. Miller commit db181a8ee158fd0ccea2e2670c4f2d36af2814a0 Merge: ee2007d 9c0a788 Author: Grant Likely Date: Mon Oct 18 09:25:09 2010 -0600 Merge branch 'for-spi' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin into spi/next commit c6ce3854f098e1307ecd3bde07903d65fb14a9cb Author: Carolyn Wyborny Date: Fri Oct 15 17:35:31 2010 +0000 e1000e: Fix for offline diag test failure at first call Move link test call to later in the offline sequence, move the restore settings block to afterwards and add another reset to ensure the hardware is in a known state afterwards. Signed-off-by: Carolyn Wyborny Acked-by: Bruce Allan Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit a7714338aa9332e569b38c7643dc4a7bb37a0ff5 Author: Greg Rose Date: Fri Oct 15 17:26:47 2010 +0000 igbvf: Remove unneeded pm_qos* calls Power Management Quality of Service is not supported or used by the VF driver. Signed-off-by: Greg Rose Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 12dcd86b75d571772512676ab301279952efc0b0 Author: Eric Dumazet Date: Fri Oct 15 17:27:10 2010 +0000 igb: fix stats handling There are currently some problems with igb. - On 32bit arches, maintaining 64bit counters without proper synchronization between writers and readers. - Stats updated every two seconds, as reported by Jesper. (Jesper provided a patch for this) - Potential problem between worker thread and ethtool -S This patch uses u64_stats_sync, and convert everything to be 64bit safe, SMP safe, even on 32bit arches. It integrates Jesper idea of providing accurate stats at the time user reads them. Signed-off-by: Eric Dumazet Tested-by: Emil Tantilov Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 78c89ba121221d9224a5747803d7fffe51cd6e44 Author: Steven Rostedt Date: Tue Oct 5 23:22:19 2010 -0400 tracing: Remove parent recording in latency tracer graph options Even though the parent is recorded with the normal function tracing of the latency tracers (irqsoff and wakeup), the function graph recording is bogus. This is due to the function graph messing with the return stack. The latency tracers pass in as the parent CALLER_ADDR0, which works fine for plain function tracing. But this causes bogus output with the graph tracer: 3) -0 | d.s3. 0.000 us | return_to_handler(); 3) -0 | d.s3. 0.000 us | _raw_spin_unlock_irqrestore(); 3) -0 | d.s3. 0.000 us | return_to_handler(); 3) -0 | d.s3. 0.000 us | trace_hardirqs_on(); The "return_to_handle()" call is the trampoline of the function graph tracer, and is meaningless in this context. Cc: Jiri Olsa Signed-off-by: Steven Rostedt commit 5e6d2b9cfa3a6e7fe62fc0135bc1bd778f5db564 Author: Steven Rostedt Date: Tue Oct 5 19:41:43 2010 -0400 tracing: Use one prologue for the preempt irqs off tracer function tracers The preempt and irqsoff tracers have three types of function tracers. Normal function tracer, function graph entry, and function graph return. Each of these use a complex dance to prevent recursion and whether to trace the data or not (depending if interrupts are enabled or not). This patch moves the duplicate code into a single routine, to prevent future mistakes with modifying duplicate complex code. Cc: Jiri Olsa Signed-off-by: Steven Rostedt commit 542181d3769d001c59cd17573dd4381e87d215f2 Author: Steven Rostedt Date: Tue Oct 5 16:38:49 2010 -0400 tracing: Use one prologue for the wakeup tracer function tracers The wakeup tracer has three types of function tracers. Normal function tracer, function graph entry, and function graph return. Each of these use a complex dance to prevent recursion and whether to trace the data or not (depending on the wake_task variable). This patch moves the duplicate code into a single routine, to prevent future mistakes with modifying duplicate complex code. Cc: Jiri Olsa Signed-off-by: Steven Rostedt commit 7495a5beaa22f190f4888aa8cbe4827c16575d0a Author: Jiri Olsa Date: Thu Sep 23 14:00:53 2010 +0200 tracing: Graph support for wakeup tracer Add function graph support for wakeup latency tracer. The graph output is enabled by setting the 'display-graph' trace option. Signed-off-by: Jiri Olsa LKML-Reference: <1285243253-7372-4-git-send-email-jolsa@redhat.com> Signed-off-by: Steven Rostedt commit 0a772620a2e21fb55a02f70fe38d4b5c3a5fbbbf Author: Jiri Olsa Date: Thu Sep 23 14:00:52 2010 +0200 tracing: Make graph related irqs/preemptsoff functions global Move trace_graph_function() and print_graph_headers_flags() functions to the trace_function_graph.c to be globaly available. Signed-off-by: Jiri Olsa LKML-Reference: <1285243253-7372-3-git-send-email-jolsa@redhat.com> Signed-off-by: Steven Rostedt commit a9d61173dc1cb63e660ae89e874e51ba4fd2f991 Author: Jiri Olsa Date: Fri Sep 24 17:41:02 2010 +0200 tracing: Add proper check for irq_depth routines The check_irq_entry and check_irq_return could be called from graph event context. In such case there's no graph private data allocated. Adding checks to handle this case. Signed-off-by: Jiri Olsa LKML-Reference: <20100924154102.GB1818@jolsa.brq.redhat.com> [ Fixed some grammar in the comments ] Signed-off-by: Steven Rostedt commit 907f27840985fe6a0c62e43cd4702c6e04b4bcc7 Author: matt mooney Date: Mon Sep 27 19:04:53 2010 -0700 tracing/trivial: Remove cast from void* Unnecessary cast from void* in assignment. Signed-off-by: matt mooney Signed-off-by: Steven Rostedt commit 2775609c5d9a9d40ad5f101e23438ceacee4250b Author: Konrad Rzeszutek Wilk Date: Fri Oct 8 11:06:20 2010 -0400 swiotlb-xen: On x86-32 builts, select SWIOTLB instead of depending on it. We used to depend on CONFIG_SWIOTLB, but that is disabled by default. So when compiling we get this compile error: arch/x86/xen/pci-swiotlb-xen.c: In function 'pci_xen_swiotlb_detect': arch/x86/xen/pci-swiotlb-xen.c:48: error: lvalue required as left operand of assignment Fix it by actually activating the SWIOTLB library. Reported-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk commit c5f8e29d4cf3b29fe58df90f51676d812dfd16bd Author: Konrad Rzeszutek Wilk Date: Mon Oct 4 13:32:26 2010 -0400 MAINTAINERS: Add myself for Xen PCI and Xen SWIOTLB maintainer. Signed-off-by: Konrad Rzeszutek Wilk commit 74226b8c8a0b10841129916191205095af928da5 Author: Konrad Rzeszutek Wilk Date: Thu Aug 19 13:34:58 2010 -0400 xen/pci: Request ACS when Xen-SWIOTLB is activated. It used to done in the Xen startup code but that is not really appropiate. [v2: Update Kconfig with PCI requirement] Signed-off-by: Konrad Rzeszutek Wilk commit 956a9202cd1220397933a07beda9f96b3df1fa24 Author: Ryan Wilson Date: Mon Aug 2 21:31:05 2010 -0400 xen-pcifront: Xen PCI frontend driver. This is a port of the 2.6.18 Xen PCI front driver with fixes to make it build under 2.6.34 and later (for the full list of changes: git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git historic/xen-pcifront-0.1). It also includes the fixes to make it work properly. [v2: Updated Kconfig, removed crud, added Reviewed-by] [v3: Added 'static', fixed grant table leak, redid Kconfig] [v4: Added one more 'static' and removed comments] Signed-off-by: Konrad Rzeszutek Wilk Reviewed-by: Stefano Stabellini Reviewed-by: Jan Beulich commit b78c9512563780d86a178f11b648bcf73b8d87ec Author: Noboru Iwamatsu Date: Tue Oct 13 17:22:29 2009 -0400 xenbus: prevent warnings on unhandled enumeration values XenbusStateReconfiguring/XenbusStateReconfigured were introduced by c/s 437, but aren't handled in many switch statements. .. also pulled from the linux-2.6-sparse-tree tree. Signed-off-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Jeremy Fitzhardinge commit 89afb6e46a0f72e0e5c51ef44aa900b74681664b Author: Yosuke Iwamatsu Date: Tue Oct 13 17:22:27 2009 -0400 xenbus: Xen paravirtualised PCI hotplug support. The Xen PCI front driver adds two new states that are utilizez for PCI hotplug support. This is a patch pulled from the linux-2.6-xen-sparse tree. Signed-off-by: Noboru Iwamatsu Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Yosuke Iwamatsu commit b5401a96b59475c1c878439caecb8c521bdfd4ad Author: Alex Nixon Date: Thu Mar 18 16:31:34 2010 -0400 xen/x86/PCI: Add support for the Xen PCI subsystem The frontend stub lives in arch/x86/pci/xen.c, alongside other sub-arch PCI init code (e.g. olpc.c). It provides a mechanism for Xen PCI frontend to setup/destroy legacy interrupts, MSI/MSI-X, and PCI configuration operations. [ Impact: add core of Xen PCI support ] [ v2: Removed the IOMMU code and only focusing on PCI.] [ v3: removed usage of pci_scan_all_fns as that does not exist] [ v4: introduced pci_xen value to fix compile warnings] [ v5: squished fixes+features in one patch, changed Reviewed-by to Ccs] [ v7: added Acked-by] Signed-off-by: Alex Nixon Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Ian Campbell Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Stefano Stabellini Acked-by: Jesse Barnes Cc: "H. Peter Anvin" Cc: Matthew Wilcox Cc: Qing He Cc: Thomas Gleixner Cc: x86@kernel.org commit 294ee6f89cfd629e276f632a6003a0fad7785dce Author: Stefano Stabellini Date: Wed Oct 6 16:12:28 2010 -0400 x86: Introduce x86_msi_ops Introduce an x86 specific indirect mechanism to setup MSIs. The MSI setup functions become function pointers in an x86_msi_ops struct, that defaults to the implementation in io_apic.c and msi.c. [v2: Use HAVE_DEFAULT_* knobs] Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: x86@kernel.org Cc: Jesse Barnes commit 1525bf0d8f059a38c6e79353583854e1981b2e67 Author: Thomas Gleixner Date: Wed Oct 6 16:05:35 2010 -0400 msi: Introduce default_[teardown|setup]_msi_irqs with fallback. Introduce an override for the arch_[teardown|setup]_msi_irqs that can be utilized to fallback to the default arch_* code. If a platform wants to utilize the code paths defined in driver/pci/msi.c it has to define HAVE_DEFAULT_MSI_TEARDOWN_IRQS or HAVE_DEFAULT_MSI_SETUP_IRQS. Otherwise the old mechanism of over-ridding the arch_* works fine. Signed-off-by: Konrad Rzeszutek Wilk Cc: x86@kernel.org commit 7c94def89aa5091706e03b98047c074d7ac74af0 Author: Konrad Rzeszutek Wilk Date: Tue Dec 22 14:49:45 2009 -0500 x86/PCI: Export pci_walk_bus function. In preperation of modularizing Xen-pcifront the pci_walk_bus needs to be exported so that the xen-pcifront module can walk call the pci subsystem to walk the PCI devices and claim them. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Jesse Barnes [http://marc.info/?l=linux-pci&m=126149958010298&w=2] commit 5ee01f49c963d5e0b530344f86535ecb7f672064 Author: Jeremy Fitzhardinge Date: Thu Mar 18 14:31:30 2010 -0400 x86/PCI: make sure _PAGE_IOMAP it set on pci mappings When mapping pci space via /sys or /proc, make sure we're really doing a hardware mapping by setting _PAGE_IOMAP. [ Impact: bugfix; make PCI mappings map the right pages ] Signed-off-by: Jeremy Fitzhardinge Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: "H. Peter Anvin" Reviewed-by: Matthew Wilcox Acked-by: Jesse Barnes Cc: x86@kernel.org commit 44de3395a4bb61341dfb7b3b7c94edfddeabae4b Author: Alex Nixon Date: Thu Mar 18 14:28:12 2010 -0400 x86/PCI: Clean up pci_cache_line_size Separate out x86 cache_line_size initialisation code into its own function (so it can be shared by Xen later in this patch series) [ Impact: cleanup ] Signed-off-by: Alex Nixon Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk Reviewed-by: "H. Peter Anvin" Reviewed-by: Matthew Wilcox Reviewed-by: Jesse Barnes Cc: x86@kernel.org commit 15ebbb82bac700db3c91e662fb70cb3559e9d930 Author: Konrad Rzeszutek Wilk Date: Mon Oct 4 13:43:27 2010 -0400 xen: fix shared irq device passthrough In driver/xen/events.c, whether bind_pirq is shareable or not is determined by desc->action is NULL or not. But in __setup_irq, startup(irq) is invoked before desc->action is assigned with new action. So desc->action in startup_irq is always NULL, and bind_pirq is always not shareable. This results in pt_irq_create_bind failure when passthrough a device which shares irq to other devices. This patch doesn't use probing_irq to determine if pirq is shareable or not, instead set shareable flag in irq_info according to trigger mode in xen_allocate_pirq. Set level triggered interrupts shareable. Thus use this flag to set bind_pirq flag accordingly. [v2: arch/x86/xen/pci.c no more, so file skipped] Signed-off-by: Weidong Han Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk commit d9a8814f27080cec6126fca3ef0c210d9f56181e Author: Konrad Rzeszutek Wilk Date: Thu Nov 5 16:33:09 2009 -0500 xen: Provide a variant of xen_poll_irq with timeout. The 'xen_poll_irq_timeout' provides a method to pass in the poll timeout for IRQs if requested. We also export those two poll functions as Xen PCI fronted uses them. Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Jeremy Fitzhardinge commit 3a69e9165a271b026c7149886b96ab0cc2e9a36b Author: Konrad Rzeszutek Wilk Date: Mon Oct 18 10:49:10 2010 -0400 xen: Find an unbound irq number in reverse order (high to low). In earlier Xen Linux kernels, the IRQ mapping was a straight 1:1 and the find_unbound_irq started looking around 256 for open IRQs and up. IRQs from 0 to 255 were reserved for PCI devices. Previous to this patch, the 'find_unbound_irq' started looking at get_nr_hw_irqs() number. For privileged domain where the ACPI information is available that returns the upper-bound of what the GSIs. For non-privileged PV domains, where ACPI is no-existent the get_nr_hw_irqs() reports the IRQ_LEGACY (16). With PCI passthrough enabled, and with PCI cards that have IRQs pinned to a higher number than 16 we collide with previously allocated IRQs. Specifically the PCI IRQs collide with the IPI's for Xen functions (as they are allocated earlier). For example: 00:00.11 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller (prog-if 10 [OHCI]) ... Interrupt: pin A routed to IRQ 18 [root@localhost ~]# cat /proc/interrupts | head CPU0 CPU1 CPU2 16: 38186 0 0 xen-dyn-virq timer0 17: 149 0 0 xen-dyn-ipi spinlock0 18: 962 0 0 xen-dyn-ipi resched0 and when the USB controller is loaded, the kernel reports: IRQ handler type mismatch for IRQ 18 current handler: resched0 One way to fix this is to reverse the logic when looking for un-used IRQ numbers and start with the highest available number. With that, we would get: CPU0 CPU1 CPU2 ... snip .. 292: 35 0 0 xen-dyn-ipi callfunc0 293: 3992 0 0 xen-dyn-ipi resched0 294: 224 0 0 xen-dyn-ipi spinlock0 295: 57183 0 0 xen-dyn-virq timer0 NMI: 0 0 0 Non-maskable interrupts .. snip .. And interrupts for PCI cards are now accessible. This patch also includes the fix, found by Ian Campbell, titled "xen: fix off-by-one error in find_unbound_irq." [v2: Added an explanation in the code] [v3: Rebased on top of tip/irq/core] Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Jeremy Fitzhardinge commit 3b32f574a032bb5c93957317bd4ce5c3397d5a7b Author: Jeremy Fitzhardinge Date: Thu Aug 13 12:50:37 2009 -0700 xen: statically initialize cpu_evtchn_mask_p Sometimes cpu_evtchn_mask_p can get used early, before it has been allocated. Statically initialize it with an initdata version to catch any early references. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk commit 1a60d05f40882303dad13f8f0e077e2e49ea8996 Author: Gerd Hoffmann Date: Mon Oct 4 13:42:27 2010 -0400 xen: set pirq name to something useful. Impact: cleanup Make pirq show useful information in /proc/interrupts [v2: Removed the parts for arch/x86/xen/pci.c ] Signed-off-by: Gerd Hoffmann Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk commit b21ddbf50386d10cdd60d8f8e744cff0496d2552 Author: Jeremy Fitzhardinge Date: Mon Jun 7 16:28:49 2010 -0400 xen: dynamically allocate irq & event structures Dynamically allocate the irq_info and evtchn_to_irq arrays, so that 1) the irq_info array scales to the actual number of possible irqs, and 2) we don't needlessly increase the static size of the kernel when we aren't running under Xen. Derived on patch from Mike Travis . [Impact: reduce memory usage ] [v2: Conflict in drivers/xen/events.c: Replaced alloc_bootmen with kcalloc ] Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk commit 0794bfc74365d0de4b1d4920cb71031850551cbd Author: Konrad Rzeszutek Wilk Date: Mon Oct 18 10:41:08 2010 -0400 xen: identity map gsi->irqs Impact: preserve compat with native Reserve the lower irq range for use for hardware interrupts so we can identity-map them. [v2: Rebased on top tip/irq/core] Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk commit 7b586d71858091f0958e5808b7e3d5390c2ae47d Author: Jeremy Fitzhardinge Date: Thu Feb 12 17:22:49 2009 -0800 x86/io_apic: add get_nr_irqs_gsi() Impact: new interface to get max GSI Add get_nr_irqs_gsi() to return nr_irqs_gsi. Xen will use this to determine how many irqs it needs to reserve for hardware irqs. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk Reviewed-by: "H. Peter Anvin" Acked-by: Thomas Gleixner Cc: x86@kernel.org Cc: Jesse Barnes commit d46a78b05c0e37f76ddf4a7a67bf0b6c68bada55 Author: Jeremy Fitzhardinge Date: Fri Oct 1 12:20:09 2010 -0400 xen: implement pirq type event channels A privileged PV Xen domain can get direct access to hardware. In order for this to be useful, it must be able to get hardware interrupts. Being a PV Xen domain, all interrupts are delivered as event channels. PIRQ event channels are bound to a pirq number and an interrupt vector. When a IO APIC raises a hardware interrupt on that vector, it is delivered as an event channel, which we can deliver to the appropriate device driver(s). This patch simply implements the infrastructure for dealing with pirq event channels. [ Impact: integrate hardware interrupts into Xen's event scheme ] Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk commit d8e0420603cf1ce9cb459c00ea0b7337de41b968 Author: Jeremy Fitzhardinge Date: Mon Feb 9 12:05:46 2009 -0800 xen: define BIOVEC_PHYS_MERGEABLE() Impact: allow Xen control of bio merging When running in Xen domain with device access, we need to make sure the block subsystem doesn't merge requests across pages which aren't machine physically contiguous. To do this, we define our own BIOVEC_PHYS_MERGEABLE. When CONFIG_XEN isn't enabled, or we're not running in a Xen domain, this has identical behaviour to the normal implementation. When running under Xen, we also make sure the underlying machine pages are the same or adjacent. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk commit 23ace955c22cb9bdf703e4bdc9bf7379166113cd Author: Alex Nixon Date: Mon Feb 9 12:05:46 2009 -0800 xen: Don't disable the I/O space If a guest domain wants to access PCI devices through the frontend driver (coming later in the patch series), it will need access to the I/O space. [ Impact: Allow for domU IO access, preparing for pci passthrough ] Signed-off-by: Alex Nixon Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Konrad Rzeszutek Wilk commit dce87b960cf4794141f067d8c8180ccc6716513f Author: amit salecha Date: Mon Oct 18 02:03:42 2010 +0000 netxen: mask correctable error HW workaround: Disable logging of correctable error for some NX3031 based adapter. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 7a9905e64272c8021a8cfaf6015dd0fb8eeeb378 Author: Rajesh Borundia Date: Mon Oct 18 02:03:41 2010 +0000 netxen: fix race in tx stop queue There is race between netif_stop_queue and netif_stopped_queue check.So check once again if buffers are available to avoid race. With above logic we can also get rid of tx lock in process_cmd_ring. Signed-off-by: Rajesh Borundia Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 3666e0b04f092f9d9da8a6d6a3820de6c870407c Author: amit salecha Date: Mon Oct 18 01:47:48 2010 +0000 qlcnic: update ethtool stats Added statistics for Nic Partition supported adapter. These statistics are maintined in device. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 27a954bd560f3e385bbed38fde3051fe718b8d75 Author: Andy Walls Date: Sun Oct 17 15:11:22 2010 +0000 IPv4: route.c: Change checks against 0xffffffff to ipv4_is_lbcast() Change a few checks against the hardcoded broadcast address, 0xffffffff, to ipv4_is_lbcast(). Remove some existing checks using ipv4_is_lbcast() that are now obviously superfluous. Signed-off-by: Andy Walls Signed-off-by: David S. Miller commit 7f9c7e28119cf21ae1a035240da3705647d0d06a Merge: 4af8f24 b476ef0 Author: Russell King Date: Mon Oct 18 15:20:21 2010 +0100 Merge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6 into devel-stable commit a47d60561e111f5009ad0964069cfff77f76dbaa Merge: d8e6271 9c473fc Author: David S. Miller Date: Mon Oct 18 07:11:44 2010 -0700 Merge branch 'can/mcp251x-for-net-next' of git://git.pengutronix.de/git/mkl/linux-2.6 commit d8e62719ea63daf6afde2d2d09fb861c1559711e Author: Dmitry Kravkov Date: Sun Oct 17 23:08:55 2010 +0000 bnx2x: update version to 1.60.00-2 Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 030f3356b64a129a1ab34175491a8175bef98e6e Author: Dmitry Kravkov Date: Sun Oct 17 23:08:53 2010 +0000 bnx2x: remove unnecessary FUNC_FLG_RSS flag and related As suggested by: Joe Perches Although RSS is meaningless when there is a single HW queue we still need it enabled in order to have HW Rx hash generated. Signed-off-by: Dmitry Kravkov Signed-off-by: Vladislav Zolotarov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit c8e4f48a8eb236eb672c6da0731ee01a633844f0 Author: Dmitry Kravkov Date: Sun Oct 17 23:09:30 2010 +0000 bnx2x: Use correct FW constant for header padding the value of the constant is the same, but it's clearer to use original constant provided by HSI Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit adf5f6a18f2cbb215394599981fb48473b526faa Author: Dmitry Kravkov Date: Sun Oct 17 23:10:02 2010 +0000 bnx2x: do not deal with power if no capability Signed-off-by: Dmitry Kravkov Signed-off-by: Vladislav Zolotarov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit e3dba8141b651dd8f560a2fd9513b1d26f447f9d Author: Dmitry Kravkov Date: Sun Oct 17 23:05:09 2010 +0000 bnx2x: remove redundant commands during error handling Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit fe78d2637ad9acc6414e36ce781aadc8c77d560d Author: Vladislav Zolotarov Date: Sun Oct 17 23:02:20 2010 +0000 bnx2x: Optimized the branching in the bnx2x_rx_int() Optimized the branching in the bnx2x_rx_int() based on the fact that FP CQE will always have at least one of START or STOP flags set, so if not both bits are set and START bit is not set, then it's a STOP bit that is set. Signed-off-by: Dmitry Kravkov Signed-off-by: Vladislav Zolotarov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 33027af637da3f69bd17488cc3e68493c9052a7d Author: Andrea Gelmini Date: Sat Oct 16 15:19:22 2010 +0200 GFS2: fixed typo Signed-off-by: Andrea Gelmini Signed-off-by: Steven Whitehouse commit 9c473fc33915ddb14b71a4929c838c22b20a24ce Author: Marc Kleine-Budde Date: Mon Oct 4 12:09:31 2010 +0200 can: mcp251x: optimize 2515, rx int gets cleared automatically Signed-off-by: Marc Kleine-Budde Acked-by: Wolfgang Grandegger commit beab675cb45f28a4a76780e43fd03e33bc773555 Author: Marc Kleine-Budde Date: Thu Sep 23 21:34:28 2010 +0200 can: mcp251x: define helper functions mcp251x_is_2510, mcp251x_is_2515 Signed-off-by: Marc Kleine-Budde Acked-by: Wolfgang Grandegger commit f1f8c6cbe6f08f93ac2a4ca19625891d8a82b7f8 Author: Marc Kleine-Budde Date: Mon Oct 18 15:00:18 2010 +0200 can: mcp251x: Don't use pdata->model for chip selection anymore Since commit e446630c960946b5c1762e4eadb618becef599e7, i.e. v2.6.35-rc1, the mcp251x chip model can be selected via the modalias member in the struct spi_board_info. The driver stores the actual model in the struct mcp251x_platform_data. From the driver point of view the platform_data should be read only. Since all in-tree users of the mcp251x have already been converted to the modalias method, this patch moves the "model" member from the struct mcp251x_platform_data to the driver's private data structure. Signed-off-by: Marc Kleine-Budde Cc: Christian Pellegrin Cc: Marc Zyngier commit de9186c257acb06ca8187cff1c94412b5f80a3bd Author: Paul Mundt Date: Mon Oct 18 21:32:58 2010 +0900 sh: clkfwk: Shuffle around to match the intc split up. This shuffles the clock framework code around to a drivers/sh/clk subdir, to follow the intc split up. This will make it easier to subsequently break things out as well as plug in different helpers for non-CPG users. Signed-off-by: Paul Mundt commit c2590f4a8ddf461d33ac2085d966432b2a6a09f2 Author: Kuninori Morimoto Date: Mon Oct 18 03:50:29 2010 +0000 sh: clkfwk: modify for_each_frequency end condition The end condition of for_each_frequency should care about both clk_rate_table_round and clk_rate_div_range_round, and using "correct max size" is a natural idea in later function. To avoid data over flow, this patch didn't modify clk_rate_div_range_round side as .max = div_max + 1. Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt commit 56ea510962ec690ede2be2064de72e51a33011d9 Author: Guennadi Liakhovetski Date: Fri Oct 15 14:37:24 2010 +0000 sh: fix clk_get() error handling clk_get() returns an ERR_PTR(errno) on error and not NULL. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 4bc778661a86722b2c1128dd03851fa013ef26de Author: Atul Dahiya Date: Mon Oct 18 19:56:49 2010 +0900 ARM: S3C2416: Change S3C2416 NAND platform device name This patch changes the platform device name from 's3c2416-nand' to 's3c2412-nand' so that S3C2416 can reuse the nand functionality available on S3C2412. Signed-off-by: Atul Dahiya Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit ef3f2dd4810cca5bf5b1d3648968b50fb267d5e2 Author: Atul Dahiya Date: Mon Oct 18 19:56:45 2010 +0900 ARM: SAMSUNG: Add setname core function for S3C24XX NAND This patch replaces the device name assignment method from string assignment to set_name method for all s3c24xx machines and adds device core file. Signed-off-by: Atul Dahiya Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit 66ad4eea7ec50fe131755c80058b1157d160294d Author: Atul Dahiya Date: Mon Oct 18 19:53:34 2010 +0900 ARM: S3C24XX: Fix nand partition table for s3c24XX This patch fixes the partition table as existing partition table have last partition size fixed and can't utilize available memory proprly if size is more than 64M. Signed-off-by: Atul Dahiya Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit 138a6c7f4ff56b9886cbb46656ac7f26f990cdb4 Author: SeungChull Suh Date: Sat Oct 2 12:48:12 2010 +0900 ARM: S5P64X0: Bug fix on errors of build with CONFIG_PREEMPT_NONE This patch adds header into the below files for build with CONFIG_PREEMPT_NONE. arch/arm/mach-s5p64x0/cpu.c Signed-off-by: Seung-Chull Suh [kgene.kim@samsung.com: edited title and message] Signed-off-by: Kukjin Kim commit 3d4af5cac77f8d4f7422b1d00cb9e67000f94301 Author: Atul Dahiya Date: Fri Oct 8 21:00:02 2010 +0900 ARM: S5P64X0: Fix GPIO rbank support The patch removes s3c_gpio_lock/unlock to avoid acquiring the lock recursively as lock is already acquired by calling function. Signed-off-by: Atul Dahiya Signed-off-by: Sangbeom Kim [kgene.kim@samsung.com: removed useless variable due to this] Signed-off-by: Kukjin Kim commit d7297612ae53dfaf88b702f89a153d3da52bcd31 Author: Abhilash Kesavan Date: Fri Oct 8 20:55:02 2010 +0900 ARM: S5P64X0: Replace the 6440 system device class definition with 64x0 The s5p64x0_sysclass should be used in place of the obselete s5p6440_sysclass. Signed-off-by: Abhilash Kesavan Signed-off-by: Sangbeom Kim Signed-off-by: Kukjin Kim commit 6c6ad435cae29575ff632d97afedbcc2ce2e3840 Author: Naveen Krishna Ch Date: Fri Oct 8 20:53:08 2010 +0900 ARM: S5P64X0: FIX typo in the ADC device name Fix the touch screen device name from s3c64x0-adc to s3c64xx-adc. Signed-off-by: Naveen Krishna Ch Signed-off-by: Kukjin Kim commit b7df2a7beb9cbdd1acfd52200e2de76ec18c90a1 Author: Kukjin Kim Date: Wed Sep 1 12:40:16 2010 +0900 ARM: s5p64x0_defconfig: Update for support S5P6440 and S5P6450 This patch updates s5p64x0_defconfig and changes the name from s5p6440_defconfig so that can support S5P6440 and S5P6450 with one kernel. Tested on SMDK6440(S5P6440) and SMDK6450(S5P6450). Signed-off-by: Kukjin Kim commit 2555e663b367b8d555e76023f4de3f6338c28d6c Author: Kukjin Kim Date: Wed Sep 1 15:13:44 2010 +0900 ARM: S5P64X0: Add UART serial support for S5P6450 This patch adds UART serial port support for S5P6450 SoC. The S5P6450 has 6 UARTs, so adds resource of UART4 and UART5. And to fix membase which is in serial/samsung.c is from Ben Dooks. Signed-off-by: Kukjin Kim Cc: Ben Dooks commit 6f315cb5620c1810e59e93fffb1a7f9c793c7213 Author: Kukjin Kim Date: Wed Sep 1 13:03:39 2010 +0900 ARM: S5P64X0: Move SMDK6440 board file and Add SMDK6450 board file This patch moves smdk6440 board file from mach-s5p6440 into the new mach-s5p64x0 directory and adds smdk6450 board file. Signed-off-by: Kukjin Kim commit 5dd33d89f4700990e00731a971754ecb08ab7022 Author: Kukjin Kim Date: Wed Sep 8 16:23:05 2010 +0900 ARM: S5P64X0: Move GPIO support files for merge S5P64X0 This patch moves S5P6440 GPIO support files from mach-s5p6440 into the new mach-s5p64x0 for merge S5P6440 and S5P6450 SocS. NOTE: Not supported S5P6450 GPIO yet. Will be supported soon. Signed-off-by: Kukjin Kim commit 2853a0efc3031dec88b47bbc50b8a6b3fe9e3cac Author: Kukjin Kim Date: Wed Sep 1 13:36:59 2010 +0900 ARM: S5P64X0: Add S5P6450 I2C support This patch adds S5P6450 I2C support in the ARCH_S5P64X0. And moves S5P6440 I2C support files into the mach-s5p64x0 together. Signed-off-by: Kukjin Kim commit f1fee5824cc2f145c2d926939ff88250245a7ac9 Author: Kukjin Kim Date: Wed Sep 8 19:25:44 2010 +0900 ARM: S5P64X0: Move DMA support for S5P64X0 This patch moves DMA support files in the mach-s5p64x0 for S5P6440 and S5P6450 SoCs. Signed-off-by: Kukjin Kim Cc: Jassi Brar commit e661faa488450786e295ac9b40e89abce8141e92 Author: Kukjin Kim Date: Wed Sep 8 19:21:23 2010 +0900 ARM: S5P64X0: Update Audio support This patch updates Audio and SPI for S5P6440 and S5P6450 SoCs. Signed-off-by: Kukjin Kim Cc: Jassi Brar commit 8c14482b8a64755322484bea6fc66e8b1fd91fe0 Author: Kukjin Kim Date: Wed Sep 1 13:23:31 2010 +0900 ARM: S5P64X0: Update Timer support This patch updates timer support for S5P6440 and S5P6450 SoCs. Signed-off-by: Kukjin Kim commit 96f2c00799f9e3c94ac5879d0289376da69bc4a5 Author: Kukjin Kim Date: Wed Sep 1 13:22:17 2010 +0900 ARM: S5P64X0: Update IRQ support This patch updates IRQ support for S5P6440 and S5P6450 SoCs. Signed-off-by: Kukjin Kim commit 3109e55099cb013f9e1b63d39606dc5d7ecf25bd Author: Kukjin Kim Date: Wed Sep 1 15:35:30 2010 +0900 ARM: S5P64X0: Update Clock for S5P6440 and S5P6450 This patch updates regarding clock files for supporting S5P6440 and S5P6450 with one kernel image. The mach-s5p64x0/clock.c is for common of them and there are specific clock files for each SoCs. Signed-off-by: Kukjin Kim commit a2e0d6249fa866ce7f5a8fe08a4d75511e4701c6 Author: Kukjin Kim Date: Mon Oct 18 18:29:51 2010 +0900 ARM: S5P64X0: Add S5P64X0(S5P6440 and S5P6450) initialization support This patch adds ARCH_S5P64X0 which can support S5P6440 and S5P6450 with one kernel image. So moved some files of mach-s5p6440 into the new ARCH directory mach-s5p64x0. Signed-off-by: Kukjin Kim commit 43f974cdb4ab6d65f849610deb9ef738d62b2e65 Author: Nick Bowler Date: Mon Oct 18 11:22:05 2010 +0200 netfilter: install missing ebtables headers for userspace The ebt_ip6.h and ebt_nflog.h headers are not not known to Kbuild and therefore not installed by make headers_install. Fix that up. Signed-off-by: Nick Bowler Signed-off-by: Patrick McHardy commit d3cd15657516141adce387810be8cb377baf020e Author: Marc Kleine-Budde Date: Tue Sep 28 10:18:34 2010 +0200 can: mcp251x: write intf only when needed This patch introduces a variable "clear_intf" that hold the bits that should be cleared. Only read-modify-write register if "clear_intf" is set. Signed-off-by: Marc Kleine-Budde Acked-by: Wolfgang Grandegger commit 7e15de3a73899903f33975b1ce57cf59c616d1d9 Author: Sascha Hauer Date: Tue Sep 28 10:00:47 2010 +0200 can: mcp251x: read-modify-write eflag only when needed Use read-modify-write instead of a simple write to change the register contents, to close existing the race window between the original manual read and write. Signed-off-by: Sascha Hauer Signed-off-by: Marc Kleine-Budde Acked-by: Wolfgang Grandegger commit f3a3ed3115d39463dc6672454bfbeaff46811a37 Author: Sascha Hauer Date: Tue Sep 28 09:53:35 2010 +0200 can: mcp251x: allow to read two registers in one spi transfer This patch bases on work done earlier by David Jander. Signed-off-by: Sascha Hauer Acked-by: David Jander Signed-off-by: Uwe Kleine-König Signed-off-by: Marc Kleine-Budde Acked-by: Wolfgang Grandegger commit 711e4d6eccd72c57938228b8e0c29cb205527032 Author: Sascha Hauer Date: Thu Sep 30 09:46:00 2010 +0200 can: mcp251x: increase rx_errors on overflow, not only rx_over_errors Signed-off-by: Sascha Hauer Signed-off-by: Marc Kleine-Budde Acked-by: Wolfgang Grandegger commit 57d3c7b09bd797b8db974557a71df8675a22601b Author: Marc Kleine-Budde Date: Mon Oct 4 10:50:51 2010 +0200 can: mcp251x: fix NOHZ local_softirq_pending 08 warning This patch replaces netif_rx() with netif_rx_ni() which has to be used from the threaded interrupt i.e. process context context. Thanks to Christian Pellegrin for pointing at the right fix: 481a8199142c050b72bff8a1956a49fd0a75bbe0 by Oliver Hartkopp. Signed-off-by: Marc Kleine-Budde Acked-by: Wolfgang Grandegger commit 76b6717bc6ccb715b04e36efc26566a6313ede5f Author: Randy Dunlap Date: Mon Oct 18 11:13:30 2010 +0200 netfilter: fix kconfig unmet dependency warning Fix netfilter kconfig unmet dependencies warning & spell out "compatible" while there. warning: (IP_NF_TARGET_TTL && NET && INET && NETFILTER && IP_NF_IPTABLES && NETFILTER_ADVANCED || IP6_NF_TARGET_HL && NET && INET && IPV6 && NETFILTER && IP6_NF_IPTABLES && NETFILTER_ADVANCED) selects NETFILTER_XT_TARGET_HL which has unmet direct dependencies ((IP_NF_MANGLE || IP6_NF_MANGLE) && NETFILTER_ADVANCED) Signed-off-by: Randy Dunlap Signed-off-by: Patrick McHardy commit e74670b6fdc37b15ebee11825849d8983e52a74a Author: Jaroslav Kysela Date: Mon Oct 18 09:43:10 2010 +0200 ALSA: snd-aloop: add cable#0 and cable#1 files to proc card tree Show some useful runtime information using procfs. Signed-off-by: Jaroslav Kysela commit 50a23e6eec6f20d55a3a920e47adb455bff6046e Author: Justin P. Mattock Date: Sat Oct 16 10:36:23 2010 -0700 Update broken web addresses in arch directory. The patch below updates broken web addresses in the arch directory. Signed-off-by: Justin P. Mattock Signed-off-by: Maciej W. Rozycki Cc: Finn Thain Cc: Randy Dunlap Reviewed-by: Finn Thain Signed-off-by: Jiri Kosina commit 631dd1a885b6d7e9f6f51b4e5b311c2bb04c323c Author: Justin P. Mattock Date: Mon Oct 18 11:03:14 2010 +0200 Update broken web addresses in the kernel. The patch below updates broken web addresses in the kernel Signed-off-by: Justin P. Mattock Cc: Maciej W. Rozycki Cc: Geert Uytterhoeven Cc: Finn Thain Cc: Randy Dunlap Cc: Matt Turner Cc: Dimitry Torokhov Cc: Mike Frysinger Acked-by: Ben Pfaff Acked-by: Hans J. Koch Reviewed-by: Finn Thain Signed-off-by: Jiri Kosina commit 9756403b16cfeda85efe77e62832a2f6b5752fdf Author: Dan Carpenter Date: Wed Oct 13 09:19:55 2010 +0000 gianfar: fix double lock typo This should be a _restore() instead of a _save(). Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller commit cdd861d68d27a0d0ebe4e641d20d8cfa5cef405f Author: Dan Carpenter Date: Wed Oct 13 09:18:53 2010 +0000 ns83820: spin_lock_irq() => spin_lock() This is essentially cosmetic. At this point the IRQs are already disabled because we called spin_lock_irq(&dev->rx_info.lock). The real bug here was fixed back in 2006 in 3a10ccebe: "[PATCH] lock validator: fix ns83820.c irq-flags bug". Prior to that patch, it was a "spin_lock_irq is not nestable" type bug. The 2006 patch changes the unlock to not re-enable IRQs, which eliminates the potential deadlock. But this bit was missed. We should change the lock function as well so it balances nicely. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller commit ccc901ee58cfb090a31216a6eda0f1e9dfc572fa Author: Allan Stephens Date: Thu Oct 14 13:58:26 2010 +0000 tipc: Simplify bearer shutdown logic Optimize processing in TIPC's bearer shutdown code, including: 1. Remove an unnecessary check to see if TIPC bearer's can exist. 2. Don't release spinlocks before calling a media-specific disabling routine, since the routine can't sleep. 3. Make bearer_disable() operate directly on a struct bearer, instead of needlessly taking a name and then mapping that to the struct. Signed-off-by: Allan Stephens Signed-off-by: Paul Gortmaker Reviewed-by: Neil Horman Signed-off-by: David S. Miller commit 724829b3ad8e8aeb0aec46de383d35bfa1ad3875 Author: David S. Miller Date: Mon Oct 18 01:06:20 2010 -0700 tipc: Kill tipc_get_mode() completely. It's completely unused and exporting a static symbol makes no sense and breaks the build. Reported-by: Stephen Rothwell Signed-off-by: David S. Miller commit 35dbc0e020c6587f78a6c17693beca73aead7b54 Author: Mike Frysinger Date: Mon Oct 18 03:09:39 2010 -0400 asm-generic/io.h: allow people to override individual funcs For the Blackfin port, we can use much of the asm-generic/io.h header, but we still need to declare some of our own versions of functions. Like the __raw_read* and in/out "string" helpers. So let people do this easily for many of these funcs. Signed-off-by: Mike Frysinger Signed-off-by: Arnd Bergmann commit 9c0a788b4315b83f6138ffa15c56ccf541106e58 Author: Mike Frysinger Date: Mon Oct 18 02:45:22 2010 -0400 spi/bfin_spi: namespace local structs Signed-off-by: Mike Frysinger commit 6f7c17f4f91513247dfec52d6968cd70d5251b38 Author: Michael Hennerich Date: Thu Jul 1 14:34:10 2010 +0000 spi/bfin_spi: init early Some systems using this bus sometimes have very basic devices on them such as regulators. So we need to be loaded even earlier in case the devices are used by things such as early board init code. Therefore register in subsys_initcall(). Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger commit 2e768659df35ea337cb57ea3573c918d31e07894 Author: Bob Liu Date: Fri Sep 17 03:46:22 2010 +0000 spi/bfin_spi: check per-transfer bits_per_word Currently, if the bits_per_word when doing a transfer is not 8bits, we always treat it as 16bits when we should actually be returning an error. Signed-off-by: Bob Liu Signed-off-by: Mike Frysinger commit 4190f6a51f3f9c7c8298202d31b3ead9381c33f1 Author: Barry Song Date: Tue Apr 6 03:36:24 2010 +0000 spi/bfin_spi: warn when CS is driven by hardware (CPHA=0) When the hardware is controlling the CS, there are some SPI options we are unable to support. So issue a warning in the hopes that the user will change to a SPI mode where we can support things sanely. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit e72dcde72c712708e2145ab0ecff539ff4a4c7fb Author: Rob Maris Date: Tue Apr 6 04:17:08 2010 +0000 spi/bfin_spi: cs should be always low when a new transfer begins Signed-off-by: Rob Maris Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit e35954053c1a2ede37f6ed1b28d626dba43dc79d Author: Rob Maris Date: Tue Apr 6 04:12:00 2010 +0000 spi/bfin_spi: fix typo in comment Signed-off-by: Rob Maris Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit 7715aad4ef5cccb318942a0c47aef8a39d6130d7 Author: Mike Frysinger Date: Thu Feb 25 10:00:55 2010 +0000 spi/bfin_spi: reject unsupported SPI modes Who knows what people will try! Signed-off-by: Mike Frysinger commit a75bd65b2189d711938d0fa7d9a79df47ddd66fa Author: Barry Song Date: Fri Jan 22 10:07:30 2010 +0000 spi/bfin_spi: use dma_disable_irq_nosync() in irq handler Using disable_irq() on the IRQ whose handler we are currently executing in can easily lead to a hang. So use the nosync variant here. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit 5e8592dca303fb429d1641c205fe509f4b781ca2 Author: Mike Frysinger Date: Fri Dec 18 18:00:10 2009 +0000 spi/bfin_spi: combine duplicate SPI_CTL read/write logic While combining things, also switch to the proper SPI bit define names. This lets us punt the rarely used SPI defines. Signed-off-by: Mike Frysinger commit 5b47bcd48b3bd53c86040321de0d348aadebed87 Author: Mike Frysinger Date: Fri Dec 18 17:43:31 2009 +0000 spi/bfin_spi: reset ctl_reg bits when setup is run again on a device During runtime, the spi setup function may be called multiple times on the same device in order to reconfigure some settings on the fly. When this happens, we need to reset the ctl_reg bits so that changing the mode works as expected. Reported-by: Andy Getzendanner Signed-off-by: Mike Frysinger commit 033f44bd0ebca1809e8274237a64263d909f01a7 Author: Mike Frysinger Date: Fri Dec 18 17:38:04 2009 +0000 spi/bfin_spi: push all size checks into the transfer function This reduces duplication between the setup/transfer functions and keeps values cached during setup from overriding values changed on a transfer basis (like bits_per_word). Signed-off-by: Mike Frysinger commit 7370ed6b91c37d7022a89a820b0fcd3156fa87fc Author: Yi Li Date: Mon Dec 7 08:07:01 2009 +0000 spi/bfin_spi: use nosync when disabling the IRQ from the IRQ handler Using disable_irq() on the IRQ whose handler we are currently executing in can easily lead to a hang. So use the nosync variant here. Signed-off-by: Yi Li Signed-off-by: Mike Frysinger commit 9677b0de10433d31e05864dfb4bf33d0c27f752a Author: Barry Song Date: Mon Nov 30 03:49:41 2009 +0000 spi/bfin_spi: sync hardware state before reprogramming everything Sometimes under load, the Blackfin core is able to send SPI register updates out before the controller is actually disabled. So when we go to reprogram the entire state (to switch to a different slave), make sure we sync after disabling the controller. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit b052fd0a44354c655eb98fd715ef52857631dfef Author: Barry Song Date: Wed Nov 18 09:43:21 2009 +0000 spi/bfin_spi: save/restore state when suspending/resuming We can't rely on the SPI_CTL/SPI_FLG registers retaining their state when suspending, so save/restore their entire values. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit d3cc71f71ae13596cb988e16bfa2b15f09fb7347 Author: Barry Song Date: Tue Nov 17 09:45:59 2009 +0000 spi/bfin_spi: redo GPIO CS handling The common SPI layers take care of detecting CS conflicts and preventing two devices from claiming the same CS. This causes problems for the GPIO CS support we currently have as we are using CS0 to mean "GPIO CS". But if we have multiple devices using a GPIO CS, the common SPI layers see multiple devices using the virtual "CS0" and reject any such attempts. To make both work, we introduce an offset define. This represents the max number of hardware CS values that the SPI peripheral supports. If the CS is below this limit, we know we can use the hardware CS. If it's above, we treat it as a GPIO CS. This keeps the CS unique as seen by the common code and prevents conflicts. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit 0d2c6de2255cb299fdd77d4543738adee45f4f3f Author: Mike Frysinger Date: Thu Oct 15 04:13:29 2009 +0000 Blackfin: SPI: expand SPI bitmasks Expand the BIT_CTL defines to use the naming convention of the hardware, and expand the masks to cover all documented bits. Signed-off-by: Mike Frysinger commit 90008a641dd832cc2e2c4d21b7da94de91e9d0a4 Author: Mike Frysinger Date: Thu Oct 15 04:13:29 2009 +0000 spi/bfin_spi: use the SPI namespaced bit names This lets us push the short SPI MMR bit names out of the global namespace. Signed-off-by: Mike Frysinger commit 2a045131db69c207b9e3f9614b2c9b0f2e82bcb7 Author: Mike Frysinger Date: Thu Sep 24 01:28:54 2009 +0000 spi/bfin_spi: drop extra memory we don't need The driver that we based ours on uses a little extra memory behind the normal driver state, but we don't. So drop this useless bit of memory. Reported-by: David Brownell Signed-off-by: Mike Frysinger commit b9f139a7a6a8b24e61ad94c3334eb26f34a4cb63 Author: Mike Frysinger Date: Thu Sep 24 01:27:47 2009 +0000 spi/bfin_spi: convert struct names to something more logical The current structure names are a bit confusing as to what they represent, so use better names. Reported-by: David Brownell Signed-off-by: Mike Frysinger commit 9c4542c7a3082bf74f00145355ef407ac82c0b3f Author: Mike Frysinger Date: Thu Sep 24 01:04:04 2009 +0000 spi/bfin_spi: convert read/write/duplex funcs to a dedicated ops structure Rather than having to look up the same 3 sets of functions at the same time, just use an ops structure so we only need to set one pointer. Reported-by: David Brownell Signed-off-by: Mike Frysinger commit f4f50c3ff7815d83dcbb19341f35db2f408ac4f8 Author: Mike Frysinger Date: Thu Sep 24 00:41:49 2009 +0000 spi/bfin_spi: convert queue run state to true/false No point in creating our own version of true/false defines when there is already a standard stdbool available to us. Reported-by: David Brownell Signed-off-by: Mike Frysinger commit ab09e0406ffd42d26fc9a6dcbb626f9eb1da9160 Author: Mike Frysinger Date: Wed Sep 23 23:32:34 2009 +0000 spi/bfin_spi: fix up some unused/misleading comments Reported-by: David Brownell Signed-off-by: Mike Frysinger commit 5cc0159a5779f297d1b987d5f6d0feb6dc36a27a Author: Mike Frysinger Date: Wed Sep 23 23:24:59 2009 +0000 spi/bfin_spi: punt useless null read/write funcs The chip ops should always be initialized, so having null fallback functions are useless. Reported-by: David Brownell Signed-off-by: Mike Frysinger commit 201bbc6fd84c67b4021f454d3e4c30d5cd77f702 Author: Mike Frysinger Date: Wed Sep 23 20:56:10 2009 +0000 spi/bfin_spi: drop custom cs_change_per_word support As David points out, the cs_change_per_word option isn't standard, nor is anyone actually using it. So punt all of the dead code considering it makes up ~10% of the code size. Reported-by: David Brownell Signed-off-by: Mike Frysinger commit 8221610e9990e7ee542a4e508d278302af8a9e75 Author: Barry Song Date: Wed Jun 17 10:10:53 2009 +0000 spi/bfin_spi: fix CS handling The CS helper functions were toggling both the Flag Enable and the Flag Value bits, but the Flag Value bit is ignored if the corresponding Flag Enable bit is cleared. So under high speed transactions, the CS sometimes would not toggle properly. Since it makes no sense to toggle the Flag Enable bit dynamically when we actually want to control the Flag Value, do this when setting up the device and then only handle toggling of the CS value during runtime. Signed-off-by: Barry Song Signed-off-by: Mike Frysinger commit f6a6d96685be6e784849d067b44acb831f595417 Author: Yi Li Date: Wed Jun 3 09:46:22 2009 +0000 spi/bfin_spi: utilize the SPI interrupt in PIO mode The current behavior in PIO mode is to poll the SPI status registers which can obviously lead to higher latencies when doing a lot of SPI traffic. There is a SPI interrupt which can be used instead to signal individual completion of transactions. Signed-off-by: Yi Li Signed-off-by: Mike Frysinger commit bb8beecd98de45f821a3360e0b061fc1f8da947c Author: Wolfgang Muees Date: Fri May 22 01:11:02 2009 +0000 spi/bfin_spi: force sane master-mode state at boot We should make sure the SPI controller is in a sane state in case the boot loader left it in a crappy state. Such as DMA pending which causes interrupts to fire on us. When setting a sane initial state, do not default to slave mode. If we do, then the SPI peripheral may implicitly take over the SPISS pin which other things might be using. For example, the BF533-STAMP uses this pin as a GPIO to control switching between ethernet and flash. If the SPI peripheral controls the output state instead, the ethernet is no longer accessible. URL: http://blackfin.uclinux.org/gf/tracker/5630 Signed-off-by: Wolfgang Muees Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger commit 60d0071b609ecb0aebe12aaedf34fe552da12c5b Author: Sonic Zhang Date: Mon May 18 10:01:16 2009 +0000 spi/bfin_spi: work around anomaly 05000119 Anomaly 05000119 states that the DMA_RUN bit with peripherals isn't reliable. However, the way the driver is currently written (DMA IRQ callback), we don't need the polling in the first place, so drop it. Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger commit ac01e97d644da8e947ffa1bde5083290fe2e36e7 Author: Daniel Mack Date: Wed Mar 25 00:18:35 2009 +0000 spi/bfin_spi: fix resources leakage Re-order setup() a bit so we don't leak memory/dma/gpio resources upon errors. Also make sure we don't call kfree() twice on the same object. Signed-off-by: Daniel Mack Signed-off-by: Bryan Wu Signed-off-by: Yi Li Signed-off-by: Mike Frysinger commit e24dcbef93dbbf529fbedfc6ce8ab22d2cef35f0 Author: Tejun Heo Date: Mon Oct 18 08:33:02 2010 +0200 shpchp: update workqueue usage * Rename shpchp_wq to shpchp_ordered_wq and add non-ordered shpchp_wq which is used instead of the system workqueue. This is to remove the use of flush_scheduled_work() which is deprecated and scheduled for removal. * With cmwq in place, there's no point in creating workqueues lazily. Create both shpchp_wq and shpchp_ordered_wq upfront. * Include workqueue.h from shpchp.h. Signed-off-by: Tejun Heo Acked-by: Jesse Barnes commit a827ea307b147aeb050803433b3f6842582c6ced Author: Tejun Heo Date: Mon Oct 18 08:31:02 2010 +0200 pciehp: update workqueue usage * Rename pciehp_wq to pciehp_ordered_wq and add non-ordered pciehp_wq which is used instead of the system workqueue. This is to remove the use of flush_scheduled_work() which is deprecated and scheduled for removal. * With cmwq in place, there's no point in creating workqueues lazily. Create both pciehp_wq and pciehp_ordered_wq upfront. * Include workqueue.h from pciehp.h. Signed-off-by: Tejun Heo Acked-by: Jesse Barnes commit 83fc3bc09518d42e8f5073e2a65884701dfadf19 Author: Nobuhiro Iwamatsu Date: Mon Oct 18 12:20:39 2010 +0900 ALSA: emu10k1: Fix warning: "CCR" redefined CCR is defined in emu10k1, but SuperH is defined too. If user use this driver with SuperH, it becomes a double definition. Signed-off-by: Nobuhiro Iwamatsu Cc: Paul Mundt Signed-off-by: Takashi Iwai commit f6765502f8daae3d237a394889276c8987f3e299 Author: Mark Brown Date: Mon Oct 18 06:01:33 2010 +0100 Revert "ASoC: Add max98088 CODEC driver" This reverts commit e65d255a5a610ce9e185e0df855250706aca7c21 since it does not build. commit 62ecae09a01df507ef52e1bc90fc233a1978c60a Author: Dmitry Torokhov Date: Sun Oct 10 14:24:16 2010 -0700 Input: wacom - properly enable runtime PM We need to always call usb_autopm_put_interface() in wacom_open(), not only when initialization fails, otherwise the device will be marked as PM-busy and will never be put in suspended state. Based on patch by Oliver Neukum. Acked-by: Oliver Neukum Signed-off-by: Dmitry Torokhov commit 3136baf8d09458bb04332b81494fd13ad90fe94a Merge: 1d02ad4 ca047fe Author: Dmitry Torokhov Date: Sun Oct 17 21:20:19 2010 -0700 Merge branch 'for-linus' into next commit 1d02ad436235080b8a95a2c86a66cb7b8f2e9df9 Author: Michael Hennerich Date: Fri Oct 15 09:49:08 2010 -0700 Input: ad7877 - filter events where pressure is beyond the maximum Suppress events where pressure > pressure_max. These events come typically along with inaccurate X and Y samples. Signed-off-by: Michael Hennerich Signed-off-by: Dmitry Torokhov commit 47026b25fc6cd2d7ec85d4a83c472bca20946a94 Author: Michael Hennerich Date: Fri Oct 15 09:49:07 2010 -0700 Input: ad7877 - implement EV_KEY:BTN_TOUCH reporting Some input users such as Android or X require BTN_TOUCH events. Implement EV_KEY:BTN_TOUCH and make sure that the release event is not erroneous scheduled without a preceding valid touch. Signed-off-by: Michael Hennerich Signed-off-by: Dmitry Torokhov commit e92c27fb5319d8b12f0c291c827e252f0e17afc4 Author: Michael Hennerich Date: Fri Oct 15 09:48:10 2010 -0700 Input: ad7877 - implement specified chip select behavior According to the AD7877 datasheet: Each transfer operation is 16-bit. If multiple read/write operations are to be performed, CS must be taken high after the end of each read/write operation before another read/write operation can be performed by taking CS low again. Make sure CS toggles after each transfer in the message. Signed-off-by: Michael Hennerich Signed-off-by: Dmitry Torokhov commit 790d5c8dac35cf10cf6c52cc9b90ad20603ac2c1 Author: Tejun Heo Date: Fri Oct 15 09:47:15 2010 -0700 Input: hp680_ts_input - use cancel_delayed_work_sync() Make hp680_ts_init/exit() call cancel_delayed_work_sync() instead of calling cancel_delayed_work() followed by flush_scheduled_work(). This is to prepare for the deprecation and removal of flush_scheduled_work(). Signed-off-by: Tejun Heo Signed-off-by: Dmitry Torokhov commit f74eef95e33a07379aa2b950c7f313cbfd55ebbe Author: Hitoshi Mitake Date: Wed Oct 13 11:35:40 2010 -0700 Input: mousedev - correct lockdep annotation When annotating mutex to avoid false lockdep reports we should not be using MOUSEDEV_MIX as lock subclass but rather SINGLE_DEPTH_NESTING. Signed-off-by: Hitoshi Mitake Signed-off-by: Dmitry Torokhov commit 2991a1ca6e9b13b639a82c0eec0cbc191bf1f42f Author: Jason Wang Date: Wed Oct 13 11:35:40 2010 -0700 Input: ads7846 - switch to using threaded IRQ Commit 9114337 introduces regulator operations in ads7846 touchscreen driver. Among these operations, some are called while holding a spinlock. On many platforms regulators reside on slow buses, such as I2C/SPI and require sleep while accessing them. The touchscreen itself is also a SPI device and currently relies on asynchronous SPI access to avoid sleeping in interrupt context. Let's switch to using threaded IRQ to be able to access SPI bus synchronously (which simplifies driver a bit); it also allows safe access to the regulators as well. This has been tested on the ti_omap3530evm board: 1) using ts_lib after normal boot 2) using ts_lib after "#echo 1/0 > /sys/bus/spi/devices/spi0.1/disable" 3) using ts_lib after "#echo mem > /sys/power/state" and "wake up" Also tested on pandora. Based on original patch by Dmitry Torokhov. Tested-by: Grazvydas Ignotas Signed-off-by: Jason Wang Signed-off-by: Dmitry Torokhov commit 1ca98fa652bb5dc3c8793335db9ccc5d0f2e1f65 Author: Bjorn Helgaas Date: Mon Oct 4 12:49:24 2010 -0600 x86/PCI: MMCONFIG: fix region end calculation The end of an MMCONFIG region depends on the ending bus number, not on the number of buses the region covers. We previously computed the wrong ending address whenever the starting bus number was non-zero, e.g.,: MMCONFIG for [bus 00-1f] at [mem 0xe0000000-0xe1ffffff] (base 0xe0000000) MMCONFIG for [bus 20-3f] at [mem 0xe2000000-0xe1ffffff] (base 0xe0000000) The correct regions are: MMCONFIG for [bus 00-1f] at [mem 0xe0000000-0xe1ffffff] (base 0xe0000000) MMCONFIG for [bus 20-3f] at [mem 0xe2000000-0xe3ffffff] (base 0xe0000000) Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit df17e62e5bff60aeefd0e81165c62f9e46f33217 Author: Matthew Garrett Date: Mon Oct 4 14:22:29 2010 -0400 PCI: Add support for polling PME state on suspended legacy PCI devices Not all hardware vendors hook up the PME line for legacy PCI devices, meaning that wakeup events get lost. The only way around this is to poll the devices to see if their state has changed, so add support for doing that on legacy PCI devices that aren't part of the core chipset. Acked-by: Rafael J. Wysocki Signed-off-by: Matthew Garrett Signed-off-by: Jesse Barnes commit bf4d29086972ceaeaf72544d8f64933c2cfdc992 Author: Matthew Garrett Date: Mon Oct 4 14:22:26 2010 -0400 PCI: Export some PCI PM functionality It's helpful to have some extra PCI power management functions available to platform code, so move the declarations to an exported header. Acked-by: Rafael J. Wysocki Signed-off-by: Matthew Garrett Signed-off-by: Jesse Barnes commit 1bcd495be9ed3194f618e8af0446459dc52a1423 Author: Bjorn Helgaas Date: Wed Sep 29 12:23:54 2010 -0600 PCI: fix message typo I missed the closing parenthesis on "(PCI address ...)". Acked-by: Arnd Bergmann Reported-by: Peter Maydell Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit 2c6413aee215a43b1f95e218067abcde50ccbc5e Author: Bjorn Helgaas Date: Wed Sep 29 12:23:21 2010 -0600 PCI: log vendor/device ID always Previously we had to have CONFIG_PCI_DEBUG=y or CONFIG_DYNAMIC_DEBUG=y to turn on this printk, but I think the IDs are valuable enough that it's worth putting them in the log always. Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes commit cb04e95bdd0bfd618ab731c84a3ab56b56974df8 Author: Seth Heasley Date: Mon Oct 4 13:27:14 2010 -0700 PCI: update Intel chipset names and defines This patch updates the defines for Intel devices in include/linux/pci_ids.h, referenced in arch/x86/pci/irq.c and drivers/i2c/busses/i2c-i801.c, reflecting approved legal branding, and using fuller code-names for products under development. Acked-by: Jean Delvare Signed-off-by: Seth Heasley Signed-off-by: Jesse Barnes commit 350a55e9ff6005032407d3234af800f413b03af5 Author: matt mooney Date: Fri Sep 24 12:17:26 2010 -0700 PCI: use new ccflags variable in Makefile Replace EXTRA_CFLAGS with ccflags-y. Signed-off-by: matt mooney Signed-off-by: Jesse Barnes commit db5004195481fcb500c929bd3a0e1c0c48eec527 Author: Hidetoshi Seto Date: Wed Oct 13 15:00:23 2010 +0900 PCI: add PCI_MSIX_TABLE/PBA defines These are already defined in pcilib's pci/header.h but not in kernel's linux/pci_regs.h. Copy them to avoid using magic numbers. Signed-off-by: Hidetoshi Seto Signed-off-by: Jesse Barnes commit 8af2cdeaeefb2712b752e223c6d3396b9894b80d Author: Bob Moore Date: Mon Oct 18 09:10:58 2010 +0800 ACPICA: Update version to 20101013 Version 20101013. Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 49b3c1e04e1dd3cd9a428b0d8367193b73e472c1 Author: Colin Ian King Date: Mon Oct 18 09:38:36 2010 +0800 ACPICA: Clear PCIEXP_WAKE_STS when clearing ACPI events When clearing status bits via acpi_hw_clear_acpi_status, also clear the PCIEXP_WAKE_STS bit. Original change from Colin King. ACPICA BZ 880. http://www.acpica.org/bugzilla/show_bug.cgi?id=880 http://bugs.launchpad.net/bugs/613381 Signed-off-by: Colin Ian King Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 23ebbf07068f84b7ed119a0bef4a3f0ebb82c894 Author: Bob Moore Date: Mon Oct 18 08:50:47 2010 +0800 ACPICA: Add Vista SP2 to supported _OSI strings Added "Windows 2006 SP2" for Vista SP2. Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 34cf66e724a2bf0a406d59b18f5bfeed746d7979 Author: Bob Moore Date: Mon Oct 18 08:47:16 2010 +0800 ACPICA: Eliminate duplicate code in acpi_ut_execute_* functions Now that the nsrepair code automatically repairs _HID-related strings, this type of code is no longer needed in acpi_ut_execute_HID, acpi_ut_execute_CID, and acpi_ut_execute_UID. ACPICA BZ 878. http://www.acpica.org/bugzilla/show_bug.cgi?id=878 Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 81256669aaaa8b06a617f8d0613cb7fb24f8b910 Author: Bob Moore Date: Mon Oct 18 08:44:34 2010 +0800 ACPICA: Change type of _TZ from ThermalZone to Device The type of ThermalZone was confusing hosts as they process the various ThermalZone objects. ACPICA BZ 876. http://www.acpica.org/bugzilla/show_bug.cgi?id=876 Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 3989170f8e3c1bd71d8f7ec6e3d52e46815ee096 Author: Bob Moore Date: Mon Oct 18 08:43:13 2010 +0800 ACPICA: Comment update; no functional change Add a usage note to InstallAddressSpaceHandler. Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 49b7a491b797305a0dc373e7f7a5d2a87955c819 Author: Kukjin Kim Date: Tue Sep 7 15:47:18 2010 +0900 ARM: S5P64X0: Update Kconfig and Makefile This patch updates the Kconfig and Makefile for the S5P6440 and S5P6450 machines. It also updates arch/arm/ Kconfig and Makefile to include for support ARCH_S5P64X0 with one kernel image. Signed-off-by: Kukjin Kim commit 19a2c06548db1fa69c40be5bf3ad2095d6119871 Author: Kukjin Kim Date: Tue Aug 31 16:30:51 2010 +0900 ARM: S5P: Moves initial map for merging S5P64X0 This patch moves some initial maps from plat-s5p to machine, so that can merge mach-s5p6440 and mach-s5p6450. Signed-off-by: Kukjin Kim commit 13904fba37aa00867dee0b4fe13df92fed1120f9 Author: Kukjin Kim Date: Fri Aug 27 13:56:54 2010 +0900 ARM: S5P: Move OneNAND device definitions in plat-s5p This patch moves OneNAND device definitions from mach-s5pv210 to plat-s5p so that can support it commonly. Note: S5PC110 and S5PC210 have same OneNAND driver. Signed-off-by: Kukjin Kim Cc: Kyungmin Park commit b33879aa834ebe03ced3dca4e3b822bd8894a474 Author: Jeff Layton Date: Fri Oct 15 15:34:04 2010 -0400 cifs: move cifsFileInfo_put to file.c ...and make it non-inlined in preparation for the move of most of cifs_close to it. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Signed-off-by: Steve French commit 4477288a103631980750c86547d1fd54bfd2ba7d Author: Jeff Layton Date: Fri Oct 15 15:34:03 2010 -0400 cifs: convert GlobalSMBSeslock from a rwlock to regular spinlock Convert this lock to a regular spinlock A rwlock_t offers little value here. It's more expensive than a regular spinlock unless you have a fairly large section of code that runs under the read lock and can benefit from the concurrency. Additionally, we need to ensure that the refcounting for files isn't racy and to do that we need to lock areas that can increment it for write. That means that the areas that can actually use a read_lock are very few and relatively infrequently used. While we're at it, change the name to something easier to type, and fix a bug in find_writable_file. cifsFileInfo_put can sleep and shouldn't be called while holding the lock. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Signed-off-by: Steve French commit 7a16f1961a5c61d1f60d9e0d3d171cf7793fb5cb Author: Steve French Date: Mon Oct 18 01:09:48 2010 +0000 [CIFS] Fix minor checkpatch warning and update cifs version Signed-off-by: Steve French commit 15ecb436c00fcb13b6dc32bdcbb9f75fc9b7613e Author: Jeff Layton Date: Fri Oct 15 15:34:02 2010 -0400 cifs: move cifs_new_fileinfo to file.c It's currently in dir.c which makes little sense... Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Acked-by: Dave Kleikamp Signed-off-by: Steve French commit 2e396b83f6087b78dac5a18d6d0cf9f8426a00b3 Author: Jeff Layton Date: Fri Oct 15 15:34:01 2010 -0400 cifs: eliminate pfile pointer from cifsFileInfo All the remaining users of cifsFileInfo->pfile just use it to get at the f_flags/f_mode. Now that we store that separately in the cifsFileInfo, there's no need to consult the pfile at all from a cifsFileInfo pointer. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Acked-by: Dave Kleikamp Signed-off-by: Steve French commit 7da4b49a0ec481239d9cd51f7053aa8e4e191fa7 Author: Jeff Layton Date: Fri Oct 15 15:34:00 2010 -0400 cifs: cifs_write argument change and cleanup Have cifs_write take a cifsFileInfo pointer instead of a filp. Since cifsFileInfo holds references on the dentry, and that holds one to the inode, we can eliminate some unneeded NULL pointer checks. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Acked-by: Dave Kleikamp Signed-off-by: Steve French commit 15886177e412db00aa86155fe72608c4ebf5a08f Author: Jeff Layton Date: Fri Oct 15 15:33:59 2010 -0400 cifs: clean up cifs_reopen_file Add a f_flags field that holds the f_flags field from the filp. We'll need this info in case the filp ever goes away before the cifsFileInfo does. Have cifs_reopen_file use that value instead of filp->f_flags too and have it take a cifsFileInfo arg instead of a filp. While we're at it, get rid of some bogus cargo-cult NULL pointer checks in that function and reduce the level of indentation. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Acked-by: Dave Kleikamp Signed-off-by: Steve French commit abfe1eedd682ea0f20e7035445982e6d371a2024 Author: Jeff Layton Date: Fri Oct 15 15:33:58 2010 -0400 cifs: eliminate the inode argument from cifs_new_fileinfo It already takes a file pointer. The inode associated with that had damn well better be the same one we're passing in anyway. Thus, there's no need for a separate argument here. Also, get rid of the bogus check for a null pCifsInode pointer. The CIFS_I macro uses container_of(), and that will virtually never return a NULL pointer anyway. Finally, move the setting of the canCache* flags outside of the lock. Other places in the code don't hold that lock when setting it, so I assume it's not really needed here either. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Acked-by: Dave Kleikamp Signed-off-by: Steve French commit f6a53460e2a105904deeada737b3f878d78517b3 Author: Jeff Layton Date: Fri Oct 15 15:33:57 2010 -0400 cifs: eliminate oflags option from cifs_new_fileinfo Eliminate the poor, misunderstood "oflags" option from cifs_new_fileinfo. The callers mostly pass in the filp->f_flags here. That's not correct however since we're checking that value for the presence of FMODE_READ. Luckily that only affects how the f_list is ordered. What it really wants here is the file->f_mode. Just use that field from the filp to determine it. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Signed-off-by: Steve French commit 608712fe8609492a8670638ea86b97fafe49ebba Author: Jeff Layton Date: Fri Oct 15 15:33:56 2010 -0400 cifs: fix flags handling in cifs_posix_open The way flags are passed and converted for cifs_posix_open is rather non-sensical. Some callers call cifs_posix_convert_flags on the flags before they pass them to cifs_posix_open, whereas some don't. Two flag conversion steps is just confusing though. Change the function instead to clearly expect input in f_flags format, and fix the callers to pass that in. Then, have cifs_posix_open call cifs_convert_posix_flags to do the conversion. Move cifs_posix_open to file.c as well so we can keep cifs_convert_posix_flags as a static function. Fix it also to not ignore O_CREAT, O_EXCL and O_TRUNC, and instead have cifs_reopen_file mask those bits off before calling cifs_posix_open. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Signed-off-by: Steve French commit d793fe8caa3911e6a1e826b45d4ee00d250cdec8 Author: Nathan Holstein Date: Fri Oct 15 11:54:02 2010 -0400 Bluetooth: fix oops in l2cap_connect_req In error cases when the ACL is insecure or we fail to allocate a new struct sock, we jump to the "response" label. If so, "sk" will be null and the kernel crashes. Signed-off-by: Nathan Holstein Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 7c1a96a9966efc2eb33d1021569c5ef6ae6f5ecb Author: Matt Carlson Date: Thu Oct 14 10:37:45 2010 +0000 tg3: Update version to 3.115 This patch updates the tg3 version to 3.115. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 64c2218266996b562a8e940a95a887fc432daced Author: Matt Carlson Date: Thu Oct 14 10:37:44 2010 +0000 tg3: Report invalid link from tg3_get_settings() Currently the tg3 driver leaves the speed and duplex fields uninitialized in tg3_get_settings() if the device is not up. This can lead to some strange deductions in certain versions of ethtool. When the device is up and the link is down, the driver reports SPEED_INVALID and DUPLEX_INVALID for these fields. This patch makes the presentation consistent by returning SPEED_INVALID and DUPLEX_INVALID when the device has not been brought up as well. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 4803572815feea2dca9485a343a8556c9037e36e Author: Matt Carlson Date: Thu Oct 14 10:37:43 2010 +0000 tg3: Don't allocate jumbo ring for 5780 class devs The 5714, 5715, and 5780 devices do not have a separate rx jumbo producer ring. This patch changes the code so that resources are not allocated for it. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit f94e290eba2f98e8f759d273d9d04e8487fb4b6b Author: Matt Carlson Date: Thu Oct 14 10:37:42 2010 +0000 tg3: Cleanup tg3_alloc_rx_skb() src_map is no longer used in tg3_alloc_rx_skb(). Remove it. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 52b02d04c801fff51ca49ad033210846d1713253 Author: Matt Carlson Date: Thu Oct 14 10:37:41 2010 +0000 tg3: Add EEE support This patch adds Energy Efficient Ethernet (EEE) support for the 5718 device ID and the 57765 B0 asic revision. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit ddfc87bfd16f370904c6ff7d23738335dd68d0ce Author: Matt Carlson Date: Thu Oct 14 10:37:40 2010 +0000 tg3: Add clause 45 register accessor methods This patch adds clause 45 register access methods. They will be used in the following patch. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 3d37728bc55994fdf2888f6c872bdeea03a84cc2 Author: Matt Carlson Date: Thu Oct 14 10:37:39 2010 +0000 tg3: Disable unused transmit rings This patch allows the driver to disable the additional transmit rings available on the 5717 and 5719 devices. This is not strictly necessary, but is done anyways for correctness. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit bba226acf4d13586ce47cf8376db33bed7bc0bd6 Author: Matt Carlson Date: Thu Oct 14 10:37:38 2010 +0000 tg3: Add support for selfboot format 1 v6 5718 B0 and 5719 devices will use a new selfboot firmware format. This patch adds code to detect the new format so that bootcode versions get reported correctly. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 19f572565ef66a0439574fd2299a7c804147e133 Author: Eric Dumazet Date: Thu Oct 14 20:56:39 2010 +0000 fib_hash: RCU conversion phase 2 Get rid of fib_hash_lock rwlock. The fn_zone hash table resize is the noticeable part of this patch. I added a seqlock per fn_zone, so that readers can restart their lookup in the (very rare) case a writer expanded the hash table. Add rcu heads in fib_alias and fib_node, use call_rcu() to defer their freeing, and use appropriate _rcu list manipulations. Stress test (160.000.000 udp frames sent, IP route cache disabled to mimic DDOS attack, FIB_HASH) Before: real 0m41.191s user 0m13.137s sys 8m55.241s After: real 0m38.091s user 0m13.189s sys 7m53.018s Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 117a8cdea3647e8e11fac10d14eafefc20f9bda5 Author: Eric Dumazet Date: Thu Oct 14 20:53:34 2010 +0000 fib_hash: RCU conversion phase 1 First step for RCU conversion of fib_hash : struct fn_zone are created and never deleted. Very classic conversion, using rcu_assign_pointer(), rcu_dereference() and rtnl_dereference() verbs. __rcu markers on fz_next and fn_zone_list They are created under RTNL, we dont need fib_hash_lock anymore in fn_new_zone(). Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 9bef83edfba72ba58b42c14fb046da2199574bc0 Author: Eric Dumazet Date: Thu Oct 14 20:53:04 2010 +0000 fib_hash: embed initial hash table in fn_zone While looking for false sharing problems, I noticed sizeof(struct fn_zone) was small (28 bytes) and possibly sharing a cache line with an often written kernel structure. Most of the time, fn_zone uses its initial hash table of 16 slots. We can avoid the false sharing problem by embedding this initial hash table in fn_zone itself, so that sizeof(fn_zone) > L1_CACHE_BYTES We did a similar optimization in commit a6501e080c (Reduce memory needs and speedup lookups) Add a fz_revorder field to speedup fn_hash() a bit. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 7fc4463309faa087f5e41569a987d43b1d71b982 Author: Joe Perches Date: Thu Oct 14 09:55:50 2010 +0000 drivers/net/pch_gbe: Use DEFINE_PCI_DEVICE_TABLE Use the standard macro to put this table in __devinitconst. Compiled, untested. Signed-off-by: Joe Perches Signed-off-by: David S. Miller commit 8e602ce2980fd6941dc0d3dda12e5095e8206f34 Author: Eric Dumazet Date: Thu Oct 14 05:56:18 2010 +0000 netns: reorder fields in struct net In a network bench, I noticed an unfortunate false sharing between 'loopback_dev' and 'count' fields in "struct net". 'count' is written each time a socket is created or destroyed, while loopback_dev might be often read in routing code. Move loopback_dev in a read mostly section of "struct net" Note: struct netns_xfrm is cache line aligned on SMP. (It contains a "struct dst_ops") Move it at the end to avoid holes, and reduce sizeof(struct net) by 128 bytes on ia32. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit c60ce4e265404ca42ba860401f4b0f1e97332a67 Author: Ilpo Järvinen Date: Thu Oct 14 01:52:09 2010 +0000 tcp: use correct counters in CA_CWR state too As CWR is stronger than CA_Disorder state, we can miscount SACK/Reno failure into other timeouts. Not a bad problem as it can happen only due to ECN, FRTO detecting spurious RTO or xmit error which are the only callers of tcp_enter_cwr. And even then losses and RTO must still follow thereafter to actually end up into the relevant code paths. Compile tested. Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller commit 1fdb936101637c91819efea47e921bb592e07e34 Author: Ilpo Järvinen Date: Thu Oct 14 01:42:30 2010 +0000 tcp: sack lost marking fixes When only fast rexmit should be done, tcp_mark_head_lost marks L too far. Also, sacked_upto below 1 is perfectly valid number, the packets == 0 then needs to be trapped elsewhere. Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller commit f3e85df845a5da60fc461cf49537435b1d07cf6d Author: Giuseppe Cavallaro Date: Sun Oct 17 13:43:56 2010 -0700 stmmac: remove ifdef NETIF_F_TSO from stmmac_ethtool.c Signed-off-by: Giuseppe Cavallaro Reported-by: Armando Visconti Signed-off-by: David S. Miller commit ed440e82fee9652715a8145ffee8f56396017d9a Author: Harvey Harrison Date: Wed Oct 13 18:59:13 2010 +0000 niu: introduce temp variables to avoid sparse warnings when swapping in-situ Suppress a large block of warnings like: drivers/net/niu.c:7094:38: warning: incorrect type in assignment (different base types) drivers/net/niu.c:7094:38: expected restricted __be32 [usertype] ip4src drivers/net/niu.c:7094:38: got unsigned long long drivers/net/niu.c:7104:17: warning: cast from restricted __be32 ... Signed-off-by: Harvey Harrison Signed-off-by: David S. Miller commit 7d08ae3c9205b559f90c3d7a3abba3c6479673c7 Author: Artem Bityutskiy Date: Sun Oct 17 15:50:19 2010 +0300 UBIFS: add a commentary about log recovery Add a commentary which elaborates that 'ubifs_recover_log_leb()' recovers only the last log LEB, not any. Also remove some unneeded newlines. Signed-off-by: Artem Bityutskiy commit 7bf4a5ddc9fbff52855cad8d4d74bf5344fe8093 Author: Tejun Heo Date: Sun Oct 17 11:25:03 2010 +0200 isdn/eicon: don't call flush_scheduled_work() from diva_os_remove_soft_isr() diva doesn't use workqueue and there is no reason to flush the system workqueue from diva_os_remove_soft_isr(). Remove it. This is to prepare for the deprecation and removal of flush_scheduled_work(). Signed-off-by: Tejun Heo Acked-by: Armin Schindler commit c08d91695b2a3349254a62b60f03f7971bd90fa0 Author: Takashi Iwai Date: Sun Oct 17 10:40:53 2010 +0200 ALSA: tlv - Define numbers in sound/tlv.h Signed-off-by: Takashi Iwai commit de8c85f7840e5e29629de95f5af24297fb325e0b Author: Clemens Ladisch Date: Fri Oct 15 10:32:50 2010 +0200 ALSA: HDA: Sigmatel: work around incorrect master muting The HDA specification does not allow for a codec to mute itself just because the volume is reduced, so _of course_ somebody had to go and do it. This wouldn'\''t hurt too much when the volume is adjusted by hand, but programs like PA that try to set the volume automatically could inadvertently mute the output. To work around this, change the TLV dB information for the Master volume on all Sigmatel HDA codecs to indicate the the minimal volume setting actually mutes. Reported-by: Colin Guthrie Reported-by: "Alexander E. Patrakov" Tested-by: Colin Guthrie Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit 84cc5c0bd3ef8711793cc0af2ecc3fb8e44f4ba0 Merge: 57e3538 aa73aec Author: Takashi Iwai Date: Sun Oct 17 10:38:33 2010 +0200 Merge branch 'fix/misc' into topic/misc commit c3d226ab8b44fe31e5e6d5739eb353597cea4029 Author: David Henningsson Date: Thu Oct 14 15:42:08 2010 +0200 ALSA: HDA: Apply SKU override for Acer aspire 7736z BugLink: http://launchpad.net/bugs/617647 The current SKU value disables playback, so ignore the SKU value. Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai commit 906229174c20e3d5cbda8da070af8f30196316c3 Author: David Henningsson Date: Thu Oct 14 14:50:18 2010 +0200 ALSA: HDA: Enable SKU quirks for Realtek Realtek have ways of specifying external amps and more via a special nid or via the Codec's subsystem ID, this is called "SKU". The computer manufacturer sometimes gets this wrong, so we need to be able to override or ignore the SKU customization value. Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai commit 57e35381bc13e6f18ac1ec255ca61ba1a5103e13 Merge: 363129e 0db7102 Author: Takashi Iwai Date: Sun Oct 17 10:12:42 2010 +0200 Merge remote branch 'alsa/devel' into topic/misc commit 363129ea90e0835b8552b797714cd200f674e287 Author: Mike Frysinger Date: Sat Oct 16 13:24:52 2010 -0400 ALSA: fix unused warnings with snd_power_get_state If we compile the ASoC code with PM disabled, we hit stuff like: sound/soc/soc-dapm.c: In function 'snd_soc_dapm_suspend_check': sound/soc/soc-dapm.c:440: warning: unused variable 'codec' So tweak the stub macro to avoid these issues. Signed-off-by: Mike Frysinger Signed-off-by: Takashi Iwai commit fa2eb005ebcbac89745a1f9a9f0c8678ba63f61a Author: Andrea Gelmini Date: Sat Oct 16 15:19:20 2010 +0200 sound: fixed typos Signed-off-by: Andrea Gelmini Signed-off-by: Takashi Iwai commit e1f60b292ffd61151403327aa19ff7a1871820bd Author: Nishanth Menon Date: Wed Oct 13 00:13:10 2010 +0200 PM: Introduce library for device-specific OPPs (v7) SoCs have a standard set of tuples consisting of frequency and voltage pairs that the device will support per voltage domain. These are called Operating Performance Points or OPPs. The actual definitions of OPP varies over silicon versions. For a specific domain, we can have a set of {frequency, voltage} pairs. As the kernel boots and more information is available, a default set of these are activated based on the precise nature of device. Further on operation, based on conditions prevailing in the system (such as temperature), some OPP availability may be temporarily controlled by the SoC frameworks. To implement an OPP, some sort of power management support is necessary hence this library depends on CONFIG_PM. Contributions include: Sanjeev Premi for the initial concept: http://patchwork.kernel.org/patch/50998/ Kevin Hilman for converting original design to device-based. Kevin Hilman and Paul Walmsey for cleaning up many of the function abstractions, improvements and data structure handling. Romit Dasgupta for using enums instead of opp pointers. Thara Gopinath, Eduardo Valentin and Vishwanath BS for fixes and cleanups. Linus Walleij for recommending this layer be made generic for usage in other architectures beyond OMAP and ARM. Mark Brown, Andrew Morton, Rafael J. Wysocki, Paul E. McKenney for valuable improvements. Discussions and comments from: http://marc.info/?l=linux-omap&m=126033945313269&w=2 http://marc.info/?l=linux-omap&m=125482970102327&w=2 http://marc.info/?t=125809247500002&r=1&w=2 http://marc.info/?l=linux-omap&m=126025973426007&w=2 http://marc.info/?t=128152609200064&r=1&w=2 http://marc.info/?t=128468723000002&r=1&w=2 incorporated. v1: http://marc.info/?t=128468723000002&r=1&w=2 Signed-off-by: Nishanth Menon Signed-off-by: Kevin Hilman Signed-off-by: Rafael J. Wysocki commit d33ac60beaf2c7dee5cd90aba7c1eb385dd70937 Author: James Hogan Date: Tue Oct 12 00:00:25 2010 +0200 PM: Add sysfs attr for rechecking dev hash from PM trace If the device which fails to resume is part of a loadable kernel module it won't be checked at startup against the magic number stored in the RTC. Add a read-only sysfs attribute /sys/power/pm_trace_dev_match which contains a list of newline separated devices (usually just the one) which currently match the last magic number. This allows the device which is failing to resume to be found after the modules are loaded again. Signed-off-by: James Hogan Signed-off-by: Rafael J. Wysocki commit 2ac21c6bc4249ee6d922f18dbec7266377592c32 Author: James Hogan Date: Mon Oct 11 23:59:58 2010 +0200 PM: Lock PM device list mutex in show_dev_hash() Lock the PM device list mutex using device_pm_lock() and device_pm_unlock() around the list iteration in show_dev_hash(). show_dev_hash() was reverse iterating dpm_list without first locking the mutex that the functions in drivers/base/power/main.c lock. I assume this was unintentional since there is no comment suggesting why the lock might not be necessary. Signed-off-by: James Hogan Signed-off-by: Rafael J. Wysocki commit f71648d73c1650b8b4aceb3856bebbde6daa3b86 Author: Rafael J. Wysocki Date: Mon Oct 11 01:02:27 2010 +0200 PM / Runtime: Remove idle notification after failing suspend If runtime suspend of a device fails returning -EAGAIN or -EBUSY, which means that it's safe to try to suspend it again, the PM core runs the runtime idle helper function for it. Unfortunately this may lead to problems, for example for PCI devices whose drivers don't implement the ->runtime_idle() callback, because in that case the PCI bus type's ->runtime_idle() always calls pm_runtime_suspend() for the given device. Then, if there's an automatic idle notification after the driver's ->runtime_suspend() returning -EAGAIN or -EBUSY, it will make the suspend happen again possibly causing a busy loop to appear. To avoid that, remove the idle notification after failing runtime suspend of a device altogether and let the callers of pm_runtime_suspend() repeat the operation if need be. Signed-off-by: Rafael J. Wysocki Acked-by: Alan Stern commit 3624eb04c24861ab296842414f9752a393e68372 Author: Rafael J. Wysocki Date: Mon Oct 4 22:08:12 2010 +0200 PM / Hibernate: Modify signature used to mark swap Since we are adding compression to the kernel's hibernate code, change signature used by it to mark swap spaces, so that earlier kernels don't attempt to restore compressed images they cannot handle. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek commit 71c63122c4609a917f14a79c32067a68909fc487 Author: Rafael J. Wysocki Date: Mon Oct 4 22:08:01 2010 +0200 PM / Runtime: Reduce code duplication in core helper functions Reduce code duplication in rpm_idle(), rpm_suspend() and rpm_resume() by using local pointers to store callback addresses and moving some duplicated code into a separate function. Signed-off-by: Rafael J. Wysocki Reviewed-by: Alan Stern commit dbeeec5fe868f2e2e92fe94daa2c5a047240fdc4 Author: Rafael J. Wysocki Date: Mon Oct 4 22:07:32 2010 +0200 PM: Allow wakeup events to abort freezing of tasks If there is a wakeup event during the freezing of tasks, suspend or hibernation will fail anyway. Since try_to_freeze_tasks() can take up to 20 seconds to complete or fail, aborting it as soon as a wakeup event is detected improves the worst case wakeup latency. Based on a patch from Arve Hjønnevåg. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek commit 5fc62aad4e7779c2f04691e48b351d08c050c1f1 Author: Ming Lei Date: Wed Sep 29 00:12:22 2010 +0200 PM: runtime: add missed pm_request_autosuspend The patch "PM / Runtime: Implement autosuspend support" introduces "autosuspend" facility for runtime PM, but misses helper function of pm_request_autosuspend, so add it. Signed-off-by: Ming Lei Signed-off-by: Rafael J. Wysocki commit d0941ead3fdd31aafff992d211bcefdbff1eaedb Author: Rafael J. Wysocki Date: Tue Sep 28 23:31:22 2010 +0200 PM / Hibernate: Make some boot messages look less scary The hibernate resume code checks if there is an image to resume from on every boot and, if the kernel is built with CONFIG_PM_DEBUG set and the image is not present, it prints some scary messages suggesting there was a boot error of some sort. Apparently, some users are confused by them, so make them look less scary and adjust the other hibernate resume debug messages to match them. Signed-off-by: Rafael J. Wysocki commit 15bcb91d7e607d8a2e060f01f7784a7454668da4 Author: Alan Stern Date: Sat Sep 25 23:35:21 2010 +0200 PM / Runtime: Implement autosuspend support This patch (as1427) implements the "autosuspend" facility for runtime PM. A few new fields are added to the dev_pm_info structure and several new PM helper functions are defined, for telling the PM core whether or not a device uses autosuspend, for setting the autosuspend delay, and for marking periods of device activity. Drivers that do not want to use autosuspend can continue using the same helper functions as before; their behavior will not change. In addition, drivers supporting autosuspend can also call the old helper functions to get the old behavior. The details are all explained in Documentation/power/runtime_pm.txt and Documentation/ABI/testing/sysfs-devices-power. Signed-off-by: Alan Stern Signed-off-by: Rafael J. Wysocki commit 7490e44239e60293bca0c2663229050c36c660c2 Author: Alan Stern Date: Sat Sep 25 23:35:15 2010 +0200 PM / Runtime: Add no_callbacks flag Some devices, such as USB interfaces, cannot be power-managed independently of their parents, i.e., they cannot be put in low power while the parent remains at full power. This patch (as1425) creates a new "no_callbacks" flag, which tells the PM core not to invoke the runtime-PM callback routines for the such devices but instead to assume that the callbacks always succeed. In addition, the non-debugging runtime-PM sysfs attributes for the devices are removed, since they are pretty much meaningless. The advantage of this scheme comes not so much from avoiding the callbacks themselves, but rather from the fact that without the need for a process context in which to run the callbacks, more work can be done in interrupt context. Signed-off-by: Alan Stern Signed-off-by: Rafael J. Wysocki commit 140a6c945211ee911dec776fafa52e03a7d7bb9a Author: Alan Stern Date: Sat Sep 25 23:35:07 2010 +0200 PM / Runtime: Combine runtime PM entry points This patch (as1424) combines the various public entry points for the runtime PM routines into three simple functions: one for idle, one for suspend, and one for resume. A new bitflag specifies whether or not to increment or decrement the usage_count field. The new entry points are named __pm_runtime_idle, __pm_runtime_suspend, and __pm_runtime_resume, to reflect that they are trampolines. Simultaneously, the corresponding internal routines are renamed to rpm_idle, rpm_suspend, and rpm_resume. Signed-off-by: Alan Stern Signed-off-by: Rafael J. Wysocki commit 1bfee5bc86fdaecc912e06080583eddab7263df2 Author: Alan Stern Date: Sat Sep 25 23:35:00 2010 +0200 PM / Runtime: Merge synchronous and async runtime routines This patch (as1423) merges the asynchronous routines __pm_request_idle(), __pm_request_suspend(), and __pm_request_resume() with their synchronous counterparts. The RPM_ASYNC bitflag argument serves to indicate what sort of operation to perform. In the course of performing this merger, it became apparent that the various functions don't all behave consistenly with regard to error reporting and cancellation of outstanding requests. A new routine, rpm_check_suspend_allowed(), was written to centralize much of the testing, and the other functions were revised to follow a simple algorithm: If the operation is disallowed because of the device's settings or current state, return an error. Cancel pending or scheduled requests of lower priority. Schedule, queue, or perform the desired operation. A few special cases and exceptions are noted in comments. Signed-off-by: Alan Stern Signed-off-by: Rafael J. Wysocki commit 3f9af0513ae5b1f185302c2d0ba656640926d970 Author: Alan Stern Date: Sat Sep 25 23:34:54 2010 +0200 PM / Runtime: Replace boolean arguments with bitflags The "from_wq" argument in __pm_runtime_suspend() and __pm_runtime_resume() supposedly indicates whether or not the function was called by the PM workqueue thread, but in fact it isn't always used this way. It really indicates whether or not the function should return early if the requested operation is already in progress. Along with this badly-named boolean argument, later patches in this series will add several other boolean arguments to these functions and others. Therefore this patch (as1422) begins the conversion process by replacing from_wq with a bitflag argument. The same bitflags are also used in __pm_runtime_get() and __pm_runtime_put(), where they indicate whether or not the operation should be asynchronous. Signed-off-by: Alan Stern Signed-off-by: Rafael J. Wysocki commit 4769373ca2c8d0b999749a070c48fd8648888831 Author: Alan Stern Date: Sat Sep 25 23:34:46 2010 +0200 PM / Runtime: Move code in drivers/base/power/runtime.c This patch (as1421) moves the PM runtime accounting subroutines up to the beginning of runtime.c, taking them out of the middle of the functions that do the actual work. No operational changes. Signed-off-by: Alan Stern Signed-off-by: Rafael J. Wysocki commit 69d44ffbd772bede8c2a6d182e6e14f94826520b Author: Alan Stern Date: Sat Sep 25 23:34:22 2010 +0200 sysfs: Add sysfs_merge_group() and sysfs_unmerge_group() This patch (as1420) adds sysfs_merge_group() and sysfs_unmerge_group() functions, allowing drivers easily to add and remove sets of attributes to a pre-existing attribute group directory. Signed-off-by: Alan Stern Acked-by: Greg Kroah-Hartman Signed-off-by: Rafael J. Wysocki commit 098dff738abbeaea15fc95c4f4fdaee1e9bbea75 Author: Rafael J. Wysocki Date: Wed Sep 22 22:10:57 2010 +0200 PM: Fix potential issue with failing asynchronous suspend There is a potential issue with the asynchronous suspend code that a device driver suspending asynchronously may not notice that it should back off. There are two failing scenarions, (1) when the driver is waiting for a driver suspending synchronously to complete and that second driver returns error code, in which case async_error won't be set and the waiting driver will continue suspending and (2) after the driver has called device_pm_wait_for_dev() and the waited for driver returns error code, in which case the caller of device_pm_wait_for_dev() will not know that there was an error and will continue suspending. To fix this issue make __device_suspend() set async_error, so async_suspend() doesn't need to set it any more, and make device_pm_wait_for_dev() return async_error, so that its callers can check whether or not they should continue suspending. No more changes are necessary, since device_pm_wait_for_dev() is not used by any drivers' suspend routines. Reported-by: Colin Cross Signed-off-by: Rafael J. Wysocki Acked-by: Greg Kroah-Hartman commit 074037ec79bea73edf1b1ec72fef1010e83e3cc5 Author: Rafael J. Wysocki Date: Wed Sep 22 22:09:10 2010 +0200 PM / Wakeup: Introduce wakeup source objects and event statistics (v3) Introduce struct wakeup_source for representing system wakeup sources within the kernel and for collecting statistics related to them. Make the recently introduced helper functions pm_wakeup_event(), pm_stay_awake() and pm_relax() use struct wakeup_source objects internally, so that wakeup statistics associated with wakeup devices can be collected and reported in a consistent way (the definition of pm_relax() is changed, which is harmless, because this function is not called directly by anyone yet). Introduce new wakeup-related sysfs device attributes in /sys/devices/.../power for reporting the device wakeup statistics. Change the global wakeup events counters event_count and events_in_progress into atomic variables, so that it is not necessary to acquire a global spinlock in pm_wakeup_event(), pm_stay_awake() and pm_relax(), which should allow us to avoid lock contention in these functions on SMP systems with many wakeup devices. Signed-off-by: Rafael J. Wysocki Acked-by: Greg Kroah-Hartman commit 0702d9ee0f1dcb6258789032f03b3208bfafaffc Author: Kevin Cernekee Date: Mon Sep 20 22:32:10 2010 +0200 PM: Fix signed/unsigned warning in dpm_show_time() Seen on MIPS32, gcc 4.4.3, 2.6.36-rc4: drivers/base/power/main.c: In function 'dpm_show_time': drivers/base/power/main.c:415: warning: comparison of distinct pointer types lacks a cast do_div() takes unsigned parameters: uint32_t do_div(uint64_t *n, uint32_t base); Using an unsigned variable for usecs64 should not cause any problems, because calltime >= starttime . Signed-off-by: Kevin Cernekee Signed-off-by: Rafael J. Wysocki commit ac5c24ec1e983313ef0015258fba6f630e54e7cf Author: Rafael J. Wysocki Date: Mon Sep 20 19:44:56 2010 +0200 PM / Hibernate: Make default image size depend on total RAM size The default hibernation image size is currently hard coded and euqal to 500 MB, which is not a reasonable default on many contemporary systems. Make it equal 2/5 of the total RAM size (this is slightly below the maximum, i.e. 1/2 of the total RAM size, and seems to be generally suitable). Signed-off-by: Rafael J. Wysocki Tested-by: M. Vefa Bicakci commit 266f1a25eff5ff98c498d7754a419aacfd88f71c Author: Rafael J. Wysocki Date: Mon Sep 20 19:44:38 2010 +0200 PM / Hibernate: Improve comments in hibernate_preallocate_memory() One comment in hibernate_preallocate_memory() is wrong, so fix it and add one more comment to clarify the meaning of the fixed one. Signed-off-by: Rafael J. Wysocki commit bcb5ba8b4e8a5ae14b27351bdf499dd4c3bcc944 Author: Rafael J. Wysocki Date: Mon Sep 20 19:44:17 2010 +0200 PM / Runtime: Use alloc_workqueue() for creating the PM workqueue Although we need the PM workqueue to be freezable, we don't need it to be singlethread. Also, the number of concurrent work items running on a single CPU need not be constrained. For these reasons use alloc_workqueue() directly, with suitable arguments, instead of create_freezeable_workqueue(), to create the runtime PM workqueue. Signed-off-by: Rafael J. Wysocki Acked-by: Tejun Heo commit ede890c2c069d611ece0e184103a6b9236ce416a Author: Rafael J. Wysocki Date: Sun Sep 12 21:40:01 2010 +0200 PM: Fix unmet dependency warning from kconfig Fix the following build warning: warning: (PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || \ ARCH_HIBERNATION_POSSIBLE) && PM_SLEEP) selects HOTPLUG_CPU which \ has unmet direct dependencies (SMP && HOTPLUG) by selecting HOTPLUG along with CPU_HOTPLUG. Signed-off-by: Rafael J. Wysocki Acked-by: Randy Dunlap commit f996fc9671d088bd5f52a70f18c64bfe3d0e418f Author: Bojan Smojver Date: Thu Sep 9 23:06:23 2010 +0200 PM / Hibernate: Compress hibernation image with LZO Compress hibernation image with LZO in order to save on I/O and therefore time to hibernate/thaw. [rjw: Added hibernate=nocompress command line option instead of just nocompress which would be confusing, fixed a couple of compiler warnings, fixed kerneldoc comments, minor cleanups.] Signed-off-by: Bojan Smojver Signed-off-by: Rafael J. Wysocki commit 05aa55dddb9ee4045c320661068bea78dad6a6e5 Author: Ohad Ben-Cohen Date: Thu Sep 9 00:46:16 2010 +0200 PM / Runtime: Lenient generic runtime pm callbacks Allow drivers, that belong to subsystems which use the generic runtime pm callbacks, not to define runtime pm suspend/resume handlers, by implicitly assuming success in such cases. This is needed to eliminate nop handlers that would otherwise be necessary by drivers which enable runtime pm, but don't need to do anything when their devices are runtime-suspended/resumed. Signed-off-by: Ohad Ben-Cohen Acked-by: Kevin Hilman Acked-by: Mark Brown Signed-off-by: Rafael J. Wysocki commit 032fa36091a925f555158f4e80f8a09d951cdb10 Author: Thomas Gleixner Date: Sat Oct 16 21:17:08 2010 +0200 arm: Use ARCH_IRQ_INIT_FLAGS The core code now initializes the requested number of interrupts and sets the flags in irq_desc.status which are requested by the architecture via ARCH_IRQ_INIT_FLAGS. Add ARCH_IRQ_INIT_FLAGS and remove the loop which sets those flags after the irq descriptors are allocated. [ This patch should have been in the original irq rework and got dropped accidentaly ] Signed-off-by: Thomas Gleixner Cc: Russell King Cc: Linus Walleij Cc: Anand Gadiyar commit fa0d4c26be9f989816b30626f6c67d9e7ef867f8 Author: Arnd Bergmann Date: Sat Sep 11 18:24:46 2010 +0200 parisc: remove big kernel lock The parisc version of the perf code is sufficiently protected by its own spinlock, no need to use the BKL. Signed-off-by: Arnd Bergmann Cc: Kyle McMartin Cc: Helge Deller Cc: "James E.J. Bottomley" Cc: linux-parisc@vger.kernel.org commit f92f6e6ee35d2779aa62e70f78ad8e1cd417eb52 Merge: 66af86e cd254f2 Author: Ingo Molnar Date: Sat Oct 16 20:17:25 2010 +0200 Merge branch 'core' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile into perf/core commit 81ccb499e7c5ae47e988e59a4e40a6d5ee66af79 Author: Randy Dunlap Date: Wed Oct 13 15:18:59 2010 +0000 net: move MII outside of NET_ETHERNET, fix kconfig warning We have USB, PCMCIA, and gigabit ethernet drivers that select MII even though NET_ETHERNET is not enabled, so make MII not be dependent on NET_ETHERNET. It is still dependent on NET and NETDEVICES. Fixes kconfig unmet dependency warning (shortened, was very long string): warning: (ARM_AT91_ETHER && NETDEVICES && NET_ETHERNET && ARM && ARCH_AT91RM9200 || ARM_KS8695_ETHER && NETDEVICES && NET_ETHERNET && ARM && ARCH_KS8695 || ... || IP1000 && NETDEVICES && NETDEV_1000 && PCI && EXPERIMENTAL || HAMACHI && NETDEVICES && NETDEV_1000 && PCI || R8169 && NETDEVICES && NETDEV_1000 && PCI || SIS190 && NETDEVICES && NETDEV_1000 && PCI || VIA_VELOCITY && NETDEVICES && NETDEV_1000 && PCI || ATL1 && NETDEVICES && NETDEV_1000 && PCI || ATL1E && NETDEVICES && NETDEV_1000 && PCI && EXPERIMENTAL || ATL1C && NETDEVICES && NETDEV_1000 && PCI && EXPERIMENTAL || JME && NETDEVICES && NETDEV_1000 && PCI || STMMAC_ETH && NETDEV_1000 && NETDEVICES && HAS_IOMEM || USB_PEGASUS && NETDEVICES && USB && NET || USB_RTL8150 && NETDEVICES && USB && NET && EXPERIMENTAL || USB_USBNET && NETDEVICES && USB && NET || PCMCIA_SMC91C92 && NETDEVICES && NET_PCMCIA && PCMCIA) selects MII which has unmet direct dependencies (NETDEVICES && NET_ETHERNET) Signed-off-by: Randy Dunlap Acked-by: Jeff Garzik [2006-NOV-30] Signed-off-by: David S. Miller commit e00ce92e0bb966227e88d674d4f7311f4f3bacac Author: Randy Dunlap Date: Wed Oct 13 15:12:53 2010 +0000 infiniband: fix mlx4 kconfig dependency warning Fix kconfig dependency warning to satisfy dependencies: warning: (MLX4_EN && NETDEVICES && NETDEV_10000 && PCI && INET || MLX4_INFINIBAND && INFINIBAND) selects MLX4_CORE which has unmet direct dependencies (NETDEVICES && NETDEV_10000 && PCI) Signed-off-by: Randy Dunlap Signed-off-by: David S. Miller commit cadb7924b10b2a3117dafe14d6d6d28035ec4ddb Author: stephen hemminger Date: Wed Oct 13 14:51:25 2010 +0000 stmmac: make function tables const These tables only contain function pointers. Signed-off-by: Stephen Hemminger Acked-by: Gustavo F. Padovan Signed-off-by: David S. Miller commit 8ee17ae68c0f1e281a432a4318fa2511e25c9492 Author: stephen hemminger Date: Wed Oct 13 14:50:31 2010 +0000 stmmac: make ethtool functions local Signed-off-by: Stephen Hemminger Acked-by: Gustavo F. Padovan Signed-off-by: David S. Miller commit 31e3c3f6f1f9b154981a0e6620df700463db30ee Author: stephen hemminger Date: Wed Oct 13 13:20:35 2010 +0000 tipc: cleanup function namespace Do some cleanups of TIPC based on make namespacecheck 1. Don't export unused symbols 2. Eliminate dead code 3. Make functions and variables local 4. Rename buf_acquire to tipc_buf_acquire since it is used in several files Compile tested only. This make break out of tree kernel modules that depend on TIPC routines. Signed-off-by: Stephen Hemminger Acked-by: Jon Maloy Acked-by: Paul Gortmaker Signed-off-by: David S. Miller commit 15419227f773b6c1b5fae44bde876078a9204caa Author: françois romieu Date: Wed Oct 13 09:26:05 2010 +0000 via-velocity: forced 1000 Mbps mode support. Full duplex only. Half duplex 1000 Mbps is not supported. Signed-off-by: David Lv Acked-by: Francois Romieu Tested-by: Seguier Regis Signed-off-by: David S. Miller commit 10da66f7552b3c7966c2f4f1f72009fb0b5539ec Author: Eric Dumazet Date: Wed Oct 13 08:22:03 2010 +0000 fib: avoid false sharing on fib_table_hash While doing profile analysis, I found fib_hash_table was sometime in a cache line shared by a possibly often written kernel structure. (CONFIG_IP_ROUTE_MULTIPATH || !CONFIG_IPV6_MULTIPLE_TABLES) It's hard to detect because not easily reproductible. Make sure we allocate a full cache line to keep this shared in all cpus caches. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 874ffa8f72444d6253d2669fed304875c128f86b Author: Eric Dumazet Date: Wed Oct 13 06:56:11 2010 +0000 fib_trie: use fls() instead of open coded loop fib_table_lookup() might use fls() to speedup an open coded loop. Noticed while doing a profile analysis. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit a0a4a85a15df6335e3d11f83b2ac06ebebea313f Author: Eric Dumazet Date: Wed Oct 13 04:43:04 2010 +0000 fib: remove a useless synchronize_rcu() call fib_nl_delrule() calls synchronize_rcu() for no apparent reason, while rtnl is held. I suspect it was done to avoid an atomic_inc_not_zero() in fib_rules_lookup(), which commit 7fa7cb7109d07 added anyway. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 2c1c00040af3d187b7d602dd53b5adbbf3a4caa4 Author: Eric Dumazet Date: Wed Oct 13 02:45:40 2010 +0000 fib6: use FIB_LOOKUP_NOREF in fib6_rule_lookup() Avoid two atomic ops on found rule in fib6_rule_lookup() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 725a4a465c943ab0f91fcffc3846acbcdb704aac Author: Denis Kirjanov Date: Wed Oct 13 00:56:09 2010 +0000 sundance: Add initial ethtool stats support Add ethtool stats support. Signed-off-by: Denis Kirjanov Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit 89980827c7a1e3c2b36895c22c6ef0e92aea6b0c Author: Dan Carpenter Date: Tue Oct 12 23:36:19 2010 +0000 pch_gbe: fix if condition in set_settings() There were no curly braces in this if condition so it always enabled full duplex. And ecmd->speed is an unsigned short so it is never equal to -1. The effect is that mii_ethtool_sset() fails with -EINVAL and an error is printed to dmesg. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller commit 35f2516f0a1f9dddb339849c7a07e089322c18c3 Author: Harvey Harrison Date: Tue Oct 12 22:20:34 2010 +0000 dnet: mark methods static and annotate for correct endianness Their doesn't appear to be bugs with the endianness handling here, just get the annotations right to keep sparse happy. Suppresses the following sparse warnings: drivers/net/dnet.c:30:5: warning: symbol 'dnet_readw_mac' was not declared. Should it be static? drivers/net/dnet.c:49:6: warning: symbol 'dnet_writew_mac' was not declared. Should it be static? drivers/net/dnet.c:364:5: warning: symbol 'dnet_phy_marvell_fixup' was not declared. Should it be static? drivers/net/dnet.c:66:13: warning: incorrect type in assignment (different base types) drivers/net/dnet.c:66:13: expected unsigned short [unsigned] [usertype] tmp drivers/net/dnet.c:66:13: got restricted __be16 [usertype] drivers/net/dnet.c:68:13: warning: incorrect type in assignment (different base types) drivers/net/dnet.c:68:13: expected unsigned short [unsigned] [usertype] tmp drivers/net/dnet.c:68:13: got restricted __be16 [usertype] drivers/net/dnet.c:70:13: warning: incorrect type in assignment (different base types) drivers/net/dnet.c:70:13: expected unsigned short [unsigned] [usertype] tmp drivers/net/dnet.c:70:13: got restricted __be16 [usertype] drivers/net/dnet.c:92:27: warning: cast to restricted __be16 drivers/net/dnet.c:94:33: warning: cast to restricted __be16 drivers/net/dnet.c:96:33: warning: cast to restricted __be16 Signed-off-by: Harvey Harrison Signed-off-by: David S. Miller commit 65495745d7d617893f368bf5580353f5d2d88908 Author: Harvey Harrison Date: Tue Oct 12 21:52:26 2010 +0000 cxgb4vf: make single bit signed bitfields unsigned Single bit signed bitfields don't make a lot of sense, noticed by sparse: drivers/net/cxgb4vf/t4vf_common.h:135:31: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:136:36: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:137:36: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:138:36: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:139:36: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:140:31: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:141:31: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:142:35: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:143:35: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:154:27: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:155:26: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:156:27: error: dubious one-bit signed bitfield drivers/net/cxgb4vf/t4vf_common.h:157:26: error: dubious one-bit signed bitfield Signed-off-by: Harvey Harrison Signed-off-by: David S. Miller commit 564824b0c52c34692d804bb6ea214451615b0b50 Author: Eric Dumazet Date: Mon Oct 11 19:05:25 2010 +0000 net: allocate skbs on local node commit b30973f877 (node-aware skb allocation) spread a wrong habit of allocating net drivers skbs on a given memory node : The one closest to the NIC hardware. This is wrong because as soon as we try to scale network stack, we need to use many cpus to handle traffic and hit slub/slab management on cross-node allocations/frees when these cpus have to alloc/free skbs bound to a central node. skb allocated in RX path are ephemeral, they have a very short lifetime : Extra cost to maintain NUMA affinity is too expensive. What appeared as a nice idea four years ago is in fact a bad one. In 2010, NIC hardwares are multiqueue, or we use RPS to spread the load, and two 10Gb NIC might deliver more than 28 million packets per second, needing all the available cpus. Cost of cross-node handling in network and vm stacks outperforms the small benefit hardware had when doing its DMA transfert in its 'local' memory node at RX time. Even trying to differentiate the two allocations done for one skb (the sk_buff on local node, the data part on NIC hardware node) is not enough to bring good performance. Signed-off-by: Eric Dumazet Acked-by: Tom Herbert Signed-off-by: David S. Miller commit 6f0333b8fde44b8c04a53b2461504f0e8f1cebe6 Author: Eric Dumazet Date: Mon Oct 11 11:17:47 2010 +0000 r8169: use 50% less ram for RX ring Using standard skb allocations in r8169 leads to order-3 allocations (if PAGE_SIZE=4096), because NIC needs 16383 bytes, and skb overhead makes this bigger than 16384 -> 32768 bytes per "skb" Using kmalloc() permits to reduce memory requirements of one r8169 nic by 4Mbytes. (256 frames * 16Kbytes). This is fine since a hardware bug requires us to copy incoming frames, so we build real skb when doing this copy. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 05d0ca85c91013d5f73c43fb566bde09a9718019 Author: Anand Gadiyar Date: Thu Oct 14 22:59:57 2010 +0530 genirq, ARM: Fix boot on ARM platforms Commit b683de2b3 in linux-next as of 20101014 (genirq: Query arch for number of early descriptors) seems to have broken bootup on several ARM boards - my beagleboard gives the following dump with earlyprintk: NR_IRQS:402 Unable to handle kernel NULL pointer dereference at virtual address 00000028 pgd = c0004000 [00000028] *pgd=00000000 Internal error: Oops: 5 [#1] last sysfs file: Modules linked in: CPU: 0 Not tainted (2.6.36-rc7-next-20101014-linux-next-20101012+ #40) PC is at init_IRQ+0x14/0x48 LR is at start_kernel+0x150/0x2c0 [...] We seem to be using desc->status without assigning desc to anything. Fix this by adding back the code that was originally there. Signed-off-by: Anand Gadiyar Tested-by: Linus Walleij Cc: Russell King Cc: linux-arm-kernel@lists.infradead.org LKML-Reference: <1287077397-21781-1-git-send-email-gadiyar@ti.com> Signed-off-by: Ingo Molnar commit 66af86e2c630908b21cec018cb612576cf5f516e Merge: 0fdf136 85caa99 Author: Ingo Molnar Date: Sat Oct 16 14:48:58 2010 +0200 Merge branch 'tip/perf/recordmcount' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core commit 97299c726881603f44c30be8718c24015e7a4676 Author: Tejun Heo Date: Fri Oct 15 16:58:21 2010 +0200 pcmcia: don't call flush_scheduled_work() spuriously au100_generic and soc_common call flush_scheduled_work() spuriously. Remove them. This is to prepare for the deprecation and removal of flush_scheduled_work(). Signed-off-by: Tejun Heo Signed-off-by: Dominik Brodowski commit 0f64f70e9c029450e38fcc496148ffc9256bf8c1 Author: Tejun Heo Date: Fri Oct 15 17:04:45 2010 +0200 serial_cs: drop spurious flush_scheduled_work() call serial_cs doesn't use the system workqueue. Drop spurious flush_scheduled_work() call. This is to prepare for the deprecation and removal of flush_scheduled_work(). Signed-off-by: Tejun Heo Signed-off-by: Dominik Brodowski commit ee2007d299ad4020115b193858817e6c57e95db5 Author: Matthias Brugger Date: Sat Oct 16 01:39:49 2010 +0200 spi/atmel: typo in debug message This patches a typo in the debug message. Signed-off-by: Matthias Brugger Signed-off-by: Grant Likely commit 03e7c3432d40d067476eaf49ede29128b637998f Author: Zhang Rui Date: Fri Oct 8 13:55:17 2010 +0800 ACPI: remove unused declaration of proc_fs.h Remove unused declaration of proc_fs.h. Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit d5c6887c7fbaf7a149c3bf441338fa833c529fb4 Author: Zhang Rui Date: Fri Oct 8 13:55:15 2010 +0800 ACPI processor: make /proc/acpi/processor/*/throttle depends on CONFIG_ACPI_PROCFS As a feature that would only be used when system is overheating, the processor t-state control should not be exported to user space. Make /proc/acpi/processor/*/throttle depends on CONFIG_ACPI_PROCFS, which is cleared by default. And we will remove this I/F in 2.6.38. Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit 39fe394d05be43481ceac8b3db19dfd5189097f6 Author: Zhang Rui Date: Fri Oct 8 13:55:11 2010 +0800 ACPI video: remove deprecated procfs I/F Remove the deprecated ACPI video driver procfs I/F, as stated in the changelog of commit 6e37c658aefa57c472b2dbf1de88dbd3c67cdb52 New sysfs I/F is available at /sys/class/backlight/ Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit c57b62f5b1e6dd69ff8c96f6db7f86ea31c0e21f Author: Zhang Rui Date: Fri Oct 8 13:55:06 2010 +0800 ACPI thermal: remove deprecated procfs I/F Remove the deprecated ACPI thermal driver procfs I/F, as stated in the changelog of commit 43d9f87b79804f2d75d9d8a81c862b179f055a15 sysfs I/F is available at /sys/class/thermal/thermal_zoneX/ Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit b2a44989c1dbfae409035eaffad4292c27fc7cb8 Author: Zhang Rui Date: Fri Oct 8 13:55:03 2010 +0800 ACPI fan: remove deprecated procfs I/F Remove deprecated ACPI Fan driver procfs interface. The ACPI fan driver (CONFIG_ACPI_FAN) selects the generic thermal sysfs driver (CONFIG_THERMAL) since 2.6.26, so new sysfs I/F is available at /sys/class/thermal/cooling_devicecX/ Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit 1b3d4c3b9a597e216c08bff2c59a8de872ef2d09 Author: Zhang Rui Date: Fri Oct 8 13:54:57 2010 +0800 ACPI ac/battery/sbs: sysfs I/F always built in, procfs I/F disabled by default ACPI AC/Battery/SBS driver has different kernel option for procfs and sysfs I/F. This patch, 1. Change CONFIG_ACPI_PROCFS_POWER to 'n' by default so that we can remove it in the next release or two. 2. Remove CONFIG_ACPI_SYSFS_POWER and always build in the sysfs I/F of these drivers. Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit 3af283e1141474925b33383425bbe038e75fd03a Author: Len Brown Date: Fri Oct 15 21:38:57 2010 -0400 ACPI: add FW_BUG to OSI(Linux) message Linux-2.6.22 initiated a dmesg complaint when it saw BIOS that invoked OSI(Linux). Linux-2.6.23 continued that complaint and started our policy of ignoring the bogus BIOS request. Past-time for Linux to label that complaint with FW_BUG. Signed-off-by: Len Brown commit 0f3f164d9794f57d8afb033819f508a486c1304d Author: Len Brown Date: Fri Oct 15 21:25:02 2010 -0400 acpi_idle: delete bogus data from cpuidle_state.power_usage The mW data in this field comes from AML _CST, which was typed in by a BIOS writer, and is thus considered unreliable. Linux does not use it for making any decisions. We do display it in sysfs where somebody might read it and assume it is meaningful, so delete it. Signed-off-by: Len Brown commit dea44c6b7df7f8bb67cb059b4c14b24288c4cd04 Author: Len Brown Date: Fri Oct 15 21:23:25 2010 -0400 intel_idle: delete bogus data from cpuidle_state.power_usage The mW data in this field is a total fabrication and serves no purpose other than to mislead those who might see it in sysfs. Delete it. Signed-off-by: Len Brown commit c8381cc3d8a9cc6c80f65bf60863c776651f245c Author: Len Brown Date: Fri Oct 15 20:43:06 2010 -0400 intel_idle: simplify test for leave_mm() A run-time test to invoke leave_mm() for the deepest supported C-state is redundant, since the appropriate C-states already have flags with CPUIDLE_FLAG_TLB_FLUSHED set. Signed-off-by: Len Brown commit 388b2b97ba03242145227821c77791e713d6057b Author: Dan Carpenter Date: Fri Oct 15 21:10:44 2010 +0200 Staging: sst: more copy_to_user() changes Vinod wanted the copy_to_user() calls in this format: if (copy_to_user()) retval = -EFAULT; instead of this: retval = copy_to_user(); if (retval) retval = -EFAULt; I've done that for the whole intel_sst_app_interface.c file. In the process I noticed a couple more places that returned -EBUSY or -EAGAIN instead of -EFAULT. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit 9f407840bb888e683fa844b1b80eec54ced84653 Author: Dan Carpenter Date: Fri Oct 15 22:36:48 2010 +0200 Staging: intel_sst: off by one bug This should be >= instead of > or we go passed the end of the array. Also the arrays are declared with size MAX_NUM_STREAMS. This is the only place that uses MAX_NUM_STREAMS_MFLD. It seems like asking for trouble to use two variables for the same information. I've changed everything to use MAX_NUM_STREAMS. This bug isn't really harmful. In the worst case, if you enabled debugging then you would see a message. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit 87b554a04a0d12f8ff3612b6c2e163e29a34616a Author: Dan Carpenter Date: Fri Oct 15 05:44:07 2010 +0200 Staging: intel_sst: return -EFAULT if copy_to_user() fails copy_to_user() returns the number of bytes remaining to be copied but we want to return an error code. And that error code is -EFAULT not -EIO. Signed-off-by: Dan Carpenter Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 761afb869f649ea23e2dea7bfe9b550d3a1b7631 Author: Rafael J. Wysocki Date: Thu Oct 14 23:24:13 2010 +0200 ACPI / PM: Fix problems with acpi_pm_device_sleep_state() There is a number of problems with acpi_pm_device_sleep_state() now. First, if _S0W is not defined, it prevents devices from being put into D3 by PCI runtime PM, which shouldn't happen. Second, it shouldn't use adev->wakeup.state.enabled, because if it's set, it only means that either the device is permanently enabled to wake up the system, or that it has been enabled to do that through /proc/acpi/wakeup. Finally, it should be compiled if CONFIG_PM_SLEEP is not set, so that PCI runtime PM works correctly in that case. Fix these problems. Reported-by: Matthew Garrett Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown commit c64557d666eb62eb5f296c6b93bd0a5525ed1e36 Merge: 1a63c35 0d91f22 Author: John W. Linville Date: Fri Oct 15 16:11:56 2010 -0400 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem commit 7473fbf4a016301bfa3faa4f81c9a9c978330359 Author: Anders Wallin Date: Thu Sep 23 19:39:04 2010 +0200 PCI: add PCI vendor id for STmicroelectronics Signed-off-by: Anders Wallin Signed-off-by: Jesse Barnes commit 25143fd1270d28782ae0620aa86ef5f8c14030fd Author: Seth Heasley Date: Fri Sep 10 16:36:39 2010 -0700 x86/PCI: irq and pci_ids patch for Intel Patsburg DeviceIDs This patch adds the LPC Controller DeviceIDs for the Intel Patsburg PCH. Signed-off-by: Seth Heasley Signed-off-by: Jesse Barnes commit 80e7b19ae167197e84f378809b8ccddd0f99c1fd Author: Daniel Drake Date: Thu Sep 23 17:28:04 2010 +0100 PCI: OLPC: Only enable PCI configuration type override on XO-1 This configuration type override is for XO-1 only and must not happen on XO-1.5. Acked-by: Andres Salomon Signed-off-by: Daniel Drake Signed-off-by: Jesse Barnes commit 66db60eaf158aa953651d03e43e931e757e87262 Author: Neil Horman Date: Tue Sep 21 13:54:39 2010 -0400 PCI: add quirk for non-symmetric-mode irq routing to versions 0 and 4 of the MCP55 northbridge A long time ago I worked on a RHEL5 bug in which kdump hung during boot on a set of systems. The systems hung because they never received timer interrupts during calibrate_delay. These systems also all had Opteron processors on a hypertransport bus, bridged to a pci bus via an Nvidia MCP55 northbridge chip. After much wrangling I managed to learn from Nvidia that they have an undocumented register in some versions of that chip which control how legacy interrupts are send to the cpu complex when the ioapic isn't active. Nvidia defaults this register to only send legacy interrupts to the BSP, so if kdump happens to boot on an AP, we never get timer interrupts and boom. I had initially used this quirk as a workaround, with my intent being to move apic initalization to an earlier point in the boot process, so the setting of the register would be irrelevant. Given the work involved in doing that however, the fragile nature of the apic initalization code, and the fact that, over the 2 years since we found this bug, the MCP55 is the only chip which seems to have this issue, I've figure at this point its likely safer to just carry the quirk around. By setting the referenced bits in this hidden register, interrupts will be broadcast to all cpus when the ioapic isn't active on the above described systems. Acked-by: Simon Horman Acked-by: Vivek Goyal Signed-off-by: Neil Horman Signed-off-by: Jesse Barnes commit b22c3d82757109fa107ce17ba9484d45273eed05 Author: Rafael J. Wysocki Date: Mon Sep 20 18:50:00 2010 +0200 PCI/PCIe/AER: Disable native AER service if BIOS has precedence There is a design issue related to PCIe AER and _OSC that the BIOS may be asked to grant control of the AER service even if some Hardware Error Source Table (HEST) entries contain information meaning that the BIOS really should control it. Namely, pcie_port_acpi_setup() calls pcie_aer_get_firmware_first() that determines whether or not the AER service should be controlled by the BIOS on the basis of the HEST information for the given PCIe port. The BIOS is asked to grant control of the AER service for a PCIe Root Complex if pcie_aer_get_firmware_first() returns 'false' for at least one root port in that complex, even if all of the other root ports' HEST entries have the FIRMWARE_FIRST flag set (and none of them has the GLOBAL flag set). However, if the AER service is controlled by the kernel, that may interfere with the BIOS' handling of the error sources having the FIRMWARE_FIRST flag. Moreover, there may be PCIe endpoints that have the FIRMWARE_FIRST flag set in HEST and are attached to the root ports in question, in which case it also may be unsafe to ask the BIOS for control of the AER service. For this reason, introduce a function checking if there's at least one PCIe-related HEST entry with the FIRMWARE_FIRST flag set and disable the native AER service altogether if this function returns 'true'. Signed-off-by: Rafael J. Wysocki Signed-off-by: Jesse Barnes commit 42b219322a97ccef347388b233aceaafe3fa517d Author: Stephen Hemminger Date: Thu Sep 2 14:28:51 2010 -0700 PCI: pci_driver make name const The name field in pci_driver should be const, it is not modified by PCI subsystem. Signed-off-by: Stephen Hemminger Signed-off-by: Jesse Barnes commit 5a37f1381f1d8625fa458360c9b5d17f0c5f1dea Author: Thomas Gleixner Date: Tue Sep 7 14:32:38 2010 +0000 PCI hotplug: ibmphp-hpc: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Signed-off-by: Jesse Barnes commit 50c1126ee1990920705a067a6f3f9bb892369b08 Author: Bill Pemberton Date: Tue Aug 3 15:18:43 2010 -0400 PCI: aerdrv: fix uninitialized variable warning quiet the warning about use of uninitialized e_src in aer_isr() e_src is initialized by get_e_source() Signed-off-by: Bill Pemberton Signed-off-by: Jesse Barnes commit 991f739544a0923b70fb69b115edb880ff9fcc4a Author: Arnd Bergmann Date: Sun Jul 4 00:02:28 2010 +0200 PCI: kill BKL in /proc/pci All operations in the pci procfs ioctl functions are atomic, so no lock is needed here. Also add a compat_ioctl method, since all the commands are compatible in 32 bit mode. Signed-off-by: Arnd Bergmann Cc: Jesse Barnes Cc: Tejun Heo Cc: linux-pci@vger.kernel.org Signed-off-by: Jesse Barnes commit 93e75faba3982767d425323aec5726282d3ad7a2 Author: Julia Lawall Date: Thu Aug 5 22:23:16 2010 +0200 PCI: Adjust confusing if indentation in pcie_get_readrq Indent the branch of an if. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r disable braces4@ position p1,p2; statement S1,S2; @@ ( if (...) { ... } | if (...) S1@p1 S2@p2 ) @script:python@ p1 << r.p1; p2 << r.p2; @@ if (p1[0].column == p2[0].column): cocci.print_main("branch",p1) cocci.print_secs("after",p2) // Signed-off-by: Julia Lawall Signed-off-by: Jesse Barnes commit 2decd65a2630633cee04d0b83fdcee46ad2989a1 Author: Jeff Liu Date: Tue Oct 12 11:18:18 2010 +0800 ocfs2: Avoid to evaluate xattr block flags again. It was evaludated to indexed before, check it is ok i think. Signed-off-by: Jeff Liu Signed-off-by: Joel Becker commit fc3718918f13ad72827d62d36ea0f5fb55090644 Merge: 7bdb0d1 d4396ea Author: Joel Becker Date: Fri Oct 15 13:03:09 2010 -0700 Merge branch 'globalheartbeat-2' of git://oss.oracle.com/git/smushran/linux-2.6 into ocfs2-merge-window Conflicts: fs/ocfs2/ocfs2.h commit 1a63c353c856c9f6d44a533afb6ad6dbbcdea683 Merge: 7662ff4 b3c0598 Author: John W. Linville Date: Fri Oct 15 16:00:02 2010 -0400 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth-next-2.6 into for-davem commit 0d91f22b75347d9503b17a42b6c74d3f7750acd6 Author: Julia Lawall Date: Fri Oct 15 15:00:06 2010 +0200 drivers/net/wireless/p54/eeprom.c: Return -ENOMEM on memory allocation failure In this code, 0 is returned on memory allocation failure, even though other failures return -ENOMEM or other similar values. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression ret; expression x,e1,e2,e3; @@ ret = 0 ... when != ret = e1 *x = \(kmalloc\|kcalloc\|kzalloc\)(...) ... when != ret = e2 if (x == NULL) { ... when != ret = e3 return ret; } // Signed-off-by: Julia Lawall Cc: Acked-by: Christian Lamparter Signed-off-by: John W. Linville commit 6cf9e995f91e5bbffb2bef85feef490e5b67605d Author: Ben Greear Date: Thu Oct 14 12:45:30 2010 -0700 ath9k: Null out references to stale pointers. This doesn't fix any problem that I'm aware of, but should make it harder to add use-after-free type bugs in the future. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit c1739eb3e61e160f124bc842c219011916f63068 Author: Ben Greear Date: Thu Oct 14 12:45:29 2010 -0700 ath9k: Remove bf_dmacontext. The bf_dmacontext seems to be totally useless and duplicated by bf_buf_addr. Remove it entirely, use bf_buf_addr in its place. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit 5161bec5a8b3509b8cf69418129a191cf90bbd87 Author: Rafał Miłecki Date: Thu Oct 14 21:16:33 2010 +0200 b43: N-PHY: put 2056-radio's specific code in separated file Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit 886b42bf5e54098061c8bae3d5e292a8b6897401 Author: Luis R. Rodriguez Date: Thu Oct 14 11:44:27 2010 -0700 ath9k_hw: remove AR9003 2.0 support These chipsets will not hit the market, all customers will be on >= AR9003 2.2. This shaves down the ath9k_hw size by 24161 bytes (24 KB) on my system. Before: $ size drivers/net/wireless/ath/ath9k/ath9k_hw.ko text data bss dec hex filename 292328 616 1824 294768 47f70 drivers/net/wireless/ath/ath9k/ath9k_hw.ko $ du -b drivers/net/wireless/ath/ath9k/ath9k_hw.ko 5987825 drivers/net/wireless/ath/ath9k/ath9k_hw.ko After: $ size drivers/net/wireless/ath/ath9k/ath9k_hw.ko text data bss dec hex filename 277192 616 1824 279632 44450 drivers/net/wireless/ath/ath9k/ath9k_hw.ko $ du -b drivers/net/wireless/ath/ath9k/ath9k_hw.ko 5963664 drivers/net/wireless/ath/ath9k/ath9k_hw.ko Cc: Yixiang Li Cc: Don Breslin Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 6db507ff9232cc3874306f7b25b399cb2cdc1675 Author: Rafał Miłecki Date: Thu Oct 14 19:33:36 2010 +0200 b43: N-PHY: put radio-specific code in separated file Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit 5818e989360b06d249cf1d88e7d4601ca70a7322 Author: Rafał Miłecki Date: Thu Oct 14 19:33:35 2010 +0200 b43: N-PHY: fix typo: read table when caching IQ LO calibration (do not write) Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit 204a665ba390bca861ad7b1a061f3ccded0e7eab Author: Rafał Miłecki Date: Thu Oct 14 19:33:34 2010 +0200 b43: N-PHY: replace N-specific radio_chanspec with common code Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit 9ebad4ab87f2ffa6eca825327721e647c7457264 Author: Johannes Berg Date: Thu Oct 14 13:41:35 2010 +0200 radiotap: fix vendor namespace parsing There's a bug with radiotap vendor namespace parsing if you don't register for the given namespace extensions. Fix this by passing only the unknown vendor namespaces and the registered data to frontends, but not both. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 94a40c0c6bcc47ceba12e0247c5a23fb1e6c81e4 Author: Rajkumar Manoharan Date: Thu Oct 14 10:50:26 2010 +0530 ath9k_htc: set probe request rx filter This patch enables to receive probe request frames on p2p client mode. Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit 4f329c043ba3495f0f97ec782948cbba7bd01047 Author: Paul Fox Date: Wed Oct 13 20:14:56 2010 +0100 libertas: Communicate USB transfer errors The return code was being overwritten with -1. Useful for debugging. Signed-off-by: Paul Fox Signed-off-by: Daniel Drake Acked-by: Dan Williams Signed-off-by: John W. Linville commit d4659912b557e9f68c0ad8be14e2cafd3210dd16 Author: Felix Fietkau Date: Thu Oct 14 16:02:39 2010 +0200 ath9k_hw: remove enum wireless_mode and its users The wireless mode bitfield was only used to detect 2.4 and 5 GHz support, which can be simplified by using ATH9K_HW_CAP_* capabilities. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 4e9900180eb72b3b22fc9742999045b11607eb24 Author: Felix Fietkau Date: Wed Oct 13 16:43:27 2010 +0200 ath9k: remove sc->cur_rate_table and sc->cur_rate_mode Set the rate table in the rc module properly based on band and HT capabilities instead, which was already partially done, but not for every mode. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 772d5515635fef5bc7a9d0efee785b58b0181ee5 Author: Felix Fietkau Date: Wed Oct 13 16:43:26 2010 +0200 ath9k: make rate control debugfs stats per station Move them to the same debugfs file that the other rc modules use. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 88eac2dad876a58b9c6a4c4805c3fc27b02c048f Author: Felix Fietkau Date: Tue Oct 12 16:08:03 2010 +0200 ath9k: add missing locking around ath9k_hw_proc_mib_event ath9k_hw_proc_mib_event updates the cycle counters, so it common->cc_lock must be acquired. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 431c74821432a6078d54f08de7cd561f8ef8f1ba Author: Felix Fietkau Date: Tue Oct 12 16:08:02 2010 +0200 ath9k_hw: fix PHY counter overflow handling in ANI v1 PHY counter overflows need to be checked for the old ANI version, because of its use of interrupt based counter overflow reports when the counters exceed the configured thresholds. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit e49f913750bb8745085cc4c547912c330cd3eacb Author: Felix Fietkau Date: Tue Oct 12 16:08:01 2010 +0200 ath9k_hw: fix division by zero in the ANI monitor code The commit "ath9k_hw: remove code duplication in phy error counter handling" split off some duplicate code into a separate function, but did not have a return code for aborting ANI processing based on counter values. This introduced a divide by zero issue. This patch adds the missing return code check in ath9k_hw_ani_monitor Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 898c914a0871ea7e5557b77156d4358c0f15d98a Author: Felix Fietkau Date: Tue Oct 12 14:02:53 2010 +0200 ath9k: do not track cycle counter updates in powersave mode While the chip is in powersave mode, the cycle counter updates do not contain useful values. While the chip is in full sleep, the rx_clear signal stays high, indicating a busy medium. To ensure sane values, update cycle counters before going into powersave, and clear them right after switching back to awake. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit e98cb276819d4c4d6eeaf26ddf627ec8ec9d8f1e Author: Haiyang Zhang Date: Fri Oct 15 10:14:07 2010 -0700 staging: hv: Convert camel cased functions in channel_mgmt.c to lower case Convert camel cased functions in channel_mgmt.c to lower case Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 188963ec75aec892acdaec00c547602a9bcb3209 Author: Haiyang Zhang Date: Fri Oct 15 10:14:06 2010 -0700 staging: hv: Convert camel cased local variable names in channel_mgmt.c to lower case Convert camel cased local variable names in channel_mgmt.c to lower case Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 277997032b353e01f61f059608d69fa644301ebd Author: Haiyang Zhang Date: Fri Oct 15 10:14:05 2010 -0700 staging: hv: Convert camel cased parameter in channel_interface.h to lower case Convert camel cased parameter in channel_interface.h to lower case Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 53e4f1e65636244a14d52dccf7a92e544a54bff1 Author: Haiyang Zhang Date: Fri Oct 15 10:14:04 2010 -0700 staging: hv: Convert camel cased function names in channel_interface.c to lower cases Convert camel cased function names in channel_interface.c to lower cases Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 9de050c420648ef500f18be5b22c35951acce622 Author: Haiyang Zhang Date: Fri Oct 15 10:14:03 2010 -0700 staging: hv: Convert camel cased local variables in channel_interface.c to lower cases Convert camel cased local variables in channel_interface.c to lower cases Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit cc58cbb88569e3ecb9786b3da891e7d019d2cfff Author: Julia Lawall Date: Fri Oct 15 15:00:10 2010 +0200 staging: tidspbridge: Clean up error-handling code In the first hunk, 0 is returned on memory allocation failure, even though other failures return -ENOMEM or other similar values. In the second hunk, there was error handling code that returned without freeing psz_path_name. A simplified version of the semantic match that finds the first problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression ret; expression x,e1,e2,e3; @@ ret = 0 ... when != ret = e1 *x = \(kmalloc\|kcalloc\|kzalloc\)(...) ... when != ret = e2 if (x == NULL) { ... when != ret = e3 return ret; } // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman commit aaf0885c30449d7b40d7cb5b07d6ff64b419c0d1 Author: Marek Belisko Date: Fri Oct 15 09:41:45 2010 +0200 staging: ft1000: Use specific error return code for reg_ft1000_netdev(). Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 78890fdb24e2f61c22a9bf75270e14018bff83c5 Author: Marek Belisko Date: Fri Oct 15 08:57:25 2010 +0200 staging: ft1000: Use specific return error codes. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit dd9b6aa4fd58b3ac39a696e518a09994e687ba72 Author: Marek Belisko Date: Fri Oct 15 08:57:24 2010 +0200 staging: ft1000: Check return value when init net device. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit e18105c128734b1671739ad4d85e216ebec28c61 Author: Chris Metcalf Date: Thu Oct 14 16:50:26 2010 -0400 arch/tile: convert a BUG_ON to BUILD_BUG_ON Inspired by Akinobu Mita's cleanup work. Signed-off-by: Chris Metcalf commit ce7f2a39675ea5e8e27b3f3bb03e5041c7d10412 Author: Chris Metcalf Date: Thu Oct 14 16:48:00 2010 -0400 arch/tile: make ptrace() work properly for TILE-Gx COMPAT mode Previously, we tried to pass 64-bit arguments through the "COMPAT" mode 32-bit syscall API, which turned out not to work well. Now we just use straight 32-bit arguments in COMPAT mode, thus requiring individual registers to be read/written with two syscalls. Of course this is uncommon, since usually all the registers are read or written at once. The restructuring applies to all the tile platforms, but is plausibly better than the original code in any case. Signed-off-by: Chris Metcalf commit e09aee2a525218c428109cd16f871585e696b1f3 Author: Marek Belisko Date: Fri Oct 15 14:13:03 2010 +0200 staging: ft1000: Remove DRVMGS typedef usage. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit c569cac8b69397d8bc80f95bc6edf13ed902e28b Author: Chris Metcalf Date: Thu Oct 14 16:46:22 2010 -0400 arch/tile: support new info op generated by compiler This just syncs the backtracing support in the kernel to the upstream backtrace library. Signed-off-by: Chris Metcalf commit 29507663dfa2590647a1ef66f3652a0cac033eca Author: Chris Metcalf Date: Thu Oct 14 16:39:42 2010 -0400 arch/tile: minor whitespace/naming changes for string support files Our internal process shares memcpy, memset, etc., with libc, and we did some minor tweaking as part of moving from uclibc to glibc, which is now reflected in the kernel versions of these files. There are no semantic changes in this commit, just whitespace (memcpy_32.S now properly uses tabs), naming (memmove.c instead of memmove_32.c, since TILE-Gx shares the file with TILEPro), and a couple of other minor tweaks. Signed-off-by: Chris Metcalf commit 233325b94999d4bb8df227bb39904a57509e4995 Author: Chris Metcalf Date: Thu Oct 14 16:32:41 2010 -0400 arch/tile: enable single-step support for TILE-Gx This is not quite the complete support, since we're not yet shipping intvec_64.S, but it is the support relevant to the set of files we are currently shipping, and makes it easier to track changes between our internal sources and our public GIT repository. Signed-off-by: Chris Metcalf commit a78c942df64ef4cf495fd4d8715e48501bd7f8a4 Author: Chris Metcalf Date: Thu Oct 14 16:23:03 2010 -0400 arch/tile: parameterize system PLs to support KVM port While not a port to KVM (yet), this change modifies the kernel to be able to build either at PL1 or at PL2 with a suitable config switch. Pushing up this change avoids handling branch merge issues going forward with the KVM work. Signed-off-by: Chris Metcalf commit bf65e440e8248f22b2eacf8d47961bb9d52260f7 Author: Chris Metcalf Date: Thu Oct 14 16:00:11 2010 -0400 arch/tile: add Tilera's header as an open-source header This change adds one of the Tilera standard headers to the set of headers shipped with Linux. The header provides methods for programmatically interacting with the Tilera simulator. The current provides inline assembly for the _sim_syscall function, so the declaration and definition previously provided manually in Linux are no longer needed. We now use the standard sim_validate_lines_evicted() method from rather than rolling our own direct call to sim_syscall(). Signed-off-by: Chris Metcalf commit 4fe938c5134fce1f25e1261eef6252fb47634962 Author: Chris Metcalf Date: Thu Oct 14 15:57:59 2010 -0400 arch/tile: Bomb C99 comments to C89 comments in tile's Also, sync the file up the upstream version (an additional #define). Signed-off-by: Chris Metcalf commit b13e39b2f7e7e313e97cd11ee65e5348afe448fb Author: Marek Belisko Date: Fri Oct 15 14:13:02 2010 +0200 staging: ft1000: Remove PSEUDO_HDR typedef usage. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit e27d96dd9cfc62300a4d2ba74b487cc8488ab807 Author: Marek Belisko Date: Fri Oct 15 14:13:01 2010 +0200 staging: ft1000: Remove PROV_RECORD typedef usage. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 151adba757ef15aae46a1638536ab3b2b077efaf Author: Marek Belisko Date: Fri Oct 15 14:13:00 2010 +0200 staging: ft1000: Remove APP_INFO_BLOCK typedef usage. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 369e857e9610c9a2474df8817ab0087de5765f2d Author: Marek Belisko Date: Fri Oct 15 14:12:59 2010 +0200 staging: ft1000: Remove DSPINITMSG typedef usage. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 1b8a30121717c04ecd18a8d5f385530e039d7ac2 Author: Marek Belisko Date: Fri Oct 15 14:12:58 2010 +0200 staging: ft1000: Remove MEDIAMSG typedef usage. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 7dc591159928a0281f946d2b44510ced08f2a13c Author: Marek Belisko Date: Fri Oct 15 10:51:22 2010 +0200 staging: ft1000: Remove unused function ft1000_hbchk() Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 81a2fff67a75d2ade3c0b627c08e07587ac46b76 Author: Dan Carpenter Date: Fri Oct 15 05:44:58 2010 +0200 Staging: intel_sst: cleanup naming a little &sst_drv_ctx->streams[str_id].lock and &stream->lock are the same. The mutex_lock() uses &stream->lock so this makes things consistent and it's nicer to read as well. Signed-off-by: Dan Carpenter Acked-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman commit 1055cc99bd84ff478fa18a1964b2445d551d0bc8 Author: Dan Carpenter Date: Fri Oct 15 05:40:42 2010 +0200 Staging: ft1000-usb: use the correct list head Using pdpram_blk here would cause an oops. We intended to use &freercvpool. Signed-off-by: Dan Carpenter Tested by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 79e7c561aeea958479194e24d711e94615ea2823 Author: Dan Carpenter Date: Fri Oct 15 05:42:35 2010 +0200 Staging: lirc: fix PTR_ERR() check This is a typo. It's supposed to be IS_ERR() here instead of PTR_ERR(). Signed-off-by: Dan Carpenter Acked-by: Jarod Wilson Signed-off-by: Greg Kroah-Hartman commit fcbf77bf872c28ac3f18261a44af91383f0a2f3d Author: Dan Carpenter Date: Fri Oct 15 05:42:00 2010 +0200 Staging: ft1000-usb: fix array overflow The code here is supposed checking if we exited the loop without hitting a break. The problem is that in the error handling "i" is out of bounds and it corrupts memory when we do an info->app_info[i].nRxMsgMiss++. >From the comments, it looks like someone noticed this corruption and updated the code, but didn't totally fix the problem. The correct fix is just to remove nRxMsgMiss++ from the error path. I believe this bug can be triggered remotely. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit 4073f1b6ab9c70d603b194b1bb415b9e742b245f Author: Christopher Brannon Date: Thu Oct 14 19:24:00 2010 -0500 staging: speakup: speakup_dectlk.c: style fixes * Clean this file based on reports from checkpatch.pl. * Replace a function-like macro with an inline function. * Remove an incorrect use of the volatile qualifier. The previously-volatile variable is now always protected by a spinlock. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit c3d5d988207b9581fd9b215abca3662ecc87b5be Author: Christopher Brannon Date: Thu Oct 14 19:23:59 2010 -0500 staging: speakup: speakup_txprt.c: style fixes * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit 0d42cfe4c19a8e287d77b5bc1b33bc89c17caa4e Author: Christopher Brannon Date: Thu Oct 14 19:23:58 2010 -0500 staging: speakup: speakup_spkout.c: style fixes * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit 13f1a041ac02195ef4a84cd34693ed99a45186fb Author: Christopher Brannon Date: Thu Oct 14 19:23:57 2010 -0500 staging: speakup: speakup_soft.c: style fixes * Clean this file based on reports from checkpatch.pl. * Make the file_operations structure const. * Use strict_strtoul instead of simple_strtoul. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit e66c3d84759b84cf4816b252f15b8a023e7bd659 Author: Christopher Brannon Date: Thu Oct 14 19:23:56 2010 -0500 staging: speakup: speakup_ltlk.c: style fixes * Clean this file based on reports from checkpatch.pl. * Remove an unused function-like macro. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit 75d6282d8b2d58b4722e63225f3951e1c9b0ebf8 Author: Christopher Brannon Date: Thu Oct 14 19:23:55 2010 -0500 staging: speakup: speakup_keypc.c: style fixes * Clean this file based on reports from checkpatch.pl. * Eliminate the unused synth_readable macro. * Convert function-like macros to inline functions. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit 9d096afa060935f1ecf04ef2d7534e0b0d94ac9d Author: Christopher Brannon Date: Thu Oct 14 19:23:54 2010 -0500 staging: speakup: speakup_dummy.c: style fixes * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit 2c9e0cb07fc0dffe1377ad00ea79ed3d23588977 Author: Christopher Brannon Date: Thu Oct 14 19:23:53 2010 -0500 staging: speakup: speakup_dtlk.c: style fixes * Clean this file based on reports from checkpatch.pl. * Replace function-like macros with inline functions. * Simplify some boolean expressions. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit 227e18d6b62550dafb822de2f3d673e3791a13e0 Author: Christopher Brannon Date: Thu Oct 14 19:23:52 2010 -0500 staging: speakup: speakup_decpc.c: style fixes * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit 3d4f7eaf6526f82e61b090792d5c28c0eabd2175 Author: Christopher Brannon Date: Thu Oct 14 19:23:51 2010 -0500 staging: speakup: speakup_decext.c: style fixes * Clean this file based on reports from checkpatch.pl. * Replace function-like macros with inline macros. * Eliminate a use of the ternary operator, for readability. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit 64d1e5a0986e612307138db8db1dc2db9bf919f8 Author: Christopher Brannon Date: Thu Oct 14 19:23:50 2010 -0500 staging: speakup: speakup_bns.c: style fixes * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit d1c07c416c53c37ea4800513a6e7bbb13ef9c1e2 Author: Christopher Brannon Date: Thu Oct 14 19:23:49 2010 -0500 staging: speakup: speakup_audptr.c: style fixes * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit f4931441aeb02bc53a1cfe216e7489b3f960f76f Author: Christopher Brannon Date: Thu Oct 14 19:23:48 2010 -0500 staging: speakup: speakup_apollo.c: style fixes * Clean this file based on reports from checkpatch.pl. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit 28ba8677bcbe9c0365b32d6007a344b49c8c1204 Author: Christopher Brannon Date: Thu Oct 14 19:23:47 2010 -0500 staging: speakup: speakup_acntsa.c: style fixes * Clean this file based on reports from checkpatch.pl. * Eliminate an unused function-like macro. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit bf4a4bacb051c278cca819600ecb4ab3f0902f17 Author: Christopher Brannon Date: Thu Oct 14 19:23:46 2010 -0500 staging: speakup: speakup_acntpc.c: style fixes * Clean this file based on reports from checkpatch.pl. * Eliminate the unused synth_readable macro. * Convert function-like macros to inline functions. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman commit 40ffa93791985ab300fd488072e9f37ccf72e88c Author: Thomas Gleixner Date: Fri Oct 15 21:08:14 2010 +0200 x86: Remove stale pmtimer_64.c This file is unused since the apic unification in 2.6.29, but nobody noticed. Signed-off-by: Thomas Gleixner commit d4396eafe402b710a8535137b3bf2abe6c059a15 Author: Sunil Mushran Date: Fri Oct 15 11:57:21 2010 -0700 ocfs2/cluster: Release debugfs file elapsed_time_in_ms An earlier commit forgot to remove a debugfs file, elapsed_time_in_ms. Signed-off-by: Sunil Mushran commit 2f4f26fcf393ef4a44abe10e79c1966e64e86055 Author: Jeff Layton Date: Wed Oct 13 18:50:39 2010 -0400 cifs: eliminate cifs_posix_open_inode_helper cifs: eliminate cifs_posix_open_inode_helper This function is redundant. The only thing it does is set the canCache flags, but those get set in cifs_new_fileinfo anyway. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Acked-by: Dave Kleikamp Signed-off-by: Steve French commit 940b3c7b193ec54141976a8642c00582f423690c Author: Thomas Gleixner Date: Fri Oct 15 19:36:26 2010 +0200 x86: sfi: Make local functions static Signed-off-by: Thomas Gleixner Cc: Len Brown commit 7662ff46b7b3678162ce125903115e4ab0607a2d Author: John Fastabend Date: Fri Oct 15 09:27:38 2010 -0700 ixgbe: DCB: remove DCB check config Remove a DCB check config from DCB configuration we continue to configure DCB even if it fails so don't even bother to check. Plus user space (lldpad) checks this before programming the hw anyways. Worse case is we program some values into the hw that don't make total sense resulting in incorrect bandwidth allocation. Signed-off-by: John Fastabend Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 85caa993d7f218b7c2abcfcb28e212396b6a3313 Author: Steven Rostedt Date: Fri Oct 15 12:09:25 2010 -0400 ftrace: Use objtree for C version of recordmcount The C version of recordmcount is compiled to a binary, which will end up located in the objtree. If the kernel is built with O=path, the srctree will not include the binary recordmcount caller. Cc: Michal Marek Cc: linux-kbuild@vger.kernel.org Signed-off-by: Steven Rostedt commit e5690e0dcffe38fa7b4b6336169a0c518d8a688e Author: Paul Mundt Date: Sat Oct 16 00:51:05 2010 +0900 sh: clkfwk: Fix fault in frequency iterator. When updating the iterator macro an old argument assignment was used on the initial assignment causing a fault on the table rounding. Fix it up. Signed-off-by: Paul Mundt commit 444758636439810f110f86a3042c2dfd3626a9e2 Author: Steven Rostedt Date: Fri Oct 15 11:49:47 2010 -0400 ftrace: Do not process kernel/trace/ftrace.o with C recordmcount program The file kernel/trace/ftrace.c references the mcount() call to convert the mcount() callers to nops. But because it references mcount(), the mcount() address is placed in the relocation table. The C version of recordmcount reads the relocation table of all object files, and it will add all references to mcount to the __mcount_loc table that is used to find the places that call mcount() and change the call to a nop. When recordmcount finds the mcount reference in kernel/trace/ftrace.o, it saves that location even though the code is not a call, but references mcount as data. On boot up, when all calls are converted to nops, the code has a safety check to determine what op code it is actually replacing before it replaces it. If that op code at the address does not match, then a warning is printed and the function tracer is disabled. The reference to mcount in ftrace.c, causes this warning to trigger, since the reference is not a call to mcount(). The ftrace.c file is not compiled with the -pg flag, so no calls to mcount() should be expected. This patch simply makes recordmcount.c skip the kernel/trace/ftrace.c file. This was the same solution used by the perl version of recordmcount. Reported-by: Ingo Molnar Cc: John Reiser Signed-off-by: Steven Rostedt commit 6221ddd0f5e2ddc1d5d928119a2cde033d16f96d Author: Suresh Jayaraman Date: Fri Oct 1 21:23:33 2010 +0530 cifs: handle FindFirst failure gracefully FindFirst failure due to permission errors or any other errors are silently ignored by cifs_readdir(). This could cause problem to applications that depend on the error to do further processing. Reproducer: - mount a cifs share - mkdir tdir;touch tdir/1 tdir/2 tdir/3 - chmod -x tdir - ls tdir Currently, we start calling filldir() for '.' and '..' before we know we whether FindFirst could succeed or not. If FindFirst fails later, there is no way to notify VFS by setting buf.error and so VFS won't be able to catch this. Fix this by moving the call to initiate_cifs_search() before we start doing filldir(). This fixes https://bugzilla.samba.org/show_bug.cgi?id=7535 Reported-by: Tom Dexter Signed-off-by: Suresh Jayaraman Signed-off-by: Steve French commit 4ea6e4ffb4acdaaf9ba7687dbd84ae36e26cef9e Author: Nikolai Kondrashov Date: Wed Sep 15 14:51:14 2010 +0400 HID: add absolute axis resolution calculation Add absolute axis resolution calculation to the core HID layer, according to HID specification v1.11 6.2.2.7 Global Items. Only exponent 1 length units for X/Y/Z/RX/RY/RZ axis are supported for now. Signed-off-by: Nikolai Kondrashov Signed-off-by: Jiri Kosina commit 776c163b1b93c8dfa5edba885bc2bfbc2d228a5f Author: Arnd Bergmann Date: Wed Jul 7 23:10:11 2010 +0200 vfs: make no_llseek the default All file operations now have an explicit .llseek operation pointer, so we can change the default action for future code. This makes changes the default from default_llseek to no_llseek, which always returns -ESPIPE if a user tries to seek on a file without a .llseek operation. The name of the default_llseek function remains unchanged, if anyone thinks we should change it, please speak up. Signed-off-by: Arnd Bergmann Cc: Christoph Hellwig Cc: Al Viro Cc: linux-fsdevel@vger.kernel.org commit ab91261f5c43f196ec7ff1d113847b87b7606b26 Author: Arnd Bergmann Date: Wed Jul 7 22:55:17 2010 +0200 vfs: don't use BKL in default_llseek There are currently 191 users of default_llseek. Nine of these are in device drivers that use the big kernel lock. None of these ever touch file->f_pos outside of llseek or file_pos_write. Consequently, we never rely on the BKL in the default_llseek function and can replace that with i_mutex, which is also used in generic_file_llseek. Signed-off-by: Arnd Bergmann commit 6038f373a3dc1f1c26496e60b6c40b164716f07e Author: Arnd Bergmann Date: Sun Aug 15 18:52:59 2010 +0200 llseek: automatically add .llseek fop All file_operations should get a .llseek operation so we can make nonseekable_open the default for future file operations without a .llseek pointer. The three cases that we can automatically detect are no_llseek, seq_lseek and default_llseek. For cases where we can we can automatically prove that the file offset is always ignored, we use noop_llseek, which maintains the current behavior of not returning an error from a seek. New drivers should normally not use noop_llseek but instead use no_llseek and call nonseekable_open at open time. Existing drivers can be converted to do the same when the maintainer knows for certain that no user code relies on calling seek on the device file. The generated code is often incorrectly indented and right now contains comments that clarify for each added line why a specific variant was chosen. In the version that gets submitted upstream, the comments will be gone and I will manually fix the indentation, because there does not seem to be a way to do that using coccinelle. Some amount of new code is currently sitting in linux-next that should get the same modifications, which I will do at the end of the merge window. Many thanks to Julia Lawall for helping me learn to write a semantic patch that does all this. ===== begin semantic patch ===== // This adds an llseek= method to all file operations, // as a preparation for making no_llseek the default. // // The rules are // - use no_llseek explicitly if we do nonseekable_open // - use seq_lseek for sequential files // - use default_llseek if we know we access f_pos // - use noop_llseek if we know we don't access f_pos, // but we still want to allow users to call lseek // @ open1 exists @ identifier nested_open; @@ nested_open(...) { <+... nonseekable_open(...) ...+> } @ open exists@ identifier open_f; identifier i, f; identifier open1.nested_open; @@ int open_f(struct inode *i, struct file *f) { <+... ( nonseekable_open(...) | nested_open(...) ) ...+> } @ read disable optional_qualifier exists @ identifier read_f; identifier f, p, s, off; type ssize_t, size_t, loff_t; expression E; identifier func; @@ ssize_t read_f(struct file *f, char *p, size_t s, loff_t *off) { <+... ( *off = E | *off += E | func(..., off, ...) | E = *off ) ...+> } @ read_no_fpos disable optional_qualifier exists @ identifier read_f; identifier f, p, s, off; type ssize_t, size_t, loff_t; @@ ssize_t read_f(struct file *f, char *p, size_t s, loff_t *off) { ... when != off } @ write @ identifier write_f; identifier f, p, s, off; type ssize_t, size_t, loff_t; expression E; identifier func; @@ ssize_t write_f(struct file *f, const char *p, size_t s, loff_t *off) { <+... ( *off = E | *off += E | func(..., off, ...) | E = *off ) ...+> } @ write_no_fpos @ identifier write_f; identifier f, p, s, off; type ssize_t, size_t, loff_t; @@ ssize_t write_f(struct file *f, const char *p, size_t s, loff_t *off) { ... when != off } @ fops0 @ identifier fops; @@ struct file_operations fops = { ... }; @ has_llseek depends on fops0 @ identifier fops0.fops; identifier llseek_f; @@ struct file_operations fops = { ... .llseek = llseek_f, ... }; @ has_read depends on fops0 @ identifier fops0.fops; identifier read_f; @@ struct file_operations fops = { ... .read = read_f, ... }; @ has_write depends on fops0 @ identifier fops0.fops; identifier write_f; @@ struct file_operations fops = { ... .write = write_f, ... }; @ has_open depends on fops0 @ identifier fops0.fops; identifier open_f; @@ struct file_operations fops = { ... .open = open_f, ... }; // use no_llseek if we call nonseekable_open //////////////////////////////////////////// @ nonseekable1 depends on !has_llseek && has_open @ identifier fops0.fops; identifier nso ~= "nonseekable_open"; @@ struct file_operations fops = { ... .open = nso, ... +.llseek = no_llseek, /* nonseekable */ }; @ nonseekable2 depends on !has_llseek @ identifier fops0.fops; identifier open.open_f; @@ struct file_operations fops = { ... .open = open_f, ... +.llseek = no_llseek, /* open uses nonseekable */ }; // use seq_lseek for sequential files ///////////////////////////////////// @ seq depends on !has_llseek @ identifier fops0.fops; identifier sr ~= "seq_read"; @@ struct file_operations fops = { ... .read = sr, ... +.llseek = seq_lseek, /* we have seq_read */ }; // use default_llseek if there is a readdir /////////////////////////////////////////// @ fops1 depends on !has_llseek && !nonseekable1 && !nonseekable2 && !seq @ identifier fops0.fops; identifier readdir_e; @@ // any other fop is used that changes pos struct file_operations fops = { ... .readdir = readdir_e, ... +.llseek = default_llseek, /* readdir is present */ }; // use default_llseek if at least one of read/write touches f_pos ///////////////////////////////////////////////////////////////// @ fops2 depends on !fops1 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @ identifier fops0.fops; identifier read.read_f; @@ // read fops use offset struct file_operations fops = { ... .read = read_f, ... +.llseek = default_llseek, /* read accesses f_pos */ }; @ fops3 depends on !fops1 && !fops2 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @ identifier fops0.fops; identifier write.write_f; @@ // write fops use offset struct file_operations fops = { ... .write = write_f, ... + .llseek = default_llseek, /* write accesses f_pos */ }; // Use noop_llseek if neither read nor write accesses f_pos /////////////////////////////////////////////////////////// @ fops4 depends on !fops1 && !fops2 && !fops3 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @ identifier fops0.fops; identifier read_no_fpos.read_f; identifier write_no_fpos.write_f; @@ // write fops use offset struct file_operations fops = { ... .write = write_f, .read = read_f, ... +.llseek = noop_llseek, /* read and write both use no f_pos */ }; @ depends on has_write && !has_read && !fops1 && !fops2 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @ identifier fops0.fops; identifier write_no_fpos.write_f; @@ struct file_operations fops = { ... .write = write_f, ... +.llseek = noop_llseek, /* write uses no f_pos */ }; @ depends on has_read && !has_write && !fops1 && !fops2 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @ identifier fops0.fops; identifier read_no_fpos.read_f; @@ struct file_operations fops = { ... .read = read_f, ... +.llseek = noop_llseek, /* read uses no f_pos */ }; @ depends on !has_read && !has_write && !fops1 && !fops2 && !has_llseek && !nonseekable1 && !nonseekable2 && !seq @ identifier fops0.fops; @@ struct file_operations fops = { ... +.llseek = noop_llseek, /* no read or write fn */ }; ===== End semantic patch ===== Signed-off-by: Arnd Bergmann Cc: Julia Lawall Cc: Christoph Hellwig commit 495d2b3883682fcd1c3dee3a45e38fd00154ae25 Author: Martin K. Petersen Date: Fri Oct 15 15:49:20 2010 +0200 block: Make the integrity mapped property a bio flag Previously we tracked whether the integrity metadata had been remapped using a request flag. This was fine for low-level retries. However, if an I/O was redriven by upper layers we would end up remapping again, causing the retry to fail. Deprecate the REQ_INTEGRITY flag and introduce BIO_MAPPED_INTEGRITY which enables filesystems to notify lower layers that the bio in question has already been remapped. Signed-off-by: Martin K. Petersen Signed-off-by: Jens Axboe commit e817bf3f68f55e7307c3e9abe5f32d0c05c83988 Author: Martin K. Petersen Date: Fri Oct 15 15:49:18 2010 +0200 block: Fix double free in blk_integrity_unregister Commit 3839e4b introduced a kobject_put but failed to remove the kmem_cache_free beneath it, leading to a double free. Signed-off-by: Martin K. Petersen Signed-off-by: Jens Axboe commit 46bf36ecec79bbe5373ef68f0ed36cbf62e03482 Author: Christoph Hellwig Date: Fri Oct 15 05:45:00 2010 -0700 hfsplus: fix getxattr return value We need to support -EOPNOTSUPP for attributes that are not supported to match other filesystems and allow userspace to detect if Posix ACLs are supported or not. setxattr already gets this right. Signed-off-by: Christoph Hellwig commit a5360df9413987ed56ce8cffad678e557eff92e1 Author: Wolfram Sang Date: Fri Oct 15 14:18:21 2010 +0200 pcmcia/yenta: guide users in case of problems with O2-bridges Some cards need the speedups on, some need them off. As we can't detect this reliably, at least give the users a hint how to tweak the system. Reported-by: David Bluecame Signed-off-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 5dbfe7aedf54aa7f62fd659e34371d4ea0e7bffe Author: Lars Ellenberg Date: Fri Oct 15 09:52:46 2010 +0200 drbd: add race-breaker to drbd_go_diskless This adds a necessary race breaker to these commits: drbd: fix for possible deadlock on IO error during resync drbd: drop wrong debug asserts, fix recently introduced race What we do is get a refcount, check the state, then depending on the state and the requested minimum disk state, either hold it (success), or give it back immediately (failed "try lock"). Some code paths (flushing of drbd metadata) may still grab and hold a refcount even if we are D_FAILED (application IO won't). So even if we hit local_cnt == 0 once after being D_FAILED, we still need to wait for that again after we changed to D_DISKLESS. Once local_cnt reaches 0 while we are D_DISKLESS, we can be sure that no one will look at the protected members anymore, so only then is it safe to free them. We cannot easily convert to standard locking primitives here, as we want to be able to use it in atomic context (we always do a "try lock"), as well as hold references for a "long time" (from IO submission to completion callback). Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit c6c049ecbccd61fae2e58fe5e2fdd369d87f3716 Author: Magnus Damm Date: Thu Oct 14 06:57:25 2010 +0000 ARM: mach-shmobile: add TMU platform data for sh7372 This patch adds support for the two first channels of the TMU0 timer block on sh7372. One channel is used for clock event, the other for clock source. Signed-off-by: Magnus Damm Tested-by: Kuninori Morimoto Signed-off-by: Paul Mundt commit 630f2d445f922c9dcf1bb54ffde78685e2c63072 Author: Guennadi Liakhovetski Date: Fri Oct 15 08:58:00 2010 +0200 fbdev: sh_mobile_hdmi: fix compilation without SOUND enabled At least two more Kconfig options have to be selected to be able to compile sh_mobile_hdmi. Signed-off-by: Guennadi Liakhovetski Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit e65d255a5a610ce9e185e0df855250706aca7c21 Author: Peter Hsiang Date: Wed Oct 13 20:30:43 2010 -0700 ASoC: Add max98088 CODEC driver This patch adds the MAX98088 CODEC driver. Signed-off-by: Peter Hsiang Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit d42a280dc76c04f39d1f9a374cf5c23318c49004 Author: Mika Westerberg Date: Thu Oct 14 17:49:08 2010 +0300 ASoC: ep93xx: add Simplemachines Sim.One AC97 audio support Add AC97 audio support for Simplemachines Sim.One board. Signed-off-by: Mika Westerberg Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 534bc7fa3c0a9084e7a2db33898d92577c64e4eb Author: Mika Westerberg Date: Thu Oct 14 17:49:07 2010 +0300 ARM: ep93xx: add AC97 platform support Add platform support for the EP93xx AC97 controller driver. Signed-off-by: Mika Westerberg Acked-by: H Hartley Sweeten Acked-by: Ryan Mallon Signed-off-by: Mark Brown commit aa7e1b84c6d424264bab8c29b14ebbc906488853 Author: Mika Westerberg Date: Thu Oct 14 17:49:06 2010 +0300 ASoC: add ep93xx AC97 audio driver Add support for AC97 controllers found in Cirrus Logic EP93xx family SoCs. Signed-off-by: Mika Westerberg Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit a34712391a66260e442a9ab1eb7edb22a2d0ca3c Author: Kuninori Morimoto Date: Fri Oct 15 14:23:18 2010 +0900 ASoC: ak4642: make sure name of register/value This patch replace magic code with defined name, and remove unnecessary settings which set default value Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit c14c05c19f2a2ab87b8ebabd245f53945a97695b Author: Joe Perches Date: Wed Oct 13 08:19:51 2010 -0700 ASoC: Remove unused vol field from WM8994 access mask table Remove unused vol from struct access_mask Reduces object size ~3kb. $ size sound/soc/codecs/wm8994.o* text data bss dec hex filename 40727 4384 4480 49591 c1b7 sound/soc/codecs/wm8994.o.new 43879 4384 4480 52743 ce07 sound/soc/codecs/wm8994.o.old Signed-off-by: Joe Perches Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit b47fad3bfb5940cc3e28a1c69716f6dc44e4b7e6 Author: Robert Richter Date: Wed Sep 22 17:45:39 2010 +0200 oprofile, x86: Add support for IBS periodic op counter extension The count value for IBS op sampling has been extended by 7 bits. The feature is reflected in bit 6 (OpCntExt) of the IBS capability register (CPUID Fn8000_001B_EAX). Signed-off-by: Robert Richter commit 25da6950475becb35d7a3bb3b5fbdc715a76887e Author: Robert Richter Date: Tue Sep 21 15:49:31 2010 +0200 oprofile, x86: Add support for IBS branch target address reporting This patch adds support for IBS branch target address reporting. A new MSR (MSRC001_103B IBS Branch Target Address) has been added that provides the logical address in canonical form for the branch target. The size of the IBS sample that is transferred to the userland has been increased. For backward compatibility, the userland daemon must explicit enable the feature by writing to the oprofilefs file ibs_op/branch_target After enabling branch target address reporting, the userland daemon must handle the extended size of the IBS sample. Signed-off-by: Robert Richter commit 53b39e9480ef8a286cef9899c455a979acd0eed9 Author: Robert Richter Date: Tue Sep 21 17:58:15 2010 +0200 oprofile, x86: Introduce struct ibs_state This patch introduces struct ibs_state that will extended by additinal members in follow-on patches. Signed-off-by: Robert Richter commit fc889aa23f4767c1c3f77fce11e17bb0a638971f Author: Robert Richter Date: Tue Sep 21 18:09:00 2010 +0200 oprofile, x86: Remove duplicate check for IBS_CAPS_OPCNT Since oprofile is setting up ibs_op/dispatched_ops in the fs only if the feature is available, its corresponding variable ibs_config.dispatched_ops is only set, if the feature is available. Thus the check is duplicate and can be removed. Signed-off-by: Robert Richter commit 4ac945f002c0bebdeb530cbc3729e22895e64a7e Author: Robert Richter Date: Tue Sep 21 15:58:32 2010 +0200 oprofile, x86: Check IBS capability bits 1 and 2 There are IBS CPUID feature flags in CPUID Fn8000_001B to detect if the cpu supports IBS fetch sampling (FetchSam) and/or IBS execution sampling (OpSam). This patch adds checks if the both features are available. Spec: http://support.amd.com/us/Processor_TechDocs/31116.pdf Signed-off-by: Robert Richter commit e63414740e15b4e2dc54c63fb9ea501b257fb0b5 Author: Robert Richter Date: Thu Aug 26 12:30:17 2010 +0200 oprofile, x86: Add support for AMD family 14h This patch adds support for AMD family 14h (Ontario/Zacate) cpus. Signed-off-by: Robert Richter commit 3acbf0849bcbb639fde53dc627e3b55a4c6429d2 Author: Robert Richter Date: Tue Aug 31 10:44:17 2010 +0200 oprofile, x86: Add support for AMD family 12h This patch adds support for AMD family 12h (Llano) cpus. Signed-off-by: Robert Richter commit cd254f295248c98b62ea824f361e10d80a081fe7 Author: Robert Richter Date: Fri Oct 15 11:28:07 2010 +0200 oprofile: make !CONFIG_PM function stubs static inline Make !CONFIG_PM function stubs static inline and remove section attribute. Signed-off-by: Robert Richter commit b3b3a9b63f2deacfd59137e3781211d21a568ca9 Author: Anand Gadiyar Date: Thu Oct 14 11:31:42 2010 -0400 oprofile: fix linker errors Commit e9677b3ce (oprofile, ARM: Use oprofile_arch_exit() to cleanup on failure) caused oprofile_perf_exit to be called in the cleanup path of oprofile_perf_init. The __exit tag for oprofile_perf_exit should therefore be dropped. The same has to be done for exit_driverfs as well, as this function is called from oprofile_perf_exit. Else, we get the following two linker errors. LD .tmp_vmlinux1 `oprofile_perf_exit' referenced in section `.init.text' of arch/arm/oprofile/built-in.o: defined in discarded section `.exit.text' of arch/arm/oprofile/built-in.o make: *** [.tmp_vmlinux1] Error 1 LD .tmp_vmlinux1 `exit_driverfs' referenced in section `.text' of arch/arm/oprofile/built-in.o: defined in discarded section `.exit.text' of arch/arm/oprofile/built-in.o make: *** [.tmp_vmlinux1] Error 1 Signed-off-by: Anand Gadiyar Cc: Will Deacon Signed-off-by: Robert Richter commit 277dd984172b063497d2ff6cfa7f2355f13a292d Author: Anand Gadiyar Date: Thu Oct 14 11:31:43 2010 -0400 oprofile: include platform_device.h to fix build break oprofile_perf.c needs to include platform_device.h Otherwise we get the following build break. CC arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.o arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:192: warning: 'struct platform_device' declared inside parameter list arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:192: warning: its scope is only this definition or declaration, which is probably not what you want arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:201: warning: 'struct platform_device' declared inside parameter list arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:210: error: variable 'oprofile_driver' has initializer but incomplete type arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:211: error: unknown field 'driver' specified in initializer arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:211: error: extra brace group at end of initializer arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:211: error: (near initialization for 'oprofile_driver') arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:213: warning: excess elements in struct initializer arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:213: warning: (near initialization for 'oprofile_driver') arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:214: error: unknown field 'resume' specified in initializer arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:214: warning: excess elements in struct initializer arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:214: warning: (near initialization for 'oprofile_driver') arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:215: error: unknown field 'suspend' specified in initializer arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:215: warning: excess elements in struct initializer arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c:215: warning: (near initialization for 'oprofile_driver') arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.c: In function 'init_driverfs': Signed-off-by: Anand Gadiyar Cc: Matt Fleming Cc: Will Deacon Signed-off-by: Robert Richter commit 6268464b370e234e0255330190f9bd5d19386ad7 Merge: 7df01d9 0fdf136 Author: Robert Richter Date: Fri Oct 15 12:45:00 2010 +0200 Merge remote branch 'tip/perf/core' into oprofile/core Conflicts: arch/arm/oprofile/common.c kernel/perf_event.c commit 93193c2bbcd83bf8bf43433cfb1868d4ca0ac351 Author: Kuninori Morimoto Date: Tue Oct 12 19:19:28 2010 +0900 ASoC: fsi: simultaneous playback/recorde support Current FSI driver had not cared about simultaneous playback/capture on same port. This patch add new fsi_stream struct to care it, Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit b67089e4c258a3a4ea8e23ceea4a5b7f8c3099d7 Author: Seungwhan Youn Date: Tue Oct 12 20:58:52 2010 +0900 ASoC: SAMSUNG: Add Machine driver for S/PDIF PCM audio This patch add S/PDIF machine driver to support S/PDIF PCM audio on SMDKC100, SMDKC110 and SMDKV210 boards. Signed-off-by: Seungwhan Youn Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit fc127ccccc5de164d490e8a55a1c2c126293e96f Author: Seungwhan Youn Date: Tue Oct 12 20:51:23 2010 +0900 ASoC: SAMSUNG: Add S/PDIF CPU driver This patch adds S/PDIF CPU driver for various Samsung SoCs. Signed-off-by: Seungwhan Youn Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit f1198d1ea1c1fe7a0d619c5cf7049efe6205e527 Author: Guennadi Liakhovetski Date: Fri Oct 15 07:54:04 2010 +0000 fbdev: sh_mobile_hdmi: add support for the "video=" kernel command line option Add support for specifying video modes on the kernel command line. Mode selection priorities are also changed such, that only exact matches of specified modes with monitor modes from EDID are accepted, at least in width and height. If none found - fall back to framebuffer default setting, if available. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 6031f347389c84066a3ecb55e98782a63e2d7589 Author: Guennadi Liakhovetski Date: Fri Oct 15 07:54:00 2010 +0000 fbdev: sh_mobile_lcdc: relax .check_var() HSYNC test Some valid and supported video modes have .hsync_len > 120. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 402f33154ee12de80fafa7f780d338d90cecbb5f Author: Guennadi Liakhovetski Date: Fri Oct 15 07:53:56 2010 +0000 ARM: mach-shmobile: remove videomodes from ap4evb platform data Now that HDMI videomodes have become optional, they can be safely removed from ap4evb platform data, since anyway 720p seems to be the best supported mode. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit c44f9f76d26c3b5158c65201d30e96393efe2fbd Author: Guennadi Liakhovetski Date: Fri Oct 15 07:53:52 2010 +0000 fbdev: sh_mobile_lcdc: make platform videomode table optional Add a default 720p mode to the sh_mobile_lcdc driver to be used, when no videomode is specified in the platform data. This can be used, e.g., with HDMI. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 69ce8aa4925a54de192cf64e99abd294586c1984 Author: Kuninori Morimoto Date: Fri Oct 15 05:15:05 2010 +0000 ARM: mach-shmobile: clock-sh7372: FSI parent select support Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt commit 685e4080c62b4b5c6f67c7b088e416e98d06f7e6 Author: Kuninori Morimoto Date: Fri Oct 15 05:14:54 2010 +0000 ARM: mach-shmobile: clock-sh7372: add sh7372_ prefix to global clocks This patch also registered global extal clocks to sh7372.h Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt commit 8e122db61c98debbc35e26dd29504958cbcf2cbb Author: Paul Mundt Date: Fri Oct 15 18:33:24 2010 +0900 sh: clkfwk: Add a helper for rate rounding by divisor ranges. This adds a new clk_rate_div_range_round() for implementing rate rounding by divisor ranges. This can be used trivially by clocks that support arbitrary ranged divisors without the need for rate table construction. This should only be used by clocks that both have large divisor ranges in addition to clocks that will never be arbitrarily scaled, as the lack of a backing frequency table will prevent cpufreq from being able to do much of anything with them. Primarily intended for use as a ->recalc helper. Signed-off-by: Paul Mundt commit f586903d27e2503a3e7d427b3d665bbaf1b7f4d4 Author: Paul Mundt Date: Fri Oct 15 18:17:35 2010 +0900 sh: clkfwk: Abstract rate rounding helper. Presently the only assisted rate rounding is frequency table backed, but there are cases where it's impractical to use a frequency table for certain clocks (such as the FSIDIV case, which supports 65535 divisors), and we wish to reuse the same rate rounding algorithm. This breaks out the core of the rate rounding logic in to its own helper routine and shuffles the frequency table logic around, switching to using an iterator for the generic helper routine. Signed-off-by: Paul Mundt commit ac7241211ded714873e8dc6d2f7c98ae7ea2cc30 Author: Lars Ellenberg Date: Thu Oct 7 15:18:08 2010 +0200 drbd: use dynamic_dev_dbg to optionally log uuid changes Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit be70e2671b95a8982ff133ebaafff6399ad393d4 Author: Philipp Reisner Date: Thu Oct 14 11:58:20 2010 +0200 dynamic_debug.h: Fix dynamic_dev_dbg() macro if CONFIG_DYNAMIC_DEBUG not set Signed-off-by: Philipp Reisner commit 28085bc5de19cad365bcff98e9c8785c397c7c36 Author: Paul Mundt Date: Fri Oct 15 16:46:37 2010 +0900 sh: clkfwk: support clock remapping. This implements support for ioremapping of register windows that encapsulate clock control registers used by a struct clk, with transparent sibling inheritance. Root clocks at the top of a given topology often encapsulate the entire register space of all of their sibling clocks, so this mapping can be done once and handed down. A given clock enable/disable case maps out to a single bit in a shared register, so this prevents creating multiple overlapping mappings. The mapping case breaks down in to a couple of different situations: - Sibling clocks without a specific mapping. - Root clocks without a specific mapping. - Any of sibling/root clocks with a specific mapping. Sibling clocks with no specified mapping will grovel up the clock chain and install the root clock mapping unconditionally at registration time. Root clocks without their own mappings have a dummy BSS-initialized mapping inserted that is handed down the chain just like any other mapping. This permits all of the sibling clock ops to read/write using the mapping offsets without any special configuration, enabling them to not care whether access ultimately goes through translatable or untranslatable memory. Any clock with its own mapping will have the window initialized at registration time and be ready for use by its clock ops. Failure to establish the mapping will prevent registration, so no additional sanity checks are needed. Sibling clocks that double as parents for the moment will not propagate their mapping down, but this is easily tunable if the need arises. All clock mappings are kref refcounted, with each instance of mapping inheritance incrementing the refcount. Tested-by: Kuninori Morimoto Signed-off-by: Paul Mundt commit 9e9006e9090dc1f88d5127cb69f416013e7ecd60 Author: Randy Dunlap Date: Thu Oct 14 10:13:13 2010 -0700 x86, olpc: XO-1 uses/depends on PCI olpc-xo1 uses pci_*() interfaces so it should depend on PCI. Otherwise we get build failure like: arch/x86/kernel/olpc-xo1.c:65: error: implicit declaration of function 'pci_enable_device_io' arch/x86/kernel/olpc-xo1.c:71: error: implicit declaration of function 'pci_request_region' arch/x86/kernel/olpc-xo1.c:80: error: implicit declaration of function 'pci_release_region' Signed-off-by: Randy Dunlap Acked-by: Daniel Drake Cc: Stephen Rothwell LKML-Reference: <20101014101313.adf7eb2a.randy.dunlap@oracle.com> Signed-off-by: Ingo Molnar commit 0fdf13606b67f830559abdaad15980c7f4f05ec4 Merge: d9d572a cf4db25 Author: Ingo Molnar Date: Fri Oct 15 06:12:28 2010 +0200 Merge branch 'tip/perf/recordmcount-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core commit cf4db2597ae93b60efc0a7a4ec08690b75d629b1 Author: Steven Rostedt Date: Thu Oct 14 23:32:44 2010 -0400 ftrace: Rename config option HAVE_C_MCOUNT_RECORD to HAVE_C_RECORDMCOUNT The config option used by archs to let the build system know that the C version of the recordmcount works for said arch is currently called HAVE_C_MCOUNT_RECORD which enables BUILD_C_RECORDMCOUNT. To be more consistent with the name that all archs may use, it has been renamed to HAVE_C_RECORDMCOUNT. This will be less confusing since we are building a C recordmcount and not a mcount_record. Suggested-by: Ingo Molnar Cc: Cc: Michal Marek Cc: linux-kbuild@vger.kernel.org Cc: John Reiser Signed-off-by: Steven Rostedt commit d9d572a9c0195486e3baf0d8d6a710196a707335 Merge: 3cba11d ebc8827 Author: Ingo Molnar Date: Fri Oct 15 05:12:45 2010 +0200 Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into perf/core commit 6a1c9dfe4186f18fed38421b35b40fb9260cbfe1 Merge: e0dc09f 2989b72 Author: Benjamin Herrenschmidt Date: Fri Oct 15 10:45:03 2010 +1100 Merge remote branch 'jwb/next' into next commit a80be1680502f99de5f9565c491208e90a9a3afe Author: Paul Mundt Date: Fri Oct 15 06:15:56 2010 +0900 sh: pci: Convert to upper/lower_32_bits() helpers. Instead of hand-rolling our own, just use the generic ones instead. Signed-off-by: Paul Mundt commit c28d5077f8d79bfce1e3f88db2e261cf2b6473dc Author: Steven Rostedt Date: Wed Oct 13 19:06:14 2010 -0400 ftrace: Remove duplicate code for 64 and 32 bit in recordmcount.c The elf reader for recordmcount.c had duplicate functions for both 32 bit and 64 bit elf handling. This was due to the need of using the 32 and 64 bit elf structures. This patch consolidates the two by using macros to define the 32 and 64 bit names in a recordmcount.h file, and then by just defining a RECORD_MCOUNT_64 macro and including recordmcount.h twice we create the funtions for both the 32 bit version as well as the 64 bit version using one code source. Cc: John Reiser Signed-off-by: Steven Rostedt commit 72441cb1fd77d092f09ddfac748955703884c9a7 Author: Steven Rostedt Date: Wed Oct 13 17:12:30 2010 -0400 ftrace/x86: Add support for C version of recordmcount This patch adds the support for the C version of recordmcount and compile times show ~ 12% improvement. After verifying this works, other archs can add: HAVE_C_MCOUNT_RECORD in its Kconfig and it will use the C version of recordmcount instead of the perl version. Cc: Cc: Michal Marek Cc: linux-kbuild@vger.kernel.org Cc: John Reiser Signed-off-by: Steven Rostedt commit 2c184cd393d1410bb43ac656a6480849fe886b1d Author: Timur Tabi Date: Thu Oct 7 09:36:43 2010 +0000 powerpc/85xx: add DIU support to the Freecale P1022DS reference board The Freescale P1022DS has an on-chip video controller called the DIU, and a driver for this device already exists. Update the platform file for the P1022DS reference board to enable the driver, and update the defconfig for Freescale MPC85xx boards to add the driver. [Edited to resolve header add/add conflict and drop #define DEBUG. -- broonie] Signed-off-by: Timur Tabi Acked-by: Kumar Gala Signed-off-by: Mark Brown commit 81d3858d3131a589cade0d8b57f95cc1fc699b89 Author: John Reiser Date: Wed Oct 13 15:12:54 2010 -0400 ftrace: Add C version of recordmcount compile time code Currently, the mcount callers are found with a perl script that does an objdump on every file in the kernel. This is a C version of that same code which should increase the performance time of compiling the kernel with dynamic ftrace enabled. Signed-off-by: John Reiser [ Updated the code to include .text.unlikely section as well as changing the format to follow Linux coding style. ] Signed-off-by: Steven Rostedt commit 0db710230589b5571c23f59250eabc9504b17c98 Author: Jaroslav Kysela Date: Thu Oct 14 21:46:12 2010 +0200 ALSA: snd-aloop - fix issue in the timer start function In some circumstances (the rate shift value was changed), the irq_pos value may be higher than the fraction value in the timer start function. Check for it. Also, to avoid value overflow, decrease maximum period size. Signed-off-by: Jaroslav Kysela commit ff7f5aab354dee01f29c9c00933f6d4aa590eadb Author: Eli Cohen Date: Thu Aug 26 14:17:56 2010 +0000 IB/pack: IBoE UD packet packing support Add support for packing IBoE packet headers. Signed-off-by: Eli Cohen [ Clean up and fix ib_ud_header_init() a bit. - Roland ] Signed-off-by: Roland Dreier commit 73f12e8d3d94828b9efe2b8b8a34b4ad6d14ee47 Author: Pavan Savoy Date: Tue Oct 12 16:27:38 2010 -0400 drivers: misc: ti-st: fix review comments Based on comments from Jiri Slaby, drop the register storage specifier, remove the unused code, cleanup the const to non-const type casting. Also make the line discipline ops structure static, since its a singleton, unmodified structure which need not be in heap. Reported-by: Jiri Slaby Signed-off-by: Pavan Savoy Signed-off-by: Greg Kroah-Hartman commit da6830ac3969c9480e05ed2b21eee64e21a101d2 Author: mike.rapoport@gmail.com Date: Wed Oct 13 00:09:13 2010 +0200 staging: brcm80211: remove unrefrenced malloced field from 'struct osl_info' structure Signed-off-by: Mike Rapoport Signed-off-by: Greg Kroah-Hartman commit 182acb3ca59ba2d31485f7225177c069cebdc161 Author: mike.rapoport@gmail.com Date: Wed Oct 13 00:09:12 2010 +0200 staging: brcm80211: replace MFREE with kfree Signed-off-by: Mike Rapoport Signed-off-by: Greg Kroah-Hartman commit 199d217c52dcc961dfd5928e5cbc32cc8a9140d9 Author: mike.rapoport@gmail.com Date: Wed Oct 13 00:09:11 2010 +0200 staging: brcm80211: remove unused NATIVE_{MALLOC,MFREE} Signed-off-by: Mike Rapoport Signed-off-by: Greg Kroah-Hartman commit 5fcc1fcb2ec18094b3a8022b1974c0b2e9f5f73c Author: mike.rapoport@gmail.com Date: Wed Oct 13 00:09:10 2010 +0200 staging: brcm80211: replace MALLOC() with k[zm]alloc Signed-off-by: Mike Rapoport Signed-off-by: Greg Kroah-Hartman commit 97e17d0e7bb861c197e50433325bf2f5f9871f90 Author: mike.rapoport@gmail.com Date: Wed Oct 13 00:09:09 2010 +0200 staging: brcm80211: remove osl_malloced()/MALLOCED() because there are other means to track memory leaks in kernel Signed-off-by: Mike Rapoport Signed-off-by: Greg Kroah-Hartman commit 6a92fdf1b923fa5b6d6dd08a7bba80fb3d9e5eaf Author: mike.rapoport@gmail.com Date: Wed Oct 13 00:09:08 2010 +0200 staging: brcm80211: remove DHD_USE_STATIC_BUF The DHD_USE_STATIC_BUF cannot be enabled in the build configuration, remove it. Signed-off-by: Mike Rapoport Signed-off-by: Greg Kroah-Hartman commit 6ddcfdcf919463469496132731671ebb5f9908e9 Author: Greg Kroah-Hartman Date: Thu Oct 14 12:26:08 2010 -0700 Staging: brcm80211: fix up compiler warnings I created I messed up on some of the uintptr conversions, this fixes them up properly. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 7383141b0334c0ff670c5c8c3e5f5540229e4ac6 Author: mike.rapoport@gmail.com Date: Wed Oct 13 00:09:07 2010 +0200 staging: brcm80211: remove OSL_DELAY and use udelay and mdelay instead Signed-off-by: Mike Rapoport Signed-off-by: Greg Kroah-Hartman commit 5dc56c9f4c91caa58f4be6603cca4623610c4ad5 Author: nohee ko Date: Wed Oct 13 14:26:52 2010 -0700 staging: brcm80211: brcmfmac: bug fix - scan result report Scan result was reported with some duplicated information. Those were about SSID/ rate. With this patch, the duplication can be erased. Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 7356f429d24e7ad97c0dec77b0777d5892c7657d Author: nohee ko Date: Wed Oct 13 14:24:25 2010 -0700 staging: brcm80211: brcmfmac: replace KILL_PROC with send_sig() logic optimization : replace KILL_PROC with send_sig() Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 4c71ebf4da809dd1379bbadfbc2683b77ecd932f Author: Brett Rudley Date: Tue Oct 12 15:01:58 2010 -0700 staging: brcm80211: Purge unused bcmwpa.[ch] Move two macros into wlc_mac80211.h and purge the rest. Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit dabe98c972091818762e02841ab1f982e573e7d0 Author: Chris Metcalf Date: Thu Oct 14 15:19:04 2010 -0400 arch/tile: prevent corrupt top frame from causing backtracer runaway The backtracer will normally cut itself off after 100 frames anyway, but it's messy. With this change we notice that the frame being reported is the same as the last one, and cut off the dump with a message similar to what gdb displays in the same circumstance. Signed-off-by: Chris Metcalf commit 45123f7e74e004848da765f3182cd401a38d354d Author: Chris Metcalf Date: Thu Oct 14 15:16:59 2010 -0400 arch/tile: various top-level Makefile cleanups Avoid a compile failure if CONFIG_DEBUG_EXTRA_FLAGS is empty (""); provide an "install" hook as well as a matching archhelp target; and some minor whitespace cleanup. Signed-off-by: Chris Metcalf commit a4dbc5ee52e8741522a2f87067b80116c6c7a934 Author: Chris Metcalf Date: Thu Oct 14 15:14:29 2010 -0400 arch/tile: change lower bound on syscall error return to -4095 Previously we were using -1023, which is fine for normal syscall error returns, but the common value in use for other platforms is -4095, and one Tilera-specific driver does use values in the -1100 range, so tickled this bug. Signed-off-by: Chris Metcalf commit 0a652b96287ef61c97a2acab2bcc3d0f319b50e4 Author: Randy Dunlap Date: Wed Oct 13 13:10:49 2010 -0700 staging: speakup: fix printk format warning Fix printk format warning: drivers/staging/speakup/serialio.c:44: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int' Signed-off-by: Randy Dunlap Cc: Signed-off-by: Greg Kroah-Hartman commit 6566961fcb651e6081aff9eabf4362d1b3821482 Author: Bernhard Walle Date: Wed Oct 13 18:38:38 2010 +0200 staging: octeon: Remove USB code Remove functions and definitions that refer to USB since the driver doesn't support USB and it's not planned to add USB support to that driver. So the code is just dead code which can be removed. Cc: David Daney Signed-off-by: Bernhard Walle Signed-off-by: Greg Kroah-Hartman commit 13c9d5a6309763a494f7c3ed5aa45fb473985fd7 Author: Chris Metcalf Date: Thu Oct 14 15:12:55 2010 -0400 arch/tile: properly export __mb_incoherent for modules Signed-off-by: Chris Metcalf commit 310bad04ec123dd79c58dfe43063d6ba4f52d934 Author: Marek Belisko Date: Thu Oct 14 13:36:11 2010 +0200 staging: ft1000: Use specific error return value. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit f9d173736b4419cb87a18c200b79ed5828bc3880 Author: Marek Belisko Date: Thu Oct 14 14:14:33 2010 +0200 staging: ft1000: Get rid of using atoi. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 83cb1926e0f55d0fd4d3064d1b9bef56bac7fe85 Author: Alan Cox Date: Thu Oct 14 16:59:53 2010 +0100 staging: sst: Remove the aava bits We don't need these special cases any more. Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 88eea8de94b09207421b75b0029d50727a1dff38 Author: Vinod Koul Date: Thu Oct 14 16:59:38 2010 +0100 staging: sst: remove the kernel locking in ioctl kernel locking in ioctl was introduced when ioctl function was moved from ioctl to unlocked ioctl This is no longer required hence removed Signed-off-by: Vinod Koul Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit 6e2c2dcfa4c30532bf9e66a1d0f42a7342283f4c Author: Marek Belisko Date: Thu Oct 14 11:41:00 2010 +0200 staging: ft1000: remove dead code. was #ifdef so remove code which was under #else to make code more readable. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 47873d331cb94d63780644b1e5e0d331c2f2e634 Author: Marek Belisko Date: Thu Oct 14 11:40:59 2010 +0200 staging: ft1000: correct indentations for ft1000_usb.c file. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 3d97ca7f3672732ac8ffe567a33873303d2c6741 Author: Marek Belisko Date: Thu Oct 14 11:40:58 2010 +0200 staging: ft1000: replace and remove c99 comments. Comments for probe, disconnect, init and exit functions removed completely (functions names are self explaining). Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit c6f2c47b16845ce7e65f13aa14983a6505975173 Author: Marek Belisko Date: Thu Oct 14 11:40:57 2010 +0200 staging: ft1000: lines over 80 characters corrected. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 0f570d8c5e004903555f738f8b7bdecf6aa48ee3 Author: Marek Belisko Date: Thu Oct 14 11:40:56 2010 +0200 staging: ft1000: various checkpatch.pl fixes. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 2a28f6cb74c23ee3ccc0dce249d5fba509fd94ca Author: Michael Hennerich Date: Thu Oct 14 10:17:18 2010 +0200 staging: iio: ad7476: fix !CONFIG_IIO_RING_BUFFER build issue reported by Randy Dunlap Fix function function decalration Enable CONFIG_IIO_RING_BUFFER for the ad7476 driver Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit bbacff94d0c38163ef01361de006797c92e69e58 Author: Chris Metcalf Date: Thu Oct 14 15:09:02 2010 -0400 arch/tile: provide a definition of MAP_STACK It's convenient for userspace (in particular, glibc) to find a definition of MAP_STACK. We use MAP_GROWSDOWN as an alias since that's appropriate for the main stack, and since our current allocation of mmap flags bits is running a bit short otherwise. Signed-off-by: Chris Metcalf commit 6b945df74233386aab526cddd3593ed4b854f574 Author: Chris Metcalf Date: Thu Oct 14 14:54:47 2010 -0400 kmemleak: add TILE to the list of supported architectures. All the necessary functionality was already there; we just need to make it possible to select the config option. Signed-off-by: Chris Metcalf commit 6496a5c9e7ccc4e2ec34c09d04a819f8fdc29981 Author: Vasiliy Kulikov Date: Sun Sep 12 22:57:14 2010 +0400 char: hvc: check for error case hvc_alloc() may fail, if so exit from init() with error. Signed-off-by: Vasiliy Kulikov Signed-off-by: Chris Metcalf commit 77d233036ea886398770f208aa22235acf0d011c Author: Chris Metcalf Date: Thu Oct 14 14:47:35 2010 -0400 arch/tile: Add a warning if we try to allocate too much vmalloc memory. Signed-off-by: Chris Metcalf commit ebc8827f75954fe315492883eee5cb3f355d547d Author: Frederic Weisbecker Date: Mon Sep 27 18:50:51 2010 +0200 x86: Barf when vmalloc and kmemcheck faults happen in NMI In x86, faults exit by executing the iret instruction, which then reenables NMIs if we faulted in NMI context. Then if a fault happens in NMI, another NMI can nest after the fault exits. But we don't yet support nested NMIs because we have only one NMI stack. To prevent from that, check that vmalloc and kmemcheck faults don't happen in this context. Most of the other kernel faults in NMIs can be more easily spotted by finding explicit copy_from,to_user() calls on review. Signed-off-by: Frederic Weisbecker Cc: Ingo Molnar Cc: Thomas Gleixner Cc: H. Peter Anvin Cc: Mathieu Desnoyers Cc: Peter Zijlstra commit d6f0f22c3c409f9ed88e64f881f8308730be76f0 Author: Chris Metcalf Date: Thu Oct 14 14:42:58 2010 -0400 arch/tile: update some comments to clarify register usage. Signed-off-by: Chris Metcalf commit 5592840ba83c281b4df45345863b224bb290020c Author: Chris Metcalf Date: Mon Sep 13 08:50:09 2010 -0400 arch/tile: use better "punctuation" for VMSPLIT_3_5G and friends Signed-off-by: Chris Metcalf commit d929b6aeaacbe78cbfef4a80e3eed1bf0464d984 Author: Chris Metcalf Date: Thu Oct 14 14:34:33 2010 -0400 arch/tile: Use With this change we now include into the "tile" version of the header. To take full advantage of the prototypes there, we also change our naming convention for "struct pt_regs *" syscalls so that, e.g., _sys_execve() is the "true" syscall entry, which sets the appropriate register to point to the pt_regs before calling sys_execve(). While doing this I realized I no longer needed the fork and vfork entry point stubs, since those functions aren't in the generic syscall ABI, so I removed them as well. Signed-off-by: Chris Metcalf commit 5d0d28824c76409f0d1a645bf0ae81318c8ffa42 Author: Shirish Pargaonkar Date: Wed Oct 13 18:15:00 2010 -0500 NTLM authentication and signing - Calculate auth response per smb session Start calculation auth response within a session. Move/Add pertinet data structures like session key, server challenge and ntlmv2_hash in a session structure. We should do the calculations within a session before copying session key and response over to server data structures because a session setup can fail. Only after a very first smb session succeeds, it copies/makes its session key, session key of smb connection. This key stays with the smb connection throughout its life. Signed-off-by: Shirish Pargaonkar Reviewed-by: Jeff Layton Signed-off-by: Steve French commit cd2638a86c7b90e77ce623c09de2a26177f2a5c1 Author: Carolyn Wyborny Date: Tue Oct 12 22:27:02 2010 +0000 igb: add check for fiber/serdes devices to igb_set_spd_dplx; Signed-off-by: Carolyn Wyborny Tested-by: Emil Tantilov Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 5d5b7c39cfdc459c079ed75b65a537f40ffb82da Author: Emil Tantilov Date: Tue Oct 12 22:20:59 2010 +0000 ixgbe: declare functions as static Following patch fixes warnings reported by `make namespacecheck` Reported by Stephen Hemminger CC: Stephen Hemminger Signed-off-by: Emil Tantilov Tested-by: Stephen Ko Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit f32f837b75233588cd4f8542214a30915ab7847b Author: Emil Tantilov Date: Tue Oct 12 22:20:34 2010 +0000 ixgbe: remove unused functions Remove functions that are declared, but not used in the driver. This patch fixes warnings reported by `make namespacecheck` Reported by Stephen Hemminger CC: Stephen Hemminger Signed-off-by: Emil Tantilov Tested-by: Stephen Ko Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit ee87a82a28cddbb9267a294172ecb3d3d3bdaa6c Author: Michael Chan Date: Wed Oct 13 14:06:51 2010 +0000 cnic: Add support for 57712 device Add new interrupt ack functions and other hardware interface logic to support the new device. Update version to 2.2.6. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit a3ceeeb8f11d74f26e3dfca40ded911a82402db5 Author: Michael Chan Date: Wed Oct 13 14:06:50 2010 +0000 cnic: Decouple uio close from cnic shutdown During cnic shutdown, the original driver code requires userspace to close the uio device within a few seconds. This doesn't always happen as the userapp may be hung or otherwise take a long time to close. The system may crash when this happens. We fix the problem by decoupling the uio structures from the cnic structures during cnic shutdown. We do not unregister the uio device until the cnic driver is unloaded. This eliminates the unreliable wait loop for uio to close. All uio structures are kept in a linked list. If the device is shutdown and later brought back up again, the uio strcture will be found in the linked list and coupled back to the cnic structures. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit cd801536c236e287f1d3eeee428abf9ffd523ede Author: Michael Chan Date: Wed Oct 13 14:06:49 2010 +0000 cnic: Add cnic_uio_dev struct and put all uio related structures and ring buffers in it. This allows uio operations to be done independent of the cnic device structures. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit c06c0462250a5dbc9e58d00caab4cd7e6675128c Author: Michael Chan Date: Wed Oct 13 14:06:48 2010 +0000 cnic: Add cnic_free_uio() to free all UIO related structures. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit fdf24086f4752aee5dfb40143c736250df017820 Author: Michael Chan Date: Wed Oct 13 14:06:47 2010 +0000 cnic: Defer iscsi connection cleanup The bnx2x devices require a 2 second quiet time before sending the last RAMROD command to destroy a connection. This sleep wait adds up to a long delay when iscsid is serially destroying maultiple connections. Create a workqueue to perform the final connection cleanup in the background to speed up the process. This significantly speeds up the process as the wait time can be done in parallel for multiple connections. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit a2c9e769dbb92336ddacba01d399ad0f509e7094 Author: Michael Chan Date: Wed Oct 13 14:06:46 2010 +0000 cnic: Add cnic_bnx2x_destroy_ramrod() Refactoring code for the next patch to defer connection clean up. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 6e0dda0c467d6c66d64c146170ea35399ec34c15 Author: Michael Chan Date: Wed Oct 13 14:06:45 2010 +0000 cnic: Convert ctx_flags to bit fields so that we can additional bit definitions without requiring a spinlock. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 6e0dc64384298b29ac17de7362b7d6d2ef588304 Author: Michael Chan Date: Wed Oct 13 14:06:44 2010 +0000 cnic: Add common cnic_request_irq() to reduce some duplicate code. Also, use tasklet_kill() in cnic_free_irq() to wait for the cnic_irq_task to complete. Signed-off-by: Michael Chan Signed-off-by: David S. Miller commit 2265769531afe267f864111c103b04b4427720b6 Author: Dan Carpenter Date: Thu Aug 12 00:38:45 2010 +0200 drbd: cleanup: change "<= 0" to "== 0" dt is unsigned so it's never less than zero. We are calculating the elapsed time, and that's never less than zero (unless there is a bug or we invent time travel). The comparison here is just to guard against divide by zero bugs. Signed-off-by: Dan Carpenter Signed-off-by: Philipp Reisner commit ca0e6098aad127a555ba29d12e0503dbb1577aac Author: Lars Ellenberg Date: Thu Oct 14 15:01:21 2010 +0200 drbd: relax the grace period of the md_sync timer again Consolidate the ifdef's for the debug level, accidentally the used both DEBUG and DRBD_DEBUG_MD_SYNC. Default to off. For production, we can safely reduce the grace period for this timer again the the value we used to have. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit d8d6b902b8a3b2c66151529694bb4a9a3555cf43 Author: Paul Mundt Date: Fri Oct 15 02:13:04 2010 +0900 sh: mach-sdk7786: Add support for the FPGA SRAM. This ties in the 2KiB of FPGA SRAM in to the generic SRAM pool. Signed-off-by: Paul Mundt commit c993487ec87ba6d9ea47b03dad562123d503f4a2 Author: Paul Mundt Date: Fri Oct 15 02:09:00 2010 +0900 sh: Provide a generic SRAM pool for tiny memories. This sets up a generic SRAM pool for CPUs and platform code to insert their otherwise unused memories into. A simple alloc/free interface is provided (lifed from avr32) for generic code. This only applies to tiny SRAMs that are otherwise unmanaged, and does not take in to account the more complex SRAMs sitting behind transfer engines, or that employ an I/D split. Signed-off-by: Paul Mundt commit 856c50c7b616d50e1a3ccd4ce35f7814650fa594 Author: Lars Ellenberg Date: Thu Oct 14 13:37:40 2010 +0200 drbd: add some more explicit drbd_md_sync It sometimes may take a while for the after state change work to be scheduled, which does drbd_md_sync. At convenient places, we should do explicit drbd_md_sync to have the new state information on disk as soon as possible. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 9d282875d85ebc2b49362310677fc0dcd91b9db9 Author: Lars Ellenberg Date: Thu Oct 14 13:57:07 2010 +0200 drbd: drop wrong debug asserts, fix recently introduced race commit 2372c38caadeaebc68a5ee190782c2a0df01edc3 drbd: fix for possible deadlock on IO error during resync introduced a new ASSERT, which turns out to be wrong. Drop it. Also serialize the state change to D_DISKLESS with the after state change work of the -> D_FAILED transition, don't open a new race. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 3be63ff0ae196b371728ba8fc8aca12eafcae218 Author: Wey-Yi Guy Date: Fri Oct 8 16:05:19 2010 -0700 iwlwifi: move agn only eeprom functions to separate file Some of the functions in iwl-eeprom.c file are for agn devices only, Those functions do not have to be part of iwlcore.ko, so move those to iwl-agn-eeprom.c file. Signed-off-by: Wey-Yi Guy commit 40bbfd4c1b336b8841bef9933b6e09252ace56b8 Author: Johannes Berg Date: Thu Oct 7 04:00:33 2010 -0700 iwlagn: check beacon frame size When the beacon_skb is NULL, we might still attempt to use it in this code path (if we ever get here) -- make the code a bit more defensive and check the return value of iwl_fill_beacon_frame() against zero. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 657e11a47dede79cae1d2f72084f6f7303aec725 Author: Johannes Berg Date: Thu Oct 7 03:52:35 2010 -0700 iwlwifi: blink LED in IBSS mode We recently found that contrary to expectations, the LED is not blinking in IBSS mode. Fix this. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit dacefedb34e538e9934556ffe5eaad177e7a9718 Author: Johannes Berg Date: Thu Oct 7 04:02:03 2010 -0700 iwlwifi: rewrite RXON checks The RXON checking is a bit magical, and prints out too much information if something goes wrong. Make it less magical and print out only the items that were actually wrong. Also remove the comment about removing it -- the driver is constantly changing so these checks are useful. Signed-off-by: Johannes Berg commit 34f5a70c08530bb0b4724991a712a0ef6bbec39a Author: Wey-Yi Guy Date: Wed Oct 6 13:46:11 2010 -0700 iwlagn: 6050 ops should be used; For 6050 series of devices, 6050 ops should be used; One of the 6050 config still use 6000 ops, fix it. Signed-off-by: Wey-Yi Guy commit 77834543a5278b55df6c2784cd5ed59970be3c44 Author: Johannes Berg Date: Mon Oct 4 05:50:36 2010 -0700 iwlwifi: clean up some beacon handling There's no need to check for NULL before calling dev_kfree_skb() since it is valid to call it on NULL -- it becomes a no-op. There's also no need to initialise the beacon_skb variable to NULL just after the memory it is in has been kzalloc'ed. Some minor whitespace cleanups, and a lock assertion in a function that needs the mutex (to access the beacon_skb var) complete the patch. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 12e934dc602fafba946b33587c38077ebceb3698 Author: Johannes Berg Date: Mon Oct 4 05:50:06 2010 -0700 iwlwifi: rename ibss_beacon variable Since we're also going to support AP (GO) mode, the variable isn't used for just IBSS beacons any more -- rename it to not mislead readers. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 085fbca29d7b4574c4e42189ee5789004e4beff7 Author: Johannes Berg Date: Mon Oct 4 05:47:23 2010 -0700 iwlwifi: allow probe-after-rx on 2.4 GHz There are two passive 2.4 GHz channels: 12 and 13. If you have a hidden SSID on those, you will not be able to connect to it because we don't send out probe requests there. We can allow this by using the firmware's probe-after-rx functionality on those channels as well. This fixes https://bugzilla.kernel.org/show_bug.cgi?id=16462 Reported-by: Daniel J Blueman Tested-by: Daniel J Blueman Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit de05ead8f8649788603afc470eb1c2ea2b8b1655 Author: Wey-Yi Guy Date: Thu Sep 23 15:24:22 2010 -0700 iwlgn: need longer tx queue stuck timer for coex devices For BT/WiFi combo devices, need longer tx stuck queue timer, so those devices won't reload firmware too often. Signed-off-by: Wey-Yi Guy commit 0f8488e1608b6e30e705460f8110888c645f7f9f Author: Lars Ellenberg Date: Wed Oct 13 18:19:23 2010 +0200 drbd: cleanup useless leftover warn/error printk's Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 13d42685bec1f012dcbc5d187490eb1d15ec8219 Author: Lars Ellenberg Date: Wed Oct 13 17:37:54 2010 +0200 drbd: add explicit drbd_md_sync to drbd_resync_finished As we usually update the generation UUIDs here, we should explicitly sync them to disk. So far this has been done only implicitly by related code paths. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit b18b37befb37810ce50e1a9b0a6206dfe363d827 Author: Philipp Reisner Date: Wed Oct 13 15:32:44 2010 +0200 drbd: Do not log an ASSERT for P_OV_REQUEST packets while C_CONNECTED This might happen if on the VERIFY_S node the disk gets dropped. Although this is an cluster wide state transition, the VERIFY_T node, updates it connection state first. Then the ack packet for the cluster wide state transition travels back, and the VERIFY_S node stops to produce the P_OV_REQUEST packets. There is absolutely nothing wrong with that. Further, do not log "Can not satisfy peer's..." on the VERIFY_S node in this case, but pretend that they had equal checksum. [Bugz 327] Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit e9e6f3ec535d7b7c9e2ca64ad691e743e7d3c2f0 Author: Lars Ellenberg Date: Tue Sep 14 20:26:27 2010 +0200 drbd: fix for possible deadlock on IO error during resync Scenario: Something (say, flush-147:0) is in drbd_al_begin_io, holding a local_cnt, waiting for the resync to make progress. Disk fails, worker in after_state_ch does drbd_rs_cancel_all, then waits for local_cnt to drop to zero. flush-147:0 is woken by drbd_rs_cancel_all, needs to write an AL transaction, and queues that on the worker. Deadlock. Fix: do not wait in the worker, have put_ldev() trigger the state change D_FAILED -> D_DISKLESS when necessary. put_ldev() cannot do the state change directly, as it may or may not already hold various spinlocks. We queue a short work instead. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 22cc37a943832c948808884604ec6f5ff2594c1d Author: Lars Ellenberg Date: Tue Sep 14 20:40:41 2010 +0200 drbd: fix unlikely access after free and list corruption Various cleanup paths have been incomplete, for the very unlikely case that we cannot allocate enough bios from process context when submitting on behalf of the peer or resync process. Never observed. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit af85e8e83d160f72a10e4467852646ac08614260 Author: Lars Ellenberg Date: Thu Oct 7 16:07:55 2010 +0200 drbd: fix for spurious fullsync (uuids rotated too fast) If it was an "empty" resync, the SyncSource may have already "finished" the resync and rotated the UUIDs, before noticing the connection loss (and generating a new uuid, if Primary, rotating again), while the SyncTarget did not change its uuids at all, or only got to the previous sync-uuid. This would then again lead to a full sync on next handshake (see also Bug #251). Fix: Use explicit resync finished notification even for empty resyncs, do not finish an empty resync implicitly on the SyncSource. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit e9ef7bb6f9696471ddddf0065afac8b435e5d051 Author: Lars Ellenberg Date: Thu Oct 7 15:55:39 2010 +0200 drbd: allow for explicit resync-finished notifications Preparation patch so more drbd_send_state() usage on the peer will not confuse drbd in receive_state(). Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 4ac4aadacb5badc45679cd94cd362132daafe8c4 Author: Lars Ellenberg Date: Thu Jul 22 17:39:26 2010 +0200 drbd: preparation commit, using full state in receive_state() no functional change, just using full state instead of just the .conn part of it for comparisons. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 2b2bf2148fd46874ee72a877c951e5c6675d1caa Author: Lars Ellenberg Date: Wed Oct 6 11:46:55 2010 +0200 drbd: drbd_send_ack_dp must not rely on header information drbd commit 17c854fea474a5eb3cfa12e4fb019e46debbc4ec drbd: receiving of big packets, for payloads between 64kByte and 4GByte introduced a new on-the-wire packet header format. We must no longer assume either format, but use the result of whatever drbd_recv_header has decoded. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 004352fa60345e499379af310de73a2df1a5762a Author: Lars Ellenberg Date: Tue Oct 5 20:13:58 2010 +0200 drbd: Fix regression in recv_bm_rle_bits (compressed bitmap) We used to be16_to_cpu the length field in our received packet header. drbd commit 17c854fea474a5eb3cfa12e4fb019e46debbc4ec drbd: receiving of big packets, for payloads between 64kByte and 4GByte changed this, but forgot to adjust a few places where we relied on h->length being in native byte order. This broke the receiving side of the RLE compressed bitmap exchange. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit f10f262349762c96ab247b6108af3a30b52b6f5a Author: Philipp Reisner Date: Tue Oct 5 16:50:17 2010 +0200 drbd: Fixed a stupid copy and paste error This caused rs_planed to be not in sync with the content of the fifo. That in turn could cause that the resync comes to a complete halt. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 00b425377d60e67e86721d4ce6d7cbf131a5d0fd Author: Philipp Reisner Date: Tue Oct 5 11:19:39 2010 +0200 drbd: Allow larger values for c-fill-target. Connections through a compressing proxy might have more bits on the fly. 500MByte instead of 50MByte Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit f65363cfa05fe60874030461a0eeb84b7e60cba4 Author: Lars Ellenberg Date: Tue Sep 14 20:14:09 2010 +0200 drbd: fix possible access after free If we release the page pointed to by md_io_tmpp, we need to zero out the pointer, too, as that may be used later to decide whether we need to allocate a new page again. Impact: a previously freed page may be used and clobbered. Depending on what that particular page is being used for meanwhile, this may result in silent data corruption of completely unrelated things. Only of concern on devices with logical_block_size != 512 byte, if you re-attach after becoming diskless once. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 8979d9c9e0bc8e54cf5bd7a89abb2145f087b5e1 Author: Lars Ellenberg Date: Tue Sep 14 15:56:29 2010 +0200 drbd: protocol compatibility for maximum packet sizes Two missing corner cases to the "maximum packet size" handshake. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit fb22c402ffdf61dd121795b5809de587185d5240 Author: Philipp Reisner Date: Wed Sep 8 23:20:21 2010 +0200 drbd: Track the reasons to suspend IO in dedicated state bits There are three ways to get IO suspended: * Loss of any access to data * Fence-peer-handler running * User requested to suspend IO Track those in different bits, so that one condition clearing its state bit does not interfere with the other two conditions. Only when the user resumes IO he overrules all three bits. The fact is hidden from the user, he sees only a single suspend bit. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 78db89287ce0f146a1f2a019a0b243ea4557caac Author: Lars Ellenberg Date: Mon Sep 13 13:27:10 2010 +0200 drbd: DIV_ROUND_UP not needed here Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 5a75cc7cfbb98e896232902214432dae30653dfe Author: Philipp Reisner Date: Thu Sep 9 14:22:21 2010 +0200 drbd: Fixed compatibility with protocol versions smaller than 95 Forgot to consider the max size for the resync requests. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit f2906e183f5460df9d9e774f5952f5ff670b3913 Author: Lars Ellenberg Date: Wed Jul 21 17:04:32 2010 +0200 drbd: fix for spurious full sync (becoming sync target looked like invalidate) If a synctarget lost connection while being WFSyncUUID, due to "state sanitizing", the attempted state change to SyncTarget looked like an "invalidate" to after_state_ch() later, thus caused a full sync on next handshake (Bug #318). drbd0: PingAck did not arrive in time. drbd0: peer( Primary -> Unknown ) conn( WFSyncUUID -> NetworkFailure ) pdsk( UpToDate -> DUnknown ) from : { cs:NetworkFailure ro:Secondary/Unknown ds:UpToDate/DUnknown r--- } to : { cs:SyncTarget ro:Secondary/Unknown ds:Inconsistent/DUnknown r--- } after sanizising, resulted in state: { cs:NetworkFailure ro:Secondary/Unknown ds:Inconsistent/DUnknown r--- } drbd0: disk( UpToDate -> Inconsistent ) Fix: don't mask state transition errors in "sanitizing", so the requested state change to SyncTarget fails, instead of being implicitly "remaped" to invalidate. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 02bc7174ae83617b4364dc179d95d848d9fd6db5 Author: Lars Ellenberg Date: Mon Sep 6 12:13:20 2010 +0200 drbd: cosmetic, don't report resync for online-verify Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit a821cc4a9a8d9e67356f9a5cfc1206aa3cfd30f7 Author: Lars Ellenberg Date: Mon Sep 6 12:31:37 2010 +0200 drbd: fix spurious protocol error If we cannot satisfy a request (because our disk just broke), we still need to drain the payload. Or we'll get a protocol error when interpreting the payload as DRBD packet header. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 1d53f09e170e477de67babd7a10e277479260d51 Author: Lars Ellenberg Date: Sun Sep 5 01:13:24 2010 +0200 drbd: fix potential kernel BUG (NULL deref) BUG trace would look like: lc_find drbd_rs_complete_io got_OVResult drbd_asender Could be triggered by explicit, or IO-error policy based, detach during online-verify. We may only dereference mdev->resync, if we first get_ldev(), as the disk may break any time, causing mdev->resync to disappear once all ldev references have been returned. Already in flight online-verify requests or replies may still come in, which we then need to ignore. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 435f07402b3165b90592073bc0f8c6f8fa160ff9 Author: Lars Ellenberg Date: Mon Sep 6 12:30:25 2010 +0200 drbd: don't count sendpage()d pages only referenced by tcp as in use Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 76d2e7eca8e7675c6d7a6592f9e747b121cc8a87 Author: Philipp Reisner Date: Wed Aug 25 11:58:05 2010 +0200 drbd: Adding support for BIO/Request flags: REQ_FUA, REQ_FLUSH and REQ_DISCARD Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 1090c056c5eb6d5335cceb381683e77ac24c71ab Author: Lars Ellenberg Date: Mon Jul 19 17:41:04 2010 +0200 drbd: drbd_md_sync before calling user space helpers Just in case we have some pending meta data changes to sync, do it before we call our userland helper, as that may take some time, or even cause a hard reboot. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit ee15b038164fcf19b798021762dee3cf5cbc6433 Author: Lars Ellenberg Date: Fri Sep 3 10:00:09 2010 +0200 drbd: fix race on meta-data update, addendum addendum to baa33ae4eaa4477b60af7c434c0ddd1d182c1ae7 The race: drbd_md_sync() if (!test_and_clear_bit(MD_DIRTY, &mdev->flags)) return; ==> RACE with drbd_md_mark_dirty() rearming the timer. del_timer(&mdev->md_sync_timer); Fixed by moving the del_timer before the test_and_clear_bit. Additionally only rearm the timer in drbd_md_mark_dirty, if MD_DIRTY was not already set, reduce the grace period from five to one second, and add an ifdef'ed debuging aid to find code paths missing an explicit drbd_md_sync, if any, as those are the only relevant ones for this race. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 63106d3c6c769b6219bd04edde513b12abae3f61 Author: Philipp Reisner Date: Wed Sep 1 15:47:15 2010 +0200 drbd: Removed a race that could cause unexpected execution of w_make_resync_request() The actual race happened int the drbd_start_resync() function. Where drbd_resync_finished() -> __drbd_set_state() set STOP_SYNC_TIMER and armed the timer. If the timer fired before execution reaches the mod_timer statement at the end of drbd_start_resync() the latter would cause an unexpected call to w_make_resync_request(). Removed the STOP_SYNC_TIMER bit, and base it on the connection state. The STOP_SYNC_TIMER bit probably originates probably the time before the state engine. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit ef50a3e34f93a067ada541346be3175e924331a2 Author: Lars Ellenberg Date: Wed Sep 1 14:39:30 2010 +0200 drbd: implicitly create unconfigured devices on sync-after dependencies If pacemaker (for example) decided to initialize minor devices not in the exact sync-after dependency order, the configuration partially failed with an error "The sync-after minor number is invalid". (Bugz. #322) We can avoid that by implicitly creating unconfigured minor devices, if others depend on them. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 3f3a9b849d2b703934c07fa17f5eac2dc37c1f6b Author: Lars Ellenberg Date: Wed Sep 1 15:12:12 2010 +0200 drbd: fix race on meta-data update The race: drbd_md_mark_dirty() drbd_md_sync() if (!test_and_clear_bit(MD_DIRTY, &mdev->flags)) return; drbd_md_sync_page_io(mdev, mdev->ldev, sector, WRITE) ==> RACE clear_bit(MD_DIRTY, &mdev->flags); <== spurious Fixed by removing the spurious clear_bit. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit c518d04fdec3d8b9d6f8b2228040934de9ee6708 Author: Lars Ellenberg Date: Wed Sep 1 09:50:23 2010 +0200 drbd: fix race between deconfiguring and reconfiguring network If a drbd_nl_net_conf hits the small window between the state change to C_STANDALONE and the corresponding cleanup in after_state_ch, that cleanup would throw away stuff we now need again, and later trigger BUG_ON()s. Fixed by properly serializing the new config request with any pending cleanup. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 0778286a133d2d3f81861a4e5db308e359583006 Author: Philipp Reisner Date: Tue Aug 31 12:00:50 2010 +0200 drbd: Disable activity log updates when the whole device is out of sync When the complete device is marked as out of sync, we can disable updates of the on disk AL. Currently AL updates are only disabled if one uses the "invalidate-remote" command on an unconnected, primary device, or when at attach time all bits in the bitmap are set. As of now, AL updated do not get disabled when a all bits becomes set due to application writes to an unconnected DRBD device. While this is a missing feature, it is not considered important, and might get added later. BTW, after initializing a "one legged" DRBD device drbdadm create-md resX drbdadm -- --force primary resX AL updates also get disabled, until the first connect. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit d53733893dc43f4ebb5be510863c5debf0f8990b Author: Philipp Reisner Date: Mon Aug 23 15:18:33 2010 +0200 drbd: Actually allow BIOs up to 128k (was 32k). Now we have multiple BIOs per ee, packets with a 32 bit length field, it gets time to use these goodies. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 02918be2273a6b086292e0d85b740336eda46e36 Author: Philipp Reisner Date: Fri Aug 20 14:35:10 2010 +0200 drbd: receiving of big packets, for payloads between 64kByte and 4GByte Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 0b70a13dac014ec9274640b9e945bde493ba365e Author: Philipp Reisner Date: Fri Aug 20 13:36:10 2010 +0200 drbd: Sending of big packets, for payloads from 64KByte to 4GByte Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 204bba9965c4cc175bf5bc65ddd19889e9085c72 Author: Philipp Reisner Date: Mon Aug 23 16:17:13 2010 +0200 drbd: Bugfix for regression introduced with f9bc8913c06022e If we intent to use the block_id member of an epoch entry, we may not use the digest member. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 48acf8689847c061bd82c808c379f1bd79dfe407 Author: Philipp Reisner Date: Mon Aug 23 15:51:56 2010 +0200 drbd: Microfix: Assigning sector once is sufficient Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 0f0601f4ea2f53cfd8bcae060fb03d9bbde070ec Author: Lars Ellenberg Date: Wed Aug 11 23:40:24 2010 +0200 drbd: new configuration parameter c-min-rate We now track the data rate of locally submitted resync related requests, and can thus detect non-resync activity on the lower level device. If the current sync rate is above c-min-rate, and the lower level device appears to be busy, we throttle the resyncer. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 80a40e439e5a3f30b0a6210a1add6d7c33392e54 Author: Lars Ellenberg Date: Wed Aug 11 23:28:00 2010 +0200 drbd: reduce code duplication when receiving data requests also canonicalize the return values of read_for_csum and drbd_rs_begin_io to return -ESOMETHING, or 0 for success. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 1d7734a0df02ff5068ff8baa1447c7baee601db1 Author: Lars Ellenberg Date: Wed Aug 11 21:21:50 2010 +0200 drbd: use rolling marks for resync speed calculation The current resync speed as displayed in /proc/drbd fluctuates a lot. Using an array of rolling marks makes this calculation much more stable. We used to have this (a long time ago with 0.7), but it got lost somehow. If "stalled", do not discard the rest of the information, just add a " (stalled)" tag to the progress line. This patch also shortens a spinlock critical section somewhat, and reduces the number of atomic operations in put_ldev. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 0bb70bf601579b0d4c56acbb54b8eb0688541e19 Author: Lars Ellenberg Date: Wed Aug 11 20:53:21 2010 +0200 drbd: remove outdated comment and dead code Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit c36c3ced692b38d0cf90a5e6f875be2f9ebbc037 Author: Lars Ellenberg Date: Wed Aug 11 20:42:55 2010 +0200 drbd: let drbd_free_ee implicitly free any digest Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 85719573dd716bc2ac3e098b44adfed884250bab Author: Philipp Reisner Date: Wed Jul 21 10:20:17 2010 +0200 drbd: Replaced some casts by an union. Improved comments Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit d207450cf2731c6a2afa8c78fb31c7206cd35eba Author: Philipp Reisner Date: Thu Jul 22 15:27:27 2010 +0200 drbd: Bugfix: rs_in_flight could become wrong if read_for_csum() requested reschedule later Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 778f271dfe7a7173c0bae2d6cde8d9bd1533e668 Author: Philipp Reisner Date: Tue Jul 6 11:14:00 2010 +0200 drbd: The new, smarter resync speed controller Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 8e26f9ccb9be00fdb33551a34c8f6029e89ab79f Author: Philipp Reisner Date: Tue Jul 6 17:25:54 2010 +0200 drbd: New sync_param packet, that includes the parameters of the new controller Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 9a31d7164d409ca59cfadb7957ac7b0acf4545b8 Author: Philipp Reisner Date: Mon Jul 5 13:42:03 2010 +0200 drbd: New sync parameters for the smart resync rate controller Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit d28fd092a55b504a0d699b65802a995086d70647 Author: Lars Ellenberg Date: Fri Jul 9 23:28:10 2010 +0200 drbd: fix list corruption (recent regression) The commit 288f422ec13667de40b278535d2a5fb5c77352c4 drbd: Track all IO requests on the TL, not writes only moved a list_add_tail(req, ) into a region where req may have just been freed due to conflict detection. Fix this by adding a proper cleanup section for that code path. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit ce0ecc8abfa9904e27a5f3ac4dd83398b134278d Merge: de5bbad cb655d0 Author: Chris Metcalf Date: Thu Oct 14 11:57:29 2010 -0400 Merge branch 'master' into for-linus commit 3e0f686e6bf347eea4a41d7d415f003c2f42b1a0 Author: Randy Dunlap Date: Wed Oct 13 18:07:16 2010 -0700 ibft: fix kconfig dependencies Fix kconfig dependency warning to satisfy dependencies: warning: (BE2ISCSI && SCSI_LOWLEVEL && PCI && SCSI && NET || ISCSI_IBFT && ISCSI_IBFT_FIND && SCSI) selects ISCSI_BOOT_SYSFS which has unmet direct dependencies (SCSI_LOWLEVEL && SCSI) Signed-off-by: Randy Dunlap Signed-off-by: Peter Jones Signed-off-by: Konrad Rzeszutek Wilk commit ef6510babf047d394aa6eb8c93baa0dd6b838c28 Author: Kumar Gala Date: Thu Oct 14 08:55:47 2010 -0500 spi/fsl_spi: Fix compile errors when building on ppc64 We get the following when building on ppc64 due to lack of include of : In file included from drivers/spi/spi_fsl_espi.c:25:0: drivers/spi/spi_fsl_lib.h: In function 'mpc8xxx_spi_write_reg': drivers/spi/spi_fsl_lib.h:88:2: error: implicit declaration of function 'out_be32' drivers/spi/spi_fsl_lib.h: In function 'mpc8xxx_spi_read_reg': drivers/spi/spi_fsl_lib.h:93:2: error: implicit declaration of function 'in_be32' drivers/spi/spi_fsl_espi.c: In function 'fsl_espi_remove': drivers/spi/spi_fsl_espi.c:571:2: error: implicit declaration of function 'iounmap' drivers/spi/spi_fsl_espi.c: In function 'fsl_espi_probe': drivers/spi/spi_fsl_espi.c:602:2: error: implicit declaration of function 'ioremap' drivers/spi/spi_fsl_espi.c:602:24: warning: assignment makes pointer from integer without a cast Signed-off-by: Kumar Gala Signed-off-by: Grant Likely commit 32e39e19ccb0f25c9c1b7ff246e17e795366bbbd Author: Christoph Hellwig Date: Thu Oct 14 09:54:43 2010 -0400 hfsplus: remove the unused hfsplus_kmap/hfsplus_kunmap helpers Signed-off-by: Christoph Hellwig commit 90e616905a423126805186cb5754e10a704b30c8 Author: Christoph Hellwig Date: Thu Oct 14 09:54:39 2010 -0400 hfsplus: create correct initial catalog entries for device files Make sure the initial insertation of the catalog entry already contains the device number by calling init_special_inode early and setting writing out the dev field of the on-disk permission structure. The latter is facilitated by sharing the almost identical hfsplus_set_perms helpers between initial catalog entry creating and ->write_inode. Unless we crashed just after mknod this bug was harmless as the inode is marked dirty at the end of hfsplus_mknod, and hfsplus_write_inode will update the catalog entry to contain the correct value. Signed-off-by: Christoph Hellwig commit 722c55d13e7296cc62ed8a38f926a915ff32e4ea Author: Christoph Hellwig Date: Thu Oct 14 09:54:33 2010 -0400 hfsplus: remove superflous rootflags field in hfsplus_inode_info The rootflags field in hfsplus_inode_info only caches the immutable and append-only flags in the VFS inode, so we can easily get rid of it. Signed-off-by: Christoph Hellwig commit f6089ff87d309a8ddb7b0d4dd92a570f1b0f689b Author: Christoph Hellwig Date: Thu Oct 14 09:54:28 2010 -0400 hfsplus: fix link corruption HFS implements hardlink by using indirect catalog entries that refer to a hidden directly. The link target is cached in the dev field in the HFS+ specific inode, which is also used for the device number for device files, and inside for passing the nlink value of the indirect node from hfsplus_cat_write_inode to a helper function. Now if we happen to write out the indirect node while hfsplus_link is creating the catalog entry we'll get a link pointing to the linkid of the current nlink value. This can easily be reproduced by a large enough loop of local git-clone operations. Stop abusing the dev field in the HFS+ inode for short term storage by refactoring the way the permission structure in the catalog entry is set up, and rename the dev field to linkid to avoid any confusion. While we're at it also prevent creating hard links to special files, as the HFS+ dev and linkid share the same space in the on-disk structure. Signed-off-by: Christoph Hellwig commit 13571a6977f821fab7d9c3cc5f75da52b7732e40 Author: Christoph Hellwig Date: Thu Oct 14 09:54:23 2010 -0400 hfsplus: validate btree flags Signed-off-by: Christoph Hellwig commit 9250f925972d03ccc0c0a4dd4e9b794d2ef6d52b Author: Eric Sandeen Date: Thu Oct 14 09:53:48 2010 -0400 hfsplus: handle more on-disk corruptions without oopsing hfs seems prone to bad things when it encounters on disk corruption. Many values are read from disk, and used as lengths to memcpy, as an example. This patch fixes up several of these problematic cases. o sanity check the on-disk maximum key lengths on mount (these are set to a defined value at mkfs time and shouldn't differ) o check on-disk node keylens against the maximum key length for each tree o fix hfs_btree_open so that going out via free_tree: doesn't wind up in hfs_releasepage, which wants to follow the very pointer we were trying to set up: HFS_SB(sb)->cat_tree = hfs_btree_open() . failure gets to hfs_releasepage and tries to follow HFS_SB(sb)->cat_tree Tested with the fsfuzzer; it survives more than it used to. [hch: ported of commit cf0594625083111ae522496dc1c256f7476939c2 from hfs] [hch: added the fixes from 5581d018ed3493d226e7a4d645d9c8a5af6c36b] Signed-off-by: Eric Sandeen Signed-off-by: Christoph Hellwig commit b6b41424f0ec28e9a167fa29b003327860b4b71b Author: Al Viro Date: Thu Oct 14 09:53:42 2010 -0400 hfsplus: hfs_bnode_find() can fail, resulting in hfs_bnode_split() breakage oops and fs corruption; the latter can happen even on valid fs in case of oom. [hch: port of commit 3d10a15d6919488204bdb264050d156ced20d9aa from hfs] Signed-off-by: Al Viro Signed-off-by: Christoph Hellwig commit ee52716245877b821f5ddbb3ace85b73084fb450 Author: Jeff Mahoney Date: Thu Oct 14 09:53:37 2010 -0400 hfsplus: fix oops on mount with corrupted btree extent records A particular fsfuzzer run caused an hfs file system to crash on mount. This is due to a corrupted MDB extent record causing a miscalculation of HFSPLUS_I(inode)->first_blocks for the extent tree. If the extent records are zereod out, then it won't trigger the first_blocks special case and instead falls through to the extent code, which we're in the middle of initializing. This patch catches the 0 size extent records, reports the corruption, and fails the mount. [hch: ported of commit 47f365eb575735c6b2edf5d08e0d16d26a9c23bd from hfs] Reported-by: Ramon de Carvalho Valle Signed-off-by: Jeff Mahoney Signed-off-by: Christoph Hellwig commit e756414f7daa93b862f1670dd0a6aaa676ea71e3 Author: Philipp Reisner Date: Tue Jun 29 17:35:34 2010 +0200 drbd: Initialize all members of sync_conf to their defaults [Bugz 315] Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 6709893059105d7859ae772af70c7db5bbab7de0 Author: Philipp Reisner Date: Thu Jun 24 16:24:25 2010 +0200 drbd: Make sure tl_restart(, resend) can not get called multiple times for a new connection Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit f70b3511599c49a3dc20ae349d6cdc5af47659df Author: Philipp Reisner Date: Thu Jun 24 14:34:40 2010 +0200 drbd: Do not try to free tl_hash in drbd_disconnect() when IO is suspended We may not free tl_hash when IO is suspended, since we can not wait until ap_bio_cnt reaches zero. We can do this after susp reched 0, since then tl_clear was called Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 8f488156c0635dcc9c668737d05386113a745ef9 Author: Philipp Reisner Date: Thu Jun 24 12:05:53 2010 +0200 drbd: Allow attach while IO is suspended Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit cfa03415a14dd0055f2ff8c3d348d4c1452acba6 Author: Philipp Reisner Date: Wed Jun 23 17:18:51 2010 +0200 drbd: Allow tl_restart() to do IO completion while IO is suspended Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 84dfb9f564208a0331131d1ab922382c7d61a553 Author: Philipp Reisner Date: Wed Jun 23 11:20:05 2010 +0200 drbd: Fixed a deadlock, probably only affected UP machines After disconnect (most likely mdev->net_cnt == 0) and we are still in an unstable state (!drbd_state_is_stable()). When we get an IO request in drbd_get_max_buffers() (called from __inc_ap_bio_cond(), called from inc_ap_bio()) we wake up misc_wait. Misc_wait is also used in inc_ap_bio() to sleep until the outcome of __inc_ap_bio_cond() changes. => Busy loop! Solution: Have a dedicated wait queue for get_net_conf() and put_net_conf(). Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 65d922c33ebd359db25d5846929b2eafc4238fcc Author: Philipp Reisner Date: Wed Jun 16 16:18:09 2010 +0200 drbd: Do not do a hard state change when establishing a connection [bugz 304] Make sure the state engine can deny two primaries to connect Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 481c6f503213ab14f69ce88fff7b1ece325522f2 Author: Philipp Reisner Date: Tue Jun 22 14:03:27 2010 +0200 drbd: Ensure that the peer was not rebootet in the meantime before resending TL Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 43a5182cccae5850f7590f78dd9651bd407be440 Author: Philipp Reisner Date: Fri Jun 11 11:26:34 2010 +0200 drbd: Delayed creation of current-UUID When a fencing policy of "resource-and-stonith" is configured, and DRBD looses connection to it's peer, we can delay the creation of a new current-UUID until IO gets thawed. That allows one to deploy fence-peer handlers that actually commit suicide on the machine they get started. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 87f7be4cf88e93069f4cc63baf2ce70fdfc59c63 Author: Philipp Reisner Date: Fri Jun 11 13:56:33 2010 +0200 drbd: Run the fence-peer helper asynchronously Since we can not thaw the transfer log, the next logical step is to allow reconnects while the fence-peer handler runs. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 1616a25493cce727d582886f162c5bb0abd87e6a Author: Philipp Reisner Date: Thu Jun 10 16:55:15 2010 +0200 drbd: Reduce the verbosity of some state transitions State transitions in the space of non-allowed states used to be very noisy. Reduce that, since that has little value for the majority of the user base. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 999122bc188a4d0a4847bdf1915d357bd6ab53dc Author: Philipp Reisner Date: Thu Jun 10 16:46:54 2010 +0200 drbd: Removing a by now obsolete clause in the state sanitizing Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 18a50fa213d46d5592f6542c91ab4c4760cf346c Author: Philipp Reisner Date: Mon Jun 21 14:14:15 2010 +0200 drbd: Now we need to handle the ed_uuid of an diskless, unconnected primary correctly Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 894c6a946199cf91e52bc1864c3dc6529cceb3db Author: Philipp Reisner Date: Fri Jun 18 16:03:20 2010 +0200 drbd: Disabled the crashed_primary detection for re-attach of last data while IO is frozen Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 47ff2d0a8e7ce87fed180729e8341f650bf585c8 Author: Philipp Reisner Date: Fri Jun 18 13:56:57 2010 +0200 drbd: Do not allow a fencing-policy of resource-and-stonith with protocol A Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 265be2d09853d425ad14a61cda0ca63345613d0c Author: Philipp Reisner Date: Mon May 31 10:14:17 2010 +0200 drbd: Finished the "on-no-data-accessible suspend-io;" functionality When no data is accessible (no connection to the peer, nor a local disk) allow the user to select to freeze all IO operations instead of getting IO errors. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 905cd7d8ac9b18e1f122b90dbebe1246b1c364fd Author: Philipp Reisner Date: Mon May 10 16:03:10 2010 +0200 drbd: Removed redundant error checks in the request code path Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 5ba82308ea766b33404cb130a88fe4113d9c20a3 Author: Philipp Reisner Date: Thu Jun 10 13:30:36 2010 +0200 drbd: factored drbd_req_make_private_bio() out of drbd_req_new() Preparing tl_thaw_dio() Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit b9b98716f83856b928f1c985ab55520c67663dd2 Author: Philipp Reisner Date: Tue Jun 22 11:26:48 2010 +0200 drbd: Do not send two barriers without any writes between them Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 11b58e73a3a3d1bbb582370d59f9b2c4d0136b42 Author: Philipp Reisner Date: Wed May 12 17:08:26 2010 +0200 drbd: factored tl_restart() out of tl_clear(). If IO was frozen for a temporal network outage, resend the content of the transfer-log into the newly established connection. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 2a80699f807885d501f08a7006f6a56c1c937a6e Author: Philipp Reisner Date: Wed Jun 9 14:07:43 2010 +0200 drbd: mod_req has now a return value Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 288f422ec13667de40b278535d2a5fb5c77352c4 Author: Philipp Reisner Date: Thu May 27 15:07:43 2010 +0200 drbd: Track all IO requests on the TL, not writes only With that the drbd_fail_pending_reads() function becomes obsolete. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 7e602c0aaf3e686c36cc742119f0f53f42e9befe Author: Philipp Reisner Date: Thu May 27 14:49:27 2010 +0200 drbd: renamed drbd_tl_epoch.n_req to drbd_tl_epoch.n_writes Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg commit 2989b722c9c4694cf6c5aa378f9c8a14e106d320 Author: Josh Boyer Date: Tue Sep 28 09:03:49 2010 -0400 powerpc/44x: Update ppc44x_defconfig Make sure the new bluestone board is selected for the multiplatform defconfig. Also build logfs and squashfs as modules. Signed-off-by: Josh Boyer commit 3c7d2b765df974ae29a9f1d5a62e15b243a36763 Author: Maciej Żenczykowski Date: Wed Oct 13 21:47:14 2010 -0700 pcmcia: fix unused function compile warning pcmcia_socket_dev_resume() is only referenced from macro SET_SYSTEM_SLEEP_PM_OPS(NULL, pcmcia_socket_dev_resume) which based on CONFIG_PM_SLEEP may or may not actually use its second parameter. Signed-off-by: Maciej Żenczykowski Signed-off-by: Dominik Brodowski commit 2df03514de41f3bbb5623f2e7f2bf594e49cb2ec Author: Daniel T Chen Date: Sun Oct 10 22:39:28 2010 -0400 ALSA: hda: Add speaker pin to automute Acer Aspire 8943G BugLink: https://bugs.launchpad.net/bugs/656625 Add clause for handling Acer Aspire 8943G's subwoofer as additional speaker pin for automuting. Reported-by: RussianNeuroMancer Cc: stable@kernel.org Signed-off-by: Daniel T Chen Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai commit 864616ee6785d9fac7a2cd80c01a2da89579f2e4 Author: Takuya Yoshikawa Date: Thu Oct 14 16:09:13 2010 +0900 sched: Comment updates: fix default latency and granularity numbers Targeted preemption latency and minimal preemption granularity for CPU-bound tasks have been changed. This patch updates the comments about these values. Signed-off-by: Takuya Yoshikawa Cc: Peter Zijlstra Cc: Mike Galbraith LKML-Reference: <20101014160913.eb24fef4.yoshikawa.takuya@oss.ntt.co.jp> Signed-off-by: Ingo Molnar commit ed859ed3b0f9893c6bce3708e8928341c15699b9 Merge: a802707 53eeb64 Author: Ingo Molnar Date: Thu Oct 14 09:11:43 2010 +0200 Merge branch 'linus' into sched/core Merge reason: update from -rc5 to -almost-final Signed-off-by: Ingo Molnar commit 67e87f0a1c5cbc750f81ebf6a128e8ff6f4376cc Author: Jeremy Fitzhardinge Date: Wed Oct 13 16:34:15 2010 -0700 x86-64: Only set max_pfn_mapped to 512 MiB if we enter via head_64.S head_64.S maps up to 512 MiB, but that is not necessarity true for other entry paths, such as Xen. Thus, co-locate the setting of max_pfn_mapped with the code to actually set up the page tables in head_64.S. The 32-bit code is already so co-located. (The Xen code already sets max_pfn_mapped correctly for its own use case.) -v2: Yinghai fixed the following bug in this patch: | | max_pfn_mapped is in .bss section, so we need to set that | after bss get cleared. Without that we crash on bootup. | | That is safe because Xen does not call x86_64_start_kernel(). | Signed-off-by: Jeremy Fitzhardinge Fixed-by: Yinghai Lu Signed-off-by: H. Peter Anvin LKML-Reference: <4CB6AB24.9020504@kernel.org> Signed-off-by: Ingo Molnar commit fb62db2ba943b1683f1d7181bb2988fce4c60870 Author: Randy Dunlap Date: Wed Oct 13 11:02:34 2010 -0700 futex: Fix kernel-doc notation & typos Convert futex_requeue() function parameters to use @name kernel-doc notation and add @fshared & @cmpval to prevent kernel-doc warnings. Add @list to struct futex_q. Fix a few typos. Signed-off-by: Randy Dunlap Acked-by: Rusty Russell LKML-Reference: <20101013110234.89b06043.randy.dunlap@oracle.com> Signed-off-by: Ingo Molnar commit 3cba11d32bb4b24c3ba257043595772df4b9c7b5 Author: Masami Hiramatsu Date: Thu Oct 14 12:10:42 2010 +0900 kconfig/x86: Add HAVE_TEXT_POKE_SMP config for stop_machine dependency Since the text_poke_smp() definately depends on actual stop_machine() on smp, add that dependency to Kconfig. Signed-off-by: Masami Hiramatsu Cc: Rusty Russell Cc: Ananth N Mavinakayanahalli Cc: 2nddept-manager@sdl.hitachi.co.jp Cc: Mathieu Desnoyers LKML-Reference: <20101014031042.4100.90877.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Ingo Molnar commit 3caa37519ccbb200c7fbbf6ff4fb306a30f29425 Author: Masami Hiramatsu Date: Thu Oct 14 12:10:36 2010 +0900 x86: Use __stop_machine() in text_poke_smp() Use __stop_machine() in text_poke_smp() because the caller must get online_cpus before calling text_poke_smp(), but stop_machine() do it again. We don't need it. Signed-off-by: Masami Hiramatsu Cc: Rusty Russell Cc: Ananth N Mavinakayanahalli Cc: 2nddept-manager@sdl.hitachi.co.jp Cc: Mathieu Desnoyers LKML-Reference: <20101014031036.4100.83989.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Ingo Molnar commit 087a4eb55971dfcc8df18312faf9393d0a479f3a Author: Masami Hiramatsu Date: Thu Oct 14 12:10:30 2010 +0900 stopmachine: Define __stop_machine when CONFIG_STOP_MACHINE=n Define dummy __stop_machine() function even when CONFIG_STOP_MACHINE=n. This getcpu-required version of stop_machine() will be used from poke_text_smp(). Signed-off-by: Masami Hiramatsu Acked-by: Tejun Heo Cc: Rusty Russell Cc: Ananth N Mavinakayanahalli Cc: 2nddept-manager@sdl.hitachi.co.jp Cc: Peter Zijlstra LKML-Reference: <20101014031030.4100.34156.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Ingo Molnar commit fd02e6f7ae085840d43d780149fcf95a614eca5e Author: Masami Hiramatsu Date: Thu Oct 14 12:10:24 2010 +0900 kprobes: Fix selftest to clear flags field for reusing probes Fix selftest to clear flags field for reusing probes because the flags field can be modified by Kprobes. This also set NULL to kprobe.addr instead of 0. Signed-off-by: Masami Hiramatsu Cc: Rusty Russell Cc: Ananth N Mavinakayanahalli Cc: 2nddept-manager@sdl.hitachi.co.jp LKML-Reference: <20101014031024.4100.50107.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Ingo Molnar commit 0f55a2f3d496133dd22f1e4e49fb7301da87c7bb Author: Masami Hiramatsu Date: Thu Oct 14 12:10:18 2010 +0900 kprobes: Update document about irq disabled state in kprobe handler Update kprobes.txt about interrupts disabled state inside kprobes handlers, because optimized probe/boosted kretprobe run without disabling interrrupts on x86. Signed-off-by: Masami Hiramatsu Cc: Rusty Russell Cc: Ananth N Mavinakayanahalli Cc: 2nddept-manager@sdl.hitachi.co.jp LKML-Reference: <20101014031018.4100.64883.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Ingo Molnar commit 1efeb08d7dd32c0fbd4b784ea9303b53d345bfd0 Author: Ingo Molnar Date: Thu Oct 14 08:09:42 2010 +0200 perf, ARM: Fix sysfs bits removal build failure Fix this linux-next build failure that Stephen reported: arch/arm/kernel/perf_event.c: In function 'armpmu_event_init': arch/arm/kernel/perf_event.c:543: error: request for member 'num_events' in something not a structure or union Reported-by: Stephen Rothwell Cc: Peter Zijlstra Cc: paulus LKML-Reference: <20101014164925.4fa16b75.sfr@canb.auug.org.au> Signed-off-by: Ingo Molnar commit e0dc09ff9a28f37441c5e92a14de6abda8db49d6 Author: Timur Tabi Date: Wed Oct 13 14:19:36 2010 -0500 powerpc/watchdog: Make default timeout for Book-E watchdog a Kconfig option The PowerPC Book-E watchdog driver (booke_wdt.c) defines a default timeout value in the code based on whether it's a Freescale Book-E part of not. Instead of having hard-coded values in the driver, make it a Kconfig option. As newer chips gets faster, the current default values become less appropriate, since the timeout sometimes occurs before the kernel finishes booting. Making the value a Kconfig option allows BSPs to configure a new value without requiring the wdt_period command-line parameter to be set. Signed-off-by: Timur Tabi Signed-off-by: Kumar Gala commit abd12fe4d1249f6c2c4b34d5ced82f179e6b5d30 Author: Shaohui Xie Date: Thu Oct 14 10:04:02 2010 +0800 fsl_rio: Add comments for sRIO registers. Add some comments to make sRIO registers map better readable. Signed-off-by: Shaohui Xie Signed-off-by: Kumar Gala commit 6249a26a4cfe945c0840f222e3669deb9bd41425 Author: Kumar Gala Date: Thu Jun 3 03:23:21 2010 -0500 powerpc/fsl-booke: Add e55xx (64-bit) smp defconfig The p5020 SoC from Freescale is the first 64-bit Book-E processor and utilizes the two e5500 cores. Adding a defconfig that enables basic kernel for e5500 based processors. Also added the p5020 / e5500 support to the ppc64e defconfig. Signed-off-by: Kumar Gala commit 95400415c7b3f3dd43034c6c860897ac397ebe1b Author: Kumar Gala Date: Thu Oct 7 14:05:47 2010 -0500 powerpc/fsl-booke: Add p5020 DS board support The P5020DS is in the same family of boards as the P4080 DS and thus shares the corenet_ds code. Signed-off-by: Kumar Gala commit 55fd766b5fad8240b7a6e994b5779a46d28f73d4 Author: Kumar Gala Date: Fri Oct 16 18:48:40 2009 -0500 powerpc/fsl-booke64: Use TLB CAMs to cover linear mapping on FSL 64-bit chips On Freescale parts typically have TLB array for large mappings that we can bolt the linear mapping into. We utilize the code that already exists on PPC32 on the 64-bit side to setup the linear mapping to be cover by bolted TLB entries. We utilize a quarter of the variable size TLB array for this purpose. Additionally, we limit the amount of memory to what we can cover via bolted entries so we don't get secondary faults in the TLB miss handlers. We should fix this limitation in the future. Signed-off-by: Kumar Gala commit 988cf86d4f0da4150e808300c145ba87c0aad02f Author: Kumar Gala Date: Fri Oct 8 02:13:25 2010 -0500 powerpc/fsl-booke: Add support for FSL Arch v1.0 MMU in setup_page_sizes Update setup_page_sizes() to support for a MMU v1.0 FSL style MMU implementation. In such a processor, we don't have TLB0PS or EPTCFG registers (and access to these registers may cause exceptions). We need to parse the older format of TLBnCFG for page size support. Additionaly, assume since we are an FSL implementation that we have 2 TLB arrays and the second array contains the variable size pages. Signed-off-by: Kumar Gala commit 4490c06b581ad7d6392bb398960ef86dfd203a91 Author: Kumar Gala Date: Fri Oct 8 08:32:11 2010 -0500 powerpc/fsl-booke: Add support for FSL 64-bit e5500 core The new e5500 core is similar to the e500mc core but adds 64-bit support. We support running it in 32-bit mode as it is identical to the e500mc. Signed-off-by: Kumar Gala commit 6db92cc9d07db9f713da8554b4bcdfc8e54ad386 Author: Harninder Rai Date: Wed Oct 13 17:30:56 2010 +0530 powerpc/85xx: add cache-sram support It adds cache-sram support in P1/P2 QorIQ platforms as under: * A small abstraction over powerpc's remote heap allocator * Exports mpc85xx_cache_sram_alloc()/free() APIs * Supports only one contiguous SRAM window * Drivers can do the following in Kconfig to use these APIs "select FSL_85XX_CACHE_SRAM if MPC85xx" * Required SRAM size and the offset where SRAM should be mapped must be provided at kernel command line as : cache-sram-size= cache-sram-offset= Signed-off-by: Harninder Rai Signed-off-by: Vivek Mahajan Signed-off-by: Kumar Gala commit 6341efe4b9bd1e1f9c0d0d6ec57fa77949c88bb1 Author: Timur Tabi Date: Thu Oct 7 14:36:42 2010 -0500 powerpc/85xx: add ngPIXIS FPGA device tree node to the P1022DS board The device tree for Freescale's P1022DS reference board is missing the node for the ngPIXIS FPGA. Signed-off-by: Timur Tabi Signed-off-by: Kumar Gala commit 3c4b76449b4efc1a1cbd0cade09486bbc8b56401 Author: Kumar Gala Date: Thu Oct 7 17:05:08 2010 -0500 powerpc: Fix compile error with paca code on ppc64e arch/powerpc/kernel/paca.c: In function 'allocate_lppacas': arch/powerpc/kernel/paca.c:111:1: error: parameter name omitted arch/powerpc/kernel/paca.c:111:1: error: parameter name omitted Signed-off-by: Kumar Gala commit b6f9e595d27371c4f2157a294da3caa7aed5fe53 Author: Kumar Gala Date: Thu Oct 7 14:47:10 2010 -0500 powerpc/fsl-booke: Add p3041 DS board support The P3041DS is in the same family of boards as the P4080DS and thus shares the corenet_ds code. Signed-off-by: Kumar Gala commit 4267ea72bb09dc58f006df26c8d3e897489fabca Author: Scott Wood Date: Wed May 19 15:32:21 2010 -0500 oprofile/fsl emb: Don't set MSR[PMM] until after clearing the interrupt. On an arch 2.06 hypervisor, a pending perfmon interrupt will be delivered to the hypervisor at any point the guest is running, regardless of MSR[EE]. In order to reflect this interrupt, the hypervisor has to mask the interrupt in PMGC0 -- and set MSRP[PMMP] to intercept futher guest accesses to the PMRs to detect when to unmask (and prevent the guest from unmasking early, or seeing inconsistent state). This has the side effect of ignoring any changes the guest makes to MSR[PMM], so wait until after the interrupt is clear, and thus the hypervisor should have cleared MSRP[PMMP], before setting MSR[PMM]. The counters wil not actually run until PMGC0[FAC] is cleared in pmc_start_ctrs(), so this will not reduce the effectiveness of PMM. Signed-off-by: Scott Wood Signed-off-by: Kumar Gala commit 4f0e332239e2b5f79757cb8f8f3db16c66f5d220 Author: Kumar Gala Date: Fri Sep 24 13:34:42 2010 -0500 powerpc/fsl-booke: Add PCI device ids for P2040/P3041/P5010/P5020 QoirQ chips Signed-off-by: Kumar Gala commit da3ed89e7ce272ebcc918487e2a28736ca0dd6bb Author: Kumar Gala Date: Tue May 18 07:52:36 2010 -0500 powerpc/mpc8xxx_gpio: Add support for 'qoriq-gpio' controllers Add 'fsl,qoriq-gpio' compatiable to the list we search for to bind against for mpc8xxx_gpio. This compatiable will be used on P1-P5xxx QorIQ devices like P4080. Signed-off-by: Kumar Gala commit 2ed38b23597284cc96a97e295cb145a6202dfcd4 Author: Matthew McClintock Date: Tue Aug 31 18:24:45 2010 -0500 powerpc/fsl_booke: Add support to boot from core other than 0 First we check to see if we are the first core booting up. This is accomplished by comparing the boot_cpuid with -1, if it is we assume this is the first core coming up. Secondly, we need to update the initial thread info structure to reflect the actual cpu we are running on otherwise smp_processor_id() and related functions will return the default initialization value of the struct or 0. Signed-off-by: Matthew McClintock Signed-off-by: Kumar Gala commit f7a07fd9617140c6111de82400ba1bad3162fb85 Author: Timur Tabi Date: Thu Aug 19 16:28:12 2010 -0500 powerpc/p1022: Add probing for individual DMA channels Like the MPC8610 HPCD, the P1022DS ASoC DMA driver probes on individual DMA channel nodes, so the DMA controller nodes' compatible string must be listed in p1022_ds_ids[] to work. Signed-off-by: Timur Tabi Signed-off-by: Kumar Gala commit 4ea7c88bec9221031fa57fc7c290fdb5d279748c Author: Matthew McClintock Date: Tue Aug 31 17:44:51 2010 -0500 powerpc/fsl_soc: Search all global-utilities nodes for rstccr The first global-utilities node might not contain the rstcr property, so we should search all the nodes Signed-off-by: Matthew McClintock Acked-by: Timur Tabi Signed-off-by: Kumar Gala commit 92437d41374bf59b1914b53bd10ca69d31b1b581 Author: Paul Gortmaker Date: Fri Sep 24 12:44:52 2010 -0400 powerpc: Fix invalid page flags in create TLB CAM path for PTE_64BIT There exists a four line chunk of code, which when configured for 64 bit address space, can incorrectly set certain page flags during the TLB creation. It turns out that this is code which isn't used, but might still serve a purpose. Since it isn't obvious why it exists or why it causes problems, the below description covers both in detail. For powerpc bootstrap, the physical memory (at most 768M), is mapped into the kernel space via the following path: MMU_init() | + adjust_total_lowmem() | + map_mem_in_cams() | + settlbcam(i, virt, phys, cam_sz, PAGE_KERNEL_X, 0); On settlbcam(), the kernel will create TLB entries according to the flag, PAGE_KERNEL_X. settlbcam() { ... TLBCAM[index].MAS1 = MAS1_VALID | MAS1_IPROT | MAS1_TSIZE(tsize) | MAS1_TID(pid); ^ These entries cannot be invalidated by the kernel since MAS1_IPROT is set on TLB property. ... if (flags & _PAGE_USER) { TLBCAM[index].MAS3 |= MAS3_UX | MAS3_UR; TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0); } For classic BookE (flags & _PAGE_USER) is 'zero' so it's fine. But on boards like the the Freescale P4080, we want to support 36-bit physical address on it. So the following options may be set: CONFIG_FSL_BOOKE=y CONFIG_PTE_64BIT=y CONFIG_PHYS_64BIT=y As a result, boards like the P4080 will introduce PTE format as Book3E. As per the file: arch/powerpc/include/asm/pgtable-ppc32.h * #elif defined(CONFIG_FSL_BOOKE) && defined(CONFIG_PTE_64BIT) * #include So PAGE_KERNEL_X is __pgprot(_PAGE_BASE | _PAGE_KERNEL_RWX) and the book3E version of _PAGE_KERNEL_RWX is defined with: (_PAGE_BAP_SW | _PAGE_BAP_SR | _PAGE_DIRTY | _PAGE_BAP_SX) Note the _PAGE_BAP_SR, which is also defined in the book3E _PAGE_USER: #define _PAGE_USER (_PAGE_BAP_UR | _PAGE_BAP_SR) /* Can be read */ So the possibility exists to wrongly assign the user MAS3_U bits to kernel (PAGE_KERNEL_X) address space via the following code fragment: if (flags & _PAGE_USER) { TLBCAM[index].MAS3 |= MAS3_UX | MAS3_UR; TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0); } Here is a dump of the TLB info from Simics with the above code present: ------ L2 TLB1 GT SSS UUU V I Row Logical Physical SS TLPID TID WIMGE XWR XWR F P V ----- ----------------- ------------------- -- ----- ----- ----- --- --- - - - 0 c0000000-cfffffff 000000000-00fffffff 00 0 0 M XWR XWR 0 1 1 1 d0000000-dfffffff 010000000-01fffffff 00 0 0 M XWR XWR 0 1 1 2 e0000000-efffffff 020000000-02fffffff 00 0 0 M XWR XWR 0 1 1 Actually this conditional code was used for two legacy functions: 1: support KGDB to set break point. KGDB already dropped this; now uses its core write to set break point. 2: io_block_mapping() to create TLB in segmentation size (not PAGE_SIZE) for device IO space. This use case is also removed from the latest PowerPC kernel. However, there may still be a use case for it in the future, like large user pages, so we can't remove it entirely. As an alternative, we match on all bits of _PAGE_USER instead of just any bits, so the case where just _PAGE_BAP_SR is set can't sneak through. With this done, the TLB appears without U having XWR as below: ------- L2 TLB1 GT SSS UUU V I Row Logical Physical SS TLPID TID WIMGE XWR XWR F P V ----- ----------------- ------------------- -- ----- ----- ----- --- --- - - - 0 c0000000-cfffffff 000000000-00fffffff 00 0 0 M XWR 0 1 1 1 d0000000-dfffffff 010000000-01fffffff 00 0 0 M XWR 0 1 1 2 e0000000-efffffff 020000000-02fffffff 00 0 0 M XWR 0 1 1 Signed-off-by: Tiejun Chen Signed-off-by: Paul Gortmaker Signed-off-by: Kumar Gala commit cd2bd44ea8a2e8be8fff583fa5759e8f3758e67a Author: Ilya Yanok Date: Thu Sep 9 01:55:16 2010 +0200 powerpc/mpc83xx: Support for MPC8308 P1M board This patch adds support for MPC8308 P1M board. Supported devices: DUART Dual Ethernet NOR flash Both I2C controllers USB in peripheral mode PCI Express Signed-off-by: Ilya Yanok Signed-off-by: Kumar Gala commit 677de425583b43bf1af3aea0fa8d433120f0f13c Author: Matthew McClintock Date: Thu Sep 16 17:58:26 2010 -0500 powerpc/85xx: flush dcache before resetting cores When we do an mpic_reset_core we need to make sure the dcache is flushed. Signed-off-by: Matthew McClintock Signed-off-by: Kumar Gala commit 5d692961633d4ecd1ca07313b75ddf35520a4c28 Author: Matthew McClintock Date: Thu Sep 16 17:58:25 2010 -0500 powerpc/85xx: Minor fixups for kexec on 85xx Make kexec_down_cpus atmoic since it will be incremented by all cores as they are coming down. Remove duplicate calls to mpc85xx_smp_kexec_down, now it's called by the crash and normal kexec pathway only once. Increase the timeout to wait for other cores to shutdown. Signed-off-by: Matthew McClintock Signed-off-by: Kumar Gala commit edb85800101c354a395ecc5ed3b52a9499bd4cfc Author: Matthew McClintock Date: Thu Sep 16 17:58:24 2010 -0500 powerpc/85xx: Remove call to mpic_teardown_this_cpu in kexec We no longer need to call this explicitly as a generic version is called by default. Signed-off-by: Matthew McClintock Signed-off-by: Kumar Gala commit c71635d288ffd3bcdfb30308f681f9af34f0fc81 Author: Matthew McClintock Date: Thu Sep 16 17:58:23 2010 -0500 powerpc/kexec: make masking/disabling interrupts generic Right now just the kexec crash pathway turns turns off the interrupts. Pull that out and make a generic version for use elsewhere Signed-off-by: Matthew McClintock Signed-off-by: Kumar Gala commit fbdd7144ceadd578bc2a875af1dabd67e80ba0d0 Author: Timur Tabi Date: Mon Sep 20 11:23:42 2010 -0500 powerpc/watchdog: Allow the Book-E driver to be compiled as a module Register the __init and __exit functions in the PowerPC Book-E Watchdog driver as module entry/exit functions, and modify the Kconfig entry. Add a .release method for the PowerPC Book-E Watchdog driver, so that the watchdog is disabled when the driver is closed. Loosely based on original code from Jiang Yutang . Signed-off-by: Timur Tabi Signed-off-by: Kumar Gala commit 55ec2fca3e99f83b5c674e9aba713d848392f6cc Author: Timur Tabi Date: Mon Sep 20 11:23:41 2010 -0500 powerpc: export ppc_proc_freq and ppc_tb_freq as GPL symbols Export the global variable 'ppc_tb_freq', so that modules (like the Book-E watchdog driver) can use it. To maintain consistency, ppc_proc_freq is changed to a GPL-only export. This is okay, because any module that needs this symbol should be an actual Linux driver, which must be GPL-licensed. Signed-off-by: Timur Tabi Acked-by: Josh Boyer Signed-off-by: Kumar Gala commit b8f44ec2c05f9cfe1647173ac60c0cccb1118c91 Author: Kumar Gala Date: Thu Aug 5 02:45:08 2010 -0500 powerpc/fsl-pci: Fix MSI support on 83xx platforms The following commit broke 83xx because it assumed the 83xx platforms exposed the "IMMR" address in BAR0 like the 85xx/86xx/QoriQ devices do: commit 3da34aae03d498ee62f75aa7467de93cce3030fd Author: Kumar Gala Date: Tue May 12 15:51:56 2009 -0500 powerpc/fsl: Support unique MSI addresses per PCIe Root Complex However that is not true, so we have to search through the inbound window settings on 83xx to find which one matches the IMMR address to determine its PCI address. Reported-by: Ilya Yanok Signed-off-by: Kumar Gala commit 7da1272547ebe96982a42292dfc833457708f4da Author: Kyle McMartin Date: Thu Oct 14 01:02:23 2010 -0400 parisc: kill __do_IRQ Signed-off-by: Kyle McMartin commit 8ed5c00d7c166f505eb2e8ff47748bfa73824130 Author: Kyle McMartin Date: Thu Oct 14 01:00:51 2010 -0400 parisc: convert eisa interrupts to flow handlers Signed-off-by: Kyle McMartin commit 7998b3bd156478c35de685f90d4d0dda57916c60 Author: Kyle McMartin Date: Thu Oct 14 00:58:53 2010 -0400 parisc: convert gsc and dino pci interrupts to flow handlers Signed-off-by: Kyle McMartin commit 14ff626a64f1c6848b303254be00b1b2ff33a655 Author: Kyle McMartin Date: Thu Oct 14 00:53:17 2010 -0400 parisc: convert suckyio interrupts to flow handlers No big deal, just need to convert the suckyio interrupts to be a nested handler instead of request_irq the suckyio device in the future. Signed-off-by: Kyle McMartin commit f3d4605977f9f30993c670a85f75d8f3853144c5 Author: Kyle McMartin Date: Thu Oct 14 00:38:27 2010 -0400 parisc: convert iosapic interrupts to proper flow handlers Shift the ->end call (cpu eoi) from __do_IRQ into our unmask handler. Also nuke some redundant code. Signed-off-by: Kyle McMartin commit 4d4f681dc43a06167763ec698f5de4f2b3119ad6 Author: Kyle McMartin Date: Thu Oct 14 00:12:23 2010 -0400 parisc: convert cpu interrupts to proper flow handlers Only major change is renaming functions to match the conventions expected by the generic irq code. Signed-off-by: Kyle McMartin commit ba20085c20f1c9e8af546dea6ad0efa421bdef32 Author: Kyle McMartin Date: Wed Oct 13 21:00:55 2010 -0400 parisc: lay groundwork for killing __do_IRQ Use proper accessors and handlers for generic irq cleanups. We just call back into __do_IRQ through desc->handler now, and remove the explicit calls. Signed-off-by: Kyle McMartin commit b9d228f9e896df1af787b2f3467889ab0832370a Author: Matthias Brugger Date: Wed Oct 13 17:51:02 2010 +0200 spi/atmel: let transfers through if not changing bits_per_word bits_per_word option in spi_transfer are allowed if it does not change the csr register. This is necessary for the driver in drivers/staging/iio/adis16260_core.c, as it uses this option. Signed-off-by: Matthias Brugger Signed-off-by: Grant Likely commit 03f1a17cd5c69deccd3cfe1b954b9426d7a686e3 Author: Randy Dunlap Date: Wed Oct 13 21:00:23 2010 -0700 x86/vsmp: Eliminate kconfig dependency warning Fix kconfig dependency warning to satisfy dependencies: warning: (X86_VSMP && X86_64 && PCI && X86_EXTENDED_PLATFORM || XEN && PARAVIRT_GUEST && (X86_64 || X86_32 && X86_PAE && !X86_VISWS) && X86_CMPXCHG && X86_TSC || KVM_CLOCK && PARAVIRT_GUEST || KVM_GUEST && PARAVIRT_GUEST || LGUEST_GUEST && PARAVIRT_GUEST && X86_32) selects PARAVIRT which has unmet direct dependencies (PARAVIRT_GUEST) Signed-off-by: Randy Dunlap Cc: Ravikiran Thirumalai LKML-Reference: <20101013210023.9a033222.randy.dunlap@oracle.com> Signed-off-by: Ingo Molnar commit 8e41b527ff2c1d7d8c9a9e8b9f53877af2892cef Author: Grant Likely Date: Wed Oct 13 23:03:15 2010 -0600 spi/topcliff: Fix uninitialized variable defect This patch fixes the following build error introduced by commit 65308c46, "spi/topcliff: cleanup for style and conciseness". drivers/spi/spi_topcliff_pch.c: In function 'pch_spi_process_messages': drivers/spi/spi_topcliff_pch.c:752: warning: 'data' is used uninitialized in +this function Signed-off-by: Grant Likely commit caf96194c05cd97ce96546fbcb1f35ec06aaaac7 Author: Kyle McMartin Date: Wed Oct 13 20:35:56 2010 -0400 parisc: add prlimit64 syscall Signed-off-by: Kyle McMartin commit c442ef96bfe1a981d44dd09d49a1eed93b94e82a Author: Kyle McMartin Date: Tue Sep 28 12:19:24 2010 -0400 parisc: squelch warning when using dev_get_stats And switch to struct rtnl_link_stats64... Signed-off-by: Kyle McMartin commit b6b77b2d5ffd2f8ee74fcc27661f7f4962c34705 Author: Paul Mundt Date: Thu Oct 14 08:44:55 2010 +0900 sh: pci: Support secondary FPGA-driven PCIe clocks on SDK7786. The SDK7786 FPGA has secondary control over the PCIe clocks, specifically relating to the slots and oscillator. This ties the FPGA clocks in to the clock framework and balances the refcounting similar to how the primary on-chip clocks are managed. While the on-chip clocks are per-port, the FPGA clock enable/disable is global for the entire block. Signed-off-by: Paul Mundt commit fef5ba797991f9335bcfc295942b684f9bf613a1 Author: Jeremy Fitzhardinge Date: Wed Oct 13 16:02:24 2010 -0700 xen: Cope with unmapped pages when initializing kernel pagetable Xen requires that all pages containing pagetable entries to be mapped read-only. If pages used for the initial pagetable are already mapped then we can change the mapping to RO. However, if they are initially unmapped, we need to make sure that when they are later mapped, they are also mapped RO. We do this by knowing that the kernel pagetable memory is pre-allocated in the range e820_table_start - e820_table_end, so any pfn within this range should be mapped read-only. However, the pagetable setup code early_ioremaps the pages to write their entries, so we must make sure that mappings created in the early_ioremap fixmap area are mapped RW. (Those mappings are removed before the pages are presented to Xen as pagetable pages.) Signed-off-by: Jeremy Fitzhardinge LKML-Reference: <4CB63A80.8060702@goop.org> Cc: Yinghai Lu Signed-off-by: H. Peter Anvin commit d7acb92fea932ad2e7846480aeacddc2c03c8485 Author: H. Peter Anvin Date: Wed Oct 13 16:00:29 2010 -0700 x86-64, asm: If the assembler supports fxsave64, use it Kbuild allows for us to probe for the existence of specific constructs in the assembler, use them to find out if we can use fxsave64 and permit the compiler to generate better code. Signed-off-by: H. Peter Anvin commit 3c86aa70bf677a31b71c8292e349242e26cbc743 Author: Eli Cohen Date: Wed Oct 13 21:26:51 2010 +0200 RDMA/cm: Add RDMA CM support for IBoE devices Add support for IBoE device binding and IP --> GID resolution. Path resolving and multicast joining are implemented within cma.c by filling in the responses and running callbacks in the CMA work queue. IP --> GID resolution always yields IPv6 link local addresses; remote GIDs are derived from the destination MAC address of the remote port. Multicast GIDs are always mapped to multicast MACs as is done in IPv6. (IPv4 multicast is enabled by translating IPv4 multicast addresses to IPv6 multicast as described in .) Some helper functions are added to ib_addr.h. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 61a46766c9d5d8fb5dad23da1b7cc4cb8b0107da Author: Paul Mundt Date: Thu Oct 14 07:37:01 2010 +0900 sh: pci: Support slot 4 routing on SDK7786. SDK7786 supports connecting either slot3 or 4 to the same PCIe port by way of FPGA muxing. By default the vertical slot 3 on the baseboard is enabled, so this adds in a command line option for forcibly enabling the slot 4 edge connector. If nothing has been specified on the command line, we fall back to reading the resistor values for card presence to figure out where to route the port to. Signed-off-by: Paul Mundt commit c2d5a7300da667d090c8fe79f05404c9fb205b12 Author: Nishanth Aravamudan Date: Wed Oct 13 10:39:45 2010 -0700 scripts/package: don't break if %{_smp_mflags} isn't set Same fix as in 13797b77d419fc1b16eebf2993bf7b5cea65f0bf is needed for the "new" line invoking _smp_mflags for modules_install. Without the fix, `make binrpm-pkg` fails with: + make '%{_smp_mflags}' KBUILD_SRC= modules_install make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. make[2]: *** No rule to make target `%{_smp_mflags}'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.8S9B9e (%install) Signed-off-by: Nishanth Aravamudan Signed-off-by: Michal Marek commit f20ce779bb31a90985b0daea2bf0aaf009d21b81 Author: Kumar Sanghvi Date: Tue Oct 12 20:17:25 2010 +0000 Documentation: Update Phonet doc for Pipe controller changes Updates to Phonet doc for Pipe controller 'connect' socket implementation and changes related to socket options. Signed-off-by: Kumar Sanghvi Signed-off-by: David S. Miller commit b3d6255388de0680a14f0907deb7b7f4fa0d25d5 Author: Kumar Sanghvi Date: Tue Oct 12 20:14:43 2010 +0000 Phonet: 'connect' socket implementation for Pipe controller Based on suggestion by Rémi Denis-Courmont to implement 'connect' for Pipe controller logic, this patch implements 'connect' socket call for the Pipe controller logic. The patch does following:- - Removes setsockopts for PNPIPE_CREATE and PNPIPE_DESTROY - Adds setsockopt for setting the Pipe handle value - Implements connect socket call - Updates the Pipe controller logic User-space should now follow below sequence with Pipe controller:- -socket -bind -setsockopt for PNPIPE_PIPE_HANDLE -connect -setsockopt for PNPIPE_ENCAP_IP -setsockopt for PNPIPE_ENABLE GPRS/3G data has been tested working fine with this. Signed-off-by: Kumar Sanghvi Acked-by: Rémi Denis-Courmont Signed-off-by: David S. Miller commit 7368ddf144afd79456fd853fa25f33e31da003a9 Author: Paul Gortmaker Date: Tue Oct 12 14:25:58 2010 +0000 tipc: clean out all instances of #if 0'd unused code Remove all instances of legacy, or as yet to be implemented code that is currently living within an #if 0 ... #endif block. In the rare instance that some of it be needed in the future, it can still be dragged out of history, but there is no need for it to sit in mainline. Signed-off-by: Paul Gortmaker Acked-by: Neil Horman Signed-off-by: David S. Miller commit c23cc81a5e5c1d4486b662cedd0afcdf9145f154 Author: Ben Greear Date: Wed Oct 13 12:01:23 2010 -0700 ath9k: Fix potential use-after-free. The ath_debug_stat_tx references bf->bf_mpdu, which is the skb consumed by ath_tx_complete. So, call the ath_debug_stat_tx method first. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit e4b55957eb695b43055b6badec026628b24fe80a Author: Johannes Berg Date: Wed Oct 13 19:23:21 2010 +0200 mac80211: fix SMPS request It looks like I submitted a different patch than I tested, because clearly the code in mac80211 is missing actually propagating the requested SMPS mode. Fix that! Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 9c1d8e4affe6748d884a677cf5db19ae0c20ef07 Author: Jouni Malinen Date: Wed Oct 13 17:29:31 2010 +0300 ath9k: Set RX filter for Probe Request based on filter flag This allows mac80211 to enable receiving of Probe Request frames in station mode which is needed for P2P. Signed-off-by: Jouni Malinen Signed-off-by: John W. Linville commit 7be5086d4cb7cceb71d724a9524d5e927785d04f Author: Johannes Berg Date: Wed Oct 13 12:06:24 2010 +0200 mac80211: add probe request filter flag Using the frame registration notification, we can see when probe requests are requested and notify the low-level driver via filtering. The flag is also set in AP and IBSS modes. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 271733cf844a2f5f186ef3b40c26d6397b71039a Author: Johannes Berg Date: Wed Oct 13 12:06:23 2010 +0200 cfg80211: notify drivers about frame registrations Drivers may need to adjust their filters according to frame registrations, so notify them about them. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 7a8266524af7ec70d1b3d10f964ce911d922d466 Author: Mohammed Shafi Shajakhan Date: Wed Oct 13 11:47:09 2010 +0530 ath9k: Fix documentation in rate control This fix updates the documenation in Rate Control Table structure Signed-off-by: Mohammed Shafi Shajakhan Signed-off-by: John W. Linville commit d84a35d1323bc62f9b26a707072767a60da75015 Author: Ben Greear Date: Tue Oct 12 10:55:38 2010 -0700 ath5k: Move debugfs under ieee80211/[wiphy-name] This automatically keeps things proper when wiphy is renamed. Based on patch by Johannes Berg Signed-off-by: Ben Greear Acked-by: Bruno Randolf Signed-off-by: John W. Linville commit 10d8dad8453f8648a448960d7a2d3d983dfe0ed3 Author: Gerrit Renker Date: Tue Oct 12 07:07:42 2010 +0200 wext: fix alignment problem in serializing 'struct iw_point' wext: fix alignment problem in serializing 'struct iw_point' This fixes a typo in the definition of the serialized length of struct iw_point: a) wireless.h is exported to userspace, the typo causes IW_EV_POINT_PK_LEN to be 12 on 64-bit, and 8 on 32-bit systems (causing misalignment); b) in compat-64 mode iwe_stream_add_point() memcpys overlap (see below). The second case in in compat-64 mode looks like (variable names are as in include/net/iw_handler.h:iwe_stream_add_point()): point_len = IW_EV_COMPAT_POINT_LEN = 8 lcp_len = IW_EV_COMPAT_LCP_LEN = 4 2nd memcpy: IW_EV_POINT_PK_LEN - IW_EV_LCP_PK_LEN = 12 - 4 = 8 IW_EV_LCP_PK_LEN <--------------> *---> 'extra' data area +-------+-------+-------+-------+---------------+------- ...-+ | len | cmd |length | flags | (empty) -> extra ... | +-------+-------+-------+-------+---------------+------- ...-+ 2 2 2 2 4 lcp_len <--------------> <-!! OVERLAP !!> <--1st memcpy--><------- 2nd memcpy -----------> <---- 3rd memcpy ------- ... > <--------- point_len ----------> This case could cause overrun whenever iw_point.length < 4. The other two cases are - * 32-bit systems: IW_EV_POINT_PK_LEN - IW_EV_LCP_PK_LEN = 8 - 4 = 4, the second memcpy copies exactly the 4 required bytes; * 64-bit systems: IW_EV_POINT_PK_LEN - IW_EV_LCP_PK_LEN = 12 - 4 = 8, the second memcpy copies a superfluous (but non overlapping) 4 bytes. The patch changes IW_EV_POINT_PK_LEN to be 8, so that in all 3 cases always only the requested iw_point.{length,flags} (both __u16) are copied, avoiding overrrun (compat-64) and superfluous copy (64-bit). In addition, the userspace header is sanitized (in agreement with version 30 of the wireless tools). Many thanks to Johannes Berg for help and review with this patch. Signed-off-by: Gerrit Renker Signed-off-by: John W. Linville commit a91fd267e327ca7599654b4e9ed7b62c5adaccee Author: Simon Horman Date: Wed Oct 13 21:22:35 2010 +0200 IPVS: ip_vs_dbg_callid() is only needed for debugging ip_vs_dbg_callid() and IP_VS_DEBUG_CALLID() are only needed it CONFIG_IP_VS_DEBUG is defined. This resolves the following build warning when CONFIG_IP_VS_DEBUG is not defined. net/netfilter/ipvs/ip_vs_pe_sip.c:11: warning: 'ip_vs_dbg_callid' defined but not used Reported-by: Patrick McHardy Signed-off-by: Simon Horman Signed-off-by: Patrick McHardy commit 892b6f90db81cccb723d5d92f4fddc2d68b206e1 Author: Martin K. Petersen Date: Wed Oct 13 21:18:03 2010 +0200 block: Ensure physical block size is unsigned int Physical block size was declared unsigned int to accomodate the maximum size reported by READ CAPACITY(16). Make sure we use the right type in the related functions. Signed-off-by: Martin K. Petersen Acked-by: Mike Snitzer Cc: stable@kernel.org Signed-off-by: Jens Axboe commit 447b1d43ded08c11f4f3d344b4e07e6dcddbef95 Author: Daniel Drake Date: Wed Oct 13 19:10:42 2010 +0100 x86, olpc: Register XO-1 platform devices The upcoming XO-1 rfkill driver (for drivers/platform/x86) will register itself with the name "xo1-rfkill", and the already-merged XO-1 poweroff code uses name "olpc-xo1" Add the necessary mechanics so that these devices are properly initialized on XO-1 laptops. Signed-off-by: Daniel Drake LKML-Reference: <20101013181042.90C8F9D401B@zog.reactivated.net> Cc: Matthew Garrett Signed-off-by: H. Peter Anvin commit f7fcec93b619337feb9da829b8a9ab6ba86393bc Author: Paul Mundt Date: Thu Oct 14 03:49:15 2010 +0900 sh: Fix up PMB locking. This first converts the PMB locking over to raw spinlocks, and secondly fixes up a nested locking issue that was triggering lockdep early on: swapper/0 is trying to acquire lock: (&pmbe->lock){......}, at: [<806be9bc>] pmb_init+0xf4/0x4dc but task is already holding lock: (&pmbe->lock){......}, at: [<806be98e>] pmb_init+0xc6/0x4dc other info that might help us debug this: 1 lock held by swapper/0: #0: (&pmbe->lock){......}, at: [<806be98e>] pmb_init+0xc6/0x4dc Signed-off-by: Paul Mundt commit 47da88f36639b8de57f6cdd680f8c27528ccd67c Author: Paul Mundt Date: Thu Oct 14 03:04:44 2010 +0900 sh: mach-sdk7786: Add support for fpga gpios. The sdk7786 FPGA supports a number of user settable input switches that are otherwise unused. This wires up a dummy gpio chip for the switch bank to simply expose them to userspace. Signed-off-by: Paul Mundt commit fac70d51914674ce8ae742ed73441ddb4770ad20 Author: Eli Cohen Date: Mon Sep 27 17:51:11 2010 -0700 IB/mad: IBoE supports only QP1 (no QP0) Since IBoE is using Ethernet as its link layer, there is no central management entity so there is need for QP0. QP1 is still needed since it handles communications between CM agents. This patch will skip QP0 and create only QP1 for IBoE ports. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 7b4c876961ad6ddcfacd69b25fe7e13ff41fe322 Author: Eli Cohen Date: Mon Sep 27 17:51:11 2010 -0700 IPoIB: Skip IBoE ports IPoIB is IP-over-Infiniband link layer. In the case of IBoE, the link layer is Ethernet and IP can work directly over Ethernet, so disable IPoIB for non-IB_LINK_LAYER_INFINIBAND ports. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 9fbb711ee1a70826440502133903d4df025c0b78 Author: David S. Miller Date: Wed Oct 13 09:11:26 2010 -0700 s390: ctcm_mpc: Fix build after netdev refcount changes. Reported-by: Sachin Sant Signed-off-by: David S. Miller commit 9ecdafd883db3c43296797382fc0b2c868144070 Author: Jan Engelhardt Date: Wed Oct 13 16:42:02 2010 +0200 netfilter: xtables: remove unused defines Signed-off-by: Jan Engelhardt commit 75f0a0fd787bfa3ea1a916ca632a5b9e0007cbb7 Author: Jan Engelhardt Date: Wed Oct 13 16:37:45 2010 +0200 netfilter: xtables: unify {ip,ip6,arp}t_error_target Unification of struct *_error_target was forgotten in v2.6.16-1689-g1e30a01. Signed-off-by: Jan Engelhardt commit 243bf6e29eef642de0ff62f1ebf58bc2396d6d6e Author: Jan Engelhardt Date: Wed Oct 13 16:28:00 2010 +0200 netfilter: xtables: resolve indirect macros 3/3 commit 87a2e70db62fec7348c6e5545eb7b7650c33d81b Author: Jan Engelhardt Date: Wed Oct 13 16:11:22 2010 +0200 netfilter: xtables: resolve indirect macros 2/3 Signed-off-by: Jan Engelhardt commit 12b00c2c025b8af697d9a022ea2e928cad889ef1 Author: Jan Engelhardt Date: Wed Oct 13 15:56:56 2010 +0200 netfilter: xtables: resolve indirect macros 1/3 Many of the used macros are just there for userspace compatibility. Substitute the in-kernel code to directly use the terminal macro and stuff the defines into #ifndef __KERNEL__ sections. Signed-off-by: Jan Engelhardt commit 14cae9bd2faf6d0d75702c2e107e75207bcdfec1 Author: Borislav Petkov Date: Wed Sep 29 10:08:23 2010 +0200 tracing: Fix function-graph build warning on 32-bit Fix kernel/trace/trace_functions_graph.c: In function ‘trace_print_graph_duration’: kernel/trace/trace_functions_graph.c:652: warning: comparison of distinct pointer types lacks a cast when building 36-rc6 on a 32-bit due to the strict type check failing in the min() macro. Signed-off-by: Borislav Petkov Cc: Chase Douglas Cc: Steven Rostedt Cc: Ingo Molnar LKML-Reference: <20100929080823.GA13595@liondog.tnic> Signed-off-by: Frederic Weisbecker commit 0982258264d2f615612ab957634efdeb874f47c8 Author: Dmitry Eremin-Solenikov Date: Mon Oct 4 21:46:10 2010 -0700 Input: serio - support multiple child devices per single parent Some (rare) serio devices need to have multiple serio children. One of the examples is PS/2 multiplexer present on several TQC STKxxx boards, which connect PS/2 keyboard and mouse to single tty port. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Dmitry Torokhov commit a8b3c0f57beaba9035e5339175628b63e551b243 Author: Dmitry Torokhov Date: Mon Oct 4 21:46:10 2010 -0700 Input: synaptics - simplify pass-through port handling There was too much knowledge about internals if serio in the pass-through handling, clean it up. Signed-off-by: Dmitry Torokhov commit 4780c8df3856398020be2928d9e9fa8c457a09a4 Author: Naveen Kumar Gaddipati Date: Mon Oct 4 22:32:48 2010 -0700 Input: add ROHM BU21013 touch panel controller support Add the ROHM BU21013 capacitive touch panel controller support with i2c interface. Acked-by: Linus Walleij Signed-off-by: Naveen Kumar Gaddipati Acked-by: Henrik Rydberg Signed-off-by: Dmitry Torokhov commit 9a34bc61160167319fcfa59842cc0373487d533b Author: Mike Turquette Date: Wed Sep 29 23:38:01 2010 -0700 Input: omap4-keypad - wake-up on events & long presses Program keyboard controller to generate a wake-up request on events and on long key presses. It will not generate wake-up requests on timeouts since driver code does not handle them. This allows keyboard to wake-up OMAP from suspend. Signed-off-by: Mike Turquette Signed-off-by: Abraham Arce Signed-off-by: Dmitry Torokhov commit f8038c425148ddd50c7e7223a9a6e71ce5f7e42d Author: Abraham Arce Date: Wed Sep 29 23:37:04 2010 -0700 Input: omap4-keypad - fix interrupt line configuration Select correct interrupt line behaviour. Signed-off-by: Abraham Arce Signed-off-by: Dmitry Torokhov commit 05362f486bf6e6b8adc77424b6edf2f3cd6816ae Author: Abraham Arce Date: Wed Sep 29 23:36:48 2010 -0700 Input: omap4-keypad - SYSCONFIG register configuration Remove SYSCONFIG register configuration, omap hwmod framework will use internal API to modify as required. Other minor updates: - Change a variable name from DEF to VAL, this represents a value - Break line width to 80 characters Signed-off-by: Abraham Arce Signed-off-by: Dmitry Torokhov commit f3a1ba60dbdbf46f2715cc4e3f8abc9d65c4d9bf Author: Abraham Arce Date: Wed Sep 29 23:35:57 2010 -0700 Input: omap4-keypad - use platform device helpers Get mem and irq resources using platform helpers - platform_get_base - platform_get_irq Signed-off-by: Abraham Arce Signed-off-by: Dmitry Torokhov commit 4c61c8457ee92a2afc5a43aa0821971727ebd38c Author: Sundar Iyer Date: Wed Sep 29 19:43:09 2010 -0700 ux500 - add platform data for Nomadik SKE keypad controller Signed-off-by: Sundar Iyer Signed-off-by: Dmitry Torokhov commit 1158f0f16224068e27e384c1a27218aa00243967 Author: Sundar Iyer Date: Wed Sep 29 19:42:14 2010 -0700 Input: add support for Nomadik SKE keypad controller Add support for the keypad controller in the Scroll Key Encoder (SKE) module on the Nomadik family and the DB8500 SoC. Acked-by: Linus Walleij Signed-off-by: Sundar Iyer Signed-off-by: Dmitry Torokhov commit a9cc0202227caa4adb5e823d5fbce7790364941f Author: Dmitry Torokhov Date: Wed Sep 29 18:36:00 2010 -0700 Input: twl4030_keypad - fix error handling path We should not try to call free_irq() when request_irq() failed. Reported-by: G, Manjunath Kondaiah Signed-off-by: Dmitry Torokhov commit 6792cbbb254712a8c0fa8a4c97c8d521c7c41c28 Author: Davidlohr Bueso Date: Wed Sep 29 18:53:35 2010 -0700 Input: return -ENOMEM in select drivers when memory allocation fails Instead of using -1 let's start using proper error codes. Signed-off-by: Davidlohr Bueso Signed-off-by: Dmitry Torokhov commit 7aed3fb73f4ac7912ce9e0c232a15ee012bf4be5 Author: Dmitry Torokhov Date: Wed Sep 29 18:50:17 2010 -0700 Input: emu10k1 - do not leave device enabled when probe fails Rework emu_probe() to make sure we leave the device disabled if probe fails for any reason. Signed-off-by: Dmitry Torokhov commit 05e93a746a0781429de73117b2f2ef48d2312759 Author: Dzianis Kahanovich Date: Wed Sep 29 18:38:10 2010 -0700 Input: hil_kbd - add missing MODULE_DEVICE_TABLE() Signed-off-by: Dzianis Kahanovich Signed-off-by: Dmitry Torokhov commit 3d8a1a6a8af910cc2da566080d111e062a124ba6 Merge: 1b13fe6 5d0d715 Author: Ingo Molnar Date: Wed Oct 13 15:44:24 2010 +0200 Merge branch 'amd-iommu/2.6.37' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu into core/iommu commit 6edc323db720c65b9e6a770b4bed98f251dd49f0 Author: Tirumala Marri Date: Mon Sep 13 13:26:11 2010 +0000 powerpc/44x: Add support for the AMCC APM821xx SoC This patch adds CPU, device tree, defconfig and bluestone board support for APM821xx SoC. Signed-off-by: Tirumala R Marri Signed-off-by: Josh Boyer commit 03ee0c42a77fbf60bfa6b0eacaff30ae4e19fce8 Author: Nicolas Palix Date: Fri Oct 8 21:27:41 2010 +0200 Coccinelle: Use the -no_show_diff option for org and report mode This allows to write the semantic patches with code sharing for the matching parts. Signed-off-by: Nicolas Palix Signed-off-by: Julia Lawall Signed-off-by: Michal Marek commit 2c1160c87465ee2d61eee14596e5376d2ff74f31 Author: Nicolas Palix Date: Fri Oct 8 21:27:40 2010 +0200 Coccinelle: Add a new mode named 'chain' spatch now returns -1 when a virtual rule (given with -D on the command line) is not defined in the semantic patch. Using this spatch feature, coccicheck is now tries several modes by default, in the order: patch, report, context, org Signed-off-by: Nicolas Palix Signed-off-by: Julia Lawall Signed-off-by: Michal Marek commit e90f6590219a0082618b9b6828458b1c74f37cc0 Author: Nicolas Palix Date: Fri Oct 8 21:27:39 2010 +0200 Coccinelle: Use new comment format to explain kfree.cocci Use new comment format to separate proposed commit message and information about generated false positives Signed-off-by: Nicolas Palix Signed-off-by: Julia Lawall Signed-off-by: Michal Marek commit 3c908417677f890265ff9d5efd372207cf75fd45 Author: Nicolas Palix Date: Fri Oct 8 21:27:38 2010 +0200 Coccinelle: Improve user information with a new kind of comment Improve user information with a new kind of comment about semantic patch output. Fix spelling. Signed-off-by: Nicolas Palix Signed-off-by: Julia Lawall Signed-off-by: Michal Marek commit 32af08987b8f093195f8eef3ee4e1dbcfee891cd Author: Nicolas Palix Date: Wed Oct 13 00:49:07 2010 +0200 Coccinelle: Update documentation - Add information about use of the C={1,2} make flag - Add a description of the new chain mode mechanism - Add a link to the wiki Signed-off-by: Nicolas Palix Signed-off-by: Julia Lawall Signed-off-by: Michal Marek commit af78f217127dc0b6d364ca67ce128f7aafed99f9 Author: Nicolas Palix Date: Fri Oct 8 21:27:36 2010 +0200 MAINTAINERS: Coccinelle: Update email address Update my email address Signed-off-by: Nicolas Palix Signed-off-by: Michal Marek commit cf4bb69884c8f6a5791e0e251f0b9dc5d32fc256 Author: Peter Ujfalusi Date: Wed Oct 13 11:56:28 2010 +0300 ASoC: tlv320dac33: Control for line output gain New control to select the line output gain. This gain control affects the linein-to-lineout and dac-to-loneout gain differently. Use enum type to select the desired gain combination. Signed-off-by: Peter Ujfalusi Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 550a1ef18a53cae3d908edceca9daaafbedcf12f Author: Paul Mundt Date: Wed Oct 13 19:24:55 2010 +0900 sh: use pr_fmt for clock framework, too. Signed-off-by: Paul Mundt commit 69395396a0a8866f30d59c66b7be1912ccb5d160 Author: Magnus Damm Date: Wed Oct 13 07:44:36 2010 +0000 sh: remove name and id from struct clk Remove "name" and "id" from drivers/sh/ struct clk. The struct clk members "name" and "id" are not used now when matching is done through clkdev. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 1ffbb037d8e81ba4f09901451b39c8f178b05559 Author: Magnus Damm Date: Wed Oct 13 07:17:45 2010 +0000 sh: free-without-alloc fix for sh_mobile_lcdcfb Without this fix the LCDC driver will try to free framebuffer memory even though the allocation failed. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 0f9141c974b2dc29b7d1cf245bbf4685350521be Author: Mark Brown Date: Tue Oct 12 15:43:21 2010 +0100 ASoC: Pay attention to driver supplied DAI IDs The driver can specify a DAI ID number so use that. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 2b194f9db444875b4509e6dc92c949c57437c826 Author: Mark Brown Date: Wed Oct 13 10:52:16 2010 +0100 ASoC: Check list debugfs files for PAGE_SIZE overflow Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 4abe8e16a8ad879027de3a0a088f281577ad24a9 Author: Mark Brown Date: Tue Oct 12 17:41:03 2010 +0100 ASoC: Move soc-core module init next to functon definition Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 90e09a59110949bda40c13b4e5925f3acd3597b0 Author: Magnus Damm Date: Wed Oct 13 07:29:31 2010 +0000 ARM: shmobile: use device name for timer clocks Move SH-Mobile ARM systems over from the legacy "clk" member of struct sh_timer_config to using the device name and clkdev for clock matching. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 0fb0834b36c2a952640883cd4b68f01d0843eca6 Author: Magnus Damm Date: Wed Oct 13 07:39:18 2010 +0000 ARM: shmobile: make AP4EVB MMCIF resource string consistent Just use MMCIF as name to match the sh7372 data sheet. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 934e40781aa92dae0b9d753d7de4a743c96b9bd2 Author: Magnus Damm Date: Wed Oct 13 07:22:11 2010 +0000 ARM: shmobile: break out sh7372 platform devices This patch introduces sh7372_late_devices which should include all regular processor specific platform devices. Early platform devices for console and timers should be put on the sh7372_early_devices list, all other devices should be on sh7372_late_devices. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 8c7f78b3c3f3132a36b4747b2e1283a7ca015edb Author: Mark Brown Date: Tue Oct 12 15:56:09 2010 +0100 ASoC: Restore DAI ID specification for WM8994 WM8994 relies on the DAIs having IDs that match the AIF numbers. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 821f4206c4f568bf43e30f1ae5619868fa76413a Author: Mark Brown Date: Tue Sep 21 17:53:38 2010 +0100 ASoC: Add WM8962 microphone bias control We unconditionally require SYSCLK since while only microphone detection specifically requires SYSCLK any actual use case would enable it via some other means but microphone detection may have nothing active other than the bias itself. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit b3235fe420edf7faf5e8e67b978b12d5524fb161 Author: Andrea Gelmini Date: Fri Oct 1 14:15:35 2010 -0700 README: cite nconfig Signed-off-by: Andrea Gelmini Signed-off-by: Andrew Morton Signed-off-by: Michal Marek commit 0afe6b901e432bfd93eca9aefdd2ec537b27d1d3 Author: Mika Westerberg Date: Wed Oct 13 11:30:33 2010 +0300 ASoC: ac97: add MODULE_ALIAS for the platform driver So that modprobe can load the driver automatically when the platform device appears. Signed-off-by: Mika Westerberg Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 0562f7882d968463119bb63d47ef4bdaba7d6631 Author: Mika Westerberg Date: Wed Oct 13 11:30:32 2010 +0300 ASoC: don't register AC97 devices twice With generic AC97 ASoC glue driver (codec/ac97.c), we get following warning when the device is registered (slightly stripped the backtrace): kobject (c5a863e8): tried to init an initialized object, something is seriously wrong. [] (unwind_backtrace+0x0/0xec) [] (kobject_init+0x38/0x70) [] (device_initialize+0x20/0x70) [] (device_register+0xc/0x18) [] (snd_soc_instantiate_cards+0x924/0xacc [snd_soc_core]) [] (snd_soc_register_platform+0x16c/0x198 [snd_soc_core]) [] (platform_drv_probe+0x18/0x1c) [] (driver_probe_device+0xb0/0x16c) [] (__driver_attach+0x5c/0x7c) [] (bus_for_each_dev+0x48/0x78) [] (bus_add_driver+0x98/0x214) [] (driver_register+0xa4/0x130) [] (do_one_initcall+0xd0/0x1a4) [] (sys_init_module+0x12b0/0x1454) This happens because the generic AC97 glue driver creates its codec->ac97 via calling snd_ac97_mixer(). snd_ac97_mixer() provides own version of snd_device.register which handles the device registration when snd_card_register() is called. To avoid registering the AC97 device twice, we add a new flag to the snd_soc_codec: ac97_created which tells whether the AC97 device was created by SoC subsystem. Signed-off-by: Mika Westerberg Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 7750752a22cbf7760f0073d218c737f5a03bff4a Author: Mika Westerberg Date: Wed Oct 13 11:30:31 2010 +0300 ASoC: ac97: don't call snd_soc_new_ac97_codec at probe It is not needed since snd_ac97_mixer() will create a new ac97 object for us. Removing the call also fixes a memory leak since codec->ac97 is set to NULL at the beginning of snd_ac97_mixer(). Signed-off-by: Mika Westerberg Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 5d0d71569e671239ae0d905ced9b65cd843f99ee Author: Joerg Roedel Date: Wed Oct 13 11:13:21 2010 +0200 x86/amd-iommu: Update copyright headers This patch updates the copyright headers in all source files of the AMD IOMMU driver. Signed-off-by: Joerg Roedel commit 5bcd757f93cc713cf61bbeefceda7539d9afca55 Author: Matthew Garrett Date: Mon Oct 4 14:59:31 2010 -0400 x86/amd-iommu: Reenable AMD IOMMU if it's mysteriously vanished over suspend AMD's reference BIOS code had a bug that could result in the firmware failing to reenable the iommu on resume. It transpires that this causes certain less than desirable behaviour when it comes to PCI accesses, to whit them ending up somewhere near Bristol when the more desirable outcome was Edinburgh. Sadness ensues, perhaps along with filesystem corruption. Let's make sure that it gets turned back on, and that we restore its configuration so decisions it makes bear some resemblance to those made by reasonable people rather than crack-addled lemurs who spent all your DMA on Thunderbird. Signed-off-by: Matthew Garrett Signed-off-by: Joerg Roedel commit 51c6c9bb34fcd112d4ab8b8f5c1d1b6a10a00e71 Author: Paul Mundt Date: Wed Oct 13 17:52:14 2010 +0900 sh: perf: Set up perf_max_events. Presently this is uninitialized in the architecture code, so it's artificlally capped to the default initialization value. Set it up at registration time. Signed-off-by: Paul Mundt commit 4108d9ba9091c55cfb968d42dd7dcae9a098b876 Author: matt mooney Date: Wed Sep 22 20:51:09 2010 +0000 powerpc/Makefiles: Change to new flag variables Replace EXTRA_CFLAGS with ccflags-y and EXTRA_AFLAGS with asflags-y. Signed-off-by: matt mooney Signed-off-by: Benjamin Herrenschmidt commit fc15351d9d63a35fd00c15850fa93a27940f16a0 Author: Arnd Bergmann Date: Tue Sep 14 10:22:33 2010 +0000 powerpc/spufs: Use llseek in all file operations The default for llseek is changing, so we need explicit operations everywhere. Signed-off-by: Arnd Bergmann Cc: Jeremy Kerr Cc: linuxppc-dev@ozlabs.org Signed-off-by: Benjamin Herrenschmidt commit f56029b5eafda6175be4e5c91ca69c04ccda3661 Author: Nishanth Aravamudan Date: Fri Oct 1 11:26:18 2010 +0000 powerpc/pseries/xics: Use cpu_possible_mask rather than cpu_all_mask Current firmware only allows us to send IRQs to the first processor or all processors. We currently check to see if the passed in mask is equal to the all_mask, but the firmware is only considering whether the request is for the equivalent of the possible_mask. Thus, we think the request is for some subset of CPUs and only assign IRQs to the first CPU (on systems without irqbalance running) as evidenced by /proc/interrupts. By using possible_mask instead, we account for this and proper interleaving of interrupts occurs. Signed-off-by: Nishanth Aravamudan Signed-off-by: Benjamin Herrenschmidt commit bc0df9ec4c014dac85c0358f56be4223bf0f3334 Author: Nishanth Aravamudan Date: Wed Sep 15 08:05:50 2010 +0000 powerpc/pci: Cleanup device dma setup code Use set_dma_ops and remove unused oddly-named temp pointer sd. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Acked-by: Grant Likely Signed-off-by: Benjamin Herrenschmidt commit e72ed6b509a62605fe9aca195c6037abdda6c1ac Author: Nishanth Aravamudan Date: Wed Sep 15 08:05:49 2010 +0000 powerpc/pseries: Use kmemdup While looking at some code paths I came across this code that zeros memory then copies over the entire length. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Signed-off-by: Benjamin Herrenschmidt commit 45848e0fc1fce399651b3f480bdeb82cc6d3d15a Author: Nishanth Aravamudan Date: Wed Sep 15 08:05:48 2010 +0000 powerpc/viobus: Free TCE table on device release Release the TCE table as the XXX suggests, except on FW_FEATURE_ISERIES, where the tables are allocated globally and reused. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Signed-off-by: Benjamin Herrenschmidt commit edea8f6f48416d9a6fd1babb76c19cf05c802325 Author: Nishanth Aravamudan Date: Wed Sep 15 08:05:47 2010 +0000 powerpc/vio: Use put_device() on device_register failure The kernel doc for device_register (and device_initialize) very clearly state to call put_device not kfree after calling, even on error. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Acked-by: Grant Likely Signed-off-by: Benjamin Herrenschmidt commit ffa56e555a6e4c205e879636e6cd6104ce03421f Author: Nishanth Aravamudan Date: Wed Sep 15 08:05:46 2010 +0000 powerpc/dma: Fix check for direct DMA support The current check is wrong because it does not take the DMA offset intot account, and in the case of a driver which doesn't actually support 64bits would falsely report that device as working. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Signed-off-by: Benjamin Herrenschmidt commit 1cb8e85a9d9da4192acfb5f70a80b0c5ce8c3e8f Author: Nishanth Aravamudan Date: Wed Sep 15 08:05:45 2010 +0000 powerpc/dma: Fix dma_iommu_dma_supported compare The table offset is in entries, each of which imply a dma address of an IOMMU page. Also, we should check the device can reach the whole IOMMU table. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Signed-off-by: Benjamin Herrenschmidt commit dda804ad4023cc202466c46fcfcc163131953838 Author: Nishanth Aravamudan Date: Wed Sep 15 08:13:19 2010 +0000 powerpc/pci: Fix return type of BUID_{HI,LO} macros BUID_HI and BUID_LO are used to pass data to call_rtas, which expects ints or u32s. But the macro doesn't cast the return, so the result is still u64. Use the upper_32_bits and lower_32_bits macros that have been added to kernel.h. Found by getting printf format errors trying to debug print the args, no actual code change for 64 bit kernels where the macros are actually used. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan Acked-by: Linas Vepstas Signed-off-by: Benjamin Herrenschmidt commit 8032214346c0c892e859cf6eee6c8ba305cbfe78 Author: Julia Lawall Date: Sun Sep 5 09:00:22 2010 +0000 i2c/i2c-pasemi.c: Fix unsigned return type The function has an unsigned return type, but returns a negative constant to indicate an error condition. The result of calling the function is always stored in a variable of type (signed) int, and thus unsigned can be dropped from the return type. A sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @exists@ identifier f; constant C; @@ unsigned f(...) { <+... * return -C; ...+> } // Signed-off-by: Julia Lawall Acked-by: Olof Johansson Signed-off-by: Benjamin Herrenschmidt commit a655237fa2f9e4afe9949abe2c511432ab9537dd Author: Julia Lawall Date: Sat Sep 4 00:12:44 2010 +0000 powerpc/irq.c: Add of_node_put to avoid memory leak In this case, a device_node structure is stored in another structure that is then freed without first decrementing the reference count of the device_node structure. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression x; identifier f; position p1,p2; @@ x@p1->f = \(of_find_node_by_path\|of_find_node_by_name\|of_find_node_by_phandle\|of_get_parent\|of_get_next_parent\|of_get_next_child\|of_find_compatible_node\|of_match_node\|of_find_node_by_type\|of_find_node_with_property\|of_find_matching_node\|of_parse_phandle\|of_node_get\)(...); ... when != of_node_put(x) kfree@p2(x) @script:python@ p1 << r.p1; p2 << r.p2; @@ cocci.print_main("call",p1) cocci.print_secs("free",p2) // Signed-off-by: Julia Lawall Signed-off-by: Benjamin Herrenschmidt commit 689fd14ae9b2af5c6862ddc11d4791ec9a938cb3 Author: Joe Perches Date: Sat Sep 11 19:10:53 2010 +0000 powerpc: Remove pr_ uses of KERN_ Signed-off-by: Joe Perches Signed-off-by: Benjamin Herrenschmidt commit 4e74fd7d0a6eda70f9356c113450182a844abcf1 Author: Joe Perches Date: Mon Sep 13 09:47:40 2010 +0000 powerpc: Use static const char arrays Signed-off-by: Joe Perches Reviewed-by: Stephen Rothwell Signed-off-by: Benjamin Herrenschmidt commit 410bccf978819394669dede571de878f4576fd3e Author: Nathan Fontenot Date: Fri Sep 10 09:42:36 2010 +0000 powerpc/pseries: Partition migration in the kernel Enable partition migration in the kernel. To do this a new sysfs file, /sys/kernel/mobility/migration, is created. In order to initiate a migration the stream id (generated by the HMC managing the system) is written to this file. After a migration occurs, and what is the majority of this code, the device tree needs to be updated for the new system the partition is running on. This is done via the ibm,update-nodes and ibm,update-properties rtas calls which return information regarding which nodes and properties of the device tree are to be added/removed/updated. Signed-off-by: Nathan Fontenot Signed-off-by: Benjamin Herrenschmidt commit d8862be1229534aac1768b8ac663e8fb2bb6ddf6 Author: Nathan Fontenot Date: Fri Sep 10 09:41:35 2010 +0000 powerpc/pseries: Export rtas_ibm_suspend_me() Export the rtas_ibm_suspend_me() routine. This is needed to perform partition migration in the kernel. Signed-off-by: Nathan Fontenot Signed-off-by: Benjamin Herrenschmidt commit 206489748b64510d655e5c99193426667463dd15 Author: Nathan Fontenot Date: Fri Sep 10 09:40:32 2010 +0000 powerpc/pseries: Export device tree updating routines Export routines associated with adding and removing device tree nodes on pseries needed for device tree updating. Signed-off-by: Nathan Fontenot Signed-off-by: Benjamin Herrenschmidt commit 4783f393de3077211c14675a0e57c8a02e9190b0 Merge: 9f5f9ff 5b8544c Author: Benjamin Herrenschmidt Date: Wed Oct 13 16:18:36 2010 +1100 Merge remote branch 'kumar/merge' into next commit a9fadeefdc869ff792591f57a9e33d8790d63292 Author: Jeremy Kerr Date: Sun Oct 10 21:24:10 2010 -0600 of: use __be32 types for big-endian device tree data Use the sparse annotations so we can keep track of endianness. Signed-off-by: Jeremy Kerr Signed-off-by: Grant Likely commit 52f6537cb2f0b461a9ce3457c01a6cfa2ae0bb22 Author: Andres Salomon Date: Sun Oct 10 21:35:05 2010 -0600 of/irq: remove references to NO_IRQ in drivers/of/platform.c Instead of referencing NO_IRQ in platform.c, define some helper functions in irq.c to call instead from platform.c. Keep NO_IRQ usage local to irq.c, and define NO_IRQ if not defined in headers. Signed-off-by: Andres Salomon Signed-off-by: Grant Likely commit e2f2a93b6384cfe0face0be595bfbda1475d864b Author: Andres Salomon Date: Sun Oct 10 21:52:57 2010 -0600 of/promtree: add package-to-path support to pdt package-to-path is a PROM function which tells us the real (full) name of the node. This provides a hook for that in the prom ops struct, and makes use of it in the pdt code when attempting to determine a node's name. If the hook is available, try using it (falling back to looking at the "name" property if it fails). Signed-off-by: Andres Salomon Signed-off-by: Grant Likely commit ed41850298f7a55519de0b8573e217ed8a45c199 Author: Andres Salomon Date: Sun Oct 10 21:51:25 2010 -0600 of/promtree: add of_pdt namespace to pdt code For symbols still lacking namespace qualifiers, add an of_pdt_ prefix. Signed-off-by: Andres Salomon Acked-by: David S. Miller Signed-off-by: Grant Likely commit f90c34bd658d240cb5ebc5fe0a17796e590c6ec8 Author: Andres Salomon Date: Sun Oct 10 21:49:45 2010 -0600 of/promtree: no longer call prom_ functions directly; use an ops structure Rather than assuming an architecture defines prom_getchild and friends, define an ops struct with hooks for the various prom functions that pdt.c needs. This ops struct is filled in by the arch-(and sometimes firmware-)specific code, and passed to of_pdt_build_devicetree. Update sparc code to define the ops struct as well. Signed-off-by: Andres Salomon Acked-by: David S. Miller Signed-off-by: Grant Likely commit f3016fa591c788d6d545ef7907e24c8b5d788759 Author: Mingkai Hu Date: Tue Oct 12 18:18:33 2010 +0800 powerpc/of: add eSPI controller dts bindings and DTS modification Also modifiy the document of cell-index in SPI controller. Add the SPI flash(s25fl128p01) support on p4080ds and mpc8536ds board. Signed-off-by: Mingkai Hu Signed-off-by: Grant Likely commit 8b60d6c25b2a2d3525d5322de856c3ca408e5783 Author: Mingkai Hu Date: Tue Oct 12 18:18:32 2010 +0800 spi/fsl_spi: add eSPI controller support Add eSPI controller support based on the library code spi_fsl_lib.c. The eSPI controller is newer controller 85xx/Pxxx devices supported. There're some differences comparing to the SPI controller: 1. Has different register map and different bit definition So leave the code operated the register to the driver code, not the common code. 2. Support 4 dedicated chip selects The software can't controll the chip selects directly, The SPCOM[CS] field is used to select which chip selects is used, and the SPCOM[TRANLEN] field is set to tell the controller how long the CS signal need to be asserted. So the driver doesn't need the chipselect related function when transfering data, just set corresponding register fields to controll the chipseclect. 3. Different Transmit/Receive FIFO access register behavior For SPI controller, the Tx/Rx FIFO access register can hold only one character regardless of the character length, but for eSPI controller, the register can hold 4 or 2 characters according to the character lengths. Access the Tx/Rx FIFO access register of the eSPI controller will shift out/in 4/2 characters one time. For SPI subsystem, the command and data are put into different transfers, so we need to combine all the transfers to one transfer in order to pass the transfer to eSPI controller. 4. The max transaction length limitation The max transaction length one time is limitted by the SPCOM[TRANSLEN] field which is 0xFFFF. When used mkfs.ext2 command to create ext2 filesystem on the flash, the read length will exceed the max value of the SPCOM[TRANSLEN] field. Signed-off-by: Mingkai Hu Signed-off-by: Grant Likely commit b36ece832512c1a0afa54ff0a56d63492a1caf08 Author: Mingkai Hu Date: Tue Oct 12 18:18:31 2010 +0800 spi/mpc8xxx: refactor the common code for SPI/eSPI controller Refactor the common code in file spi_fsl_spi.c to spi_fsl_lib.c used by SPI/eSPI controller driver as a library, and leave the QE/CPM SPI controller code in the SPI controller driver spi_fsl_spi.c. Because the register map of the SPI controller and eSPI controller is so different, also leave the code operated the register to the driver code, not the common code. Signed-off-by: Mingkai Hu Signed-off-by: Grant Likely commit 3272029fb33a88873b9b02224ebeb23bf3a4668e Author: Mingkai Hu Date: Tue Oct 12 18:18:30 2010 +0800 spi/mpc8xxx: rename spi_mpc8xxx.c to spi_fsl_spi.c This will pave the way to refactor out the common code which can be used by the eSPI controller driver, and rename the SPI controller dirver to the file spi_fsl_spi.c. Signed-off-by: Mingkai Hu Signed-off-by: Grant Likely commit 492c032beccd53f807811b6c14909630d409dd8c Merge: f9d629c cb655d0 Author: Grant Likely Date: Tue Oct 12 21:38:02 2010 -0600 Merge commit 'v2.6.36-rc7' into spi/next commit f9d629c737cb6687216a0c540b5466a4bd8b070a Author: Linus Walleij Date: Fri Oct 1 13:33:13 2010 +0200 spi/pl022: fix dubious allocation staticize platform data This removes some dubious allocation of a local chipinfo struct in favor of a constant preset, tagging that one const revealed further problems with platform data being modified so fixed up these too. Reported-by: Virupax Sadashivpetimath Signed-off-by: Linus Walleij Signed-off-by: Grant Likely commit 5a1c98be1de165c8ad1bd5343a5d779230669489 Author: Linus Walleij Date: Fri Oct 1 11:47:32 2010 +0200 spi/pl022: get rid of chipinfo dev pointer What is the dev pointer doing inside the platform data anyway. We have another pointer to the actual device at hand, use that. Signed-off-by: Linus Walleij Signed-off-by: Grant Likely commit bde435a9ca376d0b7809768ca803dbf14416b9c1 Author: Kevin Wells Date: Thu Sep 16 06:18:50 2010 -0700 spi/pl022: Add spi->mode support to AMBA SPI driver This patch adds spi->mode support for the AMBA pl022 driver and allows spidev to correctly alter SPI modes. Unused fields used in the pl022 header file for the pl022_config_chip have been removed. The ab8500 client driver selects the data transfer size instead of the platform data. For platforms that use the amba pl022 driver, the unused fields in the controller data structure have been removed and the .mode field in the SPI board info structure is used instead. Signed-off-by: Kevin Wells Tested-by: Linus Walleij Acked-by: Linus Walleij Signed-off-by: Grant Likely commit fadcf49b9bd7ec5fb69befbf477e747d5b6a0328 Author: matt mooney Date: Fri Sep 24 12:17:32 2010 -0700 spi: change to new flag variable Replace EXTRA_CFLAGS with ccflags-y. Signed-off-by: matt mooney Signed-off-by: Grant Likely commit b1b6b9aa6fd32db97469e65d301ebc32dcd67992 Author: Linus Walleij Date: Wed Sep 29 17:31:35 2010 +0900 spi/pl022: add PrimeCell generic DMA support This extends the PL022 SSP/SPI driver with generic DMA engine support using the PrimeCell DMA engine interface. Also fix up the test code for the U300 platform. Signed-off-by: Linus Walleij Signed-off-by: Grant Likely commit cdbc8f042f4f2568bb58ba8bd50d0692f3059417 Author: Grant Likely Date: Fri Oct 8 12:56:13 2010 -0600 spi/topcliff: Tidy up Kconfig help text The original didn't specify Topcliff in the config prompt text. Signed-off-by: Grant Likely commit 65308c46b760bb2ccb043b47bb5f053dbb8d11b5 Author: Grant Likely Date: Wed Sep 29 17:31:34 2010 +0900 spi/topcliff: cleanups for style and conciseness This patch makes multiple cleanups to the new topcliff pch spi driver including, but not limited to, - removing superfluous brackets around variables - open coding functions that are only used once - removing unnecessary line breaks - removing unused functions - simplifying the interrupt enable/disable code - remove unnecessary (void *) casts. - remove b_mem_fail from pch_spi_set_tx to code it more cleanly - shorten dev_dbg() messages for conciseness and readability More cleanups are still needed in this driver. In particular, - the driver filename should be changed to spi_topcliff_pch.c - many of the dev_dbg() lines should be trimmed (particularly the ones on unconditional code paths). - I suspect that the locking model not correct. I'd like to know what drivers' critical regions are, and how they are protected. - get_resources and release_resources probably should be open coded in .probe and .release respectively. Signed-off-by: Grant Likely commit bf1ebf007911d70a89de9a4a1b36d403e8eb064b Author: Daniel Drake Date: Sun Oct 10 10:40:32 2010 +0100 x86, olpc: Add XO-1 poweroff support Add a pm_power_off handler for the OLPC XO-1 laptop. The driver can be built modular and follows the behaviour of the APM driver, setting pm_power_off to NULL on unload. However, the ability to unload the module will probably be removed (with a simple __module_get(THIS_MODULE)) if/when XO-1 suspend/resume support is added to this file at a later date. Signed-off-by: Daniel Drake LKML-Reference: <20101010094032.9AE669D401B@zog.reactivated.net> Signed-off-by: H. Peter Anvin commit d601c795c41c0016790ff1a92f2307fd4ff29791 Author: Daniel Walker Date: Tue Jul 27 14:04:31 2010 -0700 drivers: msm: video: add dev_set_name call This is required before the driver can successfully be registered. Adapted from Arve Hjønnevåg changes in the Google tree. Signed-off-by: Daniel Walker commit 5ad43ff98ac926e37ecbdef04ba7d4d104604028 Author: Daniel Walker Date: Tue Jul 27 14:04:30 2010 -0700 drivers: video: msm: fix hang on disable_irq There's a resource race around disable_irq. Using the nosync version allows the function to continue and prevents the hang. Adapted from Arve Hjønnevåg changes in the Google tree. Signed-off-by: Daniel Walker commit 2a12400eed8be0d5790108cba3908a71d6bb9cae Author: Tony Lindgren Date: Tue Oct 12 16:07:51 2010 -0700 omap: Fix spotty MMC voltages As noted by Michał Mirosław , the voltages should cover the supported voltage range, or support only one voltage. As all these boards are using a GPIO to enable the power, chances are that only 3.3V cards are supported on these boards. Reported-by: Michał Mirosław Signed-off-by: Tony Lindgren commit c7fc2de0c83dbd2eaf759c5cd0e2b9cf1eb4df3a Author: Yinghai Lu Date: Tue Oct 12 14:07:09 2010 -0700 memblock, bootmem: Round pfn properly for memory and reserved regions We need to round memory regions correctly -- specifically, we need to round reserved region in the more expansive direction (lower limit down, upper limit up) whereas usable memory regions need to be rounded in the more restrictive direction (lower limit up, upper limit down). This introduces two set of inlines: memblock_region_memory_base_pfn() memblock_region_memory_end_pfn() memblock_region_reserved_base_pfn() memblock_region_reserved_end_pfn() Although they are antisymmetric (and therefore are technically duplicates) the use of the different inlines explicitly documents the programmer's intention. The lack of proper rounding caused a bug on ARM, which was then found to also affect other architectures. Reported-by: Russell King Signed-off-by: Yinghai Lu LKML-Reference: <4CB4CDFD.4020105@kernel.org> Cc: Jeremy Fitzhardinge Signed-off-by: H. Peter Anvin commit 5e5b3a9dc8405f6a49531a02754a6cc2a1c6cd28 Author: Paul Mundt Date: Wed Oct 13 07:17:03 2010 +0900 sh: perf: Support SH-X3 hardware counters. The PMCAT location has conveniently moved on newer SH-X3 parts, special case this for now with a note. This will probably want to be redone in a less visually offensive way when/if more information becomes available. Signed-off-by: Paul Mundt commit c0f37d2ac34520e992b57115b81294734688b58d Merge: 5d4bff9 c75f2aa e33621a 9f081ce 04a3440 48a4b30 85718fa Author: Tony Luck Date: Tue Oct 12 15:06:59 2010 -0700 Merge branches 'release', 'drop_do_IRQ', 'fix_early_irq', 'misc-2.6.37', 'next-fixes', 'optimize-unwind', 'remove-compat-h' and 'stack_trace' into release commit ace2dc7d12693545b67f15ab8cdb3d255c937713 Author: Paul Mundt Date: Wed Oct 13 06:55:26 2010 +0900 sh: wire up perf alignment and emulation faults. This plugs in the alignment and emulation fault reporting for perf sw events. Signed-off-by: Paul Mundt commit af73713642c1c02e5afefb0f807f406e835c0b7f Author: nohee ko Date: Tue Oct 12 13:33:29 2010 -0700 staging: brcm80211: bug fix- rmmod hang problem Bug fix - rmmod hang problem. Can keep both of kthread & down_interruptible. And in the meantime, can terminate the threads properly during rmmod process. Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit c11b0ef8fe171f0b50999d61e401e4908980a774 Author: Greg Kroah-Hartman Date: Tue Oct 12 14:04:26 2010 -0700 Staging: brcm80211: remove sbpciregs_t typedef don't use a typedef, use a 'struct'. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 4de43a6b4cf002e343cf39fa27a3f46c5dc19411 Author: Anand Gadiyar Date: Tue Oct 12 13:27:58 2010 +0000 ASoC: OMAP4: MCPDM: Remove unnecessary include of plat/control.h Commit 346a5c890 (OMAP: control: move plat-omap/control.h to mach-omap2/control.h) in the linux-omap tree removed plat/control.h and most of its callers. This one slipped through - breaking the build as below when CONFIG_SND_OMAP_SOC_MCPDM is defined. Fix this. CC sound/soc/omap/omap-mcpdm.o sound/soc/omap/omap-mcpdm.c:35: fatal error: plat/control.h: No such file or directory compilation terminated. make[3]: *** [sound/soc/omap/omap-mcpdm.o] Error 1 make[2]: *** [sound/soc/omap] Error 2 make[1]: *** [sound/soc] Error 2 make: *** [sound] Error 2 Signed-off-by: Anand Gadiyar Cc: Misael Lopez Cruz Cc: Liam Girdwood Cc: Mark Brown Cc: Paul Walmsley Acked-by: Mark Brown Acked-by: Jarkko Nikula Acked-by: Paul Walmsley Signed-off-by: Tony Lindgren commit 79fc3e21401be720708931002268b676e36fcf41 Author: Vasiliy Kulikov Date: Sun Oct 10 21:28:35 2010 +0400 serial: omap-serial: fix signess error "ret" is unsigned, so check for (ret < 0) made no sense. Made it signed. Signed-off-by: Vasiliy Kulikov Acked-by: Kevin Hilman commit 3c2c926823305139ef7867dcffa76b3a505a3b02 Author: Greg Kroah-Hartman Date: Tue Oct 12 13:20:38 2010 -0700 Staging: brcm80211: util: remove unneeded use of uintptr uintptr shouldn't be used when you are just casting to a pointer anyway, so remove it from these usages. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit e88cf8eb62536661d9fae0158e9713c5e4ddc405 Author: Greg Kroah-Hartman Date: Tue Oct 12 13:20:19 2010 -0700 Staging: brcm80211: sys: remove unneeded use of uintptr uintptr shouldn't be used when you are just casting to a pointer anyway, so remove it from these usages. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 159a3b78f95eaf52d129833a45f95ca9eeaa77a7 Author: Greg Kroah-Hartman Date: Tue Oct 12 13:20:00 2010 -0700 Staging: brcm80211: phy: remove unneeded use of uintptr uintptr shouldn't be used when you are just casting to a pointer anyway, so remove it from these usages. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 3acf41c5c9c538d22046b5f9822d58c9981e53da Author: Greg Kroah-Hartman Date: Tue Oct 12 13:18:17 2010 -0700 Staging: brcm80211: include: remove unneeded use of uintptr uintptr shouldn't be used when you are just casting to a pointer anyway, so remove it from these usages. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 908ebfb95d16bdf7f5f37ad911ccd9b7350ba780 Author: Joe Perches Date: Tue Oct 12 11:07:44 2010 -0700 ath5k: fix build break from "ath5k: Print out opmode in debugfs" Also improve ath_opmode_to_string usage by having it return UNKNOWN rather than NULL in the event of failure to map the opmode value to a representative string. Signed-off-by: Joe Perches Signed-off-by: John W. Linville commit cfd8e12f42746df396ecbdf7a1d8e92e8e4dbb97 Author: Ben Greear Date: Mon Oct 11 10:28:59 2010 -0700 wireless: Print wiphy name in sysfs. The index cannot be used to reliably reconstruct a phy name, so explicitly add the phy name to sysfs so that scripts can figure out the parent phy device for a particular wireless interface. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit ec1284e104f9a598474cb7979c01633b5d1d550b Author: Greg Kroah-Hartman Date: Tue Oct 12 13:04:58 2010 -0700 Staging: brcm80211: bcmsdpcm: remove a bunch of unused macros These direct memory reading macros are not being used, so remove them. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit c0a19ebc018222ffd1dd93af5b53d9efd779c19b Author: Thomas Gleixner Date: Tue Oct 12 21:58:27 2010 +0200 genirq: Fix CONFIG_GENIRQ_NO_DEPRECATED=y build This option can be set to verify the full conversion to the new chip functions. Fix the fallout of the patch rework, so the core code compiles and works with it. Signed-off-by: Thomas Gleixner commit 5807bae7eda2d6da673c9f9f52460c3fbcea556c Merge: a13c8f3 fd74d06 Author: John W. Linville Date: Tue Oct 12 15:52:25 2010 -0400 Merge branch 'wireless-next-2.6' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-2.6 commit 0965ae88aff802ff48fa2f35fff29feff2754962 Author: Greg Kroah-Hartman Date: Tue Oct 12 12:50:15 2010 -0700 Staging: brcm80211: remove FALSE #define use the kernel provided 'false' value instead, especially as we are using a 'bool' for these variables. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 29b4433d991c88d86ca48a4c1cc33c671475be4b Author: Eric Dumazet Date: Mon Oct 11 10:22:12 2010 +0000 net: percpu net_device refcount We tried very hard to remove all possible dev_hold()/dev_put() pairs in network stack, using RCU conversions. There is still an unavoidable device refcount change for every dst we create/destroy, and this can slow down some workloads (routers or some app servers, mmap af_packet) We can switch to a percpu refcount implementation, now dynamic per_cpu infrastructure is mature. On a 64 cpus machine, this consumes 256 bytes per device. On x86, dev_hold(dev) code : before lock incl 0x280(%ebx) after: movl 0x260(%ebx),%eax incl fs:(%eax) Stress bench : (Sending 160.000.000 UDP frames, IP route cache disabled, dual E5540 @2.53GHz, 32bit kernel, FIB_TRIE) Before: real 1m1.662s user 0m14.373s sys 12m55.960s After: real 0m51.179s user 0m15.329s sys 10m15.942s Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit f0b9f4725180ea58c8da78b3de0b4e0ad180fc2c Author: Dmitry Kravkov Date: Tue Oct 12 09:02:21 2010 +0000 bnx2x: Fixing a typo: added a missing RSS enablement Reported-by: Eric Dumazet Signed-off-by: Dmitry Kravkov Signed-off-by: Vladislav Zolotarov Tested-by: Eric Dumazet Signed-off-by: David S. Miller commit 0f0881b09078fe3a6bc70f05e8ba49a52b2478a2 Author: Greg Kroah-Hartman Date: Tue Oct 12 12:15:18 2010 -0700 Staging: brcm80211: remove TRUE #define use the kernel provided 'true' value instead, especially as we are using a 'bool' for these variables. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 4af8f24d99d119ed68b27d1b0bd6f2ab2b23ed1b Merge: c9ee46a af9a2d0 Author: Russell King Date: Tue Oct 12 20:11:18 2010 +0100 Merge git://git.kernel.org/pub/scm/linux/kernel/git/nico/orion into devel-stable commit 8fa6e3d4549271a5b4094893f059bb95f99a8fde Merge: c239f27 2f34b32 Author: David S. Miller Date: Tue Oct 12 11:43:42 2010 -0700 Merge branch 'dccp' of git://eden-feed.erg.abdn.ac.uk/net-next-2.6 commit d7c86ff8cd00abc730fe5d031f43dc9138b6324e Author: Jeff Layton Date: Mon Oct 11 15:07:19 2010 -0400 cifs: don't use vfsmount to pin superblock for oplock breaks Filesystems aren't really supposed to do anything with a vfsmount. It's considered a layering violation since vfsmounts are entirely managed at the VFS layer. CIFS currently keeps an active reference to a vfsmount in order to prevent the superblock vanishing before an oplock break has completed. What we really want to do instead is to keep sb->s_active high until the oplock break has completed. This patch borrows the scheme that NFS uses for handling sillyrenames. An atomic_t is added to the cifs_sb_info. When it transitions from 0 to 1, an extra reference to the superblock is taken (by bumping the s_active value). When it transitions from 1 to 0, that reference is dropped and a the superblock teardown may proceed if there are no more references to it. Also, the vfsmount pointer is removed from cifsFileInfo and from cifs_new_fileinfo, and some bogus forward declarations are removed from cifsfs.h. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Acked-by: Dave Kleikamp Signed-off-by: Steve French commit a5e18bc36e9e05ce0338d370a2ce4290910e43ea Author: Jeff Layton Date: Mon Oct 11 15:07:18 2010 -0400 cifs: keep dentry reference in cifsFileInfo instead of inode reference cifsFileInfo is a bit problematic. It contains a reference back to the struct file itself. This makes it difficult for a cifsFileInfo to exist without a corresponding struct file. It would be better instead of the cifsFileInfo just held info pertaining to the open file on the server instead without any back refrences to the struct file. This would allow it to exist after the filp to which it was originally attached was closed. Much of the use of the file pointer in this struct is to get at the dentry. Begin divorcing the cifsFileInfo from the struct file by keeping a reference to the dentry. Since the dentry will have a reference to the inode, we can eliminate the "pInode" field too and convert the igrab/iput to dget/dput. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Acked-by: Dave Kleikamp Signed-off-by: Steve French commit f1c6b7fb708e3cb6f5e7b46916e9def728c15345 Author: William Hubbs Date: Tue Oct 12 11:39:30 2010 -0500 staging: speakup: kobjects.c: style fixes clean upd this file based on reports from checkpatch.pl Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit 09adcb52a61ca3eeeb4d609db55ccf90caab0c81 Author: William Hubbs Date: Tue Oct 12 11:39:29 2010 -0500 staging: speakup: keyhelp.c: style fixes Clean up this file based on reports from checkpatch.pl. Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit d09d3e2cddec6d80070dab29e0c80e53e3d8d3dc Author: William Hubbs Date: Tue Oct 12 11:39:28 2010 -0500 staging: speakup: i18n.c: style fixes Clean up this file based on reports from checkpatch.pl. Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit 29644b22dafe87ffaf61b49496388ec5fde9bdc7 Author: William Hubbs Date: Tue Oct 12 11:39:27 2010 -0500 staging: speakup: devsynth.c: style fixes clean up this file based on reports from checkpatch.pl. Signed-off-by: William Hubbs Signed-off-by: Greg Kroah-Hartman commit 99c8da0f4f4f1d14a8cd42b29dfa5625a1491662 Author: Hank Janssen Date: Tue Oct 12 10:45:23 2010 -0700 staging: hv: Doubled ringbuffer size for Hyper-v network driver Double the default network ringsize buffer for Hyper-V network driver. In very heavily loaded systems the there is a chance you run out of ringbuffer space and error out. Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 13da8f0d469025f216498f12120f55fda3ebae71 Author: Marek Belisko Date: Tue Oct 12 10:26:43 2010 +0200 staging: ft1000: get rid of typedef usage. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 4aee92f6de79acec1e2ebc97c45f9bbd5b1089d4 Author: Marek Belisko Date: Tue Oct 12 10:26:42 2010 +0200 staging: ft1000: Remove unused/unnecessary comments. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 7bfc9ca790d66192aebec690c10ea11fea9fd578 Author: Marek Belisko Date: Tue Oct 12 10:26:41 2010 +0200 staging: ft1000: Fix memory leak when polling fail. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 5cb9954a51bbb702bff3b73009c4da7b76728597 Author: Marek Belisko Date: Tue Oct 12 10:26:40 2010 +0200 staging: ft1000-usb: Remove global flag DSP_loading. This patch remove global flag DSP_loading which was checked only on one place. Instead check return value for dsp_reload() function. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit a252d02f89452c1d99eed7545457f52a71804768 Author: Andy Shevchenko Date: Tue Oct 12 16:22:49 2010 +0300 staging: wlags49_h2: remove custom macros min() and max() Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 97eea3afa2b10900c2373458eb4f0341357e8bf8 Author: Andy Shevchenko Date: Tue Oct 12 16:22:48 2010 +0300 staging: rt2860: remove custom min() and max() Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit ba07d0cbc919613ce48acc0a43d6e8ab35cd7748 Author: Andy Shevchenko Date: Mon Oct 11 16:58:33 2010 +0300 staging: brcm80211: remove useless bcm_ether_ntoa() Since we have '%pM' modifier in the kernel's *printf() we don't need to convert address to the string beforehand. Signed-off-by: Andy Shevchenko Cc: Nohee Ko Cc: Greg Kroah-Hartman Cc: linux-wireless@vger.kernel.org Cc: devel@driverdev.osuosl.org Signed-off-by: Greg Kroah-Hartman commit 88b3eaa499ddbe5a36c34840117563bd54ec4ec2 Author: nohee ko Date: Mon Oct 11 18:33:45 2010 -0700 staging: brcm80211: remove duplicated function, wf_channel2mhz remove duplicated function, wf_channel2mhz Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 1139df53533e8a4327f3867c6b32202ac62b19ee Author: Michael Hennerich Date: Tue Oct 12 10:30:51 2010 +0200 staging: iio: adc: ad799x miscellaneous cleanups -Simplify by using iio_alloc_pollfunc helper function -Print in_scale in decimal format. -Simplify ring pointer dereferences Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 668413e9e7ad0bc53eeba2465dafd66dbc817996 Author: Michael Hennerich Date: Mon Oct 11 18:05:56 2010 +0200 staging: iio: adc: ad7476 more list review feedback by Jonathan Cameron Print in_scale in decimal format. Kconfig list the names of the parts in full, to ease seraching. Use st->spi in the call as it is only used the once. Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 349282d82e929e7982ca53510437c0850ab5294a Author: Michael Hennerich Date: Mon Oct 11 18:05:37 2010 +0200 staging: iio: adc: ad7476 new SPI ADC driver New driver handling: AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468, AD7495 SPI micropower and high speed 12-/10-/8-Bit ADCs staging: iio: adc: ad7476 apply list review feedback by Jonathan Cameron Changes since last RFC post V1: Mainly list review feedback by Jonathan Cameron -Remove scan_attrs from chip info structure. -Remove name from chip info structure, use new spi_device_id instead. -Allow transfer buffers to live in their own cache lines, to avoid DMA/cache coherency issues. -Move scan el code into the ring buffer file. -Use helper function to alloc the pollfunc. -Use regulator framework and get vref_mv from the regulator in case not specified by pdata. -Devices with buit-in reference use vref from the chip info structure -Don't error on missing platform_data -Make vref_mv type unsigned short -Print in_scale "Vref / 2^(bits)" if fractional. Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 1dd8b73227be6023df0be3a478c6086848cebd2e Author: Randy Dunlap Date: Mon Oct 11 17:47:04 2010 -0700 staging: intel_sst: include delay.h to fix build error intel_sst_drv_interface.c uses msleep() so it needs to include delay.h: drivers/staging/intel_sst/intel_sst_drv_interface.c:88: error: implicit declaration of function 'msleep' Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit a9d0fffa934900246ac646fc7b6a4cf9ce1edec2 Author: Jason Cooper Date: Mon Oct 11 10:03:00 2010 -0400 staging: brcm80211: remove BCMNMIATTACHFN() macro. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 9927fc2eab153cf3c39d505733b1d534d818c2bb Author: Jason Cooper Date: Mon Oct 11 10:02:59 2010 -0400 staging: brcm80211: remove BCMUNINITFN() macro. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit b4f790eeb36564c7e4a5b38712f23ebc2b64b45a Author: Jason Cooper Date: Mon Oct 11 10:02:58 2010 -0400 staging: brcm80211: remove BCMINITFN() macro. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 2184ccb9f7069a03e0b51f68216ab61cec54b3f6 Author: Jason Cooper Date: Mon Oct 11 10:02:57 2010 -0400 staging: brcm80211: remove BCMINITDATA() macro. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit eeb8e46b50e33010805a27590f17e008bbd2a339 Author: Jason Cooper Date: Mon Oct 11 10:02:56 2010 -0400 staging: brcm80211: fix various checkpatch errors. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit b3c0598952e02f1f1f6d003574549d940ecbf31a Author: Gustavo F. Padovan Date: Fri Oct 8 09:13:28 2010 -0300 Bluetooth: update MAINTAINERS for Bluetooth subsys Add myself to MAINTAINERS and update the git trees. Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 7f8f2729ce6380a2735ddf45c04d5bb09eaca8a5 Author: Karl Beldan Date: Thu Oct 7 21:57:10 2010 +0200 Bluetooth: hci_uart: Fix typo in stats for sco tx s/stat.cmd_tx++/stat.sco_tx++ for HCI_SCODATA_PKT Signed-off-by: Karl Beldan Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 534c92fde74c8d2143fc15b5f1d957f42cb43570 Author: Andrei Emeltchenko Date: Fri Oct 1 12:05:11 2010 +0300 Bluetooth: clean up rfcomm code Remove dead code and unused rfcomm thread events Signed-off-by: Andrei Emeltchenko Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit ab3e571564a5d8fa4923e2e858e574c931a014c7 Author: Haijun Liu Date: Thu Sep 30 16:52:40 2010 +0800 Bluetooth: Update conf_state before send config_req out Update conf_state with L2CAP_CONF_REQ_SENT before send config_req out in l2cap_config_req(). Signed-off-by: Haijun Liu Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 0175d629e096a5a59dde6cc91b32ac3160a44b9e Author: Gustavo F. Padovan Date: Fri Sep 24 20:30:57 2010 -0300 Bluetooth: Use the proper error value from bt_skb_send_alloc() &err points to the proper error set by bt_skb_send_alloc() when it fails. Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit d6b2eb2f893547d7488d31a7088d78dd77ab5995 Author: Gustavo F. Padovan Date: Fri Sep 3 18:29:46 2010 -0300 Bluetooth: make batostr() print in the right order The Bluetooth core uses the the BD_ADDR in the opposite order from the human readable order. So we are changing batostr() to print in the correct order and then removing some baswap(), as they are not needed anymore. Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit cb810a189da312d4074cb3fc8b0267b7115e7be1 Author: Gustavo F. Padovan Date: Fri Sep 3 17:51:57 2010 -0300 Bluetooth: remove unused variable from cmtp A value was attributed to 'src', but no one was using. Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit aae7fe22a875a84e328469e228cba033ebbf20cb Author: Andrei Emeltchenko Date: Wed Sep 15 14:28:43 2010 +0300 Bluetooth: check for l2cap header in start fragment BLUETOOTH SPECIFICATION Version 4.0 [Vol 3] page 36 mentioned "Note: Start Fragments always begin with the Basic L2CAP header of a PDU." Signed-off-by: Andrei Emeltchenko Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 8979481328dc2e14cea9f99b3562ffcf8655998e Author: Andrei Emeltchenko Date: Wed Sep 15 14:28:44 2010 +0300 Bluetooth: check L2CAP length in first ACL fragment Current Bluetooth code assembles fragments of big L2CAP packets in l2cap_recv_acldata and then checks allowed L2CAP size in assemled L2CAP packet (pi->imtu < skb->len). The patch moves allowed L2CAP size check to the early stage when we receive the first fragment of L2CAP packet. We do not need to reserve and keep L2CAP fragments for bad packets. Updated version after comments from Mat Martineau and Gustavo Padovan . Trace below is received when using stress tools sending big fragmented L2CAP packets. ... [ 1712.798492] swapper: page allocation failure. order:4, mode:0x4020 [ 1712.804809] [] (unwind_backtrace+0x0/0xdc) from [] (__alloc_pages_nodemask+0x4) [ 1712.814666] [] (__alloc_pages_nodemask+0x47c/0x4d4) from [] (__get_free_pages+) [ 1712.824645] [] (__get_free_pages+0x10/0x3c) from [] (__alloc_skb+0x4c/0xfc) [ 1712.833465] [] (__alloc_skb+0x4c/0xfc) from [] (l2cap_recv_acldata+0xf0/0x1f8 ) [ 1712.843322] [] (l2cap_recv_acldata+0xf0/0x1f8 [l2cap]) from [] (hci_rx_task+0x) ... Signed-off-by: Andrei Emeltchenko Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 3cd01976e702ccaffb907727caff4f8789353599 Author: Nobuhiro Iwamatsu Date: Fri Aug 20 16:24:07 2010 +0900 Bluetooth: Add support Bluetooth controller of MacbookPro 7,1 Bluetooth controller of MacbookPro 7,1 does not work. Because Device Class of these controllers was set 255 (Vendor Sepecific Class). T: Bus=04 Lev=02 Prnt=04 Port=00 Cnt=01 Dev#= 5 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=ff(vend.) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=05ac ProdID=8213 Rev=01.86 S: Manufacturer=Apple Inc. S: Product=Bluetooth USB Host Controller S: SerialNumber=5C5948C81B99 C: #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=0mA I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=01 Driver=btusb I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) I: If#= 3 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=00 Driver=(none) Signed-off-by: Nobuhiro Iwamatsu Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 9c047157a20521cd525527947b13b950d168d2e6 Author: Nobuhiro Iwamatsu Date: Fri Aug 20 16:24:06 2010 +0900 Bluetooth: Add support Bluetooth controller of MacbookPro 6,2 Bluetooth controller of MacbookPro 6,2 does not work. Because Device Class of these controllers was set 255 (Vendor Sepecific Class). T: Bus=01 Lev=03 Prnt=03 Port=02 Cnt=03 Dev#= 8 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=ff(vend.) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=05ac ProdID=8218 Rev=00.22 S: Manufacturer=Apple Inc. S: Product=Bluetooth USB Host Controller C: #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=0mA I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=01 Driver=(none) I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none) I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) I: If#= 3 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=01 Driver=(none) Signed-off-by: Nobuhiro Iwamatsu Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 80e2c88803c72747cb19febe2ad708bf0ad557bf Author: Johan Hedberg Date: Thu Sep 9 10:32:39 2010 +0300 Bluetooth: Don't clear the blacklist when closing the HCI device Clearing the blacklist in hci_dev_do_close() would mean that user space needs to do extra work to re-block devices after a DEVDOWN-DEVUP cycle. This patch removes the clearing of the blacklist in this case and thereby saves user space from the extra work. Signed-off-by: Johan Hedberg Acked-by: Ville Tervo Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 5017d8dde13313cab1e607379536a7930ed682b0 Author: Andrei Emeltchenko Date: Wed Sep 8 16:26:53 2010 +0300 Bluetooth: remove extra newline from debug output Signed-off-by: Andrei Emeltchenko Acked-by: Ville Tervo Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 6fdf482bb3298267816be59d9a3dce29632382d3 Author: Mat Martineau Date: Wed Sep 8 10:05:29 2010 -0700 Bluetooth: Use a stream-oriented recvmsg with SOCK_STREAM L2CAP sockets. L2CAP ERTM sockets can be opened with the SOCK_STREAM socket type, which is a mandatory request for ERTM mode. However, these sockets still have SOCK_SEQPACKET read semantics when bt_sock_recvmsg() is used to pull data from the receive queue. If the application is only reading part of a frame, then the unread portion of the frame is discarded. If the application requests more bytes than are in the current frame, only the current frame's data is returned. This patch utilizes common code derived from RFCOMM's recvmsg() function to make L2CAP SOCK_STREAM reads behave like RFCOMM reads (and other SOCK_STREAM sockets in general). The application may read one byte at a time from the input stream and not lose any data, and may also read across L2CAP frame boundaries. Signed-off-by: Mat Martineau Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 3d7d01dffec4a6757ed1e3182f01c7ef5caa2539 Author: Mat Martineau Date: Wed Sep 8 10:05:28 2010 -0700 Bluetooth: Use common SOCK_STREAM receive code in RFCOMM To reduce code duplication, have rfcomm_sock_recvmsg() call bt_sock_stream_recvmsg(). The common bt_sock_stream_recvmsg() code is nearly identical, with the RFCOMM-specific functionality for deferred setup and connection unthrottling left in rfcomm_sock_recvmsg(). Signed-off-by: Mat Martineau Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 796c86eec84ddfd02281c5071838ed1fefda6b90 Author: Mat Martineau Date: Wed Sep 8 10:05:27 2010 -0700 Bluetooth: Add common code for stream-oriented recvmsg() This commit adds a bt_sock_stream_recvmsg() function for use by any Bluetooth code that uses SOCK_STREAM sockets. This code is copied from rfcomm_sock_recvmsg() with minimal modifications to remove RFCOMM-specific functionality and improve readability. L2CAP (with the SOCK_STREAM socket type) and RFCOMM have common needs when it comes to reading data. Proper stream read semantics require that applications can read from a stream one byte at a time and not lose any data. The RFCOMM code already operated on and pulled data from the underlying L2CAP socket, so very few changes were required to make the code more generic for use with non-RFCOMM data over L2CAP. Applications that need more awareness of L2CAP frame boundaries are still free to use SOCK_SEQPACKET sockets, and may verify that they connection did not fall back to basic mode by calling getsockopt(). Signed-off-by: Mat Martineau Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 0fba2558cbb3fae3a09147b7d6e18a6204204e0e Author: Mat Martineau Date: Wed Sep 8 10:05:26 2010 -0700 Bluetooth: Validate PSM values in calls to connect() and bind() Valid L2CAP PSMs are odd numbers, and the least significant bit of the most significant byte must be 0. Signed-off-by: Mat Martineau Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 08601469a5aac8b3453d8aca0b8f9bd8dfdae12c Author: Yuri Kululin Date: Fri Jul 23 13:57:12 2010 +0400 Bluetooth: Fix RFCOMM RPN negotiation According to the ETSI 3GPP TS 07.10 the default bit rate value for RFCOMM is 9600 bit/s. Return this bit rate in case of RPN request and accept other sane bit rates proposed by the sender in RPM command. Signed-off-by: Yuri Kululin Signed-off-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit fb3d8eb47ce377d6d7a8fc58b8046ea9eb376a28 Author: David Vrabel Date: Mon Aug 9 17:42:21 2010 -0400 Bluetooth: Support SDIO devices that are AMP controllers Signed-off-by: David Vrabel Signed-off-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 8f1e1742233cd1c3444dfc6c945a2efb2814e157 Author: David Vrabel Date: Mon Aug 9 17:38:10 2010 -0400 Bluetooth: HCI devices are either BR/EDR or AMP radios HCI transport drivers may not know what type of radio an AMP device has so only say whether they're BR/EDR or AMP devices. Signed-off-by: David Vrabel Signed-off-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan commit 1c456013e96f10915578dc61095d19b4906f64ac Author: Jeff Layton Date: Tue Oct 12 11:32:42 2010 -0400 cifs: on multiuser mount, set ownership to current_fsuid/current_fsgid (try #7) commit 3aa1c8c2900065a51268430ab48a1b42fdfe5b45 made cifs_getattr set the ownership of files to current_fsuid/current_fsgid when multiuser mounts were in use and when mnt_uid/mnt_gid were non-zero. It should have instead based that decision on the CIFS_MOUNT_OVERR_UID/GID flags. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 756b0322e50aebc4b9afb4488a2d3f6c802b4e64 Author: Thomas Gleixner Date: Tue Sep 7 14:33:11 2010 +0000 affs: Use sema_init instead of init_MUTEX Get rid of init_MUTE() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Cc: Al Viro LKML-Reference: <20100907125056.511395595@linutronix.de> commit 4a9410355406c31695eab9daeba694d7d9714e9b Author: Thomas Gleixner Date: Tue Sep 7 14:33:08 2010 +0000 hfs: Convert tree_lock to mutex tree_lock is used as mutex so make it a mutex. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Acked-by: Christoph Hellwig Cc: Al Viro LKML-Reference: <20100907125056.416332114@linutronix.de> commit 5356d94872502e77317f82e8fcae2a0b162af07c Author: Thomas Gleixner Date: Tue Sep 7 14:33:52 2010 +0000 arm: Bcmring: semaphore cleanup Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Cc: Leo Chen LKML-Reference: <20100907125057.371771121@linutronix.de> commit 5b8c4f23c54edda640a4850bc9b81dee70acb525 Author: Thomas Gleixner Date: Tue Sep 7 14:33:43 2010 +0000 printk: Make console_sem a semaphore not a pseudo mutex It needs to be investigated whether it can be replaced by a real mutex, but that needs more thought. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig LKML-Reference: <20100907125057.179587334@linutronix.de> commit 8192b1f6b1a46b33213b993471356495a93ffc70 Author: Thomas Gleixner Date: Tue Sep 7 14:33:40 2010 +0000 drivers/macintosh/adb: Do not claim that the semaphore is a mutex User DEFINE_SEMAPHORE() instead of DECLARE_MUTEX() Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Cc: Benjamin Herrenschmidt LKML-Reference: <20100907125057.086367802@linutronix.de> commit a529f1505b6facfd0078dcb18a444976c1985962 Author: Thomas Gleixner Date: Tue Sep 7 14:32:34 2010 +0000 parport: Semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Alan Cox Cc: Christoph Hellwig LKML-Reference: <20100907125055.743613774@linutronix.de> commit db7f859ec53c0bfaf3520afe2feafd18a27e48fb Author: Thomas Gleixner Date: Tue Sep 7 14:32:30 2010 +0000 irda: Semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Acked-by: "David S. Miller" LKML-Reference: <20100907125055.651362456@linutronix.de> commit d1985508320ad40a68375bdbafa8a5d6c56d2114 Author: Thomas Gleixner Date: Tue Sep 7 14:32:25 2010 +0000 net: Wan/cosa.c: Convert "mutex" to semaphore Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Acked-by: "David S. Miller" LKML-Reference: <20100907125055.557578360@linutronix.de> commit 0bce198b7688911e072bd65032ab9278b577ee93 Author: Thomas Gleixner Date: Tue Sep 7 14:32:22 2010 +0000 net: Ppp_async: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Acked-by: David Miller LKML-Reference: <20100907125055.460765783@linutronix.de> commit 495e64bddeb9349395ed346177057fff7d52857e Author: Thomas Gleixner Date: Tue Sep 7 14:32:18 2010 +0000 hamradio: Mkiss: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Acked-by: David Miller LKML-Reference: <20100907125055.368389976@linutronix.de> commit 89d9f10d0b21268d3dba33db984ab03092861700 Author: Thomas Gleixner Date: Tue Sep 7 14:32:14 2010 +0000 hamradio: 6pack: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Acked-by: David Miller LKML-Reference: <20100907125055.269142443@linutronix.de> commit 50948ee8124c2125d833e8889002aa12a948b4e9 Author: Thomas Gleixner Date: Tue Sep 7 14:32:10 2010 +0000 net: 3c527: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Acked-by: David Miller LKML-Reference: <20100907125055.175750769@linutronix.de> commit 4a4a506f81eebe63fb1b8e9e99f4bcd1fd9aac66 Author: Thomas Gleixner Date: Tue Sep 7 14:32:06 2010 +0000 input: Serio/hp_sdc: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Acked-by: Dmitry Torokhov LKML-Reference: <20100907125055.079737758@linutronix.de> commit 45e8492f594dcb17e8cbb26edb2dd3018a68dada Author: Thomas Gleixner Date: Tue Sep 7 14:32:01 2010 +0000 input: Serio/hil_mlc: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Acked-by: Dmitry Torokhov LKML-Reference: <20100907125054.985090435@linutronix.de> commit 10d0ff83078d5ef99aaf94a2aaceb740f5ced923 Author: Thomas Gleixner Date: Tue Sep 7 14:31:58 2010 +0000 input: Misc/hp_sdc_rtc: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Christoph Hellwig Acked-by: Dmitry Torokhov LKML-Reference: <20100907125054.888438853@linutronix.de> commit fd74d065f43f88eedc7492886d84f0accb683653 Author: Johannes Berg Date: Tue Oct 12 02:26:13 2010 -0700 iwl3945: fix queue allocation commit 6f98613258b966ffe0e6def18129b386514d10e0 Author: Jay Sternberg Date: Sat Sep 18 09:07:04 2010 -0700 iwlagn: reduce redundant parameter definitions broke 3945 because Jay accidentally removed the num_of_queues parameter for 3945, so that we now attempt to allocate a zero-sized queue array, which leads to SLUB returning ZERO_SIZE_PTR (0x10) which we then try to dereference thus crashing the system. Restore the necessary num_of_queues param. This fixes http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2254 Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit bc795df1d225415c2ec6ff2a81c07a753681d945 Author: Wey-Yi Guy Date: Mon Oct 11 14:24:05 2010 -0700 iwlagn: prio_tbl need to download before calibration For WiFi/BT combo devices, priority table always need to download before perform any calibration operation. Signed-off-by: Wey-Yi Guy commit a5901cbb5783b25fa71536503bfa4617d8ee41bd Author: Wey-Yi Guy Date: Thu Sep 23 09:56:51 2010 -0700 iiwlagn: always download priority table For advance BT/WiFi co-exist, always download bt priority table before sending bt_config command Signed-off-by: Wey-Yi Guy commit 37eca0d64a2dbeece25969ec0698e1ff72bdcf39 Merge: 277b199 3c06806 Author: Thomas Gleixner Date: Tue Oct 12 17:27:20 2010 +0200 Merge branch 'linus' into core/locking Reason: Pull in the semaphore related changes Signed-off-by: Thomas Gleixner commit 7df01d96b295e400167e78061b81d4c91630b12d Author: Robert Richter Date: Mon Oct 4 21:09:36 2010 +0200 oprofile: disable write access to oprofilefs while profiler is running Oprofile counters are setup when profiling is disabled. Thus, writing to oprofilefs has no immediate effect. Changes are updated only after oprofile is reenabled. To keep userland and kernel states synchronized, we now allow configuration of oprofile only if profiling is disabled. In this case it checks if the profiler is running and then disables write access to oprofilefs by returning -EBUSY. The change should be backward compatible with current oprofile userland daemon. Acked-by: Maynard Johnson Cc: William Cohen Cc: Suravee Suthikulpanit Signed-off-by: Robert Richter commit 8939b3504dc35224cb9c88e5af925b22ea9eee71 Author: Sekhar Nori Date: Tue Oct 12 10:25:22 2010 +0530 davinci: mityomapl138: make file local data static Most of the regulator data structures are local to the board file, but not made static. Fix this. Also make the nand partition table static. This gets rid of all the sparse warnings for this file. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit 9daa42e22030f0c5c357a5e1f8af658411beda6b Author: Shirish Pargaonkar Date: Sun Oct 10 13:21:05 2010 -0500 CIFS ntlm authentication and signing - Build a proper av/ti pair blob for ntlmv2 without extended security authentication Build an av pair blob as part of ntlmv2 (without extended security) auth request. Include netbios and dns names for domain and server and a timestamp in the blob. Signed-off-by: Shirish Pargaonkar Reviewed-by: Jeff Layton Signed-off-by: Steve French commit 2ee39065988d632b403f8470942b0b5edee3632b Author: Thomas Gleixner Date: Wed Oct 6 16:28:51 2010 +0200 x86: Switch sparse_irq allocations to GFP_KERNEL No callers from atomic context (except boot) anymore. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit baa0d233afe765daa6dc01ff233aea8c5944f534 Author: Thomas Gleixner Date: Tue Oct 5 15:14:35 2010 +0200 genirq: Switch sparse_irq allocator to GFP_KERNEL The allocator functions are now called outside of preempt disabled regions. Switch to GFP_KERNEL. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit a05a900a51c7622ebd8ddb41f14f8bf9db599d8d Author: Thomas Gleixner Date: Fri Oct 8 12:47:53 2010 +0200 genirq: Make sparse_lock a mutex No callers from atomic regions. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit c2f31c37b7303150ffcce53f6c6ed4ac62952b34 Author: Thomas Gleixner Date: Thu Sep 30 12:19:03 2010 +0200 x86: lguest: Use new irq allocator Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Rusty Russell commit 78f90d91f395cd0dc1ef3f21e0c5cd6fd50d202c Author: Thomas Gleixner Date: Wed Sep 29 17:18:47 2010 +0200 genirq: Remove the now unused sparse irq leftovers The move_irq_desc() function was only used due to the problem that the allocator did not free the old descriptors. So the descriptors had to be moved in create_irq_nr(). That's history. The code would have never been able to move active interrupt descriptors on affinity settings. That can be done in a completely different way w/o all this horror. Remove all of it. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit b7b29338dc7111ed8bd4d6555d84afae13ebe752 Author: Thomas Gleixner Date: Wed Sep 29 18:46:55 2010 +0200 genirq: Sanitize dynamic irq handling Use the cleanup functions of the dynamic allocator. No need to have separate implementations. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit b7d0d8258a9f71949b810e0f82a3d75088f4d364 Author: Thomas Gleixner Date: Wed Sep 29 18:44:23 2010 +0200 genirq: Remove arch_init_chip_data() This function should have not been there in the first place. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 77dff1c755c3218691e95e7e38ee14323b35dbdb Author: Thomas Gleixner Date: Wed Sep 29 17:37:10 2010 +0200 x86: xen: Sanitise sparse_irq handling There seems to be more cleanups possible, but that's left to the xen experts :) Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Jeremy Fitzhardinge commit ad9f43340f48c5f7a0a5ef7656986e23d06bf996 Author: Thomas Gleixner Date: Thu Sep 30 11:26:43 2010 +0200 x86: Use sane enumeration Instead of looping through all interrupts, use the bitmap lookup to find the next. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 48b2650196364e4ef124efb841b63c2326e4ccb2 Author: Thomas Gleixner Date: Thu Sep 30 11:43:08 2010 +0200 x86: uv: Clean up the direct access to irq_desc Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 1a8ce7ff68d777195da2d340561bda610e533a64 Author: Thomas Gleixner Date: Mon Oct 4 21:08:56 2010 +0200 x86: Make io_apic.c local functions static No users outside of io_apic.c Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 10ba1e0eeef6a3c9453d96364e28cb4d911e1ac3 Author: Thomas Gleixner Date: Mon Oct 11 12:21:18 2010 +0200 genirq: Remove irq_2_iommu irq_2_iommu is now in the x86 code where it belongs. Remove all leftovers. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Suresh Siddha Cc: David Woodhouse Cc: Jesse Barnes commit 1a0730d6649113c820217387a011a17dd4aff3ad Author: Thomas Gleixner Date: Mon Oct 11 11:55:37 2010 +0200 x86: Speed up the irq_remapped check in hot pathes irq_2_iommu is in struct irq_cfg, so we can do the irq_remapped check based on irq_cfg instead of going through a lookup function. That's especially interesting in the eoi_ioapic_irq() hotpath. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Suresh Siddha Cc: David Woodhouse Cc: Jesse Barnes commit d585d060b42bd36f6f0b23ff327d3b91f80c7139 Author: Thomas Gleixner Date: Sun Oct 10 12:34:27 2010 +0200 intr_remap: Simplify the code further Having irq_2_iommu in struct irq_cfg allows further simplifications. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Suresh Siddha Cc: David Woodhouse Cc: Jesse Barnes commit 349d67673c08cbc299a69086b0f5447cf1094e9b Author: Thomas Gleixner Date: Sun Oct 10 12:29:27 2010 +0200 intr_remap: Use irq_2_iommu in struct irq_cfg Switch the intr_remapping code to use the irq_2_iommu struct in irg_cfg. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Suresh Siddha Cc: David Woodhouse Cc: Jesse Barnes commit 423f085952fd7253407cb92984cc2d495a564481 Author: Thomas Gleixner Date: Sun Oct 10 11:39:09 2010 +0200 x86: Embedd irq_2_iommu into irq_cfg That interrupt remapping code is x86 specific and tied to the io_apic code. No need for separate allocator functions in the interrupt remapping code. This allows to simplify the code and irq_2_iommu is small (13 bytes on 64bit) so it's not a real problem even if interrupt remapping is runtime disabled. If it's compile time disabled the impact is zero. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Suresh Siddha Cc: David Woodhouse Cc: Jesse Barnes commit d0ad63927c6d4d511e172c78ba4a623539ef6901 Author: Thomas Gleixner Date: Mon Oct 4 18:41:37 2010 +0200 pci: intr_remap: Remove unused functions No users. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Suresh Siddha Cc: David Woodhouse Cc: Jesse Barnes commit a8ef54aeb4308d3730ff31807c495390b98de16a Author: Thomas Gleixner Date: Mon Oct 4 16:51:27 2010 +0200 pci: intr_remap: Use irq_data No need to dereference irq_desc. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Suresh Siddha Cc: David Woodhouse Cc: Jesse Barnes commit 0e1e367aab873becf3e21d9b0cf46d11154ebc3f Author: Thomas Gleixner Date: Mon Oct 4 16:20:16 2010 +0200 pci: intr-remap: Free irte memory if SPARSE_IRQ=y With SPARSE_IRQ=y the irte descriptors are dynamically allocated, but not freed in free_irte(). That was ok as long as the sparse irq core was not freeing irq descriptors on destroy_irq(). Now we leak the irte descriptor. Free it in free_irte(). Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Suresh Siddha Cc: David Woodhouse Cc: Jesse Barnes commit bc5fdf9f3aad37406b3c8d635a7940cd65de0c12 Author: Thomas Gleixner Date: Fri Oct 8 10:40:53 2010 +0200 x86: io_apic: Remove the now unused sparse_irq arch_* functions Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit fbc6bff04a095e049be290ff6f6ac68839166bd6 Author: Thomas Gleixner Date: Tue Sep 28 20:34:53 2010 +0200 x86: ioapic: Cleanup sparse irq code Switch over to the new allocator and remove all the magic which was caused by the unability to destroy irq descriptors. Get rid of the create_irq_nr() loop for sparse and non sparse irq. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit fe6dab4e79e82ec35879bfe1a8968b7d15ac0d91 Author: Yinghai Lu Date: Fri Oct 8 22:44:02 2010 -0700 x86: Don't setup ioapic irq for sci twice The sparseirq rework triggered a warning in the iommu code, which was caused by setting up ioapic for ACPI irq 9 twice. This function is solely to handle interrupts which are on a secondary ioapic and outside the legacy irq range. Replace the sparse irq_to_desc check with a non ifdeffed version. [ tglx: Moved it before the ioapic sparse conversion and simplified the inverse logic ] Signed-off-by: Yinghai Lu LKML-Reference: <4CB00122.3030301@kernel.org> Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit f981a3dc1941035a108da1276c448de6b10ddac9 Author: Thomas Gleixner Date: Fri Oct 8 10:44:21 2010 +0200 x86: io_apic: Prepare alloc/free_irq_cfg() Rename the grossly misnamed get_one_free_irq_cfg() to alloc_irq_cfg(). Add a (not yet used) irq number argument to free_irq_cfg() Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 08c33db6d044d9dc74ddf8d9ee3cb1fa3eca262b Author: Thomas Gleixner Date: Wed Oct 6 22:14:21 2010 +0200 x86: Implement new allocator functions Implement new allocator functions which make use of the core changes. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 6e2fff50a5bd72a3f9e6f3ef6e9137efddb2d580 Author: Thomas Gleixner Date: Wed Oct 6 22:07:03 2010 +0200 x86: ioapic: Cleanup get_one_free_irq_cfg() Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 7e495529b62cf462eb2d8875fe15ca446b8e1f94 Author: Thomas Gleixner Date: Tue Sep 28 23:31:50 2010 +0200 x86: ioapic: Cleanup some more Cleanup after the irq_chip conversion a bit. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit be5b7bf73802a9391158d9fcc0bc6b07670c73a5 Author: Thomas Gleixner Date: Fri Oct 8 22:31:46 2010 +0200 x86: Convert ht set_affinity to new chip function Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Jesse Barnes commit 0e09ddf2d71aeff92ff8055ac7600b85c255ee85 Author: Thomas Gleixner Date: Fri Oct 8 22:21:26 2010 +0200 x86: Cleanup hpet affinity setting Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit fe52b2d25919eaa01c51651a664f4f2ba6bd2a11 Author: Thomas Gleixner Date: Fri Oct 8 22:19:29 2010 +0200 x86: Convert dmar affinity setting to new chip function Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: David Woodhouse commit b5d1c465794f521c352d9c1a33159750c9c3fa84 Author: Thomas Gleixner Date: Fri Oct 8 22:15:49 2010 +0200 x86: Convert remapped msi to new chip.irq_set_affinity function Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Suresh Siddha Cc: Jesse Barnes commit f19f5ecc920215decfea54f26e3eb14064506675 Author: Thomas Gleixner Date: Fri Oct 8 21:50:22 2010 +0200 x86: Convert remapped ioapic affinity setting to new irq chip function Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Suresh Siddha commit 5346b2a78fa3b900da672928978475acdd4632dc Author: Thomas Gleixner Date: Fri Oct 8 21:49:03 2010 +0200 x86: Convert msi affinity setting to new chip functions Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Jesse Barnes commit f7e909eae444ff733ecc5628af76d89c363ab480 Author: Thomas Gleixner Date: Fri Oct 8 21:40:23 2010 +0200 x86: Prepare the affinity common functions for taking struct irq_data * While at it rename it to sensible function names and fix the return value from unsigned to int for __ioapic_set_affinity (set_desc_affinity). Returning -1 in a function returning unsigned int is somewhat strange. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 60c69948e5b6357ac0d5ef2a2d0ce31c173c3c64 Author: Thomas Gleixner Date: Tue Sep 28 17:28:38 2010 +0200 x86: ioapic: Clean up the direct access to irq_desc Most of it is useless pseudo optimization. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit e9f7ac664bfc36685a8eb3315ec21c067d0cee36 Author: Thomas Gleixner Date: Tue Sep 28 17:22:09 2010 +0200 ht: Convert to new irq_chip functions Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Jesse Barnes commit 5c2837fbaa609e615ef9a1c58a4cd26ce90be35b Author: Thomas Gleixner Date: Tue Sep 28 17:15:11 2010 +0200 dmar: Convert to new irq chip functions Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: David Woodhouse commit d0fbca8f9304d1760fdc906b35b06e89fbdbb51f Author: Thomas Gleixner Date: Tue Sep 28 16:18:39 2010 +0200 x86: ioapic/hpet: Convert to new chip functions Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 90297c5fe71d32a2a0ead38bd8f6b1112a2e5ac0 Author: Thomas Gleixner Date: Tue Sep 28 16:03:54 2010 +0200 x86: ioapic: Convert mask to new irq_chip function Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 61a38ce3f59cdb4654e9444329195bd57c3baf74 Author: Thomas Gleixner Date: Tue Sep 28 16:00:34 2010 +0200 x86: io_apic: Convert startup to new irq_chip function Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit dd5f15e5cf104c9170b76ae3274f35b42a3e4161 Author: Thomas Gleixner Date: Tue Sep 28 15:18:35 2010 +0200 x86: Cleanup io_apic Sanitize functions. Remove irq_desc pointer magic. Preparatory patch for further cleanups. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit d4eba29770244e7cc5e60c0977d73d84148a3d6d Author: Thomas Gleixner Date: Fri Sep 24 12:26:18 2010 +0200 x86: Cleanup access to irq_data Fixup the open coded access to irq_desc->[handler_data|chip_data|msi-desc] Use the macros and inline functions for it. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 4305df947ca1fd52867c8d56837a4e6b1e33167c Author: Thomas Gleixner Date: Tue Sep 28 15:01:33 2010 +0200 x86: i8259: Convert to new irq_chip functions Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 020dd984d7c0792e8234f2e4b4fb0534fe750f9d Author: Thomas Gleixner Date: Tue Sep 28 14:59:58 2010 +0200 x86: Cleanup visws interrupt handling Remove the open coded access to irq_desc and convert to the new irq chip functions. Change the mask function of piix4_virtual_irq_type so we can use the generic irq handling function for the virtual interrupt instead of open coding it. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit fe25c7fc2e036e1569faac8715a8aa5496cda78d Author: Thomas Gleixner Date: Tue Sep 28 14:57:24 2010 +0200 x86: lguest: Convert to new irq chip functions Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Rusty Russell commit a5ef2e70405c8a9ee380b5ff33a008c75454791f Author: Thomas Gleixner Date: Tue Sep 28 11:11:10 2010 +0200 x86: Sanitize apb timer interrupt handling Disable the interrupt in CPU_DEAD where it belongs. Remove the open coded irq_desc manipulation. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Jacob Pan commit a3c08e5d80c54e32423efbba113b02942c91f726 Author: Thomas Gleixner Date: Fri Oct 8 20:24:58 2010 +0200 x86: Convert irq_chip access to new functions Before moving the irq chips to the new functions, fixup direct callers. The cpu offline irq fixup code needs to become generic and archs need to honour the "force" flag as an indicator, but that's for later. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 011d578fdadb64bcc1deedbb02216bfee6a9b4dc Author: Thomas Gleixner Date: Tue Sep 28 00:15:31 2010 +0200 x86: Remove useless reinitialization of irq descriptors The descriptors are already initialized in exactly this way. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 39431acb1a4c464e62471cb3058b8ffffb9244db Author: Thomas Gleixner Date: Tue Sep 28 19:09:51 2010 +0200 pci: Cleanup the irq_desc mess in msi Handing down irq_desc to msi just so that msi can access irq_desc.irq_data.msi_desc is a pretty stupid idea. The calling code can hand down a pointer to msi_desc so msi code does not need to know about the irq descriptor at all. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Jesse Barnes commit 1c9db52534a2c0e9776788cd34ccc193289fc18c Author: Thomas Gleixner Date: Tue Sep 28 16:46:51 2010 +0200 pci: Convert msi to new irq_chip functions Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Jesse Barnes Cc: Benjamin Herrenschmidt Cc: "David S. Miller" Cc: Tony Luck Cc: Russell King commit 7c5f13519a67aa7ba3a99155f128d4bdef87d087 Merge: 5e62fea 0219896 Author: Thomas Gleixner Date: Tue Oct 12 16:41:22 2010 +0200 Merge branch 'x86/urgent' of into irq/sparseirq Reason: Pull in the latest io_apic bugfixes Signed-off-by: Thomas Gleixner commit 5e62feabcc3e4127a084701ec54ffe891985b7e8 Merge: 8ffcfa4 234bb54 Author: Thomas Gleixner Date: Tue Oct 12 16:40:34 2010 +0200 Merge branch 'x86/cleanups' into irq/sparseirq Reason: Avoid conflicts with removal of boot_cpu_id Signed-off-by: Thomas Gleixner commit 8ffcfa4e2d96342180e02dfe1230b97778c52d72 Merge: b683de2 fa47f7e Author: Thomas Gleixner Date: Tue Oct 12 16:39:44 2010 +0200 Merge branch 'x86/x2apic' into irq/sparseirq Reason: Avoid conflicts with the x2apic modifications Signed-off-by: Thomas Gleixner commit b683de2b3cb17bb10fa6fd4af614dc75b5749fe0 Author: Thomas Gleixner Date: Mon Sep 27 20:55:03 2010 +0200 genirq: Query arch for number of early descriptors sparse irq sets up NR_IRQS_LEGACY irq descriptors and archs then go ahead and allocate more. Use the unused return value of arch_probe_nr_irqs() to let the architecture return the number of early allocations. Fix up all users. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit aa99ec0f3f26bf2bcd0fa5176de93598427f1e5e Author: Thomas Gleixner Date: Mon Sep 27 20:02:56 2010 +0200 genirq: Use sane sparse allocator Make irq_to_desc_alloc_node() a wrapper around the new allocator. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 25ade601a0f97453c6f511ebfae9339e06a28d75 Author: Thomas Gleixner Date: Thu Sep 30 20:33:11 2010 +0200 genirq-update-kerneldoc.patch Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 06f6c3399e9f9ff6eafc200e80f9226c3cee0eaf Author: Thomas Gleixner Date: Tue Oct 12 12:31:46 2010 +0200 genirq: Implement irq reservation Mark a range of interrupts as allocated. In the SPARSE_IRQ=n case we need this to update the bitmap for the legacy irqs so the enumerator via irq_get_next_irq() works. Signed-off-by: Thomas Gleixner commit a98d24b71b6e229965f18dc00d28dc71cb8fe324 Author: Thomas Gleixner Date: Thu Sep 30 10:45:07 2010 +0200 genirq: Implement sane enumeration Use the allocator bitmap to lookup active interrupts. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 13bfe99e09123ef5edb6acb81ba337d2db600b53 Author: Thomas Gleixner Date: Thu Sep 30 02:46:07 2010 +0200 genirq: Prepare proc for real sparse irq support /proc/irq never removes any entries, but when irq descriptors can be freed for real this is necessary. Otherwise we'd reference a freed descriptor in /proc/irq/N Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 1f5a5b87f78fade3ae48dfd55e8765d1d622ea4e Author: Thomas Gleixner Date: Mon Sep 27 17:48:26 2010 +0200 genirq: Implement a sane sparse_irq allocator The current sparse_irq allocator has several short comings due to failures in the design or the lack of it: - Requires iteration over the number of active irqs to find a free slot (Some architectures have grown their own workarounds for this) - Removal of entries is not possible - Racy between create_irq_nr and destroy_irq (plugged by horrible callbacks) - Migration of active irq descriptors is not possible - No bulk allocation of irq ranges - Sprinkeled irq_desc references all over the place outside of kernel/irq/ (The previous chip functions series is addressing this issue) Implement a sane allocator which fixes the above short comings (though migration of active descriptors needs a full tree wide cleanup of the direct and mostly unlocked access to irq_desc). The new allocator still uses a radix_tree, but uses a bitmap for keeping track of allocated irq numbers. That allows: - Fast lookup of a free slot - Allows the removal of descriptors - Prevents the create/destroy race - Bulk allocation of consecutive irq ranges - Basic design is ready for migration of life descriptors after further cleanups The bitmap is also used in the SPARSE_IRQ=n case for lookup and raceless (de)allocation of irq numbers. So it removes the requirement for looping through the descriptor array to find slots. Right now it uses sparse_irq_lock to protect the bitmap and the radix tree, but after cleaning up all users we should be able convert that to a mutex and to switch the radix_tree and decriptor allocations to GFP_KERNEL. [ Folded in a bugfix from Yinghai Lu ] Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 1318a481fc37c503a901b96ae06b692ca2b21af5 Author: Thomas Gleixner Date: Mon Sep 27 21:01:37 2010 +0200 genirq: Provide default irq init flags Arch code sets it's own irq_desc.status flags right after boot and for dynamically allocated interrupts. That might involve iterating over a huge array. Allow ARCH_IRQ_INIT_FLAGS to set separate flags aside of IRQ_DISABLED which is the default. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit d895f51ebb54cefe367bda135fcf2cd734d51d03 Author: Thomas Gleixner Date: Mon Sep 27 17:45:49 2010 +0200 genirq: Remove export of kstat_irqs_cpu The statistics accessor is only used by proc/stats and show_interrupts(). Both are compiled in. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 40f08a724fcc21285cf3a75aec957aef908605c6 Author: Thomas Gleixner Date: Wed Sep 29 22:16:36 2010 +0200 isdn: hisax: Replace the bogus access to irq stats Abusing irq stats in a driver for counting interrupts is a horrible idea and not safe with shared interrupts. Replace it by a local interrupt counter. Noticed by the attempt to remove the irq stats export. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 154cd387cdf0e5566ce523cbddf92dd2a062dfd6 Author: Thomas Gleixner Date: Wed Sep 22 15:58:45 2010 +0200 genirq: Remove early_init_irq_lock_class() early_init_irq_lock_class() is called way before anything touches the irq descriptors. In case of SPARSE_IRQ=y this is a NOP operation because the radix tree is empty at this point. For the SPARSE_IRQ=n case it's sufficient to set the lock class in early_init_irq(). Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 3795de236d67a05994a1a12759db9d4dd9ffc42c Author: Thomas Gleixner Date: Wed Sep 22 17:09:43 2010 +0200 genirq: Distangle kernel/irq/handle.c kernel/irq/handle.c has become a dumpground for random code in random order. Split out the irq descriptor management and the dummy irq_chip implementation into separate files. Cleanup the include maze while at it. No code change. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit f303a6dd127b5ec6de90d1cd79ed19820c7e9658 Author: Thomas Gleixner Date: Tue Sep 28 17:34:01 2010 +0200 genirq: Sanitize irq_data accessors Get the data structure from the core and provide inline wrappers to access the irq_data members. Provide accessor inlines for irq_data as well. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 442471848f5abb55b99cba1229301655f67492b4 Author: Thomas Gleixner Date: Tue Sep 28 10:40:18 2010 +0200 genirq: Provide status modifier Provide a irq_desc.status modifier function to cleanup the direct access to irq_desc in arch and driver code. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 3a3856d00c74560a7b8d9f8a13c1ca94ee786b78 Author: Thomas Gleixner Date: Mon Oct 4 13:47:12 2010 +0200 genirq: Remove unsused inline move_irq() has no users. Remove it and simplify the ifdef forrest while at it. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit e144710b302525de5b90b9c3ba43562458d8957f Author: Thomas Gleixner Date: Fri Oct 1 16:03:45 2010 +0200 genirq: Distangle irq.h Move irq_desc and internal functions out of irq.h Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit b1f7d6e1909c72338aa93a113d5844767434dacb Author: Michal Marek Date: Tue Oct 12 15:12:23 2010 +0200 Revert "kconfig: Temporarily disable dependency warnings" This reverts commit 71ebc01, which was a 2.6.36-only stopgap solution. Signed-off-by: Michal Marek commit 239060b93bb30a4ad55f1ecaa512464a035cc5ba Merge: 1408b15 e9203c9 Author: Michal Marek Date: Tue Oct 12 15:09:06 2010 +0200 Merge branch 'kbuild/rc-fixes' into kbuild/kconfig We need to revert the temporary hack in 71ebc01, hence the merge. commit 6d97e55f7172303082850c1de085d06fc1e57d17 Author: Dan Carpenter Date: Mon Oct 11 19:24:19 2010 +0200 vhost: fix return code for log_access_ok() access_ok() returns 1 if it's OK otherwise it should return 0. Signed-off-by: Dan Carpenter Signed-off-by: Michael S. Tsirkin commit bdd9ef24cd343c508ed93f1e08f30d4db595b754 Author: David Henningsson Date: Mon Oct 4 12:02:14 2010 +0200 ALSA: HDA: Correctly apply position_fix quirks for ATI and VIA controllers Position_fix quirks for specific machines now override the default position_fix behavior for all HDA controllers. BugLink: http://launchpad.net/bugs/465942 BugLink: http://launchpad.net/bugs/580749 BugLink: http://launchpad.net/bugs/587546 Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai commit 00545785d7e355b0b1b9fb820ec70cb2ae51b409 Author: Kuninori Morimoto Date: Tue Oct 12 18:30:14 2010 +0900 ASoC: Add fsi_is_play function Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit cf6edd007b6c371613a2f48e58f3a4238d9775c8 Author: Kuninori Morimoto Date: Tue Oct 12 11:40:53 2010 +0900 ASoC: fsi: Add new macro and shift for PortA/B In/Out Some FSI register have similar bit array for PortA/B and In/Out. This patch add new macro and shift for it Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 75eda968e4db79bda95e9a5f90aead952c273839 Author: Kuninori Morimoto Date: Tue Oct 12 11:40:14 2010 +0900 ASoC: fsi: avoid un-necessary status read Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit a68a3b4ed4ecafcf80f4272e8e1f0670b387041e Author: Kuninori Morimoto Date: Tue Oct 12 11:39:50 2010 +0900 ASoC: fsi: remove un-necessary variable from fsi_dai_startup Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit cca1b2353a364fd51619d0f304dd9681282b864c Author: Kuninori Morimoto Date: Tue Oct 12 11:39:25 2010 +0900 ASoC: fsi: Add fsi_get_frame_width function It is not so important for now. But will be used in future. Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 1422408b34fd27ac7ab4a42e72d4b61553b6f631 Author: Kuninori Morimoto Date: Tue Oct 12 13:39:25 2010 +0900 ASoC: ak4642: simultaneous playback/recorde support Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit f7cb8b5ffd16edad64ae16ee38c561f98cbcaa3b Author: Andi Kleen Date: Mon Oct 11 19:51:49 2010 +0200 Add _addr_lsb field to ia64 siginfo The huge pages code uses the siginfo _addr_lsb field, but ia64 was missing it. Add it to ia64 too (over some padding) to avoid compilation failures. Acked-by: Tony Luck Signed-off-by: Andi Kleen commit dab5fff14df2cd16eb1ad4c02e83915e1063fece Author: Zhang Rui Date: Tue Oct 12 09:09:37 2010 +0800 acpi-cpufreq: fix a memleak when unloading driver We didn't free per_cpu(acfreq_data, cpu)->freq_table when acpi_freq driver is unloaded. Resulting in the following messages in /sys/kernel/debug/kmemleak: unreferenced object 0xf6450e80 (size 64): comm "modprobe", pid 1066, jiffies 4294677317 (age 19290.453s) hex dump (first 32 bytes): 00 00 00 00 e8 a2 24 00 01 00 00 00 00 9f 24 00 ......$.......$. 02 00 00 00 00 6a 18 00 03 00 00 00 00 35 0c 00 .....j.......5.. backtrace: [] kmemleak_alloc+0x27/0x50 [] __kmalloc+0xcf/0x110 [] acpi_cpufreq_cpu_init+0x1ee/0x4e4 [acpi_cpufreq] [] cpufreq_add_dev+0x142/0x3a0 [] sysdev_driver_register+0x97/0x110 [] cpufreq_register_driver+0x86/0x140 [] 0xf9dad080 [] do_one_initcall+0x30/0x160 [] sys_init_module+0x99/0x1e0 [] sysenter_do_call+0x12/0x26 [] 0xffffffff https://bugzilla.kernel.org/show_bug.cgi?id=15807#c21 Tested-by: Toralf Forster Signed-off-by: Zhang Rui Signed-off-by: Len Brown commit 2f34b32977ade4249601f35f7eb0cdd56b4e0f89 Author: Gerrit Renker Date: Mon Oct 11 20:44:42 2010 +0200 dccp: cosmetics - warning format This omits the redundant "DCCP:" in warning messages, since DCCP_WARN() already echoes the function name, avoiding messages like kernel: [10988.766503] dccp_close: DCCP: ABORT -- 209 bytes unread Signed-off-by: Gerrit Renker commit ecdfbdabbe4e0cf0443cbbea2df1bf51bf67f3f3 Author: Gerrit Renker Date: Mon Oct 11 20:41:13 2010 +0200 dccp: schedule an Ack when receiving timestamps This schedules an Ack when receiving a timestamp, exploiting the existing inet_csk_schedule_ack() function, saving one case in the `dccp_ack_pending()' function. Signed-off-by: Gerrit Renker commit d196c9a5d4e150cdff675662214c80c69b906958 Author: Ivo Calado Date: Mon Oct 11 20:40:04 2010 +0200 dccp: generalise data-loss condition This patch generalises the task of determining data loss from RFC 4340, 7.7.1. Let S_A, S_B be sequence numbers such that S_B is "after" S_A, and let N_B be the NDP count of packet S_B. Then, using modulo-2^48 arithmetic, D = S_B - S_A - 1 is an upper bound of the number of lost data packets, D - N_B is an approximation of the number of lost data packets (there are cases where this is not exact). The patch implements this as dccp_loss_count(S_A, S_B, N_B) := max(S_B - S_A - 1 - N_B, 0) Signed-off-by: Ivo Calado Signed-off-by: Erivaldo Xavier Signed-off-by: Leandro Sales Signed-off-by: Gerrit Renker commit baf9e782e1dc4991edecfa3b8700cf8739c40259 Author: Gerrit Renker Date: Mon Oct 11 20:37:38 2010 +0200 dccp: remove unused argument in CCID tx function This removes the argument `more' from ccid_hc_tx_packet_sent, since it was nowhere used in the entire code. (Btw, this argument was not even used in the original KAME code where the function initially came from; compare the variable moreToSend in the freebsd61-dccp-kame-28.08.2006.patch kept by Emmanuel Lochin.) Signed-off-by: Gerrit Renker commit 93344af44c0f649582bf1e3b5ecc45b3d19e98c2 Author: Gerrit Renker Date: Mon Oct 11 20:36:33 2010 +0200 dccp: merge now-reduced connect_init() function After moving the assignment of GAR/ISS from dccp_connect_init() to dccp_transmit_skb(), the former function becomes very small, so that a merger with dccp_connect() suggests itself. Signed-off-by: Gerrit Renker commit 0b53d4604ac2b4f2faa9a62a04ea9b383ad2efe0 Author: Gerrit Renker Date: Mon Oct 11 20:35:40 2010 +0200 dccp: fix the adjustments to AWL and SWL This fixes a problem and a potential loophole with regard to seqno/ackno validity: currently the initial adjustments to AWL/SWL are only performed once at the begin of the connection, during the handshake. Since the Sequence Window feature is always greater than Wmin=32 (7.5.2), it is however necessary to perform these adjustments at least for the first W/W' (variables as per 7.5.1) packets in the lifetime of a connection. This requirement is complicated by the fact that W/W' can change at any time during the lifetime of a connection. Therefore it is better to perform that safety check each time SWL/AWL are updated, as implemented by the patch. A second problem solved by this patch is that the remote/local Sequence Window feature values (which set the bounds for AWL/SWL/SWH) are undefined until the feature negotiation has completed. During the initial handshake we have more stringent sequence number protection; the changes added by this patch effect that {A,S}W{L,H} are within the correct bounds at the instant that feature negotiation completes (since the SeqWin feature activation handlers call dccp_update_gsr/gss()). Signed-off-by: Gerrit Renker commit 26012f0750dd73348b0a0a680a4bee2715d4a334 Author: Animesh K Trivedi Date: Tue Sep 28 14:44:02 2010 +0000 RDMA/iwcm: Fix hang in uninterruptible wait on cm_id destroy A process can get stuck in an uninterruptible wait in the kernel while destroying a cm_id when iw_cm_connect() fails: For example, When creation of a PD fails but the user continues with an attempt to connect to the server without checking the return value, in iw_cm_connect() a NULL qp is found so the call fails. However the IWCM_F_CONNECT_WAIT bit is not cleared. destroy_cm_id() then waits forever for IWCM_F_CONNECT_WAIT to be cleared. The same problem exists on the passive side with the accept call. Fix this by clearing the bit and waking up any waiters in the appropriate spots. Signed-off-by: Animesh Trivedi Acked-by: Steve Wise Signed-off-by: Roland Dreier commit 3160977a6e66ea4c4b4f33010f5d04f0004b938c Author: Steve Wise Date: Wed Sep 29 18:21:33 2010 +0000 RDMA/cxgb4: Use simple_read_from_buffer() for debugfs handlers We can replace our equivalent open-coded version. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 8bbac892fb75d20fa274ca026e24faf00afbf9dd Author: Steve Wise Date: Wed Sep 29 14:11:12 2010 +0000 RDMA/cxgb4: Add default_llseek to debugfs files Incorporate BKL removal changes. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 8e4029ee3517084ae00fbfbcb51cc365d8857061 Merge: cd79481 73cf624 Author: H. Peter Anvin Date: Mon Oct 11 17:05:11 2010 -0700 Merge branch 'x86/urgent' into core/memblock Reason for merge: Forward-port urgent change to arch/x86/mm/srat_64.c to the memblock tree. Resolved Conflicts: arch/x86/mm/srat_64.c Originally-by: Yinghai Lu Signed-off-by: H. Peter Anvin commit ecec6e34e18660799444c5a163c7313a20fba701 Author: J. Bruce Fields Date: Mon Oct 11 16:49:44 2010 -0400 nfsd4: expire clients more promptly Expire clients more promptly, at the expense of possibly running the laundromat thread more frequently. Though it's not the default, I'd like it to be feasible to run with a lease time of just a few seconds, at which point a minimum 10 second wait between laundromat runs seems a little much. Signed-off-by: J. Bruce Fields commit 70dc78da2cc76e7804c597fea3a0aff67ec8d7ad Author: Pavel Emelyanov Date: Tue Oct 5 20:48:02 2010 +0400 sunrpc: Use helper to set v4 mapped addr in ip_map_parse Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit e33534d54f1fde3e541f64fa5ad0dd379fc45fa7 Author: NeilBrown Date: Thu Oct 7 15:29:46 2010 +1100 sunrpc/cache: centralise handling of size limit on deferred list. We limit the number of 'defer' requests to DFR_MAX. The imposition of this limit is spread about a bit - sometime we don't add new things to the list, sometimes we remove old things. Also it is currently applied to requests which we are 'waiting' for rather than 'deferring'. This doesn't seem ideal as 'waiting' requests are naturally limited by the number of threads. So gather the DFR_MAX handling code to one place and only apply it to requests that are actually being deferred. This means that not all 'cache_deferred_req' structures go on the 'cache_defer_list, so we need to be careful when adding and removing things. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit d29068c431599fa96729556846562eb18429092d Author: NeilBrown Date: Thu Oct 7 15:29:46 2010 +1100 sunrpc: Simplify cache_defer_req and related functions. The return value from cache_defer_req is somewhat confusing. Various different error codes are returned, but the single caller is only interested in success or failure. In fact it can measure this success or failure itself by checking CACHE_PENDING, which makes the point of the code more explicit. So change cache_defer_req to return 'void' and test CACHE_PENDING after it completes, to see if the request was actually deferred or not. Similarly setup_deferral and cache_wait_req don't need a return value, so make them void and remove some code. The call to cache_revisit_request (to guard against a race) is only needed for the second call to setup_deferral, so move it out of setup_deferral to after that second call. With the first call the race is handled differently (by explicitly calling 'wait_for_completion'). Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit 50f2d7f682f9c0ed58191d0982fe77888d59d162 Author: Nikanth Karthikesan Date: Thu Sep 30 17:34:10 2010 +0530 x86, numa: Assign CPUs to nodes in round-robin manner on fake NUMA commit d9c2d5ac6af87b4491bff107113aaf16f6c2b2d9 "x86, numa: Use near(er) online node instead of roundrobin for NUMA" changed NUMA initialization on Intel to choose the nearest online node or first node. Fake NUMA would be better of with round-robin initialization, instead of the all CPUS on first node. Change the choice of first node, back to round-robin. For testing NUMA kernel behaviour without cpusets and NUMA aware applications, it would be better to have cpus in different nodes, rather than all in a single node. With cpusets migration of tasks scenarios cannot not be tested. I guess having it round-robin shouldn't affect the use cases for all cpus on the first node. The code comments in arch/x86/mm/numa_64.c:759 indicate that this used to be the case, which was changed by commit d9c2d5ac6. It changed from roundrobin to nearer or first node. And I couldn't find any reason for this change in its changelog. Signed-off-by: Nikanth Karthikesan Cc: David Rientjes Signed-off-by: Andrew Morton commit c239f279e571a272c1b32a1e84b8fa037b68f49c Author: Michael Chan Date: Mon Oct 11 16:12:28 2010 -0700 bnx2: Enable AER on PCIE devices only To prevent unnecessary error message. pci_save_state() is also moved to the end of ->probe() so that all PCI config, including AER state, will be saved. Update version to 2.0.18. Signed-off-by: Michael Chan Reviewed-by: Benjamin Li Signed-off-by: David S. Miller commit 22fa159d37efbfe781bbb99279efe83f58b87d29 Author: Michael Chan Date: Mon Oct 11 16:12:00 2010 -0700 bnx2: Update firmware to 6.0.x. - Improved flow control and simplified interface - Use hardware RSS indirection table instead of the slower firmware- based table - Lower latency interrupt on 5709 Signed-off-by: Michael Chan Reviewed-by: Benjamin Li Signed-off-by: David S. Miller commit e37ef961e50d74f55e9edb48e54dd2e7963aad39 Author: Eric Dumazet Date: Mon Oct 11 12:20:54 2010 +0000 neigh: reorder struct neighbour fields Le mardi 12 octobre 2010 à 00:02 +0200, Eric Dumazet a écrit : > Here is the followup patch. > > Thanks ! > Oops, this was an old version, the up2date ones also took care of "used" field. I guess its time for a sleep, sorry again. [PATCH net-next V2] neigh: reorder struct neighbour fields (refcnt) and (ha_lock, ha, used, dev, output, ops, primary_key) should be placed on a separate cache lines. refcnt can be often written, while other fields are mostly read. This gave me good result on stress test : before: real 0m45.570s user 0m15.525s sys 9m56.669s After: real 0m41.841s user 0m15.261s sys 8m45.949s Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit cd79481d27b9f90aad80c9b972292c42c25bbf8e Author: Yinghai Lu Date: Mon Oct 11 12:34:09 2010 -0700 memblock: Annotate memblock functions with __init_memblock Stephen found WARNING: mm/built-in.o(.text+0x25ab8): Section mismatch in reference from the function memblock_find_base() to the function .init.text:memblock_find_region() The function memblock_find_base() references the function __init memblock_find_region(). This is often because memblock_find_base lacks a __init annotation or the annotation of memblock_find_region is wrong. So let memblock_find_region() to use __init_memblock instead of __init directly. Also fix one function that did not have __init* to be __init_memblock. Reported-by: Stephen Rothwell Signed-off-by: Yinghai Lu LKML-Reference: <4CB366B1.40405@kernel.org> Signed-off-by: H. Peter Anvin commit 236260b90dd94516982ad67aa6f5449c4c37db7b Author: Jeremy Fitzhardinge Date: Wed Oct 6 15:52:29 2010 -0700 memblock: Allow memblock_init to be called early The Xen setup code needs to call memblock_x86_reserve_range() very early, so allow it to initialize the memblock subsystem before doing so. The second memblock_init() is ignored. Signed-off-by: Jeremy Fitzhardinge Cc: Yinghai Lu Cc: Benjamin Herrenschmidt LKML-Reference: <4CACFDAD.3090900@goop.org> Signed-off-by: H. Peter Anvin commit 58ff4bd042adf8013c8f70fd03c2c0f8d022e387 Author: Jayamohan Kallickal Date: Wed Oct 6 23:46:47 2010 +0530 [SCSI] be2iscsi: SGE Len == 64K Signed-off-by: Jayamohan Kallickal Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit af4c609c0d645f196b570c58dd4ee878ff3afd24 Author: Jayamohan Kallickal Date: Wed Oct 6 23:46:03 2010 +0530 [SCSI] be2iscsi: Remove premature free of cid Remove unnecessary beiscsi_put_cid that was freeing up the cid while in use Signed-off-by: Jayamohan Kallickal Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 91446f060b9ae27875d38b00dc3c6394b8321bff Author: Jayamohan Kallickal Date: Wed Oct 6 23:45:21 2010 +0530 [SCSI] be2iscsi: More time for FW This patch provides more time for the FW to respond. This became necessary in boot situations Signed-off-by: Jayamohan Kallickal Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 2bc72c91ea7e104b0e40151543d135b933a12e93 Author: Jack Wang Date: Wed Oct 6 16:05:35 2010 +0800 [SCSI] libsas: fix bug for vacant phy This patch fix bug reported by Chuck. And this new version incorporate comments from Hannes. Please consider to include it into mainline. Signed-off-by: Jack Wang Signed-off-by: Lindar Liu Tested-by: Chuck Tuffli Signed-off-by: James Bottomley commit 526f7c7950bbf1271e59177d70d74438c2ef96de Author: Martin K. Petersen Date: Tue Sep 28 14:48:47 2010 -0400 [SCSI] sd: Fix overflow with big physical blocks The hw_sector_size variable could overflow if a device reported huge physical blocks. Switch to the more accurate physical_block_size terminology and make sure we use an unsigned int to match the range permitted by READ CAPACITY(16). Signed-off-by: Martin K. Petersen Signed-off-by: James Bottomley commit 88b522771079d7ab5f2334c8271bc13e1d309a5c Author: Niranjana Vishwanathapura Date: Wed Oct 6 13:52:11 2010 -0700 msm: smd: enable smd on qsd8x50 target Add msm_smd device in the qsd8x50 board file. Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Daniel Walker commit a8855e9c093fdb35b40a707d580c75d523fed16e Author: Niranjana Vishwanathapura Date: Wed Oct 6 13:52:10 2010 -0700 msm: smd: enable smd on msm7x30 target Add msm_smd device in the msm7x30 board file. Signed-off-by: Niranjana Vishwanathapura Signed-off-by: Daniel Walker commit 94dc5e778042daea25f2198884e2eb8f3bd350ed Author: Jason Cooper Date: Mon Oct 11 10:02:55 2010 -0400 staging: brcm80211: s/unsigned char/size_t/ for min_t() Avoid potential truncation. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 29e29f27486ed7074df259b3eda8656bb014e9b5 Author: Linus Walleij Date: Fri Oct 1 09:15:41 2010 +0100 ARM: 6421/1: amba-pl011: add missing ST specific registers The ST Micro derivates have several extra interesting registers that we may soon use for something interesting so may just as well define them in the header. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Russell King commit d5642d3ba7b6609e93a688bb39bd5883a270e41f Author: Andy Shevchenko Date: Mon Oct 11 12:07:35 2010 +0300 staging: brcm80211: remove custom string library again There was a clean up commit for softmac driver. Do the same for fullmac implementation. Here: - strtoul and bcm_strtoul are changed to simple_strtoul - bcmstrtok -> strsep All unused functions are deleted. Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 41c7f4167e1312dacfc514d8610dbaaa14cfaea5 Author: Andy Shevchenko Date: Mon Oct 11 12:07:34 2010 +0300 staging: brcm80211: clean up custom ctype library again The similar cleanup was done before for softmac implementation. But the fullmac driver brings this back. Remove it again. Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit d7cf430c5420883e86adcc94a19f22369e191929 Author: Tracey Dent Date: Mon Oct 11 00:00:44 2010 -0400 Staging: speakup: i18n.c: cleaned up file Cleaned up file with the use of checkpatch.pl. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 8b1f5d91e23300ea2f65007047d26799157dc4b8 Author: Jassi Brar Date: Tue Sep 7 04:02:16 2010 +0100 ARM: 6367/1: PL330: Accept different revision The driver can handle different revisions of the core which vary only minorly. Signed-off-by: Jassi Brar Signed-off-by: Russell King commit 725343fa748fc9b7c883d198e9cec391425aa478 Author: Linus Walleij Date: Sat Oct 9 13:43:21 2010 +0100 ARM: 6437/2: mmci: add some register defines for ST Micro variants This adds a few registers to the MMCI/PL180 derivates that is used for some odd control stuff like SDIO. Signed-off-by: Marcin Mielczarczyk Signed-off-by: Linus Walleij Signed-off-by: Russell King commit 5a0fd09428e47fb08d5a887515d92bb2447f4b65 Author: Eli Cohen Date: Thu Oct 7 16:24:16 2010 +0200 IB/mlx4: Limit size of fast registration WRs Fix the limit on the size of max fast registration WRs that can be posted to match hardware capabilities. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 0e4905c0199d683497833be60a428c784d7575b8 Author: Peter Ujfalusi Date: Mon Oct 11 14:18:56 2010 -0700 OMAP3: DMA: Errata i541: sDMA FIFO draining does not finish Implement the suggested workaround for OMAP3 regarding to sDMA draining issue, when the channel is disabled on the fly. This errata affects the following configuration: sDMA transfer is source synchronized Buffering is enabled SmartStandby is selected. The issue can be easily reproduced by creating overrun situation while recording audio. Either introduce load to the CPU: nice -19 arecord -D hw:0 -M -B 10000 -F 5000 -f dat > /dev/null & \ dd if=/dev/urandom of=/dev/null or suspending the arecord, and resuming it: arecord -D hw:0 -M -B 10000 -F 5000 -f dat > /dev/null CTRL+Z; fg; CTRL+Z; fg; ... In case of overrun audio stops DMA, and restarts it (without reseting the sDMA channel). When we hit this errata in stop case (sDMA drain did not complete), at the coming start the sDMA will not going to be operational (it is still draining). This leads to DMA stall condition. On OMAP3 we can recover with sDMA channel reset, it has been observed that by introducing unrelated sDMA activity might also help (reading from MMC for example). The same errata exists for OMAP2, where the suggestion is to disable the buffering to avoid this type of error. On OMAP3 the suggestion is to set sDMA to NoStandby before disabling the channel, and wait for the drain to finish, than configure sDMA to SmartStandby again. Signed-off-by: Peter Ujfalusi Acked-by: Jarkko Nikula Acked-by : Santosh Shilimkar Acked-by : Manjunath Kondaiah G Signed-off-by: Tony Lindgren commit 3e57f1626b5febe5cc99aa6870377deef3ae03cc Author: Jarkko Nikula Date: Mon Oct 11 14:18:45 2010 -0700 omap: dma: Fix buffering disable bit setting for omap24xx An errata workaround for omap24xx is not setting the buffering disable bit 25 what is the purpose but channel enable bit 7 instead. Background for this fix is the DMA stalling issue with ASoC omap-mcbsp driver. Peter Ujfalusi has found an issue in recording that the DMA stall could happen if there were a buffer overrun detected by ALSA and the DMA was stopped and restarted due that. This problem is known to occur on both OMAP2420 and OMAP3. It can recover on OMAP3 after dma free, dma request and reconfiguration cycle. However, on OMAP2420 it seems that only way to recover is a reset. Problem was not visible before the commit c12abc0. That commit changed that the McBSP transmitter/receiver is released from reset only when needed. That is, only enabled McBSP transmitter without transmission was able to prevent this DMA stall problem in receiving side and underlying problem did not show up until now. McBSP transmitter itself seems to no be reason since DMA stall does not recover by enabling the transmission after stall. Debugging showed that there were a DMA write active during DMA stop time and it never completed even when restarting the DMA. Experimenting showed that the DMA buffering disable bit could be used to avoid stalling when using source synchronized transfers. However that could have performance hit and OMAP3 TRM states that buffering disable is not allowed for destination synchronized transfers so subsequent patch will implement a method to complete DMA writes when stopping. This patch is based on assumtion that complete lock-up on OMAP2420 is different but related problem. I don't have access to OMAP2420 errata but I believe this old workaround here is put for a reason but unfortunately a wrong bit was typed and problem showed up only now. Signed-off-by: Jarkko Nikula Signed-off-by: Peter Ujfalusi Acked-by: Manjunath Kondaiah G Signed-off-by: Tony Lindgren commit 7bdb0d18bfd381cc5491eb95973ec5604b356c7e Author: Tristan Ye Date: Mon Oct 11 16:46:39 2010 +0800 ocfs2: Add a mount option "coherency=*" to handle cluster coherency for O_DIRECT writes. Currently, the default behavior of O_DIRECT writes was allowing concurrent writing among nodes to the same file, with no cluster coherency guaranteed (no EX lock held). This can leave stale data in the cache for buffered reads on other nodes. The new mount option introduce a chance to choose two different behaviors for O_DIRECT writes: * coherency=full, as the default value, will disallow concurrent O_DIRECT writes by taking EX locks. * coherency=buffered, allow concurrent O_DIRECT writes without EX lock among nodes, which gains high performance at risk of getting stale data on other nodes. Signed-off-by: Tristan Ye Signed-off-by: Joel Becker commit e79f86b2ef9c0a8c47225217c1018b7d3d90101c Author: Yinghai Lu Date: Mon Oct 11 10:40:25 2010 -0700 swiotlb: Use page alignment for early buffer allocation We could call free_bootmem_late() if swiotlb is not used, and it will shrink to page alignment. So alloc them with page alignment at first, to avoid lose two pages before patch: [ 0.000000] memblock_x86_reserve_range: [00d3600000, 00d7600000] swiotlb buffer [ 0.000000] memblock_x86_reserve_range: [00d7e7ef40, 00d7e9ef40] swiotlb list [ 0.000000] memblock_x86_reserve_range: [00d7e3ef40, 00d7e7ef40] swiotlb orig_ad [ 0.000000] memblock_x86_reserve_range: [000008a000, 0000092000] swiotlb overflo after patch will get [ 0.000000] memblock_x86_reserve_range: [00d3600000, 00d7600000] swiotlb buffer [ 0.000000] memblock_x86_reserve_range: [00d7e7e000, 00d7e9e000] swiotlb list [ 0.000000] memblock_x86_reserve_range: [00d7e3e000, 00d7e7e000] swiotlb orig_ad [ 0.000000] memblock_x86_reserve_range: [000008a000, 0000092000] swiotlb overflo Signed-off-by: Yinghai Lu Acked-by: FUJITA Tomonori Cc: Becky Bruce Signed-off-by: Konrad Rzeszutek Wilk commit 75d9bbc73804285020aa4d99bd2a9600edea8945 Author: Goldwyn Rodrigues Date: Mon Oct 11 12:57:09 2010 -0500 Initialize max_slots early Functions such as ocfs2_recovery_init() make use of osb->max_slots. Initialize osb->max_slots early so the functions may use the correct value. Signed-off-by: Goldwyn Rodrigues Signed-off-by: Joel Becker commit f30d44f3e54a94e037da7a71d714b585dab28d9e Author: Poyo VL Date: Mon Oct 11 13:45:52 2010 -0700 When I tried to compile I got the following warning: fs/ocfs2/slot_map.c: In function ‘ocfs2_init_slot_info’: fs/ocfs2/slot_map.c:360: warning: ‘bytes’ may be used uninitialized in this function fs/ocfs2/slot_map.c:360: note: ‘bytes’ was declared here Compiler: gcc version 4.4.3 (GCC) on Mandriva I'm not sure why this warning occurs, I think compiler don't know that variable "bytes" is initialized when it is sent by reference to ocfs2_slot_map_physical_size and it throws that ugly warning. However, a simple initialization of "bytes" variable with 0 will fix it. Signed-off-by: Ionut Gabriel Popescu Signed-off-by: Joel Becker commit 9b5cd10e4c14a1a642076ace6a73be3d33c91fb6 Author: Srinivas Eeda Date: Tue Oct 5 15:53:06 2010 -0700 ocfs2: validate bg_free_bits_count after update This patch adds a safe check to ensure bg_free_bits_count doesn't exceed bg_bits in a group descriptor. This is to avoid on disk corruption that was seen recently. debugfs: group <52803072> Group Chain: 179 Parent Inode: 11 Generation: 2959379682 CRC32: 00000000 ECC: 0000 ## Block# Total Used Free Contig Size 0 52803072 32256 4294965350 34202 18207 4032 ...... Signed-off-by: Srinivas Eeda Signed-off-by: Joel Becker commit fc66f95c68b6d4535a0ea2ea15d5cf626e310956 Author: Eric Dumazet Date: Fri Oct 8 06:37:34 2010 +0000 net dst: use a percpu_counter to track entries struct dst_ops tracks number of allocated dst in an atomic_t field, subject to high cache line contention in stress workload. Switch to a percpu_counter, to reduce number of time we need to dirty a central location. Place it on a separate cache line to avoid dirtying read only fields. Stress test : (Sending 160.000.000 UDP frames, IP route cache disabled, dual E5540 @2.53GHz, 32bit kernel, FIB_TRIE, SLUB/NUMA) Before: real 0m51.179s user 0m15.329s sys 10m15.942s After: real 0m45.570s user 0m15.525s sys 9m56.669s With a small reordering of struct neighbour fields, subject of a following patch, (to separate refcnt from other read mostly fields) real 0m41.841s user 0m15.261s sys 8m45.949s Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 0ed8ddf4045fcfcac36bad753dc4046118c603ec Author: Eric Dumazet Date: Thu Oct 7 10:44:07 2010 +0000 neigh: Protect neigh->ha[] with a seqlock Add a seqlock in struct neighbour to protect neigh->ha[], and avoid dirtying neighbour in stress situation (many different flows / dsts) Dirtying takes place because of read_lock(&n->lock) and n->used writes. Switching to a seqlock, and writing n->used only on jiffies changes permits less dirtying. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit d122179a3c0fdc71b88cb9e3605f372b1651a9ff Merge: 419c204 b00916b Author: David S. Miller Date: Mon Oct 11 12:30:34 2010 -0700 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 Conflicts: net/core/ethtool.c commit a13c8f3133b250e732c383b1c390d625e755db03 Author: Ivo van Doorn Date: Mon Oct 11 15:39:48 2010 +0200 rt2x00: Fix URB error handling kill_urb guarentees that when the function returns, the URB has been fully killed. This means we don't need the extra sleeping after the call to kill_urb. kill_urb can however also guarentee the submit_urb to fail, as a result, we must catch the return value from submit_urb an correctly mark the entry as owned by the driver, and the status as broken. Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 1a397696536e896e7d763c0c38f3ae3e588b5d52 Author: Ivo van Doorn Date: Mon Oct 11 15:39:04 2010 +0200 rt2x00: Don't perform watchdog checks on empty queue The currently used watchdog functions cannot be applied to empty queues. Signed-off-by: Ivo van Doorn Acked-by: Helmut Schaa Signed-off-by: John W. Linville commit a1d1eabc8c42ddf5fd3ea4184094561b3edd127b Author: Ivo van Doorn Date: Mon Oct 11 15:38:45 2010 +0200 rt2x00: Make queue_entry flags access atomic All access to the queue_entry->flags can be done concurrently, so all flags must use the atomic operators. On most locations this was already done, so just fix the last few non-atomic versions. Signed-off-by: Ivo van Doorn Acked-by: Helmut Schaa Signed-off-by: John W. Linville commit 1550c8ef835af17df322045e92541561afa0f017 Author: Ivo van Doorn Date: Mon Oct 11 15:38:26 2010 +0200 rt2x00: Fix dead queue when skb allocation failed When the RX skb allocation failed, we should recycle the previously allocated skbuffer. By calling return we would kill the RX queue completely since the entry would be invalidated. Signed-off-by: Ivo van Doorn Acked-by: Helmut Schaa Signed-off-by: John W. Linville commit 3590eea41815679e268c90d30795a13a732b8413 Author: Ivo van Doorn Date: Mon Oct 11 15:38:07 2010 +0200 rt2x00: Validate MCS on RX path Similar to the PLCP signal and bitrates values, we should validate the MCS value from the RX descriptor before sending it to mac80211. Signed-off-by: Ivo van Doorn Acked-by: Helmut Schaa Signed-off-by: John W. Linville commit cdfd2c5cffac2e744c855f9998212867387bb2de Author: Ivo van Doorn Date: Mon Oct 11 15:37:47 2010 +0200 rt2x00: Move watchdog work to kernel work_queue The watchdog function must run on a work_queue which is independent of any other work inside rt2x00. The main reasons, being that a broken work on the mac80211 work_queue can otherwise prevent the watchdog to run (while in fact the watchdog could fix the issue). And on the other hand because the watchdog relies on the completion of the completion handlers for RX/TX which for the USB case, occur on the mac80211 workqueue. This fixes some "Queue %d failed to flush" errors, which were caused by the watchdog function waiting on the completion handler which was scheduled to run right after the watchdog. Signed-off-by: Ivo van Doorn Acked-by: Helmut Schaa Signed-off-by: John W. Linville commit fa69560f317d961c56e29dea788b346d2b34fb87 Author: Ivo van Doorn Date: Mon Oct 11 15:37:25 2010 +0200 rt2x00: Simplify Queue function arguments A lot of functions accept a struct rt2x00_dev combined with either a struct queue_entry or struct data_queue argument. This can be simplified by only passing on the queue/entry argument. In cases where rt2x00_dev and a sk_buff are send together, we can send the queue_entry instead. rt2x00usb_alloc_urb and rt2x00usb_free_urb have a bit of vague naming. Instead they allocate all the data which belongs to a rt2x00 data queue entry. Signed-off-by: Ivo van Doorn Acked-by: Helmut Schaa Signed-off-by: John W. Linville commit a9325199edb093a5c7311a25d15da20ee984e80b Author: Jiri Slaby Date: Mon Oct 11 11:27:32 2010 +0200 WIRELESS: at76c50x, remove unneeded NULL check Stanse found that urb cannot be NULL in at76_rx_tasklet because it is dereferenced earlier, so remove the unneeded check. Signed-off-by: Jiri Slaby Signed-off-by: John W. Linville commit f2a6d6a08cf13f621661dd57f32bf0a5100ba26b Author: Rafał Miłecki Date: Mon Oct 11 03:19:22 2010 +0200 b43: N-PHY: prepare for rev3+ channel tables Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit 087de74ae512fe31894c1556d5f8d5a126322de7 Author: Rafał Miłecki Date: Mon Oct 11 03:11:03 2010 +0200 b43: N-PHY: fix logic in band switching Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit e5c407f970ea2977600eb54cf4cc8a67a44fefeb Author: Rafał Miłecki Date: Mon Oct 11 03:11:02 2010 +0200 b43: N-PHY: store info about current channel's type Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit a656b6a9665dce09a8f273091f1b4aa3d5cec721 Author: Rafał Miłecki Date: Mon Oct 11 03:11:01 2010 +0200 b43: N-PHY: grab more info about new channel Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit a8909cfb1832ac623142898df2a9374722cfe68f Author: Björn Smedman Date: Sun Oct 10 22:51:54 2010 +0200 ath9k: built-in rate control A-MPDU fix This patch attempts to ensure that ath9k's built-in rate control algorithm does not rely on the value of the ampdu_len and ampdu_ack_len tx status fields unless the IEEE80211_TX_STAT_AMPDU flag is set. This patch has not been tested. Cc: Signed-off-by: Björn Smedman Acked-by: Felix Fietkau Signed-off-by: John W. Linville commit ebd022873aa61937603d2c4dfea19ce63ea1a3c8 Author: Björn Smedman Date: Sun Oct 10 22:44:39 2010 +0200 ath9k: A-MPDU rate control info fix This patch fixes the following problems with the rate control feedback generated by ath9k for A-MPDU frames: 1. Rate control feedback is carried on the first frame of an aggregate that is either ACKed, or has execeeded the software retry count and is considered failed. However, ath9k would incorrectly assume the aggregate had the length 1 if one of these conditions did not apply to the first frame of the aggregate, but instead a later frame. This fix therefor copies the bf_nframes field of the buffer in the same manner as the rates field of the tx status. 2. Sometimes the ampdu_len and ampdu_ack_len fields of the tx status was left uninitialized eventhough the IEEE80211_TX_STAT_AMPDU flag was set. This is now avoid by setting flag and fields in the same place. 3. Even if a frame has been selected for aggregation by mac80211 and marked with the IEEE80211_TX_CTL_AMPDU flag it can sometimes happen that ath9k transmits the frame without aggregation. In these cases the ampdu_ack_len field could be incorrectly computed because the nbad parameter to ath_tx_rc_status was incorrect. Cc: Signed-off-by: Björn Smedman Acked-by: Felix Fietkau Signed-off-by: John W. Linville commit 15d46f38df87f89242e470f5797120fa384c1fc3 Author: Björn Smedman Date: Sun Oct 10 22:14:25 2010 +0200 mac80211: minstrel_ht A-MPDU fix This patch fixes two problems with the minstrel_ht rate control algorithms handling of A-MPDU frames: 1. The ampdu_len field of the tx status is not always initialized for non-HT frames (and it would probably be unreasonable to require all drivers to do so). This could cause rate control statistics to be corrupted. We now trust the ampdu_len and ampdu_ack_len fields only when the frame is marked with the IEEE80211_TX_STAT_AMPDU flag. 2. Successful transmission attempts where only recognized when the A-MPDU subframe carrying the rate control status information was marked with the IEEE80211_TX_STAT_ACK flag. If this information happed to be carried on a frame that failed to be ACKed then the other subframes (which may have succeeded) where not correctly registered. We now update rate control statistics regardless of whether the subframe carrying the information was ACKed or not. Cc: Signed-off-by: Björn Smedman Acked-by: Felix Fietkau Signed-off-by: John W. Linville commit 730bd83b036e72b0134352ca27e76ea08475fbf1 Author: Johannes Berg Date: Sun Oct 10 18:52:10 2010 +0200 mac80211: don't kmalloc 16 bytes Since this small buffer isn't used for DMA, we can simply allocate it on the stack, it just needs to be 16 bytes of which only 8 will be used for WEP40 keys. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit cc2858c987f41286e059ee777c3bc09f7b7c19f6 Author: Kalle Valo Date: Sun Oct 10 11:28:33 2010 +0300 wl1251: update the new location to the maintainers file wl1251 is grown up now and can have its own room^H^H^H^Hdirectory. Signed-off-by: Kalle Valo Signed-off-by: John W. Linville commit 9bc6772e15d25f58c1be638031280e04514287d4 Author: Kalle Valo Date: Sun Oct 10 11:28:32 2010 +0300 wl1251: move to it's own directory wl1271 driver is under heavy development but on the other hand the older wl1251 driver is currently considered more as a legacy driver. To make it easier to develop wl1271 features move wl1251 to it's own directory, drivers/net/wireless/wl1251. There are no functional changes, only moving of files. One regression is that Kconfig won't be updated automatically and user needs to enable wl1251 manually with an older config file. Signed-off-by: Kalle Valo Signed-off-by: John W. Linville commit f03ee1ec73d8cad07b0ef5ba6106a9fc4d179ecb Author: Kalle Valo Date: Sun Oct 10 11:28:31 2010 +0300 wl1251: create a copy of wl12xx_80211.h for wl1251 In preparation of moving wl1251 out from drivers/net/wireless/wl12xx create a separate copy of wl12xx_80211.h. This file should not even exist, we should instead use generic ieee80211 definitions. This will be fixed in the future so that the file can be removed. Signed-off-by: Kalle Valo Signed-off-by: John W. Linville commit 8f236d1bef659ca69c912536a69b3031e5ba3269 Author: Christian Lamparter Date: Sun Oct 10 01:15:07 2010 +0200 carl9170: A-MPDU frame type filter In the past, carl9170 has been plagued by mysterious ghosts. e.g.: wlan4: deauthenticated from 02:04:d8:3c:ac:c1 (Reason: 0) Apparently, the AP sent us a bogus deauthentication notification. But upon closer inspection the "management frame" turned out to be a corrupted scrap of an unsuccessful A-MPDU. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 9f59f3c694c184c69e0be7d0fd0829bcb61b0429 Author: Christian Lamparter Date: Sat Oct 9 22:23:37 2010 +0200 carl9170: remove stale rx error path The total/fatal error bit was erroneously prefixed with AR9170_RX_ERROR instead of AR9170_RX_STATUS. Luckily, the hardware specification confirmed that the 0x80 flag will never be set for mac->error. So, it was always just a dead branch. This patch also imports the latest version of shared wlan.h header from the firmware git. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit c8a16c68ef4eb7817e41759c7105678ebc155377 Author: Christian Lamparter Date: Sat Oct 9 21:37:11 2010 +0200 carl9170: common error path for bad frames This patch replaces several identical frame drop paths with a single shared rx frame error handler. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 12eec2cc0d5eacd8287646585dc88ab558d4866d Author: Helmut Schaa Date: Sat Oct 9 13:35:48 2010 +0200 rt2x00: Fix tx status handling in rt2800pci The patches "rt2x00: Improve TX status entry validation" and "rt2x00: rework tx status handling in rt2800pci" together were causing problems with tx status processing in rt2800pci: phy1 -> rt2800pci_txdone: Warning - Got TX status for an empty queue 3, dropping phy1 -> rt2800pci_txdone: Warning - Got TX status for an unavailable queue 7, dropping Fix this by using the correct field definition for getting the QID out of the tx status report. Reported-by: Luis Correia Signed-off-by: Helmut Schaa Tested-by: Luis Correia Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 74374725cdf466629fd401a81b3a04e4cdb0815f Author: Helmut Schaa Date: Sat Oct 9 13:35:13 2010 +0200 rt2x00: Remove superfluous initialization of qidx There is no need to initialize qidx to zero as it will ever be overwritten by the correct value. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit c6084d5fa2e70a436ab944066146de01819f5493 Author: Helmut Schaa Date: Sat Oct 9 13:34:43 2010 +0200 rt2x00: Use unlikely for error case in rt2x00queue_write_tx_frame This is an error condition that is not supposed to happen. Hence, it is safe to add unlikely to this check. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit ff6133becae9ae1657fcff339a160a21448fa11c Author: Helmut Schaa Date: Sat Oct 9 13:34:11 2010 +0200 rt2x00: Use proper type for rxwi_w2 in rt2800_agc_to_rssi Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 546adf294e85ca0dcd9c052294ef35b83a6ab2f4 Author: Helmut Schaa Date: Sat Oct 9 13:33:43 2010 +0200 rt2x00: Optimize unmapping of skbs Since no skb will be mapped for RX and TX at the same time we can simply shortcut the check for SKBDESC_DMA_MAPPED_TX. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit a23c22080345f1748a933f32736986ff11f44d60 Author: Helmut Schaa Date: Sat Oct 9 13:33:16 2010 +0200 rt2x00: Shortcut link state updates when not operating as STA Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit cfdfa4d3a0c7aa1287c61326a7714f262466157a Author: Steve deRosier Date: Sat Oct 9 17:23:28 2010 -0700 mac80211: Update mesh constants to approved IEEE ANA values This patch updates IEEE802.11 mesh constants to be consistent with newly approved values. It modifies some values, as well as adds many new constants in preparation for updating mesh code to the current 802.11s drafts. ANA numbers were taken from: https://mentor.ieee.org/802.11/dcn/09/11-09-0031-12-0000-ana-database-assigned-number-authority.xls A few notes are in order: 1. This will break backwards compatibility with existing Linux kernels as over-the-air constants have changed. 2. Some old and obsolete constants have been retained for now as the mesh code itself hasn't been updated yet to the new 802.11s draft. This was desired to keep the existing mesh scheme working until it can be updated. Adding the approved values is the first step in updating the mesh code. 3. Obsolete constants have been clearly marked. 4. All ANA approved 802.11s constants have been added. Signed-off-by: Steve deRosier Signed-off-by: John W. Linville commit 3430098ae463e31ab16926ac3eb295368a3ca5d9 Author: Felix Fietkau Date: Sun Oct 10 18:21:52 2010 +0200 ath9k: implement channel utilization stats for survey Results for the active channel are updated whenever a new survey dump is requested, the old data is kept to allow multiple processes to make their own channel utilization averages. All other channels only contain the data for the last time that the hardware was on the channel, i.e. the last scan result or other off-channel activity. Running a background scan does not clear the data for the active channel. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit cac4220b2e93e6344f987581d52d5bd71ff2cc0e Author: Felix Fietkau Date: Sat Oct 9 02:39:30 2010 +0200 ath9k: add compile time checking for the size of the channel list This prevents random memory corruption if the number of channels ever gets changed without an update to the internal channel array size. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 8610c29a2c9f273886b1c31ae4d92c69d4326262 Author: Felix Fietkau Date: Sat Oct 9 02:39:29 2010 +0200 cfg80211: add channel utilization stats to the survey command Using these, user space can calculate a relative channel utilization with arbitrary intervals by regularly taking snapshots of the survey results. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 15943a72c7d2031c9150917ca9161a9f891d455a Author: Christian Lamparter Date: Fri Oct 8 22:35:09 2010 +0200 mac80211: temporarily disable reorder release timer Several serve threading problems in the current release reorder timer implementation have been discovered. A lengthy discussion - which lists some of the pitfalls and possible solutions - can be found at: http://marc.info/?t=128635927000001 But due to the complicated nature of the subject and the imminent advent of a new -rc cycle, it was decided to disable the feature for the time being. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit d12c74528e3065c90df70fbc06ec6ffd6e804738 Author: Christian Lamparter Date: Fri Oct 8 22:27:07 2010 +0200 mac80211: fix possible null-pointer de-reference This patch not only fixes a null-pointer de-reference that would be triggered by a PLINK_OPEN frame with mis- matching/incompatible mesh configuration, but also responds correctly to non-compatible PLINK_OPEN frames by generating a PLINK_CLOSE with the right reason code. The original bug was detected by smatch. ( http://repo.or.cz/w/smatch.git ) net/mac80211/mesh_plink.c +574 mesh_rx_plink_frame(168) error: we previously assumed 'sta' could be null. Cc: Reviewed-and-Tested-by: Steve deRosier Reviewed-and-Tested-by: Javier Cardona Acked-by: Johannes Berg Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 7109ca5c80a0bb94378ebd7f8bb6d00edb5e6fba Author: Felix Fietkau Date: Fri Oct 8 22:13:54 2010 +0200 ath5k: use the common cycle counter / listen time implementation Signed-off-by: Felix Fietkau Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit b5bfc5683db44a121ad47ec0a9f4efd4aac040e0 Author: Felix Fietkau Date: Fri Oct 8 22:13:53 2010 +0200 ath9k_hw: move the cycle counter tracking to ath Instead of keeping track of wraparound, clear the counters on every access and keep separate deltas for ANI and later survey use. Also moves the function for calculating the 'listen time' for ANI Signed-off-by: Felix Fietkau Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 9d119f3ebd074bde0b801f476a44ca60d222efb2 Author: Felix Fietkau Date: Fri Oct 8 22:13:52 2010 +0200 ath5k: store the clock rate in common data on channel changes Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit dfdac8ac033c9ad048a5c68563bd41bda6c5e60b Author: Felix Fietkau Date: Fri Oct 8 22:13:51 2010 +0200 ath9k_hw: store the clock rate in common data on channel changes Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 62c58fb4316905cd9c1dbf01967935ed5610b45d Author: Ben Greear Date: Fri Oct 8 12:01:15 2010 -0700 ath5k: Adjust opmode when interfaces are removed. Otherwise, if there is an AP and a STATION, and AP is removed, the NIC will not revert back to STATION mode. Reported-by: Eliad Peller Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit 92c68a66a8f73c51f062ae8cae958c86a21fea78 Author: Ben Greear Date: Fri Oct 8 09:43:29 2010 -0700 ath5k: Print out opmode in debugfs. Helps debug multi-VIF scenarios. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit 5a5c731aa59cc2c44ca20f45b1a577cd4f5435e2 Author: Ben Greear Date: Thu Oct 7 16:39:20 2010 -0700 wireless: Set some stats used by /proc/net/wireless (wext) Some stats for /proc/net/wireless (and wext in general) are not being set. This patch addresses a few of those with values easily obtained from mac80211 core. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit b38afa87698375179026224522c2e48dcbf17e65 Author: Ben Greear Date: Thu Oct 7 16:12:06 2010 -0700 mac80211: Improve mlme probe response log messages. Old messages didn't mention the device in question. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit 03620b2d7545fee29ecd3bb270f206b9cff75e58 Author: FUJITA Tomonori Date: Mon Aug 2 23:48:06 2010 +0900 swiotlb: make io_tlb_overflow static We don't need to export io_tlb_overflow_buffer. I'll remove io_tlb_overflow_buffer completely in the long term though. Signed-off-by: FUJITA Tomonori Signed-off-by: Konrad Rzeszutek Wilk commit 7623225f905263424c7254dc6a07bff083a498dd Author: Johannes Berg Date: Mon Oct 11 14:46:52 2010 -0400 Revert "wireless: Use first phyX name available when registering phy devices." This reverts commit 5a254ffe3ffdfa84fe076009bd8e88da412180d2. The commit failed to take into account that allocated wireless devices (wiphys) are not added into the device list upon allocation, but only when they are registered. Therefore, it opened up a race between allocating and registering a name, so that if two processes allocate and register concurrently ("alloc, alloc, register, register" rather than "alloc, register, alloc, register") the code will attempt to use the same name twice. Signed-off-by: Johannes Berg commit d86a4f2dd4ec554cf3346f4cab763925761c4095 Merge: bf53f93 674f305 Author: John W. Linville Date: Mon Oct 11 14:43:46 2010 -0400 Merge branch 'wireless-next' of git://git.kernel.org/pub/scm/linux/kernel/git/luca/wl12xx commit 419c20465d6319274e7286f0966e2390540e6e0a Author: Jiri Slaby Date: Sun Oct 10 23:26:56 2010 +0000 NET: pch, fix use after free Stanse found that pch_gbe_xmit_frame uses skb after it is freed. Fix that. Signed-off-by: Jiri Slaby Cc: Masayuki Ohtake Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit a1b04cc197e17c47b043051becb548dc8c60c886 Author: Santosh Shilimkar Date: Mon Oct 11 11:05:18 2010 +0000 omap: serial: Fix the boot-up crash/reboot without CONFIG_PM The omap2plus_defconfig doesn't boot up when built with CONFIG_PM disabled on the latest linux-omap master. Below are the observations 1. OMAP3 reboots in the middle of boot -------------------------------------------------- [ 0.000000] Calibrating delay loop... 494.72 BogoMIPS (lpj=1933312) [ 0.000000] pid_max: default: 32768 minimum: 301 [ 0.000000] Security Framework initialized [ 0.000000] Mount-cache hash table entries: 512 [ 0.000000] CPU: Testing write buffer coherency: ok [ 0.000000] Brought up 1 CPUs [ 0.000000] SMP: Total of 1 processors activated (494.72 BogoMIPS). [ 0.000000] regulator: core version 0.5 [ 0.000000] NET: Registered protocol family 16 U-Boot 1.1.4 (Feb 11 2009 - 16:10:23) OMAP3430-GP rev 2, CPU-OPP2 L3-165MHz TI 3430SDP 1.0 Version + mDDR (Boot NOR) DRAM: 128 MB Flash: 128 MB NAND:128 MiB -------------------------------------------------- 2. OMAP4 does a kernel PANIC ------------------------------------- [ 0.000000] Calibrating delay loop... 1195.29 BogoMIPS (lpj=4669440) [ 0.000000] pid_max: default: 32768 minimum: 301 [ 0.000000] Security Framework initialized [ 0.000000] Mount-cache hash table entries: 512 [ 0.000000] CPU: Testing write buffer coherency: ok [ 0.000000] L310 cache controller enabled [ 0.000000] l2x0: 16 ways, CACHE_ID 0x410000c2, AUX_CTRL 0x0e050000 [ 0.000000] CPU1: Booted secondary processor [ 0.000000] Brought up 2 CPUs [ 0.000000] SMP: Total of 2 processors activated (2395.78 BogoMIPS). [ 0.000000] regulator: core version 0.5 [ 0.000000] NET: Registered protocol family 16 [ 0.000000] mux: Could not set signal i2c2_scl.i2c2_scl [ 0.000000] mux: Could not set signal i2c2_sda.i2c2_sda [ 0.000000] mux: Could not set signal i2c3_scl.i2c3_scl [ 0.000000] mux: Could not set signal i2c3_sda.i2c3_sda [ 0.000000] mux: Could not set signal i2c4_scl.i2c4_scl [ 0.000000] mux: Could not set signal i2c4_sda.i2c4_sda ------------------------------------- This is happening because 'omap_serial_init()' is hanging in the boot. On OMAP3 the watchdog is generating reboot because devices_init doesn't happens where as on OMAP4 it just hangs without reboot. The uart clock is not getting enabled after omap_device_idle as part of omap_serial_init. The omap_device_idle(will disable the clock) then omap_uart_block_sleep() should enable clock back disabled during the boot up phase. But omap_uart_block_sleep() stuffed version is binded only under CONFIG_PM and other version is just empty. Hence it is not enabling clock back as expected This patch adds uart clock enable code to omap_uart_block_sleep() function built with CONFIG_PM disabled. Thanks to Charulatha and Govindraj for their help on this debug. Signed-off-by: Santosh Shilimkar Signed-off-by: Charulatha V Signed-off-by: Govindraj.R Acked-by: Kevin Hilman Signed-off-by: Tony Lindgren commit 0361e02342f60b64a7075755d5851ed4e6f98c7d Merge: 4fdaa7b e9677b3 Author: Robert Richter Date: Mon Oct 11 19:38:39 2010 +0200 Merge branch 'oprofile/perf' into oprofile/core Conflicts: arch/arm/oprofile/common.c Signed-off-by: Robert Richter commit e9677b3ce207a07fad5746b6f7ddc70cae79de0a Author: Robert Richter Date: Wed Sep 29 15:42:30 2010 +0200 oprofile, ARM: Use oprofile_arch_exit() to cleanup on failure There is duplicate cleanup code in the init and exit functions. Now, oprofile_arch_exit() is also used if oprofile_arch_init() fails. Acked-by: Will Deacon Signed-off-by: Robert Richter commit 2bcb2b641a8f1524f7a9801eb9e52a00b8f18c6e Author: Robert Richter Date: Wed Sep 29 14:43:29 2010 +0200 oprofile, ARM: Rework op_create_counter() This patch simplifies op_create_counter(). Removing if/else if paths and return code variable by direct returning from function. Acked-by: Will Deacon Signed-off-by: Robert Richter commit 9c91283a19c2d998a83f50f113f8585709c15caf Author: Robert Richter Date: Fri Aug 27 14:32:41 2010 +0200 oprofile, ARM: Remove some goto statements This patch removes some unnecessary goto statements. Acked-by: Will Deacon Signed-off-by: Robert Richter commit 652953b72eea8b9d1bd6b9f67b796c6722bada3a Merge: 8177197 5140434 Author: Robert Richter Date: Mon Oct 11 19:33:42 2010 +0200 Merge branch 'oprofile/core' (early part) into oprofile/perf Conflicts: arch/arm/oprofile/common.c Signed-off-by: Robert Richter commit 81771974ae49bf79aab60c42eac7a6d730a9ef2b Author: Robert Richter Date: Wed Sep 29 16:52:25 2010 +0200 oprofile, ARM: Release resources on failure This patch fixes a resource leak on failure, where the oprofilefs and some counters may not released properly. Signed-off-by: Robert Richter Acked-by: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Cc: # .35.x LKML-Reference: <20100929145225.GJ13563@erda.amd.com> Signed-off-by: Ingo Molnar commit ad0f7cfaa85fc033523a09ab1f3dd6b8ded3dff5 Merge: 86c8c04 c7a27aa Author: Robert Richter Date: Mon Oct 11 19:26:50 2010 +0200 Merge branch 'oprofile/urgent' (early part) into oprofile/perf commit de65815860f187cb43551bc833bf9d72720faa01 Author: Kevin Hilman Date: Fri Oct 8 22:43:45 2010 +0000 OMAP3: PM: fix scratchpad memory accesses for off-mode Commit 914bab936fe0388a529079679e2f137aa4ff548d (OMAP: mach-omap2: Fix incorrect assignment warnings) changed a pointer from 'u32 *' to 'void *' without also fixing up the pointer arithmetic. Fix the scratchpad offsets so they are byte offsets instead of word offsets and thus work correctly with a void pointer base. Special thanks to Jean Pihet for taking the time track down this problem and propose an initial solution. Tested with off-idle and off-suspend on 36xx/Zoom3 and 34xx/omap3evm. Cc: Manjunath Kondaiah G Reported-by: Jean Pihet Signed-off-by: Kevin Hilman Tested-by: Jean Pihet Signed-off-by: Tony Lindgren commit c9ee46a910f6edb40ddb7fb9aeac0030057c6fdb Merge: 4fa0466 81490fc Author: Russell King Date: Mon Oct 11 17:30:44 2010 +0100 Merge branch 'for-rmk-next' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable commit 34d101dd6204bd100fc2e6f7b5f9a10f959ce2c9 Author: Eric Dumazet Date: Mon Oct 11 09:16:57 2010 -0700 neigh: speedup neigh_hh_init() When a new dst is used to send a frame, neigh_resolve_output() tries to associate an struct hh_cache to this dst, calling neigh_hh_init() with the neigh rwlock write locked. Most of the time, hh_cache is already known and linked into neighbour, so we find it and increment its refcount. This patch changes the logic so that we call neigh_hh_init() with neighbour lock read locked only, so that fast path can be run in parallel by concurrent cpus. This brings part of the speedup we got with commit c7d4426a98a5f (introduce DST_NOCACHE flag) for non cached dsts, even for cached ones, removing one of the contention point that routers hit on multiqueue enabled machines. Further improvements would need to use a seqlock instead of an rwlock to protect neigh->ha[], to not dirty neigh too often and remove two atomic ops. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 86c8c04792f152c5469023885510140dd34817bc Author: Matt Fleming Date: Fri Sep 10 20:36:23 2010 +0100 sh: oprofile: Use perf-events oprofile backend Now that we've got a generic perf-events based oprofile backend we might as well make use of it seeing as SH doesn't do anything special with its oprofile backend. Also introduce a new CONFIG_HW_PERF_EVENTS symbol so that we can fallback to using the timer interrupt for oprofile if the CPU doesn't support perf events. Also, to avoid a section mismatch warning we need to annotate oprofile_arch_exit() with an __exit marker. Signed-off-by: Matt Fleming Acked-by: Paul Mundt Signed-off-by: Robert Richter commit 3d90a00763b51e1db344a7430c966be723b67a29 Author: Matt Fleming Date: Mon Sep 27 20:45:08 2010 +0100 oprofile: Abstract the perf-events backend Move the perf-events backend from arch/arm/oprofile into drivers/oprofile so that the code can be shared between architectures. This allows each architecture to maintain only a single copy of the PMU accessor functions instead of one for both perf and OProfile. It also becomes possible for other architectures to delete much of their OProfile code in favour of the common code now available in drivers/oprofile/oprofile_perf.c. Signed-off-by: Matt Fleming Tested-by: Will Deacon Signed-off-by: Robert Richter commit 58850e210cd207399cf6461326e322541b2ec81c Author: Matt Fleming Date: Mon Sep 27 20:35:29 2010 +0100 ARM: oprofile: Move non-ARM code into separate init/exit In preparation for moving the majority of this oprofile code into an architecture-neutral place separate the architecture-independent code into oprofile_perf_init() and oprofile_perf_exit(). Signed-off-by: Matt Fleming Tested-by: Will Deacon Signed-off-by: Robert Richter commit 80e96b11f6cd261e1e569f3931604d656388af33 Author: Matt Fleming Date: Mon Sep 27 20:29:58 2010 +0100 ARM: oprofile: Rename op_arm to oprofile_perf In preparation for moving the generic functions out of this file, give the functions more general names (e.g. remove "arm" from the names). Signed-off-by: Matt Fleming Tested-by: Will Deacon Signed-off-by: Robert Richter commit 56946331b28d53232115a155ba662ab3dc598952 Author: Matt Fleming Date: Fri Oct 8 21:42:17 2010 +0100 oprofile: Make op_name_from_perf_id() global Make op_name_from_perf_id() global so that we have a way for each architecture to construct an oprofile name for op->cpu_type. We need to remove the argument from the function prototype so that we can hide all implementation details inside the function. Signed-off-by: Matt Fleming Signed-off-by: Robert Richter commit 84c7991059c9c4530cc911137c5bf508a41ed129 Author: Matt Fleming Date: Sun Oct 3 21:41:13 2010 +0100 perf: New helper function for pmu name Introduce perf_pmu_name() helper function that returns the name of the pmu. This gives us a generic way to get the name of a pmu regardless of how an architecture identifies it internally. Signed-off-by: Matt Fleming Acked-by: Peter Zijlstra Acked-by: Paul Mundt Signed-off-by: Robert Richter commit 5a30d7bfcd33c03f1f67d3e1c317eb5d6a6bc811 Author: Kulikov Vasiliy Date: Sun Oct 10 17:28:27 2010 +0000 sh: boards/mach-x3proto: gpio: fix error handling code Checks for (irq < 0) and (ilsel < 0) didn't make sense since they were unsigned. Made them signed. Signed-off-by: Vasiliy Kulikov Signed-off-by: Paul Mundt commit 3ef8fd7f720fc4f462fcdcae2fcde6f1c0536bfe Author: Andi Kleen Date: Mon Oct 11 16:03:21 2010 +0200 Fix migration.c compilation on s390 31bit s390 doesn't have huge pages and failed with: > mm/migrate.c: In function 'remove_migration_pte': > mm/migrate.c:143:3: error: implicit declaration of function 'pte_mkhuge' > mm/migrate.c:143:7: error: incompatible types when assigning to type 'pte_t' from type 'int' Put that code into a ifdef. Reported by Heiko Carstens Signed-off-by: Andi Kleen commit 81490fcdf406f42fff9d9f57d541788f90242885 Author: Amit Kucheria Date: Thu Oct 7 03:58:25 2010 +0300 mx51: efikamx: add otg support Ethernet hangs off OTG Signed-off-by: Amit Kucheria Signed-off-by: Sascha Hauer commit 088d01b00e335230bc51be6ae396babb9767e9ea Author: Amit Kucheria Date: Thu Oct 7 03:58:12 2010 +0300 mx51: add support for genesi efikamx nettop Get serial port working for now Signed-off-by: Amit Kucheria Signed-off-by: Sascha Hauer commit 6ff554e06869e970e6ef2c4d44ea43315917d22c Author: David Jander Date: Fri Oct 8 11:24:01 2010 +0200 spi/imx: Support different fifo sizes The i.MX51 ECSPI has a fifo size of 64 entries instead of 8 entries as found on the other cspi bus devices. Cc: Jason Wang Signed-off-by: David Jander Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König Acked-by: Grant Likely Signed-off-by: Sascha Hauer commit 4b5ee7a7689e3551f304b9154ecadbb0c3ae292f Author: Sascha Hauer Date: Sat Oct 9 23:09:45 2010 +0200 ARM: iomux-mx51: Add AUD5 pinmux definitions Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 0d0e9cbf815a78d62889554826f7d06b323c2d06 Author: Wolfram Sang Date: Mon Oct 11 15:04:53 2010 +0200 mx25/clocks: match esdhc-clocks to platform device So the correct clock will be taken for each of the two independent controllers. Signed-off-by: Wolfram Sang Cc: Eric Bénard Signed-off-by: Sascha Hauer commit 886ab3dae2ba26bde5bab096c931365db9f49830 Author: Peter Korsgaard Date: Mon Oct 11 15:02:06 2010 +0200 mxc/gpio: make _set_value work with values != 0/1 Documentation/gpio.txt specifies that the value argument to gpio_set_value() should be handled as a boolean (E.G. != 0 is high), so use the same logic as in _set_direction(). Signed-off-by: Peter Korsgaard Signed-off-by: Sascha Hauer commit 9524705c867dc8d5b558f4793b7464eab967a530 Author: Juergen Beisert Date: Wed Sep 22 09:42:15 2010 +0200 MX35: Fix bogus L2 cache settings i.MX35 CPUs marked with "MCIMX357CJQ5C M99V CTHA0943B" are coming with bogus L2 cache settings. If these settings are kept unmodified prior enabling the L2 cache the CPU runs amok immediately when its enabled. This fix should not hurt already working CPUs, as they are using the written register value already. Its currently unknown if its possible to detect the production lot from the software to fix only affected CPUs. While at it, make sure that mxc_init_l2x0 is only executed on i.MX31/35 Signed-off-by: Juergen Beisert Signed-off-by: Michael Grzeschik Signed-off-by: Sascha Hauer commit 55fd2ef6d9e9f40f30d891e01f2f565552e688fa Author: Uwe Kleine-König Date: Wed Oct 6 12:00:19 2010 +0200 ARM: mx3/cpuimx35: mark otg_pdata and usbh1_pdata as maybe unused This fixes arch/arm/mach-mx3/mach-cpuimx35.c:143: warning: 'otg_pdata' defined but not used arch/arm/mach-mx3/mach-cpuimx35.c:148: warning: 'usbh1_pdata' defined but not used when USB_ULPI is not selected. Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 6bd96f3c332d422c0dda302f1b32c8e21dd75ee3 Author: Uwe Kleine-König Date: Wed Oct 6 12:00:18 2010 +0200 ARM: imx: dynamically register fec devices Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 8a8d20600dce01553c8505b7c576f8d4307e4ba8 Author: Uwe Kleine-König Date: Fri Oct 8 16:00:11 2010 +0200 ARM: imx: fix/define clocks and create devices for imx dma Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 67520f3a896acb1635894fd25626f7fa7c91e61c Author: Eric Bénard Date: Fri Oct 8 16:00:10 2010 +0200 ARM: mx35: Add mx35_revision function to query the silicon revision Based on work done earlier by Sascha Hauer Signed-off-by: Sascha Hauer Signed-off-by: Eric Bénard [ukl: actually squash the two approaches together] Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit fdb03870a9714ba2695daa0c2b3e6b6be4318e9d Author: Sascha Hauer Date: Fri Oct 8 16:00:09 2010 +0200 ARM: mx3: use MX3x_ prefixed version of CHIP_REV_x Also, remove the deprecated symbols from arch/arm/mach-mx3/cpu.c Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 6f8460eb823c37f6ba236cd261a6edceea4805e5 Author: Eric Bénard Date: Sat Oct 2 17:15:29 2010 +0200 eukrea_mbimxsd for cpuimx25: add CAN & SDCard support Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer commit f5e40c28b63939ee63f1f9d865eece0a28444fd0 Author: Eric Bénard Date: Sat Oct 2 17:15:28 2010 +0200 i.mx25: add esdhc support Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer commit 438a4d66a561fe3d6dceeb9c7f30d23f52cb371b Author: Eric Bénard Date: Sat Oct 2 17:15:27 2010 +0200 eukrea_mbimxsd for cpuimx35: add CAN & SDCard support Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer commit 9a545943a378ec1b3a9819de4b189ce5e822a6af Author: Wolfram Sang Date: Mon Oct 11 12:55:23 2010 +0200 arm: pcm043: add esdhc-device to boardconfig Signed-off-by: Wolfram Sang Signed-off-by: Sascha Hauer commit 774305d0ee105f75d44699e2c94ef3bf9c5e2d90 Author: Wolfram Sang Date: Mon Oct 11 12:55:22 2010 +0200 arm: imx35: add esdhc-device to MX35-platform Signed-off-by: Wolfram Sang Signed-off-by: Sascha Hauer commit 203a0734709779fa40552cd9bb7c4dd325b5131f Author: Wolfram Sang Date: Mon Oct 11 12:55:21 2010 +0200 arm: imx: add generic esdhc device Signed-off-by: Wolfram Sang Signed-off-by: Sascha Hauer commit 6370a6ad3b53df90b4700977f7718118a2cd524a Author: Tejun Heo Date: Mon Oct 11 15:12:27 2010 +0200 workqueue: add and use WQ_MEM_RECLAIM flag Add WQ_MEM_RECLAIM flag which currently maps to WQ_RESCUER, mark WQ_RESCUER as internal and replace all external WQ_RESCUER usages to WQ_MEM_RECLAIM. This makes the API users express the intent of the workqueue instead of indicating the internal mechanism used to guarantee forward progress. This is also to make it cleaner to add more semantics to WQ_MEM_RECLAIM. For example, if deemed necessary, memory reclaim workqueues can be made highpri. This patch doesn't introduce any functional change. Signed-off-by: Tejun Heo Cc: Jeff Garzik Cc: Dave Chinner Cc: Steven Whitehouse commit 6a92934d9e987b6363db3e6a08e17bc0f2078c5d Author: Takashi Iwai Date: Mon Oct 11 15:16:20 2010 +0200 ALSA: hda - Add input volume control for each mic/line-in pin The input pins on cirrus codecs have also input amps. Let's make control elemetns for them. Signed-off-by: Takashi Iwai commit 66fa12c571d35e3cd62574c65f1785a460105397 Author: Stefan Richter Date: Sun Oct 10 00:12:20 2010 +0200 ieee1394: remove the old IEEE 1394 driver stack The drivers - ohci1394 (controller driver) - ieee1394 (core) - dv1394, raw1394, video1394 (userspace ABI) - eth1394, sbp2 (protocol drivers) are replaced by - firewire-ohci (controller driver) - firewire-core (core and userspace ABI) - firewire-net, firewire-sbp2 (protocol drivers) which are more featureful, better performing, and more secure than the older drivers; all with a smaller and more modern code base. The driver firedtv in drivers/media/dvb/firewire/ contains backends to both ieee1394 and firewire-core. Its ieee1394 backend code can be removed in an independent commit; firedtv as-is builds and works fine without ieee1394. The driver pcilynx (an incomplete controller driver) is deleted without replacement since PCILynx cards are extremely rare. Owners of these cards use them with the stand-alone bus sniffer driver nosy instead. The drivers nosy and init_ohci1394_dma which do not interact with either of the two IEEE 1394 stacks are not affected by the ieee1394 subsystem removal. There are still some issues with the newer firewire subsystem compared to the older one: - The rare and quirky controllers ALi M52xx, Apple UniNorth v1, NVIDIA NForce2 are even less well supported by firewire-ohci than by ohci1394. I am looking into the M52xx issue. - The experimental firewire-net is reportedly less stable than its experimental cousin eth1394. - Audio playback of a certain group of audio devices (ones based on DICE chipset with EAP; supported by prerelease FFADO code) does not work yet. This issue is still under investigation. - There were some ieee1394 based out-of-the-mainline drivers. Of them, only lisight, an audio driver for iSight webcams, seems still useful. Work is underway to reimplement it on top of firewire-core. All these remainig issues are minor; they should not stand in the way of overall better user experience of IEEE 1394 on Linux, together with a reduction in support efforts and maintenance burden. The coexistence of two IEEE 1394 kernel driver stacks in the mainline since 2.6.22 shall end now, as announced earlier this year. Signed-off-by: Stefan Richter commit 1ef5b816c0eaf84f91106cfc0893069c49e86113 Author: Stefan Richter Date: Sun Oct 10 00:54:02 2010 +0200 ieee1394: move init_ohci1394_dma to drivers/firewire/ because drivers/ieee1394/ will be deleted. Additional changes: - add some #include directives - adjust to use firewire/ohci.h instead of ieee1394/ohci1394.h, replace struct ti_ohci by a minimal struct ohci, replace quadlet_t from ieee1394_types.h by u32 - two or three trivial stylistic changes - __iomem annotation Signed-off-by: Stefan Richter commit f46119b73425df9d1e05c5d5e909a993d95b0218 Author: Takashi Iwai Date: Mon Oct 11 14:46:35 2010 +0200 ALSA: hda - Add model=mbp55 entry for MacBookPro 7,1 Reference: Novell bnc#645066 https://bugzilla.novell.com/show_bug.cgi?id=645066 Signed-off-by: Takashi Iwai commit e799d0bce6b191de6e96e556528243c1d73303ca Merge: 1d2019f 838c364 Author: Takashi Iwai Date: Mon Oct 11 13:56:12 2010 +0200 Merge remote branch 'alsa/devel' into topic/misc commit 1d2019fb6be2f318f0aa85be5f224f47a5f006fe Author: Nicolas Kaiser Date: Tue Oct 5 17:38:12 2010 +0200 ALSA: sound/usb/usx2y: simplify conditional Simplify conditional: (a || (!a && b)) => (a || b) Signed-off-by: Nicolas Kaiser Signed-off-by: Takashi Iwai commit b7d22ccf08d67d13f77a9580d07e7f72e6241213 Author: Dan Carpenter Date: Sun Oct 10 19:34:22 2010 +0200 OSS: soundcard: fix return value of sound_open() Signed-off-by: Dan Carpenter Signed-off-by: Takashi Iwai commit 4e83998f5af010a928495988c586ea2926624db9 Merge: dd1d3a4 d4cfa4d Author: Takashi Iwai Date: Mon Oct 11 13:45:22 2010 +0200 Merge branch 'fix/misc' into topic/misc commit fe3e2e7ff2da41bd7a985c4c206e05a95ebe7a6b Author: Dan Carpenter Date: Sat Oct 9 21:31:31 2010 +0200 ASoC: checking kzalloc() for IS_ERR() instead of NULL There is a typo here that got copy and pasted to several probe functions. kzalloc() returns NULL on allocation failures and not an ERR_PTR. Signed-off-by: Dan Carpenter Acked-by: Dimitris Papastamos Signed-off-by: Mark Brown commit c969f19f8fd17e600a16fe91aab66d86936cce0a Author: Mark Brown Date: Thu Oct 7 20:41:04 2010 -0700 ASoC: Compress WM8962 register access map Reduce the source code size still futher by only specifying non-zero rows in the WM8962 access map. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit f57f6c046ff54b7115c6cafd3e29a60342352cce Author: Mark Brown Date: Thu Oct 7 17:41:04 2010 -0700 ASoC: Shrink code size for WM8962 register defaults table Dramatically reduce the code size for the WM8962 register defaults table by switching to explicitly initialise only defined registers, relying on static defaulting to zero for the overwelming bulk of the register map. Similar treatement for the register access table will come later and will produce a similarly dramatic code size shrink. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 30310045dd20a286cf3800f063f79b468e132fb1 Author: Tejun Heo Date: Mon Oct 11 11:51:57 2010 +0200 workqueue: fix HIGHPRI handling in keep_working() The policy function keep_working() didn't check GCWQ_HIGHPRI_PENDING and could return %false with highpri work pending. This could lead to late execution of a highpri work which was delayed due to @max_active throttling if other works are actively consuming CPU cycles. For example, the following could happen. 1. Work W0 which burns CPU cycles. 2. Two works W1 and W2 are queued to a highpri wq w/ @max_active of 1. 3. W1 starts executing and W2 is put to delayed queue. W0 and W1 are both runnable. 4. W1 finishes which puts W2 to pending queue but keep_working() incorrectly returns %false and the worker goes to sleep. 5. W0 finishes and W2 starts execution. With this patch applied, W2 starts execution as soon as W1 finishes. Signed-off-by: Tejun Heo commit 838c364ff05c143fd1810e8ad1469935d6c23a7a Author: Jaroslav Kysela Date: Fri Oct 8 10:48:50 2010 +0200 ALSA: OSS mixer emulation - fix locking Fix mutex release and cleanup some locking code. Cc: Signed-off-by: Jaroslav Kysela commit b1c73fc8e697eb73e23603e465e9af2711ed4183 Author: Jaroslav Kysela Date: Mon Oct 11 10:45:00 2010 +0200 ALSA: snd-aloop: Fix hw_params restrictions and checking This patch fixes the hw_params restrictions when first (or playback) stream sets the final hardware parameters. Also, fix the hw_params checking in the trigger callback. Signed-off-by: Jaroslav Kysela commit 3bf101ba42a1c89b5afbc7492e7647dae5e18735 Author: Matt Fleming Date: Mon Sep 27 20:22:24 2010 +0100 perf: Add helper function to return number of counters The number of counters for the registered pmu is needed in a few places so provide a helper function that returns this number. Signed-off-by: Matt Fleming Tested-by: Will Deacon Acked-by: Paul Mundt Acked-by: Peter Zijlstra Signed-off-by: Robert Richter commit 3cfc535c5df8122af1258ae05aaf2770c033425d Author: Andres Salomon Date: Sun Oct 10 21:42:33 2010 -0600 of/promtree: make drivers/of/pdt.c no longer sparc-only Clean up pdt.c: - make build dependent upon config OF_PROMTREE - #ifdef out the sparc-specific stuff - create pdt-specific header Signed-off-by: Andres Salomon Acked-by: David S. Miller Signed-off-by: Grant Likely commit 37f9fc452d138dfc4da2ee1ce5ae85094efc3606 Author: Samuel Ortiz Date: Wed Oct 6 01:03:12 2010 +0200 irda: Fix heap memory corruption in iriap.c While parsing the GetValuebyClass command frame, we could potentially write passed the skb->data pointer. Cc: stable@kernel.org Reported-by: Ilja Van Sprundel Signed-off-by: Samuel Ortiz commit efc463eb508798da4243625b08c7396462cabf9f Author: Samuel Ortiz Date: Mon Oct 11 01:17:56 2010 +0200 irda: Fix parameter extraction stack overflow Cc: stable@kernel.org Reported-by: Ilja Van Sprundel Signed-off-by: Samuel Ortiz commit 3b06dbbeadb6488cd00999b61b080bb6f0218503 Author: Roel Kluin Date: Tue Oct 5 01:30:02 2010 +0200 irda: Test index before read in stir421x_patch_device() Test whether index exceeds fw->size before reading the element Signed-off-by: Roel Kluin Signed-off-by: Samuel Ortiz commit f8cba16cad68c9b9ee7fecae48a1b91708e8e482 Author: Samuel Ortiz Date: Tue Oct 5 01:24:20 2010 +0200 irda: Remove BKL instances from irnet The code intends to lock the irnet_socket, so adding a mutex to it allows for a complet BKL removal. Signed-off-by: Samuel Ortiz commit 5b40964eadea40509d353318d2c82e8b7bf5e8a5 Author: Samuel Ortiz Date: Mon Oct 11 00:46:51 2010 +0200 irda: Remove BKL instances from af_irda.c Most of the times, lock_kernel() was pointless or could simply be replaced by lock_sock(). Signed-off-by: Samuel Ortiz commit 801089e68e48ab4ffb6d137ad299c836957ec5f5 Author: Vasiliy Kulikov Date: Sun Oct 10 21:28:43 2010 +0400 staging: intel_sst: use signed int for error codes As retval stores error code, it should be signed int. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit 7915c0d4d226a790e2ffb85cb3386ceaea6ffae2 Author: Vasiliy Kulikov Date: Sun Oct 10 21:28:47 2010 +0400 staging: intel_sst: fix signess error str_id was unsigned, so check for (str_id <= 0) made no sense. Made it signed. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit 2dff52795746846ca0accb639037c26715da12d5 Author: Vasiliy Kulikov Date: Sun Oct 10 21:28:55 2010 +0400 staging: tidspbridge: fix signess error i was unsigned, so check for (i < 0) made no sense. Made it signed. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit 53e974db655da7df6f1ac5db8da94cbeb288ab35 Author: Jason Cooper Date: Sun Oct 10 14:07:09 2010 -0400 staging: brcm80211: fix 'comparison..cast' compiler warnings. Use min_t() macro instead of min(). Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit a6cf450e02c0a6a7178e2f8fb9d56bfd829e012b Author: Greg Kroah-Hartman Date: Sun Oct 10 05:52:59 2010 -0700 Staging: brcm80211: remove __cplusplus markers It's not needed within the kernel, so remove them. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 22b564b0b6909664bd7adac2fa9f3f0abc46457a Author: Jason Cooper Date: Sat Oct 9 14:51:15 2010 -0400 staging: brcm80211: remove BLOCKABLE so no one uses it. BLOCKABLE() doesn't do what it's supposed to. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 7716314bf9b9767eb1a69a16c68d05f17bc34588 Author: Jason Cooper Date: Sat Oct 9 14:51:14 2010 -0400 staging: brcm80211: remove kernel_thread() for wl_iscan_thread and wl_event_thread. Replace kernel_thread() with kthread_run(). Replace pid with tsk, and exited with kthread_stop()/kthread_should_stop(). event_tsk, and tsk are NULL when their respective threads are not running. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 5e2773ea93c9084f825ae1954c224ac5863a1acc Author: Jason Cooper Date: Sat Oct 9 14:51:13 2010 -0400 staging: brcm80211: remove kernel_thread() for _iscan_sysioc_thread. Replace kernel_thread() with kthread_run, kthread_stop() and kthread_should_stop(). Remove sysioc_pid, sysioc_exit, and DAEMONIZE. sysioc_tsk is NULL when not running. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit d809dcb9df1766cd4f45dc17cced4857dace4dc2 Author: Jason Cooper Date: Sat Oct 9 14:51:12 2010 -0400 staging: brcm80211: remove kernel_thread() for _dhd_sysioc_thread. Replaced kernel_thread() with kthread_run(), kthread_stop(), and kthread_should_stop(). Also removed all references to sysioc_pid and sysioc_exit. DAEMONIZE removed because not used in dhd_linux.c. sysioc_tsk is NULL when not running. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit ecd7559d8d0d8daf329016b4db0686376fb5dada Author: Jason Cooper Date: Sat Oct 9 14:51:11 2010 -0400 staging: brcm80211: remove kernel_thread() for dhd_dpc_thread. use kthread_run(), kthread_stop(), and kthread_should_stop(). Removes dpc_pid, dpc_exited, and the call to DAEMONIZE. dpc_tsk is NULL when not running. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 860708d9c8259e087f39505995d4d54b2e499fb9 Author: Jason Cooper Date: Sat Oct 9 14:51:10 2010 -0400 staging: brcm80211: remove kernel_thread() for dhd_watchdog_thread. Replaced kernel_thread() with kthread_run(). Used kthread_should_stop() in place of watchdog_exited completion. Replaced watchdog_pid with struct task_struct. watchdog_tsk is NULL when the task is not running. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit ec588ae6c21ae20a22ce13a287728a220935b8ee Author: Jarkko Nikula Date: Wed Oct 6 16:47:26 2010 +0300 ASoC: omap: Remove needless prints from machine drivers It is currently completely normal to execute these machine drivers code on different boards if the kernel includes support for multiple boards so no error message should be printed if the machine_is_xxx does not match with the machine driver. Therefore remove these pr_err and pr_debug prints in those cases. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 839fad996bf0eba85c0c6aa67ba8d89d051b6749 Author: nohee ko Date: Sat Oct 9 10:41:05 2010 -0700 staging: brcm80211: remove unnecessary cflag, LINUX remove unnecessary cflag, LINUX Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 1e8dd5b9b30ed73889a450ca9903c706c17c1e78 Author: nohee ko Date: Sat Oct 9 10:39:49 2010 -0700 staging: brcm80211: remove unnecessary cflag, CONFIG_CFG80211 remove unnecessary cflag, CONFIG_CFG80211 Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 5e33a02ff7cb2898abbdd78fcdc21d02f4b1522c Author: nohee ko Date: Sat Oct 9 10:38:21 2010 -0700 staging: brcm80211: remove unnecessary cflag, BCMWPA2 remove unnecessary cflag, BCMWPA2. BCMDRIVER is already not used. Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit ea3b8a2810c445e2fc1bdfee53c1fb93f1b28988 Author: nohee ko Date: Sat Oct 9 10:34:38 2010 -0700 staging: brcm80211: remove duplicated file, bcmutils.c Remove duplicated file, bcmutils.c under brcm80211/brcmfmac. brcm80211/util/bcmutils.c will be shared between softmac & fullmac. Makefile, and some other files are also modified accordingly Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 9b24b8f94107f91fa5da468467184912cf4302e5 Author: Arnd Bergmann Date: Sat Oct 9 16:43:24 2010 +0200 staging: tidspbridge: add memory consistency to TODO list This driver uses ioremap on regular memory to get an uncached mapping, which causes problems on ARMv6 and higher due to aliasing with the cached linar kernel mapping. Make sure this gets fixed before the driver graduates from staging. Cc: Felipe Contreras Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman commit cbf6baac775f2e3fb61f88dcaa71e44fb34b6906 Author: Dan Carpenter Date: Sat Oct 9 13:54:06 2010 +0200 Staging: brcm80211: make interface name buffer smaller In the original code the interface name was IFNAMSIZ + 1, but that caused problems in dhd_ifname2idx() which does: strncmp(dhd->iflist[i]->name, name, IFNAMSIZ) The wl_event_msg_t struct can only store 16 character names as well. And thirdly there is a potential buffer overflow in dhd_op_if() because if->net->name is IFNAMSIZ and we do: strcpy(ifp->net->name, ifp->name); Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit cf10700bf8047f0668dd874b607f89516612e6c7 Author: Greg Kroah-Hartman Date: Sat Oct 9 13:26:12 2010 -0700 Staging: phison: fix problem caused by libata change The libata core changed this function so it needed to call a different one. See https://bugzilla.kernel.org/show_bug.cgi?id=19872 for details. Reported-by: Heinz Wiesinger Tested-by: Heinz Wiesinger Cc: stable Signed-off-by: Greg Kroah-Hartman commit d852a6afd91fc928128f59ebff381838c365e358 Author: Akinobu Mita Date: Wed Sep 29 18:08:51 2010 +0900 bitops: remove duplicated extern declarations If CONFIG_GENERIC_FIND_NEXT_BIT is enabled, find_next_bit() and find_next_zero_bit() are doubly declared in asm-generic/bitops/find.h and linux/bitops.h. asm/bitops.h includes asm-generic/bitops/find.h if and only if the architecture enables CONFIG_GENERIC_FIND_NEXT_BIT. And asm/bitops.h is included by linux/bitops.h So we can just remove the extern declarations of find_next_bit() and find_next_zero_bit() in linux/bitops.h. Also we can remove unneeded #ifndef CONFIG_GENERIC_FIND_NEXT_BIT in asm-generic/bitops/find.h. Signed-off-by: Akinobu Mita Signed-off-by: Arnd Bergmann commit 708ff2a0097b02d32d375b66996661f36cd4d6d1 Author: Akinobu Mita Date: Wed Sep 29 18:08:50 2010 +0900 bitops: make asm-generic/bitops/find.h more generic asm-generic/bitops/find.h has the extern declarations of find_next_bit() and find_next_zero_bit() and the macro definitions of find_first_bit() and find_first_zero_bit(). It is only usable by the architectures which enables CONFIG_GENERIC_FIND_NEXT_BIT and disables CONFIG_GENERIC_FIND_FIRST_BIT. x86 and tile enable both CONFIG_GENERIC_FIND_NEXT_BIT and CONFIG_GENERIC_FIND_FIRST_BIT. These architectures cannot include asm-generic/bitops/find.h in their asm/bitops.h. So ifdefed extern declarations of find_first_bit and find_first_zero_bit() are put in linux/bitops.h. This makes asm-generic/bitops/find.h usable by these architectures and use it. Also this change is needed for the forthcoming duplicated extern declarations cleanup. Signed-off-by: Akinobu Mita Signed-off-by: Arnd Bergmann Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x86@kernel.org Cc: Chris Metcalf commit c24cef0b68a719324c344c1563ef3d750ac6bf0e Author: Andrea Gelmini Date: Sat Feb 27 17:51:35 2010 +0100 asm-generic: kdebug.h: Checkpatch cleanup include/asm-generic/kdebug.h:6: ERROR: spaces required around that '=' (ctx:VxV) Signed-off-by: Andrea Gelmini Signed-off-by: Arnd Bergmann commit 269b8fd5d058f2c0da01a42b20315ffc2640d99b Author: Lucian Adrian Grijincu Date: Wed Oct 6 15:03:47 2010 -0700 asm-generic: fcntl: make exported headers use strict posix types All 'pid_t' were changed to '__kernel_pid_t' in a previous commit: make exported headers use strict posix types A number of standard posix types are used in exported headers, which is not allowed if __STRICT_KERNEL_NAMES is defined. In order to get rid of the non-__STRICT_KERNEL_NAMES part and to make sane headers the default, we have to change them all to safe types. but a later change introduced 'pid_t' again: fcntl: add F_[SG]ETOWN_EX This makes asm-generic/fcntl.h d use strict posix types again. Signed-off-by: Lucian Adrian Grijincu Signed-off-by: Andrew Morton Signed-off-by: Arnd Bergmann commit c6691126636769bd22bfd7b55829f0373a93c1ce Author: Mathieu Lacage Date: Tue Jun 22 10:30:15 2010 +0200 asm-generic: cmpxchg does not handle non-long arguments The version of cmpxchg defined in asm-generic/system.h does not handle correctly non-long arguments. Use the version defined in cmpxchg.h instead. Signed-off-by: Mathieu Lacage Signed-off-by: Arnd Bergmann commit 8b9d40691e8f5e7e0c8fb839c2bad29c5e0888ce Author: Mathieu Lacage Date: Sun Jun 27 12:26:06 2010 +0200 asm-generic: make atomic_add_unless a function atomic_add_unless is a macro so, bad things happen if the caller defines a local variable named c, just like like the local variable c defined by the macro. Thus, convert atomic_add_unless to a function. (bug triggered by net/ipv4/netfilter/ipt_CLUSTERIP.c: clusterip_config_find_get calls atomic_inc_not_zero) Signed-off-by: Mathieu Lacage Signed-off-by: Arnd Bergmann commit 4d94aa1b1d437f9513ddc89974d8bd214b8304f6 Author: Sunil Mushran Date: Sat Oct 9 10:27:04 2010 -0700 ocfs2/cluster: Bump up dlm protocol to version 1.1 dlm protocol 1.1. activates messages DLM_QUERY_REGION and DLM_QUERY_NODEINFO that are a must for global heartbeat. It also activates o2hb_global_heartbeat_active(). Signed-off-by: Sunil Mushran commit 7b738b55b2ec0e95a5030037c45b3c312e385789 Author: Eric Dumazet Date: Sat Oct 9 02:17:01 2010 +0000 sundance: get_stats proper locking sundance get_stats() should not be run concurrently, add a lock to avoid potential losses. Note: Remove unused rx_lock field Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 2259dca36a2f0226596ea37132a46338fcff6722 Author: Nicolas Kaiser Date: Thu Oct 7 23:29:27 2010 +0000 net/tg3: simplify conditional Simplify: ((a && !b) || (!a && b)) => (a != b) Signed-off-by: Nicolas Kaiser Signed-off-by: David S. Miller commit aa3bc6c68e3c1064969f5f2962be84491ffb69a0 Author: Nicolas Kaiser Date: Thu Oct 7 13:14:50 2010 +0000 ehea: simplify conditional Simplify: ((a && b) || (!a && !b)) => (a == b) Signed-off-by: Nicolas Kaiser Acked-by: Breno Leitao Signed-off-by: David S. Miller commit e18434c45765cfc4a74b5c61da9e9fbc6ddd3d5f Author: Changli Gao Date: Thu Sep 30 06:17:44 2010 +0000 net_sched: use __TCA_HTB_MAX and TCA_HTB_MAX Signed-off-by: Changli Gao Signed-off-by: David S. Miller commit b476ef059ec9e49d4f2a4280b862b446ef3866e8 Author: Marek Vasut Date: Mon Aug 9 06:23:28 2010 +0200 ARM: pxa/balloon3: Disperse MFP config Move pin config to appropriate places and use it only if needed. Signed-off-by: Marek Vasut Acked-By: Jonathan McDowell Signed-off-by: Eric Miao commit f090c74b23de6d8f362684e4a8c4b2bf8a32b6eb Author: Haojian Zhuang Date: Tue Sep 21 16:43:57 2010 +0800 ARM: mmp: update cpuid of pxa168 and pxa910 Correct the cpuid of pxa168 and pxa910. Signed-off-by: Haojian Zhuang Signed-off-by: Eric Miao commit 799929d7048b3ec0086ed525ed7ccf6f2b8ecda6 Author: Haojian Zhuang Date: Sun Sep 19 20:10:13 2010 -0400 ARM: pxa: reduce the scope of get_memclk_frequency_10khz() Up to now, only pxa2xx pcmcia driver is using the API. No other device driver is using this API in PXA3xx or any other PXA silicons. Restrict the scope only on pxa2xx and remove the implementation of pxa3xx. So we can avoid oo much checking on cpuid after more pxa chips supported. Signed-off-by: Haojian Zhuang Cc: Eric Miao Signed-off-by: Eric Miao commit ecf89b8a9189462480086f72791eb41f8aa09bfd Author: Haojian Zhuang Date: Sun Sep 19 20:09:10 2010 -0400 ARM: pxa: reduce the scope of get_clk_frequency_khz() get_clk_frequency_khz() is used in private cpufreq driver. In order to meet the change of different pxa silicons, checking cpuid is introduced in get_clk_frequency_khz(). While more pxa silicons are supported, the workload of checking cpuid is higher. So restrict the scope of get_clk_frequency_khz() on pxa2xx. Different pxa silcions use different private cpufreq driver to avoid too much checking on cpuid. Signed-off-by: Haojian Zhuang Cc: Eric Miao Signed-off-by: Eric Miao commit 759305c62f294d4f5fb1d8dde5ece98d2f71cfcb Author: Mark F. Brown Date: Sun Sep 12 23:51:36 2010 -0400 ARM: pxa168/teton bga: add board support for i2c and rtc-ds1337 Defined I2C/ALARM pin definitions DS1337 RTC alarm support is tied to RTC_INT_GPIO Signed-off-by: Mark F. Brown Acked-by: Haojian Zhuang Acked-by: Marek Vasut Signed-off-by: Eric Miao commit d2ce697309ba5215cc5b2d5a11c8599d9eb1c75c Author: Mark F. Brown Date: Sun Sep 12 23:51:35 2010 -0400 ARM: pxa168/teton bga: added keypad support Support for Matrix keypad ESC, ENTER, LEFT, and RIGHT Signed-off-by: Mark F. Brown Signed-off-by: Eric Miao commit 1bbd7089f2effc40c35ffbbc62ad54aefd741633 Author: Mark F. Brown Date: Sun Sep 12 23:51:34 2010 -0400 ARM: pxa168: added support for Teton BGA platform Added board defintion, header, and debug UART support. Signed-off-by: Mark F. Brown Signed-off-by: Eric Miao commit 0bd8696119904b5868c7315b644128b16ab06f59 Author: Haojian Zhuang Date: Wed Sep 8 09:42:42 2010 -0400 ARM: mmp: support sparse irq Add sparse IRQ support in ARCH_MMP. Signed-off-by: Haojian Zhuang Signed-off-by: Eric Miao commit 20266df55db7dcb70b3f527a55f4eb5a4d7092e2 Author: Haojian Zhuang Date: Wed Sep 8 09:42:40 2010 -0400 ARM: pxa: append tavorevb3 support Bringup tavorevb3 development platform. UART and PMIC are enabled. Signed-off-by: Haojian Zhuang Signed-off-by: Eric Miao commit ba1aa3248e484e5cc39a74ae418232bd5c877a90 Author: Haojian Zhuang Date: Sun Aug 29 20:32:16 2010 -0400 ARM: pxa168fb: add .remove function The pxa168fb driver is missing .remove function so the framebuffer isn't correctly shut down when the module is removed. Signed-off-by: Marek Vasut Signed-off-by: Haojian Zhuang Signed-off-by: Eric Miao commit 6aafc5f394fce437bf005b59034d7e5917778a99 Author: Mark F. Brown Date: Fri Sep 3 18:28:11 2010 -0400 ARM: pxa168/aspenite: add board support for keypad Signed-off-by: Mark F. Brown Signed-off-by: Eric Miao commit ab5739a17953b22480dc7caf6603380d563c53fc Author: Mark F. Brown Date: Fri Sep 3 18:28:10 2010 -0400 ARM: pxa168: added keypad wake clear event support for platform Signed-off-by: Mark F. Brown Signed-off-by: Eric Miao commit 3587c258078479824342f33dc513ca7c66d729bc Author: Mark F. Brown Date: Fri Sep 3 18:28:09 2010 -0400 ARM: pxa27x_keypad: added wakeup event handler for keypad interrupts mach-mmp needs to clear wake event in order to clear the keypad interrupt Signed-off-by: Mark F. Brown Signed-off-by: Eric Miao commit 2ce4389068129fb4a8756b5ba126da1260f5dbef Author: Mark F. Brown Date: Fri Sep 3 18:28:08 2010 -0400 ARM: pxa168: added wake clear register support for APMU Signed-off-by: Mark F. Brown Signed-off-by: Eric Miao commit 6d109465fb751fe4376c080e5fb10838d3414c28 Author: Mark F. Brown Date: Fri Sep 3 18:28:07 2010 -0400 ARM: pxa168: added keypad support Signed-off-by: Mark F. Brown Signed-off-by: Eric Miao commit 4a2490eac897e3648c4800b1068b56b7e1ad91b3 Author: Mark F. Brown Date: Fri Sep 3 18:28:06 2010 -0400 ARM: pxa: moved pxa27x_keypad.h to platform pxa directory mach-mmp utilizes pxa27x_keypad code so we need to move header to platform pxa directory. Signed-off-by: Mark F. Brown Signed-off-by: Eric Miao commit 9bdf6bab4ecfb6a8ca50c0c46f2365ef6c3e35b7 Author: Andres Salomon Date: Mon Aug 30 03:57:28 2010 +0000 sparc: break out some PROM device-tree building code out into drivers/of Transitioning into making this useful for architectures other than sparc. This is a verbatim copy of all functions/variables that've been moved. Signed-off-by: Andres Salomon Acked-by: David S. Miller Signed-off-by: Grant Likely commit 8d1255627d4ce9cb4b9d0a1c44b6c18d92e84a99 Author: Andres Salomon Date: Fri Oct 8 14:18:11 2010 -0700 of/sparc: convert various prom_* functions to use phandle Rather than passing around ints everywhere, use the phandle type where appropriate for the various functions that talk to the PROM. Signed-off-by: Andres Salomon Acked-by: David S. Miller Signed-off-by: Grant Likely commit edae01b94a846b39664420fe0c7561a594bb50a2 Author: Brett Rudley Date: Fri Oct 8 15:56:50 2010 -0700 staging: brcm80211: Purge unused wlc_id_name Purge unused wlc_id_name_entry Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit a9a6073c51ddc4f562b1918ded7e27830e0d9d9f Author: Brett Rudley Date: Fri Oct 8 17:35:02 2010 -0700 staging: brcm80211: Purge unused packet engine We're not using the packet engine anymore - goodbye. Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit fb693a712cce5a52bec5d5769b17c2ca93662c61 Author: nohee ko Date: Fri Oct 8 18:44:29 2010 -0700 staging: brcm80211: bug fix- dual band problem Bug fix for dual band problem. In particular it had an issue to connect to 5G band AP. Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit ef999f10a61cc6efea42fdd9c32647a39fe390e6 Author: Tracey Dent Date: Fri Oct 8 17:46:37 2010 -0400 Staging: speakup: serialio: Fixed errors in file On line 40 printk() needed an KERN_* facility level, so I gave it INFO. Also, fixed a C99 comment error. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 3e51d3c924aea8a1f1372e6c615b0a37b528121d Author: Kai Makisara Date: Sat Oct 9 00:17:56 2010 +0300 [SCSI] st: add MTWEOFI to write filemarks without flushing drive buffer This patch adds a new MTIOCTOP operation MTWEOFI that writes filemarks with immediate bit set. This means that the drive does not flush its buffer and the next file can be started immediately. This speeds up writing in applications that have to write multiple small files. Signed-off-by: Kai Makisara Signed-off-by: James Bottomley commit d9c8279b326e18bcb25ee9d12fe7513d24f8bbb1 Author: Stepan Moskovchenko Date: Tue Aug 24 19:51:15 2010 -0700 msm: Platform data for msm8x60 IOMMUs Add the platform data for the IOMMUs found on the Qualcomm msm8x60 SoC. Signed-off-by: Stepan Moskovchenko Signed-off-by: Daniel Walker commit c6a5951ee53db0f275dd85a702325c981c8d8c4c Author: Stepan Moskovchenko Date: Tue Aug 24 18:32:38 2010 -0700 msm: Platform initialization for the IOMMU driver Register a driver for the MSM IOMMU devices and a driver for the translation context devices. Set up the global IOMMU registers and initialize the context banks. Signed-off-by: Stepan Moskovchenko Signed-off-by: Daniel Walker commit 0720d1f052dc1576396a39b327da6e60082c4efa Author: Stepan Moskovchenko Date: Tue Aug 24 18:31:10 2010 -0700 msm: Add MSM IOMMU support Add support for the IOMMUs found on the upcoming Qualcomm MSM8x60 chips. These IOMMUs allow virtualization of the address space used by most of the multimedia cores on these chips. Signed-off-by: Stepan Moskovchenko Signed-off-by: Daniel Walker commit 69b7f6ff855e32ec353475ce7b7246d293816078 Author: Gregory Bean Date: Sun Apr 4 22:29:02 2010 -0700 msm: add MSM8x60 FFA support The MSM8X60 FFA contains different components than the MSM8X60 SURF, and therefore requires a different ARCH type and machine ID. Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker commit 57bbf1cc8c265f9d4c6831d9e3f07a72cf16ee27 Author: Steve Muckle Date: Thu Jan 7 12:51:10 2010 -0800 msm: MSM8X60 simulator board support Board configuration for MSM8X60 simulation. Signed-off-by: Steve Muckle Signed-off-by: Daniel Walker commit 49b76f718d634599693e18efe169adfa2d5b75e8 Author: Steve Muckle Date: Fri Mar 19 17:00:08 2010 -0700 msm: add msm8x60_surf machine Signed-off-by: Steve Muckle Signed-off-by: Daniel Walker commit 998ba079fee7d9639003d77521d2117db17b4a04 Author: Jeff Ohlstein Date: Thu May 6 14:18:06 2010 -0700 msm: physical offset for MSM8X60 The MSM8x60 has a different physical memory offset than other targets. Signed-off-by: Jeff Ohlstein Signed-off-by: Daniel Walker commit e4fbb68f4594388367e4e4595abf9330d9875704 Author: Abhijeet Dharmapurikar Date: Mon Feb 1 12:30:28 2010 -0800 msm: 8x60: setup correct handlers for private interrupts Private Peripheral interrupts could be edge triggered or level triggered depending on the platform. Initialize handlers for these in board file. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Daniel Walker commit 569fb6e3e60eef77941c319562271daf759e634d Author: Jeff Ohlstein Date: Thu Aug 12 13:02:56 2010 -0700 msm: add build support for msm8x60 target Signed-off-by: Jeff Ohlstein Signed-off-by: Daniel Walker commit 46fe5f29e3062f681cc3cf07a604d82396faea89 Author: Daniel Walker Date: Wed Aug 18 11:00:25 2010 -0700 msm: allow uart to be conditionally disabled Some MSM targets don't select the debug UART in this way. For those we need to disable this selection mechanism. Signed-off-by: Daniel Walker Signed-off-by: Jeff Ohlstein Signed-off-by: Daniel Walker commit 4ca06de368ddfaee47983d3d1f9eec9e2a6c23d4 Author: Daniel Walker Date: Wed Aug 18 10:53:05 2010 -0700 msm: dma: add stub functions for dma features not yet present on 8x60 Signed-off-by: Daniel Walker Signed-off-by: Jeff Ohlstein Signed-off-by: Daniel Walker commit 871c94a8612f6b13193752c765617cfe68a038d3 Author: Jeff Ohlstein Date: Tue Aug 17 20:04:19 2010 -0700 msm: clock: add dummy clock driver Need to add this until real clock support for 8x60 goes in, or else some drivers won't compile. Signed-off-by: Jeff Ohlstein Signed-off-by: Daniel Walker commit 9161d303af547653c66dab4e235b6fd0c3ac6148 Author: Steve Muckle Date: Thu Feb 11 11:50:40 2010 -0800 msm: 8x60: gic initialization fixup for RUMI On RUMI platform STIs are not enabled by default, contrary to the GIC spec. The bits for STIs in the enable/enable clear registers are also RW instead of RO. STIs need to be enabled at initialization time. Signed-off-by: Steve Muckle Signed-off-by: Daniel Walker commit f880c5649ec7a831a45cd254e9ecf9bd25b17dba Author: Steve Muckle Date: Wed Dec 9 14:03:13 2009 -0800 msm: irq: rename existing entry-macro to entry-macro-vic The existing MSM irq entry macro is specific to a VIC implementation. Renaming this makes room for irq support based on other interrupt controllers. Signed-off-by: Steve Muckle Signed-off-by: Daniel Walker commit a55df6edcfc42354ae5f828c31d9236b8a7bbea7 Author: Steve Muckle Date: Thu Jan 7 12:43:24 2010 -0800 msm: MSM8X60 RUMI3 board support Board configuration for MSM8X60 emulation on RUMI3. Signed-off-by: Steve Muckle Signed-off-by: Daniel Walker commit 672039f0351f324bb498c5ff5d468103d321d56c Author: Jeff Ohlstein Date: Tue Oct 5 15:23:57 2010 -0700 msm: timer: support 8x60 timers Signed-off-by: Jeff Ohlstein Signed-off-by: Daniel Walker commit 01eb4f5c77f3717d8f295610f0dbb705950beadc Author: Abhijeet Dharmapurikar Date: Thu Jan 21 18:10:29 2010 -0800 msm: irqs-8x60: interrupt map Define the interrupt map in irq-8x60.h Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Daniel Walker commit ed1f31b4b742647e2ec18c885e65fbef484eaf58 Author: Steve Muckle Date: Sat Nov 28 13:00:13 2009 -0800 msm: initial irq definitions for MSM8X60 IRQ assignments are different for MSM8X60 than other existing MSMs. Signed-off-by: Steve Muckle Signed-off-by: Daniel Walker commit 6cf6dfefe1f07f309998df8734fdc0961dbae38c Author: Steve Muckle Date: Wed Jan 6 14:55:24 2010 -0800 msm: io: MSM8X60 io support MSM8X60 has different IO mappings than previous MSMs. Signed-off-by: Steve Muckle Signed-off-by: Daniel Walker commit c8aabaeb52ef6a0aeb6e8e209431b9bb01dcd287 Author: Steve Muckle Date: Wed Apr 21 16:20:27 2010 -0700 msm: create config option for proc-comm Some builds may not support the proc-comm interface with the baseband processor. Signed-off-by: Steve Muckle Signed-off-by: Daniel Walker commit 4315d834c1496ddca977e9e22002b77c85bfec2c Author: Tom Herbert Date: Thu Oct 7 10:09:10 2010 +0000 net: Fix rxq ref counting The rx->count reference is used to track reference counts to the number of rx-queue kobjects created for the device. This patch eliminates initialization of the counter in netif_alloc_rx_queues and instead increments the counter each time a kobject is created. This is now symmetric with the decrement that is done when an object is released. Signed-off-by: Tom Herbert Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit 40e5c96b229928b28edd99cdb981ff5e74938d19 Author: Brett Rudley Date: Fri Oct 8 13:57:13 2010 -0700 staging: brcm80211: Coalesce osl_dma_alloc_consistent between fullmac and softmac Combine dma_alloc routine for full and softmac Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 17b313857dde17c2a122f7a763da335c6378ba1d Author: Brett Rudley Date: Fri Oct 8 13:55:20 2010 -0700 staging: brcm80211: Purge unused memlist debugging Purge unused memlist debugging Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 0d2f0724a4b3a5d1631c39b1bbe7c78c4a15a7ac Author: Greg Kroah-Hartman Date: Fri Oct 8 14:28:21 2010 -0700 Staging: brcm80211: remove BCMATTACHFN macro It's not doing anything and is a bit silly. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 17c4da1ecfc18ac07c14a7060b1a3841e385ad5a Author: Greg Kroah-Hartman Date: Fri Oct 8 14:11:20 2010 -0700 Staging: brcm80211: remove BCMATTACHDATA macro It's not even used for anything, not to mention, it is pretty silly. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit a131d82266e77b8eb8a2dab930a94ed0de9e91b0 Author: Rémi Denis-Courmont Date: Fri Oct 8 04:02:03 2010 +0000 Phonet: mark the pipe controller as EXPERIMENTAL There are a bunch of issues that need to be fixed, including: - GFP_KERNEL allocations from atomic context (and GFP_ATOMIC in process context), - abuse of the setsockopt() call convention, - unprotected/unlocked static variables... IMHO, we will need to alter the userspace ABI when we fix it. So mark the configuration option as EXPERIMENTAL for the time being (or should it be BROKEN instead?). Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller commit 03789f26722a15ccfe6f191e9fb3d356f2f18a1e Author: Rémi Denis-Courmont Date: Fri Oct 8 04:02:02 2010 +0000 Phonet: cleanup pipe enable socket option The current code works like this: int garbage, status; socklen_t len = sizeof(status); /* enable pipe */ setsockopt(fd, SOL_PNPIPE, PNPIPE_ENABLE, &garbage, sizeof(garbage)); /* disable pipe */ setsockopt(fd, SOL_PNPIPE, PNPIPE_DISABLE, &garbage, sizeof(garbage)); /* get status */ getsockopt(fd, SOL_PNPIPE, PNPIPE_INQ, &status, &len); ...which does not follow the usual socket option pattern. This patch merges all three "options" into a single gettable&settable option, before Linux 2.6.37 gets out: int status; socklen_t len = sizeof(status); /* enable pipe */ status = 1; setsockopt(fd, SOL_PNPIPE, PNPIPE_ENABLE, &status, sizeof(status)); /* disable pipe */ status = 0; setsockopt(fd, SOL_PNPIPE, PNPIPE_ENABLE, &status, sizeof(status)); /* get status */ getsockopt(fd, SOL_PNPIPE, PNPIPE_ENABLE, &status, &len); This also fixes the error code from EFAULT to ENOTCONN. Signed-off-by: Rémi Denis-Courmont Cc: Kumar Sanghvi Signed-off-by: David S. Miller commit 6d8e74ed377dd4cbad7ccc69300f734090e15c05 Author: Rémi Denis-Courmont Date: Fri Oct 8 04:02:01 2010 +0000 Phonet: advise against enabling the pipe controller As it currently is, the new code path is not compatible with existing Nokia modems. This would break existing userspace for Nokia modem, such as the existing oFono ISI driver. Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller commit 838e7a03a31b890ee82c74039b84c05fa237bd46 Author: Rémi Denis-Courmont Date: Fri Oct 8 04:02:00 2010 +0000 Phonet: add to MAINTAINERS and add myself Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller commit 56dd2c0691a5a387b7b05835fe547dc6fade9407 Author: Darrick J. Wong Date: Fri Oct 1 13:55:47 2010 -0700 [SCSI] libsas: Don't issue commands to devices that have been hot-removed sd will get hung up issuing commands to flush write cache if a SAS device behind the expander is unplugged without warning. Change libsas to reject commands to domain devices that have already gone away. [maciej.trela@intel.com: removed setting ->gone in sas_deform_port() to permit sync cache commands at module removal] Signed-off-by: Darrick J. Wong Tested-by: Haipao Fan Signed-off-by: Maciej Trela Signed-off-by: Dan Williams Signed-off-by: James Bottomley commit b1091fea295825d99c3f7c69a58c057e7d972389 Author: Amit Kumar Salecha Date: Thu Oct 7 23:46:11 2010 +0000 qlcnic: update driver version 5.0.11 Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit ff1b1bf867ebb7eb5e3ff0eab21c26b830d5e890 Author: Sritej Velaga Date: Thu Oct 7 23:46:10 2010 +0000 qlcnic: change all P3 references to P3P This patch just rename all P3 #define to P3P. Signed-off-by: Sritej Velaga Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit ee07c1a70117fe93cf71686d481791c2498f80d2 Author: Rajesh Borundia Date: Thu Oct 7 23:46:09 2010 +0000 qlcnic: fix promiscous mode for VF o Allow promiscous mode setting for VF's depending upon the configuration. Signed-off-by: Rajesh Borundia Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 6336acd5522b150e7695cb3b42221999b352baa5 Author: Sritej Velaga Date: Thu Oct 7 23:46:08 2010 +0000 qlcnic: fix board description Remove "Flex-10" from board description. Signed-off-by: Sritej Velaga Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit a2152d096e0cd8593e883f72e875195ea0e89bb7 Author: Amit Kumar Salecha Date: Thu Oct 7 23:46:07 2010 +0000 qlcnic: remove private LRO flag LRO was not getting enable after interface down/up. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit b8c17620458b82fd868f4813e1ff18368a832b7c Author: Amit Kumar Salecha Date: Thu Oct 7 23:46:06 2010 +0000 qlcnic: support quiescent mode Put device in quiescent mode during internal loopback test. Before running test, set state to NEED_QUISCENT. After getting ack from all function, change state to QUISCENT and perform test. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit f7ec804a3edd2f7cf98a42bcad741d89d547c117 Author: Amit Kumar Salecha Date: Thu Oct 7 23:46:05 2010 +0000 qlcnic: driver private workqueue Currently fw recovery usage global workqueue. As same workqueue used by kernel for ethtool and etc., supporting quiescent mode is not possible, without driver private workqueue. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 9cf8d1a3b8cb19fa49494c1b8f0f9e3a37f2c218 Merge: 8391d07 e9a6870 Author: David S. Miller Date: Fri Oct 8 13:51:11 2010 -0700 Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 commit 6e9636693373d938aa3b13427be3d212f172ac06 Author: Konrad Rzeszutek Wilk Date: Fri Oct 8 14:53:48 2010 -0400 x86, iommu: Update header comments with appropriate naming The header comments diverged a bit from the implementation. Lets re-sync them. Signed-off-by: Konrad Rzeszutek Wilk LKML-Reference: <1286564028-2352-3-git-send-email-konrad.wilk@oracle.com> Signed-off-by: H. Peter Anvin commit fc6a2f37d084173de57fe75f73cbe4bb296b9e8a Author: Konrad Rzeszutek Wilk Date: Fri Oct 8 14:53:47 2010 -0400 ia64, iommu: Add a dummy iommu_table.h file in IA64. We don't need a complex IOMMU dependency list on IA64 so we just define the IOMMU_* macro which is used the DMAR driver, as a dummy. Signed-off-by: Konrad Rzeszutek Wilk LKML-Reference: <1286564028-2352-2-git-send-email-konrad.wilk@oracle.com> Reported-by: Tony Luck Tested-by: Tony Luck Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: H. Peter Anvin commit e9a68707d736f4f73d7e209885d7b4c5c452b1dc Merge: dd53df2 15a6321 Author: John W. Linville Date: Fri Oct 8 15:39:28 2010 -0400 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem Conflicts: Documentation/feature-removal-schedule.txt drivers/net/wireless/ipw2x00/ipw2200.c commit b61640d1acba9e2405c4887717fd00286f70c395 Author: Greg Kroah-Hartman Date: Fri Oct 8 12:37:39 2010 -0700 Staging: brcm80211: brcmfmac: fix some comparison warnings Use min_t() instead of min() in some places to make the comparison explicit and resolve some compiler warnings. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit a300ce95e49fe079d4ca77370c23ce75db176218 Author: Greg Kroah-Hartman Date: Fri Oct 8 12:28:02 2010 -0700 Staging: brcm80211: sys: fix some comparison warnings Use min_t() instead of min() in some places to make the comparison explicit and resolve some compiler warnings. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 697d600d8fa9d383626041a8dde86555fb758b76 Author: Greg Kroah-Hartman Date: Fri Oct 8 12:25:23 2010 -0700 Staging: brcm80211: sys: wlc_ampdu: fix some comparison warnings Use min_t() instead of min() in some places to make the comparison explicit and resolve some compiler warnings. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit e9e6727fcc6ef9aee763eaa35cc980f5b3a2a68c Author: Greg Kroah-Hartman Date: Fri Oct 8 12:16:08 2010 -0700 Staging: brcm80211: phy: wlc_phy_n: fix some comparison warnings Use min_t() instead of min() in some places to make the comparison explicit and resolve some compiler warnings. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman Date: Fri Oct 8 12:07:33 2010 -0700 Staging: brcm80211: hnddma.c: fix compiler warning Change the field types of dma_info_t to make comparing values easier (and correct.) No need to keep rxbufsize as a u16, it can be an unsigned int to make things easier. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 4e13efc99106723960a27e55f560028bced5076d Author: Andres Salomon Date: Fri Oct 8 11:34:24 2010 -0700 sparc: stop exporting openprom.h header It's unknown why openprom.h was being exported; there doesn't seem to be any reason for it currently, and it creates headaches with userspace being able to potentially use the structures in there. So, don't export it anymore. Signed-off-by: Andres Salomon Acked-by: David S. Miller Signed-off-by: Grant Likely commit 96e76e694101c2b09c997bce5f064df0d051b729 Author: Greg Kroah-Hartman Date: Fri Oct 8 12:01:30 2010 -0700 Staging: brcm80211: remove VALID_MASK macro No one is using it. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit e18d5313c680e5bb8cbdc0dce8f8698c2ab20663 Author: Greg Kroah-Hartman Date: Fri Oct 8 11:59:06 2010 -0700 Staging: brcm80211: remove ROUNDUP macro And use the kernel provided 'roundup' instead. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 36c63ff6afb1bdc2d93aac6d207d6529177d47f8 Author: Greg Kroah-Hartman Date: Fri Oct 8 11:55:40 2010 -0700 Staging: brcm80211: remove ISALIGNED macro And use the kernel provided IS_ALIGNED one instead. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit d2733c97faf94ae22f214f3cfb288da3366e6ad5 Author: Greg Kroah-Hartman Date: Fri Oct 8 11:52:16 2010 -0700 Staging: brcm80211: remove unused ALIGN_ADDR() macro It's not used (and there's a kernel provided one if it's ever needed in the future), so remove it. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 8d3d6a6945df5c78c7f7882dabdb5638b05b2f5c Author: Greg Kroah-Hartman Date: Fri Oct 8 11:47:11 2010 -0700 Staging: brcm80211: remove ARRAYSIZE macro Use the real 'ARRAY_SIZE' definition instead. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit e8b17b5b3f30252b5470dbbf54bc251ddc7fac17 Author: Masayuki Ohtake Date: Fri Oct 8 12:44:49 2010 -0600 spi/topcliff: Add topcliff platform controller hub (PCH) spi bus driver Topcliff PCH is the platform controller hub that is going to be used in Intel's upcoming general embedded platform. All IO peripherals in Topcliff PCH are actually devices sitting on AMBA bus. This patch adds a driver for the SPI bus integrated into the Topcliff device. Signed-off-by: Masayuki Ohtake Signed-off-by: Grant Likely commit ce0f1b8cd1526e800b8f3c1e978ac7c23ed91e2f Author: Greg Kroah-Hartman Date: Fri Oct 8 11:44:45 2010 -0700 Staging: brcm80211: remove OFFSETOF macro Use the real 'offsetof' definition instead. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 3ea2f4d640479a40847e311282ee73695b6e82cf Author: Greg Kroah-Hartman Date: Fri Oct 8 11:39:43 2010 -0700 Staging: brcm80211: remove broken MAX() implementation Use the kernel-provided version, this one is broken. Note, there are more compiler warnings now, that's due to different types being compared, which shows how the original macro was wrong in at least one way. They need to be fixed up. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 7068c2f13983a39a49981891c47c74efb5fb60c7 Author: Greg Kroah-Hartman Date: Fri Oct 8 11:34:59 2010 -0700 Staging: brcm80211: remove broken MIN() implementation Use the kernel-provided version, this one is broken. Note, there are more compiler warnings now, that's due to different types being compared, which shows how the original macro was wrong in at least one way. They need to be fixed up. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit c03b63c1987f06590ad944ffe7179444909e0285 Author: Greg Kroah-Hartman Date: Fri Oct 8 11:20:01 2010 -0700 Staging: brcm80211: util: remove unneeded usage of uintptr Double casting is pretty pointless, don't do that. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit f1d0fe0abc2c7643dee6df5ed473d3f1b0e15a97 Author: Greg Kroah-Hartman Date: Fri Oct 8 11:13:11 2010 -0700 Staging: brcm80211: remove unused typedefs in typedefs.h uint is already defined somewhere else, so just remove this version of it. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 3e26416e2f7fc2781c084c4ea51227aef30336de Author: Greg Kroah-Hartman Date: Fri Oct 8 11:11:13 2010 -0700 Staging: brcm80211: s/int32/s32/ Use the kernel types, don't invent your own. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit a7c887510073b2f403e123f2befa40bf93554df9 Merge: 4415beb 4367260 Author: Tony Lindgren Date: Fri Oct 8 11:10:36 2010 -0700 Merge branch 'control_mcbsp_fix_2.6.37' of git://git.pwsan.com/linux-2.6 into omap-for-linus commit 4415beb6fb519c4e98491666838494a8c46cc3ee Author: David Anders Date: Thu Oct 7 19:36:30 2010 +0000 omap4: pandaboard: enable the ehci port on pandaboard The OMAP4 PandaBoard has EHCI port1 hooked up to an external SMSC3320 transciever. GPIO 1 is used to power on the transceiver and GPIO 62 for reset on the transceiver. Signed-off-by: David Anders Signed-off-by: Tony Lindgren commit b9b52620823f84f95f3fd94dd6769b7102d7888a Author: David Anders Date: Thu Oct 7 19:36:29 2010 +0000 omap4: pandaboard: Fix the init if CONFIG_MMC_OMAP_HS is not set Avoid possible crash if CONFIG_MMC_OMAP_HS is not set. Signed-off-by: David Anders Signed-off-by: Anand Gadiyar Signed-off-by: Tony Lindgren commit 66cbd3ab35d35580ddf98304c280a6231685aa41 Author: Greg Kroah-Hartman Date: Fri Oct 8 11:05:47 2010 -0700 Staging: brcm80211: s/uint32/u32/ Use the kernel types, don't invent your own. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 191183b94cc511d0fc2326c83165d95aeabacac4 Author: David Anders Date: Thu Oct 7 19:36:28 2010 +0000 omap4: pandaboard: remove unused hsmmc definition remove the second hsmmc definition as it is only used on the expansion header of the PandaBoard and can be mux for other functions. Signed-off-by: David Anders Signed-off-by: Anand Gadiyar Signed-off-by: Tony Lindgren commit 8391d07b80e8da957cd888870e23f8e218438622 Author: Dimitris Michailidis Date: Thu Oct 7 14:48:38 2010 +0000 ipv4: Remove leftover rcu_read_unlock calls from __mkroute_output() Commit "fib: RCU conversion of fib_lookup()" removed rcu_read_lock() from __mkroute_output but left a couple of calls to rcu_read_unlock() in there. This causes lockdep to complain that the rcu_read_unlock() call in __ip_route_output_key causes a lock inbalance and quickly crashes the kernel. The below fixes this for me. Signed-off-by: Dimitris Michailidis Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit 4367260c0bc1773c00b2309a31b31657cabfda3f Author: Jarkko Nikula Date: Fri Oct 8 11:40:21 2010 -0600 OMAP: McBSP: Remove null omap44xx ops comment It seems these comments where accidentally added so remove them. Signed-off-by: Jarkko Nikula Acked-by: Paul Walmsley Acked-by: Peter Ujfalusi commit e4cc41d7bc31cbf99fc633e4d3ab708b55696096 Author: Jarkko Nikula Date: Fri Oct 8 11:40:21 2010 -0600 OMAP: McBSP: Swap CLKS source definition This is just a readability and debugging improvement. As selection bit in DEVCONF register is cleared when using 96 MHz PRCM source and set when using external CLKS pin, change definitions to be sync with these. Signed-off-by: Jarkko Nikula Acked-by: Paul Walmsley Acked-by: Peter Ujfalusi commit 425925dd750acc17234977decfda1f9cc223389a Author: Jarkko Nikula Date: Fri Oct 8 11:40:20 2010 -0600 OMAP: McBSP: Fix CLKR and FSR signal muxing Fix bit clear. Now it clears all other bits than mask bit where it should clear only it. Signed-off-by: Jarkko Nikula Acked-by: Paul Walmsley Acked-by: Peter Ujfalusi commit 6041c27f51f237b59ea0838c33e08223cf98e43e Author: Paul Walmsley Date: Fri Oct 8 11:40:20 2010 -0600 OMAP2+: clock: reduce the amount of standard debugging while disabling unused clocks Reduce the amount of debugging generated by default when unused clocks are being disabled by the clock code. The previous code would only generate debug-level messages, but some people who wished to run production kernels with debug-level messages enabled reported that the large number of clock disable messages were slowing boot. Now to enable clock-by-clock disable messages, DEBUG needs to be defined in mach-omap2/clock.c. Signed-off-by: Paul Walmsley Cc: Tuukka Tikkanen Cc: Tim Bird commit 4814ced5116e3b73dc4f63eec84999739fc8ed11 Author: Paul Walmsley Date: Fri Oct 8 11:40:20 2010 -0600 OMAP: control: move plat-omap/control.h to mach-omap2/control.h Only OMAP2+ platforms have the System Control Module (SCM) IP block. In the past, we've kept the SCM header file in plat-omap. This has led to abuse - device drivers including it; includes being added that create implicit dependencies on OMAP2+ builds; etc. In response, move the SCM headers into mach-omap2/. As part of this, remove the direct SCM access from the OMAP UDC driver. It was clearly broken. The UDC code needs an indepth review for use on OMAP2+ chips. Signed-off-by: Paul Walmsley Cc: Cory Maccarrone Cc: Kyungmin Park commit aa218dafd7b37ba92fcfdd6d5c8d459772f88042 Author: Paul Walmsley Date: Fri Oct 8 11:40:19 2010 -0600 OMAP: split plat-omap/common.c Split plat-omap/common.c into three pieces: 1. the 32KiHz sync timer and clocksource code, which now lives in plat-omap/counter_32k.c; 2. the OMAP2+ common code, which has been moved to mach-omap2/common.c; 3. and the remainder of the OMAP-wide common code, which includes the deprecated ATAGs code and a deprecated video RAM reservation function. The primary motivation for doing this is to move the OMAP2+-specific parts into an OMAP2+-specific file, so that build breakage related to the System Control Module code can be resolved. Benoît Cousson suggested a new filename and found some bugs in the counter_32k.c comments - thanks Benoît. Signed-off-by: Paul Walmsley Cc: Benoît Cousson commit d13586574d373ef40acd4725c9a269daa355e412 Author: Paul Walmsley Date: Fri Oct 8 11:40:19 2010 -0600 OMAP: McBSP: implement functional clock switching via clock framework Previously the OMAP McBSP ASoC driver implemented CLKS switching by using omap_ctrl_{read,write}l() directly. This is against policy; the OMAP System Control Module functions are not intended to be exported to drivers. These symbols are no longer exported, so as a result, the OMAP McBSP ASoC driver does not build as a module. Resolve the CLKS clock changing portion of this problem by creating a clock parent changing function that lives in arch/arm/mach-omap2/mcbsp.c, and modify the ASoC driver to use it. Due to the unfortunate way that McBSP support is implemented in ASoC and the OMAP tree, this symbol must be exported for use by sound/soc/omap/omap-mcbsp.c. Going forward, the McBSP device driver should be moved from arch/arm/*omap* into drivers/ or sound/soc/* and the CPU DAI driver should be implemented as a platform_driver as many other ASoC CPU DAI drivers are. These two steps should resolve many of the layering problems, which will rapidly reappear during a McBSP hwmod/PM runtime conversions. Signed-off-by: Paul Walmsley Acked-by: Jarkko Nikula Acked-by: Peter Ujfalusi Acked-by: Liam Girdwood Acked-by: Mark Brown commit cf4c87abe238ec17cd0255b4e21abd949d7f811e Author: Paul Walmsley Date: Fri Oct 8 11:40:19 2010 -0600 OMAP: McBSP: implement McBSP CLKR and FSR signal muxing via mach-omap2/mcbsp.c The OMAP ASoC McBSP code implemented CLKR and FSR signal muxing via direct System Control Module writes on OMAP2+. This required the omap_ctrl_{read,write}l() functions to be exported, which is against policy: the only code that should call those functions directly is OMAP core code, not device drivers. omap_ctrl_{read,write}*() are no longer exported, so the driver no longer builds as a module. Fix the pinmuxing part of the problem by removing calls to omap_ctrl_{read,write}l() from the OMAP ASoC McBSP code and implementing signal muxing functions in arch/arm/mach-omap2/mcbsp.c. Due to the unfortunate way that McBSP support is implemented in ASoC and the OMAP tree, these symbols must be exported for use by sound/soc/omap/omap-mcbsp.c. Going forward, the McBSP device driver should be moved from arch/arm/*omap* into drivers/ or sound/soc/*, and the CPU DAI driver should be implemented as a platform_driver as many other ASoC CPU DAI drivers are. These two steps should resolve many of the layering problems, which will rapidly reappear during a McBSP hwmod/PM runtime conversion. Signed-off-by: Paul Walmsley Acked-by: Jarkko Nikula Acked-by: Peter Ujfalusi Acked-by: Liam Girdwood Acked-by: Mark Brown commit 829e5b127a33d3baa227e87636032f36cd4c05fc Author: Paul Walmsley Date: Fri Oct 8 11:40:18 2010 -0600 OMAP3xxx: clock: add clkdev aliases for McBSP fclk source switching The OMAP3 clock tree already contains the infrastructure to support clock framework-based McBSP functional clock source switching. But it did not contain the clkdev aliases for the McBSP code to refer to the parent clocks in an SoC integration-neutral way. So, add the clkdev aliases for the parent clocks. Signed-off-by: Paul Walmsley commit b115b743c2e4bcee9ddc91f7ae2942a06e1a53db Author: Paul Walmsley Date: Fri Oct 8 11:40:18 2010 -0600 OMAP2430: clock: add MCBSP_CLKS node and clkdev aliases Add the MCBSP_CLKS clock and the clksel structures needed to support clock framework-based source switching for McBSPs 1-5. Also, add clkdev aliases on the parent clocks for the McBSP source switching code, added in a subsequent patch. Signed-off-by: Paul Walmsley commit 1bccb345bd8c5652017013d7e963fdd158ead600 Author: Paul Walmsley Date: Fri Oct 8 11:40:17 2010 -0600 OMAP2420: clock: add MCBSP_CLKS node and clkdev aliases Add the MCBSP_CLKS clock and the clksel structures needed to support clock framework-based source switching for McBSP 1 and 2. Also, add clkdev aliases on the parent clocks for the McBSP source switching code, added in a subsequent patch. Signed-off-by: Paul Walmsley commit 54164bb2927edd9f183a108a0d037d80639c8429 Author: Paul Walmsley Date: Fri Oct 8 11:40:17 2010 -0600 OMAP2420: CTRL: fix OMAP242X_CTRL_REGADDR macro Conform the OMAP2420_CTRL_BASE macro name to the standard of the rest of the OMAP*_CTRL_BASE macro names. This fixes a bug in the OMAP2420 SCM code that prevented OMAP242X_CTRL_REGADDR from working. Signed-off-by: Paul Walmsley commit 6515e48932c8bf04227f9dd638c8ac634f89ba24 Author: Paul Walmsley Date: Fri Oct 8 11:40:17 2010 -0600 OMAP2+: Kconfig: disallow builds for boards that don't use the currently-selected SoC Currently, if, for example, CONFIG_ARCH_OMAP2420 is not selected, OMAP2420 board files can still be included in the build. This results in link errors: arch/arm/mach-omap2/built-in.o: In function `omap_generic_map_io': .../arch/arm/mach-omap2/board-generic.c:51: undefined reference to `omap2_set_globals_242x' arch/arm/mach-omap2/built-in.o: In function `omap_h4_init': .../arch/arm/mach-omap2/board-h4.c:330: undefined reference to `omap2420_mux_init' arch/arm/mach-omap2/built-in.o: In function `omap_h4_map_io': .../arch/arm/mach-omap2/board-h4.c:373: undefined reference to `omap2_set_globals_242x' arch/arm/mach-omap2/built-in.o: In function `omap_apollon_init': .../arch/arm/mach-omap2/board-apollon.c:325: undefined reference to `omap2420_mux_init' arch/arm/mach-omap2/built-in.o: In function `omap_apollon_map_io': .../arch/arm/mach-omap2/board-apollon.c:353: undefined reference to `omap2_set_globals_242x' make: *** [.tmp_vmlinux1] Error 1 Fix this by making the boards depend on the Kconfig option for the specific SoC that they use. Also, while here, fix the mach-omap2/board-generic.c file to remove the dependency on OMAP2420. Charulatha Varadarajan caught a typo - thanks Charu. Signed-off-by: Paul Walmsley Cc: Tony Lindgren Cc: Charulatha Varadarajan commit 993284dfff3ba4643f08b592427d0ac758d30156 Author: Ben Hutchings Date: Fri Oct 8 10:36:10 2010 -0700 sfc: Don't try to set filters with search depths we know won't work The filter engine will time-out and ignore filters beyond 200-something hops. We also need to avoid infinite loops in efx_filter_search() when the table is full. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 4e7f79511e7332ae4056eda9156a0299511ea41e Author: Ben Hutchings Date: Fri Oct 8 10:33:39 2010 -0700 net: Update kernel-doc for netif_set_real_num_rx_queues() Synchronise the comment with the preceding implementation change. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 6f911492ed901dcafc9c5c7f507087bb94218ba7 Author: Tony Lindgren Date: Fri Oct 8 10:23:44 2010 -0700 omap: Update omap2plus_defconfig to use ttyO instead ttyS With the omap-serial the device has changed from ttyS to ttyO as the system may have both omap-serial and 8250 ports. Note that systems using omap-serial need to be updated to use ttyO[012] instead of ttyS[012] in the bootloader, CONFIG_CMDLINE, /etc/inittab, and the root file system with mknod. Also you may need to add ttyO[012] to /etc/securetty. Signed-off-by: Tony Lindgren commit 503923eeecb93ff69ee940549f314e0fe3a68429 Author: Kevin Hilman Date: Fri Oct 8 10:23:32 2010 -0700 OMAP2: PM: check UART status before trying to idle As is done on OMAP3, check omap_uart_can_sleep() as one of the pre-conditions for entering the idle loop. Without this check, entering idle introduces large latencies on active UARTs, and is especially noticable on serial console. Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren commit cc7a1d2a540a780066aa562c651a88dd28b6fc8a Author: Rajendra Nayak Date: Fri Oct 8 10:23:22 2010 -0700 omap: hwmod: Handle modules with 16bit registers Some modules which have 16bit registers can cause imprecise aborts if a __raw_readl/writel is used to read/write 32 bits. Add an additional flag to identify modules which have such hard requirement, and handle it in the hwmod framework. Signed-off-by: Rajendra Nayak Acked-by: Paul Walmsley Tested-by: Kevin Hilman Signed-off-by: Tony Lindgren commit c710e19222794f45f2376ba6f00dc675dc4279d6 Author: Nicolas Kaiser Date: Fri Oct 8 10:23:14 2010 -0700 arm/omap: remove duplicated include Remove duplicated include. Signed-off-by: Nicolas Kaiser Signed-off-by: Tony Lindgren commit 20252d46597e457b7506f28be05478be457b8c4f Author: Charulatha V Date: Fri Oct 8 10:23:06 2010 -0700 OMAP2PLUS: WDT: Fix: Disable WDT after reset during init Inorder to avoid any assumptions from bootloader, the watchdog timer module is reset during init. This enables the watchdog timer. Therefore, it is required to disable WDT after it is reset during init. Otherwise the system would reboot as per the default watchdog timer registers settings. Later, when the watchdog driver is loaded, the watchdog timer settings is adjusted as per the default timer_margin set in the driver and the driver would supports the normal operations supported by OMAP watchdog timer. Signed-off-by: Charulatha V Reported-by: Kevin Hilman Acked-by: Kevin Hilman Signed-off-by: Tony Lindgren commit 72f381ba0565b358dc10c67ff47728a2c9aa5457 Author: Enric Balletbo i Serra Date: Fri Oct 8 10:22:57 2010 -0700 omap3: Remove VMMC2 regulator on IGEP v2 VMMC2 regulator is configured but it's not used for the IGEP v2, so remove this regulator from board. Signed-off-by: Enric Balletbo i Serra Signed-off-by: Tony Lindgren commit 91d139cf3630eff73f161494ee0c596472c11fef Author: Enric Balletbo i Serra Date: Fri Oct 8 10:22:51 2010 -0700 omap3: Add i2c eeprom driver to read EDID on IGEP v2 Add i2c eeprom driver to access monitor EDID binary information from user space, something that is required by 'decode-edid' and 'parse-edid'. Signed-off-by: Enric Balletbo i Serra Signed-off-by: Tony Lindgren commit 5a9fcc9980ae741c4657029c7e92d914072f824a Author: Enric Balletbo i Serra Date: Fri Oct 8 10:22:43 2010 -0700 omap3: Fix handling some GPIO's for WLAN-BT combo on IGEP v2 Some GPIO's used by WLAN-BT combo on IGEP v2 depends on hardware revision. This patch handles these GPIO's. ---------------------------------------------------------- | Hw Rev. | WIFI_NPD | WIFI_NRESET | BT_NRESET | ---------------------------------------------------------- | B | gpio94 | gpio95 | - | | B/C (B-compatible) | gpio94 | gpio95 | gpio137 | | C | gpio138 | gpio139 | gpio137 | ---------------------------------------------------------- Signed-off-by: Enric Balletbo i Serra Signed-off-by: Tony Lindgren commit 3f8c48d95f8e4ed3ea241c3e8704b5ff6c423fa4 Author: Enric Balletbo i Serra Date: Fri Oct 8 10:22:35 2010 -0700 omap3: Introduce function to detect the IGEP v2 hardwarerevision There are currently two versions of IGEP v2 board, this patch introduces a function to detect the hardware revision of IGEP board. -------------------------- | Id. | Hw Rev. | GPIO 28 | -------------------------- | 0 | B/C | high | | 1 | C | low | -------------------------- Signed-off-by: Enric Balletbo i Serra Signed-off-by: Tony Lindgren commit bee153906424f3bf669afec397c810b76117e22b Author: Enric Balletbo i Serra Date: Fri Oct 8 10:22:28 2010 -0700 omap3: fix and improve the LED handling on IGEP v2 board The IGEP v2 board has four leds, this patch allows control all of these LEDs using the LED class if CONFIG_LEDS_GPIO is selected or using the General Purpose Input/Output (GPIO) interface if CONFIG_LEDS_GPIO is not selected. Signed-off-by: Enric Balletbo i Serra Signed-off-by: Tony Lindgren commit 61e118dd7755417c541a8ecf32a82c3971258cff Author: Enric Balletbo i Serra Date: Fri Oct 8 10:22:19 2010 -0700 omap3: Add external VBUS power switch and overcurrent detect onIGEP v2 board GPIO for various devices are missing from the board initialization. This patch adds support for the VBUS and over current gpios. Without this patch, input/outputs from these two sources are ignored. Signed-off-by: Enric Balletbo i Serra Signed-off-by: Tony Lindgren commit e844b1da87270d96aef3fc79763ecc2c6541a71b Author: Enric Balletbo i Serra Date: Fri Oct 8 10:22:11 2010 -0700 omap3: Add minimal OMAP3 IGEP module support The OMAP3 IGEP module is a low-power, high performance production-ready system-on-module (SOM) based on TI's OMAP3 family. More about this board at www.igep.es. Signed-off-by: Enric Balletbo i Serra [tony@atomide.com: updated for the mmc changes and to be selected by default] Signed-off-by: Tony Lindgren commit bc3caae8a191c712d8ae666d0b8d18807bfe2b14 Merge: 73c5ef1 69758ab Author: Tony Lindgren Date: Fri Oct 8 10:20:40 2010 -0700 Merge branch 'pm-hwmods' of ssh://master.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm into omap-for-linus commit 73c5ef126f40b0b872e5964ff65dbe792eeec493 Merge: 582c77d 243e76b 64be978 Author: Tony Lindgren Date: Fri Oct 8 10:19:53 2010 -0700 Merge branches 'devel-omap1' and 'devel-omap2plus' into omap-for-linus commit 582c77d783e0cb1e6c30a330e42582173bcadfd2 Merge: bead437 ebfa88c Author: Tony Lindgren Date: Fri Oct 8 10:19:36 2010 -0700 Merge branch 'pm-next-2' of ssh://master.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm into omap-for-linus commit bead4375731ad283cccbcbcb55bc7549c9746168 Author: Manjunath Kondaiah G Date: Fri Oct 8 10:01:13 2010 -0700 OMAP3: Keypad: Fix incorrect type initializer The keypad matrix variable declaration is not matching with structure variable keymap declared in keypad_matrix.h. Due to this, following sparse warnings are generated with omap3_defconfig. arch/arm/mach-omap2/board-devkit8000.c:223:14: warning: incorrect type in initializer (different signedness) arch/arm/mach-omap2/board-devkit8000.c:223:14: expected unsigned int const [usertype] *keymap arch/arm/mach-omap2/board-devkit8000.c:223:14: got int static [toplevel] * arch/arm/mach-omap2/board-ldp.c:107:14: warning: incorrect type in initializer (different signedness) arch/arm/mach-omap2/board-ldp.c:107:14: expected unsigned int const [usertype] *keymap arch/arm/mach-omap2/board-ldp.c:107:14: got int static [toplevel] * arch/arm/mach-omap2/board-omap3evm.c:472:14: warning: incorrect type in initializer (different signedness) arch/arm/mach-omap2/board-omap3evm.c:472:14: expected unsigned int const [usertype] *keymap arch/arm/mach-omap2/board-omap3evm.c:472:14: got int static [toplevel] * arch/arm/mach-omap2/board-3430sdp.c:114:14: warning: incorrect type in initializer (different signedness) arch/arm/mach-omap2/board-3430sdp.c:114:14: expected unsigned int const [usertype] *keymap arch/arm/mach-omap2/board-3430sdp.c:114:14: got int static [toplevel] * arch/arm/mach-omap2/board-rx51-peripherals.c:248:14: warning: incorrect type in initializer (different signedness) arch/arm/mach-omap2/board-rx51-peripherals.c:248:14: expected unsigned int const [usertype] *keymap arch/arm/mach-omap2/board-rx51-peripherals.c:248:14: got int static [toplevel] * arch/arm/mach-omap2/board-zoom-peripherals.c:88:14: warning: incorrect type in initializer (different signedness) arch/arm/mach-omap2/board-zoom-peripherals.c:88:14: expected unsigned int const [usertype] *keymap arch/arm/mach-omap2/board-zoom-peripherals.c:88:14: got int static [toplevel] * arch/arm/mach-omap2/board-cm-t35.c:568:14: warning: incorrect type in initializer (different signedness) arch/arm/mach-omap2/board-cm-t35.c:568:14: expected unsigned int const [usertype] *keymap arch/arm/mach-omap2/board-cm-t35.c:568:14: got int static [toplevel] * arch/arm/mach-omap2/board-omap3stalker.c:415:13: warning: incorrect type in initializer (different signedness) arch/arm/mach-omap2/board-omap3stalker.c:415:13: expected unsigned int const [usertype] *keymap arch/arm/mach-omap2/board-omap3stalker.c:415:13: got int static [toplevel] * This patch modifies the variable keymap declaration as per declaration in matrix_keymap structure. Signed-off-by: Manjunath Kondaiah G Cc: linux-input@vger.kernel.org Cc: Dmitry Torokhov Cc: linux-arm-kernel@lists.infradead.org Cc: Nishanth Menon Signed-off-by: Tony Lindgren commit b0a330dc5eff6b27cce3b7b5dbea9379d969f73e Author: Manjunath Kondaiah G Date: Fri Oct 8 10:00:19 2010 -0700 OMAP: plat-omap: Fix static function warnings This patch fixes sparse warnings due non declarations of static functions. arch/arm/plat-omap/sram.c:130:13: warning: symbol 'omap_detect_sram' was not declared. Should it be static? arch/arm/plat-omap/sram.c:216:13: warning: symbol 'omap_map_sram' was not declared. Should it be static? arch/arm/plat-omap/sram.c:450:12: warning: symbol 'omap_sram_init' was not declared. Should it be static? arch/arm/plat-omap/sram.c:348:12: warning: symbol 'omap242x_sram_init' was not declared. Should it be static? arch/arm/plat-omap/sram.c:369:12: warning: symbol 'omap243x_sram_init' was not declared. Should it be static? arch/arm/plat-omap/sram.c:425:12: warning: symbol 'omap34xx_sram_init' was not declared. Should it be static? arch/arm/plat-omap/sram.c:441:12: warning: symbol 'omap44xx_sram_init' was not declared. Should it be static arch/arm/plat-omap/mcbsp.c:36:6: warning: symbol 'omap_mcbsp_write' was not declared. Should it be static? arch/arm/plat-omap/mcbsp.c:50:5: warning: symbol 'omap_mcbsp_read' was not declared. Should it be static? arch/arm/plat-omap/mcbsp.c:65:6: warning: symbol 'omap_mcbsp_st_write' was not declared. Should it be static? arch/arm/plat-omap/mcbsp.c:70:5: warning: symbol 'omap_mcbsp_st_read' was not declared. Should it be static? arch/arm/plat-omap/mcbsp.c:1648:15: warning: symbol 'omap_st_add' was not declared. Should it be static? arch/arm/plat-omap/fb.c:414:15: warning: symbol 'omapfb_reserve_sram' was not declared. Should it be static? arch/arm/plat-omap/cpu-omap.c:43:5: warning: symbol 'omap_verify_speed' was not declared. Should it be static? arch/arm/plat-omap/cpu-omap.c:61:14: warning: symbol 'omap_getspeed' was not declared. Should it be static? Signed-off-by: Manjunath Kondaiah G Cc: linux-arm-kernel@lists.infradead.org Cc: Nishanth Menon Signed-off-by: Tony Lindgren commit 600ecd9874d56d310a597b1e0a3936f195c83022 Author: Manjunath Kondaiah G Date: Fri Oct 8 09:59:20 2010 -0700 OMAP: mach-omap2: Fix miscellaneous sparse warnings This patch fixes miscellaneous sparse warnings in mach-omap2. arch/arm/mach-omap2/board-am3517evm.c:141:17: warning: Initializer entry defined twice arch/arm/mach-omap2/board-am3517evm.c:142:18: also defined here arch/arm/mach-omap2/irq.c:50:35: warning: Using plain integer as NULL pointer Signed-off-by: Manjunath Kondaiah G Cc: linux-arm-kernel@lists.infradead.org Cc: Nishanth Menon Signed-off-by: Tony Lindgren commit 04aeae777945df0e3e37d968d211c821c7458cc5 Author: Manjunath Kondaiah G Date: Fri Oct 8 09:58:35 2010 -0700 OMAP2plus: Fix static function warnings This patch fixes sparse warnings due non declarations of static functions. arch/arm/mach-omap2/timer-gp.c:115:12: warning: symbol 'omap2_gp_clockevent_set_gptimer' was not declared. Should it be static? arch/arm/mach-omap2/powerdomain.c:993:5: warning: symbol 'pwrdm_set_lowpwrstchange' was not declared. Should it be static? arch/arm/mach-omap2/board-flash.c:141:8: warning: symbol 'board_nand_init' was not declared. Should it be static? arch/arm/mach-omap2/board-n8x0.c:416:6: warning: symbol 'n8x0_mmc_slot1_cover_handler' was not declared. Should it be static? arch/arm/mach-omap2/board-n8x0.c:544:13: warning: symbol 'n8x0_mmc_init' was not declared. Should it be static? arch/arm/mach-omap2/board-rx51-peripherals.c:902:13: warning: symbol 'rx51_peripherals_init' was not declared. Should it be static? arch/arm/mach-omap2/board-rx51-video.c:107:13: warning: symbol 'rx51_video_mem_init' was not declared. Should it be static? arch/arm/mach-omap2/board-zoom-debugboard.c:155:12: warning: symbol 'zoom_debugboard_init' was not declared. Should it be static? arch/arm/mach-omap2/board-zoom-peripherals.c:280:13: warning: symbol 'zoom_peripherals_init' was not declared. Should it be static? arch/arm/mach-omap2/board-igep0020.c:110:13: warning: symbol 'igep2_flash_init' was not declared. Should it be static? arch/arm/mach-omap2/board-am3517evm.c:109:6: warning: symbol 'am3517_evm_ethernet_init' was not declared. Should it be static? drivers/mtd/onenand/omap2.c:577:5: warning: symbol 'omap2_onenand_rephase' was not declared. Should it be static? Signed-off-by: Manjunath Kondaiah G Cc: linux-arm-kernel@lists.infradead.org Cc: Nishanth Menon Signed-off-by: Tony Lindgren commit 38815733972655ee3cbfc34e254c403c332693c3 Author: Manjunath Kondaiah G Date: Fri Oct 8 09:56:37 2010 -0700 OMAP: mach-omap2: Fix static declaration warnings This patch fixes sparse warnings due to non declaration of static structures and variables. Sparse warning logs fixed: arch/arm/mach-omap2/control.c:88:6: warning: symbol 'omap3_secure_ram_storage' was not declared. Should it be static? n arch/arm/mach-omap2/timer-gp.c:50:22: warning: symbol 'gptimer_wakeup' was not declared. Should it be static? arch/arm/mach-omap2/timer-gp.c:240:18: warning: symbol 'omap_timer' was not declared. Should it be static? arch/arm/mach-omap2/prcm.c:121:24: warning: symbol 'prcm_context' was not declared. Should it be static? arch/arm/mach-omap2/mux2420.c:510:29: warning: symbol 'omap2420_pop_ball' was not declared. Should it be static? arch/arm/mach-omap2/mux2430.c:589:29: warning: symbol 'omap2430_pop_ball' was not declared. Should it be static? arch/arm/mach-omap2/mux34xx.c:934:28: warning: symbol 'omap3_cus_subset' was not declared. Should it be static? arch/arm/mach-omap2/mux34xx.c:1080:29: warning: symbol 'omap3_cus_ball' was not declared. Should it be static? arch/arm/mach-omap2/mux34xx.c:1272:28: warning: symbol 'omap3_cbb_subset' was not declared. Should it be static? arch/arm/mach-omap2/mux34xx.c:1393:29: warning: symbol 'omap3_cbb_ball' was not declared. Should it be static? arch/arm/mach-omap2/mux34xx.c:1603:28: warning: symbol 'omap36xx_cbp_subset' was not declared. Should it be static? arch/arm/mach-omap2/mux34xx.c:1821:29: warning: symbol 'omap36xx_cbp_ball' was not declared. Should it be static? arch/arm/mach-omap2/pm-debug.c:165:15: warning: symbol 'pm_dbg_dir' was not declared. Should it be static? arch/arm/mach-omap2/board-omap3evm.c:587:30: warning: symbol 'ads7846_config' was not declared. Should it be static? arch/arm/mach-omap2/board-omap3evm.c:606:23: warning: symbol 'omap3evm_spi_board_info' was not declared. Should it be static? arch/arm/mach-omap2/board-rx51-sdram.c:46:25: warning: symbol 'rx51_sdrc_params' was not declared. Should it be static? arch/arm/mach-omap2/board-rx51-sdram.c:211:25: warning: symbol 'rx51_get_sdram_timings' was not declared. Should it be static? arch/arm/mach-omap2/board-omap3touchbook.c:64:15: warning: symbol 'touchbook_revision' was not declared. Should it be static? arch/arm/mach-omap2/board-am3517evm.c:350:24: warning: symbol 'am3517_evm_dss_device' was not declared. Should it be static? arch/arm/mach-omap2/board-omap3stalker.c:567:23: warning: symbol 'omap3stalker_spi_board_info' was not declared. Should it be static? Signed-off-by: Manjunath Kondaiah G Cc: linux-arm-kernel@lists.infradead.org Cc: Nishanth Menon Signed-off-by: Tony Lindgren commit 4d63bc1de704c6f413979261bf42781cf364eb14 Author: Manjunath Kondaiah G Date: Fri Oct 8 09:56:11 2010 -0700 OMAP: mach-omap2: Fix incorrect assignment warnings This patch fixes below sparse warnings for incorrect assignments. arch/arm/mach-omap2/control.c:195:16: warning: incorrect type in assignment (different address spaces) arch/arm/mach-omap2/control.c:195:16: expected unsigned int [usertype] *v_addr arch/arm/mach-omap2/control.c:195:16: got void [noderef] * arch/arm/mach-omap2/control.c:199:25: warning: incorrect type in argument 1 (different address spaces) arch/arm/mach-omap2/control.c:199:25: expected void const volatile [noderef] * arch/arm/mach-omap2/control.c:199:25: got unsigned int [usertype] * arch/arm/mach-omap2/control.c:320:28: warning: incorrect type in assignment (different address spaces) arch/arm/mach-omap2/control.c:320:28: expected void *[noderef] scratchpad_address arch/arm/mach-omap2/control.c:320:28: got void [noderef] * arch/arm/mach-omap2/control.c:321:9: warning: incorrect type in argument 1 (different address spaces) arch/arm/mach-omap2/control.c:321:9: expected void volatile [noderef] * arch/arm/mach-omap2/control.c:321:9: got void *[noderef] scratchpad_address arch/arm/mach-omap2/control.c:324:9: warning: incorrect type in argument 1 (different address spaces) arch/arm/mach-omap2/control.c:324:9: expected void volatile [noderef] * arch/arm/mach-omap2/control.c:324:9: got void * arch/arm/mach-omap2/control.c:327:9: warning: incorrect type in argument 1 (different address spaces) arch/arm/mach-omap2/control.c:327:9: expected void volatile [noderef] * arch/arm/mach-omap2/control.c:327:9: got void * arch/arm/mach-omap2/control.c:334:9: warning: incorrect type in argument 1 (different address spaces) arch/arm/mach-omap2/control.c:334:9: expected void volatile [noderef] * arch/arm/mach-omap2/control.c:334:9: got void * arch/arm/mach-omap2/control.c:321:9: warning: dereference of noderef expression arch/arm/mach-omap2/control.c:324:9: warning: dereference of noderef expression arch/arm/mach-omap2/control.c:327:9: warning: dereference of noderef expression arch/arm/mach-omap2/control.c:334:9: warning: dereference of noderef expression arch/arm/mach-omap2/pm34xx.c:323:28: warning: incorrect type in assignment (different address spaces) arch/arm/mach-omap2/pm34xx.c:323:28: expected unsigned int [usertype] *scratchpad_address arch/arm/mach-omap2/pm34xx.c:323:28: got void [noderef] * arch/arm/mach-omap2/pm34xx.c:326:26: warning: incorrect type in argument 1 (different address spaces) arch/arm/mach-omap2/pm34xx.c:326:26: expected void const volatile [noderef] * arch/arm/mach-omap2/pm34xx.c:326:26: got unsigned int [usertype] * arch/arm/mach-omap2/pm34xx.c:329:26: warning: incorrect type in argument 1 (different address spaces) arch/arm/mach-omap2/pm34xx.c:329:26: expected void const volatile [noderef] * arch/arm/mach-omap2/pm34xx.c:329:26: got unsigned int [usertype] * arch/arm/mach-omap2/pm34xx.c:334:29: warning: incorrect type in argument 1 (different address spaces) arch/arm/mach-omap2/pm34xx.c:334:29: expected void const volatile [noderef] * arch/arm/mach-omap2/pm34xx.c:334:29: got unsigned int [usertype] * Signed-off-by: Manjunath Kondaiah G Cc: linux-arm-kernel@lists.infradead.org Cc: Nishanth Menon Signed-off-by: Tony Lindgren commit 0dd12c21951e085357046b68c3a108273062d2aa Author: Jeff Layton Date: Fri Oct 8 12:20:12 2010 -0400 cifs: initialize tlink_tree_lock and tlink_tree Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 5b8544c38e6fde6968645afd46ff681492192b86 Author: Kumar Gala Date: Fri Oct 8 10:37:31 2010 -0500 powerpc/ppc64e: Fix link problem when building ppc64e_defconfig arch/powerpc/platforms/built-in.o:(.toc1+0x18): undefined reference to `__early_start' This is due to the 85xx/smp.c not handling the 64-bit side properly. We need to set the entry point for secondary cores on ppc64e to generic_secondary_smp_init instead of __early_start that we due on ppc32. Signed-off-by: Kumar Gala commit 370adc7cb052a29531b8177d3be770ae9e631bd2 Author: Dan Carpenter Date: Fri Oct 8 15:49:04 2010 +0200 Staging: bcm: silence off by one warning "status" is used as an index into the Adapter->PackInfo[] array, which has NO_OF_QUEUES elements. This code actually works OK. The SearchSfid() function always returns a valid index or it returns NO_OF_QUEUES + 1. But it looks sloppy and it makes the static checkers complain. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit 02339374cf3a28c30b5a137ab181eed358589dea Author: Dan Carpenter Date: Fri Oct 8 14:57:44 2010 +0200 Staging: bcm: remove unneeded NULL check The error handling here is wrong. If psIntfAdapter were NULL then we would have a NULL dereference in the debug output on the error path. But this function is only called from usbbcm_device_probe() when psIntfAdapter is non-NULL. Since the check isn't needed and I removed it instead of fixing it. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit ef5d2056456d63528daa762b32afa5c430635f33 Author: Dan Carpenter Date: Fri Oct 8 14:56:58 2010 +0200 Staging: bcm: return -EFAULT on copy_to_user() errors bcm/InterfaceDld.c had a couple places which returned the number of bytes remaining instead of -EFAULT. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit acedadfae589885e1753f8fc4eb0d797846861b9 Author: Dan Carpenter Date: Fri Oct 8 14:56:35 2010 +0200 Staging: bcm: dereferencing before checking I moved the check to see if "Adapter" was null in front of the dereference. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit 055a1eda5fe143fdb8137cfd6eee39c9b58fe72d Author: Dan Carpenter Date: Fri Oct 8 14:56:04 2010 +0200 Staging: bcm: mocro expansion bug The WIMAX_MAX_MTU macro is used in drivers/staging/bcm/CmHost.c like this: if (Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize < WIMAX_MAX_MTU * 8) The multiplication by eight has precedence over the addition so the macro needs parenthesis to work. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit 785698e38dcd01cd15dacbf0cf1309a04b1e3208 Author: Dan Carpenter Date: Fri Oct 8 14:54:33 2010 +0200 Staging: bcm: make major and minor signed We assume that major is signed in register_control_device_interface(). Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit bf58bd66f6212d838dda4384b8cd21337b47e363 Author: Dan Carpenter Date: Fri Oct 8 14:53:48 2010 +0200 Staging: bcm: return -EFAULT on copy_to_user() failures There were a number of places in the bcm_char_ioctl() which returned the number of bytes remaining to be copied instead of returning -EFAULT. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman commit a1823f2ec3ffa86b7b3676bfd432b6da25298ff6 Author: Tracey Dent Date: Fri Oct 8 06:14:44 2010 -0400 Staging: speakup: devsynth: file_operations should be const Fixed file_operation struct, so that it is const. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 1bd15cfd79841d9e2464a37fe059d492a3ee0753 Author: Tracey Dent Date: Fri Oct 8 06:14:45 2010 -0400 Staging: speakup: keyhelp: Coding style fix Put { on previous line, on line 34. Checkpatch.pl caught this. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 0c7023b2fb285f8c5108b95bb0c401b29712c8b1 Author: Tracey Dent Date: Fri Oct 8 06:14:43 2010 -0400 Staging: speakup: Makefile: Makefile clean up Replaced -objs with -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 8996ba139e3a09ef58e170ecc807a25a879ab6ec Author: Tracey Dent Date: Thu Oct 7 20:01:22 2010 -0400 Staging: batman-adv: Makefile: replace the use of -objs with -y Changed -objs to -y n Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 9a837af5fbaf8a1a6d7ff2e8f4ec056e0675f373 Author: Tracey Dent Date: Thu Oct 7 20:01:23 2010 -0400 Staging: bcm: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 23d18860db3c166d0ff855c3fb347495c79ae510 Author: Tracey Dent Date: Thu Oct 7 20:01:24 2010 -0400 Staging: comedi: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 1087020fb0b12cdebb8c577ec2d1b26e724a1a7c Author: Tracey Dent Date: Thu Oct 7 20:01:25 2010 -0400 Staging: crystalhd: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 88efaabced525ff2c372976b9408f810806d3a33 Author: Tracey Dent Date: Thu Oct 7 20:01:26 2010 -0400 Staging: cx25821: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 77037b49152f5b11f92a9c47d6c55a01f14f7f01 Author: Tracey Dent Date: Thu Oct 7 20:01:28 2010 -0400 Staging: easycap: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit a4f131f07ce662ca51d02a83e906f2d1f57713dd Author: Tracey Dent Date: Thu Oct 7 20:01:27 2010 -0400 Staging: cxt1e1: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit accca6c2f18b8a44ab92a79be2458fb547106e84 Author: Tracey Dent Date: Thu Oct 7 20:01:29 2010 -0400 Staging: go7007: Makefile: makefile cleanup Changed -objs to -y in Makefile. Also, Replace EXTRA_CFLAGS with ccflags-y Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit bdc1b7bde2174d19d5566acc3d51d041f9a9bbf5 Author: Tracey Dent Date: Thu Oct 7 20:01:31 2010 -0400 Staging: ft1000:ft1000-pcmia: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 735f48f57d922a7839506dd60e89858896d6c6f5 Author: Tracey Dent Date: Thu Oct 7 20:01:30 2010 -0400 Staging: et131x: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 23b57e4ae67c44087c726bbfa097832e29aed326 Author: Tracey Dent Date: Thu Oct 7 20:01:32 2010 -0400 Staging: ft1000: ft1000-usb: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit cf5901b3f1dbf7dd65f477a56eceea7dd3d8fe99 Author: Tracey Dent Date: Thu Oct 7 20:01:33 2010 -0400 Staging: hv: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 659bd8c1d578303652ad6f6bc0bac0f99809276f Author: Tracey Dent Date: Thu Oct 7 20:01:34 2010 -0400 Staging: intel_sst: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 1954cbf0bfb22176119e0460098cd59f2b8e645d Author: Tracey Dent Date: Thu Oct 7 20:01:36 2010 -0400 Staging: line6: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 0c26876ea38742f434aea602d51e1ec3a793da8f Author: Tracey Dent Date: Thu Oct 7 20:01:37 2010 -0400 Staging: octeon: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit b76d011db15914ef9694ff99be65ce8fa90e3d23 Author: Tracey Dent Date: Thu Oct 7 20:01:39 2010 -0400 Staging: rt2870: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit ad528602539a40b73906b12d672fa3e1322e56bd Author: Tracey Dent Date: Thu Oct 7 20:01:38 2010 -0400 Staging: rt2860: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 79ad8cbfb57b41526d491c08f870988c842cb387 Author: Tracey Dent Date: Thu Oct 7 20:01:40 2010 -0400 Staging: rtl8187se: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 4580cd7ec22873a70a16de694262661e2af0fef8 Author: Tracey Dent Date: Thu Oct 7 20:01:42 2010 -0400 Staging: rtl8712: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 32a65d4e3b8604417d8c073c96a842f5ebdca6a7 Author: Tracey Dent Date: Thu Oct 7 20:01:43 2010 -0400 Staging: sbe-2t3e3: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 50662062428aee9303e543a70e60a26ed9ee823b Author: Tracey Dent Date: Thu Oct 7 20:01:44 2010 -0400 Staging: smbfs: Makefile: Makefile clean up Changed -objs to -y in Makefile. Also Replace EXTRA_CFLAGS with ccflags-y. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit a7b1ef250fd9e58eef853eff8b5bbec7cb0343bd Author: Tracey Dent Date: Thu Oct 7 20:01:35 2010 -0400 Staging: keucr: Makefile: Makefile clean up Changed -objs to -y in Makefile. Also, Replace EXTRA_CFLAGS with ccflags-y. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 783098ea41e25b006c6b7b62fd71f287848cbc6b Author: Tracey Dent Date: Thu Oct 7 20:01:45 2010 -0400 Staging: solo6x10: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit ef3fdeea5dd5d1e4fd25fae901378a2d53958d7f Author: Tracey Dent Date: Thu Oct 7 20:01:51 2010 -0400 Staging: wlan-ng: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit aad6b18141db97d344c8c971f8ae9126e35c13b5 Author: Tracey Dent Date: Thu Oct 7 20:01:41 2010 -0400 Staging: rtl8192u: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 07790a1f529711988f5a29a10f9b49c2830b674e Author: Tracey Dent Date: Thu Oct 7 20:01:49 2010 -0400 Staging: usbip: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 597716d9e2b0a2a53c888fd91079aaef6b284e7e Author: Tracey Dent Date: Thu Oct 7 20:01:53 2010 -0400 Staging: zram: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 43dd1d83cd7dc46b5191c9a54f6f9f1673882933 Author: Tracey Dent Date: Thu Oct 7 20:01:52 2010 -0400 Staging: xgifb: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit ea195d1a7fb98581352883a58085f7b501fd5a31 Author: Tracey Dent Date: Thu Oct 7 20:01:48 2010 -0400 Staging: tm6000: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 6082a68acf2f34fb69f82427100430c153b2c158 Author: Tracey Dent Date: Thu Oct 7 20:01:50 2010 -0400 Staging: winbond: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 574c1a622260bf7b1ec191890775a11b6ffe0664 Author: Tracey Dent Date: Thu Oct 7 20:01:46 2010 -0400 Staging: tidspbridge: Makefile: replace the use of -objs with -y Changed -objs to -y in Makefile. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit d748241dde126f621739d74db179385cdb3ae366 Author: Tracey Dent Date: Thu Oct 7 20:01:21 2010 -0400 Staging: autofs: Makefile: replace the use of -objs with -y Changed Makefile -objs to -y lines. Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit e58537ccce733ff6dc334fa9a1b6235439c147b4 Author: Jonathan Cameron Date: Fri Oct 8 12:14:14 2010 +0100 staging: iio: update example application. The application is now considerably more generic and should cope with all devices in tree. The process function will need to be extended to handle other type values as needed. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 1755b0ae17b95a851f0a8940900ac1e7d5fa8edb Author: Jonathan Cameron Date: Fri Oct 8 12:14:13 2010 +0100 staging: iio: adc add numbers to naming of all adc channels as needed to associate events with them. Given event codes are associated by number not name, all adc channels including those with names need to have numbers. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 2f3cc667f788d97b6e79ef76b89f995598c036a3 Author: Jonathan Cameron Date: Fri Oct 8 12:14:12 2010 +0100 staging: iio: events update documentation to match new abi. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit f9f0d354cb2554c5acdf88f293e789dcde0ed944 Author: Jonathan Cameron Date: Fri Oct 8 12:14:11 2010 +0100 staging: iio: light remove empty light.h file We can put this back when there is something to put in it! Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 45dd3b340bdae09deddb0f0e9692da38d1eaf510 Author: Jonathan Cameron Date: Fri Oct 8 12:14:10 2010 +0100 staging: iio: tsl2563 event attribute name updates Patch also renames the two raw channels to add numbers so that we know to which channel the event code applies. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit d750e375c13f4aadb1fe506f1ed8c86eb8aeaae6 Author: Jonathan Cameron Date: Fri Oct 8 12:14:09 2010 +0100 staging: iio: accel remove deprecated and misleading event macros. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit fc5d0e42545a74ccfb50ac8c769eb79cc8e6d6db Author: Jonathan Cameron Date: Fri Oct 8 12:14:08 2010 +0100 staging: iio: sca3000 event attribute name updates Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit c33680c48351fff2b69d8faeb1e9e5e98e335323 Author: Jonathan Cameron Date: Fri Oct 8 12:14:07 2010 +0100 staging: iio: lis3l02dq event attribute renames Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 4be2de46fbc9eb6a7a7c3f1350321d64fa2556f8 Author: Jonathan Cameron Date: Fri Oct 8 12:14:06 2010 +0100 staging: iio: events move buffer codes so they do not clash with new scheme We could blugeon these more into the scheme I guess, but does it make sense to do so? Also remove all remain vestiges of old scheme. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit da1d8b68af7ccf0ed1eae587c57c5ef62a63a591 Author: Jonathan Cameron Date: Fri Oct 8 12:14:05 2010 +0100 staging: iio: tsl2563 move to new event numbering scheme and remove old definitions Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit deb02fc574909973786ec6e5ac4b5bced683a2e2 Author: Jonathan Cameron Date: Fri Oct 8 12:14:04 2010 +0100 staging: iio: accel remove old event codes Signed-off-by: Joanthan Cameron Signed-off-by: Greg Kroah-Hartman commit de9fe32afcef9f84925cfb3e93074843df1d185b Author: Jonathan Cameron Date: Fri Oct 8 12:14:03 2010 +0100 staging: iio: sca3000 move to new event code scheme and add combined orientations The combined orientations allow handling of typical motion and free fall detectors to be handled as threshold events just applied to a number of axes via boolean operations. So freefall is when x, y and z magnitudes are all below a threshold for a particular period. Motion detectors are typically whether x or y or z are above a particular value. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 18e69a9904b4f12d8afe34b9313c8942acc4d73c Author: Jonathan Cameron Date: Fri Oct 8 12:14:02 2010 +0100 staging: iio: lis3l02dq move to new event code scheme Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 820e882a873356aa8260c826d38b9a866ef30db4 Author: Jonathan Cameron Date: Fri Oct 8 12:14:01 2010 +0100 staging: iio: adc events update to new numbering system Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit f4704d77fd1cbbc331af1e1fafd4c4f7fac1a744 Author: Jonathan Cameron Date: Fri Oct 8 12:14:00 2010 +0100 staging: iio: events define macros for new event code system These are step one of moving to a systematic numbering for event codes. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit fe21221386e46b8e0f2cbd83559a29680c28473b Author: Thomas Gleixner Date: Fri Oct 8 15:33:01 2010 +0200 mfd: twl4030: Fix dummy irq chip usage The twl irqchip uses the dummy irq chip ack functions, which is NULL now. Switch it over to use irq_ack. Reported-and-tested-by: Grazvydas Ignotas Signed-off-by: Thomas Gleixner commit 674f3058c806ae2591b98f59194fa85b650aa667 Author: Ohad Ben-Cohen Date: Fri Oct 8 16:16:27 2010 +0300 wl1271: sdio: add suspend/resume support Add required suspend/resume support to prevent the SDIO core from removing our card completely during system suspend. Signed-off-by: Ohad Ben-Cohen Tested-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 00cbb3c5317d418c349c60876fe12fba7624f3e7 Author: Ohad Ben-Cohen Date: Fri Oct 8 16:16:16 2010 +0300 wl1271: sdio: enable runtime PM Enable runtime PM for the wl1271 SDIO device. We request power whenever the WLAN interface is brought up, and release it after the WLAN interface is taken down. As a result, power is released immediately after probe returns, since at that point power has not been explicitly requested yet (i.e. the WLAN interface is still down). Signed-off-by: Ohad Ben-Cohen Acked-by: Luciano Coelho Tested-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 2d7b8366ae4a9ec2183c30e432a4a9a495c82bcd Author: Yuanhan Liu Date: Fri Oct 8 10:21:06 2010 +0100 drm/i915: Update hotplug interrupts register definitions for Sandybridge On Sandybridge, the bit definition for hotplug on SDE has changed, so update the code to new definition. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30378 Cc: stable@kernel.org Signed-off-by: Yuanhan Liu Signed-off-by: Chris Wilson commit 1510a97182b4ddb5fe3c4e8d05240f7cd6fd13e7 Author: Yuanhan Liu Date: Fri Oct 8 10:18:01 2010 +0100 drm/i915/crt: Make sure the hotplug interrupt is enabled After disabling the hotplug interrupts for VGA detection on Ironlake, be sure to re-enable them again afterwards. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30378 Signed-off-by: Yuanhan Liu Cc: stable@kernel.org Signed-off-by: Chris Wilson commit 382b09362711d7d03272230a33767015a277926e Author: Jesse Barnes Date: Thu Oct 7 16:01:25 2010 -0700 drm/i915: diasable clock gating for the panel power sequencer Needed on Ibex Peak and Cougar Point or the panel won't always come on. Cc: stable@kernel.org Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 298b0b392c750137f148fda056a7d4c42019814c Author: Jesse Barnes Date: Thu Oct 7 16:01:24 2010 -0700 drm/i915/dp: make eDP PLL functions work as advertised Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 895692befab73fd399d854c7db41d6d7260af2da Author: Jesse Barnes Date: Thu Oct 7 16:01:23 2010 -0700 drm/i915/dp: don't bother with DP PLL for PCH attached eDP We don't use the CPU DP PLL with PCH attached eDP panels, so don't bother to enable it. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 869184a675662bddcdf76c5b95665272facff2b8 Author: Jesse Barnes Date: Thu Oct 7 16:01:22 2010 -0700 drm/i915/dp: use VBT provided eDP params if available We can skip most of the link training step if we use the VBT provided values. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 896673836b8c55b75e7d7d2741aaaadff0c6a038 Author: Jesse Barnes Date: Thu Oct 7 16:01:21 2010 -0700 drm/i915/dp: cache eDP DPCD data Cache the first 4 bytes of DPCD data in the eDP case. It's unlikely to change and can save us some trouble at link training time. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 8088699f029b2a27af9bc5431ef7542c84195760 Author: Jesse Barnes Date: Thu Oct 7 16:01:20 2010 -0700 drm/i915: don't program FDI RX/TX in mode_set We do this later (and more properly) when we enable FDI, so we don't need to do it here. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 17f6766c622e03a938f767b49399a68107aef537 Author: Jesse Barnes Date: Thu Oct 7 16:01:19 2010 -0700 drm/i915: fix ironlake CRTC enable/disable Wait for vblank after enabling a pipe, make the error messages more informative, and wait for the pipe to turn off when we disable it. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 83240120878805b537a2efeaabff92798140b7cf Author: Jesse Barnes Date: Thu Oct 7 16:01:18 2010 -0700 drm/i915: use DPLL_DVO_HIGH_SPEED for PCH eDP As with other PCH DP connections. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 1cb1b75e5e0120cc35c4a9420ce366b84e0cf951 Author: Jesse Barnes Date: Thu Oct 7 16:01:17 2010 -0700 drm/i915: use 120MHz refclk in PCH eDP case too CPU eDP needs a different reference clock than PCH eDP, which uses the standard PCH refclk of 120MHz. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 7f8232826842b27525857615262f50fe66c84dd7 Author: Jesse Barnes Date: Thu Oct 7 16:01:16 2010 -0700 drm/i915: fix PCH eDP SSC support Enable SSC on PCH eDP if possible. Signed-off-by: Jesse Barnes [ickle: added a posting read of PCH_DREF_CONTROL before the udelay] Signed-off-by: Chris Wilson commit 5b2adf897146edeac6a1e438fb67b5a53dbbdf34 Author: Jesse Barnes Date: Thu Oct 7 16:01:15 2010 -0700 drm/i915: add Ironlake clock gating workaround for FDI link training Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 9f0e7ff4b366d27570cbe0ffa137ed1018009114 Author: Jesse Barnes Date: Thu Oct 7 16:01:14 2010 -0700 drm/i915: fetch eDP configuration data from the VBT We need to use some of these values in eDP configurations, so be sure to fetch them and store them in the i915 private structure. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 723bfd707a97fee06eb3ba4d3e8b4714c29a1064 Author: Jesse Barnes Date: Thu Oct 7 16:01:13 2010 -0700 drm/i915: add _DSM support The _DSM method on the integrated graphics device can tell us which connectors are muxable, so add support for making the call and parsing out the connector info. Signed-off-by: Jesse Barnes [ickle: fix compiler warnings for using uninitialized 'result' and downgrade error message for non-switchable devices] Signed-off-by: Chris Wilson commit 865a4fae7793b80e2b8bca76e279d6dfecbeac17 Author: Russell King Date: Mon Oct 4 18:02:59 2010 +0100 ARM: add register documentation for __enable_mmu Add some additional documentation on register usage in __enable_mmu to help complete the overall picture. Signed-off-by: Russell King commit 00945010c063b95e813b966f44bf58ffa1955a38 Author: Russell King Date: Mon Oct 4 17:56:13 2010 +0100 ARM: hotplug cpu: move secondary_startup, __enable_mmu to cpuinit Move these two functions, both of which are required for secondary CPU booting, into the cpuinit section. Ensure bad processors call __error_p for better diagnostics, rather than just __error. Signed-off-by: Russell King commit 786f1b73f7d5cad5c88dc75a96d53a74160aa7d7 Author: Russell King Date: Mon Oct 4 17:51:54 2010 +0100 ARM: hotplug cpu: ensure that __enable_mmu is identity mapped __enable_mmu is required to be executed in an identity mapped region to ensure that variances in CPUs do not cause a crash. We currently achieve this by assuming that it will be co-located with __create_page_tables. With hotplug CPU support, this assumption becomes invalid. Implement a better solution which ensures that it will be appropriately mapped no matter where it is placed. Signed-off-by: Russell King commit 80924ac595f3ca32ec0a80cc1217c7019d3519ff Author: Russell King Date: Mon Oct 4 17:45:25 2010 +0100 ARM: cleanup lookup_machine_type data and ensure these are placed in __HEAD Signed-off-by: Russell King commit c083c6609b290a650894f846270a9233401adc22 Author: Russell King Date: Mon Oct 4 17:39:20 2010 +0100 ARM: hotplug cpu: move __error and __error_p to cpuinit section __error and __error_p may be used by secondary CPUs, so these need to be in the cpuinit section. Signed-off-by: Russell King commit 17bb5e2c1706c7296eec96e97be0d760e59f282c Author: Russell King Date: Mon Oct 4 16:29:35 2010 +0100 ARM: move __mmap_switched, C-API functions to init section Move these functions, which are only ever used during boot CPU initialization, to the init section. Signed-off-by: Russell King commit a4ae41341fd39af6e25ec9861a6a4dc0c5c58b16 Author: Russell King Date: Mon Oct 4 16:22:34 2010 +0100 ARM: cleanup boot cpu calling __mmap_switched This allows us to relocate __mmap_switched and associated data away from the head section. Signed-off-by: Russell King commit 5085f3ff458521045f7e43da62b8c30ea7df2e82 Author: Russell King Date: Fri Oct 1 15:37:05 2010 +0100 ARM: hotplug cpu: Keep processor information, startup code & __lookup_processor_type When hotplug CPU is enabled, we need to keep the list of supported CPUs, their setup functions, and __lookup_processor_type in place so that we can find and initialize secondary CPUs. Move these into the __CPUINIT section. Signed-off-by: Russell King commit 37b05b63754e995b8cb76f4fbe7ed7219b3ca896 Author: Russell King Date: Fri Oct 1 15:38:24 2010 +0100 ARM: hotplug cpu: setup 1:1 map for entire kernel image for secondary CPUs Make the entire kernel image available for secondary CPUs rather than just the first MB of memory. This allows the startup code to appear in the cpuinit sections. Signed-off-by: Russell King commit f131a0800e286a13839784e554383c0ddfa78bce Author: Russell King Date: Fri Oct 1 15:42:02 2010 +0100 ARM: no need for nommu to jump through the hoops that mmu does nommu can jump directly to __mmap_switched without the absolute address branching which the mmuful kernel does. Acked-by: Greg Ungerer Signed-off-by: Russell King commit 4fa046655b80e9bb361a95da5c86ce778f5018b9 Merge: 552dc34 846afbd1 Author: Russell King Date: Fri Oct 8 10:06:58 2010 +0100 Merge branch 'for-russell' of git://codeaurora.org/quic/kernel/dwalker/linux-msm into devel-stable commit e4eab08d6050ad04d960738f589724204fd1064c Author: Nicolas Pitre Date: Fri Aug 20 21:14:46 2010 +0100 ARM: 6342/1: fix ASLR of PIE executables Since commits 990cb8acf2 and cc92c28b2d, it is possible to have full address space layout randomization (ASLR) on ARM. Except that one small change was missing for ASLR of PIE executables. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King commit 01723a9566f9e9ce4c75e5c4c9f6dc20600871a7 Author: Linus Walleij Date: Tue Sep 7 22:43:19 2010 +0100 ARM: 6368/1: move the PrimeCell IDs to use macros This make four macros for the PrimeCell ID register available to drivers that use them witout using the PrimeCell/AMBA bus abstraction and struct amba_device. It also moves the magic PrimeCell CID "B105F00D" to the bus.h header file. Signed-off-by: Linus Walleij Signed-off-by: Russell King commit 2da6d64a638eb982bebf34e2999f0b67cfb90f33 Author: Linus Walleij Date: Sat Sep 11 12:47:25 2010 +0100 ARM: 6369/1: Update RealView SMP defconfig This patches the condensed RealView SMP defconfig activating the same 2.6.36 features mentioned in the vanilla RealView defconfig patch submitted earlier. Signed-off-by: Linus Walleij Signed-off-by: Russell King commit 6a7d520fc141ad8f72efab3a5a2a73b3655fee24 Author: Linus Walleij Date: Mon Sep 6 09:16:04 2010 +0100 ARM: 6365/1: Update RealView defconfig This patches the condensed RealView defconfig activating some stuff that has been missing from this config for some time and some stuff that was merged in the 2.6.36 merge window: - The new character LCD driver is enabled - The Versatile I2C is enabled - The PL022 SPI driver is enabled - gpiolib is enabled (and makes MMC detection work properly) - The new LEDs code is enabled with a heartbeat trigger - The RTC class is enabled, and the PL031 RTC (onchip) and the offchip DS1307 on I2C is enabled Signed-off-by: Linus Walleij Signed-off-by: Russell King commit 74b0ec0708e7c8c530079b737f32c55597d062cc Author: Russell King Date: Fri Oct 1 14:26:56 2010 +0100 ARM: vmlinux.lds: Move unwind tables into _stext.._etext Signed-off-by: Russell King commit 842eab40b6920819fff5caeefdb709f07d3f8e23 Author: Russell King Date: Fri Oct 1 14:12:22 2010 +0100 ARM: vmlinux.lds: Refer to start of .data using _sdata rather than _data Use _sdata as the start of the data section, rather than _data. Signed-off-by: Russell King commit c7b0aff44a0740eedd31b759fd08d9e25672fa76 Author: Kevin Hilman Date: Fri Oct 1 22:13:47 2010 +0100 ARM: 6428/1: add cpu_idle_wait() to support CPUidle on SMP systems. In order for CPUidle to work on SMP systems, an implementation of cpu_idle_wait() is needed. This patch duplicates the x86 implementation of cpu_idle_wait() for ARM. Tested-by: Colin Cross Signed-off-by: Kevin Hilman Signed-off-by: Russell King commit 7511db9d25080d53e5427bf4b8849278c07019bc Author: Tony Lindgren Date: Tue Oct 5 16:40:13 2010 +0100 ARM: 6429/1: Check for is_smp for tlb_ops and cache_ops broadcast Broadcast should not be needed when running SMP kernel on UP systems. Also, this fixes an undefined instruction for SMP_ON_UP on earlier ARM cores without the extended CPUID_EXT_MMFR3 register. Signed-off-by: Tony Lindgren Signed-off-by: Russell King commit 5fb31a96e1e0078f1e82736ccd72a61ecabe6a4f Author: Linus Walleij Date: Wed Oct 6 11:07:28 2010 +0100 ARM: 6431/1: fix isb regression on CPU < v7 The kernel does not compile for my ARM926EJ-S system U300 due to the isb instruction inserted in generic assember statement from commit 8925ec4c530094b878e7e28a1fd78e7122afd973, "ARM: 6385/1: setup: detect aliasing I-cache when D-cache is non-aliasing" hey the isb is only available when assembling for v7 so let's use the generic isb() macro from setup.h instead. Acked-by: Will Deacon Signed-off-by: Linus Walleij Signed-off-by: Russell King commit 552dc340bce3b28f4af33c9134adafa5efacf1c9 Merge: a9fda02 ee621dd Author: Russell King Date: Fri Oct 8 09:58:55 2010 +0100 Merge branch 'for_rmk' of git://github.com/at91linux/linux-2.6-at91 into devel-stable commit 7cd2541cf2395962daf98ec32a141aba3398a9b2 Merge: c62f981 cb655d0 Author: Ingo Molnar Date: Fri Oct 8 10:46:27 2010 +0200 Merge commit 'v2.6.36-rc7' into perf/core Conflicts: arch/x86/kernel/module.c Merge reason: Resolve the conflict, pick up fixes. Signed-off-by: Ingo Molnar commit 01cb9ea633ddf3e8770dfe7851e88610087098bc Author: Jesse Barnes Date: Thu Oct 7 16:01:12 2010 -0700 drm/i915/dp: eDP power sequencing fixes Enable the panel before adjusting eDP link params, make sure the panel is idle after powering it on before proceeding with other activity, delay backlight enable to avoid visible flicker. Also avoid using VDD per hw team recommendation; it can conflict with the builtin panel power sequencing logic and lead to panel power sequencing failures. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 5c5313c8db9bfb549e080fc4cb0a4c3c2aa7a73d Author: Jesse Barnes Date: Thu Oct 7 16:01:11 2010 -0700 drm/i915: fix CPU vs PCH eDP confusion FDI training needs to done and idle for PCH eDP and before we turn the pipes on, and various eDP checks need to account for PCH attached eDP. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 1d85036278f1b3eb3b7c5db805e5c4c847d1415d Author: Jesse Barnes Date: Thu Oct 7 16:01:10 2010 -0700 drm/i915: remove broken intel_pch_has_edp function Since we set the output type of PCH attached eDP panels to INTEL_OUTPUT_eDP this function would never return true when it should. It's been replaced by working functions. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 814948adec172dbc41252b1815e4e83aedfe91b9 Author: Jesse Barnes Date: Thu Oct 7 16:01:09 2010 -0700 drm/i915: add eDP checking functions for the display code The display code needs to distinguish between CPU and PCH attached eDP panels, so add some helpers to handle that. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit a754aea25e804d0635d1871558bee5024605ff92 Author: Marek Vasut Date: Fri Sep 3 22:35:46 2010 +0200 ARM: pxa: fix pxa3xx-u2d crash when ULPI not used In case the pxa3xx-u2d driver isn't used, probing of ohci-pxa27x will cause an ugly kernel crash (NULL pointer dereference in pxa3xx_u2d_start_hc(), because struct u2d is NULL and clk_enable() call will crash the kernel, trying to access it). Signed-off-by: Marek Vasut Signed-off-by: Eric Miao commit 884646a5721e547d302390d8a483e9b75a31b017 Author: Mark F. Brown Date: Wed Aug 25 23:51:55 2010 -0400 ARM: pxa168/aspenite: added initial support for TPO TD043MTEA1 LCD Signed-off-by: Mark F. Brown Cc: Haojian Zhuang Cc: Marek Vasut Signed-off-by: Eric Miao commit 58cf68b88ce3fc48e345e756c07770e1d6e4cbe9 Author: Mark F. Brown Date: Wed Aug 25 23:51:54 2010 -0400 ARM: pxa168: added framebuffer support code Signed-off-by: Mark F. Brown Signed-off-by: Eric Miao commit 6ac6b817f3f4c23c5febd960d8deb343e13af5f3 Author: Haojian Zhuang Date: Fri Aug 20 15:23:59 2010 +0800 ARM: pxa: encode IRQ number into .nr_irqs Signed-off-by: Haojian Zhuang Acked-by: Antonio Ospite Signed-off-by: Eric Miao commit 1b43d8eda71bc953c9005afd63952e0666169553 Author: Igor Grinberg Date: Tue Jul 27 15:07:00 2010 +0300 ARM: pxa/cm-x300: enable USB host port2 Signed-off-by: Igor Grinberg Signed-off-by: Mike Rapoport Signed-off-by: Eric Miao commit 6dc3ae845c56157098f8af2d793aaefac2b31840 Author: Igor Grinberg Date: Tue Jul 27 15:06:59 2010 +0300 ARM: ohci-pxa27x: enable OHCI over U2DC for pxa3xx U2D Controller of pxa3xx is able to work in host mode. Make pxa specific ohci implementation aware of it. Signed-off-by: Igor Grinberg Signed-off-by: Mike Rapoport Signed-off-by: Eric Miao commit 69f22be7b10684ade3808de22db87c536ed135f3 Author: Igor Grinberg Date: Tue Jul 27 15:06:58 2010 +0300 ARM: pxa: add U2D controller and ULPI driver for pxa3xx USB2.0 Device Controller (U2DC) which is found in Marvell PXA3xx. U2DC supports both High and Full speed modes. PXA320 and PXA300 U2DC supports only UTMI interface. PXA310 U2DC supports only ULPI interface and has the OTG capability. U2D Controller ULPI driver introduced in this patch supports only the PXA310 USB Host via the ULPI. Signed-off-by: Igor Grinberg Signed-off-by: Mike Rapoport Signed-off-by: Eric Miao commit 51190667b3c6927356e594cdf6955980ff47bb16 Author: Jesse Barnes Date: Thu Oct 7 16:01:08 2010 -0700 drm/i915/dp: correct eDP lane count and bpp With the old check we'd never set lane_count or bpp to different values on PCH attached eDP panels. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 4d9264615b98fe8015eca7d84a9862b1489c69d4 Author: Jesse Barnes Date: Thu Oct 7 16:01:07 2010 -0700 drm/i915/dp: remove redundant is_pch_edp checks If is_edp is true, is_pch_edp will always be true. So limit the calls to the latter function to places where the distinction actually matters. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit cfcb0fc9c2f2decf065e9a6a1c622541e8b4090b Author: Jesse Barnes Date: Thu Oct 7 16:01:06 2010 -0700 drm/i915/dp: convert eDP checks to functions and document Most of the PCH eDP checks are redundant, so document the functions in preparation for removing most of the calls. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 286e5b97eb22baab9d9a41ca76c6b933a484252c Author: Paul Fox Date: Fri Oct 1 18:17:19 2010 +0100 x86, olpc: Don't retry EC commands forever Avoids a potential infinite loop. It was observed once, during an EC hacking/debugging session - not in regular operation. Signed-off-by: Daniel Drake Cc: dilinger@queued.net Cc: Signed-off-by: Ingo Molnar commit 4d033556f1bfaa7604b951bfadd17aaf1b74e4c5 Author: Feng Tang Date: Mon Sep 13 15:08:56 2010 +0800 x86, earlyprintk: Add hsu early console for Intel Medfield platform Intel Medfield platform has a high speed UART device, which could act as a early console. To enable early printk of HSU console, simply add "earlyprintk=hsu" in kernel command line. Currently we put the code in the early_printk_mrst.c as it is also for Intel MID platforms like the mrst early console Signed-off-by: Feng Tang Acked-by: Alan Cox Cc: greg@kroah.com LKML-Reference: <1284361736-23011-5-git-send-email-feng.tang@intel.com> Signed-off-by: Ingo Molnar commit c20b5c3318fe45e4f33f01a91ccead645dfdf619 Author: Feng Tang Date: Mon Sep 13 15:08:55 2010 +0800 x86, earlyprintk: Add earlyprintk for Intel Moorestown platform Intel Moorestown platform has a spi-uart device(Maxim3110), which connects to a Designware spi core controller. This patch will add early console function based on it. As it will be used long before Linux spi subsystem get initialised, we simply directly manipulate the spi controller's register to acheive the early console func. This is safe as it will be disabled when devices subsytem get initialised. To use it, user need enable CONFIG_X86_MRST_EARLY_PRINTK in kenrel config and add "earlyprintk=mrst" in kernel command line. Signed-off-by: Feng Tang Acked-by: Alan Cox Cc: greg@kroah.com LKML-Reference: <1284361736-23011-4-git-send-email-feng.tang@intel.com> Signed-off-by: Ingo Molnar commit 5a47c7dae861c3ca3edf178546641909851bf715 Author: Feng Tang Date: Mon Sep 13 15:08:54 2010 +0800 x86: Add two helper macros for fixed address mapping Sometimes fixmap will be used to map an physical address which is not PAGE align, so to use it we need first map it and then add the address offset to the mapped fixed address. These 2 new helpers are suggested by Ingo Molnar to make the process simpler. For a physicall address like "phys", a directly usable virtual address can be get by virt = (void *)set_fixmap_offset(fixed_idx, phys); or virt = (void *)set_fixmap_offset_nocache(fixed_idx, phys); (depends on whether the physical address is cachable or not). Signed-off-by: Feng Tang Cc: alan@linux.intel.com Cc: greg@kroah.com Cc: x86@kernel.org LKML-Reference: <1284361736-23011-3-git-send-email-feng.tang@intel.com> Signed-off-by: Ingo Molnar commit a08c80ebb621a6dc277c91e029acb725f2f20254 Author: Andi Kleen Date: Mon Sep 27 23:39:30 2010 +0200 HWPOISON: Remove retry loop for try_to_unmap We don't reply in other temporary failure cases and there were no reports of replies happening. I think the original reason it was added was also just an early bug, not an observation of the race. So remove the loop for now, but keep a warning message. Signed-off-by: Andi Kleen commit 9033ae16407f46ae06f559f9374281f6e9d89efc Author: Andi Kleen Date: Mon Sep 27 23:36:05 2010 +0200 HWPOISON: Turn addr_valid from bitfield into char The addr_valid flag is the only flag in "to_kill" and it's slightly more efficient to have it as char instead of a bitfield. Signed-off-by: Andi Kleen commit 898e70d1e526d7814bd2f64c907706b83ffca9af Author: Andi Kleen Date: Mon Sep 27 23:33:29 2010 +0200 HWPOISON: Disable DEBUG by default Now that only a few obscure messages are left as pr_debug disable outputting of pr_debug in memory-failure.c by default. Signed-off-by: Andi Kleen commit fb46e73520940bfc426152cfe5e4a9f1ae3f00b6 Author: Andi Kleen Date: Mon Sep 27 23:31:30 2010 +0200 HWPOISON: Convert pr_debugs to pr_info Convert a lot of pr_debugs in memory-failure.c that are generally useful to pr_info. It's reasonable to print at least one message why offlining succeeded or failed by default. Signed-off-by: Andi Kleen commit 1c80b990a3411733890eff10817e388d5e25e2dd Author: Andi Kleen Date: Mon Sep 27 23:09:51 2010 +0200 HWPOISON: Improve comments in memory-failure.c Clean up and improve the overview comment in memory-failure.c Tidy some grammar issues in other comments. Signed-off-by: Andi Kleen commit f672b49b07a4a152fc4251f2aec6b4d05164c4cd Author: Andi Kleen Date: Mon Sep 27 22:05:55 2010 +0200 x86: HWPOISON: Report correct address granuality for huge hwpoison faults An earlier patch fixed the hwpoison fault handling to encode the huge page size in the fault code of the page fault handler. This is needed to report this information in SIGBUS to user space. This is a straight forward patch to pass this information through to the signal handling in the x86 specific fault.c Cc: x86@kernel.org Cc: Naoya Horiguchi Cc: fengguang.wu@intel.com Signed-off-by: Andi Kleen commit aa50d3a7aa8147b9e14dc9d5972a5d2359db4ef8 Author: Andi Kleen Date: Wed Oct 6 21:45:00 2010 +0200 Encode huge page size for VM_FAULT_HWPOISON errors This fixes a problem introduced with the hugetlb hwpoison handling The user space SIGBUS signalling wants to know the size of the hugepage that caused a HWPOISON fault. Unfortunately the architecture page fault handlers do not have easy access to the struct page. Pass the information out in the fault error code instead. I added a separate VM_FAULT_HWPOISON_LARGE bit for this case and encode the hpage index in some free upper bits of the fault code. The small page hwpoison keeps stays with the VM_FAULT_HWPOISON name to minimize changes. Also add code to hugetlb.h to convert that index into a page shift. Will be used in a further patch. Cc: Naoya Horiguchi Cc: fengguang.wu@intel.com Signed-off-by: Andi Kleen commit 6f39ce056ab2ab2d29b2fae4aed61ed0b485972f Author: Naoya Horiguchi Date: Thu Sep 30 11:54:51 2010 +0900 Fix build error with !CONFIG_MIGRATION migrate_huge_page_move_mapping() is declared as "extern int ..." in include/linux/migrate.h for !CONFIG_MIGRATION, which causes the build error like below: mm/mprotect.o: In function `migrate_huge_page_move_mapping': mprotect.c:(.text+0x0): multiple definition of `migrate_huge_page_move_mapping' mm/shmem.o:shmem.c:(.text+0x0): first defined here mm/rmap.o: In function `migrate_huge_page_move_mapping': rmap.c:(.text+0x0): multiple definition of `migrate_huge_page_move_mapping' mm/shmem.o:shmem.c:(.text+0x0): first defined here Reported-by: Stephen Rothwell Signed-off-by: Naoya Horiguchi Signed-off-by: Andi Kleen commit d5bd910696a27e505078c19ba6b4143537570681 Author: Andi Kleen Date: Mon Sep 27 09:00:12 2010 +0200 hugepage: move is_hugepage_on_freelist inside ifdef to avoid warning Fixes warning reported by Stephen Rothwell mm/hugetlb.c:2950: warning: 'is_hugepage_on_freelist' defined but not used for the !CONFIG_MEMORY_FAILURE case. Signed-off-by: Andi Kleen commit 4e1c19750a8991c66e998a1915f2ad5c391bbd04 Author: Andi Kleen Date: Wed Sep 22 12:43:56 2010 +0200 Clean up __page_set_anon_rmap Linus asked for a cleanup of __page_set_anon_rmap to make it look more like the cleaner huge pages version. Factor out the duplicated PageAnon check into a single check at the beginning of the function. Remove obsolete comments and rewrite them into standard English. No functional changes. Signed-off-by: Andi Kleen commit 6a90181c7b0558b86179c1f5bcf3ab11f9d1bd30 Author: Naoya Horiguchi Date: Wed Sep 8 10:19:40 2010 +0900 HWPOISON, hugetlb: fix unpoison for hugepage Currently unpoisoning hugepages doesn't work correctly because clearing PG_HWPoison is done outside if (TestClearPageHWPoison). This patch fixes it. Signed-off-by: Naoya Horiguchi Signed-off-by: Jun'ichi Nomura Acked-by: Mel Gorman Signed-off-by: Andi Kleen commit d950b95882f3dc47e86f1496cd3f7fef540d6d6b Author: Naoya Horiguchi Date: Wed Sep 8 10:19:39 2010 +0900 HWPOISON, hugetlb: soft offlining for hugepage This patch extends soft offlining framework to support hugepage. When memory corrected errors occur repeatedly on a hugepage, we can choose to stop using it by migrating data onto another hugepage and disabling the original (maybe half-broken) one. ChangeLog since v4: - branch soft_offline_page() for hugepage ChangeLog since v3: - remove comment about "ToDo: hugepage soft-offline" ChangeLog since v2: - move refcount handling into isolate_lru_page() ChangeLog since v1: - add double check in isolating hwpoisoned hugepage - define free/non-free checker for hugepage - postpone calling put_page() for hugepage in soft_offline_page() Signed-off-by: Naoya Horiguchi Signed-off-by: Jun'ichi Nomura Acked-by: Mel Gorman Signed-off-by: Andi Kleen commit 8c6c2ecb44667f7204e9d2b89c4c1f42edc5a196 Author: Naoya Horiguchi Date: Wed Sep 8 10:19:38 2010 +0900 HWPOSION, hugetlb: recover from free hugepage error when !MF_COUNT_INCREASED Currently error recovery for free hugepage works only for MF_COUNT_INCREASED. This patch enables !MF_COUNT_INCREASED case. Free hugepages can be handled directly by alloc_huge_page() and dequeue_hwpoisoned_huge_page(), and both of them are protected by hugetlb_lock, so there is no race between them. Note that this patch defines the refcount of HWPoisoned hugepage dequeued from freelist is 1, deviated from present 0, thereby we can avoid race between unpoison and memory failure on free hugepage. This is reasonable because unlikely to free buddy pages, free hugepage is governed by hugetlbfs even after error handling finishes. And it also makes unpoison code added in the later patch cleaner. Signed-off-by: Naoya Horiguchi Signed-off-by: Jun'ichi Nomura Acked-by: Mel Gorman Signed-off-by: Andi Kleen commit a9869b837c098732bad84939015c0eb391b23e41 Author: Naoya Horiguchi Date: Wed Sep 8 10:19:37 2010 +0900 hugetlb: move refcounting in hugepage allocation inside hugetlb_lock Currently alloc_huge_page() raises page refcount outside hugetlb_lock. but it causes race when dequeue_hwpoison_huge_page() runs concurrently with alloc_huge_page(). To avoid it, this patch moves set_page_refcounted() in hugetlb_lock. Signed-off-by: Naoya Horiguchi Signed-off-by: Wu Fengguang Acked-by: Mel Gorman Reviewed-by: Christoph Lameter Signed-off-by: Andi Kleen commit 6de2b1aab94355482bd2accdc115666509667458 Author: Naoya Horiguchi Date: Wed Sep 8 10:19:36 2010 +0900 HWPOISON, hugetlb: add free check to dequeue_hwpoison_huge_page() This check is necessary to avoid race between dequeue and allocation, which can cause a free hugepage to be dequeued twice and get kernel unstable. Signed-off-by: Naoya Horiguchi Signed-off-by: Wu Fengguang Acked-by: Mel Gorman Reviewed-by: Christoph Lameter Signed-off-by: Andi Kleen commit 290408d4a25002f099efeee7b6a5778d431154d6 Author: Naoya Horiguchi Date: Wed Sep 8 10:19:35 2010 +0900 hugetlb: hugepage migration core This patch extends page migration code to support hugepage migration. One of the potential users of this feature is soft offlining which is triggered by memory corrected errors (added by the next patch.) Todo: - there are other users of page migration such as memory policy, memory hotplug and memocy compaction. They are not ready for hugepage support for now. ChangeLog since v4: - define migrate_huge_pages() - remove changes on isolation/putback_lru_page() ChangeLog since v2: - refactor isolate/putback_lru_page() to handle hugepage - add comment about race on unmap_and_move_huge_page() ChangeLog since v1: - divide migration code path for hugepage - define routine checking migration swap entry for hugetlb - replace "goto" with "if/else" in remove_migration_pte() Signed-off-by: Naoya Horiguchi Signed-off-by: Jun'ichi Nomura Acked-by: Mel Gorman Signed-off-by: Andi Kleen commit 0ebabb416f585ace711769057422af4bbc9d1110 Author: Naoya Horiguchi Date: Wed Sep 8 10:19:34 2010 +0900 hugetlb: redefine hugepage copy functions This patch modifies hugepage copy functions to have only destination and source hugepages as arguments for later use. The old ones are renamed from copy_{gigantic,huge}_page() to copy_user_{gigantic,huge}_page(). This naming convention is consistent with that between copy_highpage() and copy_user_highpage(). ChangeLog since v4: - add blank line between local declaration and code - remove unnecessary might_sleep() ChangeLog since v2: - change copy_huge_page() from macro to inline dummy function to avoid compile warning when !CONFIG_HUGETLB_PAGE. Signed-off-by: Naoya Horiguchi Acked-by: Mel Gorman Reviewed-by: Christoph Lameter Signed-off-by: Andi Kleen commit bf50bab2b34483316162443587b8467952e07730 Author: Naoya Horiguchi Date: Wed Sep 8 10:19:33 2010 +0900 hugetlb: add allocate function for hugepage migration We can't use existing hugepage allocation functions to allocate hugepage for page migration, because page migration can happen asynchronously with the running processes and page migration users should call the allocation function with physical addresses (not virtual addresses) as arguments. ChangeLog since v3: - unify alloc_buddy_huge_page() and alloc_buddy_huge_page_node() ChangeLog since v2: - remove unnecessary get/put_mems_allowed() (thanks to David Rientjes) ChangeLog since v1: - add comment on top of alloc_huge_page_no_vma() Signed-off-by: Naoya Horiguchi Acked-by: Mel Gorman Signed-off-by: Jun'ichi Nomura Reviewed-by: Christoph Lameter Signed-off-by: Andi Kleen commit 998b4382c1d75a6fd3b0e334dae3ab33bd074d99 Author: Naoya Horiguchi Date: Wed Sep 8 10:19:32 2010 +0900 hugetlb: fix metadata corruption in hugetlb_fault() Since the PageHWPoison() check is for avoiding hwpoisoned page remained in pagecache mapping to the process, it should be done in "found in pagecache" branch, not in the common path. Otherwise, metadata corruption occurs if memory failure happens between alloc_huge_page() and lock_page() because page fault fails with metadata changes remained (such as refcount, mapcount, etc.) This patch moves the check to "found in pagecache" branch and fix the problem. ChangeLog since v2: - remove retry check in "new allocation" path. - make description more detailed - change patch name from "HWPOISON, hugetlb: move PG_HWPoison bit check" Signed-off-by: Naoya Horiguchi Signed-off-by: Jun'ichi Nomura Acked-by: Mel Gorman Reviewed-by: Wu Fengguang Reviewed-by: Christoph Lameter Signed-off-by: Andi Kleen commit b8aeec34175fc8fe8b0d40efea4846dfc1ba663e Author: Hidetoshi Seto Date: Thu Oct 7 15:31:31 2010 +0900 HWPOISON/signalfd: add support for addr_lsb Similar change as to signal delivery: copy out the si_addr_lsb field to user space in signalfd Signed-off-by: Hidetoshi Seto Signed-off-by: Andi Kleen commit 153db80f8cf74e8700cac96305b6c0b92918f17c Merge: 5fd03dd cb655d0 Author: Ingo Molnar Date: Fri Oct 8 09:14:51 2010 +0200 Merge commit 'v2.6.36-rc7' into core/memblock Merge reason: Update from -rc3 to -rc7. Signed-off-by: Ingo Molnar commit 5fd03ddab7fdbc44bfb2d183a4531c26a8dbca5a Author: Yinghai Lu Date: Tue Oct 5 21:28:10 2010 -0700 memblock/arm: Fix memblock_region_is_memory() typo Fix typo in commit dbe3039 ("memblock/arm: Use memblock_region_is_memory() for omap fb") - it should be memblock_is_region_memory(). Reported-by: Tomi Valkeinen Signed-off-by: Yinghai Lu Cc: Benjamin Herrenschmidt Cc: Felipe Balbi Cc: Kevin Hilman Cc: ext Grazvydas Ignotas LKML-Reference: <4CABFADA.9020305@kernel.org> Signed-off-by: Ingo Molnar commit 68f4d5a00adaab33b136fce2c72d5c377b39b0b0 Author: Zhao Yakui Date: Fri Oct 8 09:47:33 2010 +0800 x86, setup: Use string copy operation to optimze copy in kernel compression The kernel decompression code parses the ELF header and then copies the segment to the corresponding destination. Currently it uses slow byte-copy code. This patch makes it use the string copy operations instead. In the test the copy performance can be improved very significantly after using the string copy operation mechanism. 1. The copy time can be reduced from 150ms to 20ms on one Atom machine 2. The copy time can be reduced about 80% on another machine The time is reduced from 7ms to 1.5ms when using 32-bit kernel. The time is reduced from 10ms to 2ms when using 64-bit kernel. Signed-off-by: Zhao Yakui LKML-Reference: <1286502453-7043-1-git-send-email-yakui.zhao@intel.com> Signed-off-by: H. Peter Anvin commit 588abaa64b76005f6ab1a7d40770dcef12fd00ad Author: Brett Rudley Date: Thu Oct 7 20:31:46 2010 -0700 staging: brcm80211: Use proper BRCM_FULLMAC #ifdefs Make it obvious that DHD_USE_STATIC_BUF is only used as part of FULLMAC build Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 6ea75952d7c671ea8b0d7b66f82afcafbb5d20c2 Merge: 6b0cd00 d244555 Author: Steve French Date: Fri Oct 8 03:42:03 2010 +0000 Merge branch 'for-next' commit d2445556137c38ae15d3191174bfd235630ed7cd Author: Steve French Date: Fri Oct 8 03:38:46 2010 +0000 [CIFS] Remove build warning Signed-off-by: Steve French commit ccc46a7402200a3b28a8fa1605ea5405a9ef66f7 Author: Jeff Layton Date: Wed Oct 6 19:51:12 2010 -0400 cifs: fix module refcount leak in find_domain_name find_domain_name() uses load_nls_default which takes a module reference on the appropriate NLS module, but doesn't put it. Signed-off-by: Jeff Layton Cc: Shirish Pargaonkar Signed-off-by: Steve French commit 2de970ff69bbcc5a4b7440df669a595b2b1acd73 Author: Jeff Layton Date: Wed Oct 6 19:51:12 2010 -0400 cifs: implement recurring workqueue job to prune old tcons Create a workqueue job that cleans out unused tlinks. For now, it uses a hardcoded expire time of 10 minutes. When it's done, the work rearms itself. On umount, the work is cancelled before tearing down the tlink tree. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 3aa1c8c2900065a51268430ab48a1b42fdfe5b45 Author: Jeff Layton Date: Thu Oct 7 14:46:28 2010 -0400 cifs: on multiuser mount, set ownership to current_fsuid/current_fsgid (try #5) ...when unix extensions aren't enabled. This makes everything on the mount appear to be owned by the current user. This version of the patch differs from previous versions however in that the admin can still force the ownership of all files to appear as a single user via the uid=/gid= options. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 940428742ed208836feb715fffd7cbc006fec3cb Author: Rhyland Klein Date: Thu Oct 7 15:48:09 2010 -0700 staging: iio: light: Adding driver for ISL29018 ALS adding support for the ISL 29018 ambient light and proximity sensor. Addressed comments from reviews by Jonathan Cameron and Joe Perches * Removed some excess dbg prints that only printed function name * Renamed some properties to make them more descriptive * Added a property to list available adc resolutions * Defined arrays for resolutions/ranges as static const * Change loops initialization to memset for extensibility. * used sizeof() instead of ARRAY_SIZE() to be safer * Added a property to list available adc ranges * Fixed warnings and property names. Signed-off-by: Rhyland Klein Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 1e3950b8483a1805bd6e6e5ce8749cdafe04ae35 Author: Henry Ptasinski Date: Thu Oct 7 19:52:11 2010 -0700 staging: brcm80211: Remove dead code from siutils.c Removed lots of unused functions from siutils.c Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 51c5651da4bf37f0cbb488d9c6f9044da659c367 Author: Henry Ptasinski Date: Thu Oct 7 19:52:10 2010 -0700 staging: brcm80211: Remove dead code from bcmwifi.c Removed unused functions wf_chspec_ntoa() and wf_chspec_aton(). Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 4ca70f7fcbf9a4cd44c52f582ef4cfb678f3f560 Author: Henry Ptasinski Date: Thu Oct 7 19:52:09 2010 -0700 staging: brcm80211: Remove dead code from linux_osl.c. Removed several completely unused functions: osl_malloc_failed osl_pcmcia_attr osl_pcmcia_read_attr osl_pcmcia_write_attr osl_pktdup and related macros Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 45fa9a90a696c0123dd9258d6d520029a1f3f9bf Author: Henry Ptasinski Date: Thu Oct 7 19:52:08 2010 -0700 staging: brcm80211: Remove unnecessary hndtcam.h The header file is unnecessary. Delete it and don't include it. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 64cb45addaf7f193dfa6396c8e6f5cf1293312c1 Author: Henry Ptasinski Date: Thu Oct 7 19:52:07 2010 -0700 staging: brcm80211: Remove unnecessary bitfuncs.h This header file is no longer included anywhere. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit b2324267a6e96d6513d4ec7799c251b5aae5f4c0 Author: Henry Ptasinski Date: Thu Oct 7 19:52:06 2010 -0700 staging: brcm80211: Don't include bitfuncs.h Remove include of bitfuncs.h, as it's completely uncessary for these files. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit d953a05d04b17b43f3bf4a183131e5c5e223ecaa Author: Henry Ptasinski Date: Thu Oct 7 19:52:05 2010 -0700 staging: brcm80211: Use linux/bitops.h instead of bitfuncs.h Use ffs() from linux/bitops.h, instead of the locally defined find_msbit(). Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 86566325d398409637fe920181306d43f5980541 Author: Henry Ptasinski Date: Thu Oct 7 19:52:04 2010 -0700 staging: brcm80211: Remove dead code from aiutils.c Removed unused function ai_view(). Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 5b19208a5e236b26357162d6a28ff9e8d4296725 Author: Greg Kroah-Hartman Date: Thu Oct 7 19:30:49 2010 -0700 Staging: speakup: fix speakup core to build properly The vc_data structure changed to move the tty structure off to the port, so change the code to handle this. Now the code will build properly, and hopefully work as well. Cc: William Hubbs Cc: Samuel Thibault Signed-off-by: Greg Kroah-Hartman commit c6e3fd22cd538365bfeb82997d5b89562e077d42 Author: William Hubbs Date: Thu Oct 7 13:20:02 2010 -0500 Staging: add speakup to the staging directory Speakup is a kernel based screen review package for the linux operating system. It allows blind users to interact with applications on the linux console by means of synthetic speech. The authors and maintainers of this code include the following: Kirk Reiser, Andy Berdan, John Covici, Brian and David Borowski, Christopher Brannon, Samuel Thibault and William Hubbs. Signed-off-by: William Hubbs Signed-off-by: Samuel Thibault Signed-off-by: Greg Kroah-Hartman commit 5fc6d897fde352bad5db5767e7260741a8cdd9e9 Author: Dan Williams Date: Thu Oct 7 16:44:50 2010 -0700 async_tx: make async_tx channel switching opt-in The majority of drivers in drivers/dma/ will never establish cross channel operation chains and do not need the extra overhead in struct dma_async_tx_descriptor. Make channel switching opt-in by default. Cc: Anatolij Gustschin Cc: Ira Snyder Cc: Linus Walleij Cc: Saeed Bishara Signed-off-by: Dan Williams commit e59fe083f683ca2ca56abefad290d110808a6fb5 Author: Greg Kroah-Hartman Date: Thu Oct 7 17:08:21 2010 -0700 Staging: brcm80211: s/int16/s16/ Use the kernel types, don't invent your own. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 7d4df48eba4cea654ee6fe6e1a51a0600807ed7b Author: Greg Kroah-Hartman Date: Thu Oct 7 17:04:47 2010 -0700 Staging: brcm80211: s/uint16/u16/ Use the kernel types, don't invent your own. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 55572b293b3a5929e8c54bc91d14ae6264186bf6 Author: H. Peter Anvin Date: Thu Oct 7 16:42:54 2010 -0700 x86, mrst: A function in a header file needs to be marked "inline" A function in a header file needs to be explicitly marked "inline", or gcc will complain if it is not used. Signed-off-by: H. Peter Anvin Cc: Jacob Pan Cc: v2.6.36 LKML-Reference: <1274295685-6774-3-git-send-email-jacob.jun.pan@linux.intel.com> commit 4128dd9afb986321edf0baa8a3aaa3c7c5aa3730 Author: Greg Kroah-Hartman Date: Thu Oct 7 16:41:32 2010 -0700 Staging: brcm80211: remove forgotten undef I forgot to remove the float undefs in typedef.h from previous patches, this fixes this issue. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 11465f6a7d43f3584fa6ee4a619a25d944c7af8d Author: Greg Kroah-Hartman Date: Thu Oct 7 16:38:43 2010 -0700 Staging: brcm80211: wl_cfg80211.c: fix compiler warnings size_t should be '%zd' in a printf, not '%d' Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit a416e9e1dde0fbcf20cda59df284cc0dcf2aadc4 Author: Namhyung Kim Date: Wed Sep 29 23:29:48 2010 +0900 x86-32: Fix sparse warning for the __PHYSICAL_MASK calculation On 32-bit non-PAE system, cast to 'phys_addr_t' truncates value before subtraction. Subtracting before cast produce same result but remove following warnings from sparse: arch/x86/include/asm/pgtable_types.h:255:38: warning: cast truncates bits from constant value (100000000 becomes 0) arch/x86/include/asm/pgtable_types.h:270:38: warning: cast truncates bits from constant value (100000000 becomes 0) arch/x86/include/asm/pgtable.h:127:32: warning: cast truncates bits from constant value (100000000 becomes 0) arch/x86/include/asm/pgtable.h:132:32: warning: cast truncates bits from constant value (100000000 becomes 0) arch/x86/include/asm/pgtable.h:344:31: warning: cast truncates bits from constant value (100000000 becomes 0) 64-bit or PAE machines will not be affected by this change. Signed-off-by: Namhyung Kim LKML-Reference: <1285770588-14065-1-git-send-email-namhyung@gmail.com> Signed-off-by: H. Peter Anvin commit 1a3bf7471e8acaab0e66a6304212218025fe1ec2 Author: Greg Kroah-Hartman Date: Thu Oct 7 16:34:51 2010 -0700 Staging: brcm80211: remove some more macros from linuxver.h These aren't needed anymore, and now we are down to just one broken one, and a whole bunch of #include files here. This can be further factored by moving the proper #includes into the different .c files, and not leaving them in this one large one. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit f149e6f1daf34c284485254fa020bdd6d6838a2d Author: Greg Kroah-Hartman Date: Thu Oct 7 16:30:25 2010 -0700 Staging: brcm80211: remove unused irq typedef If it's not needed, why define it? Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 878a667394501e03cd27b393b87cf472fa74122c Author: Greg Kroah-Hartman Date: Thu Oct 7 16:28:15 2010 -0700 Staging: brcm80211: remove unneeded pm macro Use the real type, not a macro. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 624573d0d480a003c9ba042f524f311aef2e7c5f Author: Greg Kroah-Hartman Date: Thu Oct 7 16:25:58 2010 -0700 Staging: brcm80211: remove some unused macros These are all defined by the core kernel, use those versions instead of just creating noops. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit c75f2aa13f5b268aba369b5dc566088b5194377c Author: Tony Luck Date: Thu Oct 7 16:23:34 2010 -0700 [IA64] Cannot use register_percpu_irq() from ia64_mca_init() This is called before early_irq_init() which will clobber any registrations made too early. Move the calls to ia64_mca_late_init(). Signed-off-by: Tony Luck commit 8ba9cfdbfc0fe3e84d150d66737210a34846e8a7 Author: Greg Kroah-Hartman Date: Thu Oct 7 16:23:24 2010 -0700 Staging: brcm80211: remove unneeded pci macros These wrapper macros aren't needed, remove them. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit f14362d1fe81cece6f1d78483e5bbfcf8cc497bf Author: Ian Munsie Date: Fri Oct 1 17:06:07 2010 +1000 powerpc, of_serial: Endianness issues setting up the serial ports The speed and clock of the serial ports is retrieved from the device tree in both the PowerPC legacy serial code and the Open Firmware serial driver, therefore they need to handle the fact that the device tree is always big endian, while the CPU may not be. Also fix other device tree references in the legacy serial code. Signed-off-by: Ian Munsie Signed-off-by: Grant Likely commit 517b12f2a0d9f9e6de680b30242ec6432d2af7f7 Author: Greg Kroah-Hartman Date: Thu Oct 7 16:20:43 2010 -0700 Staging: brcm80211: remove free_netdev wrapper It's incorrect, call the real function. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit c62add38420029de50d1e4c16795211d748dd08b Author: Greg Kroah-Hartman Date: Thu Oct 7 16:19:11 2010 -0700 Staging: brcm80211: remove old module macro wrappers they weren't doing anything, so get rid of them. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 364eb72a3965ddf3291be74562081b1c19813473 Author: Greg Kroah-Hartman Date: Thu Oct 7 16:11:01 2010 -0700 Staging: brcm80211: remove MY_INIT_WORK macro Use the real macro instead. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit bf53f939e02c0e818df93ab130fedc0e4ba95796 Author: Shanyu Zhao Date: Tue Sep 21 16:54:01 2010 -0700 iwlagn: add temperature offset calib for 6000g2 6000g2 devices need to have temperature offset calibration. The runtime uCode needs to receive the calibration results just like BB and LO calibration. To do this, driver reads the offset value from NVM and send it to uCode after runtime uCode is alive. Signed-off-by: Shanyu Zhao Signed-off-by: Wey-Yi Guy commit 642454cc0774e0774bc1ccb4292d6dc0abd06d20 Author: Shanyu Zhao Date: Tue Sep 21 12:06:18 2010 -0700 iwlagn: fix default calibration table size iwlagn driver uses the IWL_MAX_STANDARD_PHY_CALIBRATE_TBL_SIZE as the chain noise reset calibration index and IWL_MAX_STANDARD_PHY_CALIBRATE_TBL_SIZE+1 as the chain noise gain calibration index, if not specified by the TLV value in the new firmware format. However, this is broken if we need to add more calibrations like the temperature offset calibration because we increased IWL_MAX_STANDARD_PHY_CALIBRATE_TBL_SIZE by 1. To fix this issue, define IWL_DEFAULT_STANDARD_PHY_CALIBRATE_TBL_SIZE and use it as the calibration index instead. We still keep the IWL_MAX_STANDARD_PHY_CALIBRATE_TBL_SIZE as a sanity check for the TLV value given by ucode. Signed-off-by: Shanyu Zhao Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 65cccfb03d0dc99fd213d57be5f60f8ca6a60824 Author: Wey-Yi Guy Date: Tue Sep 21 16:15:58 2010 -0700 iwlagn: no version check for experimental uCode For experimental uCode, it should work with the driver if driver has experimental uCode support option enabled; remove the API version checking. Signed-off-by: Wey-Yi Guy commit 1cf263736092b3712103a5290a93dd0fff376f26 Author: Johannes Berg Date: Wed Sep 22 07:32:13 2010 -0700 iwlwifi: fix dual-mode scanning The recent scanning code shuffle accidentally moved the SCAN_HW bit setting _after_ the PAN parameters are modified, which means that they don't take the scan into account -- fix that. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit a313f3839eeeebb3cbbcf1fbd2aee92bde389032 Author: Johannes Berg Date: Wed Sep 22 18:02:12 2010 +0200 iwlwifi: remove iwl_check_bits The function is used exactly once, and the caller doesn't even need the special check, it can be simplified to a simple bit check. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 0de76736552cff02cc6ee4bae41e5502d7673f8e Author: Johannes Berg Date: Wed Sep 22 18:02:11 2010 +0200 iwlwifi: clean up declarations A number of declarations in iwl-core.h should be in agn specific files, and also rename the iwl-calib.h file to iwl-agn-calib.h to better reflect that it belongs to agn. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 14e8e4afeb7e90f1f2d3f2d3b54da57c27f59f38 Author: Johannes Berg Date: Wed Sep 22 18:02:10 2010 +0200 iwlwifi: remove apm_ops.stop Since all devices share the same operation here, there's no need to call it indirectly. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 9597ebac91e5a88f558d236a51d776508d42a237 Author: Johannes Berg Date: Wed Sep 22 18:02:09 2010 +0200 iwlwifi: remove set_pwr_src operation The set_pwr_src operation is only ever used from within the same sub-driver that it is declared in, so it can just be called directly instead of being an operation. Also, it is never called to set the power source to V_aux, so change the two functions accordingly (but keep the V_aux code for documentation purposes in a comment). Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 0453674c90be7b39c8925ba5e1d746447905f8ee Author: Johannes Berg Date: Wed Sep 22 18:02:08 2010 +0200 iwlwifi: remove set_ct_kill operation This operation is only ever called from set_hw_params, which is also already based on the config/ops, so that there's no need to have a separate set_ct_kill op and we can just call the right ct_threshold function. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 84fac3d9604147db37bd8c68897f79442d7ed714 Author: Johannes Berg Date: Wed Sep 22 18:02:07 2010 +0200 iwlwifi: move iwl_dump_fh to agn The iwl_dump_fh function is only used by the agn module, so it can be there instead of being exported by the core. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit fed732920bf9d96a95804a499ca586ff745540cd Author: Johannes Berg Date: Wed Sep 22 18:02:06 2010 +0200 iwlwifi: move iwl_dump_csr to agn The iwl_dump_csr function is only used within the agn module, so it can be moved there instead of being exported by the core. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit facd982e8246ed25a049d270a71513fb11b901ec Author: Johannes Berg Date: Wed Sep 22 18:02:05 2010 +0200 iwlwifi: move iwl_toggle_rx_ant to agn The iwl_toggle_tx_ant function is only used by agn code, so it can be moved into the agn module instead of being exported from the core. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 635b85b42796a6ab4e6a31cde78f1d9660c9c4a0 Author: Johannes Berg Date: Wed Sep 22 18:02:04 2010 +0200 iwlwifi: remove agn rates info there Code and data related to agn bitrates can be part of the agn module rather than being in the core module. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 57934dc1fb7ef65a8a0f5d7a1578536b36043c0a Author: Johannes Berg Date: Wed Sep 22 18:02:03 2010 +0200 iwlwifi: remove spurious exports A number of exports, especially related to thermal throttling, are unnecessary because the code lives in the same module that it is used in, so remove them. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 69fdb710b29d096bc50123f7c97891e31ffe45f9 Author: Johannes Berg Date: Wed Sep 22 18:02:02 2010 +0200 iwlwifi: move tx fail code to agn The code to print out TX failure reasons is AGN specific, so it can be in the AGN module. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit a30e3112a8bcb5bc1caa48547e597de3992e1b21 Author: Johannes Berg Date: Wed Sep 22 18:02:01 2010 +0200 iwlwifi: move agn specific station code there By duplicating a little bit of code between 3945 and agn, we can move a lot of code into an agn specific station management file and thus reduce the amount of code in core that is dead to 3945. before: text data bss dec hex filename 212886 3872 96 216854 34f16 iwlcore.ko 620542 10448 304 631294 9a1fe iwlagn.ko 314013 3264 196 317473 4d821 iwl3945.ko after: text data bss dec hex filename 202857 3872 92 206821 327e5 iwlcore.ko 629102 10448 308 639858 9c372 iwlagn.ko 314240 3264 196 317700 4d904 iwl3945.ko delta: -10029 iwlcore.ko 8560 iwlagn.ko 227 iwl3945.ko so it's a net win even if you have both loaded, likely because a lot of EXPORT_SYMBOLs go away. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit d3f5ba958d6c425a87535c6fa2a69ca90eb6e930 Author: Johannes Berg Date: Wed Sep 22 18:02:00 2010 +0200 iwlwifi: remove verify_signature eeprom operation All drivers share the same implementation, so there's no need to call this via a function pointer nor to export it. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 575ccfd0f47e5d791246cb03c07d636190322fa1 Author: Johannes Berg Date: Wed Sep 22 18:01:59 2010 +0200 iwlwifi: rename iwl_mac_beacon_update Rename iwl_mac_beacon_update to iwlcore_beacon_update and make the calling convention a bit different. The old name with _mac_ indicated that it was a mac80211 callback, but that's no longer true. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 5de33068a2f841536ca8632534e3e193d5b2607f Author: Johannes Berg Date: Wed Sep 22 18:01:58 2010 +0200 iwlwifi: move chain settings to agn The core module doesn't need to carry around the code for chain settings that is used for HT drivers (agn) only. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 8289e07b8a4b588e167bc84f93419458fd6efa3e Author: Johannes Berg Date: Wed Sep 22 18:01:57 2010 +0200 iwl3945: use iwl3945_commit_rxon There's no need to go via the indirect function call from within the 3945 subdriver. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit a77029ee3fc03a37238b73892e55b789273991aa Author: Johannes Berg Date: Wed Sep 22 18:01:56 2010 +0200 iwlwifi: introduce post_scan hook The different drivers need to do different things after a scan, so create a post_scan hook to allow them to do this. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 7314c2b377afaf367f2966bd9ea67bf83350e29b Author: Johannes Berg Date: Wed Sep 22 18:01:55 2010 +0200 iwlagn: rename iwl_commit_rxon iwl_commit_rxon really should be named iwlagn_commit_rxon, so rename it. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 955a857e062642cd3ebe1dc7bb38c0f85d8f8f17 Author: Bryan Schumaker Date: Wed Sep 29 15:41:49 2010 -0400 NFS: new idmapper This patch creates a new idmapper system that uses the request-key function to place a call into userspace to map user and group ids to names. The old idmapper was single threaded, which prevented more than one request from running at a single time. This means that a user would have to wait for an upcall to finish before accessing a cached result. The upcall result is stored on a keyring of type id_resolver. See the file Documentation/filesystems/nfs/idmapper.txt for instructions. Signed-off-by: Bryan Schumaker [Trond: fix up the return value of nfs_idmap_lookup_name and clean up code] Signed-off-by: Trond Myklebust commit 39a985547cbfcbb0b23667b69b8ae82a6cf312ac Author: bo yang Date: Wed Sep 22 22:36:29 2010 -0400 [SCSI] megaraid_sas: Add Online Controller Reset to MegaRAID SAS drive To add the Online controller reset support, driver need to do: a). reset the controller chips -- Xscale and Gen2 which will change the function calls and add the reset function related to this two chips. b). during the reset, driver will store the pending cmds which not returned by FW to driver's pending queue. Driver will re-issue those pending cmds again to FW after the OCR finished. c). In driver's timeout routine, driver will report to OS as reset. Also driver's queue routine will block the cmds until the OCR finished. d). in Driver's ISR routine, if driver get the FW state as state change, FW in Failure status and FW support online controller reset (OCR), driver will start to do the controller reset. e). In driver's IOCTL routine, the application cmds will wait for the OCR to finish, then issue the cmds to FW. Signed-off-by Bo Yang Signed-off-by: James Bottomley commit 969c9165581fbb55cab0f500f555a69279cecb57 Author: James Smart Date: Wed Sep 29 11:19:22 2010 -0400 [SCSI] lpfc 8.3.17: Update lpfc driver version to 8.3.17 Update lpfc driver version to 8.3.17 Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit 3677a3a76e190f801af0778df3b8efa1fe161a6e Author: James Smart Date: Wed Sep 29 11:19:14 2010 -0400 [SCSI] lpfc 8.3.17: Replace function reset methodology Replace graceful teardown steps with the singular function reset command. Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit eee8877ee5e8a879f78034001b5e7c04db005ab2 Author: James Smart Date: Wed Sep 29 11:19:08 2010 -0400 [SCSI] lpfc 8.3.17: SCSI fixes - Fail I/Os with incomplete data that complete with SCSI Check condition. - Complete aborted I/Os with host_scribble equal to NULL with success. - Initialize context1 field of iocbq in the new_scsi_buf routines. Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit 515e0aa21ec399ddcf783140a596312e83d20a80 Author: James Smart Date: Wed Sep 29 11:19:00 2010 -0400 [SCSI] lpfc 8.3.17: BSG fixes - Add support for bsg MBX_SLI4_CONFIG. - Multiply linkup timeout in loopback test code by 100. - Set iocb_stat to 0 in the lpfcdiag_loop_get_xri function. Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit dcf2a4e0792e837d6133506444a033a95cbc9616 Author: James Smart Date: Wed Sep 29 11:18:53 2010 -0400 [SCSI] lpfc 8.3.17: SLI Additions and Fixes - Added driver support for management application to pass down two security specific mailbox commands (MBX_SECURITY_MGMT and MBX_AUTH_PORT) - Added driver support for handling FIPS zeroization trap of host ERATT ER8, performing selective reset and bringing the device up. - Added code to detect INIT_LINK mailbox command completion returning status MBXERR_SEC_NO_PERMISSION. - Increased the wait timeout on host status register HS_FFRDY and HS_MBRDY being set. - Remove the port offline code from the Heartbeat TMO handler. Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit d439d286f573afab8c164dbc953ce1d214585a40 Author: James Smart Date: Wed Sep 29 11:18:45 2010 -0400 [SCSI] lpfc 8.3.17: Code Cleanup and Locking fixes - Move Unload flag earlier in vport deletei to stop ELS traffic - Replaced some unnecessary spin_lock_irqsave with spin_lock_irq - Fixed circular spinlock dependency between low-level driver and SCSI midlayer - Remove duplicate code from lpfc_els_retry routine - Make all error values negative Signed-off-by: Alex Iannicelli Signed-off-by: James Smart Signed-off-by: James Bottomley commit bf5eefb007e7c5498a41af2dd65d957ae9793a63 Author: Christof Schmitt Date: Tue Sep 28 10:11:06 2010 +0200 [SCSI] zfcp: Remove scsi_cmnd->serial_number from debug traces With the change that drivers have to explicitly request the serial number for SCSI commands, this field should not be part of the zfcp traces. It is not worth the effort to request the serial number only for tracing purposes, so simply remove this field from the debug traces. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit 400fb7f6a0cfe13025cb0296fdb4737da7025a8a Author: Dan Williams Date: Thu Oct 7 15:25:04 2010 -0700 move async raid6 test to lib/Kconfig.debug The prompt for "Self test for hardware accelerated raid6 recovery" does not belong in the top level configuration menu. All the options in crypto/async_tx/Kconfig are selected and do not depend on CRYPTO. Kconfig.debug seems like a reasonable fit. Cc: Herbert Xu Cc: David Woodhouse Signed-off-by: Dan Williams commit 7262026f0eded76b935a12b9b15af05516a8610a Author: Wayne Boyer Date: Mon Sep 27 10:45:28 2010 -0700 [SCSI] ipr: fix array error logging The structure definitions for reporting array errors did not have the correct size for the Array WWID field. This patch fixes those definitions. It also fixes part of the output formatting that did not have newlines and fixes size calculations. Signed-off-by: Wayne Boyer Acked-by: Brian King Signed-off-by: James Bottomley commit 4ebcfb929b6be63bacdba34f6aae0f5b51432d2c Author: Jiri Slaby Date: Fri Sep 24 22:07:51 2010 +0200 [SCSI] aha152x: enable PCMCIA on 64bit It was disabled when x86_64 was introduced, but it is reported to be working on 64bit by two different people, so let's enable it back again. Signed-off-by: Jiri Slaby Cc: "Juergen E. Fischer" Signed-off-by: James Bottomley commit 69723d178da97b09ae8996f60fbf2f0cf68d6d61 Author: Hannes Reinecke Date: Fri Sep 24 15:57:04 2010 +0200 [SCSI] scsi_dh_alua: Handle all states correctly For ALUA we should be handling all states, independent of whether the mode is explicit or implicit. For 'Transitioning' we should retry for a certain amount of time; after that we're setting the port to 'Standby' and return SCSI_DH_RETRY to signal upper layers a retry is in order here. Signed-off-by: Hannes Reinecke Acked-by: Mike Snitzer Signed-off-by: James Bottomley commit e27d6169c79e3c75edc74a14424a7856e7ff487c Author: kxie@chelsio.com Date: Thu Sep 23 16:43:23 2010 -0700 [SCSI] cxgb4i: connection and ddp setting update Update cxgb4i connection setting and pagepod programming. Signed-off-by: Karen Xie Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 0b3d8947972bfd2dd6d55c8009427ad2941ef038 Author: kxie@chelsio.com Date: Thu Sep 23 16:43:23 2010 -0700 [SCSI] cxgb3i: fixed connection over vlan Signed-off-by: Karen Xie Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit e3d2ad8cb2775e4201446489efd1cf26c5bbce5c Author: kxie@chelsio.com Date: Thu Sep 23 16:43:23 2010 -0700 [SCSI] libcxgbi: pdu read fixes Fixed the locking and releasing skb in the case of error in the pdu read path, and added define iscsi_task_cxgbi_data to access the private data inside the iscsi_task. Signed-off-by: Karen Xie Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 24d3f95a5b6082ca4aba89071ca6259e15d3e564 Author: kxie@chelsio.com Date: Thu Sep 23 16:43:23 2010 -0700 [SCSI] cxgbi: rename alloc_cpl to alloc_wr Signed-off-by: Karen Xie Reviewed-by: Mike Christie Signed-off-by: James Bottomley commit 6391987d6f8ced7d0fafaa1440dcc57bb4b34d8f Merge: 9646b79 e8689e6 0d68866 1f1846c 20dd639 Author: Dan Williams Date: Thu Oct 7 15:19:01 2010 -0700 Merge branches 'dma40', 'pl08x', 'fsldma', 'imx' and 'intel-mid' into dmaengine commit 1f1846c6ceed07c03ef036a27864befe0f773997 Author: Sascha Hauer Date: Wed Oct 6 10:25:55 2010 +0200 dmaengine: Add Freescale i.MX1/21/27 DMA driver This driver is currently implemented as a user to the old i.MX DMA API. This allows us to convert each user of the old API to the dmaengine API one by one. Once this is done the old DMA driver can be merged into the i.MX dmaengine driver. V2: remove some debug leftovers and unused variables Signed-off-by: Sascha Hauer Acked-by: Linus Walleij Signed-off-by: Dan Williams commit d24099df9e379b150c164da354b8c6fdafc73257 Author: Brian King Date: Tue Sep 21 10:17:11 2010 -0500 [SCSI] ibmvfc: Handle Virtual I/O Server reboot If a Virtual I/O server is rebooted, the client fibre channel sees a transport event on its CRQ, which causes it to attempt to reconnect to the CRQ. For a period of time during the VIOS reboot, the client's attempts to register the CRQ will return H_CLOSED, indicating the server side is not currently registered. The ibmvfc driver was not handling this well and was taking the virtual adapter offline. Fix this by re-enabling our interrupt and waiting for the event on our CRQ indicating the server is back, at which point we can reconnect. Signed-off-by: Brian King Signed-off-by: James Bottomley commit 1a03ae0f556a931aa3747b70e44b78308f5b0590 Author: Michael Reed Date: Mon Sep 20 11:20:22 2010 -0500 [SCSI] sd name space exhaustion causes system hang Following a site power outage which re-enabled all the ports on my FC switches, my system subsequently booted with far too many luns! I had let it run hoping it would make multi-user. It didn't. :( It hung solid after exhausting the last sd device, sdzzz, and attempting to create sdaaaa and beyond. I was unable to get a dump. Discovered using a 2.6.32.13 based system. correct this by detecting when the last index is utilized and failing the sd probe of the device. Patch applies to scsi-misc-2.6. Signed-off-by: Michael Reed Cc: Stable Tree Signed-off-by: James Bottomley commit 43ca910a9c90566308f39f51ac03a55f94a5f83c Author: Mike Christie Date: Wed Sep 15 16:52:32 2010 -0500 [SCSI] fc class: add fc host dev loss sysfs file This adds a fc host dev loss sysfs file. Instead of calling into the driver using the get_host_def_dev_loss_tmo callback, we allow drivers to init the dev loss like is done for other fc host params, and then the fc class will handle updating the value if the user writes to the new sysfs file. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit 0af5d708aae3aef1f98a1c689007b92db2c10277 Author: Mike Christie Date: Wed Sep 15 16:52:31 2010 -0500 [SCSI] lpfc: prep for fc host dev loss tmo support This removes the driver's get_host_def_dev_loss_tmo callback and just has the driver set the dev loss using the fc class fc_host_dev_loss_tmo macro like is done for other fc params. It also adds compat support for the driver's existing dev loss and nodev sysfs and modparams. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit d2b5f10e5b93633a40d9263383b914f06019f00b Author: Mike Christie Date: Wed Sep 15 16:52:30 2010 -0500 [SCSI] qla2xxx: prep for fc host dev loss tmo support This removes the driver's get_host_def_dev_loss_tmo callback and just has the driver set the dev loss using the fc class fc_host_dev_loss_tmo macro like is done for other fc params. Signed-off-by: Mike Christie Acked-by: Andrew Vasquez Signed-off-by: James Bottomley commit a5110f2983bdf931d9819f88505775b16de8b99e Author: Mike Christie Date: Wed Sep 15 16:52:29 2010 -0500 [SCSI] ibmvfc: prep for fc host dev loss tmo support This removes the driver's get_host_def_dev_loss_tmo callback and just has the driver set the dev loss using the fc class fc_host_dev_loss_tmo macro like is done for other fc params. This patch also removes the module dev loss param. To override the value the fc host sysfs value being added in the fc class patch can be used instead of the driver module param. Signed-off-by: Mike Christie Acked-by: Brian King Signed-off-by: James Bottomley commit 485868208ee833628d49f81b4609001749d92d56 Author: Mike Christie Date: Wed Sep 15 16:52:28 2010 -0500 [SCSI] fnic: prep for fc host dev loss tmo support This removes the driver's get_host_def_dev_loss_tmo callback and just has the driver set the dev loss using the fc class fc_host_dev_loss_tmo macro like is done for other fc params. This also adds a set rport dev loss function so the fc class host dev loss tmp sysfs support being added in the fc class patch can update rports. Signed-off-by: Mike Christie Signed-off-by: James Bottomley commit a6751ccb9ba85180c84135cc921eea11d83d5689 Author: Jiri Slaby Date: Tue Sep 14 14:12:54 2010 +0200 [SCSI] qla4xxx: fix build on PPC We use read/write[bslq] but do not include linux/io.h. This causes build failures on PPC. Include that file. Signed-off-by: Jiri Slaby Cc: Stable Tree Acked-by: Vikas Chaudhary Signed-off-by: James Bottomley commit f0ad30d3d2dc924decc0e10b1ff6dc32525a5d99 Author: David Milburn Date: Fri Sep 3 17:13:03 2010 -0500 [SCSI] libsas: fix NCQ mixing with non-NCQ Some cards (like mvsas) have issue troubles if non-NCQ commands are mixed with NCQ ones. Fix this by using the libata default NCQ check routine which waits until all NCQ commands are complete before issuing a non-NCQ one. The impact to cards (like aic94xx) which don't need this logic should be minimal Cc: Stable Tree Signed-off-by: James Bottomley commit 20dd63900d238e17b122fe0c7376ff090867f528 Author: Koul, Vinod Date: Mon Oct 4 10:38:43 2010 +0000 intel_mid_dma: change the slave interface In 2.6.36 kernel, dma slave control command was introduced, this patch changes the intel-mid-dma driver to this new kernel slave interface Signed-off-by: Vinod Koul Signed-off-by: Dan Williams commit 8b6492231d2a92352a6371eebd622e3bc824a663 Author: Koul, Vinod Date: Mon Oct 4 10:38:25 2010 +0000 intel_mid_dma: fix the WARN_ONs Moved the WARN_ON to BUG_ON, as WARN_ON if hit, can cause null pointer derefrences Signed-off-by: Vinod Koul Signed-off-by: Alan Cox Signed-off-by: Dan Williams commit 576e3c394a6c427c9a1378ec88ef7eb97e731992 Author: Ramesh Babu K V Date: Mon Oct 4 10:37:53 2010 +0000 intel_mid_dma: Add sg list support to DMA driver For a very high speed DMA various periphral devices need scatter-gather list support. The DMA hardware support link list items. This list can be circular also (adding new flag DMA_PREP_CIRCULAR_LIST) Right now this flag is in driver header and should be moved to dmaengine header file eventually Signed-off-by: Ramesh Babu K V Signed-off-by: Vinod Koul Signed-off-by: Dan Williams commit 03b96dca010145f3896abcd443b7fddb9813a0e6 Author: Yong Wang Date: Mon Oct 4 10:37:27 2010 +0000 intel_mid_dma: Allow DMAC2 to share interrupt Allow DMAC2 to share interrupt since exclusive interrupt line for mrst DMAC2 is not provided on other platforms. Signed-off-by: Yong Wang Signed-off-by: Vinod Koul Signed-off-by: Alan Cox Signed-off-by: Dan Williams commit b306df5e925bb584b2157f11f97c5eb20a13de4d Author: Yong Wang Date: Mon Oct 4 10:37:02 2010 +0000 intel_mid_dma: Allow IRQ sharing intel_mid_dma driver allows interrupt sharing. Thus it needs to check whether IRQ source is the DMA controller and return the appropriate IRQ return. Signed-off-by: Yong Wang Signed-off-by: Vinod Koul Signed-off-by: Alan Cox Signed-off-by: Dan Williams commit 53a61badf47e674fb43d73cd22f0f8065098ddf6 Author: Koul, Vinod Date: Mon Oct 4 10:42:40 2010 +0000 intel_mid_dma: Add runtime PM support This patch adds runtime PM support in this dma driver for 4 PCI Controllers Whenever the driver is idle (no channels grabbed), it can go to low power state It also adds the PCI suspend and resume support Signed-off-by: Vinod Koul Signed-off-by: Alan Cox Signed-off-by: Dan Williams commit 9646b7985e906e5fcea9375f016b4519c8318c21 Author: Linus Walleij Date: Wed Oct 6 09:05:29 2010 +0000 DMAENGINE: define a dummy filter function for ste_dma40 All platform data has to be made conditional on CONFIG_STEDMA40 or we can provide a simple dummy filter functions as to avoid cluttering the code with other #ifdef:s. Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 661385f9c34e15c2f2c57b80e8cb2c7b910fdbd3 Author: Per Forlin Date: Wed Oct 6 09:05:28 2010 +0000 DMAENGINE: Remove stedma40_set_psize and pre_transfer hook in ste_dma40 Remove obsolete pre_transfer hook in stedma40_chan_cfg. The intent of this hook is merely to handle burst size compensation for ux500 variant MMCI. Remove obsolete stedma40_set_psize since it is only called from pre_transfer. DMAEngine device_control replaces the functionality of stedma40_set_psize. Signed-off-by: Per Forlin Signed-off-by: Dan Williams commit a59670a40b4dd497630f9442feb259dde601e469 Author: Per Forlin Date: Wed Oct 6 09:05:27 2010 +0000 DMAENGINE: Set burst size for phy and log chans in ste_dma40 dev_control Set burst for physical or logical channels respectively. Convert the values in dma_cfg to dma reg bits for physical or logical channels. Signed-off-by: Per Forlin Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 819504f4861a5bc1e25c82409956388bb79fb635 Author: Rabin Vincent Date: Wed Oct 6 08:20:38 2010 +0000 DMAENGINE: ste_dma40: fix resource leaks in error paths. Fix some leaks of allocated descriptors in error paths. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit a2c15fa4c122558472f8041515072218c8652c7e Author: Rabin Vincent Date: Wed Oct 6 08:20:37 2010 +0000 DMAENGINE: ste_dma40: fix desc_get Fix desc_get to alloc a descriptor from the cache if the ones in the list are waiting for the ack. Also, memzero the descriptor when allocated from the list to ensure all fields are cleared. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit c6134c967c5b8b5986371de335fa4ec39de268bc Author: Rabin Vincent Date: Wed Oct 6 08:20:36 2010 +0000 DMAENGINE: ste_dma40: fix clk_get failure path clk_get returns an ERR_PTR. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit f57b407cfd5fbd70251e9fa0ea7aa083ac06d25c Author: Rabin Vincent Date: Wed Oct 6 08:20:35 2010 +0000 DMAENGINE: ste_dma40: fix disabled channels list The value in the array, not the index, specifies the channel to be disabled. Acked-by: Jonas Aaberg Signed-off-by: Rabin Vincent Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit fff41b2e30c54c35933e6e51f775fe03c73fc572 Author: Haiyang Zhang Date: Thu Oct 7 11:40:08 2010 -0700 staging: hv: Rename camel cased functions in channel.c to lowercase Rename camel cased functions in channel.c to lowercase Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit beb50909a748b25eb3118cbc2942442208fd9017 Author: Maurice Dawson Date: Thu Oct 7 19:45:38 2010 +0100 Staging: comedi: file: Removed braces from some statement blocks Unnecessary braces in some statement blocks Signed-off-by: Maurice Dawson Signed-off-by: Greg Kroah-Hartman commit 0d688662aab9d80078be82aa5aea561346643298 Author: Ira Snyder Date: Thu Sep 30 11:46:47 2010 +0000 ste_dma40: implement support for scatterlist to scatterlist copy Now that the DMAEngine API has support for scatterlist to scatterlist copy, implement support for the STE DMA40 DMA controller. Cc: Linus Walleij Acked-by: Per Fridén Signed-off-by: Ira W. Snyder Signed-off-by: Dan Williams commit 968f19ae802fdc6b6b6b5af6fe79cf23d281be0f Author: Ira Snyder Date: Thu Sep 30 11:46:46 2010 +0000 fsldma: improved DMA_SLAVE support Now that the generic DMAEngine API has support for scatterlist to scatterlist copying, the device_prep_slave_sg() portion of the DMA_SLAVE API is no longer necessary and has been removed. However, the device_control() portion of the DMA_SLAVE API is still useful to control device specific parameters, such as externally controlled DMA transfers and maximum burst length. A special dma_ctrl_cmd has been added to enable externally controlled DMA transfers. This is currently specific to the Freescale DMA controller, but can easily be made generic when another user is found. Signed-off-by: Ira W. Snyder Signed-off-by: Dan Williams commit c14330417ef2050f4bf38ac20e125785fea14351 Author: Ira Snyder Date: Thu Sep 30 11:46:45 2010 +0000 fsldma: implement support for scatterlist to scatterlist copy Now that the DMAEngine API has support for scatterlist to scatterlist copy, implement support for the Freescale DMA controller. Signed-off-by: Ira W. Snyder Signed-off-by: Dan Williams commit a86ee03ce6f279ebe581a7a8c0c4393eaeb789ee Author: Ira Snyder Date: Thu Sep 30 11:46:44 2010 +0000 dma: add support for scatterlist to scatterlist copy This adds support for scatterlist to scatterlist DMA transfers. A similar interface is exposed by the fsldma driver (through the DMA_SLAVE API) and by the ste_dma40 driver (through an exported function). This patch paves the way for making this type of copy operation a part of the generic DMAEngine API. Futher patches will add support in individual drivers. Signed-off-by: Ira W. Snyder Signed-off-by: Dan Williams commit 9d9641ec891a53ef93a8972c7913605aeb8127c7 Merge: 5c75848 cf8eda3 Author: Mark Brown Date: Thu Oct 7 13:44:20 2010 -0700 Merge branch 'for-2.6.36' into for-2.6.37 commit 5c75848a7ca19c83c7b8afd0822bdcb716992c0c Author: Mark Brown Date: Wed Oct 6 16:18:17 2010 -0700 ASoC: Staticise CS4270 DAI It's not needed with multi-component. Signed-off-by: Mark Brown Acked-by: Liam Girdwood Acked-by: Timur Tabi commit 4c14d78e8ad3bacfe1f70cb49ae17afcd658e368 Author: Mark Brown Date: Wed Oct 6 15:54:28 2010 -0700 ASoC: Use delayed work for debounce of GPIO based jacks Rather than block the workqueue by sleeping to do the debounce use delayed work to implement the debounce time. This should also means that we extend the debounce time on each new bounce, potentially allowing shorter debounce times for clean insertions. Signed-off-by: Mark Brown Acked-by: Jarkko Nikula Acked-by: Liam Girdwood commit de535a5be53a06738409538c471a10a9de357bdd Author: Mark Brown Date: Wed Oct 6 16:20:07 2010 -0700 ASoC: Staticise AD1980 DAI It doesn't need to be exported with multi-component. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 13cd4b7f7472eea7cbc1ab34e042842fbb902160 Author: Steve French Date: Thu Oct 7 18:46:32 2010 +0000 [CIFS] Various small checkpatch cleanups Signed-off-by: Steve French commit 15a6321d1c0f8db561932cd99e1b9897981da71f Author: Rajkumar Manoharan Date: Thu Oct 7 20:58:39 2010 +0530 ath9k_hw: Fix hw reset failure with HTC driver The following commit removed DISABLE_REGWRITE_BUFFER ops. The unnecessary REGWRITE_BUFFER_FLUSH was not removed properly which is causing failure on hw reset. Author: Felix Fietkau Date: Tue Oct 5 12:03:42 2010 +0200 ath9k_hw: clean up register write buffering Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit 388ac775be95e510c2095ed6cd59422a5183a9fb Author: Johannes Berg Date: Thu Oct 7 13:11:09 2010 +0200 cfg80211: constify WDS address There's no need for the WDS peer address to not be const, so make it const. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 43b19952de54b0fccfcdc5968891ebe550367fe8 Author: Johannes Berg Date: Thu Oct 7 13:10:30 2010 +0200 nl80211: use new genl helpers for WDS Bill Jordan's patch to allow setting the WDS peer crossed with my patch removing all the boilerplate code in nl80211, and consequently he didn't make use of it yet. Fix that. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 7b99a7c2dab7efe7c265b66fedbf3444958ebfe3 Author: Johannes Berg Date: Thu Oct 7 12:55:24 2010 +0200 mac80211: fix sw scan locking The recent scan overhaul broke locking because now we can jump to code that attempts to unlock, while we don't have the mutex held. Fix this by holding the mutex around all the relevant code. Reported-by: Ben Greear Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 4b34d432b0fcff422304de4eb49d6da861fe335c Author: Juuso Oikarinen Date: Thu Oct 7 10:16:42 2010 +0300 wl1271: Support FEM autodetection In the NVS/INI-parameters for the driver/firmware there is the FEM (front end module) selection option, which may configure the hardware FEM via autodetection or manual selection. So far, there has been support for manual selection only. Add support for FEM autodetection. Signed-off-by: Juuso Oikarinen Signed-off-by: John W. Linville commit edbe4073a84713c1c01a3f37fb880f151d0a5b68 Merge: 7573eac cf9768d6 Author: John W. Linville Date: Thu Oct 7 14:40:26 2010 -0400 Merge branch 'wireless-next-2.6' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-2.6 commit 7573eac762af253e0b61b60cce34ab80f2dd45c7 Merge: a6d27d2 4efe7f5 Author: John W. Linville Date: Thu Oct 7 14:39:03 2010 -0400 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 commit 0eb8a132c449c755b7a3f18f33365b2040c47347 Author: Jeff Layton Date: Wed Oct 6 19:51:12 2010 -0400 cifs: add "multiuser" mount option This allows someone to declare a mount as a multiuser mount. Multiuser mounts also imply "noperm" since we want to allow the server to handle permission checking. It also (for now) requires Kerberos authentication. Eventually, we could expand this to other authtypes, but that requires a scheme to allow per-user credential stashing in some form. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 9d002df492b14c690425d9785530371b6c1ccbca Author: Jeff Layton Date: Wed Oct 6 19:51:11 2010 -0400 cifs: add routines to build sessions and tcons on the fly This patch is rather large, but it's a bit difficult to do piecemeal... For non-multiuser mounts, everything will basically work as it does today. A call to cifs_sb_tlink will return the "master" tcon link. Turn the tcon pointer in the cifs_sb into a radix tree that uses the fsuid of the process as a key. The value is a new "tcon_link" struct that contains info about a tcon that's under construction. When a new process needs a tcon, it'll call cifs_sb_tcon. That will then look up the tcon_link in the radix tree. If it exists and is valid, it's returned. If it doesn't exist, then we stuff a new tcon_link into the tree and mark it as pending and then go and try to build the session/tcon. If that works, the tcon pointer in the tcon_link is updated and the pending flag is cleared. If the construction fails, then we set the tcon pointer to an ERR_PTR and clear the pending flag. If the radix tree is searched and the tcon_link is marked pending then we go to sleep and wait for the pending flag to be cleared. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit af9a2d006611124eb1de9d7fee160b25b252ad98 Author: Simon Guinot Date: Thu Oct 7 16:38:50 2010 +0200 [ARM] Kirkwood: add LED support for netxbig_v2 boards Signed-off-by: Simon Guinot Signed-off-by: Nicolas Pitre commit e59f2bac15042eb744851bcf866f18dadc3091c6 Author: Chris Wilson Date: Thu Oct 7 17:28:15 2010 +0100 drm/i915: Wait for pending flips on the GPU Currently, if a batch buffer refers to an object with a pending flip, then we sleep until that pending flip is completed (unpinned and signalled). This is so that a flip can be queued and the user can continue rendering to the backbuffer oblivious to whether the buffer is still pinned as the scan out. (The kernel arbitrating at the last moment to stall the batch and wait until the buffer is unpinned and replaced as the front buffer.) As we only have a queue depth of 1, we can simply wait for the current pending flip to complete and continue rendering. We can achieve this with a single WAIT_FOR_EVENT command inserted into the ring buffer prior to executing the batch, *without* stalling the client. Signed-off-by: Chris Wilson commit 2446783250fc12ba9bc39771e04988692742ed90 Author: Simon Guinot Date: Thu Oct 7 16:38:49 2010 +0200 leds: add LED driver for Big Network series LEDs This patch add a LED class driver for LEDs found on the LaCie 2Big and 5Big Network v2 boards. The LEDs are wired to a CPLD and are controlled through a GPIO extension bus. Signed-off-by: Simon Guinot Signed-off-by: Nicolas Pitre commit e5971bbc1caf0ccbab3fea74fe37abb649d1c7cf Author: Simon Guinot Date: Thu Oct 7 16:35:40 2010 +0200 leds: leds-ns2: fix private driver data storage dev_set_drvdata() can't be used to set the driver private data pointer. This would overwrite the led classdev object previously registered by led_classdev_register(). Note that despite this mistake, the driver work fine because led_dat and led_dat->cdev are at the same memory address. Signed-off-by: Simon Guinot Signed-off-by: Nicolas Pitre commit ee621dd619b9a85eced150fc06e352fef54cfda0 Author: Jean-Christophe PLAGNIOL-VILLARD Date: Sun Aug 8 06:21:33 2010 +0200 net: atmel_macb Kconfig: remove long dependency line Many Atmel SOC are embedding a MACB controller. This patch removes the long dependency line for this Atmel MACB ethernet driver configuration entry. The HAVE_NET_MACB configuration option is located in the net Kconfig file as it may be setup by ARM/AT91 and AVR32 chips. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: David Miller Cc: Haavard Skinnemoen Acked-by: Nicolas Ferre Acked-by: Andrew Victor commit cb809b1a5ebffca8cf0314b788919989e8e4ab5f Author: Greg Ungerer Date: Tue Sep 21 20:39:40 2010 +1000 AT91: fix use of clock disable on idle for AT91x40 devices The simpler AT91x40 processors do not have the same power management controller as the new AT91 devices. They do have a simpler power controller module that we can use to disable the CPU clock at idle time. Add code to support that. Signed-off-by: Greg Ungerer Acked-by: Jean-Christophe PLAGNIOL-VILLARD Acked-by: Nicolas Ferre commit a6e016f19d393fbe4e040bee8155b03b840fa689 Author: Jean-Christophe PLAGNIOL-VILLARD Date: Tue Sep 21 18:01:37 2010 +0200 AT91: at91sam9g20ek: merge 2mmc version in one board The board-sam9g20ek-2slot-mmc.c was a revision of the at91sam9g20ek since board revision C. It contains 2 sd/mmc slots. This merge keep the support of the old machine ID MACH_AT91SAM9G20EK_2MMC for backward compatibility. Now we use the ATAG to pass the hardware functionality to kernel with this board revision encoding bit 0: 0 => 1 sd/mmc slot 1 => 2 sd/mmc slots connectors (board from revision C) system_rev tested on Barebox commit d8f3ee103a9f4bd Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Nicolas Ferre commit 9a400da84ffe7205b9921c87ac24069217442c84 Author: Nicolas Ferre Date: Thu Jul 1 10:55:45 2010 +0200 AT91: Correct configuration define value The MTD nand driver for Atmel chips is atmel_nand and not at91_nand anymore. Change wrong configuration variables that were remaining. Reported-by: Christoph Egger Signed-off-by: Nicolas Ferre commit 67dd8995fd60bab890b9c3c4cd3e9f00d5811c25 Author: Jean-Christophe PLAGNIOL-VILLARD Date: Wed Sep 22 07:55:59 2010 +0200 AT91: at91sam9m10g45ek: use the right machine id Today the board use 2 machines id AT91SAM9G45EKES and AT91SAM9M10G45EK now will use only AT91SAM9M10G45EK. The other boards revision will be specified via system_rev. for 9g45ekes, m10g45ekes and m10g45ek boards and revisions Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Patrice Vilchez Acked-by: Nicolas Ferre commit 6506cf6ce68d78a5470a8360c965dafe8e4b78e3 Author: Peter Zijlstra Date: Thu Sep 16 17:50:31 2010 +0200 sched: fix RCU lockdep splat from task_group() This addresses the following RCU lockdep splat: [0.051203] CPU0: AMD QEMU Virtual CPU version 0.12.4 stepping 03 [0.052999] lockdep: fixing up alternatives. [0.054105] [0.054106] =================================================== [0.054999] [ INFO: suspicious rcu_dereference_check() usage. ] [0.054999] --------------------------------------------------- [0.054999] kernel/sched.c:616 invoked rcu_dereference_check() without protection! [0.054999] [0.054999] other info that might help us debug this: [0.054999] [0.054999] [0.054999] rcu_scheduler_active = 1, debug_locks = 1 [0.054999] 3 locks held by swapper/1: [0.054999] #0: (cpu_add_remove_lock){+.+.+.}, at: [] cpu_up+0x42/0x6a [0.054999] #1: (cpu_hotplug.lock){+.+.+.}, at: [] cpu_hotplug_begin+0x2a/0x51 [0.054999] #2: (&rq->lock){-.-...}, at: [] init_idle+0x2f/0x113 [0.054999] [0.054999] stack backtrace: [0.054999] Pid: 1, comm: swapper Not tainted 2.6.35 #1 [0.054999] Call Trace: [0.054999] [] lockdep_rcu_dereference+0x9b/0xa3 [0.054999] [] task_group+0x7b/0x8a [0.054999] [] set_task_rq+0x13/0x40 [0.054999] [] init_idle+0xd2/0x113 [0.054999] [] fork_idle+0xb8/0xc7 [0.054999] [] ? mark_held_locks+0x4d/0x6b [0.054999] [] do_fork_idle+0x17/0x2b [0.054999] [] native_cpu_up+0x1c1/0x724 [0.054999] [] ? do_fork_idle+0x0/0x2b [0.054999] [] _cpu_up+0xac/0x127 [0.054999] [] cpu_up+0x55/0x6a [0.054999] [] kernel_init+0xe1/0x1ff [0.054999] [] kernel_thread_helper+0x4/0x10 [0.054999] [] ? restore_args+0x0/0x30 [0.054999] [] ? kernel_init+0x0/0x1ff [0.054999] [] ? kernel_thread_helper+0x0/0x10 [0.056074] Booting Node 0, Processors #1lockdep: fixing up alternatives. [0.130045] #2lockdep: fixing up alternatives. [0.203089] #3 Ok. [0.275286] Brought up 4 CPUs [0.276005] Total of 4 processors activated (16017.17 BogoMIPS). The cgroup_subsys_state structures referenced by idle tasks are never freed, because the idle tasks should be part of the root cgroup, which is not removable. The problem is that while we do in-fact hold rq->lock, the newly spawned idle thread's cpu is not yet set to the correct cpu so the lockdep check in task_group(): lockdep_is_held(&task_rq(p)->lock) will fail. But this is a chicken and egg problem. Setting the CPU's runqueue requires that the CPU's runqueue already be set. ;-) So insert an RCU read-side critical section to avoid the complaint. Signed-off-by: Peter Zijlstra Signed-off-by: Paul E. McKenney commit 4ee0a603926cad973e4d384f48c5e279a0fd4118 Author: Dongdong Deng Date: Tue Sep 28 16:32:43 2010 +0800 rcu: using ACCESS_ONCE() to observe the jiffies_stall/rnp->qsmask value Using ACCESS_ONCE() to observe the jiffies_stall/rnp->qsmask value due to the caller didn't hold the root_rcu/rnp node's lock. Although use without ACCESS_ONCE() is safe due to the value loaded being used but once, the ACCESS_ONCE() is a good documentation aid -- the variables are being loaded without the services of a lock. Signed-off-by: Dongdong Deng CC: Dipankar Sarma CC: Paul E. McKenney Signed-off-by: Paul E. McKenney commit b0a0f667a349247bd7f05f806b662a25653822bc Author: Paul E. McKenney Date: Wed Oct 6 17:32:51 2010 -0700 sched: suppress RCU lockdep splat in task_fork_fair > =================================================== > [ INFO: suspicious rcu_dereference_check() usage. ] > --------------------------------------------------- > /home/greearb/git/linux.wireless-testing/kernel/sched.c:618 invoked rcu_dereference_check() without protection! > > other info that might help us debug this: > > rcu_scheduler_active = 1, debug_locks = 1 > 1 lock held by ifup/23517: > #0: (&rq->lock){-.-.-.}, at: [] task_fork_fair+0x3b/0x108 > > stack backtrace: > Pid: 23517, comm: ifup Not tainted 2.6.36-rc6-wl+ #5 > Call Trace: > [] ? printk+0xf/0x16 > [] lockdep_rcu_dereference+0x74/0x7d > [] task_group+0x6d/0x79 > [] set_task_rq+0xe/0x57 > [] task_fork_fair+0x57/0x108 > [] sched_fork+0x82/0xf9 > [] copy_process+0x569/0xe8e > [] do_fork+0x118/0x262 > [] ? do_page_fault+0x16a/0x2cf > [] ? up_read+0x16/0x2a > [] sys_clone+0x1b/0x20 > [] ptregs_clone+0x15/0x30 > [] ? sysenter_do_call+0x12/0x38 Here a newly created task is having its runqueue assigned. The new task is not yet on the tasklist, so cannot go away. This is therefore a false positive, suppress with an RCU read-side critical section. Reported-by: Ben Greear Tested-by: Ben Greear Date: Wed Oct 6 17:40:06 2010 -0400 staging: brcm80211: remove ';' after while() in macros. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 76c06459189fdc643165c58ed7b2f3c590eecbb2 Author: Jason Cooper Date: Wed Oct 6 17:40:05 2010 -0400 staging: brcm80211: wl_cfg80211.c: fix 'assignment in if condition' Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit ada541f0cb03eb3c39016597470bd0aaaa1c6486 Author: Marek Belisko Date: Thu Oct 7 14:36:37 2010 +0200 staging: ft1000-usb: Add correct procedure for fw image downloading. call request_firmware instead of trying to open the file directly from the kernel driver. Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 95624b2d75617bd16ffe4d698b645f468fbd0f20 Author: Omar Ramirez Luna Date: Thu Oct 7 00:45:10 2010 -0500 staging: tidspbridge: bind driver name to device name Since the device name has changed use the new name to bind the driver to it. Signed-off-by: Omar Ramirez Luna Signed-off-by: Greg Kroah-Hartman commit b3164c71e27e58ef1c0b679e816d643cc1a1553e Author: nohee ko Date: Wed Oct 6 11:07:13 2010 -0700 staging: brcm80211: bug fix - connection status report Added connection status report for the case connection fails. Originally this logic was missing. Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 194c60720dd96039ba46743743c4d8bc52d56364 Author: nohee ko Date: Wed Oct 6 11:56:28 2010 -0700 staging: brcm80211: removed duplicated file, linux_osl.c Removed duplicated file, linux_osl.c from brcmfmac. linux_osl.c under brcm80211/util/ will be shared between softmac & fullmac drivers Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit e968d0950439c757b890f2a9543d9d17acf04be8 Author: Michael Hennerich Date: Thu Oct 7 14:24:33 2010 +0200 staging: iio: ring_generic: provide IIO_CONST_ATTR_SCAN_EL_TYPE_WITH_SHIFT Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 3ba2e4939d1d0426466de755a2435d2cbb311f8e Author: Michael Hennerich Date: Thu Oct 7 16:14:10 2010 +0200 staging: iio: adc: ad799x drop in_precision in favor of new in_type -drop in_precision in favor of new in_type - This also fixes the bug from the scan elements move (as a side effect) -add sign and storagebits to struct ad799x_chip_info -properly mask the results based on ad799x_chip_info:bits staging: iio: adc: ad799x misc fixed per iio list review remove new line remove storagebits from struct ad799x_chip_info use defined storagebits value for in_type Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit a7861ff082fe75fd7d7fd22c87c37c8425674ae2 Author: Jonathan Cameron Date: Thu Oct 7 13:10:21 2010 +0100 staging: iio: max1363 fix bug due to scan_element directory move. The device found passed to the attr functions is that of the ring buffer, not the the iio_dev so we need to bounce through one more hop to get the right address. Reported-by: Michael Hennerich Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 7aa3baeb976700971acad518b3bfaad5fe1afd54 Author: Jonathan Cameron Date: Thu Oct 7 13:10:20 2010 +0100 staging: iio: sca3000 fix bug due to scan_element directory move. The device found passed to the attr functions is that of the ring buffer, not the the iio_dev so we need to bounce through one more hop to get the right address. Reported-by: Michael Hennerich Signed-off-by: Jonathan Cameron Acked-by: Michael Hennerich Signed-off-by: Greg Kroah-Hartman commit 0986452eb49771378f1cabee46c789acb088494c Author: Jonathan Cameron Date: Thu Oct 7 13:10:19 2010 +0100 staging: iio: timestamp_en naming typo fix. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit ba6584946e85d477311ddf30a072fbc45572798c Author: Michael Hennerich Date: Wed Oct 6 17:49:02 2010 +0200 staging: iio: adc: max1363: remove unused variable Signed-off-by: Michael Hennerich Signed-off-by: Greg Kroah-Hartman commit d0a530441ea9f2f10172c7f31a007f6b23d3fc19 Author: Michael Hennerich Date: Thu Oct 7 13:27:37 2010 +0200 staging: iio: iio_ring_rip_outer return immediately if rip_lots returns <= 0 Acked-by: Jonathan Cameron Signed-off-by: Michael Hennerich Signed-off-by: Greg Kroah-Hartman commit 1144182a8757f2a1f909f0c592898aaaf80884fc Author: Paul E. McKenney Date: Wed Oct 6 17:15:35 2010 -0700 net: suppress RCU lockdep false positive in sock_update_classid > =================================================== > [ INFO: suspicious rcu_dereference_check() usage. ] > --------------------------------------------------- > include/linux/cgroup.h:542 invoked rcu_dereference_check() without protection! > > other info that might help us debug this: > > > rcu_scheduler_active = 1, debug_locks = 0 > 1 lock held by swapper/1: > #0: (net_mutex){+.+.+.}, at: [] > register_pernet_subsys+0x1f/0x47 > > stack backtrace: > Pid: 1, comm: swapper Not tainted 2.6.35.4-28.fc14.x86_64 #1 > Call Trace: > [] lockdep_rcu_dereference+0xaa/0xb3 > [] sock_update_classid+0x7c/0xa2 > [] sk_alloc+0x6b/0x77 > [] __netlink_create+0x37/0xab > [] ? rtnetlink_rcv+0x0/0x2d > [] netlink_kernel_create+0x74/0x19d > [] ? __mutex_lock_common+0x339/0x35b > [] rtnetlink_net_init+0x2e/0x48 > [] ops_init+0xe9/0xff > [] register_pernet_operations+0xab/0x130 > [] register_pernet_subsys+0x2e/0x47 > [] rtnetlink_init+0x53/0x102 > [] netlink_proto_init+0x126/0x143 > [] ? netlink_proto_init+0x0/0x143 > [] do_one_initcall+0x72/0x186 > [] kernel_init+0x23b/0x2c9 > [] kernel_thread_helper+0x4/0x10 > [] ? restore_args+0x0/0x30 > [] ? kernel_init+0x0/0x2c9 > [] ? kernel_thread_helper+0x0/0x10 The sock_update_classid() function calls task_cls_classid(current), but the calling task cannot go away, so there is no danger of the associated structures disappearing. Insert an RCU read-side critical section to suppress the false positive. Reported-by: Subrata Modak Signed-off-by: Paul E. McKenney commit fb50a83d8c7cf8c6548166fe6775ad4f41e5ab72 Author: Roland Dreier Date: Thu Oct 7 09:54:53 2010 -0700 MAINTAINERS: Hand off SCSI RDMA Protocol (SRP) initiator to Dave Dillow Signed-off-by: Roland Dreier commit a6d27d2ac89359f84c1a559b5530967ff671d269 Author: John W. Linville Date: Thu Oct 7 11:31:56 2010 -0400 Revert "rtl8180: use NAPI for bottom-half processing" This reverts commit 030725d2c7c1fafec7ede618647bf30ed79601f0. This commit relies on commit 5ed3bc7288487bd4f891f420a07319e0b538b4fe ("mac80211: use netif_receive_skb in ieee80211_tx_status callpath") Unfortunately not all drivers are calling ieee80211_tx_status from a compatible context, so that commit needs to be reverted in 2.6.36. Signed-off-by: John W. Linville commit df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 Author: David Howells Date: Thu Oct 7 14:08:55 2010 +0100 Fix IRQ flag handling naming Fix the IRQ flag handling naming. In linux/irqflags.h under one configuration, it maps: local_irq_enable() -> raw_local_irq_enable() local_irq_disable() -> raw_local_irq_disable() local_irq_save() -> raw_local_irq_save() ... and under the other configuration, it maps: raw_local_irq_enable() -> local_irq_enable() raw_local_irq_disable() -> local_irq_disable() raw_local_irq_save() -> local_irq_save() ... This is quite confusing. There should be one set of names expected of the arch, and this should be wrapped to give another set of names that are expected by users of this facility. Change this to have the arch provide: flags = arch_local_save_flags() flags = arch_local_irq_save() arch_local_irq_restore(flags) arch_local_irq_disable() arch_local_irq_enable() arch_irqs_disabled_flags(flags) arch_irqs_disabled() arch_safe_halt() Then linux/irqflags.h wraps these to provide: raw_local_save_flags(flags) raw_local_irq_save(flags) raw_local_irq_restore(flags) raw_local_irq_disable() raw_local_irq_enable() raw_irqs_disabled_flags(flags) raw_irqs_disabled() raw_safe_halt() with type checking on the flags 'arguments', and then wraps those to provide: local_save_flags(flags) local_irq_save(flags) local_irq_restore(flags) local_irq_disable() local_irq_enable() irqs_disabled_flags(flags) irqs_disabled() safe_halt() with tracing included if enabled. The arch functions can now all be inline functions rather than some of them having to be macros. Signed-off-by: David Howells [X86, FRV, MN10300] Signed-off-by: Chris Metcalf [Tile] Signed-off-by: Michal Simek [Microblaze] Tested-by: Catalin Marinas [ARM] Acked-by: Thomas Gleixner Acked-by: Haavard Skinnemoen [AVR] Acked-by: Tony Luck [IA-64] Acked-by: Hirokazu Takata [M32R] Acked-by: Greg Ungerer [M68K/M68KNOMMU] Acked-by: Ralf Baechle [MIPS] Acked-by: Kyle McMartin [PA-RISC] Acked-by: Paul Mackerras [PowerPC] Acked-by: Martin Schwidefsky [S390] Acked-by: Chen Liqin [Score] Acked-by: Matt Fleming [SH] Acked-by: David S. Miller [Sparc] Acked-by: Chris Zankel [Xtensa] Reviewed-by: Richard Henderson [Alpha] Reviewed-by: Yoshinori Sato [H8300] Cc: starvik@axis.com [CRIS] Cc: jesper.nilsson@axis.com [CRIS] Cc: linux-cris-kernel@axis.com commit ca4d3e6746bdcfccb517349bce2d2c5b5614fb6f Author: David Howells Date: Thu Oct 7 14:08:54 2010 +0100 MIPS: Add missing #inclusions of Add missing #inclusions of to a whole bunch of files that should really include it. Note that this can replace #inclusions of . This is required for the patch to sort out irqflags handling function naming to compile on MIPS. The problem is that these files require access to things like setup_irq() - which isn't available by #including Signed-off-by: David Howells Acked-by: Ralf Baechle commit 476c32c47a84fcf8033b93c588761405fefb3980 Author: David Howells Date: Thu Oct 7 14:08:54 2010 +0100 smc91x: Add missing #inclusion of Add missing #inclusion of . Without it, the following error can occur with the irqflags fixup patches applied: drivers/net/smc91x.c: In function 'smc_probe': drivers/net/smc91x.c:1987:2: error: implicit declaration of function 'irq_canonicalize' Signed-off-by: David Howells Acked-by: Nicolas Pitre commit bcdb714c8856c76383ca455294f0074168705eab Author: David Howells Date: Thu Oct 7 14:08:53 2010 +0100 Drop a couple of unnecessary asm/system.h inclusions Drop inclusions of asm/system.h from linux/hardirq.h and linux/list.h as they're no longer required and prevent the M68K arch's IRQ flag handling macros from being made into inlined functions due to circular dependencies. Signed-off-by: David Howells Acked-by: Greg Ungerer Acked-by: Geert Uytterhoeven commit d8b5fc01683c66060edc202d6bb5635365822181 Author: David Howells Date: Thu Oct 7 14:08:52 2010 +0100 SH: Add missing consts to sys_execve() declaration Add missing consts to the sys_execve() declaration which result in the following error: arch/sh/kernel/process_32.c:303: error: conflicting types for 'sys_execve' /warthog/nfs/linux-2.6-fscache/arch/sh/include/asm/syscalls_32.h:24: error: previous declaration of 'sys_execve' was here Signed-off-by: David Howells commit 3b139cdb373282dfa72316aa56887371e97cafe8 Author: David Howells Date: Thu Oct 7 14:08:52 2010 +0100 Blackfin: Rename IRQ flags handling functions Rename h/w IRQ flags handling functions to be in line with what is expected for the irq renaming patch. This renames local_*_hw() to hard_local_*() using the following perl command: perl -pi -e 's/local_irq_(restore|enable|disable)_hw/hard_local_irq_\1/ or s/local_irq_save_hw([_a-z]*)[(]flags[)]/flags = hard_local_irq_save\1()/' `find arch/blackfin/ -name "*.[ch]"` and then fixing up asm/irqflags.h manually. Additionally, arch/hard_local_save_flags() and arch/hard_local_irq_save() both return the flags rather than passing it through the argument list. Signed-off-by: David Howells commit 5c74874bc9a838b185fe463153e63f7d895ebb77 Author: David Howells Date: Thu Oct 7 14:08:51 2010 +0100 Blackfin: Add missing dep to asm/irqflags.h Add a missing dependency (mach/blackfin.h) to asm/irqflags.h so that bfin_read_IMASK() can be used by inline functions. Signed-off-by: David Howells commit db36b906fefa5b95039bd418bc354ffc9b141020 Author: David Howells Date: Thu Oct 7 14:08:50 2010 +0100 Blackfin: Rename DES PC2() symbol to avoid collision Rename the PC2() symbol in the generic DES crypto module to be prefixed with DES_ to avoid collision with arch code (Blackfin in this case). Signed-off-by: David Howells Signed-off-by: Mike Frysinger commit f3441945da3a93ee4bef923628f280ad114cf49f Author: David Howells Date: Thu Oct 7 14:08:50 2010 +0100 Blackfin: Split the BF532 BFIN_*_FIO_FLAG() functions to their own header Split the BF532 machine type BFIN_*_FIO_FLAG() functions to their own header file to avoid circular #include problems as these functions require IRQ flag handling, which requires asm/blackfin.h, which otherwise requires the header file that defines these functions. For good measure, also get rid of the inclusion of asm/blackfin.h from mach/cdefBF532.h (which is circular) and defBF532.h (which is included by asm/blackfin.h before including this header). Signed-off-by: David Howells commit 3dcc1e7f9fd48f20beefd41a684cd471a96565c5 Author: David Howells Date: Thu Oct 7 14:08:49 2010 +0100 Blackfin: Split PLL code from mach-specific cdef headers Split the PLL control code from the Blackfin machine-specific cdef headers so that the irqflags functions can be renamed without incurring a header loop. Signed-off-by: David Howells commit c2873e9633fe908dccd36dbb1d370e9c59a1ca62 Author: Keith Packard Date: Thu Oct 7 09:20:12 2010 +0100 drm/i915: Free hardware status page on unload when physically mapped A physically mapped hardware status page is allocated at driver load time but was never freed. Call the existing code to free this page at driver unload time on hardware which uses this kind. Signed-off-by: Keith Packard [ickle: call before tearing down registers on KMS-only path, as pointed out by Dave Airlie] Signed-off-by: Chris Wilson Cc: stable@kernel.org commit 556ef63255f1a6f82910a637c4164dbf7d3d1af2 Merge: d4f8f21 cb655d0 Author: Ingo Molnar Date: Thu Oct 7 09:43:38 2010 +0200 Merge commit 'v2.6.36-rc7' into core/rcu Merge reason: Update from -rc3 to -rc7. Signed-off-by: Ingo Molnar commit d4f8f217b8a5d5bd02af979650418dca4caec472 Merge: 2dfbf4d 773e3f9 Author: Ingo Molnar Date: Thu Oct 7 09:43:11 2010 +0200 Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-2.6-rcu into core/rcu commit b25ebfd21b03b3b59c1c7a7e0c597fd28286bb10 Author: Peter Waskiewicz Date: Tue Oct 5 01:27:49 2010 +0000 ixgbe: Use affinity_hint when Flow Director is enabled Use the new infrastructure to balance interrupts for flow alignment when ATR or Flow Director are enabled. Signed-off-by: Peter P Waskiewicz Jr Tested-by: Stephen Ko Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 9deec17f9fe260f1b6467748fe5e16feea8e98f0 Author: Martin Schwidefsky Date: Fri Oct 1 11:17:13 2010 +0000 drivers/net/stmmac/: add HAS_IOMEM dependency The stmmac driver does not compile on s390: drivers/net/stmmac/stmmac_main.c: In function 'stmmac_adjust_link': drivers/net/stmmac/stmmac_main.c:210: error: implicit declaration of function 'readl' drivers/net/stmmac/stmmac_main.c:263: error: implicit declaration of function 'writel' drivers/net/stmmac/stmmac_main.c: In function 'stmmac_dvr_probe': drivers/net/stmmac/stmmac_main.c:1674: error: implicit declaration of function 'ioremap' drivers/net/stmmac/stmmac_main.c:1674: warning: assignment makes pointer from integer without a cast drivers/net/stmmac/stmmac_main.c:1761: error: implicit declaration of function 'iounmap' make[3]: *** [drivers/net/stmmac/stmmac_main.o] Error 1 Signed-off-by: Martin Schwidefsky Cc: Giuseppe CAVALLARO Cc: David S. Miller Cc: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit 3d3211ef5cf7558d289d1a1efbef8c45595639aa Author: John Fastabend Date: Wed Oct 6 23:35:15 2010 -0700 net: netif_set_real_num_rx_queues may cap num_rx_queues at init time Do not set num_rx_queues in netif_set_real_num_rx_queues() some drivers will increase the real_num_rx_queues later due to a feature changes or available interrupts increasing. By setting num_rx_queues here this ends up creating a cap on the number of rx queues available. For example the ixgbe driver sets the max number of queues it intends to use ever then sets the current number in use with the netif_set_num_{rx|tx}_queues calls. With the current implementation the number of rx queues gets limited so when a feature such as DCB or FCoE is enabled the queues are no longer available. kobjects will only be allocated for real_num_rx_queues so the waste in memory is minimal. Signed-off-by: John Fastabend Signed-off-by: Jeff Kirsher Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit c2dddf941409635601e56c1990c5ab0bd395742c Author: Dan Carpenter Date: Mon Oct 4 09:24:59 2010 +0000 eicon: make buffer larger In diva_mnt_add_xdi_adapter() we do this: strcpy (clients[id].drvName, tmp); strcpy (clients[id].Dbg.drvName, tmp); The "clients[id].drvName" is a 128 character buffer and "clients[id].Dbg.drvName" was originally a 16 character buffer but I've changed it to 128 as well. We don't actually use 128 characters but we do use more than 16. I've also changed the size of "tmp" to 128 characters instead of 256. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller commit 1f4f0f645cc1d7f1187fcdb0ac22c2e69bd68050 Author: stephen hemminger Date: Tue Oct 5 04:24:09 2010 +0000 dccp: Kill dead code and add static markers. Remove dead code and make some functions static. Compile tested only. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 10e7e9c44d442275951d1cfc892c1c6606c85c94 Author: Denis Kirjanov Date: Wed Oct 6 03:59:56 2010 +0000 sundance: Drop legacy _COMPAT_WITH_OLD_KERNEL includes Drop legacy includes since 2.4.x Signed-off-by: Denis Kirjanov Signed-off-by: David S. Miller commit 9c6d5e5537e3997c47b65925a235392c1968fb51 Author: John Heffner Date: Wed Oct 6 21:18:02 2010 -0700 TCP: Fix setting of snd_ssthresh in tcp_mtu_probe_success This looks like a simple typo that has gone unnoticed for some time. The impact is relatively low but it's clearly wrong. Signed-off-by: John Heffner Signed-off-by: David S. Miller commit 69259abb64d4da77273bf59accfc9fa79e7165f4 Merge: dd53df2 12e9447 Author: David S. Miller Date: Wed Oct 6 19:39:31 2010 -0700 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 Conflicts: drivers/net/pcmcia/pcnet_cs.c net/caif/caif_socket.c commit dd53df265b1ee7a1fbbc76bb62c3bec2383bbd44 Author: Krzysztof Oledzki Date: Thu Sep 30 06:19:04 2010 +0000 bonding: add Speed/Duplex information to /proc/net/bonding/bond Effect: Slave Interface: eth5 MII Status: up Speed: 10000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: XX:XX:XX:XX:XX:XX Slave queue ID: 0 Signed-off-by: Krzysztof Piotr Oledzki Signed-off-by: David S. Miller commit 767e97e1e0db0d0f3152cd2f3bd3403596aedbad Author: Eric Dumazet Date: Wed Oct 6 17:49:21 2010 -0700 neigh: RCU conversion of struct neighbour This is the second step for neighbour RCU conversion. (first was commit d6bf7817 : RCU conversion of neigh hash table) neigh_lookup() becomes lockless, but still take a reference on found neighbour. (no more read_lock()/read_unlock() on tbl->lock) struct neighbour gets an additional rcu_head field and is freed after an RCU grace period. Future work would need to eventually not take a reference on neighbour for temporary dst (DST_NOCACHE), but this would need dst->_neighbour to use a noref bit like we did for skb->_dst. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 43695d095dfaf266a8a940d9b07eed7f46076b49 Author: Sunil Mushran Date: Wed Oct 6 17:55:09 2010 -0700 ocfs2/cluster: Show per region heartbeat elapsed time This patch adds a per region debugfs file that shows the elapsed time since the time the o2hb timer was last armed. Signed-off-by: Sunil Mushran commit d6aa1c7c9e4b48081c2302e14b0f857017461efd Author: Sunil Mushran Date: Wed Oct 6 18:50:50 2010 -0700 ocfs2/cluster: Add mlogs for heartbeat up/down events This patch adds mlogs for o2hb up and down events. Signed-off-by: Sunil Mushran commit 1f28530537f106f83e5cf7ef0193075667b6d520 Author: Sunil Mushran Date: Wed Oct 6 17:55:12 2010 -0700 ocfs2/cluster: Create debugfs dir/files for each region This patch creates debugfs directory for each o2hb region and creates files to expose the region number and the per region live node bitmap. This information will be useful in debugging cluster issues. Signed-off-by: Sunil Mushran commit a6de013654b4839c8609e26241ebd9eb1ecc52e6 Author: Sunil Mushran Date: Wed Oct 6 17:55:13 2010 -0700 ocfs2/cluster: Create debugfs files for live, quorum and failed region bitmaps This patch prints the bitmaps of live, quorum and failed regions. This information will be useful in debugging cluster issues. Signed-off-by: Sunil Mushran commit b1c5ebfbe398b3360614a4788c02061cd153e60a Author: Sunil Mushran Date: Thu Oct 7 17:05:52 2010 -0700 ocfs2/cluster: Maintain bitmap of failed regions In global heartbeat mode, we track the bitmap of regions that have seen heartbeat timeouts. We fence if the number of such regions is greater than or equal to half the number of quorum regions. Signed-off-by: Sunil Mushran commit 43182d2a799865872041b6e4d8387131e9462f56 Author: Sunil Mushran Date: Wed Oct 6 17:55:16 2010 -0700 ocfs2/cluster: Maintain bitmap of quorum regions o2hb allows online adding of regions. However, a newly added region is not used in quorum calculations unless it has been added on all nodes. This patch tracks a bitmap of such quorum regions. Signed-off-by: Sunil Mushran commit e7d656baf6607a0775f4ca85464a4ead306741e5 Author: Sunil Mushran Date: Wed Oct 6 17:55:18 2010 -0700 ocfs2/cluster: Track bitmap of live heartbeat regions A heartbeat region becomes live (or active) after a fixed number of (steady) iterations. Signed-off-by: Sunil Mushran commit 536f0741f324f116d8b059295999945a2dac56bc Author: Sunil Mushran Date: Thu Oct 7 17:03:07 2010 -0700 ocfs2/cluster: Track number of global heartbeat regions In global heartbeat mode, we have a upper limit for the number of active regions. This patch adds the facility to track the number of active global heartbeat regions and fails to start heartbeat if the number exceeds the maximum. Signed-off-by: Sunil Mushran commit 823a637ae933fde8fdb280612dd3ff9912e301e3 Author: Sunil Mushran Date: Wed Oct 6 17:55:21 2010 -0700 ocfs2/cluster: Maintain live node bitmap per heartbeat region Currently we track a global livenode bitmap that keeps track of all nodes that are heartbeating in all regions. This patch adds the ability to track the livenode bitmap on a per region basis. We will use this facility in a later patch to allow us to withstand the loss of a minority number of regions. Signed-off-by: Sunil Mushran commit 8ca8b0bbd841b6bcd8ac05e51b0143aa61cfeff3 Author: Sunil Mushran Date: Thu Oct 7 17:01:27 2010 -0700 ocfs2/cluster: Reorganize o2hb debugfs init o2hb debugfs handling is reorganized to allow for easy expansion. Signed-off-by: Sunil Mushran commit 0e105d37c2adb19cb777aa6701a866f211764a30 Author: Sunil Mushran Date: Thu Oct 7 17:00:16 2010 -0700 ocfs2/cluster: Check slots for unconfigured live nodes o2hb currently checks slots for configured nodes only. This patch makes it check the slots for the live nodes too to take care of a race in which a node is removed from the configuration but not from the live map. Signed-off-by: Sunil Mushran commit 39a298563e0619b1b6e2e0974e58801de780621c Author: Sunil Mushran Date: Thu Oct 7 17:30:17 2010 -0700 ocfs2/cluster: Print messages when adding/removing nodes Prints messages when the user adds or removes nodes. Signed-off-by: Sunil Mushran commit 18c50cb0d3c293eabd6c2ef89c43f2a968e709ed Author: Sunil Mushran Date: Wed Oct 6 18:26:59 2010 -0700 ocfs2/cluster: Print messages when adding/removing heartbeat regions Prints messages when the user adds or removes heartbeat regions in global heartbeat mode. These messages are useful when debugging cluster related issues. Signed-off-by: Sunil Mushran commit 18cfdf1b1a8e83b09e4185c02396257ce7e7bee3 Author: Sunil Mushran Date: Thu Oct 7 16:47:03 2010 -0700 ocfs2/dlm: Add message DLM_QUERY_NODEINFO Adds new dlm message DLM_QUERY_NODEINFO that sends the attributes of all registered nodes. This message is sent if the negotiated dlm protocol is 1.1 or higher. If the information of the joining node does not match that of any existing nodes, the join domain request is rejected. Signed-off-by: Sunil Mushran commit 5f3c6d9c615770708df464c170316f83cf437242 Author: Sunil Mushran Date: Wed Oct 6 17:55:29 2010 -0700 ocfs2: Print message if user mounts without starting global heartbeat In global heartbeat mode, the heartbeat is started by the user. This patch prints an error if the user attempts to mount a volume without starting the heartbeat. Signed-off-by: Sunil Mushran commit ea2034416b54700e30371f2ad6517cbb94674083 Author: Sunil Mushran Date: Sat Oct 9 10:26:23 2010 -0700 ocfs2/dlm: Add message DLM_QUERY_REGION Adds new dlm message DLM_QUERY_REGION that sends the names of all active heartbeat regions. This message is only sent in the global heartbeat mode. If the regions in the joining node do not fully match the ones in the active nodes, the join domain request is rejected. Signed-off-by: Sunil Mushran commit b3c85c4cdf77154acc940dd0f14d1fb99cbbaf75 Author: Sunil Mushran Date: Thu Oct 7 14:31:06 2010 -0700 ocfs2/cluster: Get all heartbeat regions Export function in o2hb to get a list of heartbeat regions. It also adds an upper limit to the length of the heartbeat region name. o2hb_global_heartbeat_active() currently disables global heartbeat. It will be enabled in a later patch after all the code is added. Signed-off-by: Sunil Mushran commit b1365d0bd14b912cceb424cbeed9fe939a9038e3 Author: Sunil Mushran Date: Wed Oct 6 17:55:34 2010 -0700 ocfs2/dlm: Expose dlm_protocol in dlm_state Add dlm_protocol to the list of info shown by the debugfs file, dlm_state. Signed-off-by: Sunil Mushran commit 2c442719e90a44a6982c033d69df4aae4b167cfa Author: Sunil Mushran Date: Thu Oct 7 15:23:50 2010 -0700 ocfs2: Add support for heartbeat=global mount option Adds support for heartbeat=global mount option. It ensures that the heartbeat mode passed matches the one enabled on disk. Signed-off-by: Sunil Mushran commit 98f486f23bc5b6a6fa90e1a0707b7e9fe0e7f3e4 Author: Sunil Mushran Date: Sat Oct 9 10:24:46 2010 -0700 ocfs2: Add an incompat feature flag OCFS2_FEATURE_INCOMPAT_CLUSTERINFO OCFS2_FEATURE_INCOMPAT_CLUSTERINFO allows us to use sb->s_cluster_info for both userspace and o2cb cluster stacks. It also allows us to extend cluster info to include stack flags. This patch also adds stackflags to sb->s_clusterinfo. It also introduces a clusterinfo flag OCFS2_CLUSTER_O2CB_GLOBAL_HEARTBEAT to denote the enabled global heartbeat mode. This incompat flag can be set/cleared using tunefs.ocfs2 --fs-features. The clusterinfo flag is set/cleared using tunefs.ocfs2 --update-cluster-stack. Signed-off-by: Sunil Mushran commit 54b5187b5a1ad6573ade8b18e065dda92501fc52 Author: Sunil Mushran Date: Thu Oct 7 15:26:08 2010 -0700 ocfs2/cluster: Add heartbeat mode configfs parameter Add heartbeat mode parameter to the configfs tree. This will be used to set/show the heartbeat mode. The user is free to toggle the mode between local and global as long as there is no active heartbeat region. Signed-off-by: Sunil Mushran commit cf9768d6a3f901b00fc9d8ecdf8e506d7cbcae99 Author: Wey-Yi Guy Date: Wed Oct 6 16:39:18 2010 -0700 iwlagn: add define for MODULE_FIRMWARE Adding MODULE_FIRMWARE define for 130 series of devices Signed-off-by: Wey-Yi Guy commit d9d9a5194bb96d60fc846c94c602c874802e107d Author: Wey-Yi Guy Date: Wed Oct 6 16:39:17 2010 -0700 iwlagn: fix module firmware name for 130 series device 130 series device should use firmware name with 130 in it. Signed-off-by: Wey-Yi Guy commit 0f2f930a67c763a71aacfdbc76de9a76de7d1a9e Author: Joe Perches Date: Sun Sep 5 01:52:43 2010 +0000 IB/qib: Remove unnecessary casts of private_data Signed-off-by: Joe Perches Acked-by: Ralph Campbell Signed-off-by: Roland Dreier commit 52106bd24c8d5e8a26b98ad93a755b0827029860 Author: Maciej Sosnowski Date: Wed Sep 1 13:35:35 2010 +0000 RDMA/nes: Turn carrier off on ifdown This lets the bonding driver to detect when an interface goes down. Signed-off-by: Maciej Sosnowski Signed-off-by: Chien Tung Signed-off-by: Roland Dreier commit 546add79468183f266c75c632c96e4b0029e0d96 Author: Krzysztof Piotr Oledzki Date: Wed Oct 6 14:28:22 2010 -0700 bonding: reread information about speed and duplex when interface goes up When an interface was enslaved when it was down, bonding thinks it has speed -1 even after it goes up. This leads into selecting a wrong active interface in active/backup mode on mixed 10G/1G or 1G/100M environment. before: bonding: bond0: link status definitely up for interface eth5, 100 Mbps full duplex. bonding: bond0: link status definitely up for interface eth0, 100 Mbps full duplex. after: bonding: bond0: link status definitely up for interface eth5, 10000 Mbps full duplex. bonding: bond0: link status definitely up for interface eth0, 1000 Mbps full duplex. Signed-off-by: Krzysztof Piotr Oledzki Signed-off-by: David S. Miller commit 700c2a779e6d5a60e2ef4716e75ea7f41546602f Author: Krzysztof Piotr Oledzki Date: Wed Oct 6 14:25:06 2010 -0700 bonding: print information about speed and duplex seen by the driver before: bonding: bond0: link status definitely up for interface eth5 bonding: bond0: link status definitely up for interface eth0 after: bonding: bond0: link status definitely up for interface eth5, 100 Mbps full duplex. bonding: bond0: link status definitely up for interface eth0, 100 Mbps full duplex. Signed-off-by: Krzysztof Piotr Oledzki Signed-off-by: David S. Miller commit 4f5157307652f1cbff2413b5e81ebcadd8e2524b Author: Dmitry Kravkov Date: Wed Oct 6 03:35:11 2010 +0000 bnx2x: update version to 1.60.00-1 Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 6fe8bce7b3b69835e8049106947db6b0f1f3a8d8 Author: Dmitry Kravkov Date: Wed Oct 6 03:35:03 2010 +0000 bnx2x: properly initialize FW stats Client statistics need to be initialized to -1 Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit f85582f8c48addd8166727ef692d88b0ff618c5e Author: Dmitry Kravkov Date: Wed Oct 6 03:34:21 2010 +0000 bnx2x: code beautify This patch does not include any functional changes. The changes are: empty lines, indentation and comments. Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit c2bff63fad94eeecf59e4ba8e4cb51688ccae1ec Author: Dmitry Kravkov Date: Wed Oct 6 03:33:18 2010 +0000 bnx2x, cnic: Fix SPQ return credit Return proper L2 and L5 SPQ (slow path queue) credits. Previously, all SPQ events were counted as L5 types. Signed-off-by: Dmitry Kravkov Signed-off-by: Michael Chan Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit d6214d7aaa9a82b206dac9e3b0665c49c522a271 Author: Dmitry Kravkov Date: Wed Oct 6 03:32:10 2010 +0000 bnx2x: move msix table initialization to probe() Decide which interrupt mode to use (MSI-X, MSI, INTa) only once in probe() and initialize appropriate structures. Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 217de5aaed833982c420fc37d82272d84eaefe64 Author: Dmitry Kravkov Date: Wed Oct 6 03:31:20 2010 +0000 bnx2x: use L1_CACHE_BYTES instead of magic number Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 4bca60f44b4adca3197f61294956edda5bf9acea Author: Dmitry Kravkov Date: Wed Oct 6 03:30:27 2010 +0000 bnx2x: use proper constants for dma_unmap* calls Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit c518cd1c7aca2e2a65edcf4fa5ce4160d59878c2 Author: Dmitry Kravkov Date: Wed Oct 6 03:29:41 2010 +0000 bnx2x: remove unused fields in main driver structure Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 749a85033ec7c5c0fa54a0023fd5d59eb5e57a20 Author: Dmitry Kravkov Date: Wed Oct 6 03:29:05 2010 +0000 bnx2x: remove unused parameter in reuse_rx_skb() Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit f2e0899f0f275cc3f5e9c9726178d7d0ac19b2db Author: Dmitry Kravkov Date: Wed Oct 6 03:28:26 2010 +0000 bnx2x: Add 57712 support 57712 HW supported with same set of features as for 57710/57711 Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 8fe23fbd94af5a4c117fd0eb2f1c3f492f79efe8 Author: Dmitry Kravkov Date: Wed Oct 6 03:27:41 2010 +0000 bnx2x: change type of spq_left to atomic The field is now accessed from different contexts. Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit fb3bff178e722fe88b5ab02319c9636da0980e25 Author: Dmitry Kravkov Date: Wed Oct 6 03:26:40 2010 +0000 bnx2x: rename MF related fields MF (multi-function) mode supported not only by 57711E (E1H) devices, but also by coming 57712E, then we use more generic names. Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 6f7aeeec7e142caf30e3b420c2411ad85f23b9f5 Author: Dmitry Kravkov Date: Wed Oct 6 15:25:08 2010 +0200 bnx2x: remove old FW files Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 523224a3b3cd407ce4e6731a087194e13a90db18 Author: Dmitry Kravkov Date: Wed Oct 6 03:23:26 2010 +0000 bnx2x, cnic, bnx2i: use new FW/HSI This is the new FW HSI blob and the relevant definitions without logic changes. It also included code adaptation for new HSI. New features are not enabled. New FW/HSI includes: - Support for 57712 HW - Future support for VF (not used) - Improvements in FW interrupts scheme - FW FCoE hooks (stubs for future usage) Signed-off-by: Dmitry Kravkov Signed-off-by: Michael Chan Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 0c5b77152e736d23a23eb2546eab323e27a37f52 Author: Dmitry Kravkov Date: Wed Oct 6 14:10:08 2010 -0700 bnx2x: add 6.0.34 fw files New firmware files for all bnx2x devices Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 560131f313ea9b9439742138289b6f68d61531ec Author: Dmitry Kravkov Date: Wed Oct 6 03:18:47 2010 +0000 bnx2x: create folder for bnx2x firmware files Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 541a78103f097cd5120e55aaba56d099a64f153c Author: Michael Chan Date: Wed Oct 6 03:17:22 2010 +0000 cnic: Fine-tune ring init code. Initialize the rings only during cnic_uio_open() and shut them down during cnic_uio_close(). Check for the new bit CNIC_LCL_FL_RINGS_INITED before checking for ring interrupt. Signed-off-by: Michael Chan Signed-off-by: Dmitry Kravkov Signed-off-by: David S. Miller commit 1420398db4d5e236583d3ab392637df255bd5c6b Author: Michael Chan Date: Wed Oct 6 03:16:06 2010 +0000 cnic: Use pfid for internal memory offsets. The pfid (physical function ID) is the same as PCI function on production devices. The pfid for future devices will be different and will be used for internal memory offsets. Signed-off-by: Michael Chan Signed-off-by: Dmitry Kravkov Signed-off-by: David S. Miller commit ceb7e1c7c5ab86ca686d523f99ca473a1f3a984d Author: Michael Chan Date: Wed Oct 6 03:14:54 2010 +0000 cnic: Pass cp pointer to BNX2X_HW_CID. Preparation work for upcoming firmware interface changes. Signed-off-by: Michael Chan Signed-off-by: Dmitry Kravkov Signed-off-by: David S. Miller commit 85407885d5d8e9eed9be8e4d33c519646b90d09f Author: Matt Carlson Date: Wed Oct 6 13:40:58 2010 -0700 [PATCH net-next] tg3: Set real_num_rx_queues for non-multiq devs Commit 2ddaad397c47de012dfb956b0c05540da1a0dde5 entitled "tg3: Use netif_set_real_num_{rx,tx}_queues()" added a new call to netif_set_real_num_rx_queues in tg3_enable_msix(). This call also needs to be added to the legacy path to correctly reflect the actual number of rx queues. Signed-off-by: Matt Carlson Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit 494486f8fd0eec956c5df823581df5dcf5409a6f Author: John W. Linville Date: Wed Oct 6 16:40:40 2010 -0400 mac80211: avoid uninitialized var warning in ieee80211_scan_cancel net/mac80211/scan.c: In function ‘ieee80211_scan_cancel’: net/mac80211/scan.c:794: warning: ‘finish’ may be used uninitialized in this function Signed-off-by: John W. Linville commit 3207390a8b58bfc1335750f91cf6783c48ca19ca Author: Johannes Berg Date: Wed Oct 6 21:18:04 2010 +0200 cfg80211: fix BSS double-unlinking When multiple interfaces are actively trying to associate with the same BSS, they may both find that the BSS isn't there and then try to unlink it. This can cause errors since the unlinking code can't currently deal with items that have already been unlinked. Normally this doesn't happen as most people don't try to use multiple station interfaces that associate at the same time too. Fix this by using the list entry as a flag to see if the item is still on a list. Cc: stable@kernel.org Reported-by: Ben Greear Tested-by: Hun-Kyi Wynn Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit b206b4ef062d83c0875a085672ed50e8c8b01521 Author: Bruno Randolf Date: Wed Oct 6 18:34:12 2010 +0900 nl80211/mac80211: Add retry and failed transmission count to station info This information is already available in mac80211, we just need to export it via cfg80211 and nl80211. Signed-off-by: Bruno Randolf Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 09be251e9005ebd67e5eabcaad904edb7ecacc55 Author: Stanislaw Gruszka Date: Wed Oct 6 11:22:13 2010 +0200 Revert "iwlwifi: do not perferm force reset while doing scan" This reverts commit 7acc7c683a747689aaaaad4fce1683fc3f85e552. It was applied to avoid possible warning in ieee80211_restart_hw, however reason of the warning were races in mac80211, currently hopefully fixed. Not reseting device when performing scan is bad for two reasons. When forcing reset from iwl_check_stuck_queue(), in case of fail, reset will be repeated until scan finish. But since firmware is in bad shape, scan only finish after scan_check work (about 7s). So we will delay the reset, what is not good behaviour. When forcing reset from iwl_recover_from_statistics(), we will not repeat the reset, so we will not perform reset at all when needed. Signed-off-by: Stanislaw Gruszka Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 3aed49ef17c7bc8397420529ac976fe058818e3d Author: Stanislaw Gruszka Date: Wed Oct 6 11:22:12 2010 +0200 mac80211: compete scan to cfg80211 if deferred scan fail to start We nulify local->scan_req on failure in __ieee80211_start_scan, so __ieee80211_scan_completed will not call cfg80211_scan_done. Fix that. Signed-off-by: Stanislaw Gruszka Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 6eb11a9a311a0f7e5b9b66c18f7498a26c9ec206 Author: Stanislaw Gruszka Date: Wed Oct 6 11:22:11 2010 +0200 mac80211: do not requeue scan work when not needed When performing hw scan and not abort it, __ieee80211_scan_completed() is currently called from scan work, so does not need to reschedule work to call drv_hw_scan(). Signed-off-by: Stanislaw Gruszka Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 4136c4224ccf1907d309e1cdfaefef9da97dbc5e Author: Stanislaw Gruszka Date: Wed Oct 6 11:22:10 2010 +0200 mac80211: assure we also cancel deferred scan request This is partial revert and fix for commit 85f72bc839705294b32b6c16b491c0422f0a71b3 "mac80211: only cancel software-based scans on suspend" When cfg80211 request the scan and mac80211 perform some management work, we defer the scan request. We do not canceling such requests when calling ieee80211_scan_cancel(), because of SCAN_SW_SCANNING bit check just before the call. So fix that problem. Another problem, which commit 85f72bc839705294b32b6c16b491c0422f0a71b3 tries to solve, is we can not cancel HW scan. Hence patch make ieee80211_scan_cancel() ignore HW scan (see code comments). Keeping local->mtx lock assures that the deferred scan will not become "working" HW scan. Signed-off-by: Stanislaw Gruszka Acked-by: Johannes Berg Signed-off-by: John W. Linville commit e229f844d7223b7063bea1e649203ac521a58fe1 Author: Stanislaw Gruszka Date: Wed Oct 6 11:22:09 2010 +0200 mac80211: keep lock when calling __ieee80211_scan_completed() We are taking local->mtx inside __ieee80211_scan_completed(), but just before call to that function we drop the lock. Dropping/taking lock is not good, because can lead to hard to understand race conditions. Patch split scan_completed() code into two functions, first must be called with local->mtx taken and second without it. Signed-off-by: Stanislaw Gruszka Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 259b62e35bf44a97983f275de569929a7d2bd5dd Author: Stanislaw Gruszka Date: Wed Oct 6 11:22:08 2010 +0200 mac80211: reduce number of __ieee80211_scan_completed calls Use goto instruction to call __ieee80211_scan_completed only ones in ieee80211_scan_work. This is prepare for the next patch. Signed-off-by: Stanislaw Gruszka Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 78159788e1d0909ffa6beb714dcca7f3aa4574a2 Author: Rafał Miłecki Date: Wed Oct 6 07:50:08 2010 +0200 b43: N-PHY: don't duplicate setting channel in shared memory It's already set in PHY common code. Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit 106cb09a145a5c6d8e206af41284c300b13c408c Author: Rafał Miłecki Date: Wed Oct 6 07:50:07 2010 +0200 b43: define B43_SHM_SH_CHAN_40MHZ Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit 5e7ee098ce2795e0c2628686dd97fc64bcc11594 Author: Rafał Miłecki Date: Wed Oct 6 07:50:06 2010 +0200 b43: N-PHY: simplify channel switching Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville commit d537f5fdfcc9c57c1e3b9fb316a4bed2bf7597e7 Author: Johannes Berg Date: Tue Oct 5 21:34:11 2010 +0200 nl80211: fix error in generic netif_running check Yikes! The error return keeps a netdev reference and the rdev mutex locked, fix that! Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit e31b82136d1adc7a599b6e99d3321e5831841f5a Author: Johannes Berg Date: Tue Oct 5 19:39:30 2010 +0200 cfg80211/mac80211: allow per-station GTKs This adds API to allow adding per-station GTKs, updates mac80211 to support it, and also allows drivers to remove a key from hwaccel again when this may be necessary due to multiple GTKs. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 53f73c09d64f1fa7d7e6e8b6bb7468d42eddc92d Author: Johannes Berg Date: Tue Oct 5 19:37:40 2010 +0200 mac80211: avoid transmitting delBA to old AP When roaming while we have active BA session, we can end up transmitting delBA frames to the old AP while we're already on the new AP's channel, which can cause warnings. Simply avoid sending those frames, but still tear down the internal session state, since they are not really necessary anyway as we will implicitly disassociate when sending the association to the new AP. Signed-off-by: Johannes Berg Acked-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 845d708e62f08a45ff716fdb270c52585cad31d0 Author: Senthil Balasubramanian Date: Tue Oct 5 20:36:41 2010 +0530 ath9k: Introduce a wrapper for power save disable. Signed-off-by: Senthil Balasubramanian Signed-off-by: John W. Linville commit fbab7390f954e3517c72d12cfd9a1502699aa368 Author: Senthil Balasubramanian Date: Tue Oct 5 20:36:40 2010 +0530 ath9k: remove unnecessary power save flags. drv_config callback is called only after the ack for the nullframe is received and so driver need not do anything special for this. So remove NULLFUNC_COMPLETED, PS_ENABLED flags and bf_isnullfunc flags from ath9k as mac80211 already handles them properly. Signed-off-by: Senthil Balasubramanian Signed-off-by: John W. Linville commit 95792178a58716a6afaeb5ab9654f1a0f17a5e8e Author: Felix Fietkau Date: Mon Oct 4 20:09:50 2010 +0200 ath9k_hw: merge ath9k_hw_ani_monitor_old and ath9k_hw_ani_monitor_new After the last rounds of cleanup, these functions are now functionally equivalent and can thus be merged. Also get rid of some excessive (and redundant) debug messages. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 8eb4980c33c35e97a0a226fdbc07e38da0f1f4aa Author: Felix Fietkau Date: Mon Oct 4 20:09:49 2010 +0200 ath9k_hw: remove function pointer abstraction for internal ANI ops The code gets more concise and readable when making the new ANI functions fall back to the old ones if ANI v2 is disabled. This also makes further code cleanup easier. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit bfc472bb736bf309158ea76897d255a283d0d31c Author: Felix Fietkau Date: Mon Oct 4 20:09:48 2010 +0200 ath9k_hw: remove code duplication in phy error counter handling Split out the PHY error counter update from ath9k_hw_ani_monitor_*, reuse it in ath9k_hw_proc_mib_event (merged from ath9k_hw_proc_mib_event_old and ath9k_hw_proc_mib_event_new). Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 093115b7fd641f03d89404252044c976928764cb Author: Felix Fietkau Date: Mon Oct 4 20:09:47 2010 +0200 ath9k_hw: clean up ANI state handling ANI state is kept per channel, so instead of keeping an array of ANI states with an arbitrary size of 255, move the ANI state into the channel struct. Move some config settings that are not per-channel out of the per-channel struct to save some memory. With those changes, ath9k_ani_restart_old and ath9k_ani_restart_new can be merged into a single function. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 71ea420992149294e74da3fa34ca8f111326bb6d Author: Felix Fietkau Date: Mon Oct 4 20:09:46 2010 +0200 ath9k_hw: add a helper function to check for the new ANI implementation Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 435c1610f46dc4d86a6633adb037b18109e6ffdc Author: Felix Fietkau Date: Tue Oct 5 12:03:42 2010 +0200 ath9k_hw: clean up register write buffering Throughout the code, DISABLE_REGWRITE_BUFFER is always called right after REGWRITE_BUFFER_FLUSH. Since that's unlikely to change any time soon, that makes keeping those ops separate rather pointless, as it only increases code size and line number counts. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 9dbebc7fd07ab66341dce8d001272db400c11e03 Author: Felix Fietkau Date: Sun Oct 3 19:07:17 2010 +0200 ath9k_hw: merge codepaths that access the cycle counter registers The cycle counters are used by ANI to determine the amount of time that the radio spent not receiving or transmitting. They're also used for debugging purposes if the baseband watchdog on AR9003 detects a lockup. In the future, we want to use these counters to determine the medium utilization and export this information via survey. For that, we need to make sure that the counter is only accessed from one place, which also ensures that wraparounds won't occur at inconvenient points in time. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 6497827f53eb90dcf30c5d6414c83238f722e8ae Author: Felix Fietkau Date: Sun Oct 3 19:07:16 2010 +0200 ath9k_hw: clean up calibration flags The calibration actual calibration flags are only used by the per chip family source files, so it makes more sense to define them in those files instead of globally. That way the code has to test for less flags. Also instead of using a separate callback for testing whether a particular calibration type is supported, simply adjust ah->supp_cals in the calibration init which is called right after the hardware reset, before any of the calibrations are run. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 373426cac0cbb7f762018127803dcd70838e2cdf Merge: 46bf695 4427148 Author: John W. Linville Date: Wed Oct 6 16:25:52 2010 -0400 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 commit 42560ca0616d26c15ff626590101806b99ac95bb Merge: b7ee31c e0e9b40 Author: David S. Miller Date: Wed Oct 6 13:07:22 2010 -0700 Merge branch 'vhost-net-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost commit 293277215636e1586fcf6386b0b64457c6dfdb68 Author: Chien Tung Date: Mon Aug 23 14:32:36 2010 +0000 RDMA/nes: Report correct port state if interface is down With commit cd6860eb ("RDMA/nes: Fix hangs on ifdown") we no longer remove nes interfaces on ifdown. On nes_query_port(), add an additional check of the netdev queue and report IB_PORT_DOWN if the queue is not running. Signed-off-by: Chien Tung Signed-off-by: Roland Dreier commit 625fbd3a36d836efaaee4b6d9c2fcd25e3654624 Author: Sonny Rao Date: Fri Aug 20 04:10:19 2010 +0000 IB/ehca: Fix driver on relocatable kernel the eHCA driver registers a MR for all of kernel memory, but makes the assumption that valid memory exists at KERNELBASE. This assumption may not be true in the case of a relocatable kernel, so use KERNELBASE + PHYSICAL_START to get the true beginning of usable kernel memory. cc: Joachim Fenkes cc: Christoph Raisch cc: Hoan-Ham Hguyen Signed-off-by: Sonny Rao Signed-off-by: Roland Dreier commit 92a5bbc11ff2442a54b2f1d313088c245828ef4e Author: Pekka Enberg Date: Wed Oct 6 16:58:16 2010 +0300 SLUB: Fix memory hotplug with !NUMA This patch fixes the following build breakage when memory hotplug is enabled on UMA configurations: /home/test/linux-2.6/mm/slub.c: In function 'kmem_cache_init': /home/test/linux-2.6/mm/slub.c:3031:2: error: 'slab_memory_callback' undeclared (first use in this function) /home/test/linux-2.6/mm/slub.c:3031:2: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [mm/slub.o] Error 1 make[1]: *** [mm] Error 2 make: *** [sub-make] Error 2 Reported-by: Zimny Lech Acked-by: Christoph Lameter Signed-off-by: Pekka Enberg commit 06c7a489a97fce99fd86611f6f32e565e686e5d8 Author: Paul Mundt Date: Thu Oct 7 02:57:39 2010 +0900 sh: Fix up the SH-3 build. SH-3 lacks an MMUCR_TI definition for global TLB flushes. As SH-3 parts lack a split TLB, the same global flush behaviour is accomplished through the flush bit, which just happens to be the same as on SH-4. This fixes up the build for all SH-3 MMU parts. Signed-off-by: Paul Mundt commit c9928f7040a6e5f39e028bea500e0fde910d4a96 Author: Shirish Pargaonkar Date: Mon Oct 4 19:56:13 2010 -0500 ntlm authentication and signing - Correct response length for ntlmv2 authentication without extended security Fix incorrect calculation of case sensitive response length in the ntlmv2 (without extended security) response. Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French commit 29e07c82a9e8acebbb38ecc22b0b5005a0a5d839 Author: Jeff Layton Date: Wed Sep 29 19:51:12 2010 -0400 cifs: fix cifs_show_options to show "username=" or "multiuser" ...based on CIFS_MOUNT_MULTIUSER flag. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 6508d904e6fb66ce4c34617f72b38d6714c4b9f6 Author: Jeff Layton Date: Wed Sep 29 19:51:11 2010 -0400 cifs: have find_readable/writable_file filter by fsuid When we implement multiuser mounts, we'll need to filter filehandles by fsuid. Add a flag for multiuser mounts and code to filter by fsuid when it's set. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 13cfb7334eb6fd0fc06da5589aea1e947791f1d6 Author: Jeff Layton Date: Wed Sep 29 19:51:11 2010 -0400 cifs: have cifsFileInfo hold a reference to a tlink rather than tcon pointer cifsFileInfo needs a pointer to a tcon, but it doesn't currently hold a reference to it. Change it to keep a pointer to a tcon_link instead and hold a reference to it. That will keep the tcon from being freed until the file is closed. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 7ffec372458d163492e56e663a1b3a2d7be0a0a2 Author: Jeff Layton Date: Wed Sep 29 19:51:11 2010 -0400 cifs: add refcounted and timestamped container for holding tcons Eventually, we'll need to track the use of tcons on a per-sb basis, so that we know when it's ok to tear them down. Begin this conversion by adding a new "tcon_link" struct and accessors that get it. For now, the core data structures are untouched -- cifs_sb still just points to a single tcon and the pointers are just cast to deal with the accessor functions. A later patch will flesh this out. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 5d73c53b786665f991f70be01a51a23233aeb44f Author: Gregory Bean Date: Wed Sep 29 13:46:45 2010 -0700 msm: qsd8x50: enable ethernet. Configure the smc91x ethernet chip on the qsd8x50 SURF. Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker commit 26cc66607189ac544edad04927f506599d990f0f Author: Gregory Bean Date: Fri Sep 10 15:03:37 2010 -0700 msm: gpio: Add gpiomux calls to request and free. Add gpiomux get and put calls to msmgpio request and free, in order to allow gpio lines to be properly reference-counted and power-managed. Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker commit 2783cc265cc57c4bbf788b75fa8c3f06259dffd1 Author: Gregory Bean Date: Fri Sep 10 15:03:36 2010 -0700 msm: add gpio driver for single-core SoCs. Install a gpiolib driver supporting the on-chip gpios for single-core MSMs in the 7x00 family, including 7x00A, 7x25, 7x27, 7x30, 8x50, and 8x50a. As part of the ongoing effort to converge on a common code base, this driver is based on the Google-Android msmgpio driver, whose authors include Brian Swetland and Arve Hjønnevåg. Cc: Arve Hjønnevåg Cc: H Hartley Sweeten Cc: Ryan Mallon Cc: Ben Dooks Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker commit ab78cde589e89afa039a13bc75d23d249f1c1200 Author: Gregory Bean Date: Wed Sep 1 16:26:12 2010 -0700 msm: Featurize gpiomux. Featurize gpiomux so that systems like 7x00 which do not wish to use it do not have to be saddled with the configuration tables. Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker commit 10c4580e798838fd63eafec5ed304b7ace6db020 Author: Gregory Bean Date: Sat Aug 28 10:05:48 2010 -0700 msm: gpio: Remove tlmm routines obsoleted by gpiomux. Now that all supported gpio_tlmm_config-using boards are using gpiomux, remove the deprecated code. Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker commit 224f6de46ab05677f1fbfa7e384938639ff3f691 Author: Gregory Bean Date: Sat Aug 28 10:05:47 2010 -0700 msm: convert 7x30 to gpiomux. Change deprecated gpio_tlmm_config calls to gpiomux calls. Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker commit dd22b8f703d7a9aa5e40a7741b7e84fb0bb025d6 Author: Gregory Bean Date: Sat Aug 28 10:05:46 2010 -0700 msm: convert 8x50 to gpiomux. Change the gpio-init code from deprecated gpio_tlmm_config to the new gpiomux api. Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker commit 70816e2ca526cfe21ce884ecae057a9c1725ad27 Author: Gregory Bean Date: Sat Aug 28 10:05:45 2010 -0700 msm: documentation: add gpiomux documentation. Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker commit 1963a2afc81afe6d85e7a12538b74a9919d958ae Author: Gregory Bean Date: Sat Aug 28 10:05:44 2010 -0700 msm: add gpiomux api for gpio multiplex & configuration. Add the 'gpiomux' api, which addresses the following shortcomings of existing tlmm api: - gpio power-collapse, which is managed by a peripheral processor on other targets, must be managed by the application processor on the 8x60. - The enable/disable flag of the legacy gpio_tlmm_config api is not applicable on the 8x60, and causes confusion. - The gpio 'direction' bits are meaningless for all func_sel configurations except for generic-gpio mode (func_sel 0), in which case the gpio_direction_* functions should be used. Having these bits in the tlmm api leads to confusion and misuse of the gpiolib api, and they have been removed in gpiomux. - The functional api of the legacy system ran contrary to the typical use-case, which is a single massive configuration at boot. Rather than forcing hundreds of 'config' function calls, the new api allows data to be configured with a single table. gpiomux_get and gpiomux_put are meant to be called automatically when gpio_request and gpio_free are called, giving automatic gpiomux/tlmm control to those drivers/lines with simple power profiles - in the simplest cases, an entry in the gpiomux table and the correct usage of gpiolib is all that is required to get proper gpio power control. Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker commit 846afbd1fe015e082c89d56dd42c484d896ef58e Author: Abhijeet Dharmapurikar Date: Tue Aug 24 21:57:33 2010 -0700 GIC: Dont disable INT in ack callback Masking in the ack callback fails to work with handle_percpu_irq and handle_edge_irq. The interrupt stays disabled after the first invocation since percpu and edge irq do not unmask an interrupt after handling it. For handle_level_irq masking in the ack is redundant because ack is always called after mask in the mask_ack function. Masking in the ack function is required only when __do_IRQ was used instead of flow handlers, but using __do_IRQ has been deprecated. Remove the masking of interrupt from the ack callback. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Jeff Ohlstein Signed-off-by: Daniel Walker commit dd1d3a49db4ae5c6afffadaff526b96c7993c7dd Author: Takashi Iwai Date: Wed Oct 6 17:28:56 2010 +0200 ALSA: oxygen - Add a SSID for CMI8787-HG2PCI This board has a strange PCI SSID 13f6:ffff. Works as compabile as MODEL_CMEDIA_REF. Reported-by: Takashi Sakamoto Signed-off-by: Takashi Iwai commit 2bb32e84a17fab547c7a746c7888e846c9cd88cc Author: Pavan Savoy Date: Wed Oct 6 12:18:15 2010 -0400 misc: ti-st: Kconfig & Makefile for TI_ST Add the Kconfig and the Makefile for the TI_ST driver. TI_ST driver is the line discipline driver for the Texas Instrument's WiLink chipsets. Also add the ti-st folder to list of drivers under drivers/misc. Signed-off-by: Pavan Savoy Signed-off-by: Greg Kroah-Hartman commit a0cc2f3b51a8649da5262aba7501dc21738e1b8d Author: Pavan Savoy Date: Wed Oct 6 12:18:14 2010 -0400 staging: ti-st: move TI_ST from staging to misc/ move the 3 source files st_core.c, st_kim.c and st_ll.c from staging to drivers/misc/. Texas Instrument's WiLink 7 chipset packs wireless technologies like Bluetooth, FM, GPS and WLAN into a single die. Among these the Bluetooth, FM Rx/Tx and GPS are interfaced to a apps processor over a single UART. This line discipline driver allows various protocol drivers such as Bluetooth BlueZ driver, FM V4L2 driver and GPS simple character device driver to communicate with its relevant core in the chip. Each protocol or technologies use a logical channel to communicate with chip. Bluetooth uses the HCI-H4 [channels 1-4], FM uses a CH-8 and GPS a CH-9 protocol. The driver also constitutes the TI HCI-LL Power Management protocol which use channels 30-33. Signed-off-by: Pavan Savoy Signed-off-by: Greg Kroah-Hartman commit aecac19179180b7d6cda13f598e314c0870aee80 Author: Michael Hennerich Date: Wed Oct 6 10:25:49 2010 +0200 staging: iio: adc: ad799x: Address iio list feedback Address feedback from Shubhrajyoti Datta: Cast return value Michael Hennerich: Use i2c_smbus_read_byte_data() Fix return value check Signed-off-by: Michael Hennerich Signed-off-by: Greg Kroah-Hartman commit e1517c00da6d35911b6451f886d55e22d56393ad Author: Michael Hennerich Date: Wed Oct 6 16:15:37 2010 +0200 staging: iio: adc: max1363: prevent buffer overflow ring->access.read_last() reads the entire datum from the ring including padding and time stamp. Acked-by: Jonathan Cameron Signed-off-by: Michael Hennerich Signed-off-by: Greg Kroah-Hartman commit 858f1ccff123469fb4257e2529ef8783aabf3b62 Author: Michael Hennerich Date: Wed Oct 6 16:22:17 2010 +0200 staging: iio: adc: ad799x: prevent buffer overflow ring->access.read_last() reads the entire datum from the ring including padding and time stamp. Acked-by: Jonathan Cameron Signed-off-by: Michael Hennerich Signed-off-by: Greg Kroah-Hartman commit 5a505da957fc2f42ce53e5b0234cdf493f4f3ab0 Author: Jason Cooper Date: Wed Oct 6 10:08:03 2010 -0400 staging: brcm80211: fix checkpatch macro errors. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit e9887c9d9c37b8af80ae04aad1532d5c46687f8b Author: Jason Cooper Date: Wed Oct 6 10:08:02 2010 -0400 staging: brcm80211: fix various checkpatch spacing errors. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 5f782dee8d58247f2a277f142a59c227fd0b500e Author: Jason Cooper Date: Wed Oct 6 10:08:01 2010 -0400 staging: brcm80211: fix 'do not init statics to 0 or NULL' Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 6998d33795b921c6c62dde5a0820242da40e3020 Author: Jason Cooper Date: Wed Oct 6 10:08:00 2010 -0400 staging: brcm80211: fix 'do not init globals to 0 or NULL' Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 81e95f9d4ef8e51195568d44d45b3c98ce8bd271 Author: Jason Cooper Date: Wed Oct 6 10:07:59 2010 -0400 staging: brcm80211: brcmfmac/*: fix remaining 'assignment in if condition' Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 671a6e3cc9d8b49e552590500b8281fd33ce1466 Author: Greg Kroah-Hartman Date: Wed Oct 6 08:18:01 2010 -0700 Staging: the tree is now kept in git, not quilt Update the MAINTAINERS file to show the new location of the staging development tree. Signed-off-by: Greg Kroah-Hartman commit 58a39090a13cf296afc17ed8fd793a55340b63db Author: Wey-Yi Guy Date: Wed Oct 6 08:14:21 2010 -0700 iwlagn: define 130 series of WiFi/BT combo devices add new structures and defines need to identify 130 devices. Signed-off-by: Wey-Yi Guy commit 898dade1162970fe7af45e47062f9d1d999c46e6 Author: Wey-Yi Guy Date: Mon Sep 20 09:12:33 2010 -0700 iwlagn: rename iwl5000_tx_resp iwl5000_tx_resp really should be iwlagn_tx_resp, rename it. Signed-off-by: Wey-Yi Guy commit a8029bb79ec6de4acab5a6d3b931990152e8d5c1 Author: Wey-Yi Guy Date: Mon Sep 20 09:12:32 2010 -0700 iwlwifi: remove uncorrect comments some structure belong to _agn devices, not just 5000. Fix it. Signed-off-by: Wey-Yi Guy commit ab63c68adaabb670f0513d5b63f3b233b16ea8b4 Author: Wey-Yi Guy Date: Mon Sep 20 09:12:31 2010 -0700 iwlagn: rename iwl5000_tx_power_dbm_cmd iwl5000_tx_power_dbm_cmd really should be iwlagn_tx_power_dbm_cmd, so rename it. Signed-off-by: Wey-Yi Guy commit 7cb1b0887fcc61918e3d64827fbef968bb67a57a Author: Wey-Yi Guy Date: Wed Oct 6 08:10:00 2010 -0700 iwlagn: reduce redundant parameter definitions move paramater definitions to a device paramater structure only leaving the device name, which antennas are used and what firmware file to use in the iwl_cfg structure. this will not completely remove the redundancies but greatly reduce them for devices that only vary by name or antennas. the parameters that are more likely to change within a given device family are left in iwl_cfg. also separate bt param structure added to help reduce more. Signed-off-by: Jay Sternberg Signed-off-by: Wey-Yi Guy commit 72645eff4b2ad6cf2b016b54f9d6817cca0a621d Author: Wey-Yi Guy Date: Wed Oct 6 07:42:43 2010 -0700 iwlwifi: schedule to deprecate software scan support Hardware scan is the prefer method for all iwlwifi devices; especially for dual-mode functions. Schedule to deprecate the software scan support in kernel 2.6.40 Signed-off-by: Wey-Yi Guy commit ebebeece4ba596973c0c181a8cce5fd77bae427c Author: Clemens Ladisch Date: Wed Oct 6 10:58:50 2010 +0200 ALSA: oxygen: add PEX8111 initialization Configure the PEX8111 bridge on the PCI Express cards so that the audio DMA controller can do proper burst reads and is less likely to lose data. This is usually done automatically, but is required on older cards where the user has not applied the PLX firmware update. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit 7cb4ced5aa83b681c76b004c8960b4f2a6471fef Author: Clemens Ladisch Date: Wed Oct 6 10:57:50 2010 +0200 ALSA: oxygen: rewrite PCIe bridge initialization Change the PCIe/PCI bridge initialization code to configure only the bridge that is actually connected to the sound chip, instead of any bridge found in the system. The new code also makes it easier to add other bridges. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit 93943beb29be7084afb61556e96bc454079bfb0e Author: Clemens Ladisch Date: Wed Oct 6 10:57:11 2010 +0200 ALSA: oxygen: reduce minimum period count The interrupt counter is independent of the buffer counter, so there are no restrictions on the period size. Having fewer periods also makes PulseAudio happy. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit a5a84755c5900416dce0166ac825866aad8048ef Author: Christoph Lameter Date: Tue Oct 5 13:57:27 2010 -0500 slub: Move functions to reduce #ifdefs There is a lot of #ifdef/#endifs that can be avoided if functions would be in different places. Move them around and reduce #ifdef. Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit ab4d5ed5eeda4f57c50d14131ce1b1da75d0c938 Author: Christoph Lameter Date: Tue Oct 5 13:57:26 2010 -0500 slub: Enable sysfs support for !CONFIG_SLUB_DEBUG Currently disabling CONFIG_SLUB_DEBUG also disabled SYSFS support meaning that the slabs cannot be tuned without DEBUG. Make SYSFS support independent of CONFIG_SLUB_DEBUG Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit 15b7c5142049e7efc3071280e1370dc3b8add6f5 Author: Pekka Enberg Date: Sat Oct 2 11:32:32 2010 +0300 SLUB: Optimize slab_free() debug check This patch optimizes slab_free() debug check to use "c->node != NUMA_NO_NODE" instead of "c->node >= 0" because the former generates smaller code on x86-64: Before: 4736: 48 39 70 08 cmp %rsi,0x8(%rax) 473a: 75 26 jne 4762 473c: 44 8b 48 10 mov 0x10(%rax),%r9d 4740: 45 85 c9 test %r9d,%r9d 4743: 78 1d js 4762 After: 4736: 48 39 70 08 cmp %rsi,0x8(%rax) 473a: 75 23 jne 475f 473c: 83 78 10 ff cmpl $0xffffffffffffffff,0x10(%rax) 4740: 74 1d je 475f This patch also cleans up __slab_alloc() to use NUMA_NO_NODE instead of "-1" for enabling debugging for a per-CPU cache. Acked-by: Christoph Lameter Acked-by: David Rientjes Signed-off-by: Pekka Enberg commit 57894517139b283a3cf27e36b29b4b4d7c45b303 Author: matt mooney Date: Wed Oct 6 00:46:27 2010 -0700 power_supply: Makefile cleanup Replace EXTRA_CFLAGS with ccflags-y; remove if-statements and replace with lists using the kbuild idiom. None of the dependencies are modified. Signed-off-by: matt mooney Signed-off-by: Anton Vorontsov commit 9292585c67ddd76285f2610c0cbf6b61fe27f5db Author: Axel Lin Date: Tue Oct 5 10:05:34 2010 +0800 bq27x00_battery: Add missing kfree(di->bus) in bq27x00_battery_remove() Signed-off-by: Axel Lin Signed-off-by: Anton Vorontsov commit fe3f6d097a042cff54bc1dc06f21ef528affe8ca Author: Heikki Krogerus Date: Mon Oct 4 10:51:38 2010 +0300 power_supply: Introduce maximum current property USB only gives the maximum current allowed to draw. Signed-off-by: Heikki Krogerus Signed-off-by: Anton Vorontsov commit 85efc8a18cedf70e55acd0c825e2d9d2f3b19999 Author: Heikki Krogerus Date: Mon Oct 4 10:51:37 2010 +0300 power_supply: Add types for USB chargers This adds power supply types for USB chargers defined in Battery Charging Specification 1.1. Signed-off-by: Heikki Krogerus Signed-off-by: Anton Vorontsov commit 353f867b5536e55e46801562987d605778cf262b Author: Ryan Mallon Date: Fri Oct 1 14:17:42 2010 -0700 ds2782_battery: Fix units Correct the unit names in the ds2782 battery driver. Changes voltage_uA to voltage_uV and capacity_uA to capacity. Signed-off-by: Ryan Mallon Cc: Geert Uytterhoeven Cc: David Woodhouse Cc: Ben Hutchings Cc: Yulia Vilensky Signed-off-by: Andrew Morton Signed-off-by: Anton Vorontsov commit 532daaa1108390c5c0070ab6d32bd20b53ee4e41 Author: Nicolas Kaiser Date: Mon Oct 4 10:39:29 2010 +0000 arm/shmobile: remove duplicated include Remove duplicated include. Signed-off-by: Nicolas Kaiser Signed-off-by: Paul Mundt commit 46f12936fd2945ffaf774e728fe5044f06ed5574 Author: Guennadi Liakhovetski Date: Sun Oct 3 04:24:42 2010 +0000 sh: fix an ms7724se compile breakage Fix a compile breakage, caused by my own careless copy-paste. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit d7eccbbae84b2ee7dbb756e60287c4b47071444e Author: Jiri Kosina Date: Wed Oct 6 11:34:48 2010 +0200 Revert "drivers/usb: Remove unnecessary return's from void functions" for musb gadget This is a partial revert of 7f26b3a7533b ("drivers/usb: Remove unnecessary return's from void functions") as this hunk will vanish in USB tree completely. Reported-by: Stephen Rothwell Signed-off-by: Jiri Kosina commit 134669854e3a680d8aad9a4047891c653715f4c0 Author: Steven Whitehouse Date: Wed Oct 6 09:58:44 2010 +0100 GFS2: Fix type mapping for demote_rq interface Mostly the glock operations follow the type of the glock. The one exception is the transaction glock, so we need to check for that directly. Reported-by: Dr. David Alan Gilbert Signed-off-by: Steven Whitehouse commit 901c28c257eb8903a7d66c900df163e2c13ca995 Author: Nobuhiro Iwamatsu Date: Tue Oct 5 08:16:08 2010 +0000 sh: Fix address calculation of Initrd Signed-off-by: Nobuhiro Iwamatsu Signed-off-by: Paul Mundt commit bde40898c814362e8041cad0e989c7a749c417ec Author: Akinobu Mita Date: Tue Oct 5 15:54:00 2010 +0000 sh: fix uninitialized spinlock The spinlock in traps_64.c is used without initialization. This fixes it by declaring DEFINE_SPINLOCK() and makes the spinlock static variable. Signed-off-by: Akinobu Mita Cc: Paul Mundt Cc: linux-sh@vger.kernel.org Signed-off-by: Paul Mundt commit 6966fed9d8a74f178fc0dabdcc687cb1fe5b75fe Author: Paul Mundt Date: Wed Oct 6 16:44:10 2010 +0900 sh: intc: Fix build with IRQ balancing disabled. The balancing stubs obviously need to be static inline.. Signed-off-by: Paul Mundt commit 33fc1a211c400049f1b5276d5a925a84d3d2b6d2 Author: Paul Mundt Date: Wed Oct 6 15:38:16 2010 +0900 sh: intc: Add missing files. The Kconfig and Makefile were overlooked, add those in now to improve odds of building. Signed-off-by: Paul Mundt commit 161b0275e2311b8bd9609d5f32e2b703cf5d70a8 Author: Jeremy Fitzhardinge Date: Thu Sep 2 19:35:22 2010 -0700 x86, mm: Add RESERVE_BRK_ARRAY() helper This is useful when converting static arrays into boot-time brk allocated objects. Signed-off-by: Jeremy Fitzhardinge LKML-Reference: <4C805EEA.1080205@goop.org> Signed-off-by: H. Peter Anvin commit 16c36f743bf8481d0ba40a6de0af11736095d7cf Author: Yinghai Lu Date: Mon Oct 4 14:58:04 2010 -0700 x86, memblock: Remove __memblock_x86_find_in_range_size() Fold it into memblock_x86_find_in_range(), and change bad_addr_size() to check_reserve_memblock(). So whole memblock_x86_find_in_range_size() code is more readable. Signed-off-by: Yinghai Lu LKML-Reference: <4CAA4DEC.4000401@kernel.org> Signed-off-by: H. Peter Anvin commit f1af98c7629a1b76fd7336decbc776acdeed2120 Author: Yinghai Lu Date: Mon Oct 4 14:57:39 2010 -0700 memblock: Fix wraparound in find_region() When trying to find huge range for crashkernel, get [ 0.000000] ------------[ cut here ]------------ [ 0.000000] WARNING: at arch/x86/mm/memblock.c:248 memblock_x86_reserve_range+0x40/0x7a() [ 0.000000] Hardware name: Sun Fire x4800 [ 0.000000] memblock_x86_reserve_range: wrong range [0xffffffff37000000, 0x137000000) [ 0.000000] Modules linked in: [ 0.000000] Pid: 0, comm: swapper Not tainted 2.6.36-rc5-tip-yh-01876-g1cac214-dirty #59 [ 0.000000] Call Trace: [ 0.000000] [] ? memblock_x86_reserve_range+0x40/0x7a [ 0.000000] [] warn_slowpath_common+0x85/0x9e [ 0.000000] [] warn_slowpath_fmt+0x6e/0x70 [ 0.000000] [] ? memblock_find_region+0x40/0x78 [ 0.000000] [] ? memblock_find_base+0x9a/0xb9 [ 0.000000] [] memblock_x86_reserve_range+0x40/0x7a [ 0.000000] [] setup_arch+0x99d/0xb2a [ 0.000000] [] ? trace_hardirqs_off+0xd/0xf [ 0.000000] [] ? _raw_spin_unlock_irqrestore+0x3d/0x4c [ 0.000000] [] start_kernel+0xde/0x3f1 [ 0.000000] [] x86_64_start_reservations+0xa0/0xa4 [ 0.000000] [] x86_64_start_kernel+0x106/0x10d [ 0.000000] ---[ end trace a7919e7f17c0a725 ]--- [ 0.000000] Reserving 8192MB of memory at 17592186041200MB for crashkernel (System RAM: 526336MB) This is caused by a wraparound in the test due to size > end; explicitly check for this condition and fail. Signed-off-by: Yinghai Lu LKML-Reference: <4CAA4DD3.1080401@kernel.org> Signed-off-by: H. Peter Anvin commit 1d931264af0f10649b35afa8fbd2e169da51ac08 Author: Yinghai Lu Date: Tue Oct 5 16:15:15 2010 -0700 x86-32, memblock: Make add_highpages honor early reserved ranges Originally the only early reserved range that is overlapped with high pages is "KVA RAM", but we already do remove that from the active ranges. However, It turns out Xen could have that kind of overlapping to support memory ballooning.x So we need to make add_highpage_with_active_regions() to subtract memblock reserved just like low ram; this is the proper design anyway. In this patch, refactering get_freel_all_memory_range() to make it can be used by add_highpage_with_active_regions(). Also we don't need to remove "KVA RAM" from active ranges. Signed-off-by: Yinghai Lu LKML-Reference: <4CABB183.1040607@kernel.org> Signed-off-by: H. Peter Anvin commit 9f4c13964b58608fbce05540743281ea3146c0e8 Author: Yinghai Lu Date: Tue Oct 5 16:05:14 2010 -0700 x86, memblock: Fix crashkernel allocation Cai Qian found crashkernel is broken with the x86 memblock changes. 1. crashkernel=128M@32M always reported that range is used, even if the first kernel is small and does not usethat range 2. we always got following report when using "kexec -p" Could not find a free area of memory of a000 bytes... locate_hole failed The root cause is that generic memblock_find_in_range() will try to allocate from the top of the range, whereas the kexec code was written assuming that allocation was always near the bottom and that it could blindly extend memory upward. Unfortunately the kexec code doesn't have a system for requesting the range that it really needs, so this is subject to probabilistic failures. This patch hacks around the problem by limiting the target range heuristically to below the traditional bzImage max range. This number is arbitrary and not always correct, and a much better result would be obtained by having kexec communicate this number based on the kernel header information and any appropriate command line options. Reported-and-Bisected-by: CAI Qian Signed-off-by: Yinghai Lu LKML-Reference: <4CABAF2A.5090501@kernel.org> Cc: Vivek Goyal Signed-off-by: H. Peter Anvin commit 2126d0a4a205e2d6b763434f892524cd60f74228 Author: Alex Deucher Date: Wed Oct 6 00:13:04 2010 -0400 drm/radeon/kms: make sure blit addr masks are 64 bit Signed-off-by: Alex Deucher Cc: stable@kernel.org Signed-off-by: Dave Airlie commit b7ee31c5af7f04b67d8b8e4f3b2bcb8bcfced8a3 Author: Rasesh Mody Date: Tue Oct 5 15:46:05 2010 +0000 bna: scope and dead code cleanup As suggested by Stephen Hemminger: 1) Made functions and data structures static wherever possible. 2) Removed unused code. Signed-off-by: Debashis Dutt Signed-off-by: Rasesh Mody Signed-off-by: David S. Miller commit e2fa6f2ef6e48666b78d4b0f00914b06bb19d298 Author: Rasesh Mody Date: Tue Oct 5 15:46:04 2010 +0000 bna: fix interrupt handling This fix handles the case when IRQ handler is called (for shared IRQs) even before the driver is ready to handle interrupts. Signed-off-by: Debashis Dutt Signed-off-by: Rasesh Mody Signed-off-by: David S. Miller commit ebc0ffae5dfb4447e0a431ffe7fe1d467c48bbb9 Author: Eric Dumazet Date: Tue Oct 5 10:41:36 2010 +0000 fib: RCU conversion of fib_lookup() fib_lookup() converted to be called in RCU protected context, no reference taken and released on a contended cache line (fib_clntref) fib_table_lookup() and fib_semantic_match() get an additional parameter. struct fib_info gets an rcu_head field, and is freed after an rcu grace period. Stress test : (Sending 160.000.000 UDP frames on same neighbour, IP route cache disabled, dual E5540 @2.53GHz, 32bit kernel, FIB_HASH) (about same results for FIB_TRIE) Before patch : real 1m31.199s user 0m13.761s sys 23m24.780s After patch: real 1m5.375s user 0m14.997s sys 15m50.115s Before patch Profile : 13044.00 15.4% __ip_route_output_key vmlinux 8438.00 10.0% dst_destroy vmlinux 5983.00 7.1% fib_semantic_match vmlinux 5410.00 6.4% fib_rules_lookup vmlinux 4803.00 5.7% neigh_lookup vmlinux 4420.00 5.2% _raw_spin_lock vmlinux 3883.00 4.6% rt_set_nexthop vmlinux 3261.00 3.9% _raw_read_lock vmlinux 2794.00 3.3% fib_table_lookup vmlinux 2374.00 2.8% neigh_resolve_output vmlinux 2153.00 2.5% dst_alloc vmlinux 1502.00 1.8% _raw_read_lock_bh vmlinux 1484.00 1.8% kmem_cache_alloc vmlinux 1407.00 1.7% eth_header vmlinux 1406.00 1.7% ipv4_dst_destroy vmlinux 1298.00 1.5% __copy_from_user_ll vmlinux 1174.00 1.4% dev_queue_xmit vmlinux 1000.00 1.2% ip_output vmlinux After patch Profile : 13712.00 15.8% dst_destroy vmlinux 8548.00 9.9% __ip_route_output_key vmlinux 7017.00 8.1% neigh_lookup vmlinux 4554.00 5.3% fib_semantic_match vmlinux 4067.00 4.7% _raw_read_lock vmlinux 3491.00 4.0% dst_alloc vmlinux 3186.00 3.7% neigh_resolve_output vmlinux 3103.00 3.6% fib_table_lookup vmlinux 2098.00 2.4% _raw_read_lock_bh vmlinux 2081.00 2.4% kmem_cache_alloc vmlinux 2013.00 2.3% _raw_spin_lock vmlinux 1763.00 2.0% __copy_from_user_ll vmlinux 1763.00 2.0% ip_output vmlinux 1761.00 2.0% ipv4_dst_destroy vmlinux 1631.00 1.9% eth_header vmlinux 1440.00 1.7% _raw_read_unlock_bh vmlinux Reference results, if IP route cache is enabled : real 0m29.718s user 0m10.845s sys 7m37.341s 25213.00 29.5% __ip_route_output_key vmlinux 9011.00 10.5% dst_release vmlinux 4817.00 5.6% ip_push_pending_frames vmlinux 4232.00 5.0% ip_finish_output vmlinux 3940.00 4.6% udp_sendmsg vmlinux 3730.00 4.4% __copy_from_user_ll vmlinux 3716.00 4.4% ip_route_output_flow vmlinux 2451.00 2.9% __xfrm_lookup vmlinux 2221.00 2.6% ip_append_data vmlinux 1718.00 2.0% _raw_spin_lock_bh vmlinux 1655.00 1.9% __alloc_skb vmlinux 1572.00 1.8% sock_wfree vmlinux 1345.00 1.6% kfree vmlinux Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 9bed00f20dc9f2e86b1834a5a30648f5728a51f8 Author: David Cross Date: Tue Oct 5 18:50:26 2010 -0700 staging: west bridge, block driver change for partition support This patch fixes an error in the block driver wherein multiple partitions in an mmc card were not detected correctly due to incorrect alloc_disk arguments. Signed-off-by: David Cross Signed-off-by: Greg Kroah-Hartman commit 54930e889238200d82d3a35cc12fae4b5f5c22f5 Author: David Cross Date: Tue Oct 5 18:48:08 2010 -0700 staging: west bridge, addition of common lock on cyasdevice This patch adds and initializes a common lock to cyasdevice module. This is meant to be used in order to avoid error scenarios where the device module could be called by both the block and gadget modules at the same time. Signed-off-by: David Cross Signed-off-by: Greg Kroah-Hartman commit d11a5c6e683a76a1439b323194921c19e255ceac Author: nohee ko Date: Tue Oct 5 19:08:36 2010 -0700 staging: brcm80211: remove duplicated file, bcmwifi.c Remove duplicated file, bcmwifi.c from brcmfmac. bcmwifi.c under brcm80211/util/ will be shared between softmac & fullmac drivers Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit c2952c314b4fe61820ba8fd6c949eed636140d52 Author: Flavio Leitner Date: Tue Oct 5 14:23:59 2010 +0000 bonding: add retransmit membership reports tunable Allow sysadmins to configure the number of multicast membership report sent on a link failure event. Signed-off-by: Flavio Leitner Signed-off-by: David S. Miller commit e12b453904c54bbdc515778ff664d87a7f9473af Author: Flavio Leitner Date: Tue Oct 5 14:23:58 2010 +0000 bonding: fix to rejoin multicast groups immediately The IGMP specs states that if the system receives a membership report, it shouldn't send another for the next minute. However, if a link failure happens right after that, the backup slave and the switch connected to this slave will not know about the multicast and the traffic will hang for about a minute. This patch fixes it to rejoin multicast groups immediately after a failover restoring the multicast traffic. Signed-off-by: Flavio Leitner Signed-off-by: David S. Miller commit 5a37e8ca8536c47871d46c82211f399adf06fd44 Author: Flavio Leitner Date: Tue Oct 5 14:23:57 2010 +0000 bonding: rejoin multicast groups on VLANs During a failover, the IGMP membership is sent to update the switch restoring the traffic, but it misses groups added to VLAN devices running on top of bonding devices. This patch changes it to iterate over all VLAN devices on top of it sending IGMP memberships too. Signed-off-by: Flavio Leitner Signed-off-by: David S. Miller commit a8bb69f78194dc483f6c4a4bf8860c1ede35fa25 Author: Breno Leitao Date: Tue Oct 5 13:16:23 2010 +0000 ehea: converting msleeps to waitqueue on check_sqs() function Removing the msleep() call in check_sqs() function, and replacing by a wait queue. Signed-off-by: Breno Leitao Signed-off-by: David S. Miller commit 5b27d42755fa6536a89f32b107fb2a53267696c2 Author: Breno Leitao Date: Tue Oct 5 13:16:22 2010 +0000 ehea: using wait queues instead of msleep on ehea_flush_sq This patch just remove a msleep loop and change to wait queue, making the code cleaner. Signed-off-by: Breno Leitao Acked-by: David Howells Signed-off-by: David S. Miller commit 9ed51657f6ea2a08582d6a9be5404b044972b7e0 Author: Emil Tantilov Date: Tue Oct 5 13:11:30 2010 +0000 ixgbevf: declare functions as static Following patch fixes warnings reported by `make namespacecheck` Reported by Stephen Hemminger CC: Stephen Hemminger Signed-off-by: Emil Tantilov Acked-by: Greg Rose Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 26bf62e47261142d528a6109fdd671a2e280b4ea Merge: 96a03fc d7ccd8f Author: Dave Airlie Date: Wed Oct 6 12:57:54 2010 +1000 Merge branch 'drm-radeon-next' of ../drm-radeon-next into drm-core-next * 'drm-radeon-next' of ../drm-radeon-next: drm/radeon/kms: add drm blit support for evergreen drm/radeon: Modify radeon_pm_in_vbl to use radeon_get_crtc_scanoutpos() drm/radeon: Add function for display scanout position query. drm/radeon/kms: rework spread spectrum handling drm/radeon/kms: remove new pll algo drm/radeon/kms: remove some pll algo flags drm/radeon/kms: prefer high post dividers in legacy pll algo drm/radeon/kms: properly handle 40 bit MC addresses in the cursor code drm/radeon: add properties to configure the width of the underscan borders drm/radeon/kms/r6xx+: use new style fencing (v3) drm/radeon/kms: enable writeback (v2) drm/radeon/kms: clean up r6xx/r7xx blit init (v2) commit 96a03fce54af40b4f0820cd729608bc32c9b8949 Merge: 0c8eb0d a424d76 Author: Dave Airlie Date: Wed Oct 6 12:57:50 2010 +1000 Merge branch 'drm-kdb-next' into drm-core-next * drm-kdb-next: drm/nouveau/kms: Avoid a hang entering KDB with VT accel on. radeon, kdb, kms: Save and restore the LUT on atomic KMS enter/exit drm, kdb, kms: Add an enter argument to mode_set_base_atomic() API drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS. drm/radeon/kms: Implement KDB debug hooks for radeon KMS. commit 0c8eb0dc65f5a78b252eeff6c729ba4741390e23 Merge: e6b46ee d961db7 Author: Dave Airlie Date: Wed Oct 6 12:38:04 2010 +1000 Merge remote branch 'nouveau/for-airlied' of ../drm-nouveau-next into drm-core-next [airlied - add fix for vmwgfx build] * 'nouveau/for-airlied' of ../drm-nouveau-next: (93 commits) drm/ttm: restructure to allow driver to plug in alternate memory manager drm/ttm: introduce utility function to free an allocated memory node drm/nouveau: fix thinkos in mem timing table recordlen check drm/nouveau: parse voltage from perf 0x40 entires drm/nouveau: don't use the default pll limits in table v2.1 on nv50+ cards drm/nv50: Fix large 3D performance regression caused by the interchannel sync patches. drm/nouveau: Synchronize buffer object moves in hardware. drm/nouveau: Use semaphores to handle inter-channel sync in hardware. drm/nouveau: Provide a means to have arbitrary work run on fence completion. drm/nouveau: Minor refactoring/cleanup of the fence code. drm/nouveau: Add a module option to force card POST. drm/nv50: prevent (IB_PUT == IB_GET) for occurring unless idle drm/nv0x-nv4x: Leave the 0x40 bit untouched when changing CRE_LCD. drm/nv30-nv40: Fix postdivider mask when writing engine/memory PLLs. drm/nouveau: Fix perf table parsing on BMP v5.25. drm/nouveau: fix required mode bandwidth calculation for DP drm/nouveau: fix typo in c2aa91afea5f7e7ae4530fabd37414a79c03328c drm/nva3: split pm backend out from nv50 drm/nouveau: run perflvl and M table scripts on mem clock change drm/nouveau: pass perflvl struct to clock_pre() ... commit ad5e4655f9a920b1cc13972e0389eaf9e0ba10b3 Author: Nicolas Kaiser Date: Tue Oct 5 14:11:40 2010 +0200 ASoC: remove duplicated include for nuc900 Remove duplicated include. Signed-off-by: Nicolas Kaiser Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 05c694500b20e0b7c6f7c80d63ef21b92d219752 Author: Guennadi Liakhovetski Date: Tue Oct 5 17:54:28 2010 +0200 ASoC: sh: fix build error: terminate the platform device ID list Platform driver ID table must be zero-element terminated. Signed-off-by: Guennadi Liakhovetski Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit a424d761a00c0233cb7734a8cd572ecd6d0362aa Author: Chris Ball Date: Sun Sep 26 06:47:27 2010 -0500 drm/nouveau/kms: Avoid a hang entering KDB with VT accel on. Francisco Jerez advises that pre-nv20 cards would hang if we entered kdb with accel on and IRQs disabled, so we now disable accel before entering kdb and re-enable it on the way back out. Reported-by: Francisco Jerez Signed-off-by: Chris Ball Signed-off-by: Jason Wessel Signed-off-by: Dave Airlie commit ff773714dd30b802c336064109c535d8b2774e2f Author: Jason Wessel Date: Sun Sep 26 06:47:26 2010 -0500 radeon, kdb, kms: Save and restore the LUT on atomic KMS enter/exit When changing VTs non-atomically the kernel works in conjunction with the Xserver in user space and receives the LUT information from the Xserver via a system call. When changing modes atomically for kdb, this information must be saved and restored without disturbing user space as if nothing ever happened. Signed-off-by: Jason Wessel CC: Jesse Barnes CC: David Airlie CC: dri-devel@lists.freedesktop.org Signed-off-by: Dave Airlie commit 413d45d3627be4748058dea697718ed6fb88bd01 Author: Jason Wessel Date: Sun Sep 26 06:47:25 2010 -0500 drm, kdb, kms: Add an enter argument to mode_set_base_atomic() API Some devices such as the radeon chips receive information from user space which needs to be saved when executing an atomic mode set operation, else the user space would have to be queried again for the information. This patch extends the mode_set_base_atomic() call to pass an argument to indicate if this is an entry or an exit from an atomic kernel mode set change. Individual drm drivers can properly save and restore state accordingly. Signed-off-by: Jason Wessel CC: Jesse Barnes CC: David Airlie CC: dri-devel@lists.freedesktop.org Signed-off-by: Dave Airlie commit be64c2bb4731b0e6223a496eed615b816ac879ec Author: Chris Ball Date: Sun Sep 26 06:47:24 2010 -0500 drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS. Tested on nv50 and nv04 HW. Signed-off-by: Chris Ball Signed-off-by: Jason Wessel CC: Jesse Barnes CC: dri-devel@lists.freedesktop.org Signed-off-by: Dave Airlie commit 4dd19b0dd79c2bfe04a7a19bea0caf9284695cb4 Author: Chris Ball Date: Sun Sep 26 06:47:23 2010 -0500 drm/radeon/kms: Implement KDB debug hooks for radeon KMS. Signed-off-by: Chris Ball Signed-off-by: Jason Wessel CC: Jesse Barnes CC: dri-devel@lists.freedesktop.org Signed-off-by: Dave Airlie commit 0ddc6f46291b030523e4f6538e4ca3c5b75a15e0 Author: David Cross Date: Tue Oct 5 18:44:50 2010 -0700 staging: west bridge cyasgadget, removal of " " before ";" This patch fixes removes all of the the " ;"'s in the west bridge cyasgadget driver and instead replaces them with ";" only. Signed-off-by: David Cross Signed-off-by: Greg Kroah-Hartman commit e6b46ee712b92db1cc2449cf4f65bc635366cad4 Merge: fb7ba21 8aea528 Author: Dave Airlie Date: Wed Oct 6 11:47:56 2010 +1000 Merge branch 'drm-vmware-next' into drm-core-next * drm-vmware-next: drm/vmwgfx: Bump minor and driver date drm/vmwgfx: Save at least one screen layout drm/vmwgfx: Add modinfo version drm/vmwgfx: Add a parameter to get the max fb size drm/vmwgfx: Don't flush fb if we're in the suspended state. drm/vmwgfx: Prune modes based on available VRAM size drm/vmwgfx: Take the ttm lock around the dirty ioctl drm: vmwgfx: Add a struct drm_file parameter to the dirty framebuffer callback drm/vmwgfx: Add new-style PM hooks to improve hibernation behavior drm/vmwgfx: Fix ACPI S3 & S4 functionality. drm/vmwgfx: Really support other depths than 32 commit d7ccd8fc11700502b5a104b7bad595b492a3aa1b Author: Alex Deucher Date: Thu Sep 9 11:33:36 2010 -0400 drm/radeon/kms: add drm blit support for evergreen This patch implements blit support for bo moves using the 3D engine. It uses the same method as r6xx/r7xx: - store the base state in an IB - emit variable state and vertex buffers to do the blit This allows the hw to move bos using the 3D engine and allows full use of vram beyond the pci aperture size. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit 75fa0b08e50cb72715b58321e8259c47adfe4c6f Author: Mario Kleiner Date: Tue Oct 5 19:57:37 2010 -0400 drm/radeon: Modify radeon_pm_in_vbl to use radeon_get_crtc_scanoutpos() radeon_pm_in_vbl() didn't report in vblank status accurately. Make it a wrapper around radeon_get_crtc_scanoutpos() which corrects for biases, so it reports accurately. radeon_pm_in_vbl() will only report in_vbl if all active crtc's are currently inside vblank. agd5f: use rdev->num_crtc rather than hardcoding the crtc count Signed-off-by: Mario Kleiner Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit 6383cf7d7839bf52aa4efa20cc921773126797f4 Author: Mario Kleiner Date: Tue Oct 5 19:57:36 2010 -0400 drm/radeon: Add function for display scanout position query. radeon_get_crtc_scanoutpos() returns the current horizontal and vertical scanout position of a crtc. It also reports if the display scanout is currently inside the vblank area. hpos reports current horizontal pixel scanout position. vpos reports the current scanned out line as a value >= 0 in active scanout. If the scanout is inside vblank area, it reports a negative value, the number of scanlines until end of vblank aka start of active scanout, e.g., -3 == "At most 3 scanlines until end of vblank". This code is derived from radeon_pm_in_vbl(), tested on R500 and R600. Signed-off-by: Mario Kleiner Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit ba032a58d1f320039e7850fb6e8651695c1aa571 Author: Alex Deucher Date: Mon Oct 4 17:13:01 2010 -0400 drm/radeon/kms: rework spread spectrum handling This patch reworks spread spectrum handling to enable it properly on lvds and DP/eDP links. It also fixes several bugs in the old spread spectrum code. - Use the ss recommended reference divider if available when calculating the pll - Use the proper ss command tables on pre-DCE3 asics - Avoid reading past the end of the ss info tables - Enable ss on evergreen asics (lvds, dp, tmds) - Enable ss on DP/eDP links Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit 48dfaaeb6637240af3089bf9b7a00a6cf24e0182 Author: Alex Deucher Date: Wed Sep 29 11:37:41 2010 -0400 drm/radeon/kms: remove new pll algo The recent changes to the old algo (prefer high post div) coupled with the range and precision limitations of using fixed point with the new algo make the new algo less useful. So drop the new algo. This should work as well or better than the old new/old combinations and simplifies the code a lot. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=30218 among others. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit f28488c282d8916b9b6190cc41714815bbaf97d5 Author: Alex Deucher Date: Wed Sep 29 11:37:40 2010 -0400 drm/radeon/kms: remove some pll algo flags These shouldn't be needed with the post div changes in the last patch. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit bcac54da0a6bd2ed93a2a70fe3d4ebc08c4ed779 Author: Alex Deucher Date: Wed Sep 29 11:37:39 2010 -0400 drm/radeon/kms: prefer high post dividers in legacy pll algo the hw prefers higher post dividers Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit f981d4633a29261587e46bbf77bf29aeb2f9666a Author: Alex Deucher Date: Thu Sep 30 19:16:03 2010 -0400 drm/radeon/kms: properly handle 40 bit MC addresses in the cursor code Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit 5bccf5e32f010ac4d99e1eafb8669cfb35a0889a Author: Marius Gröger Date: Tue Sep 21 21:30:59 2010 +0200 drm/radeon: add properties to configure the width of the underscan borders This allows for a more exact fitting on the physical display. The new properties default to zero which corresponds to the previous underscan border width[height] formula: (display_width[display_width] >> 5) + 16. Example to set a horizontal border width of 30 and a vertikal border height of 22: xrandr --output HDMI-0 --set underscan on --set "underscan hborder" 30 --set "underscan vborder" 22 Signed-off-by: Marius Gröger Reviewed-by: Alex Deucher Signed-off-by: Dave Airlie commit d0f8a854c340986359a3b0a97e380c71def7a440 Author: Alex Deucher Date: Sat Sep 4 05:04:34 2010 -0400 drm/radeon/kms/r6xx+: use new style fencing (v3) On r6xx+ a newer fence mechanism was implemented to replace the old wait_until plus scratch regs setup. A single EOP event will flush the destination caches, write a fence value, and generate an interrupt. This is the recommended fence mechanism on r6xx+ asics. This requires my previous writeback patch. v2: fix typo that enabled event fence checking on all asics rather than just r6xx+. v3: properly enable EOP interrupts Should fix: https://bugs.freedesktop.org/show_bug.cgi?id=29972 Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit 724c80e1d630296d1324859e964d80d35007d83c Author: Alex Deucher Date: Fri Aug 27 18:25:25 2010 -0400 drm/radeon/kms: enable writeback (v2) When writeback is enabled, the GPU shadows writes to certain registers into a buffer in memory. The driver can then read the values from the shadow rather than reading back from the register across the bus. Writeback can be disabled by setting the no_wb module param to 1. On r6xx/r7xx/evergreen, the following registers are shadowed: - CP scratch registers - CP read pointer - IH write pointer On r1xx-rr5xx, the following registers are shadowed: - CP scratch registers - CP read pointer v2: - Combine wb patches for r6xx-evergreen and r1xx-r5xx - Writeback is disabled on AGP boards since it tends to be unreliable on AGP using the gart. - Check radeon_wb_init return values properly. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit b70d6bb3f67b2e2964abafb0117f1733f062cba5 Author: Alex Deucher Date: Fri Aug 6 21:36:58 2010 -0400 drm/radeon/kms: clean up r6xx/r7xx blit init (v2) Move common code to init function. v2: make sure the bo is pinned after init as well. Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie commit ace5a3ce40bb90f14953c5e3f73e9cf1176b1a28 Author: Fernando Guzman Lugo Date: Tue Oct 5 19:20:59 2010 -0500 staging: tidspbridge - update Kconfig to select IOMMU module IOMMU module most be selected when using tidspbridge, because now tidsbridge depends on iommu module. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit 93ad12cf1a8c3be46d66581a7acaa1c7fce590e2 Author: nohee ko Date: Tue Oct 5 18:05:04 2010 -0700 staging: brcm80211: bug fix for n_ssids usage and update drv_info -update drv_info so it's visible in "ethtool -i" output -remove n_ssids usage. Fixes nullptr deref bug seen before. Signed-off-by: Grant Grundler Acked-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 52b0e80e72ab7535896d0af72c720b22ad46a421 Author: Brett Rudley Date: Tue Oct 5 16:49:47 2010 -0700 staging: brcm80211: bcmutils.[ch]: purge unused funcs Get rid of unused functions in bcmutils.[ch]. Note that bcmutils.h is shared between fullmac and softmac Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 8aea528736bf83ba0cdde67a3c0ca0250581eade Author: Thomas Hellstrom Date: Tue Oct 5 12:43:09 2010 +0200 drm/vmwgfx: Bump minor and driver date Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit 029e50bfc231741c533128e7e806850557f8e97f Author: Thomas Hellstrom Date: Tue Oct 5 12:43:08 2010 +0200 drm/vmwgfx: Save at least one screen layout Save at least one screen layout during vga save to avoid odd things happening during restore. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit 73558ead6467f0590fe58a03a16a94d2a934178b Author: Thomas Hellstrom Date: Tue Oct 5 12:43:07 2010 +0200 drm/vmwgfx: Add modinfo version Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit 30f47fc85d524d25d63da9e6d77e55ab99c6cc4a Author: Thomas Hellstrom Date: Tue Oct 5 12:43:06 2010 +0200 drm/vmwgfx: Add a parameter to get the max fb size This can be used by the X server to restrict mode resolutions and size of root pixmap. Bump minor to announce this availability. Bump driver date. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit 09e2601b5a7bb817fb07df6f430289484a9a2cad Author: Thomas Hellstrom Date: Tue Oct 5 12:43:05 2010 +0200 drm/vmwgfx: Don't flush fb if we're in the suspended state. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit e133e7371231e49c3e7d626e2251cb6f7c3ca1ad Author: Thomas Hellstrom Date: Tue Oct 5 12:43:04 2010 +0200 drm/vmwgfx: Prune modes based on available VRAM size This needs to be reviewed once we support screen objects and don't rely on VRAM for the frame-buffer. Also fix some integer overflow issues pointed out by Michel Daenzer. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit 3a939a5ece3030e60c966a885c8e9bd329c4faf7 Author: Thomas Hellstrom Date: Tue Oct 5 12:43:03 2010 +0200 drm/vmwgfx: Take the ttm lock around the dirty ioctl This makes sure noone accesses the fifo while it's taken down using the dirty ioctl. Also make sure all workqueues are idled before the fifo is taken down. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit 02b001624f0384540299d9288fdaf37b7d37c814 Author: Thomas Hellstrom Date: Tue Oct 5 12:43:02 2010 +0200 drm: vmwgfx: Add a struct drm_file parameter to the dirty framebuffer callback This is needed for the callback to identify the caller and take appropriate locks if needed. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit 7fbd721ad35f8ffec8d9a82e0e4b390cb6c9f4f7 Author: Thomas Hellstrom Date: Tue Oct 5 12:43:01 2010 +0200 drm/vmwgfx: Add new-style PM hooks to improve hibernation behavior Add the new-style PM hooks prepare and complete. This allows us to power up the device again after the hibernation image has been created, and display output will thus be active until the VM is finally powered off. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit 094e0fa8b96c9fab5df9597e728d82f3d87ee471 Author: Thomas Hellstrom Date: Tue Oct 5 12:43:00 2010 +0200 drm/vmwgfx: Fix ACPI S3 & S4 functionality. Don't suspend or hibernate when there are 3D resources active since we can't restore the device's 3D state. Instead fail with an error message. In other cases, make sure we re-enable the fifo and unlock ttm on resume. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit d3216a0c3133d8e88ec45c7ecd9f38b421f90c03 Author: Thomas Hellstrom Date: Tue Oct 5 12:42:59 2010 +0200 drm/vmwgfx: Really support other depths than 32 Also add some sanity checks. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie commit fb7ba2114bcd8bb51640c20bc68f89164b29b9ed Merge: 9a170ca abb295f Author: Dave Airlie Date: Wed Oct 6 11:10:48 2010 +1000 Merge remote branch 'korg/drm-fixes' into drm-vmware-next necessary for some of the vmware fixes to be pushed in. Conflicts: drivers/gpu/drm/drm_gem.c drivers/gpu/drm/i915/intel_fb.c include/drm/drmP.h commit 9a170caed6fce89da77852575a7eee7dbadee332 Merge: 45ff46c 7b4f399 Author: Dave Airlie Date: Wed Oct 6 10:11:56 2010 +1000 Merge remote branch 'intel/drm-intel-next' of ../drm-next into drm-core-next * 'intel/drm-intel-next' of ../drm-next: (266 commits) drm/i915: Avoid circular locking from intel_fbdev_fini() drm/i915: mark display port DPMS state as 'ON' when enabling output drm/i915: Skip pread/pwrite if size to copy is 0. drm/i915: avoid struct mutex output_poll mutex lock loop on unload drm/i915: Rephrase pwrite bounds checking to avoid any potential overflow drm/i915: Sanity check pread/pwrite drm/i915: Use pipe state to tell when pipe is off drm/i915: vblank status not valid while training display port drivers/gpu/drm/i915/i915_gem.c: Add missing error handling code drm/i915: Don't mask the return code whilst relocating. drm/i915: If the GPU hangs twice within 5 seconds, declare it wedged. drm/i915: Only print 'generating error event' if we actually are drm/i915: Try to reset gen2 devices. drm/i915: Clear fence registers on GPU reset drm/i915: Force the domain to CPU on unbinding whilst wedged. drm: Move the GTT accounting to i915 drm/i915: Fix refleak during eviction. i915: Added function to initialize VBT settings drm/i915: Remove redundant deletion of obj->gpu_write_list drm/i915: Make get/put pages static ... commit 673e1f31dfa16bc16a4c9a37a461270076d2c6ac Author: Greg Kroah-Hartman Date: Tue Oct 5 16:24:17 2010 -0700 staging: autofs3: get the TODO file right the third time This is what Arnd wanted the file to say. Cc: Arnd Bergmann Cc: H. Peter Anvin Cc: Ian Kent Signed-off-by: Greg Kroah-Hartman commit 1ec1e82f2510e2bdcb6268ed74aa79e1a7bc9594 Author: Sascha Hauer Date: Thu Sep 30 13:56:34 2010 +0000 dmaengine: Add Freescale i.MX SDMA support This patch adds support for the Freescale i.MX SDMA engine. The SDMA engine is a scatter/gather DMA engine which is implemented as a seperate coprocessor. SDMA needs its own firmware which is requested using the standard request_firmware mechanism. The firmware has different entry points for each peripheral type, so drivers have to pass the peripheral type to the DMA engine which in turn picks the correct firmware entry point from a table contained in the firmware image itself. The original Freescale code also supports support for transfering data to the internal SRAM which needs different entry points to the firmware. Support for this is currently not implemented. Also, support for the ASRC (asymmetric sample rate converter) is skipped. I took a very simple approach to implement dmaengine support. Only a single descriptor is statically assigned to a each channel. This means that transfers can't be queued up but only a single transfer is in progress. This simplifies implementation a lot and is sufficient for the usual device/memory transfers. Signed-off-by: Sascha Hauer Reviewed-by: Linus Walleij Signed-off-by: Dan Williams commit 6e3ecaf0ad49de0bed829d409a164e7107c02993 Author: Sascha Hauer Date: Thu Sep 30 13:56:33 2010 +0000 dmaengine: add wrapper functions for device control functions Add wrapper functions around the dma_device->device_control function to bring back type safety. Also, add a wrapper function around dma_async_tx_descriptor->tx_submit. This is named dmaengine_submit instead of dmaengine_tx_submit to get rid of the confusing 'tx' in the function name Signed-off-by: Sascha Hauer Signed-off-by: Dan Williams commit 782bc950d84e404422ba21008fd51ee894c8d231 Author: Sascha Hauer Date: Thu Sep 30 13:56:32 2010 +0000 dmaengine: add possibility for cyclic transfers Cyclic transfers are useful for audio where a single buffer divided in periods has to be transfered endlessly until stopped. After being prepared the transfer is started using the dma_async_descriptor->tx_submit function. dma_async_descriptor->callback is called after each period. The transfer is stopped using the DMA_TERMINATE_ALL callback. While being used for cyclic transfers the channel cannot be used for other transfer types. Signed-off-by: Sascha Hauer Cc: Haavard Skinnemoen Signed-off-by: Dan Williams commit 4de0a7594823d04361281e34e59f2c1108899f3e Author: Tony Luck Date: Tue Oct 5 15:41:25 2010 -0700 [IA64] Initialize interrupts later (from init_IRQ()) Thomas Gleixner is cleaning up the generic irq code, and ia64 ran into problems because it calls register_intr() before early_irq_init() is called. Move the call to acpi_boot_init() from setup_arch() to init_IRQ(). As a bonus - moving the call later means we no longer need the hacks in iosapic.c to switch between the bootmem and regular allocator - we can just used kzalloc() for allocation. Signed-off-by: Tony Luck commit 2ab573487a98c06fdfb34308f641f09369d61fa2 Author: Fernando Guzman Lugo Date: Tue Oct 5 15:35:44 2010 -0500 staging: tidspbridge - remove dmm custom module Dmm custom module is not needed anymore. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit b1ced160af36043ee80d354318794753b6b7c008 Author: Fernando Guzman Lugo Date: Tue Oct 5 15:35:43 2010 -0500 staging: tidspbridge - deprecate reserve/unreserve_memory funtions Now what iommu memory usage is kept track by iommu module the functions reserve/unreserve_memory are not needed anymore. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit db348ca36e5881cd1d2e5caa6eee7d0237d07a3d Author: Fernando Guzman Lugo Date: Tue Oct 5 15:35:42 2010 -0500 staging: tidspbridge - remove reserved memory clean up Now iommv module keeps track of iommu memory used, we do not need resource cleanup for reserved memories anymore. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit b5a44939231d6e3b0354624289507bfa1432a7b1 Author: Fernando Guzman Lugo Date: Tue Oct 5 15:35:41 2010 -0500 staging: tidspbridge: remove dw_dmmu_base from cfg_hostres struct We don't need to map iva2 iommu register base address anymore. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit f94378f9f9a897fc08e9d12733401ae52466e408 Author: Fernando Guzman Lugo Date: Tue Oct 5 15:35:40 2010 -0500 staging: tidspbridge - move all iommu related code to a new file Create dsp-mmu module and moves all the iommu code related to this module. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit 053fdb85f56e84bff64a65601be7f72608f016da Author: Fernando Guzman Lugo Date: Tue Oct 5 15:35:39 2010 -0500 staging: tidspbridge - remove hw directory hw directory was only being used for custom iommu implementation APIs, so after the iommu module migration this directory is not needed anymore. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit f265846db1e755c11498f6f7c011127dfcc5634a Author: Fernando Guzman Lugo Date: Tue Oct 5 15:35:38 2010 -0500 staging: tidspbridge - fix mmufault support With changes for iommu migration mmufault report and dsp track dump is broken, this patch fixes that. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit e7396e77d9e4230bf725b5807732cbca191d111f Author: Fernando Guzman Lugo Date: Tue Oct 5 15:35:37 2010 -0500 staging: tidspbridge - remove custom mmu code from tiomap3430.c This patch removes all the custom mmu code remaining in tiomap3430.c which is not needed anymore. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit 4dd1944ab7242d76534c97d5fef0ce541a2f1040 Author: Fernando Guzman Lugo Date: Tue Oct 5 15:35:36 2010 -0500 staging: tidspbridge - rename bridge_brd_mem_map/unmap to a proper name Now these functions only map user space addresses to dsp virtual addresses, so now the functions have a more meaningful name. Also now user_to_dsp_map returns the mapped address. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit 0c10e91b6cc9d1c6a23e9eed3e0653f30b6eb3d3 Author: Fernando Guzman Lugo Date: Tue Oct 5 15:35:35 2010 -0500 staging: tidspbridge - move shared memory iommu maps to tiomap3430.c Now iommu maps of shared memory segments are done in bridge_brd_start and unmaped in bridge_brd_stop. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit 3f66116e89521ef71ab0d63dc07a639def88a577 Author: Alban Crequy Date: Mon Oct 4 08:48:28 2010 +0000 AF_UNIX: Implement SO_TIMESTAMP and SO_TIMETAMPNS on Unix sockets Userspace applications can already request to receive timestamps with: setsockopt(sockfd, SOL_SOCKET, SO_TIMESTAMP, ...) Although setsockopt() returns zero (success), timestamps are not added to the ancillary data. This patch fixes that on SOCK_DGRAM and SOCK_SEQPACKET Unix sockets. Signed-off-by: Alban Crequy Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit d6bf781712a1d25cc8987036b3a48535b331eb91 Author: Eric Dumazet Date: Mon Oct 4 06:15:44 2010 +0000 net neigh: RCU conversion of neigh hash table David This is the first step for RCU conversion of neigh code. Next patches will convert hash_buckets[] and "struct neighbour" to RCU protected objects. Thanks [PATCH net-next] net neigh: RCU conversion of neigh hash table Instead of storing hash_buckets, hash_mask and hash_rnd in "struct neigh_table", a new structure is defined : struct neigh_hash_table { struct neighbour **hash_buckets; unsigned int hash_mask; __u32 hash_rnd; struct rcu_head rcu; }; And "struct neigh_table" has an RCU protected pointer to such a neigh_hash_table. This means the signature of (*hash)() function changed: We need to add a third parameter with the actual hash_rnd value, since this is not anymore a neigh_table field. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 110b2499370c401cdcc7c63e481084467291d556 Author: Eric Dumazet Date: Mon Oct 4 04:27:36 2010 +0000 net neigh: neigh_delete() and neigh_add() changes neigh_delete() and neigh_add() dont need to touch device refcount, we hold RTNL when calling them, so device cannot disappear under us. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit caf586e5f23cebb2a68cbaf288d59dbbf2d74052 Author: Eric Dumazet Date: Thu Sep 30 21:06:55 2010 +0000 net: add a core netdev->rx_dropped counter In various situations, a device provides a packet to our stack and we drop it before it enters protocol stack : - softnet backlog full (accounted in /proc/net/softnet_stat) - bad vlan tag (not accounted) - unknown/unregistered protocol (not accounted) We can handle a per-device counter of such dropped frames at core level, and automatically adds it to the device provided stats (rx_dropped), so that standard tools can be used (ifconfig, ip link, cat /proc/net/dev) This is a generalization of commit 8990f468a (net: rx_dropped accounting), thus reverting it. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 773e3f93577ffb493fb7c39b1a6ecf39b5748e87 Author: Paul E. McKenney Date: Tue Oct 5 14:03:02 2010 -0700 rcu: move check from rcu_dereference_bh to rcu_read_lock_bh_held As suggested by Linus, push the irqs_disabled() down to the rcu_read_lock_bh_held() level so that all callers get the benefit of the correct check. Signed-off-by: Paul E. McKenney commit fffa1cca3db6ac0ce612bc52f5cbd23b6672566f Author: Vinod Koul Date: Tue Oct 5 16:25:17 2010 +0100 Staging: sst: Intel SST audio driver This is the Intel SST audio driver. As compared to the previous versions it has all the printks and other stuff noted cleaned up and more hardware support. The Aava support is disabled in this patch (is_aava resolves to 0) because the Aava board detection logic is not yet upstream. The driver itself is a combination of a traditional ALSA driver and a hardware assisted offload driver which can play audio while the processor is asleep but which can't do all the more interactive stuff. In the general case most software would use the ALSA interface, but the other interface is needed for certain classes of use such as music playback on highly power consumption sensitive devices. This is going to staging primarily because it depends upon the staging memrar driver. Signed-off-by: Vinod Koul Signed-off-by: Harsha Priya [Merged together and tweaked for -next] Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman commit a747d4b817daf95c64ac6396e27fddc66c83a811 Author: Greg Kroah-Hartman Date: Tue Oct 5 12:08:48 2010 -0700 Staging: olpc_dcon: mark the driver as CONFIG_BROKEN for now It doesn't build yet, as it depends on some changes that are not yet in the tree, so mark it as BROKEN for now until that gets resolved. Reported-by: Randy Dunlap Cc: Andres Salomon Signed-off-by: Greg Kroah-Hartman commit 82d4b4776d575223c14b25546e0336541ef8ba94 Author: Felipe Contreras Date: Mon Oct 4 19:09:15 2010 +0300 staging: tidspbridge: use omap_dsp_platform_data Signed-off-by: Felipe Contreras Signed-off-by: Greg Kroah-Hartman commit 90173882ed15a8034d6d162da5f343a2c7d87587 Author: Felipe Contreras Date: Mon Oct 4 19:09:14 2010 +0300 omap: add dsp platform device Otherwise tidspbridge cannot work. It looks like this was dropped in the conversion to staging. I took the liberty of doing some cleaning up. Signed-off-by: Felipe Contreras Acked-by: Tony Lindgren Signed-off-by: Greg Kroah-Hartman commit 07dea29a110b610a82ab7ecfea99b617d51c4965 Author: Tracey Dent Date: Sat Oct 2 12:38:02 2010 -0400 Staging: rtl8192u: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 72aba90f17c72d7515972ad9b9bdbea7c46caa6c Author: Tracey Dent Date: Sat Oct 2 12:37:56 2010 -0400 Staging: rt2860: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 6236709aceac4f7ceab3b3ec65bf94c584287fef Author: Tracey Dent Date: Sat Oct 2 12:38:05 2010 -0400 Staging: usbip: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 54e2c96ed5009a08e490a2a8b1ed2d322305a2da Author: Tracey Dent Date: Sat Oct 2 12:37:54 2010 -0400 Staging: dream: qdsp5: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 958f2f42e2328c5fda24e25c1d1cdbddaf438325 Author: Tracey Dent Date: Sat Oct 2 12:37:55 2010 -0400 Staging: easycap: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 23e59c47b51103a90f582603209380dbf3271751 Author: Tracey Dent Date: Sat Oct 2 12:37:57 2010 -0400 Staging: rt2870: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 4ad10e552e36d0c082eb5528dea2315f8ae73a4f Author: Tracey Dent Date: Sat Oct 2 12:37:52 2010 -0400 Staging: dream: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 11143102f433b99c3af447edb2da080607c2b8ab Author: Tracey Dent Date: Sat Oct 2 12:37:53 2010 -0400 Staging: dream: camera: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 6fa7aa0d13a2921c1defc53f82f09bffaef17b4c Author: Tracey Dent Date: Sat Oct 2 12:37:51 2010 -0400 Staging: cxt1e1: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 7f1746fecdee03279a47ad75e689b6fefe368e67 Author: Tracey Dent Date: Sat Oct 2 12:37:58 2010 -0400 Staging: rtl8187se: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit bee9f581f09d12e5c4fb5182a66538605c1ad719 Author: Tracey Dent Date: Sat Oct 2 12:38:04 2010 -0400 Staging: tm6000: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit edffd7d91dc8003fb744ef6fce0271cb9265202b Author: Tracey Dent Date: Sat Oct 2 12:37:59 2010 -0400 Staging: rtl8192e: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 8138d41632a551a65fd02f9c883e4e37f63d596f Author: Tracey Dent Date: Sat Oct 2 12:38:03 2010 -0400 Staging: rtl8192u: ieee80211: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 9c36d724c1fc36200d4a79e2159e0bc4c4740c36 Author: Tracey Dent Date: Sat Oct 2 12:38:09 2010 -0400 Staging: wlags49_h25: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 60930a01983957530693051746bfbf5bb6729d1b Author: Tracey Dent Date: Sat Oct 2 12:38:07 2010 -0400 Staging: vt6656: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit a1ecc6a3fe507ecd0fc60a1e881861235bd11097 Author: Tracey Dent Date: Sat Oct 2 12:38:06 2010 -0400 Staging: vt6655: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 76831125b2e49bfc4b0e0ed9c77015b8d1529a06 Author: Tracey Dent Date: Sat Oct 2 12:38:08 2010 -0400 Staging: wlags49_h2: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 8e03fc590b5a65ccee59e2624a84bec681fd56a6 Author: Tracey Dent Date: Sat Oct 2 12:37:50 2010 -0400 Staging: cx25821: Makefile: cleaned up Makefile cflag lines Changed to use the proper ccflags-y option Signed-off-by: Tracey Dent Acked-by: Sam Ravnborg Signed-off-by: Greg Kroah-Hartman commit 30b5309ae54723785bd0572be9316afd5dc203a7 Author: Michael Hennerich Date: Fri Oct 1 16:41:52 2010 +0200 staging: iio: adc: Address mailing list feedback by Jonathan Cameron Add missing new line Fix typo Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 985dbe776b0411ebf740b72a94a397fd0217570f Author: Michael Hennerich Date: Fri Oct 1 16:41:51 2010 +0200 staging: iio: adc: Enable driver support for ad799x AD converters Driver for ad7991, ad7995, ad7999, ad7992, ad7993, ad7994, ad7997 and ad7998 multichannel ADC. Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit e5558679bbb80788dc8c4c30484ac0a68e971ca5 Author: Pavan Savoy Date: Thu Sep 30 16:13:30 2010 -0400 staging: ti-st: mv ti_wilink_st header Move the header to a standard linux device driver location. This should pave the way for other drivers to be moved into the relevant directories. ti_wilink_st.h is a common header file used by the TI's shared transport device driver for WiLink chipsets. Each individual protocol drivers like bluetooth driver, FM V4L2 driver and GPS drivers will make use of this header. Signed-off-by: Pavan Savoy Signed-off-by: Greg Kroah-Hartman commit c7afa08d80dbcfdbd7fd04388f7bc475ec8acf69 Author: Pavan Savoy Date: Thu Sep 30 16:13:29 2010 -0400 staging: ti-st: drop the __KERNEL__ ti_wilink_st.h had the line discipline number which the user-space daemon refers to, to install and un-install the line discipline upon request from the shared transport driver via rfkill device. On moving this line discipline number to standard location of tty.h drop the __KERNEL__ flag in the header, since the header file would no longer be used by user-space. Signed-off-by: Pavan Savoy Signed-off-by: Greg Kroah-Hartman commit 40fb29a777d23b1161271ec88fd21739835e4f6a Author: Pavan Savoy Date: Thu Sep 30 16:13:28 2010 -0400 tty.h: new ldisc for TI WiLink ST Texas Instrument's WiLink7 connectivity devices pack wireless connectivity technologies like Bluetooth, FM Radio Receiver and Transmitter, GPS and WLAN into a single die. The BT, FM and GPS core on the chip are interfaced to application processors via a single UART. This line discipline driver allows such different technologies to be used simultaneous and independent of each other. Signed-off-by: Pavan Savoy Signed-off-by: Greg Kroah-Hartman commit 7e24cce38a99f373450db67bf576fe73e8168d66 Author: Anton Blanchard Date: Fri Oct 1 14:19:55 2010 -0700 Staging: zram: work around oops due to startup ordering snafu I'm getting an oops when running mkfs on zram: NIP [d0000000030e0340] .zram_inc_stat+0x58/0x84 [zram] [c00000006d58f720] [d0000000030e091c] .zram_make_request+0xa8/0x6a0 [zram] [c00000006d58f840] [c00000000035795c] .generic_make_request+0x390/0x434 [c00000006d58f950] [c000000000357b14] .submit_bio+0x114/0x140 [c00000006d58fa20] [c000000000361778] .blkdev_issue_discard+0x1ac/0x250 [c00000006d58fb10] [c000000000361f68] .blkdev_ioctl+0x358/0x7fc [c00000006d58fbd0] [c0000000001c1c1c] .block_ioctl+0x6c/0x90 [c00000006d58fc70] [c0000000001984c4] .do_vfs_ioctl+0x660/0x6d4 [c00000006d58fd70] [c0000000001985a0] .SyS_ioctl+0x68/0xb0 Since disksize no longer starts as 0 it looks like we can call zram_make_request before the device has been initialised. The patch below fixes the immediate problem but this would go away if we move the initialisation function elsewhere (as suggested in another thread). Signed-off-by: Anton Blanchard Cc: Nitin Gupta Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman commit e80302977017e5cbb12fdf843e5a070ad5d11e3a Author: Nicolas Kaiser Date: Mon Oct 4 14:10:45 2010 +0200 staging: spectra: remove duplicated includes Remove duplicated includes. Signed-off-by: Nicolas Kaiser Signed-off-by: Greg Kroah-Hartman commit 3f609dd661ec5f34adcfdde07470f5691c567259 Author: Nicolas Kaiser Date: Mon Oct 4 14:08:12 2010 +0200 staging: lirc: remove duplicated include Remove duplicated include. Signed-off-by: Nicolas Kaiser Signed-off-by: Greg Kroah-Hartman commit d5ca053c8bba457a69652760649096628627c810 Author: Nicolas Kaiser Date: Mon Oct 4 14:12:39 2010 +0200 staging: tidspbridge: remove duplicated include Remove duplicated include. Signed-off-by: Nicolas Kaiser Signed-off-by: Greg Kroah-Hartman commit 86ee1e49cf8bd07d4e849be8f056c6bc179686b8 Author: Vasiliy Kulikov Date: Sun Oct 3 21:22:48 2010 +0400 staging: ft1000: fix kernel info leak to userland for statistics get_stat_data is not fully initialized before copy_to_user() call, e.g. LedStat is not always set. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit b7378b9ed641b9e39f613d22c762a8ac2a15b8b8 Author: Vasiliy Kulikov Date: Sun Oct 3 21:58:46 2010 +0400 staging: ft1000: fix error path init_ft1000_netdev() calls kfree(netdev) instead of free_netdev(netdev). It doesn't check kmalloc() return value. ft1000_read_fifo_reg() doesn't free dr on error and calls kfree(urb) instead of usb_free_urb(urb). Also kfree(NULL) is OK. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit a285bf995da256be5d96110ec0e7592cb6b2e600 Author: Maurice Dawson Date: Thu Sep 30 19:55:18 2010 +0100 staging: comedi: file: Removed whitespaces before quoted newlines Unnecessary whitespaces before quoted newlines Signed-off-by: Maurice Dawson Signed-off-by: Greg Kroah-Hartman commit 39d70a4ab178e0a44e9f31c9dd5b9555347018ec Author: Haiyang Zhang Date: Thu Sep 30 10:52:13 2010 -0700 staging: hv: Remove camel case variables in channel.c Rename camel case variables in channel.c and changed them to lowercase. Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 03094f5e92738a7a408d76aa81c3f22252f59fb5 Author: Greg Kroah-Hartman Date: Tue Oct 5 11:30:33 2010 -0700 Staging: autofs3: fix up TODO As per Peter's request, move people to autofs4, don't fix up autofs3. Cc: Arnd Bergmann Cc: H. Peter Anvin Signed-off-by: Greg Kroah-Hartman commit 5b5a285c7bab3851aa428a2ead14106a3f949788 Author: Greg Kroah-Hartman Date: Tue Oct 5 11:28:57 2010 -0700 Staging: brcm80211: bcmdefs.h: remove unused #defines There were a number of unused and unneeded defines in here, remove them. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 648a79b994b41a1056886976735ff4b9bbb6ea2c Author: Greg Kroah-Hartman Date: Tue Oct 5 11:20:34 2010 -0700 Staging: brcm80211: remove STATIC definition Use 'static', it's the correct thing to do. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit df8501c96cf35eac586cce81c5547060ef22f624 Author: Greg Kroah-Hartman Date: Tue Oct 5 11:18:31 2010 -0700 Staging: brcm80211: remove CONST definition Use 'const', it's the correct thing to do. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 3deea9049e161965fe3caa2ae1f5f0bc96643465 Author: Greg Kroah-Hartman Date: Tue Oct 5 11:15:47 2010 -0700 Staging: brcm80211: s/ulong/unsigned long/ This changes the usage everywhere in the driver, and removes the definition as it should no longer be used anywhere. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit d7e508880b8f674aa82d3d5d9b2de27c034329a3 Author: Greg Kroah-Hartman Date: Tue Oct 5 11:11:46 2010 -0700 Staging: brcm80211: s/ushort/unsigned short/ This changes the usage everywhere in the driver, and removes the definition as it should no longer be used anywhere. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 580a0bd9b71d8e4e63e0720e64f339c740448c98 Author: Greg Kroah-Hartman Date: Tue Oct 5 11:09:48 2010 -0700 Staging: brcm80211: s/uchar/unsigned char/ This changes the usage everywhere in the driver, and removes the definition as it should no longer be used anywhere. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 562c8850786d8d1a9e3f9f076deb581962c594ab Author: Greg Kroah-Hartman Date: Tue Oct 5 11:04:17 2010 -0700 Staging: brcm80211: s/int8/s8/ This changes the usage everywhere in the driver, and removes the definition as it should no longer be used anywhere. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 46bf695802bb090d9d0d0fec6bb5b46c24b17d4e Merge: e7480bb 4b48e68 Author: John W. Linville Date: Tue Oct 5 13:50:27 2010 -0400 Merge branch 'wireless-next' of git://git.kernel.org/pub/scm/linux/kernel/git/luca/wl12xx commit e7480bbb926c5816e4fbfca70748096bbe0e4978 Author: Luis R. Rodriguez Date: Fri Oct 1 17:05:19 2010 -0400 mac80211: fix channel assumption for association done work Be consistent and use the wk->chan instead of the local->hw.conf.channel for the association done work. This prevents any possible races against channel changes while we run this work. In the case that the race did happen we would be initializing the bit rates for the new AP under the assumption of a wrong channel and in the worst case, wrong band. This could lead to trying to assuming we could use CCK frames on 5 GHz, for example. This patch has a fix for kernels >= v2.6.34 Cc: stable@kernel.org Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 691895e7e2204be9a717809fb78d6ff7c10b470a Author: Johannes Berg Date: Tue Oct 5 16:19:42 2010 +0200 nl80211: fix remain-on-channel documentation The documentation for NL80211_CMD_REMAIN_ON_CHANNEL isn't accurate, an interface index is required by the command. Update it accordingly. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 970bf9d40c03e48cc34ee2c1a70693a0e0fca3f6 Author: Gabor Juhos Date: Tue Oct 5 11:32:17 2010 +0200 ath9k: get correct tx gain type in ath9k_hw_4k_get_eeprom The base_eep_header_4k structure contains information that the device supports high power tx gain table or not. However the ath9k_hw_4k_get_eeprom function does not return that value when it is called with EEP_TXGAIN_TYPE. This leads to that the tx gain initialization will use the init values from the original tx gain table even if the device inidicates that the high power table should be used. Changes-licensed-under: ISC Signed-off-by: Gabor Juhos Signed-off-by: Shu Hwa Shen Signed-off-by: John W. Linville commit 4198a8d036c998ca8cec1b08116ab9f6a3a9ffff Author: Bruno Randolf Date: Tue Oct 5 13:27:17 2010 +0900 ath5k: Don't wake internal queues We should only wake up queues which mac80211 knows about (queues 0-3). We have another internal queue ("CAB", queue number 6) which we use for power-saved frames. When transmitted frames are processed from this queue, we have to make sure we don't bother mac80211 with waking a queue it doesn't know about. this fixes: WARNING: at /home/br1/ath/wireless-testing/net/mac80211/util.c:275 __ieee80211_wake_queue+0xd6/0xe0 [mac80211]() Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 025e6be220e448c02045e8499c7db8ce4bc8eea2 Author: Johannes Berg Date: Tue Oct 5 10:41:47 2010 +0200 mac80211: fix deadlock with multiple interfaces The locking around ieee80211_recalc_smps is buggy -- it cannot acquire another interface's mutex while the iflist mutex is held because another code path could be holding the iface mutex and trying to acquire the iflist mutex. But the locking is also unnecessary, we only check "ifmgd->associated" as a bool, and don't use the pointer (in check_mgd_smps). Reported-by: Ben Greear Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 6774889314ba507483e63c014fcb81adfc127202 Author: Johannes Berg Date: Mon Oct 4 21:14:06 2010 +0200 nl80211: reduce dumping boilerplate Consolidate boilerplate code needed for .dumpit calls operating on netdevs. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 41265714810e20d91ddd7aaca30043b0f12190ad Author: Johannes Berg Date: Mon Oct 4 21:14:05 2010 +0200 nl80211: use generic check for netif_running Use a new flag that requires the netdev to be UP and use it to check instead of coding the check into all functions that require it. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 4c476991062a0a59523c2bf193f09087f469686a Author: Johannes Berg Date: Mon Oct 4 21:36:35 2010 +0200 nl80211: use the new genetlink pre/post_doit hooks This makes nl80211 use the new genetlink pre_doit/post_doit hooks for locking and checking the interface/wiphy index. This significantly reduces the code size and the likelihood of locking errors. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit ff4c92d85c6f2777d2067f8552e7fefb4d1754ae Author: Johannes Berg Date: Mon Oct 4 21:14:03 2010 +0200 genetlink: introduce pre_doit/post_doit hooks Each family may have some amount of boilerplate locking code that applies to most, or even all, commands. This allows a family to handle such things in a more generic way, by allowing it to a) include private flags in each operation b) specify a pre_doit hook that is called, before an operation's doit() callback and may return an error directly, c) specify a post_doit hook that can undo locking or similar things done by pre_doit, and finally d) include two private pointers in each info struct passed between all these operations including doit(). (It's two because I'll need two in nl80211 -- can be extended.) Signed-off-by: Johannes Berg Acked-by: David S. Miller Signed-off-by: John W. Linville commit 2ee4e27cf25ab647137713ca16377d8d9e138ea2 Author: Dan Carpenter Date: Mon Oct 4 14:31:46 2010 +0200 ipw2200: check for allocation failures If kzalloc() fails then return should return with -ENOMEM. Signed-off-by: Dan Carpenter Signed-off-by: John W. Linville commit 9eba612549f575d7dccda672ce932e15e7392d83 Author: Bruno Randolf Date: Mon Oct 4 11:17:30 2010 +0900 mac80211: Add WME information element for IBSS Enable WME QoS in IBSS mode by adding a WME information element to beacons and probe respones and by checking for it and marking stations as WME capable if it is present. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit b34793ee27aa547fc9b4213f89036c9a0ecaad5d Author: Helmut Schaa Date: Sat Oct 2 11:34:56 2010 +0200 rt2x00: Work around hw aggregation oddity in rt2800 If a frame is not meant to be sent as AMPDU or part of it the hw might still decide to aggregate this frame if a previous frame started an AMPDU. However, this will limit the usefulness of the reported tx rate since the reported rate will be the one specified in the TXWI of the first frame and thus it is not possible to reliably caculate the number of retrys by substracting the reported tx rate from the tx rate in the TXWI. To fix this issue, only report the successful rate for frames that were not meant to be aggregated but ended up in an aggregate. Example: Frame A (MCS7, AMPDU=1) B (MCS7, AMPDU=1) C (MCS12, AMDPU=0, PROBE_RATE) Although frame C shoudn't be aggregated the hw might sill put it into an AMPDU together with A and B. If the transmission succeeds the tx status will contain MCS7 for all three frames. In that case we should only report MCS7 as success rate and avoid reporting MCS12-MCS8 as failed tx attempts as this will affect the future rate control decisions. This oddity might strike us in other scenarious as well but the most common "wrong" report happened for frames used to probe a different tx rate. This improves the rate control decisions notable. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 01e946f22ae4bafe370d263f2ef499b8b232aec1 Author: Helmut Schaa Date: Sat Oct 2 11:34:26 2010 +0200 rt2x00: Improve cooperation between rt2800pci and minstrel In order to lower the impact of probe rates don't send a frame as AMPDU if the rate control algorithm sets IEEE80211_TX_CTL_RATE_CTRL_PROBE. Otherwise a whole aggregate would be send with a probe rate which might lead to numerous retries. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 1f0280cb35ae252d6db3ce8f56b7a1dc174460e5 Author: Helmut Schaa Date: Sat Oct 2 11:34:05 2010 +0200 rt2x00: Fix oops caused by error path in rt2x00lib_start When rt2x00lib_enable_radio fails to enable the radio, rt2x00lib_start will call rt2x00queue_uninitialize to uninitialize the queues. Since, the queues are not initialized here but already in rt2x00lib_initialize we shouldn't uninitialize the queues here. Otherwise, a consecutive call to rt2x00lib_start will oops (see below) because it assumes the queues are already initialized. BUG: unable to handle kernel NULL pointer dereference at 00000010 IP: [] :rt2800pci:rt2800pci_clear_entry+0x1/0x40 *pde = 00000000 Oops: 0000 [#1] SMP Modules linked in: ... rt2800pci ... Pid: 5995, comm: hostapd Not tainted (2.6.27.8 #1) EIP: 0060:[] EFLAGS: 00210246 CPU: 3 EIP is at rt2800pci_clear_entry+0x1/0x40 [rt2800pci] EAX: 00000000 EBX: f698863c ECX: 00200296 EDX: f8d2dee0 ESI: f6988600 EDI: f5b6f000 EBP: 00000000 ESP: f6d75e4c DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 Process hostapd (pid: 5995, ti=f6d74000 task=f6ce2300 task.ti=f6d74000) Stack: f698863c fa00eaec 00000000 f5b6f000 00000000 f7b67000 f5b6e280 fa00c629 f5b6f000 00000000 fa00ca3d f7b67480 00000001 fa177d4c 01b6e890 f7b67000 00000000 f7b67000 00000001 00001003 00001002 c066c366 f7b67000 c0668ad0 Call Trace: [] rt2x00queue_init_queues+0x5c/0x90 [rt2x00lib] [] rt2x00lib_enable_radio+0x29/0xa0 [rt2x00lib] [] rt2x00lib_start+0x5d/0xd0 [rt2x00lib] [] ieee80211_do_open+0x21c/0x510 [mac80211] [] dev_open+0x56/0xb0 [] dev_set_rx_mode+0x20/0x40 [] dev_change_flags+0x7f/0x190 [] devinet_ioctl+0x515/0x690 [] __dev_get_by_name+0x74/0x90 [] sock_ioctl+0xd0/0x240 [] sock_ioctl+0x0/0x240 [] vfs_ioctl+0x2b/0x90 [] do_vfs_ioctl+0x25b/0x2a0 [] sys_ioctl+0x56/0x70 [] syscall_call+0x7/0xb [] add_card+0xad0/0xba0 ======================= Code: 83 78 08 0e 74 14 8b 02 8b 48 04 85 c9 0f 99 c0 0f b6 c0 c3 8d b6 00 00 00 00 8b 02 8b 40 04 85 c0 0f 99 c0 0f b6 c0 c3 66 90 53 <8b> 48 10 8b 58 08 8b 40 04 83 78 08 0e 74 15 8b 11 83 c2 04 8b EIP: [] rt2800pci_clear_entry+0x1/0x40 [rt2800pci] SS:ESP 0068:f6d75e4c ---[ end trace cff9a5c094bb8837 ]--- Reported-by: Joshua Smith Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 74ee3802c0021c1387795af234b3e4dc511a9bb3 Author: Helmut Schaa Date: Sat Oct 2 11:33:42 2010 +0200 rt2x00: Update comment about the AMPDU flag in the TXWI During testing with AMPDUs it turned out that the rt2800 hw will aggregate consecutive frames with the same RA and TID when the first frame in a possible aggregate has set AMPDU=1 in the TXWI. If a following frame has set AMPDU=0 in its TXWI it might sill end up in the aggregate of the previous frame. Update the comment accordingly. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 58ed826e5fb6db429c688284623ca62cb45b9d5c Author: Helmut Schaa Date: Sat Oct 2 11:33:17 2010 +0200 rt2x00: Enable rx aggregation in rt2800 Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit bc8a979e2d85c2bdd507a8b6b09fdafc11ebd73a Author: Ivo van Doorn Date: Sat Oct 2 11:32:43 2010 +0200 rt2x00: Improve TX status entry validation The TX_STA_FIFO contains some information for identifying a outgoing frame, however matching by WCID and ACK status is not sufficient to 100% identify the macthing queue_entry structure (containing the SKB buffer) which belongs to the status report. Within TX_STA_FIFO we have a 4-bit field named PACKETID, which is currently used to encode the queue id. The queue ID is however limited to values from 0 to 3, which means 2 bits are sufficient to encode the value. With the remaining 2 bits we can encode a partial queue_entry index number. The value of PACKETID is not allowed to become 0, with the queue ID ranging from 0 to 3, at least one of the bits for the entry identification must be 1. That leaves us with 3 possible values we can still encode in the bits. Altough this doesn't allow 100% accurate matching of the TX_STA_FIFO queue to a queue_entry structure, it at least improves the accuracy. This allows us to better detect if we have missed the TX_STA_FIFO report, which in turn reduces the number of watchdog warnings regarding the TX status timeout. Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit ba3b9e5e8c7a12d8ea46cb4a8217c2e9b0720e9c Author: Helmut Schaa Date: Sat Oct 2 11:32:16 2010 +0200 rt2x00: correctly set max_report_rates in rt61pci and rt2800 rt61pci and rt2800 devices can use up to 7 different rates per tx frame. However, the device uses a global fallback table. Hence, the rc algortihm cannot specify multiple rates to try but the device is able to report multiple rates (based on the retry table). Specify that behavior by correctly setting max_report_rates and max_rates. This makes rt2x00 and minstrel play nicer together. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 78be49ec2a0df34de9441930fdced20311fd709f Author: Helmut Schaa Date: Sat Oct 2 11:31:55 2010 +0200 mac80211: distinct between max rates and the number of rates the hw can report Some drivers cannot handle multiple retry rates specified by the rc algorithm but instead use their own retry table (for example rt2800). However, if such a device registers itself with a max_rates value of 1 the rc algorithm cannot make use of the extended information the device can provide about retried rates. On the other hand, if a device registers itself with a max_rates value > 1 the rc algorithm assumes that the device can handle multi rate retries. Fix this issue by introducing another hw parameter max_report_rates that can be set to a different value then max_rates to indicate if a device is capable of reporting more rates then specified in max_rates. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 5a5b6ed6ce46be128f2a5a9e56f47193c3ac3e32 Author: Helmut Schaa Date: Sat Oct 2 11:31:33 2010 +0200 rt2x00: Don't enable broad- and multicast buffering on USB devices Since rt2x00 USB devices have no chance to know when a beacon was sent out in AP mode currently all broad- and multicast traffic is buffered in mac80211 but never sent out at all. Unfortunately we have no chance in sending the traffic out after a DTIM beacon due to hw limitations. Hence, instead of never sending the buffered traffic out better send it out immediately. Signed-off-by: Helmut Schaa Reported-by: Lauri Hintsala Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit c4c18a9dc16095fc8ada423f1e6ff3830d56d37c Author: Helmut Schaa Date: Sat Oct 2 11:31:05 2010 +0200 rt2x00: add field definitions for the TBTT_SYNC_CFG register Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit d4ce3a5ea16f82d73922b7bfb8a177e371493ffb Author: Helmut Schaa Date: Sat Oct 2 11:30:42 2010 +0200 rt2x00: Add register definition for busy time on secondary channel Add the register definition CH_BUSY_STA_SEC for reading the busy time on the secondary channel in HT40 mode. Also update the comments about channel busy/idle time registers to express the used unit. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit b1ef7252f491b6dc09ffc4584da0f3cf564e05e5 Author: Ivo van Doorn Date: Sat Oct 2 11:30:19 2010 +0200 rt2x00: Add rt73usb device ID Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit cb753b7253548b950e84843a00b4db8d0c54f578 Author: Helmut Schaa Date: Sat Oct 2 11:29:59 2010 +0200 rt2x00: Allow tx duplication for legacy rates in HT40 mode Make use of the IEEE80211_TX_RC_DUP_DATA flag to duplicate a transmission with legacy rates to both 20Mhz channels if set. Also update the related comment in rt2800.h to describe the behavior of the BW_40 flag for legacy rates. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 95192339c2de1e1a61baf289af3e3332403371c9 Author: Helmut Schaa Date: Sat Oct 2 11:29:30 2010 +0200 rt2x00: Fix race between dma mapping and clearing rx entries in rt2800pci During rx, rt2x00lib calls rt2800pci_fill_rxdone to read the RX descriptor. At that time the skb is already dma unmapped but no new skb was dma mapped for this entry again. However, rt2800pci_fill_rxdone also moves the hw rx queue index, marking this entry to be available for reuse. Since no new skb was dma mapped and also the previous skb was unmapped this might lead to strange hw behavior. To fix this issue move the hw rx queue index increment to rt2800pci_clear_entry where a new skb was already dma mapped and can be safely used by the hw. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit d13a97f07d86f462096007dbf0f2e0338692abc0 Author: Helmut Schaa Date: Sat Oct 2 11:29:08 2010 +0200 rt2x00: Don't initialize MM40 HT protection to RTS/CTS on PCI devices Since HT protection is now configurable via mac80211 we don't need this special case for PCI devices anymore. The HT protection config will be overwritten as soon as mac80211 sends us a HT operation mode. Hence, bring the HT MM40 protection config in sync with the other HT protection registers and initialize it to no protection. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 87c1915d2c271a8998a79f16bcf5353e2c28db45 Author: Helmut Schaa Date: Sat Oct 2 11:28:34 2010 +0200 rt2x00: Implement HT protection for rt2800 Update the HT operation mode when mac80211 sends it to us and set the different HT protection modes and rates accordingly. For now only use CTS-to-self with OFDM 24M or CCK 11M when protection is required. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit a13ac9df0a2125507295da02444cd88bebf0df36 Author: Helmut Schaa Date: Sat Oct 2 11:28:02 2010 +0200 rt2x00: Fix SM PS check Fix a check for dynamic SM PS mode in the STAs HT caps. Since a value of 3 means "SM PS disabled" the previous check assumed in that case that "dynamic SM PS" was enabled and as such prefixed every MCS>7 frame with a unnecessary RTS/CTS exchange. Also, the bit shift was done in the wrong direction. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 96c3da7d7d7c37ee308ad6813947f48a71cca573 Author: Helmut Schaa Date: Sat Oct 2 11:27:35 2010 +0200 rt2x00: rework tx status handling in rt2800pci This patch changes the way tx status reports are handled by rt2800pci. Previously rt2800pci would sometimes lose tx status reports as the TX_STA_FIFO register is a fifo of 16 entries that can overflow in case we don't read it often/fast enough. Since interrupts are disabled in the device during the execution of the interrupt thread it happend sometimes under high network and CPU load that processing took too long and a few tx status reports were dropped by the hw. To fix this issue the TX_STA_FIFO register is read directly in the interrupt handler and stored in a kfifo which is large enough to hold all status reports of all used tx queues. To process the status reports a new tasklet txstatus_tasklet is used. Using the already used interrupt thread is not possible since we don't want to disable the TX_FIFO_STATUS interrupt while processing them and it is not possible to schedule the interrupt thread multiple times for execution. A tasklet instead can be scheduled multiple times which allows to leave the TX_FIFO_STATUS interrupt enabled while a previously scheduled tasklet is still executing. In short: All other interrupts are handled in the interrupt thread as before. Only the TX_FIFO_STATUS interrupt is partly handled in the interrupt handler and finished in the according tasklet. One drawback of this patch is that it duplicates some code from rt2800lib. However, that can be cleaned up in the future once the rt2800usb and rt2800pci tx status handling converge more. Using this patch on a Ralink RT3052 embedded board gives me a reliable wireless connection even under high CPU and network load. I've transferred several gigabytes without any queue lockups. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 144333313b156a9e99d80e39e034a3cba00adeaf Author: Helmut Schaa Date: Sat Oct 2 11:27:03 2010 +0200 rt2x00: Split out parts of the rt2800_txdone function for easier reuse Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 2a0cfeb826df6751933fd95a797ac18371992c3b Author: Helmut Schaa Date: Sat Oct 2 11:26:17 2010 +0200 rt2x00: Don't overwrite beacon buffers in pairwise key setup rt2800 devices use parts of the pariwise key table to store the beacon frames for beacon 6 and 7. To not overwrite the beacon frame buffers limit the number of entries we store in the pairwise key table to 222. Also add some descriptive comments about this shared memory usage. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 1a92795dac419128eb511dce30a6aad672064b88 Author: Christian Lamparter Date: Fri Oct 1 22:01:24 2010 +0200 p54usb: add five more USBIDs Source: http://www.wikidevi.com/wiki/Intersil/p54/usb/windows Cc: Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 99c15bf575b18e12c9373304a6a09a78f9c8a017 Author: Ben Greear Date: Fri Oct 1 12:26:30 2010 -0700 ath9k: Report total tx/rx bytes and packets in debugfs. Includes pkts/bytes that may have had errors, and includes wireless headers when counting bytes. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit b72acddbbe521d1372e7e9106e9d72e1cbab3010 Author: Ben Greear Date: Fri Oct 1 10:54:04 2010 -0700 ath5k: Print rx/tx bytes in debugfs This adds counters for tx and rx bytes, including any errored packets as well as all wireless headers. Signed-off-by: Ben Greear Acked-by: Bruno Randolf Signed-off-by: John W. Linville commit 1be7fe8de9f25e173282f8f989f83bc5b5decfe9 Author: Bill Jordan Date: Fri Oct 1 11:20:41 2010 -0400 mac80211: fix for WDS interfaces Initialize the rate table for WDS interfaces, and add cases to allow WDS packets to pass the xmit and receive tests. Signed-off-by: Bill Jordan Signed-off-by: John W. Linville commit e8347ebad2f1b15bddb6ed3ed5f767531eb52dc3 Author: Bill Jordan Date: Fri Oct 1 13:54:28 2010 -0400 cfg80211: patches to allow setting the WDS peer Added a nl interface to set the peer bssid of a WDS interface. Signed-off-by: Bill Jordan Signed-off-by: John W. Linville commit e51f3eff9a7e17ddd749799d4291f7e33e9883b9 Author: Bill Jordan Date: Fri Oct 1 11:20:39 2010 -0400 ath9k: add WDS interfaces to ath9k Enable WDS for the ath9k driver. Signed-off-by: Bill Jordan Signed-off-by: John W. Linville commit d8ec44335c974cc8bf67ce70c63071d4e0702509 Author: Juuso Oikarinen Date: Fri Oct 1 16:02:31 2010 +0300 mac80211: Add validity check for beacon_crc value On association to an AP, after receiving beacons, the beacon_crc value is set. The beacon_crc value is not reset in disassociation, but the BSS data may be expired at a later point. When associating again, it's possible that a beacon for the AP is not received, resulting in the beacon_ies to remain NULL. After association, further beacons will not update the beacon data, as the crc value of the beacon has not changed, and the beacon_crc still holds a value matching the beacon. The beacon_ies will remain forever null. One of the results of this is that WLAN power save cannot be entered, the STA will remain foreven in active mode. Fix this by adding a validation flag for the beacon_crc, which is cleared on association. Signed-off-by: Juuso Oikarinen Acked-by: Johannes Berg Signed-off-by: John W. Linville commit bc86863de63e6ae7ec6f9f524604631608c6cb02 Author: Stanislaw Gruszka Date: Fri Oct 1 14:05:27 2010 +0200 mac80211: perform scan cancel in hw reset work Move ieee80211_scan_cancel() and all other related code to ieee80211_restart_work() as ieee80211_restart_hw() is intended to be callable from any context. Fix a bug that RTNL lock is not taken during ieee80211_cancel_scan(). Take local->mtx before WARN(test_bit(SCAN_HW_SCANNING, &local->scanning) to prevent the race condition with __ieee80211_start_scan() described here: http://marc.info/?l=linux-wireless&m=128516716810537&w=2 Signed-off-by: Stanislaw Gruszka Signed-off-by: John W. Linville commit 8e0167a4bdce4adcea64d2197378673d332cda28 Author: Mohammed Shafi Shajakhan Date: Fri Oct 1 15:25:05 2010 +0530 ath9k : Fix for displaying the channel number In the ath9k debugging feature 'wiphy' the current channel used by the station is incorrectly displayed.This is because the channels available are sequentially mapped from numbers 0 to 37.This mapping cannot be changed as the channel number is also used as an array index This fix solves the above problem by calculating the channel number from center frequency. Signed-off-by: Mohammed Shafi Shajakhan Signed-off-by: John W. Linville commit 9094a086f24bfb1d1f244883020c4d9453ffc0b6 Author: Felix Fietkau Date: Fri Oct 1 01:46:13 2010 +0200 ath9k_hw: remove some useless calibration data The percal struct and bitmask for the initial DC calibration are not used anywhere, so they can be removed. Signed-off-by: Felix Fietkau commit f209f5298217cf54cd5a9163e18b08d093faf8d9 Author: Felix Fietkau Date: Fri Oct 1 01:06:53 2010 +0200 ath9k: fix channel flag / regd issues with multiple cards Since the regulatory code touches the channel array, it needs to be copied for each device instance. That way the original channel array can also be made const. Signed-off-by: Felix Fietkau Cc: stable@kernel.org [all] Signed-off-by: John W. Linville commit 2234362c427e2ef667595b9b81c0125003ac5607 Author: Johannes Berg Date: Thu Sep 30 22:17:43 2010 +0200 cfg80211: fix locking Add missing unlocking of the wiphy in set_channel, and don't try to unlock a non-existing wiphy in set_cqm. Cc: stable@kernel.org [2.6.35+] Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit b1ae1edf9e9872d3aa657cc34ae40c9aadfbc72f Author: Ben Greear Date: Thu Sep 30 12:22:58 2010 -0700 ath5k: Allow ath5k to support virtual STA and AP interfaces. Support up to 4 virtual APs and as many virtual STA interfaces as desired. This patch is ported forward from a patch that Patrick McHardy did for me against 2.6.31. Signed-off-by: Ben Greear Acked-by: Bruno Randolf Signed-off-by: John W. Linville commit ea229e682633a18c1fa2c408400a6923cfc47910 Author: Johannes Berg Date: Thu Sep 30 21:21:25 2010 +0200 cfg80211: remove spurious __KERNEL__ ifdef The net/cfg80211.h header file isn't exported to userspace, so there's no need for any kind of __KERNEL__ protection in it. If it was exported, everything else in it would need protection as well, not just the logging stuff ... Cc:Joe Perches Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 663fcafd977f13e6483f7d4cf2ccdbc4fae81ed0 Author: Johannes Berg Date: Thu Sep 30 21:06:09 2010 +0200 cfg80211/mac80211: allow management frame TX in AP mode Enable management frame transmission and subscribing to management frames through nl80211 in both cfg80211 and mac80211. Also update a few places that I forgot to update for P2P-client mode previously, and fix a small bug with non-action frames in this API. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 4bd530f3ab51c7d656bca29d927a50e5aa87175e Author: Stanislaw Gruszka Date: Thu Sep 30 16:27:35 2010 +0200 iwlwifi: change WARN_ON to IWL_WARN in iwl_mac_add_interface We can start restarting firmware or RF kill switch can be turned on during call to iwl_mac_add_interface(). That are normal working conditions, so do not print call trace, just print simple message instead. Signed-off-by: Stanislaw Gruszka Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville commit e32ee80b855914e48b1beb53e13203bc874288d8 Author: Ben Hutchings Date: Thu Sep 30 02:44:56 2010 +0100 ar9170: Remove MODULE_FIRMWARE references to two-stage firmware The combined firmware ar9170.fw is preferred and supports all devices. References to the older two-stage firmware are unnecessary. Signed-off-by: Ben Hutchings Signed-off-by: John W. Linville commit 39162dbe813a2c90b7b9018a74dc1befb9ff4205 Author: Felix Fietkau Date: Wed Sep 29 19:12:06 2010 +0200 ath9k: return survey data for all channels instead of just the current one Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 17e5a8082894a4b66cb69e7ec16074f0f01281e1 Author: Felix Fietkau Date: Wed Sep 29 17:15:30 2010 +0200 nl80211: allow drivers to indicate whether the survey data channel is in use Some user space applications only want to display survey data for the operating channel, however there is no API to get that yet. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 0bda652300dff8136c9d889f1133462c7c7d332c Author: Felix Fietkau Date: Wed Sep 29 17:15:29 2010 +0200 ath9k: remove the noise floor value in the ani struct common->ani.noise_floor is now only used for a similar redundant debug message similar to the one that was removed from ath9k_htc in an earlier patch. Remove it from ath9k as well now. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 4f1a5a4b62c5335aafd5830866320c8918103a3a Author: Felix Fietkau Date: Wed Sep 29 17:15:28 2010 +0200 ath9k: do not return default noise floor values via survey Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit d9891c7804f27c5b0ea9eb51f42bf473b24338a0 Author: Felix Fietkau Date: Wed Sep 29 17:15:27 2010 +0200 ath9k_hw: keep calibrated noise floor values per channel Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 35ecfe03d96b7cdaf6e50aba13af37e2c99deb57 Author: Felix Fietkau Date: Wed Sep 29 17:15:26 2010 +0200 ath9k_htc: remove use of common->ani.noise_floor It is unused aside from a single redundant debug message Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 5c895691944862e782c285a871f5d3466797b4ef Author: Christian Lamparter Date: Tue Sep 28 23:00:59 2010 +0200 carl9170: support firmware-based rx filter The hardware rx-filter was essentially disabled, because of a serve, yet unidentifiable problem with iwlagn. Due to these circumstances the driver and mac80211 were left with the job of filtering. This is very unfortunate and has proven to be expensive in terms of latency, memory and load. Therefore the new 1.8.8.3 firmware introduces a flexible filtering infrastructure which allows the driver to offload some of the checks (FCS & PLCP crc check, RA match, control frame filter, etc...) whenever possible. Note: This patch also includes all changes to the shared headers files since the inclusion. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 85416a4fa193754ef36e12b20bb02fe661cb7f17 Author: Christian Lamparter Date: Sat Oct 2 13:17:07 2010 +0200 mac80211: fix rx monitor filter refcounters This patch fixes an refcounting bug. Previously it was possible to corrupt the per-device recv. filter and monitor management counters when: iw dev wlanX set monitor [new flags] was issued on an active monitor interface. Acked-by: Johannes Berg Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 5a254ffe3ffdfa84fe076009bd8e88da412180d2 Author: Ben Greear Date: Mon Sep 27 09:07:26 2010 -0700 wireless: Use first phyX name available when registering phy devices. Choose first available phyX name when creating phy devices. This means that reloading a wifi driver will not cause a change in the name of it's phy device. Also, allow users to rename a phy to any un-used name, including phy%d. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit 3bc4d4922ac80f551c6f314dab101c828fc492b4 Author: Greg Kroah-Hartman Date: Tue Oct 5 10:25:05 2010 -0700 Staging: brcm80211: typedefs.h: remove uint8 definition It's no longer needed anywhere, so remove it. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit de9bca6377e18d3a41cc19d5b2ef118934702b33 Author: Greg Kroah-Hartman Date: Tue Oct 5 10:23:40 2010 -0700 Staging: brcm80211: include: s/uint8/u8/ Replace uint8 with u8, the correct kernel type to be using here. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit e868ab037f86a0143e9dd6d20e32e34ce9454040 Author: Greg Kroah-Hartman Date: Tue Oct 5 10:14:26 2010 -0700 Staging: brcm80211: phy: s/uint8/u8/ Replace uint8 with u8, the correct kernel type to be using here. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 3fd79f7c0b69d100c376ad116733cdb655bb2cf1 Author: Greg Kroah-Hartman Date: Tue Oct 5 10:11:12 2010 -0700 Staging: brcm80211: brcmfmac: s/uint8/u8/ Replace uint8 with u8, the correct kernel type to be using here. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 41feb5ede1994e2c851f65dec82790544ed364fd Author: Greg Kroah-Hartman Date: Tue Oct 5 10:09:00 2010 -0700 Staging: brcm80211: sys: s/uint8/u8/ Replace uint8 with u8, the correct kernel type to be using here. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 36ef9a1e983e39c5f5929ce9660b7e01706fceec Author: Greg Kroah-Hartman Date: Tue Oct 5 10:02:49 2010 -0700 Staging: brcm80211: util: s/uint8/u8/ Replace uint8 with u8, the correct kernel type to be using here. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 42e5386d1c363be058ea4186351bef721539b592 Author: Greg Kroah-Hartman Date: Tue Oct 5 09:58:02 2010 -0700 Staging: brcm80211: typedefs.h: remove NULL definition No need for a driver to define NULL, the core kernel handles that. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit e595b3252f4a53fc52227ca7a8b94199f9f319a9 Author: Dimitris Papastamos Date: Mon Oct 4 16:28:59 2010 +0100 ASoC: WM8804: Retrieve the device revision and print it Be verbose and print out the device revision. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 151da5a562b9ddbe57dcbd24cb3d855faf843516 Author: Greg Kroah-Hartman Date: Tue Oct 5 09:56:50 2010 -0700 Staging: brcm80211: remove unit64 and int64 typedefs They are not used anywhere, nor should they be defined. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit f479fd93d4028afccf155dec736c6d49cde92571 Author: Dimitris Papastamos Date: Mon Oct 4 11:25:13 2010 +0100 ASoC: soc-cache: Add spi_write support for all I/O types Ensure that all drivers that use SPI and I2C will work properly by providing SPI write functions for all different I/O types. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit bb5a027026db86b0c676104b2e3f6cc4768d1ac0 Merge: 94774b2 45605a8 Author: Mark Brown Date: Tue Oct 5 09:55:56 2010 -0700 Merge branch 'topic/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 into for-2.6.37 commit 7848789cbf006127bde475b15b79c5db1be6b2db Author: Greg Kroah-Hartman Date: Tue Oct 5 09:53:41 2010 -0700 Staging: brcm80211: typedefs.h move types.h to the top of the file Include other files from the top, it's easier to unwind the logic that way. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit cc79cad299395f11a5df9da0d6a8991a118f2b81 Author: Greg Kroah-Hartman Date: Tue Oct 5 09:51:42 2010 -0700 Staging: brcm80211: typedefs.h: remove version.h inclusion It isn't needed anymore. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 5393ddf14e7071ceeefde74a95bbc6ac9203c579 Author: Greg Kroah-Hartman Date: Tue Oct 5 09:50:20 2010 -0700 Staging: brcm80211: typedefs.h: remove some unused #if logic We never care about __STRICT_ANSI__ from within the kernel, so remove this logic. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit de5bbad6770882209b0ac58b0ba9259a98cfb953 Author: Akinobu Mita Date: Wed Oct 6 00:55:29 2010 +0900 tile: replace some BUG_ON checks with BUILD_BUG_ON checks Some BUG_ON checks can be detected at compile time rather than at runtime. Signed-off-by: Akinobu Mita Signed-off-by: Chris Metcalf commit a21142b22b8a09d4d683510113c1adf3b3eeced7 Author: Greg Kroah-Hartman Date: Tue Oct 5 09:48:23 2010 -0700 Staging: brcm80211: remove bool redefinition The core kernel type code handles this properly, no driver should ever do it. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 5793210cb1a431f98c85803920d5ba1440c6246e Author: matt mooney Date: Fri Oct 1 21:21:55 2010 -0700 Documentation/kbuild: modules.txt cleanup A few modifications done for consistency, such as adding the shell prompt for command line examples and trailing slash for directories. Also corrects the module include header and fixes a few grammar issues that I introduced. Signed-off-by: matt mooney Signed-off-by: Michal Marek commit 8fbfd3e6d1eccb46cfddcabe4ea0c4860badc424 Author: Greg Kroah-Hartman Date: Tue Oct 5 09:43:56 2010 -0700 Staging: brcm80211: remove redefinition of size_t No driver should ever do this. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit a725ad6c7886b90b34bd4576e10ab4905110c1e7 Author: Greg Kroah-Hartman Date: Tue Oct 5 09:42:56 2010 -0700 Staging: brcm80211: remove PTRSZ definition It was never used. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit a921fdc1a5d565aa7c3258487b90ee86d26dc510 Author: Greg Kroah-Hartman Date: Tue Oct 5 09:41:45 2010 -0700 Staging: brcm80211: remove floating point typedefs It's not ever used, so remove the typedef. Floating point isn't used in the kernel, so this could never be an issue here. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 2d956e2221929103031f217fd666a10edd05f3a0 Author: Greg Kroah-Hartman Date: Tue Oct 5 09:40:02 2010 -0700 Staging: brcm80211: remove INLINE definition Use the "real" inline marking for functions. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 2a0b139283935f01faea6e24d8def3c844f8fe1d Author: Greg Kroah-Hartman Date: Tue Oct 5 09:35:29 2010 -0700 Staging: brcm80211: remove UNUSED_PARAMETER macro It's not needed anywhere. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit b79375827d931dba8eee3ff4e38b243e24d26b5c Author: Greg Kroah-Hartman Date: Tue Oct 5 09:31:19 2010 -0700 Staging: brcm80211: remove unneeded #ifdef checks For a .h file, you never need to check it, the .h file does it itself. For the typedef.h file, this is never needed. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit ea4381ffb8d72c66ebfaa36c146952c3b302432b Author: Brett Rudley Date: Sat Oct 2 18:08:53 2010 -0700 staging: brcm80211: Purge unused extern declarations Purge unused extern declarations Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 6d4e997b62f1a4ca0dc9149d62271f66dbe228c8 Author: Brett Rudley Date: Sat Oct 2 18:08:52 2010 -0700 staging: brcm80211: Purge packets tags No longer need packet tags Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 035f4c3bbbc5c333ee307ab717f5242b3cc62d2e Author: Brett Rudley Date: Sat Oct 2 18:08:51 2010 -0700 staging: brcm80211: Purge unused flags and macros from wlc_scb.h Purge unused flags and macros from wlc_scb.h Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit be217b54d712fe3e270e36c93c71129baaceb27f Author: Brett Rudley Date: Fri Oct 1 18:03:27 2010 -0700 staging: brcm80211: Purge unused #includes Purging unused #includes. Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 3327989a51f7d46d854c89bb6047dd68f843a7fd Author: Brett Rudley Date: Fri Oct 1 18:03:27 2010 -0700 staging: brcm80211: Move #includes out of header Start the process of moving #includes out of headers and into individual C files. For now, this patch addresses the softmac side of the driver, fullmac still to be done. Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 34a5fa94eee475f1f0bb3b79afb0da9c71aa1197 Author: Henry Ptasinski Date: Fri Oct 1 14:05:25 2010 -0700 staging: brcm80211: Remove unneeded definitions and structures. Remove definitions and structures that are no longer needed. Most of the remaining ones can probably be replaced with the equivalent ones from include/linux/ieee80211.h. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 4594a934dcd8d147beb07edfb58eb3b4457b7399 Author: Henry Ptasinski Date: Fri Oct 1 14:05:24 2010 -0700 staging: brcm80211: Remove unnecessary assertions. Remove assertions on the size of several structures. These structures are never used anywhere. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 93ea8e6e3957f3fce4a3c6596464da881a6af92c Author: Henry Ptasinski Date: Fri Oct 1 14:05:23 2010 -0700 staging: brcm80211: Remove unnecessary debug print routines. Removed several unused and rarely used debug printout routines that look into portions of the frame that are more properly left to the mac80211 stack. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 453fb2cb657c1c8bb705d68219a19f5669a4360b Author: Henry Ptasinski Date: Fri Oct 1 14:05:22 2010 -0700 staging: brcm80211: Remove unused field from wlc_info structure. Remove an unused field from the wlc_info structure, so that the underlying structure can also be cleaned up. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 8518a9e2b013bdb087b535f4fc96ffbe13dc960f Author: Henry Ptasinski Date: Fri Oct 1 14:05:21 2010 -0700 staging: brcm80211: Remove unnecessary assertions. Remove assertions on the size of several structures. These structures are never used anywhere. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 47127f34e7478ef369b2f14d820a375e368deb5b Author: Henry Ptasinski Date: Fri Oct 1 14:05:20 2010 -0700 staging: brcm80211: Remove unused structure. Remove the wl_assoc_info_t structure. It's never used, and depends on structures defined in other header files that can now also be cleaned up. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 02266551e8d02456c526422e94e9cbac9c3295df Author: Jason Cooper Date: Thu Sep 30 15:15:41 2010 -0400 staging: brcm80211: fix checkpatch error 'assignment in if condition' Signed-off-by: Jason Cooper Acked-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 59334c2f1fcc2c5ddb5828d93eba3bd486576cae Author: Jason Cooper Date: Thu Sep 30 15:15:40 2010 -0400 staging: brcm80211: fix checkpatch error 'assignment in if condition' Signed-off-by: Jason Cooper Acked-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 9b890325d6b34354552db5e369698757301d30a7 Author: Jason Cooper Date: Thu Sep 30 15:15:39 2010 -0400 staging: brcm80211: fix checkpatch error 'assignment in if condition' Signed-off-by: Jason Cooper Acked-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit a618cc28336b8dd1244dc28a251ccc4eff60a726 Author: Jason Cooper Date: Thu Sep 30 15:15:38 2010 -0400 staging: brcm80211: fix checkpatch error 'assignment in if condition' Signed-off-by: Jason Cooper Acked-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit a1b04b0b33d2d5d2ecbc7c67845619bee493461e Author: Jason Cooper Date: Thu Sep 30 15:15:37 2010 -0400 staging: brcm80211: fix checkpatch error 'assignment in if condition' Signed-off-by: Jason Cooper Acked-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 57c096b897fe59e106452500afbbe0e0f1f8e149 Author: Jason Cooper Date: Thu Sep 30 15:15:36 2010 -0400 staging: brcm80211: fix checkpatch error 'assignment in if condition' Signed-off-by: Jason Cooper Acked-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit c74c95cd1f6e4b59ecd75c0584b8b5589e7b60a3 Author: Jason Cooper Date: Thu Sep 30 15:15:35 2010 -0400 staging: brcm80211: fix checkpatch errors 'assignment in if condition' Signed-off-by: Jason Cooper Acked-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit eb7f37b3d56839fc0c3b631146f8b3be96b71879 Author: Jason Cooper Date: Thu Sep 30 15:15:34 2010 -0400 staging: brcm80211: fix checkpatch error 'assignment in if condition' Signed-off-by: Jason Cooper Acked-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit b229fad289ad36a5875c7e4f9a8e736b27d8bef4 Author: Jason Cooper Date: Thu Sep 30 15:15:33 2010 -0400 staging: brcm80211: fix checkpatch error 'assignment in if condition' Signed-off-by: Jason Cooper Acked-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 9a0b37926595b57c4b5fc56aa6fd243bed4ee4eb Author: Clemens Ladisch Date: Mon Oct 4 13:25:13 2010 +0200 ALSA: oxygen: fix input monitor dB scale The input monitor half volume bit results in a factor of 0.5, so the minimum scale value should be -6 dB. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit de0074ee7ae7d61da40567afa53912d7e3e16b25 Author: Clemens Ladisch Date: Mon Oct 4 13:24:43 2010 +0200 ALSA: oxygen: fix chip ID register symbols Rename the symbol for the XCID pins, fix up a decimal/hex confusion for the CMI8787 package ID, and add the other known package IDs. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit d737f3eedef0717c8b8233bb6455ff13637ff243 Author: Clemens Ladisch Date: Mon Oct 4 13:23:26 2010 +0200 ALSA: virtuoso: fix Xonar STX anti-pop delay The anti-pop delay for the STX should be 800 ms, not 100 ms like the ST. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit 2b830bae1fc2a27b3b0ab86091013bdec3c12427 Author: Clemens Ladisch Date: Mon Oct 4 13:22:51 2010 +0200 ALSA: virtuoso: add HDAV1.3 Slim PCI ID Add a PCI ID for the Xonar HDAV1.3 Slim. There is no actual support, but the presence of the ID allows the EEPROM repair code to work for this card. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit b6ca8ab399d913eed0d89d65d6b768337a3d20d7 Author: Clemens Ladisch Date: Mon Oct 4 13:21:52 2010 +0200 ALSA: oxygen: handle CD input configuration with a flag There are more models without a CD input than with one, so handle this explicitly with a device_config flag to avoid having to define a control filter callback to filter it out. Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit 45bc307f328c044e69cad2a18a9ae972bb15f254 Author: Clemens Ladisch Date: Mon Oct 4 13:17:26 2010 +0200 ALSA: virtuoso: fix Xonar DS chip name The controller on the Xonar DS is labeled "AV66", not "AV200". Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit 422fdc318efd7d34d8b79decde0f8cb90a336c11 Author: Clemens Ladisch Date: Mon Oct 4 13:09:12 2010 +0200 ALSA: usb-audio: add more Yamaha USB MIDI devices Add quirks for more devices (according to driver V.3.0.4-2). Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai commit 2116b7a473bf1c8d26998b477c294e7fe294921f Author: Arnd Bergmann Date: Mon Oct 4 22:55:57 2010 +0200 smbfs: move to drivers/staging smbfs has been scheduled for removal in 2.6.27, so maybe we can now move it to drivers/staging on the way out. smbfs still uses the big kernel lock and nobody is going to fix that, so we should be getting rid of it soon. This removes the 32 bit compat mount and ioctl handling code, which is implemented in common fs code, and moves all smbfs related files into drivers/staging/smbfs. Signed-off-by: Arnd Bergmann Acked-by: Jeff Layton Signed-off-by: Greg Kroah-Hartman commit 5af74aa5e97fcc0cc3955bc2a7ff6f3a13fa41cb Author: Greg Kroah-Hartman Date: Tue Oct 5 09:06:00 2010 -0700 Staging: autofs3: create TODO file This lists what's going to happen to the filesystem (i.e. removal in 2.6.38 unless someone steps up to maintain it.) Cc: Arnd Bergmann Cc: H. Peter Anvin Signed-off-by: Greg Kroah-Hartman commit db7bee24d23d82cc55c7cbc9a1f82d07066d6fce Author: Arnd Bergmann Date: Mon Oct 4 22:28:10 2010 +0200 autofs3: move to drivers/staging Nobody appears to be interested in fixing autofs3 bugs any more and it uses the BKL, which is going away. Move this to staging for retirement. Unless someone complains until 2.6.38, we can remove it for good. The include/linux/auto_fs.h header file is still used by autofs4, so it remains in place. Signed-off-by: Arnd Bergmann Cc: Ian Kent Cc: autofs@linux.kernel.org Cc: "H. Peter Anvin" Acked-by: H. Peter Anvin Signed-off-by: Greg Kroah-Hartman commit d95ec7e2fd5cebf2f1caf3f572fa5e0a820ac5b1 Author: Fernando Guzman Lugo Date: Thu Sep 30 21:12:48 2010 -0500 staging: tidspbridge: replace iommu custom for opensource implementation Now the tidspbridge uses the API's from iovmm module. Signed-off-by: Fernando Guzman Lugo Signed-off-by: Greg Kroah-Hartman commit 0ee5ab30d19c8e82fdf725c1f67cf71bb67c8373 Author: Ernesto Ramos Date: Thu Sep 30 13:49:36 2010 -0500 staging: ti dspbridge: disable all peripherals at bridge_brd_stop DSP Bridge needs to disable the peripheral clocks when switches to BRD_STOPPED since that would prevent the domain to enter in OFF state. Signed-off-by: Ernesto Ramos Signed-off-by: Omar Ramirez Luna Signed-off-by: Greg Kroah-Hartman commit d10009211ce12c70f8d9084745cadc413ddec7f2 Author: Ernesto Ramos Date: Thu Sep 30 13:34:13 2010 -0500 staging: ti dspbridge: Replace find_lcm with lcm kernel func Resendig this patch since it was missed in the last merge... Remove find_lcm within nldr.c and use standard kernel function lcm(). Signed-off-by: Ernesto Ramos Signed-off-by: Omar Ramirez Luna Signed-off-by: Greg Kroah-Hartman commit 7d1d628344dcc927c1be7363937059a8d6072042 Author: Ernesto Ramos Date: Thu Sep 30 13:33:41 2010 -0500 staging: ti dspbridge: remove cmm_xlator_delete wrapper Resending this patch since it was missed in the last merge... Remove unnecessary cmm_xlator_delete function and use kfree() kernel function directly. Signed-off-by: Ernesto Ramos Signed-off-by: Omar Ramirez Luna Signed-off-by: Greg Kroah-Hartman commit 44a17eff844d92421c8b568c84df29735e1e45f9 Author: Arnd Bergmann Date: Thu Sep 30 10:24:12 2010 +0200 staging/bcm: add sparse annotations This marks up the code where sparse complains in most cases. Most of the changes are in the ioctl handling code, which gets __user annotations, finding one unchecked user access. The rest is mostly about marking functions static when they are only used in one file. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman commit 9f1c75ac2dba752ad3734bd3ffab805a6a3fbeda Author: Arnd Bergmann Date: Thu Sep 30 10:24:11 2010 +0200 staging/bcm: fix most build warnings This removes all warnings I get on a 64 bit build except for those that look unfixable, where we convert a pointer to a 32 bit integer and change its byte order! Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman commit 2a953cfd42c00bab00e792422f7c2064c5f0b410 Author: Arnd Bergmann Date: Thu Sep 30 10:24:10 2010 +0200 staging/ft1000-usb: fix problems found by sparse In the original code, address space annotations are missing, which hides a possible unchecked user pointer access. Two functions use a lot of stack space. Extern declarations are all in the wrong place, which leads to type differences between caller and callee in some cases. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman commit 7cfd8a3720c0d266e402c5f6c688a63c213491df Author: Arnd Bergmann Date: Thu Sep 30 10:24:09 2010 +0200 staging/ft1000-usb: fix build warnings This lets us see clearer when stuff breaks. Most of the changes are fixes for casts between int and pointer that don't work on 64 bit. The ioctl function uses a large amount of stack, which gets fixed by allocating the buffer dynamically. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman commit 4fea0749b19a1df25482453b45d2a3d69c1670dc Author: Arnd Bergmann Date: Thu Sep 30 10:24:08 2010 +0200 staging/ft1000-usb: fix unlocked_ioctl prototype unlocked_ioctl has a "long" return type. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman commit d16044cf8ce0ff6384cd80eb0abaa2ba57b19a5e Author: Arnd Bergmann Date: Thu Sep 30 10:24:07 2010 +0200 staging: make new character devices nonseekable As a preparation for changing the default behaviour of llseek to no_llseek, every file_operations structure should have a .llseek operation. There are three new instances in staging now, which can all be changed into no_llseek explicitly since the devices do not need to seek. Add nonseekable_open where appropriate, to prevent pread/pwrite as well. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman commit b1a9338d5eaa9c38c326e20ce339247f4d585b62 Merge: 1728943 62cb3c6 Author: John W. Linville Date: Tue Oct 5 11:14:58 2010 -0400 Merge branch 'wireless-next-2.6' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-2.6 commit d91ddc2553426a2d9b6b978b5e346f303fccee67 Author: Paul Mundt Date: Tue Oct 5 23:26:42 2010 +0900 sh: Wire up INTC subgroup splitting for SH7786 SCIF1. SH7786 is the big user for subgroup splitting, mostly for the PCIe block, but those will follow later. For now we simply split up SCIF1, as used by the serial console on SDK7786 and others. Signed-off-by: Paul Mundt commit 1ab488de544b7f94b4f8e5aed2b178cac685802f Author: Rahul Ruikar Date: Sun Sep 26 22:20:30 2010 +0530 pcmcia: vrc4173_cardu: Fix error path for pci_release_regions and pci_disable_device - pci_release_regions called during return error path. - pci_disable_device called for cases where earlier it was enabled. - code duplication avoided/reduced by adding resource release at goto statements. Signed-off-by: Rahul Ruikar Signed-off-by: Dominik Brodowski commit 4b48e6876b641e1138f37a0fc11fb6a4fc3e24e1 Author: ext Anand Gadiyar Date: Fri Oct 1 22:33:26 2010 +0200 omap: zoom2/3: fix build caused by wl1271 support Patch "omap: zoom: add mmc3/wl1271 device support" in the wireless tree still uses .wires in struct omap2_hsmmc_info. .wires has now been replaced with .caps in patch "omap: mmc: extended to pass host capabilities from board file" in the OMAP tree. This causes linux-next as of 20101001 build to break as below. Fix this. CC arch/arm/mach-omap2/board-zoom-peripherals.o arch/arm/mach-omap2/board-zoom-peripherals.c:217: error: unknown field 'wires' specified in initializer make[1]: *** [arch/arm/mach-omap2/board-zoom-peripherals.o] Error 1 make: *** [arch/arm/mach-omap2] Error 2 Signed-off-by: Anand Gadiyar Cc: Ohad Ben-Cohen Cc: Tony Lindgren Acked-by: Tony Lindgren Signed-off-by: Luciano Coelho commit 5082b823f3b0c781fdbc52910af579e940f6f18e Author: Luciano Coelho Date: Tue Oct 5 14:58:49 2010 +0300 wl1271: remove deprecated __attribute__ ((packed)) One __attribute__ ((packed)) has been accidentally introduced in commit be86cbea1e9c3a4dd8faedcfa327495d09fe3531. This patch changes it to __packed. Signed-off-by: Luciano Coelho commit 644a48607cd40954b6fb095b39a3ccaa0204191e Author: Juuso Oikarinen Date: Tue Oct 5 13:11:56 2010 +0200 wl1271: Add extended radio parameter initialization Currently a command to initialize extended radio parameter tables in the hardware is missing. Add the initialization Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit d25611da0c75c4b0f72c73d66887d0470aacef40 Author: Juuso Oikarinen Date: Thu Sep 30 10:43:27 2010 +0200 wl1271: Indicate disconnection on hardware failure In the event of a hardware failure, reconfiguring a live connection back with the wl1271 chip does not work as expected. The chip has management features which require setting up the association from scratch to work correctly. To ensure this is done every time, in managed mode, when associated, indicate connection loss to the mac80211 before asking to reconfigure the hardware. Signed-off-by: Juuso Oikarinen Tested-by: Tuomas Katila Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 117b38d0b9d3efb0adc3e636e73fc67bb53a13d1 Author: Juuso Oikarinen Date: Thu Sep 30 10:43:28 2010 +0200 wl1271: Move work-init calls to hw allocation Due to legacy reason, dating back to when the wl1251 and wl1271 still were a unified driver, some work-structures are initialized on hardware startup. The hardware recovery code creates a scenario in which it is possible for a workstruct to be re-initialized while the work-function itself is running, which causes a kernel WARNing and a subsequent reboot. To remedy this, move the work initialization calls to the hw allocation, which is the logically correct place for them anyway. Signed-off-by: Juuso Oikarinen Tested-by: Tuomas Katila Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit a19606b4333ff34e9b2863f37c20fe86b42be14c Author: Ido Yariv Date: Thu Sep 30 13:28:28 2010 +0200 wl1271: Support firmware TX packet aggregation Instead of sending one packet at a time to the firmware, try to send all available packets at once. This optimization decreases the number of transactions, which saves CPU cycles and increases network throughput. Signed-off-by: Ido Yariv Tested-by: Juuso Oikarinen Signed-off-by: Luciano Coelho commit 1f37cbc9363462c99794699442da39f36be0aaf7 Author: Ido Yariv Date: Thu Sep 30 13:28:27 2010 +0200 wl1271: Support firmware RX packet aggregation Instead of retrieving one packet at a time from the firmware, try to retrieve all available packets at once. This optimization decreases the number of transactions, which saves CPU cycles and increases network throughput. Signed-off-by: Ido Yariv Tested-by: Juuso Oikarinen Signed-off-by: Luciano Coelho commit 5c57a901dc96fc81d0041282269b43542f170d2a Author: Ido Yariv Date: Thu Sep 30 13:28:26 2010 +0200 wl1271: Handle large SPI transfers The HW supports up to 4095 bytes transfers via SPI. The SPI read & write operations do not handle larger transfers, causing the HW to stall in such cases. Fix this by fragmenting large transfers into smaller chunks, and transferring each one separately. Signed-off-by: Ido Yariv Tested-by: Juuso Oikarinen Signed-off-by: Luciano Coelho commit 2be6bb0c79c7fbda3425b65ee51c558bbaf4cf91 Author: Paul Mundt Date: Tue Oct 5 22:10:30 2010 +0900 sh: intc: Split up the INTC code. This splits up the sh intc core in to something more vaguely resembling a subsystem. Most of the functionality was alread fairly well compartmentalized, and there were only a handful of interdependencies that needed to be resolved in the process. This also serves as future-proofing for the genirq and sparseirq rework, which will make some of the split out functionality wholly generic, allowing things to be killed off in place with minimal migration pain. Signed-off-by: Paul Mundt commit 2a48fc0ab24241755dc93bfd4f01d68efab47f5a Author: Arnd Bergmann Date: Wed Jun 2 14:28:52 2010 +0200 block: autoconvert trivial BKL users to private mutex The block device drivers have all gained new lock_kernel calls from a recent pushdown, and some of the drivers were already using the BKL before. This turns the BKL into a set of per-driver mutexes. Still need to check whether this is safe to do. file=$1 name=$2 if grep -q lock_kernel ${file} ; then if grep -q 'include.*linux.mutex.h' ${file} ; then sed -i '/include.*/d' ${file} else sed -i 's/include.*.*$/include /g' ${file} fi sed -i ${file} \ -e "/^#include.*linux.mutex.h/,$ { 1,/^\(static\|int\|long\)/ { /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex); } }" \ -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \ -e '/[ ]*cycle_kernel_lock();/d' else sed -i -e '/include.*\/d' ${file} \ -e '/cycle_kernel_lock()/d' fi Signed-off-by: Arnd Bergmann commit 613655fa39ff6957754fa8ceb8559980920eb8ee Author: Arnd Bergmann Date: Wed Jun 2 14:28:52 2010 +0200 drivers: autoconvert trivial BKL users to private mutex All these files use the big kernel lock in a trivial way to serialize their private file operations, typically resulting from an earlier semi-automatic pushdown from VFS. None of these drivers appears to want to lock against other code, and they all use the BKL as the top-level lock in their file operations, meaning that there is no lock-order inversion problem. Consequently, we can remove the BKL completely, replacing it with a per-file mutex in every case. Using a scripted approach means we can avoid typos. These drivers do not seem to be under active maintainance from my brief investigation. Apologies to those maintainers that I have missed. file=$1 name=$2 if grep -q lock_kernel ${file} ; then if grep -q 'include.*linux.mutex.h' ${file} ; then sed -i '/include.*/d' ${file} else sed -i 's/include.*.*$/include /g' ${file} fi sed -i ${file} \ -e "/^#include.*linux.mutex.h/,$ { 1,/^\(static\|int\|long\)/ { /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex); } }" \ -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \ -e '/[ ]*cycle_kernel_lock();/d' else sed -i -e '/include.*\/d' ${file} \ -e '/cycle_kernel_lock()/d' fi Signed-off-by: Arnd Bergmann commit e0e9b406470b8dd75a115cf82c4791f41615c4c3 Author: Jason Wang Date: Tue Sep 14 23:53:05 2010 +0800 vhost: max s/g to match qemu Qemu supports up to UIO_MAXIOV s/g so we have to match that because guest drivers may rely on this. Allocate indirect and log arrays dynamically to avoid using too much contigious memory and make the length of hdr array to match the header length since each iovec entry has a least one byte. Test with copying large files w/ and w/o migration in both linux and windows guests. Signed-off-by: Jason Wang Signed-off-by: Michael S. Tsirkin commit beb37b85b0b727e68e16a39a1e5a2140f87fa201 Author: Jan Kara Date: Thu Aug 26 00:54:39 2010 +0200 ext3: Fix lost extented attributes for inode with ino == 11 If a filesystem has inode size > 128 and someone deletes lost+found and reuses inode 11 for some other file, extented attributes set for this inode before umount will get lost after remounting the filesystem. This is because extended attributes will get stored in an inode but ext3_iget will ignore them due to workaround of a bug in an old mkfs. Fix the problem by initializing i_extra_isize to 0 for freshly allocated inodes where mkfs workaround in ext3_iget applies. This way these inodes will always store extended attributes in a special block and no problems occur. The bug was spotted and a reproduction test provided by: Masayoshi MIZUMA Reviewed-by: Andreas Dilger Signed-off-by: Jan Kara commit 80f44b152c889e592616adf0d33b856107f4bace Author: Jan Kara Date: Tue Aug 17 12:14:44 2010 +0200 quota: Make QUOTACTL config be selected by its users Remove "depends on" line from QUOTACTL config option and rather select the option explicitely from config options which need it. It makes more sense this way and also fixes Kconfig warning due to GFS2 selecting QUOTACTL but QUOTACTL not depending on it. Signed-off-by: Jan Kara commit d74310d3b18aabbb7d0549ea9e3fd3259c1dce00 Author: Paul Mundt Date: Tue Oct 5 18:13:23 2010 +0900 sh: intc: Handle early lookups of subgroup IRQs. If lookups happen while the radix node still points to a subgroup mapping, an IRQ hasn't yet been made available for the specified id, so error out accordingly. Once the slot is replaced with an IRQ mapping and the tag is discarded, lookup can commence as normal. Signed-off-by: Paul Mundt commit 5a44a73b9015e89cfb280ba0534dfcbf1ef29d05 Author: Felipe Contreras Date: Fri Sep 24 15:22:23 2010 +0200 autofs4: Only declare function when CONFIG_COMPAT is defined The patch solves the following warnings message when CONFIG_COMPAT is not defined: fs/autofs4/root.c:31: warning: ‘autofs4_root_compat_ioctl’ declared ‘static’ but never defined Signed-off-by: Felipe Contreras Cc: Ian Kent Cc: "H. Peter Anvin" Cc: Arnd Bergmann Signed-off-by: Frederic Weisbecker Signed-off-by: Arnd Bergmann commit 26daad8067f976a6e3622b42b0d80de9a53e8ad9 Author: Márton Németh Date: Fri Sep 24 15:22:22 2010 +0200 autofs: Only declare function when CONFIG_COMPAT is defined The patch solves the following warnings message when CONFIG_COMPAT is not defined: fs/autofs/root.c:30: warning: ‘autofs_root_compat_ioctl’ declared ‘static’ but never defined Signed-off-by: Márton Németh Cc: "H. Peter Anvin" Cc: Arnd Bergmann Signed-off-by: Frederic Weisbecker Signed-off-by: Arnd Bergmann commit 2a4df5d33202e99c015928bf2a2dfd8ad03e53bc Author: Petr Vandrovec Date: Wed Sep 29 14:39:11 2010 +0200 ncpfs: Lock socket in ncpfs while setting its callbacks Otherwise partially updated pointers could be seen if pointer update is not atomic. Signed-off-by: Petr Vandrovec Signed-off-by: Arnd Bergmann commit b89f432133851a01c0d28822f11cbdcc15781a75 Author: Arnd Bergmann Date: Sat Sep 18 15:09:31 2010 +0200 fs/locks.c: prepare for BKL removal This prepares the removal of the big kernel lock from the file locking code. We still use the BKL as long as fs/lockd uses it and ceph might sleep, but we can flip the definition to a private spinlock as soon as that's done. All users outside of fs/lockd get converted to use lock_flocks() instead of lock_kernel() where appropriate. Based on an earlier patch to use a spinlock from Matthew Wilcox, who has attempted this a few times before, the earliest patch from over 10 years ago turned it into a semaphore, which ended up being slower than the BKL and was subsequently reverted. Someone should do some serious performance testing when this becomes a spinlock, since this has caused problems before. Using a spinlock should be at least as good as the BKL in theory, but who knows... Signed-off-by: Arnd Bergmann Acked-by: Matthew Wilcox Cc: Christoph Hellwig Cc: Trond Myklebust Cc: "J. Bruce Fields" Cc: Andrew Morton Cc: Miklos Szeredi Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: John Kacur Cc: Sage Weil Cc: linux-kernel@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org commit cdadf0097cdca06c497ffaeb5982e028c6e4ed38 Author: Tejun Heo Date: Tue Oct 5 10:49:55 2010 +0200 workqueue: add queue_work and activate_work trace points These two tracepoints allow tracking when and how a work is queued and activated. This patch is based on Frederic's patch to add queue_work trace point. Signed-off-by: Tejun Heo Cc: Frederic Weisbecker commit 97bd234701b2b39a0e749c1fe0e44f1d14c94292 Author: Tejun Heo Date: Tue Oct 5 10:41:14 2010 +0200 workqueue: prepare for more tracepoints Define workqueue_work event class and use it for workqueue_execute_end trace point. Also, move trace/events/workqueue.h include downwards such that all struct definitions are visible to it. This is to prepare for more tracepoints and doesn't cause any functional change. Signed-off-by: Tejun Heo Cc: Frederic Weisbecker commit a00eac0c459abecb539fb2a2abd3122dd7ca5d4a Author: David S. Miller Date: Tue Oct 5 01:36:52 2010 -0700 ppp: Use a real SKB control block in fragmentation engine. Do this instead of subverting fields in skb proper. The macros that could very easily match variable or function names were also just asking for trouble. Signed-off-by: David S. Miller commit c62f981f9309486ba5546edbb5925f71e441fa65 Author: Andi Kleen Date: Fri Oct 1 14:18:47 2010 -0700 perf, gcc-4.6: Fix set but unused variable Just dead code I believe. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Cc: andi@firstfloor.org Cc: Peter Zijlstra Signed-off-by: Ingo Molnar commit c61393ea83573ff422af505b6fd49ef9ec9b91ca Author: stephen hemminger Date: Mon Oct 4 20:17:53 2010 +0000 ipv6: make __ipv6_isatap_ifid static Another exported symbol only used in one file Signed-off-by: Stephen Hemminger Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit 1df9916e46451533463f227e6be57cc2cfca4c5f Author: stephen hemminger Date: Mon Oct 4 20:14:17 2010 +0000 fib: fib_rules_cleanup can be static fib_rules_cleanup_ups is only defined and used in one place. Signed-off-by: Stephen Hemminger Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit 6a31d2a97c04ffe9b161ec0177a2296366ff9249 Author: Eric Dumazet Date: Mon Oct 4 20:00:18 2010 +0000 fib: cleanups Code style cleanups before upcoming functional changes. C99 initializer for fib_props array. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit e3d32687a624845e97f9717d9d2027b44b8c49a2 Author: stephen hemminger Date: Mon Oct 4 19:59:59 2010 +0000 wimax: make functions local Make wimax variables and functions local if possible. Compile tested only. This also removes a couple of unused EXPORT_SYMBOL. If this breaks some out of tree code, please fix that by putting the code in the kernel tree. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit debf279a81c93d6942a50ec0fd3ba1f158b109fb Author: stephen hemminger Date: Mon Oct 4 15:44:30 2010 +0000 qlcnic: remove dead code This driver has several pieces of dead code (found by running make namespacecheck). This patch removes them. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit ee624599d32bc698212d3c04faf908dc01a40457 Author: Nicolas Kaiser Date: Mon Oct 4 04:35:39 2010 +0000 caif: remove duplicated include Remove duplicated include. Signed-off-by: Nicolas Kaiser Acked-by: Sjur Braendeland Signed-off-by: David S. Miller commit 00e8976200665eec2fa9264d61885b4d1384d4f0 Merge: 540804b 0f940cb Author: Ingo Molnar Date: Tue Oct 5 09:47:14 2010 +0200 Merge branch 'perf/urgent' into perf/core Conflicts: tools/perf/util/ui/browsers/hists.c Merge reason: fix the conflict and merge in changes for dependent patch. Signed-off-by: Ingo Molnar commit 10ff4c682972bf714c03ea71e169472cdc329a1e Author: Uwe Kleine-König Date: Sun Oct 3 23:43:33 2010 +0000 don't let BCM63XX_PHY depend on non-existant symbol The kernel doesn't have a symbol called BCM63XX. There is a symbol BCM63XX_ENET (introduced in 9b1fc55a0500, 6 weeks after 09bb9aa0ed that introduced BCM63XX_PHY), but the driver compiles without that, too. Cc: Maxime Bizon Cc: Florian Fainelli Cc: David S. Miller Cc: Ralf Baechle Signed-off-by: Uwe Kleine-König Signed-off-by: David S. Miller commit cf93c94581bab447a5634c6d737c1cf38c080261 Author: Uwe Kleine-König Date: Sun Oct 3 23:43:32 2010 +0000 net/phy: fix many "defined but unused" warnings MODULE_DEVICE_TABLE only expands to something if it's compiled for a module. So when building-in support for the phys, the mdio_device_id tables are unused. Marking them with __maybe_unused fixes the following warnings: drivers/net/phy/bcm63xx.c:134: warning: 'bcm63xx_tbl' defined but not used drivers/net/phy/broadcom.c:933: warning: 'broadcom_tbl' defined but not used drivers/net/phy/cicada.c:162: warning: 'cicada_tbl' defined but not used drivers/net/phy/davicom.c:222: warning: 'davicom_tbl' defined but not used drivers/net/phy/et1011c.c:114: warning: 'et1011c_tbl' defined but not used drivers/net/phy/icplus.c:137: warning: 'icplus_tbl' defined but not used drivers/net/phy/lxt.c:226: warning: 'lxt_tbl' defined but not used drivers/net/phy/marvell.c:724: warning: 'marvell_tbl' defined but not used drivers/net/phy/micrel.c:234: warning: 'micrel_tbl' defined but not used drivers/net/phy/national.c:154: warning: 'ns_tbl' defined but not used drivers/net/phy/qsemi.c:141: warning: 'qs6612_tbl' defined but not used drivers/net/phy/realtek.c:82: warning: 'realtek_tbl' defined but not used drivers/net/phy/smsc.c:257: warning: 'smsc_tbl' defined but not used drivers/net/phy/ste10Xp.c:135: warning: 'ste10Xp_tbl' defined but not used drivers/net/phy/vitesse.c:195: warning: 'vitesse_tbl' defined but not used Signed-off-by: Uwe Kleine-König Signed-off-by: David S. Miller commit 29fa060eab3f524d338566d34c1d9e704579ae5e Author: David S. Miller Date: Tue Oct 5 00:29:48 2010 -0700 net: relax rtnl_dereference() rtnl_dereference() is used in contexts where RTNL is held, to fetch an RCU protected pointer. Updates to this pointer are prevented by RTNL, so we dont need smp_read_barrier_depends() and the ACCESS_ONCE() provided in rcu_dereference_check(). rtnl_dereference() is mainly a macro to document the locking invariant. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 13f5bf18ba657d2d17c8fcf584e50359c718dd4b Author: David S. Miller Date: Tue Oct 5 00:27:05 2010 -0700 ipvs: Use frag walker helper in SCTP proto support. Signed-off-by: David S. Miller Acked-by: Simon Horman commit 24824a09e35402b8d58dcc5be803a5ad3937bdba Author: Eric Dumazet Date: Sat Oct 2 06:11:55 2010 +0000 net: dynamic ingress_queue allocation ingress being not used very much, and net_device->ingress_queue being quite a big object (128 or 256 bytes), use a dynamic allocation if needed (tc qdisc add dev eth0 ingress ...) dev_ingress_queue(dev) helper should be used only with RTNL taken. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 45605a87b3f34fb71bbc6446e2d49a469e9e10dd Merge: a09f73f 6c20c80 Author: Takashi Iwai Date: Tue Oct 5 07:50:11 2010 +0200 Merge branch 'for-2.6.37' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6 into topic/asoc commit 0bd9e6a964d86a19f54a9ba31168a37d64e451d1 Author: Sritej Velaga Date: Mon Oct 4 04:20:16 2010 +0000 qlcnic: set mtu lower limit Setting mtu < 68 is not supported. Signed-off-by: Sritej Velaga Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit aef3d898276e046bfa877cd20b8ee269b85161cd Author: Sritej Velaga Date: Mon Oct 4 04:20:15 2010 +0000 qlcnic: cleanup port mode setting Port mode setting is not required for Qlogic CNA adapters. Signed-off-by: Sritej Velaga Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit a1c0c459918e8c8ce152deba84f9ed27d7eb0e53 Author: Sucheta Chakraborty Date: Mon Oct 4 04:20:14 2010 +0000 qlcnic: sparse warning fixes Signed-off-by: Sucheta Chakraborty Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 7e56cac4b68805470849ba373dd313ba0e7cdb81 Author: Sucheta Chakraborty Date: Mon Oct 4 04:20:13 2010 +0000 qlcnic: fix vlan TSO on big endian machine o desc->vlan_tci is in __le16 format. Doing htons and cpu_to_le64 again on vlan_tci, result in invalid value on ppc. Signed-off-by: Sucheta Chakraborty Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit b501595cbb8afeaa9aaa870b3d29ef051403511a Author: Sucheta Chakraborty Date: Mon Oct 4 04:20:12 2010 +0000 qlcnic: fix endianess for lro ipaddress in ifa->ifa_address field are in big endian format. Also device requires ip address in big endian only. Signed-off-by: Sucheta Chakraborty Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit c265eb6ecb63e4b3a6b86b617fa7fd955a0e0980 Author: Amit Kumar Salecha Date: Mon Oct 4 04:20:11 2010 +0000 qlcnic: fix diag register regs_buff[i] and diag_registers[j] array should use different index variable. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit ef1828058b8a37f7005be677686727bbbde77f6a Author: Amit Kumar Salecha Date: Mon Oct 4 04:20:10 2010 +0000 qlcnic: fix eswitch stats Some of the counters are not implemented in fw. Fw return NOT AVAILABLE VALUE as (0xffffffffffffffff). Adding these counters, result in invalid value. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 31dee692e22eedaf2540fa543fa9c91df6ab8bda Author: Amit Kumar Salecha Date: Mon Oct 4 04:20:09 2010 +0000 qlcnic: fix internal loopback test o Loop 10 times with delay of 1 ms to rcv packet. o Print garbage packet. o Try send/receive MAX(16) packet, instead of exit from test, if a packet is not received. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 94774b28490daf514a4e62fd746315b5089158ff Author: Troy Kisky Date: Sun Oct 3 16:44:19 2010 -0500 ALSA: ASoc: DaVinci Delay start of ASP to trigger Since only 4 mainline ASoC codecs support the trigger callback, we cannot rely upon them stopping the frame clock if they are master and must assume it is running even if the sound is paused. Thus we cannot start the ASP until the trigger method. Signed-off-by: Troy Kisky Signed-off-by: Martin Ambrose Signed-off-by: Mark Brown commit d961db75ce86a84f1f04e91ad1014653ed7d9f46 Author: Ben Skeggs Date: Thu Aug 5 10:48:18 2010 +1000 drm/ttm: restructure to allow driver to plug in alternate memory manager Nouveau will need this on GeForce 8 and up to account for the GPU reordering physical VRAM for some memory types. Reviewed-by: Jerome Glisse Acked-by: Thomas Hellström Signed-off-by: Ben Skeggs commit 42311ff90dc8746bd81427b2ed6efda9af791b77 Author: Ben Skeggs Date: Wed Aug 4 12:07:08 2010 +1000 drm/ttm: introduce utility function to free an allocated memory node Existing core code/drivers call drm_mm_put_block on ttm_mem_reg.mm_node directly. Future patches will modify TTM behaviour in such a way that ttm_mem_reg.mm_node doesn't necessarily belong to drm_mm. Reviewed-by: Jerome Glisse Acked-by: Thomas Hellström Signed-off-by: Ben Skeggs commit a845fff841b13678b2d80f10425aba87db840e4a Author: Roy Spliet Date: Mon Oct 4 23:01:08 2010 +0200 drm/nouveau: fix thinkos in mem timing table recordlen check Signed-off-by: Ben Skeggs commit ca8e7c6ccdfb9a77de9b9719e6ef768373fb607c Author: Ben Skeggs Date: Mon Oct 4 15:27:58 2010 +1000 drm/nouveau: parse voltage from perf 0x40 entires This was disabled previously because of some uncertainty that +2 was indeed the voltage. It appears it is, checked on a NVA8 and a NVA3M. Signed-off-by: Ben Skeggs commit eadc69cc9054594ff7860d407f855536af13af99 Author: Emil Velikov Date: Sun Sep 26 20:26:02 2010 +0100 drm/nouveau: don't use the default pll limits in table v2.1 on nv50+ cards This fixes issues bug 30370 and prevents another possible divide by zero on the original nv50 cards, by returning -ENOENT Signed-off-by: Emil Velikov Signed-off-by: Ben Skeggs commit 8af29ccd7917ab448ea7b5cf581fa7b2b4ea3cba Author: Francisco Jerez Date: Sat Oct 2 17:04:46 2010 +0200 drm/nv50: Fix large 3D performance regression caused by the interchannel sync patches. Reported-by: Christoph Bumiller Signed-off-by: Francisco Jerez Tested-by: Maarten Maathuis Tested-by: Xavier Chantry Tested-by: Ben Skeggs Signed-off-by: Ben Skeggs commit 647988175234a733cc0d4cf968949344803a77a7 Author: Francisco Jerez Date: Tue Sep 21 19:02:01 2010 +0200 drm/nouveau: Synchronize buffer object moves in hardware. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 0c6c1c2fb8b0fd4340f78db20ee7f35d2a810907 Author: Francisco Jerez Date: Wed Sep 22 00:58:54 2010 +0200 drm/nouveau: Use semaphores to handle inter-channel sync in hardware. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 8ac3891b48906b38db4b153c2d0d55db2ef81aee Author: Francisco Jerez Date: Tue Sep 21 20:49:39 2010 +0200 drm/nouveau: Provide a means to have arbitrary work run on fence completion. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 2730723bbc4a8b289fa536fc3555e15947da09c1 Author: Francisco Jerez Date: Tue Sep 21 18:57:11 2010 +0200 drm/nouveau: Minor refactoring/cleanup of the fence code. Mainly to make room for inter-channel sync. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 0cba1b7644cbcd855d0a2b2ea4d8da26fd08dec4 Author: Marcin Kościelnicki Date: Wed Sep 29 11:15:01 2010 +0000 drm/nouveau: Add a module option to force card POST. Signed-off-by: Ben Skeggs commit 62841ab726def838472dfaaee571a0d30a2ce1e0 Author: Ben Skeggs Date: Thu Sep 30 09:09:42 2010 +1000 drm/nv50: prevent (IB_PUT == IB_GET) for occurring unless idle Should fix a DMA race condition I've never seen myself, but could be the culprit in some random hangs that have been reported. Signed-off-by: Ben Skeggs commit cd2fb2e9e0a6a3273d353b18e4bdd21cc0482724 Author: Francisco Jerez Date: Tue Sep 28 20:47:58 2010 +0200 drm/nv0x-nv4x: Leave the 0x40 bit untouched when changing CRE_LCD. It's an unrelated PLL filtering control bit, leave it alone when changing the CRTC-encoder binding. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 23357e4da0e1b39c9dfd64a1db0deafc6d70b554 Author: Francisco Jerez Date: Tue Sep 28 03:22:15 2010 +0200 drm/nv30-nv40: Fix postdivider mask when writing engine/memory PLLs. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 2756a4f5df42bf19496ad7759032633ab826ea0e Author: Francisco Jerez Date: Sun Sep 26 17:33:50 2010 +0200 drm/nouveau: Fix perf table parsing on BMP v5.25. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 62acdc71cfbc816b26a57d89f433f8afaf4ff78d Author: Ben Skeggs Date: Tue Sep 28 10:23:20 2010 +1000 drm/nouveau: fix required mode bandwidth calculation for DP This should fix eDP on certain laptops with 18-bit panels, we were rejecting the panel's native mode due to thinking there was insufficient bandwidth for it. Signed-off-by: Ben Skeggs commit 63509e3c03ae22000c642e33b5006769d1b5db86 Author: Tony Lindgren Date: Mon Oct 4 16:58:01 2010 -0700 omap: Keep nwires for omap1 and 2420 MMC controller A patch from Sukumar Ghorai changed the nwires to use caps instead. However, nwires is still needed for the earlier controller. Signed-off-by: Tony Lindgren Acked-by: Sukumar Ghorai Signed-off-by: Ming Lei commit 85341f27b49833325f97580edcd687b4d90bb30b Author: Ben Skeggs Date: Tue Sep 28 10:03:57 2010 +1000 drm/nouveau: fix typo in c2aa91afea5f7e7ae4530fabd37414a79c03328c Signed-off-by: Ben Skeggs commit fade7ad56d929e168ead0f75e591468afa2fe97c Author: Ben Skeggs Date: Mon Sep 27 11:18:14 2010 +1000 drm/nva3: split pm backend out from nv50 This will end up quite different, it makes sense for it to be completely separate. Signed-off-by: Ben Skeggs commit aee582de806c7008756df23aa444c8e7d58004a9 Author: Ben Skeggs Date: Mon Sep 27 10:13:23 2010 +1000 drm/nouveau: run perflvl and M table scripts on mem clock change Signed-off-by: Ben Skeggs commit 5c6dc6575460a0afe56d8cae7666e769e08ef942 Author: Ben Skeggs Date: Mon Sep 27 09:47:56 2010 +1000 drm/nouveau: pass perflvl struct to clock_pre() On certain boards, there's BIOS scripts and memory timings that need to be modified with the memclk. Just pass in the entire perflvl struct and let the chipset-specific code decide what to do. Signed-off-by: Ben Skeggs commit fe224bb7e12f1ea9a785ec942bc5d59950543888 Author: Ben Skeggs Date: Mon Sep 27 08:29:33 2010 +1000 drm/nouveau: enable enhanced framing only if DP display supports it Reported-by: Adam Jackson Signed-off-by: Ben Skeggs commit 7760fcb020b41352af4e675ce65a6aa0e93c170f Author: Roy Spliet Date: Fri Sep 17 23:17:24 2010 +0200 drm/nouveau: Import initial memory timing work This isn't correct everywhere yet, but since we don't use the data yet it's perfectly safe to push in, and the information we gain from logs will help to fix the remaining issues. v2 (Ben Skeggs ): - fixed up formatting - free parsed timing info on takedown - switched timing table printout to debug loglevel Signed-off-by: Roy Spliet Signed-off-by: Ben Skeggs commit eecc545856c8a0f27783a440d25f4ceaa1f95ce8 Author: Patrick McHardy Date: Mon Oct 4 23:24:21 2010 +0200 netfilter: add missing xt_log.h file Forgot to add xt_log.h in commit a8defca0 (netfilter: ipt_LOG: add bufferisation to call printk() once) Signed-off-by: Patrick McHardy commit a9fda02bfc91a281cd812ae15dabe6bfb9574f90 Merge: aa30900 ec706da Author: Russell King Date: Mon Oct 4 22:23:26 2010 +0100 Merge branch 'for_rmk' of git://git.linaro.org/kernel/linux-linaro-next into devel-stable commit f68c53015c5b9aa98ffd87a34009f89bdbbd7160 Author: Changli Gao Date: Mon Oct 4 22:24:12 2010 +0200 netfilter: unregister nf hooks, matches and targets in the reverse order Since we register nf hooks, matches and targets in order, we'd better unregister them in the reverse order. Signed-off-by: Changli Gao Signed-off-by: Patrick McHardy commit c4e259c859538e94007d1f04a488540375189551 Author: Will Deacon Date: Mon Sep 13 16:19:41 2010 +0100 ARM: 6386/1: flush_ptrace_access: invalidate correct I-cache alias copy_to_user_page can be used by access_process_vm to write to an executable page of a process using a mapping acquired by kmap. For systems with I-cache aliasing, flushing the I-cache using the Kernel mapping may leave stale data in the I-cache if the user mapping is of a different colour. This patch introduces a flush_icache_alias function to flush.c, which calls flush_icache_range with a mapping of the specified colour. flush_ptrace_access is then modified to call this new function instead of coherent_kern_range in the case of an aliasing I-cache and a non-aliasing D-cache. Signed-off-by: Will Deacon Signed-off-by: Russell King commit 8925ec4c530094b878e7e28a1fd78e7122afd973 Author: Will Deacon Date: Mon Sep 13 16:18:30 2010 +0100 ARM: 6385/1: setup: detect aliasing I-cache when D-cache is non-aliasing Currently, the Kernel assumes that if a CPU has a non-aliasing D-cache then the I-cache is also non-aliasing. This may not be true on ARM cores from v6 onwards, which may have aliasing I-caches but non-aliasing D-caches. This patch adds a cpu_has_aliasing_icache function, which is called from cacheid_init and adds CACHEID_VIPT_I_ALIASING to the cacheid when appropriate. A utility macro, icache_is_vipt_aliasing(), is also provided. Signed-off-by: Will Deacon Signed-off-by: Russell King commit 100642c7b6971fb4ab69a662f4f60970e3a16dfd Author: Linus Walleij Date: Mon Sep 6 09:16:44 2010 +0100 ARM: 6366/1: Update U300 defconfig This mainly removes a lot of unused subsystems (as for the mainline drivers) in the U300 defconfig, switch of MMC debugging by default and enables debugfs on the builds. Once we merge the drivers we'll configure it on again. Signed-off-by: Linus Walleij Signed-off-by: Russell King commit a09f73fabbeac81f45969ad9ed59e74fae736873 Author: Jarkko Nikula Date: Mon Oct 4 15:04:53 2010 +0300 omap: devices: Avoid merge conflict between ASoC and OMAP hwmod changes Upcoming ASoC multi-component and OMAP hwmod changes will conflict in arch/arm/mach-omap2/devices.c. Avoid this by moving a little bit include statement introduced by ASoC Multi-Component Support patch. Signed-off-by: Jarkko Nikula Cc: Paul Walmsley Cc: Tony Lindgren Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit c1e30ad98fe210688edca872686db4a715c2fb23 Author: Paul Mundt Date: Tue Oct 5 04:47:03 2010 +0900 sh: intc: Support virtual mappings for IRQ subgroups. Many interrupts that share a single mask source but are on different hardware vectors will have an associated register tied to an INTEVT that denotes the precise cause for the interrupt exception being triggered. This introduces the concept of IRQ subgroups in the intc core, where a virtual IRQ map is constructed for each of the pre-defined cause bits, and a higher level chained handler takes control of the parent INTEVT. This enables CPUs with heavily muxed IRQ vectors (especially across disjoint blocks) to break things out in to a series of managed chained handlers while being able to dynamically lookup and adopt the IRQs created for them. This is largely an opt-in interface, requiring CPUs to manually submit IRQs for subgroup splitting, in addition to providing identifiers in their enum maps that can be used for lazy lookup via the radix tree. Signed-off-by: Paul Mundt commit 8ed9059533eb89b4372d7fc31b6565c053e5253b Author: Maxim Osipov Date: Wed Sep 15 11:54:49 2010 +0100 ARM: 6393/1: AT91: Add flexibity board support This patch adds support for Flexibity Connect platform from http://www.flexibity.com/ (AT91SAM9260 based). Signed-off-by: Maxim Osipov Acked-by: Jean-Christophe PLAGNIOL-VILLARD Acked-by: Andrew Victor Signed-off-by: Russell King commit 81d11955bf0b5ae25e3adbec930cd84840385dae Author: Tony Lindgren Date: Tue Sep 21 17:16:40 2010 +0100 ARM: 6405/1: Handle __flush_icache_all for CONFIG_SMP_ON_UP Do this by adding flush_icache_all to cache_fns for ARMv6 and 7. As flush_icache_all may neeed to be called from flush_kern_cache_all, add it as the first entry in the cache_fns. Note that now we can remove the ARM_ERRATA_411920 dependency to !SMP so it can be selected on UP ARMv6 processors, such as omap2. Signed-off-by: Tony Lindgren Signed-off-by: Anand Gadiyar Signed-off-by: Russell King commit f9e417e901e891d139f4d5fd750959e4a862d9f7 Author: Tony Lindgren Date: Tue Sep 21 00:43:19 2010 +0100 ARM: 6402/1: Don't send IPI in smp_send_stop if there's only one CPU No need to send IPI if there's one CPU, especially when booting systems with CONFIG_SMP_ON_UP that may not even support IPI. Signed-off-by: Tony Lindgren Signed-off-by: Russell King commit f00ec48fadf5e37e7889f14cff900aa70d18b644 Author: Russell King Date: Sat Sep 4 10:47:48 2010 +0100 ARM: Allow SMP kernels to boot on UP systems UP systems do not implement all the instructions that SMP systems have, so in order to boot a SMP kernel on a UP system, we need to rewrite parts of the kernel. Do this using an 'alternatives' scheme, where the kernel code and data is modified prior to initialization to replace the SMP instructions, thereby rendering the problematical code ineffectual. We use the linker to generate a list of 32-bit word locations and their replacement values, and run through these replacements when we detect a UP system. Signed-off-by: Russell King commit 067173526c3bbc2eaeefcf6b7b2a9d998b9e8042 Author: Russell King Date: Sat Sep 4 16:14:20 2010 +0100 ARM: Provide common header for hard_smp_processor_id() Provide a common header to read the SMP CPU number from the MPIDR. Signed-off-by: Russell King commit 971acb9b420ea1662dd3c48184c4315f87643be5 Author: Russell King Date: Sat Sep 4 08:16:30 2010 +0100 ARM: Simplify SMP/SCU/TWD dependencies All platforms which currently support SMP also support the ARM SCU and ARM TWD blocks, so it's pointless to make these config symbols conditional on the platform symbols which SMP is already conditional on. Signed-off-by: Russell King commit 055d1965161bde96207371e7d31eb776c0f7790d Author: Uwe Kleine-König Date: Thu Sep 2 09:14:21 2010 +0100 ARM: 6349/1: sa1111: move __sa1111_probe() to .devinit.text __sa1111_probe is only called by sa1111_probe that lives in .devinit.text. So it's save to move the former to .devinit.text, too. Acked-by: Kristoffer Ericson Signed-off-by: Uwe Kleine-König Signed-off-by: Russell King commit 9f5336915bc47947230290a1a384de95803f815a Author: Alexander Shishkin Date: Wed Aug 4 11:26:27 2010 +0100 ARM: 6293/1: coresight: cosmetic fixes Use BIT() macro whenever it is sensible to do so. Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Alexander Shishkin Signed-off-by: Russell King commit 8234eaef8002cb8ba30920949b338d692508137a Author: Alexander Shishkin Date: Wed Aug 4 11:22:43 2010 +0100 ARM: 6291/1: coresight: move struct tracectx inside etm driver This is done so as to be able to make use of the coresight components' registers in assembler code (like omap sleep code). Also, there shouldn't be any users of this structure outside the etm driver. Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Alexander Shishkin Signed-off-by: Russell King commit 2e54eb96e2c801f33d95b5dade15212ac4d6c4a5 Author: Petr Vandrovec Date: Mon Sep 27 01:47:33 2010 +0200 BKL: Remove BKL from ncpfs Dozen of changes in ncpfs to provide some locking other than BKL. In readdir cache unlock and mark complete first page as last operation, so it can be used for synchronization, as code intended. When updating dentry name on case insensitive filesystems do at least some basic locking... Hold i_mutex when updating inode fields. Push some ncp_conn_is_valid down to ncp_request. Connection can become invalid at any moment, and fewer error code paths to test the better. Use i_size_{read,write} to modify file size. Set inode's backing_dev_info as ncpfs has its own special bdi. In ioctl unbreak ioctls invoked on filesystem mounted 'ro' - tests are for inode writeable or owner match, but were turned to filesystem writeable and inode writeable or owner match. Also collect all permission checks in single place. Add some locking, and remove comments saying that it would be cool to add some locks to the code. Constify some pointers. Signed-off-by: Petr Vandrovec Signed-off-by: Arnd Bergmann commit 60056794127a25d641465b706e8828186f7a2e1f Author: Arnd Bergmann Date: Wed Feb 24 13:25:33 2010 +0100 BKL: Remove BKL from OCFS2 The BKL in ocfs2/dlmfs is used in put_super, fill_super and remount_fs that are all three protected by the superblocks s_umount rw_semaphore. The use in ocfs2_control_open is evidently unrelated and the function is protected by ocfs2_control_lock. Therefore it is safe to remove the BKL entirely. Signed-off-by: Arnd Bergmann Cc: Mark Fasheh Cc: Joel Becker commit 3dbc4b32d0b39701cbec65582e196a20889155fb Author: Arnd Bergmann Date: Thu Sep 16 15:35:54 2010 +0200 BKL: Remove BKL from squashfs The BKL is only used in put_super and fill_super, which are both protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Arnd Bergmann Cc: Phillip Lougher commit 1a028dd2dd589c3924d9711a1b073a13c820b6b5 Author: Arnd Bergmann Date: Thu Sep 16 16:11:09 2010 +0200 BKL: Remove BKL from jffs2 The BKL is only used in put_super, fill_super and remount_fs that are all three protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Arnd Bergmann Cc: David Woodhouse commit 18dfe89d7c394b56e20e06dde8b7a80ff96cf02c Author: Arnd Bergmann Date: Thu Sep 16 15:35:54 2010 +0200 BKL: Remove BKL from ecryptfs The BKL is only used in fill_super, which is protected by the superblocks s_umount rw_semaphorei, and in fasync, which does not do anything that could require the BKL. Therefore it is safe to remove the BKL entirely. Signed-off-by: Arnd Bergmann Cc: Dustin Kirkland Cc: Tyler Hicks Cc: ecryptfs-devel@lists.launchpad.net commit 77f2fe036cd51300c80d1aca76bcf23a09977f13 Author: Arnd Bergmann Date: Thu Sep 16 15:35:54 2010 +0200 BKL: Remove BKL from afs The BKL is only used in put_super and fill_super, which are both protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Arnd Bergmann Cc: linux-afs@lists.infradead.org Cc: David Howells commit cdbd2b013d2814ad39e893316943fb58e6d9ec23 Author: Arnd Bergmann Date: Thu Sep 16 15:35:54 2010 +0200 BKL: Remove BKL from USB gadgetfs The BKL is only used in fill_super, which is protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Arnd Bergmann Cc: David Brownell Cc: linux-usb@vger.kernel.org commit 00e300e1b682ea86fcb5216250722afd42686ab3 Author: Arnd Bergmann Date: Tue Sep 14 23:00:34 2010 +0200 BKL: Remove BKL from autofs4 autofs4 uses the BKL only to guard its ioctl operations. This can be trivially converted to use a mutex, as we have done with most device drivers before. Signed-off-by: Arnd Bergmann Cc: "H. Peter Anvin" Cc: Ian Kent commit 4f819a7899b06afcd7623ab9d00fd81503ad3e24 Author: Arnd Bergmann Date: Sun Sep 12 19:05:56 2010 +0200 BKL: Remove BKL from isofs As in other file systems, we can replace the big kernel lock with a private mutex in isofs. This means we can now access multiple file systems concurrently, but it also means that we serialize readdir and lookup across sleeping operations which previously released the big kernel lock. This should not matter though, as these operations are in practice serialized through the hardware access. The isofs_get_blocks functions now does not take any lock any more, it used to recursively get the BKL. After looking at the code for hours, I convinced myself that it was never needed here anyway, because it only reads constant fields of the inode and writes to a buffer head array that is at this time only visible to the caller. The get_sb and fill_super operations do not need the locking at all because they operate on a file system that is either about to be created or to be destroyed but in either case is not visible to other threads. Signed-off-by: Arnd Bergmann commit 3768744cfea7b995dce27f02341161fbfdfee80c Author: Arnd Bergmann Date: Tue Sep 14 23:07:27 2010 +0200 BKL: Remove BKL from fat The lock_kernel in fat_put_super is not needed because it only protects the super block itself and we know that no other thread can reach it because we are about to kfree the object. In the two fill_super functions, this converts the locking to use lock_super like elsewhere in the fat code. This is probably not needed either, but is consistent and puts us on the safe side. Signed-off-by: Arnd Bergmann Cc: OGAWA Hirofumi Cc: Jan Blunck commit 3e44f9f1dc19e2b8d4f7ca3b3c63e976b22ad372 Author: Jan Blunck Date: Wed Feb 24 13:25:35 2010 +0100 BKL: Remove BKL from ext2 filesystem The BKL is still used in ext2_put_super(), ext2_fill_super(), ext2_sync_fs() ext2_remount() and ext2_write_inode(). From these calls ext2_put_super(), ext2_fill_super() and ext2_remount() are protected against each other by the struct super_block s_umount rw semaphore. The call in ext2_write_inode() could only protect the modification of the ext2_sb_info through ext2_update_dynamic_rev() against concurrent ext2_sync_fs() or ext2_remount(). ext2_fill_super() and ext2_put_super() can be left out because you need a valid filesystem reference in all three cases, which you do not have when you are one of these functions. If the BKL is only protecting the modification of the ext2_sb_info it can safely be removed since this is protected by the struct ext2_sb_info s_lock. Signed-off-by: Jan Blunck Cc: Jan Kara Signed-off-by: Arnd Bergmann commit 6841c05021236b8d394cc6c41aa6ae17623aef13 Author: Jan Blunck Date: Wed Feb 24 13:25:35 2010 +0100 BKL: Remove BKL from do_new_mount() After pushing down the BKL to the get_sb/fill_super operations of the filesystems that still make usage of the BKL it is safe to remove it from do_new_mount(). I've read through all the code formerly covered by the BKL inside do_kern_mount() and have satisfied myself that it doesn't need the BKL any more. Signed-off-by: Jan Blunck Cc: Matthew Wilcox Signed-off-by: Arnd Bergmann commit 38d018dba3f725b969f196550d92a6ec1c092428 Author: Jan Blunck Date: Wed Feb 24 13:25:34 2010 +0100 BKL: Remove BKL from cgroup The BKL is only used in remount_fs and get_sb that are both protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Jan Blunck Signed-off-by: Arnd Bergmann commit efdffb54034a6fc96bc7fafa33ca2a5503113eee Author: Jan Blunck Date: Wed Feb 24 13:25:33 2010 +0100 BKL: Remove BKL from NTFS The BKL is only used in put_super, fill_super and remount_fs that are all three protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Jan Blunck Signed-off-by: Arnd Bergmann commit d6d4c19c5f9ac5972e30e89b3c81ad1fd6e11fee Author: Jan Blunck Date: Wed Feb 24 13:25:32 2010 +0100 BKL: Remove BKL from NILFS2 The BKL is only used in put_super, fill_super and remount_fs that are all three protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Jan Blunck Signed-off-by: Arnd Bergmann commit 22b26db6f82bfa9a7f2b44443af3b5541927a130 Author: Jan Blunck Date: Wed Feb 24 13:25:31 2010 +0100 BKL: Remove BKL from JFS The BKL is only used in put_super, fill_super and remount_fs that are all three protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Jan Blunck Signed-off-by: Arnd Bergmann commit 8526fb37c907f8f4eb9965367af6aeec76aedbce Author: Jan Blunck Date: Wed Feb 24 13:25:30 2010 +0100 BKL: Remove BKL from HFS The BKL is only used in put_super and fill_super that are both protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Jan Blunck Signed-off-by: Arnd Bergmann commit f2143c4e2ebc6be3f07b7c7527dae7313fde23e1 Author: Jan Blunck Date: Wed Feb 24 13:25:30 2010 +0100 BKL: Remove BKL from ext4 filesystem The BKL is still used in ext4_put_super(), ext4_fill_super() and ext4_remount(). All three calles are protected against concurrent calls by the s_umount rw semaphore of struct super_block. Therefore the BKL is protecting nothing in this case. Signed-off-by: Jan Blunck Acked-by: "Theodore Ts'o" Signed-off-by: Arnd Bergmann commit 77b54a46a83232d172d55013c3af838190615260 Author: Jan Blunck Date: Wed Feb 24 13:25:30 2010 +0100 BKL: Remove BKL from ext3_put_super() and ext3_remount() The BKL lock is protecting the remounting against a potential call to ext3_put_super(). This could not happen, since this is protected by the s_umount rw semaphore of struct super_block. Therefore I think the BKL is protecting nothing here. Signed-off-by: Jan Blunck Acked-by: Jan Kara Signed-off-by: Arnd Bergmann commit d646cf82e9b6a58ba2d748e66e5fc7223830c68c Author: Jan Blunck Date: Wed Feb 24 13:25:29 2010 +0100 BKL: Remove BKL from ext3 fill_super() The BKL is protecting nothing than two memory allocations here. Signed-off-by: Jan Blunck Acked-by: Jan Kara Signed-off-by: Arnd Bergmann commit b0991aa324b57dca8feef75ed75b24080ee4a9fc Author: Jan Blunck Date: Wed Feb 24 13:25:29 2010 +0100 BKL: Remove BKL from CifsFS The BKL is only used in put_super and fill_super that are both protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Jan Blunck Cc: Steve French Signed-off-by: Arnd Bergmann commit ba13d597a60a1a26614f18b76c1a2cad1a548e46 Author: Jan Blunck Date: Wed Feb 24 13:25:29 2010 +0100 BKL: Remove BKL from BFS The BKL is only used in put_super and fill_super that are both protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Jan Blunck Signed-off-by: Arnd Bergmann commit 74c41429ae5889933a2b9b9d0d2f687baa410766 Author: Jan Blunck Date: Sun Aug 15 22:52:36 2010 +0200 BKL: Remove BKL from Amiga FFS The BKL is only used in put_super, fill_super and remount_fs that are all three protected by the superblocks s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely. Signed-off-by: Jan Blunck Signed-off-by: Arnd Bergmann commit db71922217a214e5c9268448e537b54fc1f301ea Author: Jan Blunck Date: Sun Aug 15 22:51:10 2010 +0200 BKL: Explicitly add BKL around get_sb/fill_super This patch is a preparation necessary to remove the BKL from do_new_mount(). It explicitly adds calls to lock_kernel()/unlock_kernel() around get_sb/fill_super operations for filesystems that still uses the BKL. I've read through all the code formerly covered by the BKL inside do_kern_mount() and have satisfied myself that it doesn't need the BKL any more. do_kern_mount() is already called without the BKL when mounting the rootfs and in nfsctl. do_kern_mount() calls vfs_kern_mount(), which is called from various places without BKL: simple_pin_fs(), nfs_do_clone_mount() through nfs_follow_mountpoint(), afs_mntpt_do_automount() through afs_mntpt_follow_link(). Both later functions are actually the filesystems follow_link inode operation. vfs_kern_mount() is calling the specified get_sb function and lets the filesystem do its job by calling the given fill_super function. Therefore I think it is safe to push down the BKL from the VFS to the low-level filesystems get_sb/fill_super operation. [arnd: do not add the BKL to those file systems that already don't use it elsewhere] Signed-off-by: Jan Blunck Signed-off-by: Arnd Bergmann Cc: Matthew Wilcox Cc: Christoph Hellwig commit e55df53dd62c73185af46fb6ffa7074b05ceefc4 Author: Nicolas Kaiser Date: Mon Oct 4 21:00:42 2010 +0200 netfilter: remove duplicated include Remove duplicated include. Signed-off-by: Nicolas Kaiser Signed-off-by: Patrick McHardy commit 21a180cda012e1f93e362dd4a9b0bfd3d8c92940 Merge: c7d4426 51e97a1 Author: David S. Miller Date: Mon Oct 4 11:56:38 2010 -0700 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 Conflicts: net/ipv4/Kconfig net/ipv4/tcp_timer.c commit a8defca048fd11eb2d1a17ab61a60a856292dd4e Author: Eric Dumazet Date: Mon Oct 4 20:56:05 2010 +0200 netfilter: ipt_LOG: add bufferisation to call printk() once ipt_LOG & ip6t_LOG use lot of calls to printk() and use a lock in a hope several cpus wont mix their output in syslog. printk() being very expensive [1], its better to call it once, on a prebuilt and complete line. Also, with mixed IPv4 and IPv6 trafic, separate IPv4/IPv6 locks dont avoid garbage. I used an allocation of a 1024 bytes structure, sort of seq_printf() but with a fixed size limit. Use a static buffer if dynamic allocation failed. Emit a once time alert if buffer size happens to be too short. [1]: printk() has various features like printk_delay()... Signed-off-by: Eric Dumazet Signed-off-by: Patrick McHardy commit 0c200d935346fe0ebde9b6dffbb683dddd166fb9 Author: Stephen Hemminger Date: Mon Oct 4 20:53:18 2010 +0200 netfilter: nf_nat: make find/put static The functions nf_nat_proto_find_get and nf_nat_proto_put are only used internally in nf_nat_core. This might break some out of tree NAT module. Signed-off-by: Stephen Hemminger Signed-off-by: Patrick McHardy commit 1d7e3565946bf23fef5b3219be7df63b314478a2 Author: Rabin Vincent Date: Wed Sep 29 16:01:08 2010 +0100 ARM: 6418/1: ux500: rename DB8500 DMA event line macros Change the DMA event line macros to have the name of the SoC. Also, have the event line number encoded in the macro since on DB5500 several event lines are present at multiple alternate numbers. Acked-by: Linus Walleij Signed-off-by: Rabin Vincent Signed-off-by: Russell King commit e81fcc97350755e021c85b816877ae292b8f28d0 Author: Linus Walleij Date: Tue Sep 28 15:45:41 2010 +0100 ARM: 6417/1: ux500: build configuration for DB5500 mbox and modem irq handler This rounds of the DB5500 mailbox patches by adding the Kconfig options to enable the modem IRQs and mailboxes. Signed-off-by: Stefan Nilsson XK Signed-off-by: Linus Walleij Signed-off-by: Russell King commit 38cdfe06630a109a7a38b70c3cd208defd9f5711 Author: Linus Walleij Date: Mon Sep 27 22:11:57 2010 +0100 ARM: 6415/1: ux500: DB5500 mailbox driver This is a driver for the mailboxes used to communicate with the DB5500 modem portions. Signed-off-by: Stefan Nilsson XK Signed-off-by: Linus Walleij Signed-off-by: Russell King commit b84ccd776fedee8b28f736662cd045bf893ed633 Author: Linus Walleij Date: Mon Sep 27 22:10:55 2010 +0100 ARM: 6414/1: ux500: DB5500 generic modem IRQ handler This is a (threaded) IRQ handler for the modems that appear from the modem part of the DB5500 ASIC. Signed-off-by: Stefan Nilsson XK Signed-off-by: Linus Walleij Signed-off-by: Russell King commit 4d4a4b037c5d3620b8c55504a8c9e0cbf949f7fa Author: Linus Walleij Date: Mon Sep 27 22:09:52 2010 +0100 ARM: 6413/1: ux500: resources for DB5500 mbox driver and modem irq handler Platform resources found in the DB5500 for mailboxes and the modem IRQ controller. Signed-off-by: Stefan Nilsson XK Signed-off-by: Linus Walleij Signed-off-by: Russell King commit 366d4a43b1a7a861c356a0e407c4f03f454d42ea Author: Borislav Petkov Date: Mon Oct 4 09:31:27 2010 +0200 x86, cpu: Fix X86_FEATURE_NOPL ba0593bf553c450a03dbc5f8c1f0ff58b778a0c8 cleared the aforementioned cpuid bit only on 32-bit due to various problems with Virtual PC. This somehow got lost during the 32- + 64-bit merge so restore the feature bit on 64-bit. For that, set it explicitly for non-constant arguments of cpu_has(). Update comment for future reference. Signed-off-by: Borislav Petkov LKML-Reference: <20101004073127.GA20305@liondog.tnic> Cc: Ryan O'Neill Cc: Linus Torvalds Signed-off-by: H. Peter Anvin commit 44629f57accccbb8e6d443246fe6f51b42f7f781 Author: Paul Mundt Date: Thu Sep 23 20:09:38 2010 +0900 sh: intc: Implement reverse mapping for IRQs to per-controller IDs. This implements a scheme roughly analogous to the PowerPC virtual to hardware IRQ mapping, which we use for IRQ to per-controller ID mapping. This makes it possible for drivers to use the IDs directly for lookup instead of hardcoding the vector. The main motivation for this work is as a building block for dynamically allocating virtual IRQs for demuxing INTC events sharing a single INTEVT in addition to a common masking source. Signed-off-by: Paul Mundt commit 7b4f3990a22fbe800945f12001bc30db374d0af5 Author: Chris Wilson Date: Mon Oct 4 15:33:04 2010 +0100 drm/i915: Avoid circular locking from intel_fbdev_fini() lockdep spots that the fb_info->lock takes the dev->struct_mutex during init (due to the device probing) and so we can not hold dev->struct_mutex when unregistering the framebuffer. Simply reverse the order of initialisation during cleanup and so do the intel_fbdev_fini() before the intel_modeset_cleanup. Signed-off-by: Chris Wilson commit 6c20c807cf5a13f61193d39bb718f7a9b5df3813 Author: Dimitris Papastamos Date: Mon Oct 4 09:37:48 2010 +0100 ASoC: WM8804: Power down the PLL correctly The PLL is disabled when the corresponding bit is set not the other way around. This commit depends on my other commit with Subject "ASoC: WM8804: Refactor set_pll code to avoid GCC warnings". Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 86ce6c9a62c333157d3f2ef4e4dc1fe18b70eb63 Author: Dimitris Papastamos Date: Mon Oct 4 09:31:42 2010 +0100 ASoC: WM8804: Refactor set_pll code to avoid GCC warnings Ensure that no uninitialised variable warnings are generated by GCC. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 156a0f8ecb05bae53f1652ddb151c74315a615fb Author: Nicolas Kaiser Date: Mon Oct 4 12:39:47 2010 +0200 arm/davinci: remove duplicated include Remove duplicated include. Signed-off-by: Nicolas Kaiser Signed-off-by: Kevin Hilman commit 758ff03387228824617cef9507e5682488bf9e0c Author: Simon Horman Date: Sun Aug 22 21:37:55 2010 +0900 IPVS: sip persistence engine Add the SIP callid as a key for persistence. This allows multiple connections from the same IP address to be differentiated on the basis of the callid. When used in conjunction with the persistence mask, it allows connections from different IP addresses to be aggregated on the basis of the callid. It is envisaged that a persistence mask of 0.0.0.0 will be a useful setting. That is, ignore the source IP address when checking for persistence. It is envisaged that this option will be used in conjunction with one-packet scheduling. This only works with UDP and cannot be made to work with TCP within the current framework. Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit f71499aa11f884255b69ce6c3b3c398c821591a1 Author: Simon Horman Date: Sun Aug 22 21:37:54 2010 +0900 IPVS: Fallback if persistence engine fails Fall back to normal persistence handling if the persistence engine fails to recognise a packet. This way, at least the packet will go somewhere. It is envisaged that iptables could be used to block packets such if this is not desired although nf_conntrack_sip would likely need to be enhanced first. Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit 0d1e71b04a04b6912e50926b9987c1e72facb1f3 Author: Simon Horman Date: Sun Aug 22 21:37:54 2010 +0900 IPVS: Allow configuration of persistence engines Allow the persistence engine of a virtual service to be set, edited and unset. This feature only works with the netlink user-space interface. Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit 8be67a6617b3403551fccb67b1c624c659419515 Author: Simon Horman Date: Sun Aug 22 21:37:54 2010 +0900 IPVS: management of persistence engine modules This is based heavily on the scheduler management code Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit a3c918acd29a96aba3b46bf50136e7953a480d17 Author: Simon Horman Date: Sun Aug 22 21:37:53 2010 +0900 IPVS: Add persistence engine data to /proc/net/ip_vs_conn This shouldn't break compatibility with userspace as the new data is at the end of the line. I have confirmed that this doesn't break ipvsadm, the main (only?) user-space user of this data. Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit 85999283a21ab2dd37427fdd8c8e8af57223977c Author: Simon Horman Date: Sun Aug 22 21:37:53 2010 +0900 IPVS: Add struct ip_vs_pe Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit 2fabf35bfcd89445c54cf1e6a5437dd3cf924a92 Author: Simon Horman Date: Sun Aug 22 21:37:52 2010 +0900 IPVS: ip_vs_{un,}bind_scheduler NULL arguments In general NULL arguments aren't passed by the few callers that exist, so don't test for them. The exception is to make passing NULL to ip_vs_unbind_scheduler() a noop. Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit 6e08bfb879574524cc9a67be960c684989fd986c Author: Simon Horman Date: Sun Aug 22 21:37:52 2010 +0900 IPVS: Allow null argument to ip_vs_scheduler_put() This simplifies caller logic sightly. Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit f11017ec2d1859c661f4e2b12c4a8d250e1f47cf Author: Simon Horman Date: Sun Aug 22 21:37:52 2010 +0900 IPVS: Add struct ip_vs_conn_param Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit 5b57a98c1f0d78a4c238d83c4ac70de3bd237b2f Author: Simon Horman Date: Sun Aug 22 21:37:51 2010 +0900 IPVS: compact ip_vs_sched_persist() Compact ip_vs_sched_persist() by setting up parameters and calling functions once. Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit 001985b2c0cfad48e1dec8e30f4d432eac240dd2 Author: Simon Horman Date: Sun Aug 22 21:37:51 2010 +0900 netfilter: nf_conntrack_sip: Add callid parser Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit 5adbb9fb0c35c38022f79e09fecf15ba8f65f069 Author: Simon Horman Date: Sun Aug 22 21:37:51 2010 +0900 netfilter: nf_conntrack_sip: Allow ct_sip_get_header() to be called with a null ct argument Signed-off-by: Simon Horman Acked-by: Julian Anastasov commit 1408b15b98635a13bad2e2a50b3c2ae2ccdf625b Author: Will Newton Date: Wed Sep 22 15:59:13 2010 +0100 kconfig: Use PATH_MAX instead of 128 for path buffer sizes. This prevents the buffers being overflowed when using a config file with a long name. PATH_MAX is used elsewhere in the same file, so use it here as well. Signed-off-by: Will Newton Acked-by: WANG Cong Signed-off-by: Michal Marek commit 2c6118e43040034d80894daeba41960bf0035b31 Author: Hendrik Iben Date: Mon Oct 4 15:39:49 2010 +0200 HID: force feedback support for Logitech RumblePad gamepad This patch adds force feedback support for Logitech WingMan RumblePad gamepads by extending the Logitech Rumblepad 2 force feedback code. Signed-off-by: Hendrik Iben Signed-off-by: Jiri Kosina commit bd151412263a67b5321e9dd1d5b4bf6d96fdebf3 Author: Thomas Gleixner Date: Fri Oct 1 15:17:14 2010 +0200 genirq: Provide config option to disable deprecated code This option covers now the old chip functions and the irq_desc data fields which are moving to struct irq_data. More stuff will follow. Pretty handy for testing a conversion, whether something broke or not. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 540804b5c52065a87d826f7714b18a3ec0b269f9 Author: Stephane Eranian Date: Mon Oct 4 12:00:02 2010 +0200 perf_events: Fix invalid pointer when pid is invalid This patch fixes an error in perf_event_open() when the pid provided by the user is invalid. find_lively_task_by_vpid() does not return NULL on error but an error code. Without the fix the error code was silently passed to find_get_context() which would eventually cause a invalid pointer dereference. Signed-off-by: Stephane Eranian Cc: peterz@infradead.org Cc: paulus@samba.org Cc: davem@davemloft.net Cc: fweisbec@gmail.com Cc: perfmon2-devel@lists.sf.net Cc: eranian@gmail.com Cc: robert.richter@amd.com LKML-Reference: <4ca9a5d1.e8e9d80a.3dbb.ffff8f2e@mx.google.com> Signed-off-by: Ingo Molnar commit 21e2b8c62cca8f7dbec0c8c131ca1637e4a5670f Author: Thomas Gleixner Date: Mon Sep 27 12:45:53 2010 +0000 genirq: Provide compat handling for chip->retrigger() Wrap the old chip function retrigger() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121843.025801092@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit 2f7e99bb9be6a2d8d7b808dc86037710cc8b7bf1 Author: Thomas Gleixner Date: Mon Sep 27 12:45:50 2010 +0000 genirq: Provide compat handling for chip->set_wake() Wrap the old chip function set_wake() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121842.927527393@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit b2ba2c30033c10cca2454f8b44bf98f5249e61c6 Author: Thomas Gleixner Date: Mon Sep 27 12:45:47 2010 +0000 genirq: Provide compat handling for chip->set_type() Wrap the old chip function set_type() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121842.832261548@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit c96b3b3c448592a0b87ef20306deb8b1fb4878c7 Author: Thomas Gleixner Date: Mon Sep 27 12:45:41 2010 +0000 genirq: Provide compat handling for chip->set_affinity() Wrap the old chip function set_affinity() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121842.732894108@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit 37e12df709f09eac17314d79a52190ac46746e33 Author: Thomas Gleixner Date: Mon Sep 27 12:45:38 2010 +0000 genirq: Provide compat handling for chip->startup() Wrap the old chip function startup() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121842.635152961@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit bc310dda41be6439364c8f3b9fe7c9d743d22b1c Author: Thomas Gleixner Date: Mon Sep 27 12:45:02 2010 +0000 genirq: Provide compat handling for chip->disable()/shutdown() Wrap the old chip functions disable() and shutdown() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121842.532070631@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit c5f756344c390f629243b4a28c2bd198fdfd7ee9 Author: Thomas Gleixner Date: Mon Sep 27 12:44:56 2010 +0000 genirq: Provide compat handling for chip->enable() Wrap the old chip function enable() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121842.437159182@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit 0c5c15572ac096001f52d37b416f2a4be9aebb80 Author: Thomas Gleixner Date: Mon Sep 27 12:44:53 2010 +0000 genirq: Provide compat handling for chip->eoi() Wrap the old chip function eoi() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121842.339657617@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit 9205e31d1af0f725e71bbae10d199c6b9e8d6dd8 Author: Thomas Gleixner Date: Mon Sep 27 12:44:50 2010 +0000 genirq: Provide compat handling for chip->mask_ack() Wrap the old chip function mask_ack() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121842.240806983@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit 22a49163e90dd7088f801dd54e25b04e1f337e9b Author: Thomas Gleixner Date: Mon Sep 27 12:44:47 2010 +0000 genirq: Provide compat handling for chip->ack() Wrap the old chip function ack() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121842.142624725@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit 0eda58b7f3a30c9a13d83db1cfaab00e1c452055 Author: Thomas Gleixner Date: Mon Sep 27 12:44:44 2010 +0000 genirq: Provide compat handling for chip->unmask() Wrap the old chip function unmask() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121842.043608928@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit e2c0f8ff0fc26959952fbfa89f732fef928df77f Author: Thomas Gleixner Date: Mon Sep 27 12:44:42 2010 +0000 genirq: Provide compat handling for chip->mask() Wrap the old chip function mask() until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121841.940355859@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit 3876ec9ef3775d062345b3760d3271ecb8cd3fea Author: Thomas Gleixner Date: Mon Sep 27 12:44:35 2010 +0000 genirq: Provide compat handling for bus_lock/bus_sync_unlock Wrap the old chip functions for bus_lock/bus_sync_unlock until the migration is complete and the old chip functions are removed. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121841.842536121@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit a77c4635915021c646cc017f22239e66d1aab4d5 Author: Thomas Gleixner Date: Fri Oct 1 14:44:58 2010 +0200 genirq: Add new functions to dummy chips The compat functions go away when the core code is converted. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit f8822657e799b02c55556c99a601261e207a299d Author: Thomas Gleixner Date: Mon Sep 27 12:44:32 2010 +0000 genirq: Provide advanced irq chip functions The low level irq chip functions want access to irq_desc->irq_data. Provide new functions which hand down irq_data instead of the irq number so these functions avoid to call irq_to_desc() which is a radix tree lookup in case of sparse irq. This provides all the old functions except one: end(). end() is a relict of __do_IRQ() and will just go away with the __do_IRQ() code. The replacement for set_affinity() has an extra argument "bool force". The reason for this is to notify the low level code, that the move has to be done right away and cannot be delayed until the next interrupt happens. That's necessary to handle the irq fixup on cpu unplug in the generic code. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121841.742126604@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit 6b8ff3120c758340505dddf08ad685ebb841d5d5 Author: Thomas Gleixner Date: Fri Oct 1 12:58:38 2010 +0200 genirq: Convert core code to irq_data Convert all references in the core code to orq, chip, handler_data, chip_data, msi_desc, affinity to irq_data.* Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit ff7dcd44dd446db2c3e13bdedf2d52b8e0127f16 Author: Thomas Gleixner Date: Mon Sep 27 12:44:25 2010 +0000 genirq: Create irq_data Low level chip functions need access to irq_desc->handler_data, irq_desc->chip_data and irq_desc->msi_desc. We hand down the irq number to the low level functions, so they need to lookup irq_desc. With sparse irq this means a radix tree lookup. We could hand down irq_desc itself, but low level chip functions have no need to fiddle with it directly and we want to restrict access to irq_desc further. Preparatory patch for new chip functions. Note, that the ugly anon union/struct is there to avoid a full tree wide clean up for now. This is not going to last 3 years like __do_IRQ() Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121841.645542300@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit 2c6be944111a873ce96865f1a6033056bdf0d0e2 Author: Keith Packard Date: Sun Oct 3 13:33:49 2010 -0700 drm/i915: mark display port DPMS state as 'ON' when enabling output The display port DPMS state is tracked internally in the display port driver so that when a hotplug event comes along, the driver can know whether to try retraining the link. This doesn't work well if the driver never sets the DPMS state to ON when the output is enabled. Signed-off-by: Keith Packard Signed-off-by: Chris Wilson commit 35b62a89b0723ca05831f2edfff6deebe1806f21 Author: Chris Wilson Date: Sun Sep 26 20:23:38 2010 +0100 drm/i915: Skip pread/pwrite if size to copy is 0. Signed-off-by: Chris Wilson commit df6d075a4d8b151f2c011de01c09bdc92a7bb935 Merge: f87ea76 7dcd249 Author: Chris Wilson Date: Mon Oct 4 10:07:38 2010 +0100 Merge branch 'drm-intel-fixes' into drm-intel-next commit 3bb9808e99bcc36eecb8e082bf70efb2a0bcdcb7 Author: Thomas Gleixner Date: Mon Sep 27 12:46:02 2010 +0000 x86: Use genirq Kconfig Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121843.314600915@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit d9817ebeeef16e01487549312c68540ca8f1561b Author: Thomas Gleixner Date: Mon Sep 27 12:45:59 2010 +0000 genirq: Provide Kconfig The generic irq Kconfig options are copied around all archs. Provide a generic Kconfig file which can be included. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra LKML-Reference: <20100927121843.217333624@linutronix.de> Reviewed-by: H. Peter Anvin Reviewed-by: Ingo Molnar commit e7ffec1eb178db349c7fbfd647725e9d06619962 Author: Thomas Gleixner Date: Sun Oct 3 20:08:13 2010 +0200 isdn: Free irq_data namespace The irq_data namespace is the preference for the generic irq layer. Rename the union typedef in drivers/isdn/act2000/act2000.h Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 35a27e8e6565910e5202f1af83ea85305fbf5ceb Author: Thomas Gleixner Date: Fri Oct 1 16:35:59 2010 +0200 mfd: Rename struct irq_data to struct sih_irq_data struct irq_data is the preferred name for the data associated to an interrupt in the core code. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar commit 4fdaa7b682b413dfb7ca9fa74ff45b1e0cb3dade Author: Robert Richter Date: Thu Aug 19 10:50:26 2010 +0200 oprofile: Remove duplicate code around __oprofilefs_create_file() Removing duplicate code by assigning the inodes private data pointer in __oprofilefs_create_file(). Extending the function interface to pass the pointer. Signed-off-by: Robert Richter commit dc0c22b878a60373762495b8e5628a32c1b80ac4 Author: Robert Richter Date: Fri Aug 27 14:32:41 2010 +0200 oprofile, ARM: Remove some goto statements This patch removes some unnecessary goto statements. Acked-by: Will Deacon Signed-off-by: Robert Richter commit f6be4b428197766521aca664a935c63888d096d9 Author: Robert Richter Date: Wed Sep 29 14:43:29 2010 +0200 oprofile, ARM: Rework op_create_counter() This patch simplifies op_create_counter(). Removing if/else if paths and return code variable by direct returning from function. Acked-by: Will Deacon Signed-off-by: Robert Richter commit 4d1814f48edec31f12737609cd1c871864c8298b Author: Robert Richter Date: Wed Sep 29 15:42:30 2010 +0200 oprofile, ARM: Use oprofile_arch_exit() to cleanup on failure There is duplicate cleanup code in the init and exit functions. Now, oprofile_arch_exit() is also used if oprofile_arch_init() fails. Acked-by: Will Deacon Signed-off-by: Robert Richter commit f87ea7613126ace98c0cb8b86f58e16a0e539375 Author: Keith Packard Date: Sun Oct 3 19:36:26 2010 -0700 drm/i915: avoid struct mutex output_poll mutex lock loop on unload Cancel the output polling work proc before acquiring the struct mutex to avoid acquiring the work proc mutex with the struct mutex held. This avoids inverting the lock order seen when the work proc runs. Signed-off-by: Keith Packard Signed-off-by: Chris Wilson commit 628cfe870f0b413b0a15b26fe3b949eb02fe2dc2 Merge: c76a544 ac446fb Author: Takashi Iwai Date: Mon Oct 4 08:46:38 2010 +0200 Merge remote branch 'alsa/devel' into topic/misc commit d41185882b828896ccecac319c9f65f708baaf0d Author: Valentine Sinitsyn Date: Fri Oct 1 22:24:08 2010 +0600 ALSA: hda - Added fixup for Lenovo Y550P Signed-off-by: Valentine Sinitsyn Signed-off-by: Takashi Iwai commit 54dc3f4674fbaf362d6e969904bfcece3cfebef1 Author: Eric Bénard Date: Sat Oct 2 17:15:26 2010 +0200 mach-cpuimx35: remove unecessary tsc2007 functions + style cleanup - remove functions which are no more necessary for tsc2007 - indent platform_data for better readability Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer commit c7d4426a98a5f6654cd0b4b33d9dab2e77192c18 Author: Eric Dumazet Date: Sun Oct 3 22:17:54 2010 -0700 net: introduce DST_NOCACHE flag While doing stress tests with IP route cache disabled, and multi queue devices, I noticed a very high contention on one rwlock used in neighbour code. When many cpus are trying to send frames (possibly using a high performance multiqueue device) to the same neighbour, they fight for the neigh->lock rwlock in order to call neigh_hh_init(), and fight on hh->hh_refcnt (a pair of atomic_inc/atomic_dec_and_test()) But we dont need to call neigh_hh_init() for dst that are used only once. It costs four atomic operations at least, on two contended cache lines, plus the high contention on neigh->lock rwlock. Introduce a new dst flag, DST_NOCACHE, that is set when dst was not inserted in route cache. With the stress test bench, sending 160000000 frames on one neighbour, results are : Before patch: real 2m28.406s user 0m11.781s sys 36m17.964s After patch: real 1m26.532s user 0m12.185s sys 20m3.903s Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 9a7241c21b06c3a3f8ebcf3e347bd68556369da7 Author: David S. Miller Date: Sun Oct 3 22:14:37 2010 -0700 sctp: Fix break indentation in sctp_ioctl(). Signed-off-by: David S. Miller commit 3abcdeda59c1d4cf2bf83311ed2d544355ec7c2d Author: Sathya Perla Date: Sun Oct 3 22:12:27 2010 -0700 be2net: add multiple RX queue support This patch adds multiple RX queue support to be2net. There are upto 4 extra rx-queues per port into which TCP/UDP traffic can be hashed into. Some of the ethtool stats are now displayed on a per queue basis. Signed-off-by: Sathya Perla Signed-off-by: David S. Miller commit 72829071269b19381173a13ea1b2ca2f4f9d4cec Merge: 10651db 41f4a6f Author: David S. Miller Date: Sun Oct 3 22:09:32 2010 -0700 Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 commit 10651db75a94c54a34bbf85fbee334d1114da3fb Author: Ursula Braun Date: Fri Oct 1 02:51:13 2010 +0000 qeth: tagging with VLAN-ID 0 This patch adapts qeth to handle tagged frames with VLAN-ID 0 and with or without priority information in the tag. It enables qeth to receive priority-tagged frames on a base interface, for example from z/OS, without configuring an additional VLAN interface. Signed-off-by: Ursula Braun Signed-off-by: Frank Blaschka Signed-off-by: David S. Miller commit a069ec917457e44e214fc34e50acd185110fa81b Author: Dimitris Michailidis Date: Thu Sep 30 09:17:12 2010 +0000 cxgb4: remove a bogus PCI function number check Remove a bogus PCI function number check from the driver's .remove method that causes pci_release_regions not to be called for function 0 if additional functions are attached and one of them is used as primary. Signed-off-by: Dimitris Michailidis Signed-off-by: David S. Miller commit 1790c228fb3f57793160c0f0c20b55c398cab106 Author: Julia Lawall Date: Sat Oct 2 04:37:07 2010 +0000 drivers/atm/idt77252.c: Remove unnecessary error check This code does not call deinit_card(card); in an error case, as done in other error-handling code in the same function. But actually, the called function init_sram can only return 0, so there is no need for the error check at all. init_sram is also given a void return type, and its single return statement at the end of the function is dropped. A simplified version of the sematic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ @r@ statement S1,S2,S3; constant C1,C2,C3; @@ *if (...) {... S1 return -C1;} ... *if (...) {... when != S1 return -C2;} ... *if (...) {... S1 return -C3;} // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller commit f009627b71eacfeede3d63b00a25afdf5e3e24bb Author: Andrew Morton Date: Fri Oct 1 11:17:12 2010 +0000 drivers-net-tulip-de4x5c-fix-copy-length-in-de4x5_ioctl-checkpatch-fixes ERROR: trailing statements should be on next line #23: FILE: drivers/net/tulip/de4x5.c:5477: + if (copy_to_user(ioc->data, tmp.lval, ioc->len)) return -EFAULT; total: 1 errors, 0 warnings, 8 lines checked ./patches/drivers-net-tulip-de4x5c-fix-copy-length-in-de4x5_ioctl.patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Dan Rosenberg Cc: Grant Grundler Cc: Jeff Mahoney Signed-off-by: Andrew Morton Signed-off-by: David S. Miller commit a8cb16dd9cb571c45bb479a1e4721ce11220a216 Author: Eric Dumazet Date: Fri Oct 1 16:15:29 2010 +0000 ipmr: cleanups Various code style cleanups Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit a8c9486b816f74d4645144db9e8fa2f711c1fc4b Author: Eric Dumazet Date: Fri Oct 1 16:15:08 2010 +0000 ipmr: RCU protection for mfc_cache_array Use RCU & RTNL protection for mfc_cache_array[] ipmr_cache_find() is called under rcu_read_lock(); Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 4c9687098f245601e9d94178715ee03afbcc6f80 Author: Eric Dumazet Date: Fri Oct 1 16:15:01 2010 +0000 ipmr: RCU conversion of mroute_sk Use RCU and RTNL to protect (struct mr_table)->mroute_sk Readers use RCU, writers use RTNL. ip_ra_control() already use an RCU grace period before ip_ra_destroy_rcu(), so we dont need synchronize_rcu() in mrtsock_destruct() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 55747a0a73ea74a25fcebb0731e8d3f13fe8c09d Author: Eric Dumazet Date: Fri Oct 1 16:14:55 2010 +0000 ipmr: __pim_rcv() is called under rcu_read_lock No need to get a reference on reg_dev and release it, we are in a rcu_read_lock() protected section. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit ddcb4541e917780ef7ccc68dd8df18ca0bc055d0 Author: stephen hemminger Date: Fri Oct 1 13:58:00 2010 +0000 gre: protocol table can be static This table is only used in gre.c Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit e8184a47c9cc04380553114815356d1042a27788 Author: Paul Mundt Date: Mon Oct 4 05:15:20 2010 +0900 sh: pfc: Fix up BUG() triggered by gpiolib debugfs lookups. The gpiolib debugfs entry takes a hammer approach and iterates over all of the potential GPIOs, regardless of their type. The SH PFC code on the other hand contains a variable mismash of input/output/function types spread out sparsely, leading to situations where the debug code can trigger an out of range enum for the type. Since we already have an error path for out of range enums, we can just hand that up to the higher level instead of the current BUG() behaviour. Signed-off-by: Paul Mundt commit 872f36a69fea9763f000ec1bc7a5282e43b67b96 Author: Paul Mundt Date: Mon Oct 4 05:00:19 2010 +0900 sh: Drop __initdata for SH-X3 pinmux tables. The gpio sysfs support needs to get at these later, so drop the __initdata annotations. Signed-off-by: Paul Mundt commit b72421d8aa39724474ec2bfb91e182001f1f25a7 Author: Paul Mundt Date: Mon Oct 4 03:54:56 2010 +0900 sh: pfc: support pinmux deregistration. Presently the pinmux code is a one-way thing, but there's nothing preventing an unregistration if no one has grabbed any of the pins. This will permit us to save a bit of memory on systems that require pin demux for certain peripherals in the case where registration of those peripherals fails, or they are otherwise not attached to the system. Signed-off-by: Paul Mundt commit 3bccf534f98ddc4962665b68d99f752ea010aacc Author: Paul Mundt Date: Mon Oct 4 03:07:49 2010 +0900 sh: mach-x3proto: Improve ILSEL debugging. At the moment ILSEL blows up with a BUG when aliased sets are handed in, but as the enable call is able to hand back errors we opt for that path instead. None of the ILSEL peripherals are vital to the board's operation, so trapping a BUG is a bit excessive. Signed-off-by: Paul Mundt commit 2c237329f79aba2cd1d1c1b47fc03df03ad027e1 Author: Paul Mundt Date: Mon Oct 4 03:00:49 2010 +0900 sh: mach-x3proto: gpio-keys support. This adds gpio-keys mappings for the button matrix on the baseboard, now that we have support for the pin controller. Signed-off-by: Paul Mundt commit 550591143eead286f2cd9d124a55d4a99ed024de Author: Paul Mundt Date: Mon Oct 4 02:59:29 2010 +0900 sh: mach-x3proto: Support for baseboard GPIOs. This adds trivial support for the GPIOs implemented through the baseboard CPLD, used for driving the button matrix. Signed-off-by: Paul Mundt commit d39d0ed196aa1685bb24771e92f78633c66ac9cb Author: Paul Mundt Date: Mon Oct 4 02:50:32 2010 +0900 sh: mach-x3proto: Move the ilsel header to a better place. We'll be adding more headers for this board, so move this over to its own directory. Signed-off-by: Paul Mundt commit 58e10eb92d36a62568349d985c9140d9be16a99c Merge: 1cdf7fe ab7ad7f Author: Chris Wilson Date: Sun Oct 3 10:56:11 2010 +0100 Merge branch 'drm-intel-fixes' into drm-intel-next Conflicts: drivers/gpu/drm/i915/i915_gem_evict.c drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_dp.c commit 0b452f2efa35c48219d1ad3cbebdd786ec39ef06 Merge: 33cf45c 4b285c3 Author: Takashi Iwai Date: Sun Oct 3 11:10:01 2010 +0200 Merge branch 'for-2.6.37' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/asoc-2.6 into topic/asoc commit 33515142156efc9ab5dbfe93ff8d4765559dc987 Author: J. Bruce Fields Date: Sat Oct 2 18:42:39 2010 -0400 nfsd4: return expired on unfound stateid's Commit 78155ed75f470710f2aecb3e75e3d97107ba8374 "nfsd4: distinguish expired from stale stateids" attempted to distinguish expired and stale stateid's using time information that may not have been completely reliable, so I reverted it. That was throwing out the baby with the bathwater; we still do want to return expired, but let's do that using the simpler approach of just assuming any stateid is expired if it looks like it was given out by the current server instance, but we can't find it any more. This may help clients that are recovering from network partitions. Reported-by: Bian Naimeng Signed-off-by: J. Bruce Fields commit cb13c6b3ca8a1d72996ab1b6a43e291219993292 Author: Dimitris Papastamos Date: Fri Oct 1 09:12:14 2010 +0100 ASoC: WM8804: Use a proper DAI name Make sure the DAI name does not include a '/' since we might have per DAI debugfs or sysfs entries in the future. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 8ca2aa9c59c39805c746b137c041576838f3de92 Author: Mark Brown Date: Fri Oct 1 17:46:37 2010 -0700 ASoC: Put WM8962 GPIO2/3 into GPIO mode when configuring platform data too GPIO2 and GPIO3 on the WM8962 are MFPs and need to be put into GPIO mode before the GPIO block can be used to control them. We're already doing this when used via gpiolib, factor out the code for use when setting static configurations via platform data as well. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 7711308ae68900a047782f5fe1bd46196ea8be0e Author: Mark Brown Date: Thu Sep 30 15:37:53 2010 -0700 ASoC: Implement interrupt based jack detection Allow microphone detection on WM8962 to be performed using the interrupt signal, allowing the detection of both microphone presence and button presses with a signal singal from the CODEC to CPU. Currently a 250ms debounce time is applied to both short circuit and presence detection, this has not been optimised. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 3367b8d4278d1f8a28995cc5e57a995f7147cb73 Author: Mark Brown Date: Mon Sep 20 17:34:58 2010 +0100 ASoC: Add support for WM8962 GPIO outputs The WM8962 features five GPIOs, add support for controlling their output state via gpiolib. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 532f3759d71d1fceb494212187dacc5a78295dc3 Author: Paul Mundt Date: Sun Oct 3 03:55:39 2010 +0900 sh: Allow GPIO chips to register IRQ mappings. As non-PFC chips are added that may support IRQs, pass through to the generic helper instead of triggering the WARN_ON(). Signed-off-by: Paul Mundt commit 1cdf7fef793c715d8c4998575aba3741fa4a0b01 Author: Chris Wilson Date: Sat Oct 2 15:12:41 2010 +0100 drm/i915: Don't mask the return code whilst relocating. The return from move_to_gtt_domain() may indicate a pending signal which needs to handled as opposed to an actual error, for instance, so report the original return value rather than forcing an EINVAL. Signed-off-by: Chris Wilson commit ac446fb7e690b317050ed158ba5dfd9273dc9e74 Author: Jaroslav Kysela Date: Sat Oct 2 16:00:53 2010 +0200 ALSA: snd-aloop - fix "PCM Slave Active" element read value Simple coding fix. Signed-off-by: Jaroslav Kysela commit 4bacd796ccd6976b03dd490708a1abc291d5521e Author: Paul Mundt Date: Sat Oct 2 22:02:07 2010 +0900 sh: Support early IRQ vector map reservation for delayed controllers. Some controllers will need to be initialized lazily due to pinmux constraints, while others may simply have no need to be brought online if there are no backing devices for them attached. In this case it's still necessary to be able to reserve their hardware vector map before dynamic IRQs get a hold of them. Signed-off-by: Paul Mundt commit 742759eae6b58a172d8f79ff0938d1e25dc9abc5 Author: Paul Mundt Date: Sat Oct 2 19:43:40 2010 +0900 sh: Handle pinmux for SH-X3 proto IRQ/IRL modes. The SH-X3 proto CPU has all of the external IRQ and IRL pins muxed, make sure that we're able to grab them before attempting to register their respective IRQ controllers. Signed-off-by: Paul Mundt commit 720a6bd785f92782921a1d0f00f15d60997f4037 Author: Paul Mundt Date: Sat Oct 2 19:20:51 2010 +0900 sh: pinmux support for SH-X3 proto CPUs. This adds in support for GPIO/pinmux on the SH-X3 proto CPUs. This will subsequently be used by the x3proto board. Signed-off-by: Paul Mundt commit 5d1f57e4d3d547b113ebd62f569be13bf485e53b Author: Namhyung Kim Date: Wed Sep 29 21:02:15 2010 +0900 slub: Move NUMA-related functions under CONFIG_NUMA Make kmalloc_cache_alloc_node_notrace(), kmalloc_large_node() and __kmalloc_node_track_caller() to be compiled only when CONFIG_NUMA is selected. Acked-by: David Rientjes Signed-off-by: Namhyung Kim Signed-off-by: Pekka Enberg commit 3478973dedee5e957c45dc93c11d12dc3f733ee0 Author: Namhyung Kim Date: Wed Sep 29 21:02:14 2010 +0900 slub: Add lock release annotation The unfreeze_slab() releases page's PG_locked bit but was missing proper annotation. The deactivate_slab() needs to be marked also since it calls unfreeze_slab() without grabbing the lock. Acked-by: David Rientjes Signed-off-by: Namhyung Kim Signed-off-by: Pekka Enberg commit a5dd5c117cbf620378d693963ffc42239297fac4 Author: Namhyung Kim Date: Wed Sep 29 21:02:13 2010 +0900 slub: Fix signedness warnings The bit-ops routines require its arg to be a pointer to unsigned long. This leads sparse to complain about different signedness as follows: mm/slub.c:2425:49: warning: incorrect type in argument 2 (different signedness) mm/slub.c:2425:49: expected unsigned long volatile *addr mm/slub.c:2425:49: got long *map Acked-by: Christoph Lameter Acked-by: David Rientjes Signed-off-by: Namhyung Kim Signed-off-by: Pekka Enberg commit 62e346a83026a28526fc9799337bcc6154819f25 Author: Christoph Lameter Date: Tue Sep 28 08:10:28 2010 -0500 slub: extract common code to remove objects from partial list without locking There are a couple of places where repeat the same statements when removing a page from the partial list. Consolidate that into __remove_partial(). Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit f7cb1933621bce66a77f690776a16fe3ebbc4d58 Author: Christoph Lameter Date: Wed Sep 29 07:15:01 2010 -0500 SLUB: Pass active and inactive redzone flags instead of boolean to debug functions Pass the actual values used for inactive and active redzoning to the functions that check the objects. Avoids a lot of the ? : things to lookup the values in the functions. Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit 7340cc84141d5236c5dd003359ee921513cd9b84 Author: Christoph Lameter Date: Tue Sep 28 08:10:26 2010 -0500 slub: reduce differences between SMP and NUMA Reduce the #ifdefs and simplify bootstrap by making SMP and NUMA as much alike as possible. This means that there will be an additional indirection to get to the kmem_cache_node field under SMP. Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit ed59ecbf8904a40cf0a1ee5d6f100d76d2f44e5f Author: Pekka Enberg Date: Sat Sep 18 20:45:06 2010 +0300 Revert "Slub: UP bandaid" This reverts commit 5249d039500f05a5ab379286b1d23ab9b04d3f2c. It's not needed after commit bbddff0545878a8649c091a9dd7c43ce91516734 ("percpu: use percpu allocator on UP too"). commit ed6c1115c835d822ec5d6356ae3043de54088f43 Author: Tejun Heo Date: Fri Sep 10 10:49:37 2010 +0200 percpu: clear memory allocated with the km allocator Percpu allocator should clear memory before returning it but the km allocator forgot to do it. Fix it. Signed-off-by: Tejun Heo Reported-by: Peter Zijlstra Acked-by: Peter Zijlstra commit 9b8327bb2483ded5e04df6c33cf339ce7c02f6e9 Author: Tejun Heo Date: Fri Sep 3 18:22:48 2010 +0200 percpu: use percpu allocator on UP too On UP, percpu allocations were redirected to kmalloc. This has the following problems. * For certain amount of allocations (determined by PERCPU_DYNAMIC_EARLY_SLOTS and PERCPU_DYNAMIC_EARLY_SIZE), percpu allocator can be used before the usual kernel memory allocator is brought online. On SMP, this is used to initialize the kernel memory allocator. * percpu allocator honors alignment upto PAGE_SIZE but kmalloc() doesn't. For example, workqueue makes use of larger alignments for cpu_workqueues. Currently, users of percpu allocators need to handle UP differently, which is somewhat fragile and ugly. Other than small amount of memory, there isn't much to lose by enabling percpu allocator on UP. It can simply use kernel memory based chunk allocation which was added for SMP archs w/o MMUs. This patch removes mm/percpu_up.c, builds mm/percpu.c on UP too and makes UP build use percpu-km. As percpu addresses and kernel addresses are always identity mapped and static percpu variables don't need any special treatment, nothing is arch dependent and mm/percpu.c implements generic setup_per_cpu_areas() for UP. Signed-off-by: Tejun Heo Cc: Christoph Lameter Cc: Pekka Enberg commit a7b6b77b8917488d2d6b99d82673845e508144a3 Author: Tejun Heo Date: Fri Sep 3 18:22:47 2010 +0200 percpu: reduce PCPU_MIN_UNIT_SIZE to 32k In preparation of enabling percpu allocator for UP, reduce PCPU_MIN_UNIT_SIZE to 32k. On UP, the first chunk doesn't have to include static percpu variables and chunk size can be smaller which is important as UP percpu allocator will use contiguous kernel memory to populate chunks. PCPU_MIN_UNIT_SIZE also determines the maximum supported allocation size but 32k should still be enough. Signed-off-by: Tejun Heo commit 0bc14062414d35c269b7c7dc3243a890886e7b38 Author: Tejun Heo Date: Fri Sep 3 18:22:47 2010 +0200 vmalloc: pcpu_get/free_vm_areas() aren't needed on UP These functions are used only by percpu memory allocator on SMP. Don't build them on UP. Signed-off-by: Tejun Heo Cc: Nick Piggin commit 84c1cf62465e2fb0a692620dcfeb52323ab03d48 Author: Pekka Enberg Date: Tue Sep 14 23:21:12 2010 +0300 SLUB: Fix merged slab cache names As explained by Linus "I'm Proud to be an American" Torvalds: Looking at the merging code, I actually think it's totally buggy. If you have something like this: - load module A: create slab cache A - load module B: create slab cache B that can merge with A - unload module A - "cat /proc/slabinfo": BOOM. Oops. exactly because the name is not handled correctly, and you'll have module B holding open a slab cache that has a name pointer that points to module A that no longer exists. This patch fixes the problem by using kstrdup() to allocate dynamic memory for ->name of "struct kmem_cache" as suggested by Christoph Lameter. Acked-by: Christoph Lameter Cc: David Rientjes Reported-by: Linus Torvalds Signed-off-by: Pekka Enberg Conflicts: mm/slub.c commit db210e70e5f191710a3b1d09f653b44885d397ea Author: Christoph Lameter Date: Thu Aug 26 09:41:19 2010 -0500 Slub: UP bandaid Since the percpu allocator does not provide early allocation in UP mode (only in SMP configurations) use __get_free_page() to improvise a compound page allocation that can be later freed via kfree(). Compound pages will be released when the cpu caches are resized. Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit a016471a16b5c4d4ec8f5221575e603a3d11e5e9 Author: David Rientjes Date: Wed Aug 25 16:32:27 2010 -0700 slub: fix SLUB_RESILIENCY_TEST for dynamic kmalloc caches Now that the kmalloc_caches array is dynamically allocated at boot, SLUB_RESILIENCY_TEST needs to be fixed to pass the correct type. Acked-by: Christoph Lameter Signed-off-by: David Rientjes Signed-off-by: Pekka Enberg commit 8de66a0c022c7c575c7481224803292cdabed4c4 Author: Christoph Lameter Date: Wed Aug 25 14:51:14 2010 -0500 slub: Fix up missing kmalloc_cache -> kmem_cache_node case for memoryhotplug Memory hotplug allocates and frees per node structures. Use the correct name. Acked-by: David Rientjes Acked-by: Randy Dunlap Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit 7d550c56a24b20e91ec469054230bd2e2485996a Author: Christoph Lameter Date: Wed Aug 25 14:07:16 2010 -0500 slub: Add dummy functions for the !SLUB_DEBUG case On Wed, 25 Aug 2010, Randy Dunlap wrote: > mm/slub.c:1732: error: implicit declaration of function 'slab_pre_alloc_hook' > mm/slub.c:1751: error: implicit declaration of function 'slab_post_alloc_hook' > mm/slub.c:1881: error: implicit declaration of function 'slab_free_hook' > mm/slub.c:1886: error: implicit declaration of function 'slab_free_hook_irq' Empty functions are missing if the runtime debuggability option is compiled out. Provide the fall back functions to empty hooks if SLUB_DEBUG is not set. Acked-by: Randy Dunlap Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit 8df275af8db8220d7e3f1bf97b6ac7aad05f96f0 Author: David Rientjes Date: Sun Aug 22 16:16:06 2010 -0700 slob: fix gfp flags for order-0 page allocations kmalloc_node() may allocate higher order slob pages, but the __GFP_COMP bit is only passed to the page allocator and not represented in the tracepoint event. The bit should be passed to trace_kmalloc_node() as well. Acked-by: Matt Mackall Reviewed-by: Christoph Lameter Signed-off-by: David Rientjes Signed-off-by: Pekka Enberg commit c1d508365ea07f9f8849c7da5b02186601570f8b Author: Christoph Lameter Date: Fri Aug 20 12:37:17 2010 -0500 slub: Move gfpflag masking out of the hotpath Move the gfpflags masking into the hooks for checkers and into the slowpaths. gfpflag masking requires access to a global variable and thus adds an additional cacheline reference to the hotpaths. If no hooks are active then the gfpflag masking will result in code that the compiler can toss out. Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit c016b0bdeee74a7fbe5179937c0d667eabcf379e Author: Christoph Lameter Date: Fri Aug 20 12:37:16 2010 -0500 slub: Extract hooks for memory checkers from hotpaths Extract the code that memory checkers and other verification tools use from the hotpaths. Makes it easier to add new ones and reduces the disturbances of the hotpaths. Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit 51df1142816e469173889fb6d6dc810be9b9e022 Author: Christoph Lameter Date: Fri Aug 20 12:37:15 2010 -0500 slub: Dynamically size kmalloc cache allocations kmalloc caches are statically defined and may take up a lot of space just because the sizes of the node array has to be dimensioned for the largest node count supported. This patch makes the size of the kmem_cache structure dynamic throughout by creating a kmem_cache slab cache for the kmem_cache objects. The bootstrap occurs by allocating the initial one or two kmem_cache objects from the page allocator. C2->C3 - Fix various issues indicated by David - Make create kmalloc_cache return a kmem_cache * pointer. Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit 6c182dc0de26ef97efb6a97a8deab074833764e7 Author: Christoph Lameter Date: Fri Aug 20 12:37:14 2010 -0500 slub: Remove static kmem_cache_cpu array for boot The percpu allocator can now handle allocations during early boot. So drop the static kmem_cache_cpu array. Cc: Tejun Heo Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit 55136592fedf5cc58c03d9b5eb66103a9013d4e5 Author: Christoph Lameter Date: Fri Aug 20 12:37:13 2010 -0500 slub: Remove dynamic dma slab allocation Remove the dynamic dma slab allocation since this causes too many issues with nested locks etc etc. The change avoids passing gfpflags into many functions. V3->V4: - Create dma caches in kmem_cache_init() instead of kmem_cache_init_late(). Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit 1537066c69bee9ebc4b998626c532ce1724d4e67 Author: Christoph Lameter Date: Fri Aug 20 12:37:12 2010 -0500 slub: Force no inlining of debug functions Compiler folds the debgging functions into the critical paths. Avoid that by adding noinline to the functions that check for problems. Acked-by: David Rientjes Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg commit ec706dab290c486837d4a825870ab052bf200279 Author: Nicolas Pitre Date: Thu Aug 26 23:10:50 2010 -0400 ARM: add a vma entry for the user accessible vector page The kernel makes the high vector page visible to user space. This page contains (amongst others) small code segments that can be executed in user space. Make this page visible through ptrace and /proc//mem in order to let gdb perform code parsing needed for proper unwinding. For example, the ERESTART_RESTARTBLOCK handler actually has a stack frame -- it returns to a PC value stored on the user's stack. To unwind after a "sleep" system call was interrupted twice, GDB would have to recognize this situation and understand that stack frame layout -- which it currently cannot do. We could fix this by hard-coding addresses in the vector page range into GDB, but that isn't really portable as not all of those addresses are guaranteed to remain stable across kernel releases. And having the gdb process make an exception for this page and get content from its own address space for it looks strange, and it is not future proof either. Being located above PAGE_OFFSET, this vma cannot be deleted by user space code. Signed-off-by: Nicolas Pitre commit 70c70d97809c3cdb8ff04f38ee3718c5385a2a4d Author: Nicolas Pitre Date: Thu Aug 26 15:08:35 2010 -0700 ARM: SECCOMP support Signed-off-by: Nicolas Pitre commit 087aaffcdf9c91667c93923fbc05fa8fb6bc7d3a Author: Nicolas Pitre Date: Wed Sep 22 18:34:36 2010 -0400 ARM: implement CONFIG_STRICT_DEVMEM by disabling access to RAM via /dev/mem There are very few legitimate use cases, if any, for directly accessing system RAM through /dev/mem. So let's mimic what they do on x86 and forbid it when CONFIG_STRICT_DEVMEM is turned on. Signed-off-by: Nicolas Pitre commit 7c63984b86f96c71c541132c74c4b56fe2a13e1a Author: Nicolas Pitre Date: Thu Sep 23 16:52:40 2010 -0400 ARM: do not define VMALLOC_END relative to PAGE_OFFSET VMALLOC_END is supposed to be an absolute value, while PAGE_OFFSET may vary depending on the selected user:kernel memory split mode through CONFIG_VMSPLIT_*. In fact, the goal of moving PAGE_OFFSET down is to accommodate more directly addressed RAM by the kernel below the vmalloc area, and having VMALLOC_END move along PAGE_OFFSET is rather against the very reason why PAGE_OFFSET can be moved in the first place. Signed-off-by: Nicolas Pitre commit 33d7c5c1c808ea47d85630ac2dd98490d7df0ff4 Author: Amit Kucheria Date: Wed Sep 1 22:49:13 2010 +0300 ARM: mxc: turn off HWCAP_NEON for older versions of imx51 silicon Versions of silicon older than TO3 have broken NEON implementation. Turn off NEON in such cases. Signed-off-by: Amit Kucheria Tested-by: Dave Martin Tested-by: Jason Hui Signed-off-by: Nicolas Pitre commit c62d0f2ac18d38265ccf0e821e6afee60a0c89b5 Author: Nicolas Pitre Date: Wed Sep 1 09:37:05 2010 -0400 ARM: link board specific files after core files This allows for board specific issues to override decisions made in generic code that might not be suitable due to some errata or the like, by making the initcall hooks from those board specific files run after the core ones, therefore avoiding ugly #ifdef's in core code. Signed-off-by: Nicolas Pitre Tested-by: Dave Martin Tested-by: Jason Hui commit cff55f50b882b197a52c4cf0108a43c615d1fdba Author: Luis R. Rodriguez Date: Fri Oct 1 16:16:34 2010 -0700 staging: remove the Atheros otus vendor driver Atheros originally had posted a vendor driver to support the Atheros AR9170 devices, the driver was called otus [1]. The otus driver was staging quality but it, along with other chipset documentation helped the community do a rewrite for a proper driver. Johannes Berg did the ar9170 [2] work and Christian Lamparter then followed up with some final touches for inclusion upstream. The original goal behind ar9170 was to match all functionality, performance, stability and quality against Otus. In the end this proved quite challenging even with GPLv2 firmware. Christian then decided to work on a replacement driver with new enhancements to the GPLv2 firmware. It took 1 year, 5 months, 9 days since this merge of ar9170usb upstream to release carl9170 with upstream inclusion intentions but its now there. We remove the Otus driver now as the carl9170 driver actually ends up not only replacing but superseding the staging Otus driver! http://wireless.kernel.org/en/users/Drivers/otus http://wireless.kernel.org/en/users/Drivers/ar9170 http://wireless.kernel.org/en/users/Drivers/carl9170 Signed-off-by: Luis R. Rodriguez Signed-off-by: Greg Kroah-Hartman commit 243e76b426e6e040961b84249b4eaab4ad9fa6dc Author: Janusz Krzysztofik Date: Fri Oct 1 16:37:01 2010 -0700 OMAP1: Amstrad Delta: add camera controlled LEDS trigger This patch extends the Amstrad Delta camera support with LEDS trigger that can be used for automatic control of the on-board camera LED. The led turns on automatically on camera device open and turns off on camera device close. Signed-off-by: Janusz Krzysztofik Signed-off-by: Tony Lindgren commit 8452e9ef2b08c7bd492194554cdffc67d0b2a51b Author: Janusz Krzysztofik Date: Fri Oct 1 16:37:00 2010 -0700 OMAP1: Amstrad Delta: add support for camera This patch adds configuration data and initialization code required for camera support to the Amstrad Delta board. Three devices are declared: SoC camera, OMAP1 camera interface and OV6650 sensor. Default 12MHz clock has been selected for driving the sensor. Pixel clock has been limited to get reasonable frame rates, not exceeding the board capabilities. Since both devices (interface and sensor) support both pixel clock polarities, decision on polarity selection has been left to drivers. Interface GPIO line has been found not functional, thus not configured. Signed-off-by: Janusz Krzysztofik Signed-off-by: Tony Lindgren commit 1a96edd70c1f4b4a1904803f8a83900087f4d1da Author: Janusz Krzysztofik Date: Fri Oct 1 16:37:00 2010 -0700 OMAP1: Add support for SoC camera interface This patch adds a definition of the OMAP1 camera interface platform device, and a function that allows for providing a board specific platform data. The device will be used with the upcoming OMAP1 SoC camera interface driver. Signed-off-by: Janusz Krzysztofik Signed-off-by: Tony Lindgren commit 64be97822b781e921c7eda2d4089fd1fdf3aabba Author: kishore kadiyala Date: Fri Oct 1 16:35:28 2010 -0700 omap4 hsmmc: Update ocr mask for MMC2 for regulator to use On OMAP4, MMC2 controller has eMMC which draws power from VAUX regulator on TWL. Though the eMMC supports dual voltage[1.8v/3v] as per ocr register, its VCC is fixed at 3V for operation. With this once the mmc core selects the minimum voltage[1.8] supported based on the ocr value read from OCR register, eMMC will not get detected. Thus the platform data for MMC2 is updated with ocr mask and same will be communicated to core which will set the regulator to always operate at 3V when ever turned ON. Cc: Tony Lindgren Cc: Andrew Morton Cc: Madhusudhan Chikkature Cc: Adrian Hunter Signed-off-by: Kishore Kadiyala Signed-off-by: Tony Lindgren commit 91a0b089f8358aec866bc9c69da8b84c77beaaf3 Author: kishore kadiyala Date: Fri Oct 1 16:35:28 2010 -0700 omap4 hsmmc: Register offset handling In OMAP4, as per new PM programming model, the legacy registers which were there in OMAP3 are all shifted by 0x100 while new one's are added from offset 0 to 0x10. For OMAP4, the register offset appending of 0x100 done in devices.c currently, is moved to driver file.This change fits in for current implementation as well as once the driver undergoes hwmod adaptation. Cc: Andrew Morton Cc: Madhusudhan Chikkature Cc: Adrian Hunter Cc: Benoit Cousson Signed-off-by: Kishore Kadiyala Signed-off-by: Tony Lindgren commit 531c21ba1a298422ace28efbcdf94d5579a1b702 Author: Benoit Cousson Date: Fri Oct 1 16:35:26 2010 -0700 omap4 hsmmc: Fix the init if CONFIG_MMC_OMAP_HS is not set Avoid possible crash if CONFIG_MMC_OMAP_HS is not set Cc: Andrew Morton Cc: Madhusudhan Chikkature Cc: Adrian Hunter Signed-off-by: Benoit Cousson Signed-off-by: Kishore Kadiyala Signed-off-by: Tony Lindgren commit 07ad64b60c4d1f2bdbefa5db29ccb235596bc670 Author: Madhusudhan Chikkature Date: Fri Oct 1 16:35:25 2010 -0700 OMAP4 ES2: HSMMC soft reset change The omap4 es2 hsmmc has a updated soft reset logic.After the reset is issued monitor a 0->1 transition first. The reset of CMD or DATA lines is complete only after a 0->1->0 transition of SRC or SRD bits. Signed-off-by: Madhusudhan Chikkature Tested-by: Anand Gadiyar Signed-off-by: Tony Lindgren commit e13bb34bd9bbc01dcab9ed1b8adaa6a199ce059c Author: Grazvydas Ignotas Date: Fri Oct 1 16:35:25 2010 -0700 omap: pandora: enable twl4030 charger Add platform data to make use of newly added charging driver. Signed-off-by: Grazvydas Ignotas Signed-off-by: Tony Lindgren commit 690a4a39b2429a4e397cd79e1dd16b6a5ca4111e Author: Grazvydas Ignotas Date: Fri Oct 1 16:35:25 2010 -0700 omap: pandora: add fixed regulator for wlan Instead of enabling the wifi module explicitly using GPIO, add a fixed regulator and hook it to MMC host card power control. This way it will only be enabled when SDIO subsystem wants to talk to it, saving power (as done by Zoom boards). Signed-off-by: Grazvydas Ignotas Signed-off-by: Tony Lindgren commit 76abab213587bfc3b850f36c0a674116d161148d Author: Sanjeev Premi Date: Fri Oct 1 16:35:24 2010 -0700 omap2/3: Update revision identification The existing definitions for cpu revision used upper nibble in the bits[15:08]. With OMAP3630, definitions use lower nibble. This patch unifies the definitions to start at lower nibble. Signed-off-by: Sanjeev Premi Signed-off-by: Tony Lindgren commit 5a3b2f7a5a79082dd3a5f2294cbd85fc3b173d98 Author: Tony Lindgren Date: Fri Oct 1 16:35:24 2010 -0700 omap: Fix omap_mux_init_signal not to trash muxname Otherwise the muxname passed to the function will get truncated. Based on an earlier patch by rockefeller.lin@innocomm.com. Reported-by: rockefeller.lin@innocomm.com Signed-off-by: Tony Lindgren commit 328ead287220711c3ad4490b1f3f691855df4039 Author: J. Bruce Fields Date: Wed Sep 29 16:11:06 2010 -0400 nfsd4: add new connections to session As long as we're not implementing any session security, we should just automatically add any new connections that come along to the list of sessions associated with the session. Signed-off-by: J. Bruce Fields commit db90681d6eff89efc1eee523e1cb77eb632a6cf7 Author: J. Bruce Fields Date: Wed Sep 29 15:29:32 2010 -0400 nfsd4: refactor connection allocation Signed-off-by: J. Bruce Fields commit 19cf5c026f3ee06027523e59478e3fa54f573e5e Author: J. Bruce Fields Date: Sun Jun 6 18:37:16 2010 -0400 nfsd4: use callbacks on svc_xprt_deletion Remove connections from the list when they go down. Signed-off-by: J. Bruce Fields commit edc7a894034acb4c7ff8305716ca5df8aaf8e642 Author: J. Bruce Fields Date: Mon Mar 22 15:37:17 2010 -0400 nfsd: provide callbacks on svc_xprt deletion NFSv4.1 needs warning when a client tcp connection goes down, if that connection is being used as a backchannel, so that it can warn the client that it has lost the backchannel connection. Signed-off-by: J. Bruce Fields commit c7662518c781edc8059cd9737d18168154bf7510 Author: J. Bruce Fields Date: Sun Jun 6 18:12:14 2010 -0400 nfsd4: keep per-session list of connections The spec requires us in various places to keep track of the connections associated with each session. Signed-off-by: J. Bruce Fields commit 5b6feee9608dce7afd2646f457c93e612526d1d8 Author: J. Bruce Fields Date: Mon Sep 27 17:12:05 2010 -0400 nfsd4: clean up session allocation Changes: - make sure session memory reservation is released on failure path. - use min_t()/min() for more compact code in several places. - break alloc_init_session into smaller pieces. - miscellaneous other cleanup. Signed-off-by: J. Bruce Fields commit dd93842457174b847b023314e5a501e5ed45caeb Author: J. Bruce Fields Date: Mon Sep 27 16:26:25 2010 -0400 nfsd4: fix alloc_init_session return type This returns an nfs error, not -ERRNO. Signed-off-by: J. Bruce Fields commit c23753dac1d21b39facd2ad3c7340dd275b3022f Author: J. Bruce Fields Date: Mon Sep 27 16:22:30 2010 -0400 nfsd4: fix alloc_init_session BUILD_BUG_ON() Note we're allocating an array of nfsd4_slot *'s, not nfsd4_slot's. Signed-off-by: J. Bruce Fields commit 6ff8da088766d70f0441feb982b82978a6cbf7ef Author: J. Bruce Fields Date: Fri Jun 4 20:04:45 2010 -0400 nfsd4: Move callback setup to callback queue Instead of creating the new rpc client from a regular server thread, set a flag, kick off a null call, and allow the null call to do the work of setting up the client on the callback workqueue. Use a spinlock to ensure the callback work gets a consistent view of the callback parameters. This allows, for example, changing the callback from contexts where sleeping is not allowed. I hope it will also keep the locking simple as we add more session and trunking features, by serializing most of the callback-specific work. This also closes a small race where the the new cb_ident could be used with an old connection (or vice-versa). Signed-off-by: J. Bruce Fields commit fb003923263c3f0cb02adbd56a22fe16ef5c0e77 Author: J. Bruce Fields Date: Mon May 31 18:21:37 2010 -0400 nfsd4: remove separate cb_args struct I don't see the point of the separate struct. It seems to just be getting in the way. Signed-off-by: J. Bruce Fields commit cee277d92495a9ea49a6137fe7005d7c76b31b5b Author: J. Bruce Fields Date: Wed May 26 17:52:14 2010 -0400 nfsd4: use generic callback code in null case This will eventually allow us, for example, to kick off null callback from contexts where we can't sleep. Signed-off-by: J. Bruce Fields commit 5878453dbde627a8e1b5a4693087e36cb88d45b1 Author: J. Bruce Fields Date: Sun May 16 16:47:08 2010 -0400 nfsd4: generic callback code Make the recall callback code more generic, so that other callbacks will be able to use it too. Signed-off-by: J. Bruce Fields commit 1c8556026edac60368ceef446f0febc08014ba78 Author: J. Bruce Fields Date: Wed May 26 17:46:00 2010 -0400 nfsd4: rename nfs4_rpc_args->nfsd4_cb_args With apologies for the gratuitous rename, the new name seems more helpful to me. Signed-off-by: J. Bruce Fields commit 586f36735e1d38c32bbfbb2716461e7178724b15 Author: J. Bruce Fields Date: Wed May 26 17:40:53 2010 -0400 nfsd4: combine nfs4_rpc_args and nfsd4_cb_sequence These two structs don't really need to be distinct as far as I can tell. Signed-off-by: J. Bruce Fields commit 07263f1efe7d5b96e6713471abfa087f41bb2b7c Author: J. Bruce Fields Date: Mon May 31 19:09:40 2010 -0400 nfsd4: minor variable renaming (cb -> conn) Now that we have both nfsd4_callback and nfsd4_cb_conn structures, I get confused if variables of both types are always named cb.... Signed-off-by: J. Bruce Fields commit 620e112cfe1c9281c176de8ad1a7691c4eb4950d Author: Thomas Renninger Date: Fri Oct 1 10:54:00 2010 +0200 ACPI/PNP: A HID value of an object never changes -> make it const Signed-off-by: Thomas Renninger Signed-off-by: Len Brown commit 5c80cc78de46aef6cd5e714208da05c3f7f548f8 Author: Andreas Herrmann Date: Thu Sep 30 14:43:16 2010 +0200 x86, amd_nb: Enable GART support for AMD family 0x15 CPUs AMD CPU family 0x15 still supports GART for compatibility reasons. Signed-off-by: Andreas Herrmann LKML-Reference: <20100930124316.GG20545@loge.amd.com> Signed-off-by: H. Peter Anvin commit d4fbe4f03557e1fd4d9bbb3a1957aad560f39e96 Author: Andreas Herrmann Date: Thu Sep 30 14:41:56 2010 +0200 x86, amd: Use compute unit information to determine thread siblings This information is vital for different load balancing policies. Signed-off-by: Andreas Herrmann LKML-Reference: <20100930124156.GF20545@loge.amd.com> Signed-off-by: H. Peter Anvin commit 6057b4d331f19a3ea51aec463ea7839c128b3227 Author: Andreas Herrmann Date: Thu Sep 30 14:38:57 2010 +0200 x86, amd: Extract compute unit information for AMD CPUs Get compute unit information from CPUID Fn8000_001E_EBX. (See AMD CPUID Specification - publication # 25481, revision 2.34, September 2010.) Note that each core on a compute unit still has a core_id of its own. Signed-off-by: Andreas Herrmann LKML-Reference: <20100930123857.GE20545@loge.amd.com> Signed-off-by: H. Peter Anvin commit 23588c38a84c9175c6668789b64ffba4651e5c6a Author: Andreas Herrmann Date: Thu Sep 30 14:36:28 2010 +0200 x86, amd: Add support for CPUID topology extension of AMD CPUs Node information (ID, number of internal nodes) is provided via CPUID Fn8000_001e_ECX. See AMD CPUID Specification (Publication # 25481, Revision 2.34, September 2010). Signed-off-by: Andreas Herrmann LKML-Reference: <20100930123628.GD20545@loge.amd.com> Signed-off-by: H. Peter Anvin commit 420b13b60a3e5c5dcc6ec290e131cf5fbc603d94 Author: Andreas Herrmann Date: Thu Sep 30 14:33:58 2010 +0200 x86, nmi: Support NMI watchdog on newer AMD CPU families CPU families 0x12, 0x14 and 0x15 support this functionality. Signed-off-by: Andreas Herrmann LKML-Reference: <20100930123357.GC20545@loge.amd.com> Signed-off-by: H. Peter Anvin commit 3fdbf004c1706480a7c7fac3c9d836fa6df20d7d Author: Andreas Herrmann Date: Thu Sep 30 14:32:35 2010 +0200 x86, mtrr: Assume SYS_CFG[Tom2ForceMemTypeWB] exists on all future AMD CPUs Instead of adapting the CPU family check in amd_special_default_mtrr() for each new CPU family assume that all new AMD CPUs support the necessary bits in SYS_CFG MSR. Tom2Enabled is architectural (defined in APM Vol.2). Tom2ForceMemTypeWB is defined in all BKDGs starting with K8 NPT. In pre K8-NPT BKDG this bit is reserved (read as zero). W/o this adaption Linux would unnecessarily complain about bad MTRR settings on every new AMD CPU family, e.g. [ 0.000000] WARNING: BIOS bug: CPU MTRRs don't cover all of memory, losing 4863MB of RAM. Cc: stable@kernel.org # .32.x, .35.x Signed-off-by: Andreas Herrmann LKML-Reference: <20100930123235.GB20545@loge.amd.com> Signed-off-by: H. Peter Anvin commit 86ffb08519d6fe1e9c4fe5a110ffa5fcb868cb1c Merge: 23ac4ae aeb9c7d Author: H. Peter Anvin Date: Fri Oct 1 16:18:11 2010 -0700 Merge remote branch 'origin/x86/cpu' into x86/amd-nb commit 1e7af1b8062598a038c04dfaaabd038a0d6e8b6a Author: J. Bruce Fields Date: Fri Oct 1 15:40:01 2010 -0400 nfsd4: remove spkm3 Unfortunately, spkm3 never got very far; while interoperability with one other implementation was demonstrated at some point, problems were found with the spec that were deemed not worth fixing. The kernel code is useless on its own without nfs-utils patches which were never merged into nfs-utils, and were only ever available from citi.umich.edu. They appear not to have been updated since 2005. Therefore it seems safe to assume that this code has no users, and never will. Signed-off-by: J. Bruce Fields commit 277f68dbba397997c7f3dc843d14afa1654bb80e Author: NeilBrown Date: Wed Sep 22 12:55:06 2010 +1000 sunrpc: fix race in new cache_wait code. If we set up to wait for a cache item to be filled in, and then find that it is no longer pending, it could be that some other thread is in 'cache_revisit_request' and has moved our request to its 'pending' list. So when our setup_deferral calls cache_revisit_request it will find nothing to put on the pending list, and do nothing. We then return from cache_wait_req, thus leaving the 'sleeper' on-stack structure open to being corrupted by subsequent stack usage. However that 'sleeper' could still be on the 'pending' list that the other thread is looking at and so any corruption could cause it to behave badly. To avoid this race we simply take the same path as if the 'wait_for_completion_interruptible_timeout' was interrupted and if the sleeper is no longer on the list (which it won't be) we wait on the completion - which will ensure that any other cache_revisit_request will have let go of the sleeper. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit e33621a2e3f2b7b73259f6740776b3983ec5bab9 Author: FUJITA Tomonori Date: Fri Oct 1 14:15:27 2010 -0700 [IA64] enable ARCH_DMA_ADDR_T_64BIT Signed-off-by: FUJITA Tomonori Signed-off-by: Andrew Morton Signed-off-by: Tony Luck commit 14ec63c3336af7ea5445e0d8f4d26ba3041e40b3 Author: Pavel Emelyanov Date: Wed Sep 29 16:06:57 2010 +0400 sunrpc: Create sockets in net namespaces The context is already known in all the sock_create callers. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 721db93a55dad71bb89e7d11cc6be1f180ec3f2d Author: Pavel Emelyanov Date: Wed Sep 29 16:06:32 2010 +0400 net: Export __sock_create Signed-off-by: Pavel Emelyanov Acked-by: David S. Miller Signed-off-by: J. Bruce Fields commit 37aa2133731d9231eb834f700119f0d3f1ed2664 Author: Pavel Emelyanov Date: Wed Sep 29 16:05:43 2010 +0400 sunrpc: Tag rpc_xprt with net The net is known from the xprt_create and this tagging will also give un the context in the conntection workers where real sockets are created. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 9a23e332ec621d36e52cc7a978abc0917067b1aa Author: Pavel Emelyanov Date: Wed Sep 29 16:05:12 2010 +0400 sunrpc: Add net to xprt_create Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit c653ce3f0aee9bb2b221ebf3579385c06f81efcd Author: Pavel Emelyanov Date: Wed Sep 29 16:04:45 2010 +0400 sunrpc: Add net to rpc_create_args Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 62832c039eab9d03cd28a66427ce8276988f28b0 Author: Pavel Emelyanov Date: Wed Sep 29 16:04:18 2010 +0400 sunrpc: Pull net argument downto svc_create_socket After this the socket creation in it knows the context. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit fc5d00b04a3a58cac8620403dfe9f43f72578ec1 Author: Pavel Emelyanov Date: Wed Sep 29 16:03:50 2010 +0400 sunrpc: Add net argument to svc_create_xprt Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit e204e621b4160c802315bc2d0fa335337c0d62e8 Author: Pavel Emelyanov Date: Wed Sep 29 16:03:13 2010 +0400 sunrpc: Factor out rpc_xprt freeing Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit bd1722d4316e42a12fe6337ebe34d7e1e2c088b2 Author: Pavel Emelyanov Date: Wed Sep 29 16:02:43 2010 +0400 sunrpc: Factor out rpc_xprt allocation Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 2b44f1ba40914777f4b1075254ba97663d4e2574 Author: Benny Halevy Date: Thu Sep 30 20:47:46 2010 +0200 nfsd4: adjust buflen for encoded attrs bitmap based on actual bitmap length The existing code adjusted it based on the worst case scenario for the returned bitmap and the best case scenario for the supported attrs attribute. Signed-off-by: Benny Halevy [bfields@redhat.com: removed likely/unlikely's] Signed-off-by: J. Bruce Fields commit ebfa88cfa1f00022c500e35db63b5f6c977c95c0 Author: Loïc Minier Date: Mon Sep 27 23:04:20 2010 +0200 OMAP: PM: Fix build when CONFIG_PM_DEBUG isn't set Since 6cdee91257bee23a46dc869ca62469b67cba2c7e the references to enable_off_mode and sleep_while_idle can't be resolved when CONFIG_PM_DEBUG isn't set: arch/arm/mach-omap2/built-in.o: In function `omap_uart_restore_context': arch/arm/mach-omap2/serial.c:253: undefined reference to `enable_off_mode' arch/arm/mach-omap2/built-in.o: In function `omap3_can_sleep': arch/arm/mach-omap2/pm34xx.c:479: undefined reference to `sleep_while_idle' Simply #define these in pm.h just like omap2_pm_debug. Signed-off-by: Loïc Minier [khilman: moved down into existing #ifdef section] Signed-off-by: Kevin Hilman commit 65707fb3794e9cf75665f9ef91cfb07c50d3ffa5 Author: Kevin Hilman Date: Fri Oct 1 08:35:47 2010 -0700 OMAP3: CPUidle: remove redundant setting of PER next power state When checking how to program the next powerstate for the PER powerdomain, the next state of PER powerdomain was written twice. Remove the duplicate write. Reported-by: Santosh Shilimkar Signed-off-by: Kevin Hilman commit 35ed16740c564ff092fe45804dfbbb1449f2bd7e Author: Rahul Ruikar Date: Fri Oct 1 13:32:45 2010 -0700 [IA64] ioc3_serial: release resources in error return path In ioc3uart_probe() resources were not released during error return path - ports[phys_port] Signed-off-by: Rahul Ruikar Signed-off-by: Tony Luck commit 69758ab7a1e2de5636a2188d5357dd03140bf1d8 Merge: 963bfb0 257f23d Author: Kevin Hilman Date: Fri Oct 1 13:24:10 2010 -0700 manual merge for pm-hwmod-uart due to conflicts commit 963bfb0939232e415c7bfb19b08dce300eb148d9 Merge: 7ad0e38 7ec5ad0 Author: Kevin Hilman Date: Fri Oct 1 13:24:09 2010 -0700 Merge branch 'pm-hwmod-wdog' into pm-hwmods commit 2b2ae7c7f8e25043793042eb9df88aa875b4cff8 Author: Thomas Renninger Date: Fri Oct 1 10:53:59 2010 +0200 ACPI: Do not export hid/modalias sysfs file for ACPI objects without a HID Boot and compile tested. The fact that pnp.ids can now be empty needs testing on some further machines, though. This should handle a "modprobe is wrongly called by udev" issue: https://bugzilla.kernel.org/show_bug.cgi?id=19162 Modaliase files in /sys/devices/LNXSYSTM:00/ went down from 113 to 71 on my tested system. This is a sysfs change, but userspace must already be able to handle it. Also do not fill up pnp.ids list with a "struct hid" entry. This comment: * This generic ID isn't useful for driver binding, but it provides * the useful property that "every acpi_device has an ID." is still half way true: Best you never touch pnp.ids list directly or make sure it can be empty, instead use: char *acpi_device_hid() which always returns a value ("device" as a dummy if the object has no hid). Signed-off-by: Thomas Renninger CC: Zhang Rui CC: kay.sievers@vrfy.org CC: Bjorn Helgaas Signed-off-by: Len Brown commit eaeca2e9a7dbd8f05a8a47e66e3e1de105426f0b Author: Thomas Renninger Date: Fri Oct 1 10:54:53 2010 +0200 ACPI: Remove unused #define ACPI_PROCESSOR_FILE_POWER Looks like a left over from /proc/acpi/processor/*/power which got removed Signed-off-by: Thomas Renninger Signed-off-by: Len Brown commit c49c06e4960949a9bced708858433fcf6ca36a9c Author: Vivek Goyal Date: Fri Oct 1 21:16:42 2010 +0200 blkio-throttle: Fix possible multiplication overflow in iops calculations o User can specify max iops value of 32bit (UINT_MAX), through cgroup interface. If a user has specified say 4294967294 (UNIT_MAX - 2), then on 32bit platform, following multiplication can overflow. io_allowed = (tg->iops[rw] * jiffy_elapsed_rnd) o Explicitly cast the multiplication to 64bit and then perform division and then check whether result is still great then UNINT_MAX. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 9355aede5a3c4975e0ba8bbfe2b9d1fd73308916 Author: Vivek Goyal Date: Fri Oct 1 21:16:41 2010 +0200 blkio-throttle: limit max iops value to UINT_MAX - Limit max iops value to UINT_MAX and return error to user if value is more than that instead of accepting bigger values and truncating implicitly. Signed-off-by: Jens Axboe commit 5e901a2b95db709c5e40599ff4df6029be1e2a12 Author: Vivek Goyal Date: Fri Oct 1 21:16:38 2010 +0200 blkio-throttle: There is no need to convert jiffies to milli seconds o Do not convert jiffies to mili seconds as it is not required. Just work with jiffies and HZ. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit f9d885c3e59e50863565bddd2672656b57b15035 Author: Paul Mundt Date: Sat Oct 2 01:04:30 2010 +0900 sh: Support IRQ balancing for SH-X3 proto cores, too. This adds in hardware IRQ auto-distribution support for SH-X3 proto CPUs, following the SH7786 support. Signed-off-by: Paul Mundt commit e15f6870a2f2a29abcdb910b80f9629bcf7f5566 Author: Paul Mundt Date: Sat Oct 2 00:43:43 2010 +0900 sh: Support userimask for all SH-X3 interrupt controllers. This shuffles some of the shared bits out of the 7786 code and in to a shared SH-X3 support file. Presently just for userimask, but also a good place for the IRQ balancing wrappers. Signed-off-by: Paul Mundt commit 41f4a6f71fe33faa7971c173c263fb431fe987fe Merge: 94d57c4 1728943 Author: John W. Linville Date: Fri Oct 1 11:12:36 2010 -0400 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem commit 5140434d5f82f2e2119926272ada2e9731ec04f1 Author: Robert Richter Date: Thu Sep 30 18:55:47 2010 +0200 oprofile, x86: Simplify init/exit functions Now, that we only call the exit function if init succeeds with commit: 979048e oprofile: don't call arch exit code from init code on failure we can simplify the x86 init/exit functions too. Variable using_nmi becomes obsolete. Signed-off-by: Robert Richter commit 5924ad0d86fbc05bfb0c90afa15e20ccb7155549 Author: Paul Mundt Date: Fri Oct 1 23:49:56 2010 +0900 sh: Update SH-X3 subtype for clkdev lookups. Rewrite the SH-X3 proto CPU clock framework for clkdev. Signed-off-by: Paul Mundt commit f6dedecc37164a58bb80ae2ed9d204669ffc4850 Author: Jiri Olsa Date: Wed Sep 29 10:46:47 2010 -0400 oprofile, x86: Adding backtrace dump for 32bit process in compat mode This patch implements the oprofile backtrace generation for 32 bit applications running in the 64bit environment (compat mode). With this change it's possible to get backtrace for 32bits applications under the 64bits environment using oprofile's callgraph options. opcontrol --setup -c ... opreport -l -cg ... Signed-off-by: Jiri Olsa Signed-off-by: Robert Richter commit 40c6b3cb64cd1d02322df5f729cca25084580f40 Author: Jiri Olsa Date: Wed Sep 29 10:46:46 2010 -0400 oprofile, x86: Using struct stack_frame for 64bit processes dump Removing unnecessary struct frame_head and replacing it with struct stack_frame. The struct stack_frame is already defined and used in other places in kernel, so there's no reason to define new structure. Signed-off-by: Jiri Olsa Signed-off-by: Robert Richter commit b6dc79929fa18a97bbc08400db72405ad835622f Author: Pascal Auriel - Stantum Date: Fri Oct 1 16:01:28 2010 +0200 HID: support STmicroelectronics and Sitronix with hid-stantuml driver New VendorsIds/ProductIds using hid-stantum driver. Signed-off-by: Stantum Acked-by: Stephane Chatty Signed-off-by: Jiri Kosina commit ae681d969ac0946e09636f2bef7a126d73e1ad6b Author: Chris Wilson Date: Fri Oct 1 14:57:56 2010 +0100 drm/i915: If the GPU hangs twice within 5 seconds, declare it wedged. The issue is that we may become stuck executing a long running shader and continually attempt to reset the GPU. (Or maybe we tickle some bug and need to break the vicious cycle.) So if we are detect a second hang within 5 seconds, give up trying to programme the GPU and report it wedged. Signed-off-by: Chris Wilson commit 2fa772f34042cd4ddfb4ffaf5c24f0ce8c1025e9 Author: Chris Wilson Date: Fri Oct 1 13:23:27 2010 +0100 drm/i915: Only print 'generating error event' if we actually are Signed-off-by: Chris Wilson commit dc96e9b8e37641d9d15a8a4cdd18ed7680d8f546 Author: Chris Wilson Date: Fri Oct 1 12:05:06 2010 +0100 drm/i915: Try to reset gen2 devices. So far only found registers for i830, i845, i865 and one of those has no effect on i865! At this moment in time, attempting to reset i8xx is a little optimistic... Signed-off-by: Chris Wilson commit 069efc1dac477a4a51e42c0fe50bdcf85ada626a Author: Chris Wilson Date: Thu Sep 30 16:53:18 2010 +0100 drm/i915: Clear fence registers on GPU reset When the GPU is reset, the fence registers are invalidated, so release the objects and clear them out. Signed-off-by: Chris Wilson commit 812ed4924328adf94f45c664b6a4c710a69167e2 Author: Chris Wilson Date: Thu Sep 30 15:08:57 2010 +0100 drm/i915: Force the domain to CPU on unbinding whilst wedged. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30083 Reported-by: Sitsofe Wheeler Signed-off-by: Chris Wilson commit 73aa808f10effc280e6eb70267314542a7c29426 Author: Chris Wilson Date: Thu Sep 30 11:46:12 2010 +0100 drm: Move the GTT accounting to i915 Only drm/i915 does the bookkeeping that makes the information useful, and the information maintained is driver specific, so move it out of the core and into its single user. Signed-off-by: Chris Wilson Cc: Dave Airlie commit 921990b7046ab4fb523cbccc5bce2c921762232d Author: Henrik Rydberg Date: Tue Aug 31 21:56:24 2010 -0400 HID: magicmouse: Adjust major / minor axes to scale By visual inspection, the reported touch_major and touch_minor axes are roughly a factor of four too small. The factor is approximate, since the protocol is not known and the HID report encodes touch size with fewer bits than positions. This patch scales the reported values by a factor of four. Signed-off-by: Henrik Rydberg Signed-off-by: Chase Douglas Acked-by: Michael Poole Signed-off-by: Jiri Kosina commit f51661105c3c8a0afcd69f995a4f4a10e53da153 Author: Philipp Merkel Date: Fri Oct 1 15:38:59 2010 +0200 HID: Fix for problems with eGalax/DWAV multi-touch-screen This patch fixes three problems with the eGalax/DWAV multi-touch screen found in the Eee PC T101MT: 1) While there is a dedicated multitouch driver for the screen (hid-egalax.c), the MULTI_INPUT quirk is also applied, preventing the hid-egalax driver from working. This patch removes the quirk so the hid-egalax driver can handle the device correctly. 2) The x and y coordinates sent by the screen in multi-touch mode are shifted by three bits from the events sent in single-touch mode, thus the coordinates are out of range, leading to the pointer being stuck in the bottom-right corner if no additional calibration is applied (e.g. in the X evdev driver). This patch shifts the coordinates back. This does not decrease accuracy as the last three bits of the "wrong" coordinates are always 0. 3) Only multi-touch pressure events are sent, single touch emulation is missing pressure information. This patch adds single-touch ABS_PRESSURE events. Signed-off-by: Philipp Merkel Acked-by: Stéphane Chatty Signed-off-by: Jiri Kosina commit 00e7f9649b3061281fe4b463263da26155dc9be4 Author: Nikolai Kondrashov Date: Sat Sep 25 23:16:58 2010 +0400 HID: waltop: add support for Waltop Slim Tablet 12.1 inch Add support for Waltop Slim Tablet 12.1 inch by fixing its report descriptor. This mainly fixes button reporting. This tablet is also sold as Genius G-Pen F610. Other possible names of this tablet: VisTablet Original 12", Adesso CyberTablet Z12, Adesso CT-Z12A, PenPower Tooya Pro, Aiptek Slim 12.1 Inch Signed-off-by: Nikolai Kondrashov Signed-off-by: Jiri Kosina commit 8038298fde28a533da52a47fac87106b4bf9816c Author: Rok Mandeljc Date: Thu Sep 30 23:24:30 2010 +0200 HID: add NOGET quirk for AXIS 295 Video Surveillance Joystick This patch adds the NOGET quirk for AXIS 295 Video Surveillance Joystick (despite AXIS brand the vendor is actually CH Products). Without the quirk, the joystick is detected but does not generate any events. Signed-off-by: Rok Mandeljc Signed-off-by: Jiri Kosina commit 3aad5d3ee4e4fce8f4b5bb6ca73342dcade42b33 Author: Vivek Goyal Date: Fri Oct 1 14:51:14 2010 +0200 blkio-throttle: Fix link failure failure on i386 o Randy Dunlap reported following linux-next failure. This patch fixes it. on i386: blk-throttle.c:(.text+0x1abb8): undefined reference to `__udivdi3' blk-throttle.c:(.text+0x1b1dc): undefined reference to `__udivdi3' o bytes_per_second interface is 64bit and I was continuing to do 64 bit division even on 32bit platform without help of special macros/functions hence the failure. Signed-off-by: Vivek Goyal Reported-by: Randy Dunlap Signed-off-by: Jens Axboe commit fe0714377ee2ca161bf2afb7773e22f15f1786d4 Author: Vivek Goyal Date: Fri Oct 1 14:49:49 2010 +0200 blkio: Recalculate the throttled bio dispatch time upon throttle limit change o Currently any cgroup throttle limit changes are processed asynchronousy and the change does not take affect till a new bio is dispatched from same group. o It might happen that a user sets a redicuously low limit on throttling. Say 1 bytes per second on reads. In such cases simple operations like mount a disk can wait for a very long time. o Once bio is throttled, there is no easy way to come out of that wait even if user increases the read limit later. o This patch fixes it. Now if a user changes the cgroup limits, we recalculate the bio dispatch time according to new limits. o Can't take queueu lock under blkcg_lock, hence after the change I wake up the dispatch thread again which recalculates the time. So there are some variables being synchronized across two threads without lock and I had to make use of barriers. Hoping I have used barriers correctly. Any review of memory barrier code especially will help. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 02977e4af7ed3b478c505e50491ffdf3e1314cf4 Author: Vivek Goyal Date: Fri Oct 1 14:49:48 2010 +0200 blkio: Add root group to td->tg_list o Currently all the dynamically allocated groups, except root grp is added to td->tg_list. This was not a problem so far but in next patch I will travel through td->tg_list to process any updates of limits on the group. If root group is not in tg_list, then root group's updates are not processed. o It is better to root group also to tg_list instead of doing special processing for it during limit updates. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 61014e96e6ed55b8db0af31574eec2a75d4e8755 Author: Vivek Goyal Date: Fri Oct 1 14:49:44 2010 +0200 blkio: deletion of a cgroup was causes oops o Now a cgroup list of blkg elements can contain blkg from multiple policies. Before sending an unlink event, make sure blkg belongs to they policy. If policy does not own the blkg, do not send update for this blkg. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 13f98250f587b7defa39ed738dfa74b600e46e7b Author: Vivek Goyal Date: Fri Oct 1 14:49:41 2010 +0200 blkio: Do not export throttle files if CONFIG_BLK_DEV_THROTTLING=n Currently throttling related files were visible even if user had disabled throttling using config options. It was switching off background throttling of bio but not the cgroup files. This patch fixes it. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit efb012b361cf9319cd86ff169afa7550b7aa9336 Author: Malahal Naineni Date: Fri Oct 1 14:45:27 2010 +0200 block: set the bounce_pfn to the actual DMA limit rather than to max memory The bounce_pfn of the request queue in 64 bit systems is set to the current max_low_pfn. Adding more memory later makes this incorrect. Memory allocated beyond this boot time max_low_pfn appear to require bounce buffers (bounce buffers are actually not allocated but used in calculating segments that may result in "over max segments limit" errors). Signed-off-by: Malahal Naineni Signed-off-by: Jens Axboe commit 260a67a9e534f0c7d49ddd6451833d54ba39ac81 Author: Jens Axboe Date: Fri Oct 1 14:42:43 2010 +0200 block: revert bad fix for memory hotplug causing bounces Revert "block: set the bounce_pfn to the actual DMA limit rather than to max memory" This reverts commit c49825facfd4969585224a896a5e717f88450cad. Signed-off-by: Jens Axboe commit 94d57c4cfaa43e29ca5fa5ff874048cfc67276f5 Author: Vasanthy Kolluri Date: Thu Sep 30 13:36:05 2010 +0000 enic: Update MAINTAINERS Update MAINTAINERS list Signed-off-by: Vasanthy Kolluri Signed-off-by: Roopa Prabhu Signed-off-by: David Wang Signed-off-by: David S. Miller commit 2fdba3881154ee91927af7d7436d54eb05dcc3bf Author: Vasanthy Kolluri Date: Thu Sep 30 13:35:45 2010 +0000 enic: Make local functions static Make functions used locally in a file as static Signed-off-by: Stephen Hemminger Signed-off-by: Vasanthy Kolluri Signed-off-by: Roopa Prabhu Signed-off-by: David Wang Signed-off-by: David S. Miller commit bf746e62afc83be1baccc0cc9e128a9805ecd5fd Author: Vasanthy Kolluri Date: Thu Sep 30 13:35:34 2010 +0000 enic: Remove dead code Removed code that is unused Signed-off-by: Stephen Hemminger Signed-off-by: Vasanthy Kolluri Signed-off-by: Roopa Prabhu Signed-off-by: David Wang Signed-off-by: David S. Miller commit 367e5e376922dcf52f92e1db436010fb828d3bfa Author: Eric Dumazet Date: Thu Sep 30 05:36:29 2010 +0000 neigh: reorder fields in struct neighbour On 64bit arches, there are two 32bit holes that we can remove. sizeof(struct neighbour) shrinks from 0xf8 to 0xf0 bytes Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit bb7196d2bf30e4cb06fe5fed046c9084465e854c Author: Tilman Schmidt Date: Thu Sep 30 13:35:52 2010 +0000 isdn/gigaset: improve bas_gigaset USB error reporting Rephrase some USB error messages to make them clearer and more consistent. Downgrade some warning messages that may occur during normal operation to debug messages. Signed-off-by: Tilman Schmidt Signed-off-by: David S. Miller commit c9c0c3043452d30ab87135ba3753ce7855a3a8e7 Author: Tilman Schmidt Date: Thu Sep 30 13:35:42 2010 +0000 isdn/gigaset: fix bas_gigaset interrupt read error handling Rework the handling of USB errors in interrupt input reads to clear halts correctly, delay URB resubmission after errors, limit retries, and improve error recovery. Signed-off-by: Tilman Schmidt Signed-off-by: David S. Miller commit 4cb5e42f6132bf2d2851f8dd67bd8499979c7ebc Author: Tilman Schmidt Date: Thu Sep 30 13:35:31 2010 +0000 isdn/gigaset: unclog bas_gigaset AT response pipe Recover from a lost HD_RECEIVEATDATA_ACK message by sending a zero-length HD_READ_ATMESSAGE command when ev_layer sends "+++". Signed-off-by: Tilman Schmidt Signed-off-by: David S. Miller commit 60798c68bebf6009df9da634e79ebdd8c8227238 Author: Tilman Schmidt Date: Thu Sep 30 13:35:21 2010 +0000 isdn/gigaset: try USB reset for bas_gigaset error recovery In error_reset(), if sending HD_RESET_INTERRUPT_PIPE to the device fails, try performing an USB reset. Also correct an error in the leading comment. Signed-off-by: Tilman Schmidt Signed-off-by: David S. Miller commit 1d5a9edcd5f1fe6483afca33294ed0ebab793ebf Author: Tilman Schmidt Date: Thu Sep 30 13:35:11 2010 +0000 isdn/gigaset: bas_gigaset timer cleanup Use setup_timer() and mod_timer() instead of direct assignment to timer structure members, simplify the argument of one timer routine, and make extra sure all timers are stopped during suspend. Signed-off-by: Tilman Schmidt Signed-off-by: David S. Miller commit befba36ab942c44ba1d3761a7439324fff83638f Author: Tilman Schmidt Date: Thu Sep 30 13:35:01 2010 +0000 isdn/gigaset: drop obsolete debug option Remove the debug flag DEBUG_DRIVER and associated code. It doesn't serve any useful purpose anymore. Signed-off-by: Tilman Schmidt Signed-off-by: David S. Miller commit f3d531b99fb30945b4a64d6e2e86e1e62605aca5 Author: Tilman Schmidt Date: Thu Sep 30 13:34:51 2010 +0000 isdn/gigaset: correct bas_gigaset rx buffer handling In transparent data reception, avoid a NULL pointer dereference in case an skbuff cannot be allocated, remove an inappropriate call to the HDLC flush routine, and correct the accounting of received bytes for continued buffers. Signed-off-by: Tilman Schmidt CC: stable Signed-off-by: David S. Miller commit c8701a08d6a4efeae45d84d0aa87172f23b14e3c Author: Tilman Schmidt Date: Thu Sep 30 13:34:40 2010 +0000 isdn/gigaset: fix bas_gigaset AT read error handling Rework the handling of USB errors in AT response reads to fix a possible infinite retry loop and a memory leak, and silence a few overly verbose kernel messages. Signed-off-by: Tilman Schmidt CC: stable Signed-off-by: David S. Miller commit b33ffa5cbf52ee751bb8068218ebb3c742c5a515 Author: Tilman Schmidt Date: Thu Sep 30 13:34:30 2010 +0000 isdn/gigaset: bas_gigaset locking fix Unlock cs->lock before calling error_hangup() which is marked "cs->lock must not be held". Signed-off-by: Tilman Schmidt CC: stable Signed-off-by: David S. Miller commit bd9e310dca15c9987256f67af19f9f42426e7493 Author: Uwe Kleine-König Date: Tue Sep 28 22:04:01 2010 +0200 ARM: imx/pca100: only specify i2c device type once The first argument to I2C_BOARD_INFO is used to assign .type, so it should not be specified a second time. For the rtc-pcf8563/pcf8563 entry gcc preferred pcf8563, so did I. Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 214b43100fd59e55fcd265329aafd14ab01ec30d Author: Uwe Kleine-König Date: Tue Sep 28 21:55:22 2010 +0200 ARM: imx/pcm970: make platform_data static This fixes the following sparse warning: arch/arm/mach-imx/pcm970-baseboard.c:224:13: warning: symbol 'pcm970_baseboard_init' was not declared. Should it be static? Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 6c80ee51707ec9fcf137bc7b511d2853b772eae6 Author: Uwe Kleine-König Date: Tue Sep 28 21:53:31 2010 +0200 ARM: imx: make all pin lists const and signed, move to .init where possible Making the lists signed fixes sparse warnings like: arch/arm/mach-imx/mach-mx27_3ds.c:94:31: warning: incorrect type in argument 1 (different signedness) arch/arm/mach-imx/mach-mx27_3ds.c:94:31: expected int const *pin_list arch/arm/mach-imx/mach-mx27_3ds.c:94:31: got unsigned int static [toplevel] * Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 7ad211e35b41166ccf8448345726f324f26260f7 Author: Uwe Kleine-König Date: Tue Sep 28 21:39:49 2010 +0200 ARM: imx/pcm038: make regulator platform data static This fixes the following sparse warning: arch/arm/mach-imx/pcm970-baseboard.c:203:30: warning: symbol 'pcm970_sja1000_platform_data' was not declared. Should it be static? Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 13040066e28688b635801cdd5c6587fddae0e232 Author: Uwe Kleine-König Date: Tue Sep 28 21:37:20 2010 +0200 ARM: imx/clock-imx27: Pass NULL as function callback, not 0 This fixes many sparse warnings like: arch/arm/mach-imx/clock-imx27.c:597:1: warning: Using plain integer as NULL pointer Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 8f6e900a661881f9585d9b3a7173a44020c3c0b2 Author: Sascha Hauer Date: Wed Aug 25 11:56:26 2010 +0200 ARM: mx5: clock-imx51: make *ipg clocks secondary clocks of their corresponding peripheral clocks Currently the uarts and timer only work because they are turned on by reset default. Make them secondary clocks of their corresponding peripheral clocks to make sure they are turned on when necessary. Also, register some clocks to get rid of compiler warnings Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 63a7c6d7507ed6f4ea24a8ed008efa1bb22a2a97 Author: Sascha Hauer Date: Tue Aug 3 11:59:46 2010 +0200 ARM: mx5: dynamically register mxc-nand device Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 00b57bf9786ca701508333112c8917d1e0860129 Author: Uwe Kleine-König Date: Mon Aug 23 11:25:52 2010 +0200 ARM: imx: reorganize nand registration to use a struct Addiontionally make the interrupt #defines match the base address defines MX.._NFC_BASE_ADDR. Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 40e2eda92178f58fd7da2866d3f346dcd2baafed Author: Sascha Hauer Date: Fri Aug 20 16:44:34 2010 +0200 ARM: mx51: Add audmux support Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit b86186610f639344a7db54da89267f645afc30ec Author: Sascha Hauer Date: Fri Aug 20 16:43:54 2010 +0200 ARM: mx51: add imx-ssi devices Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 04b73b1571c26d491c62c42cb06b96bf482fa7a2 Author: Uwe Kleine-König Date: Wed Aug 11 22:23:06 2010 +0200 ARM: mx51: dynamically register imx-uart devices Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 2b82e64d787f9d1a5d304da137c2b1bdbe3b2d9d Author: Sascha Hauer Date: Tue Aug 3 11:59:07 2010 +0200 ARM: mx5: Add Nand clock support Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit f781bc8aa44c8676ad84b69fc4553e8f035c6e89 Author: Sascha Hauer Date: Tue Aug 24 14:49:09 2010 +0200 ARM: mx5/iomux-mx51: Fix input path of some pins in gpio mode Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 2e35bab5fd8b19a8eabbb4c57b3ddd305057eed4 Author: Sascha Hauer Date: Fri Aug 20 18:35:51 2010 +0200 ARM: mx5/iomux-mx51: Add aud3 primary function defines Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 8efd9271fae0a735db5660330e14022031c88e77 Author: Sascha Hauer Date: Fri Aug 20 10:45:11 2010 +0200 ARM: mx5/iomux-mx51: Add SPI controller pads Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 8005cf2eb39786a0a3592fe178603ee1caccc5eb Author: Jason Wang Date: Thu Sep 2 15:52:04 2010 +0800 ARM: mx5/mx51_3ds: add SPI NOR flash in the board init stage A 2M bytes SPI NOR flash(sst25vf016b) is soldered on the mx51_3ds board. So add the corresponding device for it. Signed-off-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 988916e1a9af1994d510138e7201acf7b425fb46 Author: Jason Wang Date: Thu Sep 2 15:52:03 2010 +0800 ARM: mx5/mx51_3ds: add eCSPI2 support on the imx51_3ds board Signed-off-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit eaa4fd0b4022bd4d2ff0c38b3cc936ee5a441711 Author: Jason Wang Date: Thu Sep 2 15:52:02 2010 +0800 ARM: mx5/iomux-mx51: add iomux definitions for eCSPI2 on the imx51_3ds board On the imx51_3ds board, eCSPI2 is connected to a SPI NOR flash, now add iomux definitions for those used pins. Signed-off-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 8d83db81affd71af0fb6f054ab552d16a7cb805b Author: Jason Wang Date: Thu Sep 2 15:52:00 2010 +0800 ARM: mx5/clock-mx51: add spi clocks Signed-off-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 74d99f395901502747a44a1379f3b4fdb638dafa Author: Uwe Kleine-König Date: Fri Sep 10 17:01:26 2010 +0200 ARM: mx5/clock-mx51: new macro that defines a clk with all members Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 79901478e0a2854c4becbb2e77f176bd7fa37caa Author: Uwe Kleine-König Date: Fri Sep 10 16:58:42 2010 +0200 ARM: mx5/clock-mx51: refactor ccgr callbacks to use common code Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 9f0c11ee67d9a5ab76c27d2f9dbdd9ee85fbce10 Author: Uwe Kleine-König Date: Fri Sep 10 16:57:07 2010 +0200 ARM: mx5: add spi_imx device registration Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit ab5605037c119f1bde0f01786ede16d0ea5dcd8a Author: Uwe Kleine-König Date: Thu Sep 9 21:02:02 2010 +0200 ARM: imx: use platform ids for spi_imx devices The driver recently learned to handle platform ids. Make use of this new feature. The up side is that the driver needs less knowledge about the spi interfaces used on different SoCs. Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 0b599603d8534bc3946a0f07e461c76d7947dfcf Author: Uwe Kleine-König Date: Thu Sep 9 21:02:48 2010 +0200 spi/imx: add support for imx51's eCSPI and CSPI i.MX51 comes with two eCSPI interfaces (that are quite different from what was known before---the tried and tested Freescale way) and a CSPI interface that is identical to the devices found on i.MX25 and i.MX35. This patch is a merge of two very similar patches (by Jason Wang and Sascha Hauer resp.) plus a (now hopefully correct) reimplementation of the clock calculation. Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 3b2aa89eb381d2f445aa3c60d8f070a3f55efa63 Author: Uwe Kleine-König Date: Fri Sep 10 09:42:29 2010 +0200 spi/imx: save the spi chip select in config struct, not the gpio to use This prepares adding support for imx51's eCSPI. This IP has seperate control and config bits for all four supported chip selects, so the config routine needs to know which chip select is being used even if the chipselect is realized by a gpio. Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 1723e66b03c3d131d16f7646752c9782c66ea1ae Author: Uwe Kleine-König Date: Fri Sep 10 09:19:18 2010 +0200 spi/imx: get rid of more ifs depending on the used cpu Nearly everything that is needed is provided by the version of the SPI IP. Now the only checks left using cpu_is_... are clk divider tuning on mx21/mx27 and autodetection (which will die soon). Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit f4ba6315cb77a5dcff6664ce1d66ebfe31bcc6b1 Author: Uwe Kleine-König Date: Thu Sep 9 15:29:01 2010 +0200 spi/imx: convert driver to use platform ids This has the advantage not to need to much cpu_is_... macros. Still more when imx51 support is added which has two different spi interfaces which would introduce additional checks on the device id. With this setup it's not possible for the compiler anymore to detect the unused functions, so four additional kconfig symbols are introduced to ifdef out the unneeded functions in the callback array and all these functions are marked with __maybe_unused to suppress the corresponding gcc warnings. Comparing the driver footprint with and without the patch for a mx27 kernel yields: add/remove: 2/0 grow/shrink: 2/0 up/down: 280/0 (280) function old new delta spi_imx_devtype - 192 +192 spi_imx_probe 980 1032 +52 spi_imx_devtype_data - 32 +32 spi_imx_setupxfer 276 280 +4 Later when the platform code is updated to use the platform ids, the autodetection can be removed which will make the driver a bit smaller again. (~60 Bytes in my test.) Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit e89524d33deb55de28b4ab171e4b0f89d46b2d4e Author: Uwe Kleine-König Date: Thu Sep 9 11:12:12 2010 +0200 spi/imx: default to m on platforms that have such devices Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 77a406da5a5b76445a816d5f043fc9aef4026ff1 Author: Uwe Kleine-König Date: Wed Aug 25 12:19:50 2010 +0200 ARM: imx: fix name of macros to add imx-i2c devices This is a follow up to c698715 (ARM: imx: dynamically register imx-i2c devices (imx27)) 2b92084 (ARM: imx: dynamically register imx-i2c devices (imx21)) 6348e6b (ARM: imx: dynamically register imx-i2c devices (imx1)) Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit 44505c0768971f4aa94ca09c8155448a46a7ff8a Author: Uwe Kleine-König Date: Thu Sep 30 16:44:53 2010 +0200 ARM: mx5: dynamically register imx-i2c devices Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer commit c7ebfdaca0b89fe9d846e93b249303313612d0e3 Author: Matt Carlson Date: Thu Sep 30 10:34:37 2010 +0000 tg3: Update version to 3.114 This patch updates the tg3 version to 3.114. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 7cb32cf23c63a371cf89bfaad3f911a1609241cc Author: Matt Carlson Date: Thu Sep 30 10:34:36 2010 +0000 tg3: Add extend rx ring sizes for 5717 and 5719 This patch increases the rx ring sizes for those asic revs that support them. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 2c49a44df33e22e1f48bd8d51781e7f38d55d002 Author: Matt Carlson Date: Thu Sep 30 10:34:35 2010 +0000 tg3: Prepare for larger rx ring sizes This patch adds two new variables to track the size of the standard and jumbo rx producer ring sizes. The code is then pivoted to these variables from preprocessor constants. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 1da85aa3db6878639e407548dad5b2404443e2c5 Author: Matt Carlson Date: Thu Sep 30 10:34:34 2010 +0000 tg3: Futureproof the loopback test There are other multiqueue modes 5717 and 5719 devices can assume. This patch makes sure that the loopback test is safe, should those other modes be enabled in the future. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 37a949c54857d8b2a38dbdc75bc8666c3292cbc4 Author: Matt Carlson Date: Thu Sep 30 10:34:33 2010 +0000 tg3: Cleanup missing VPD partno section This patch cleans up the default VPD partno section. New entries for 5717 asic rev devices were also added. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit f51a8903f14512f5ce61a74657db7f84f16b2717 Author: Matt Carlson Date: Thu Sep 30 10:34:32 2010 +0000 tg3: Remove 5724 device ID This product was never released to the public. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit d309a46e42542223946d3a9e4e239fdc945cb53e Author: Matt Carlson Date: Thu Sep 30 10:34:31 2010 +0000 tg3: 5719: Prevent tx data corruption This patch enables a bit that prevents read DMA overflows and adjusts the txmbuf margin from the hardware default. The combination of these modifications prevents a tx data corruption issue we were seeing on the 5719. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 66cfd1bd05a7a1c31c9cdbb2ddf5c57d1cddc5f6 Author: Matt Carlson Date: Thu Sep 30 10:34:30 2010 +0000 tg3: Fix potential netpoll crash Up until now the tg3 driver would call netif_napi_add() for the maximum number of NAPI instances the driver could use. The problem is that netpoll could call tg3_poll() on instances that are not active. The net effect is that the driver will crash attempting to dereference uninitialized pointers. The fix is to only allocate as many NAPI instances as the driver would use in tg3_open() and deleted them in tg3_close(). Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller commit 205d231bfbd26bb10400518586d2a9f1b62858ee Author: Mark Brown Date: Thu Sep 30 13:46:14 2010 -0700 ASoC: Remove -dai suffix from i.MX SSI driver While it is a generic serial port in practice the i.MX SSI is only supported in Linux as an audio port (the i.MX has dedicated SPI controllers and so on). This means we don't need to disambiguate against other uses of the hardware and so can drop the -dai suffix from the driver name which fixes merge issues with the i.MX tree in -next. Signed-off-by: Mark Brown Acked-by: Uwe Kleine-König Acked-by: Liam Girdwood commit 40de9a7cebc4e0b23cd6863c84c2279f0ccadebb Author: Christoph Hellwig Date: Fri Oct 1 09:12:08 2010 +0200 hfsplus: fix rename over directories When renaming over a directory we need to use hfsplus_rmdir instead of hfsplus_unlink to evict the victim. This makes sure we properly error out on non-empty directory as required by Posix (BZ #16571), and it also makes sure we do the right thing in case i_nlink will every be set correctly for directories on hfsplus. Reported-by: Vlado Plaga Signed-off-by: Christoph Hellwig commit ef70fcc0cd5d98f5e2df82c9e598b47f351d4f66 Merge: 4cbe75b 98d943b Author: Robert Richter Date: Fri Oct 1 08:54:17 2010 +0200 Merge branch 'oprofile/urgent' into oprofile/core Conflicts: arch/arm/oprofile/common.c Signed-off-by: Robert Richter commit 420a0f66378c84b00b0e603e4d38210102dbe367 Author: Dmitry Torokhov Date: Sat Sep 18 10:11:09 2010 -0700 PNPACPI: cope with invalid device IDs If primary ID (HID) is invalid try locating first valid ID on compatible ID list before giving up. This helps, for example, to recognize i8042 AUX port on Sony Vaio VPCZ1 which uses SNYSYN0003 as HID. Without the patch users are forced to boot with i8042.nopnp to make use of their touchpads. Tested-by: Jan-Hendrik Zab Signed-off-by: Dmitry Torokhov Signed-off-by: Len Brown commit c1f3f2819667a238585c65bba96c8b16af39a442 Author: Bjorn Helgaas Date: Wed Sep 29 12:24:23 2010 -0600 PNP: log PNP resources, as we do for PCI ACPI devices are often involved in address space conflicts with PCI devices, so I think it's worth logging the resources they use. Otherwise we have to depend on lspnp or groping around in sysfs to find them. Signed-off-by: Bjorn Helgaas Signed-off-by: Len Brown commit 846b44ad4ed11fe4dc1bddd484dde71c272bcf1b Author: Bob Moore Date: Fri Sep 17 08:15:02 2010 +0800 ACPICA: Update version to 20100915 Version 20100915. Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 75434a2ae37b78887b7a1d70d0a23bbd5e09fb01 Author: Bob Moore Date: Fri Sep 17 08:14:01 2010 +0800 ACPICA: Increase configurability of error messages Update to utxferror.c Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 77b23f712bc40a65160e7d02b045f1562bb43ff1 Author: Bob Moore Date: Wed Sep 15 14:11:02 2010 +0800 ACPICA: Add repair for _HID and _CID strings This dynamic repair will fix these problems: 1) Remove a leading asterisk in the string 2) Uppercase the entire string Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit cc84e262b71bab53c3b2be2e71209c85b88b4b4d Author: Bob Moore Date: Wed Sep 15 14:09:14 2010 +0800 ACPICA: iASL/Disassembler: Write ACPI errors to stderr instead of output file This keeps the output files clean of random error messages that may originate from within the namespace/interpreter code. Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 31b3d4c3b3c599a2329c3e66ffab7a045b169c85 Author: Bob Moore Date: Wed Sep 15 14:02:56 2010 +0800 ACPICA: Make acpi_gbl_system_awake_and_running publically available Added extern for this boolean in acpixf.h. Some hosts utilize this value during suspend/restore operations. Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit e786db75406b30fa74dea095c571c8c164a2f3dd Author: Bob Moore Date: Wed Sep 15 14:00:53 2010 +0800 ACPICA: Update math module; no functional change Move the 64-bit overlay structures to the utmath module since they are used nowhere else. Update module comment. ACPICA BZ 829. http://www.acpica.org/bugzilla/show_bug.cgi?id=829 Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 28eb3fcf8762a3b52f4fef5af29dce50d23c7151 Author: Lin Ming Date: Wed Sep 15 13:55:13 2010 +0800 ACPICA: Make acpi_thread_id no longer configurable, always u64 Change definition of acpi_thread_id to always be a u64. This simplifies the code, especially any printf output. u64 is the only common data type for all thread_id types across all operating systems. We now force the OSL to cast the native thread_id type to u64 before returning the value to ACPICA (via acpi_os_get_thread_id). Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 8f40f171a29d0d2ae1ca8bd4a0c3fc9f514d1e20 Author: Lin Ming Date: Wed Sep 15 13:36:55 2010 +0800 ACPICA: Add ACPI_INLINE configuration parameter The C inline keyword is not standardized, ACPI_INLINE allows this to be configured on a per-compiler basis. Signed-off-by: Lin Ming Signed-off-by: Bob Moore Signed-off-by: Len Brown commit 95abccb576c44bc593e05fa1245d0ad26ce6107b Author: Bob Moore Date: Wed Sep 15 13:22:46 2010 +0800 ACPICA: Obsolete the acpi_os_derive_pci_id OSL interface This function is not OS-dependent and has been replaced by acpi_hw_derive_pci_id, which is now in the ACPICA core code. Local implementations of acpi_os_derive_pci_id are no longer necessary and are removed. ACPICA BZ 857. http://www.acpica.org/bugzilla/show_bug.cgi?id=857 Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 6087658d7d576b8aeed8f9188cd9917db29aa0dd Author: Bob Moore Date: Wed Aug 11 10:14:35 2010 +0800 ACPICA: Update version to 20100806 Version 20100806. Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit b0ed7a915abac309fcb5a51bccd3782e3daa7417 Author: Lin Ming Date: Fri Aug 6 09:35:51 2010 +0800 ACPICA/ACPI: Add new host interfaces for _OSI support Adds install/remove interfaces so that the host can dynamically alter the global _OSI table. Also adds support for _OSI handlers. Additional support: new debugger command (osi), and test support in the acpiexec utility. Adds new file, utilities/utosi.c. ACPICA bugzilla 836. The Linux OSL _OSI code is also changed. acpi_osi_setup can't call acpi_install/remove_interface because ACPICA is not initialized yet at this early time. So we just save the osi string in acpi_osi_setup and will handle it later in a new function acpi_osi_setup_late. http://www.acpica.org/bugzilla/show_bug.cgi?id=836 Signed-off-by: Lin Ming Signed-off-by: Bob Moore commit 09387b43153953006471dbb06ece6bf779d10937 Author: Bob Moore Date: Fri Aug 6 09:09:33 2010 +0800 ACPICA: Revert "Revert "Enable multi-byte EC transfers This reverts commit f23b9c7(http://git.moblin.org/cgit.cgi/acpica/commit/?id=f23b9c7) The problem with this change was determined to be a problem with the FreeBSD host OSL (OS services layer), not with this patch itself. Therefore, re-introducing this change into the main ACPICA code. See ACPICA bugzilla 863. http://www.acpica.org/bugzilla/show_bug.cgi?id=863 Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit c5f0231ee6b0441e4c45f461f2b6652b10195494 Author: Bob Moore Date: Fri Aug 6 08:57:53 2010 +0800 ACPICA: Fix acpi_os_read_pci_configuration prototype Prototype in acpiosxf.h had the output value pointer as a (u32 *). Should be a (u64 *). Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Len Brown commit 0197aa38df2ce550c0bfc96194b07ce6b68af814 Author: Eric Dumazet Date: Thu Sep 30 03:33:58 2010 +0000 ipv4: rcu conversion in ip_route_output_slow ip_route_output_slow() is enclosed in an rcu_read_lock() protected section, so that no references are taken/released on device, thanks to __ip_dev_find() & dev_get_by_index_rcu() Tested with ip route cache disabled, and a stress test : Before patch: elapsed time : real 1m38.347s user 0m11.909s sys 23m51.501s Profile: 13788.00 22.7% ip_route_output_slow [kernel] 7875.00 13.0% dst_destroy [kernel] 3925.00 6.5% fib_semantic_match [kernel] 3144.00 5.2% fib_rules_lookup [kernel] 3061.00 5.0% dst_alloc [kernel] 2276.00 3.7% rt_set_nexthop [kernel] 1762.00 2.9% fib_table_lookup [kernel] 1538.00 2.5% _raw_read_lock [kernel] 1358.00 2.2% ip_output [kernel] After patch: real 1m28.808s user 0m13.245s sys 20m37.293s 10950.00 17.2% ip_route_output_slow [kernel] 10726.00 16.9% dst_destroy [kernel] 5170.00 8.1% fib_semantic_match [kernel] 3937.00 6.2% dst_alloc [kernel] 3635.00 5.7% rt_set_nexthop [kernel] 2900.00 4.6% fib_rules_lookup [kernel] 2240.00 3.5% fib_table_lookup [kernel] 1427.00 2.2% _raw_read_lock [kernel] 1157.00 1.8% kmem_cache_alloc [kernel] Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 82efee1499a27c06f5afb11b07db384fdb3f7004 Author: Eric Dumazet Date: Thu Sep 30 03:31:56 2010 +0000 ipv4: introduce __ip_dev_find() ip_dev_find(net, addr) finds a device given an IPv4 source address and takes a reference on it. Introduce __ip_dev_find(), taking a third argument, to optionally take the device reference. Callers not asking the reference to be taken should be in an rcu_read_lock() protected section. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 467c3d9cd541eef284ff8118069b088e015b8d6a Author: Thomas Gleixner Date: Fri Oct 1 05:46:52 2010 +0200 hfsplus: convert tree_lock to mutex tree_lock is used as mutex so make it a mutex. Signed-off-by: Thomas Gleixner Signed-off-by: Christoph Hellwig commit 7fcc99f4f2ddb1c39abc05fbb9b32f05b03c7f8f Author: Christoph Hellwig Date: Fri Oct 1 05:46:31 2010 +0200 hfsplus: add missing extent locking in hfsplus_write_inode Most of the extent handling code already does proper SMP locking, but hfsplus_write_inode was calling into hfsplus_ext_write_extent without taking the extents_lock. Fix this by splitting hfsplus_ext_write_extent into an internal helper that expects the lock, and a public interface that first acquires it. Also add a few locking asserts and document the locking rules in hfsplus_fs.h. Signed-off-by: Christoph Hellwig commit 89755dcace09b44b3aa024bf302d9b19b4c24cad Author: Christoph Hellwig Date: Fri Oct 1 05:45:25 2010 +0200 hfsplus: protect readdir against removals from open_dir_list We already have i_mutex for readdir and the namespace operations that add entries to open_dir_list, the only thing that was missing was the removal in hfsplus_dir_release. Signed-off-by: Christoph Hellwig commit 84adede31267af37141da2b2b04293c5ea8af7ae Author: Christoph Hellwig Date: Fri Oct 1 05:45:20 2010 +0200 hfsplus: use atomic bitops for the superblock flags The flags in the HFS+-specific superlock do get modified during runtime, use atomic bitops to make the modifications SMP safe. Signed-off-by: Christoph Hellwig commit 7ac9fb9c2a50963b699b3548e6f00698c1554dc6 Author: Christoph Hellwig Date: Fri Oct 1 05:45:08 2010 +0200 hfsplus: add per-superblock lock for volume header updates Lock updates to the mutal fields in the volume header, and document the locing in the hfsplus_sb_info structure. Signed-off-by: Christoph Hellwig commit 58a818f532e83f337689358c102ba2048d1b37f5 Author: Christoph Hellwig Date: Fri Oct 1 05:44:02 2010 +0200 hfsplus: remove the rsrc_inodes list We never walk the list - the only reason for it is to make the resource fork inodes appear hashed to the writeback code. Borrow a trick from JFS to do that without needing a list head. Signed-off-by: Christoph Hellwig commit 66e5db05bb6670f314d90aba5998e6a033e4d563 Author: Christoph Hellwig Date: Fri Oct 1 05:43:58 2010 +0200 hfsplus: do not cache and write next_alloc We never look at it, nor change the next_alloc field in the superblock. So don't bother caching it or writing it out in hfsplus_sync_fs. Signed-off-by: Christoph Hellwig commit f17c89bfcc9cccd405098eac3ec1ebfddf03279e Author: Christoph Hellwig Date: Fri Oct 1 05:43:54 2010 +0200 hfsplus: fix error handling in hfsplus_symlink We need to free the inode again on a hfsplus_create_cat failure. Signed-off-by: Christoph Hellwig commit 30d3abbec730a5a9c954a6342271f7a7db155b08 Author: Christoph Hellwig Date: Fri Oct 1 05:43:50 2010 +0200 hfsplus: merge mknod/mkdir/creat Make hfsplus_mkdir and hfsplus_create call hfsplus_mknod instead of duplicating the code. Signed-off-by: Christoph Hellwig commit b5080f77ed2de3c8ac67a63044f8a781c75207d9 Author: Christoph Hellwig Date: Fri Oct 1 05:43:43 2010 +0200 hfsplus: clean up hfsplus_write_inode Add a new hfsplus_system_write_inode for writing the special system inodes and streamline the fastpath write_inode code. Signed-off-by: Christoph Hellwig commit fc4fff82104fa096eada73943fe5249500acd5fa Author: Christoph Hellwig Date: Fri Oct 1 05:43:41 2010 +0200 hfsplus: clean up hfsplus_iget Add a new hfsplus_system_read_inode for reading the special system inodes and streamline the fastpath iget code. Signed-off-by: Christoph Hellwig commit 6af502de224c3742936d54eee7e3690c09822934 Author: Christoph Hellwig Date: Fri Oct 1 05:43:31 2010 +0200 hfsplus: fix HFSPLUS_I calling convention HFSPLUS_I doesn't return a pointer to the hfsplus-specific inode information like all other FOO_I macros, but dereference the pointer in a way that made it look like a direct struct derefence. This only works as long as the HFSPLUS_I macro is used directly and prevents us from keepig a local hfsplus_inode_info pointer. Fix the calling convention and introduce a local hip variable in all functions that use it constantly. Signed-off-by: Christoph Hellwig commit dd73a01a30d729e8fa6f829c4582650e258e36f9 Author: Christoph Hellwig Date: Fri Oct 1 05:42:59 2010 +0200 hfsplus: fix HFSPLUS_SB calling convention HFSPLUS_SB doesn't return a pointer to the hfsplus-specific superblock information like all other FOO_SB macros, but dereference the pointer in a way that made it look like a direct struct derefence. This only works as long as the HFSPLUS_SB macro is used directly and prevents us from keepig a local hfsplus_sb_info pointer. Fix the calling convention and introduce a local sbi variable in all functions that use it constantly. Signed-off-by: Christoph Hellwig commit e753a62156e952fd5a3c64f98454d9aeee3a2546 Author: Christoph Hellwig Date: Fri Oct 1 05:41:53 2010 +0200 hfsplus: remove BKL from hfsplus_put_super Except for ->put_super the BKL is now gone from HFS, which means it's superflous there too as ->put_super is serialized by the VFS. Signed-off-by: Christoph Hellwig commit a9fdbf8c6070d49c482e209df7ee93d9ec41ea27 Author: Christoph Hellwig Date: Fri Oct 1 05:41:50 2010 +0200 hfsplus: use alloc_mutex in hfsplus_sync_fs Use alloc_mutex to protect hfsplus_sync_fs against itself and concurrent allocations, which allows to get rid of lock_super in hfsplus. Note that most fields in the superblock still aren't protected against concurrent allocations, that will follow later. Signed-off-by: Christoph Hellwig commit 40bf48afe92fcea61e7e164f0b2599fba8b88124 Author: Christoph Hellwig Date: Fri Oct 1 05:41:39 2010 +0200 hfsplus: introduce alloc_mutex Use a new per-sb alloc_mutex instead of abusing i_mutex of the alloc_file to protect block allocations. This gets rid of lockdep nesting warnings and prepares for extending the scope of alloc_mutex. Signed-off-by: Christoph Hellwig commit 6333816ade7e04a96ec0a34a8378c455e4f7c4dd Author: Christoph Hellwig Date: Fri Oct 1 05:41:35 2010 +0200 hfsplus: protect setflags using i_mutex Use i_mutex for protecting against concurrent setflags ioctls like in other filesystems and get rid of the BKL in hfsplus_ioctl. Signed-off-by: Christoph Hellwig commit 94744567fef9602c3d8218a1d8f58c04cce354f6 Author: Christoph Hellwig Date: Fri Oct 1 05:41:31 2010 +0200 hfsplus: split hfsplus_ioctl Give each ioctl command a function of it's own. Signed-off-by: Christoph Hellwig commit 249e6353001e407edf5c9a74482ecfca90c8ff33 Author: Christoph Hellwig Date: Fri Oct 1 05:41:27 2010 +0200 hfsplus: fix BKL leak in hfsplus_ioctl Currenly the HFSPLUS_IOC_EXT2_GETFLAGS case never unlocks the BKL, which can lead to easily reproduced lockups when doing multiple GETFLAGS ioctls. Fix this by only taking the BKL for the HFSPLUS_IOC_EXT2_SETFLAGS case as neither HFSPLUS_IOC_EXT2_GETFLAGS not the default error case needs it. Signed-off-by: Christoph Hellwig commit 828bac87bb074f3366621724fdfbe314f98ccc7e Author: Bruce Allan Date: Wed Sep 29 21:39:37 2010 +0000 e1000e: 82579 performance improvements The initial support for 82579 was tuned poorly for performance. Adjust the packet buffer allocation appropriately for both standard and jumbo frames; and for jumbo frames increase the receive descriptor pre-fetch, disable adaptive interrupt moderation and set the DMA latency tolerance. Signed-off-by: Bruce Allan Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 3a3b75860527a11ba5035c6aa576079245d09e2a Author: Jesse Brandeburg Date: Wed Sep 29 21:38:49 2010 +0000 e1000e: use hardware writeback batching Most e1000e parts support batching writebacks. The problem with this is that when some of the TADV or TIDV timers are not set, Tx can sit forever. This is solved in this patch with write flushes using the Flush Partial Descriptors (FPD) bit in TIDV and RDTR. This improves bus utilization and removes partial writes on e1000e, particularly from 82571 parts in S5500 chipset based machines. Only ES2LAN and 82571/2 parts are included in this optimization, to reduce testing load. Signed-off-by: Jesse Brandeburg Tested-by: Emil Tantilov Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 6af3b9ebfea38d0a057fbd7bdcecc61ac5662f02 Author: Emil Tantilov Date: Wed Sep 29 21:35:23 2010 +0000 ixgbe: fix link issues and panic with shared interrupts for 82598 Fix possible panic/hang with shared Legacy interrupts by not enabling interrupts when interface is down. Also fixes an intermittent link by enabling LSC upon exit from ixgbe_intr() This patch adds flags to ixgbe_irq_enable() to allow for some flexibility when enabling interrupts. Signed-off-by: Emil Tantilov Tested-by: Stephen Ko Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit dd28d1a0b5ecc0f5512f658b1a8fd38bc4f4c98c Author: Eric Dumazet Date: Wed Sep 29 11:53:50 2010 +0000 ipv4: __mkroute_output() speedup While doing stress tests with a disabled IP route cache, I found __mkroute_output() was touching three times in_device atomic refcount. Use RCU to touch it once to reduce cache line ping pongs. Before patch time to perform the test real 1m42.009s user 0m12.545s sys 25m0.726s Profile : 16109.00 26.4% ip_route_output_slow vmlinux 7434.00 12.2% dst_destroy vmlinux 3280.00 5.4% fib_rules_lookup vmlinux 3252.00 5.3% fib_semantic_match vmlinux 2622.00 4.3% fib_table_lookup vmlinux 2535.00 4.1% dst_alloc vmlinux 1750.00 2.9% _raw_read_lock vmlinux 1532.00 2.5% rt_set_nexthop vmlinux After patch real 1m36.503s user 0m12.977s sys 23m25.608s 14234.00 22.4% ip_route_output_slow vmlinux 8717.00 13.7% dst_destroy vmlinux 4052.00 6.4% fib_rules_lookup vmlinux 3951.00 6.2% fib_semantic_match vmlinux 3191.00 5.0% dst_alloc vmlinux 1764.00 2.8% fib_table_lookup vmlinux 1692.00 2.7% _raw_read_lock vmlinux 1605.00 2.5% rt_set_nexthop vmlinux Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit e1a5964f0c32a75b17360cfc565d25aaedbff747 Author: Rémi Denis-Courmont Date: Wed Sep 29 22:33:50 2010 +0000 Phonet: restore flow control credits when sending fails This patch restores the below flow control patch submitted by Rémi Denis-Courmont, which accidentaly got lost due to Pipe controller patch on Phonet. commit 1a98214feef2221cd7c24b17cd688a5a9d85b2ea Author: Rémi Denis-Courmont Date: Mon Aug 30 12:57:03 2010 +0000 Phonet: restore flow control credits when sending fails Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller Signed-off-by: Kumar Sanghvi Acked-by: Linus Walleij Signed-off-by: David S. Miller commit 1020660189bb72ae25fd68733ee473d29b8604b5 Author: Philip Rakity Date: Tue Sep 28 04:26:30 2010 +0000 net: pxa168_etc.c recognize additional contributors Signed-off-by: Philip Rakity Signed-off-by: Sachin Sanap Signed-off-by: Mark Brown Signed-off-by: David S. Miller commit d330a080a87831b693a2dad1058cd11bbb6c3736 Author: Mark Brown Date: Thu Sep 30 14:18:48 2010 -0700 ASoC: Relax restrictions on WM8962 BCLK configuration The restrictions on configuring BCLK are overly cautious, other constraints in the system should ensure that reconfiguration is not possible when the device is sufficiently active to be unable to support reclocking. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 33cf45c80f7dc96ff228387add4474b14ff5e1e2 Author: Dimitris Papastamos Date: Wed Sep 29 11:14:56 2010 +0100 ASoC: WM8804: Initial driver The WM8804 is a high performance consumer mode S/PDIF transceiver with support for 1 received channel and 1 transmitted channel. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 6b90b55ccc7c8ad12dd21ae536ab7747313df927 Author: Dimitris Papastamos Date: Wed Sep 29 11:48:19 2010 +0100 ASoC: Remove unneeded use of spi_bus_type No need to explicitly set the bus type, spi_register_driver does that for us. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 19c29f326075e2c66e34d98f2a0cf22901b2d8e9 Author: Michal Marek Date: Thu Sep 30 22:21:12 2010 +0200 kconfig: Fix realloc usage() Reported-by: Stephen Rothwell Signed-off-by: Michal Marek commit a01ebe154c03f6ad58a1ec1bda616032bfe232e0 Author: Michal Marek Date: Thu Sep 30 22:17:48 2010 +0200 kconfig: Propagate const Commit 2e7a091 made struct file->name a const char*, but forgot to constify all users of it. Reported-by: Stephen Rothwell Signed-off-by: Michal Marek commit 8bea7548ee0223175bea5fddcc54af93bd252d9b Author: Naohiro Aota Date: Fri Oct 1 04:23:17 2010 +0900 kconfig: Don't go out from read config loop when you read new symbol commit 8baefd30b5b0101aa07aa75da44a9eee881eed28 of linux-next replaced a `switch()' statement with some `if()' statements, but left `break's in the `switch()' statement untouched. This cause read config loop to exit and so "make oldconfig" is not much usable (see below). > $ make oldconfig > > scripts/kconfig/conf --oldconfig Kconfig > # > # using defaults found in /boot/config-2.6.34-ccs-r1 > # > * > * Restart config... > * > * > * General setup > * > Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [N/y/?] (NEW) (I've already have "CONFIG_EXPERIMENTAL=y" in the old config file. But that's not read here.) This patch should fix this problem. Signed-off-by: Naohiro Aota Signed-off-by: Michal Marek commit a4f28c001d9fbe378852771c0734af4f7798d3c0 Author: Mark Brown Date: Wed Sep 29 13:24:35 2010 -0700 ASoC: Provide microphone bias configuration for WM8962 Add the widget for MICBIAS power control and allow configuration of the microphone bias setup via the platform data for the WM8962. When microphone status signals are brought out to GPIO this should be sufficient to enable microphone detection. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit dee0bb9d0fef4535cc52df84b5165cbe2db383d7 Author: Mark Brown Date: Wed Sep 29 11:46:37 2010 -0700 ASoC: Mark WM8962 Additional Control 4 register as volatile There are some status bits for microphone detection in here. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 46290341cd649c2bfb69e5067c1804c0395c83a1 Author: Bob Peterson Date: Thu Sep 30 10:34:00 2010 -0400 GFS2 fatal: filesystem consistency error on rename This patch fixes a GFS2 problem whereby the first rename after a mount can result in a file system consistency error being flagged improperly and cause the file system to withdraw. The problem is that the rename code tries to run the rgrp list with function gfs2_blk2rgrpd before the rgrp list is guaranteed to be read in from disk. The patch makes the rename function hold the rindex glock (as the gfs2_unlink code does today) which reads in the rgrp list if need be. There were a total of three places in the rename code that improperly referenced the rgrp list without the rindex glock and this patch fixes all three. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse commit 2e727f1787e311087950711451e6eec82c05d81c Author: Grazvydas Ignotas Date: Mon Sep 27 23:18:24 2010 +0300 power_supply: Add driver for TWL4030/TPS65950 BCI charger TWL4030/TPS65950 is a multi-function device with integrated charger, which allows charging from AC or USB. This driver enables the charger and provides several monitoring functions. Tested on OMAP3 Pandora board. Signed-off-by: Grazvydas Ignotas Acked-by: Felipe Balbi Signed-off-by: Anton Vorontsov commit 4cb36310848fd17766aa72afd1f2873f54b4e055 Author: David Henningsson Date: Thu Sep 30 10:12:50 2010 +0200 ALSA: HDA: Add position_fix=3 module option, and refactor related code What was previously known as via_dmapos_patch, and hard-coded to be used for VIA and ATI controllers, is now configurable through a module option. The background is that some VIA controllers seem to prefer via_dmapos_patch to be turned off. Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai commit 0656bb352080982f960bfff2b78602a5071c909f Author: Maurice Dawson Date: Tue Sep 28 17:35:53 2010 +0100 Staging: comedi: fix EXPORT SYMBOL coding style issue in ni_labpc.c This is a patch to the ni_labpc.c file that fixes up, EXPORT SYMBOL(foo) should immediately follow its function/variable warnings, found by the checkpatch.pl tool Signed-off-by: Maurice Dawson Signed-off-by: Greg Kroah-Hartman commit 6f0c5bcdff5eec67a8fd5688e604ea1317fd26c8 Author: Brett Rudley Date: Wed Sep 29 17:11:11 2010 -0700 staging: brcm80211: Fix debug section mismatch warning wl_remove() is now called from places other than the .remove field of struct pci_driver so do not annotate wl_remove() with __devexit. This removes the debug section mismatch warning introduced by the previous nonexistant firmware patch. Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 84b9fac24ba168ebe5531a820d3ed63f2f3a8935 Author: Nohee Ko Date: Wed Sep 29 15:56:49 2010 -0700 staging: brcm80211: fix #ifdef BRCM_FULLMAC mess This patch fixes "#ifdef BRCM_FULLMAC" mess which shows in siutils.c/hndpmu.c. All unnecessary #ifdefs were erased. Also as a part of this work, bcmutils.c was also modified. Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 07610433d980d91a96a9675253a95b1b6c1331ca Author: Henry Ptasinski Date: Wed Sep 29 14:50:49 2010 -0700 staging: brcm80211: Remove unneeded compile flags. This removes compile flags that are completely unnecessary when building the brcmfmac driver. Also sorts the options to make it a bit easier to look at them. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 8727a644289c77f988398f1136380f72a3df3fbb Author: Brett Rudley Date: Wed Sep 29 11:42:47 2010 -0700 staging: brcm80211: cleanup headers Trim down bcmip.h to only whats needed, purge the rest. Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit f61efd4723cc51289ff300e929f77a247a1aca30 Author: Brett Rudley Date: Wed Sep 29 11:41:56 2010 -0700 staging: brcm80211: cleanup headers Purge unused and extraneous header, brcm80211/include/proto/802.11e.h Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 9e56568af114db4f87f5ce556d954388a516d9e0 Author: Brett Rudley Date: Tue Sep 28 17:35:39 2010 -0700 staging: brcm80211: delete unused/obsolete code Delete unused attempt to debug through /proc. Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit 683b505b934b677e5dc61d8363625d3ca67f48bd Author: Brett Rudley Date: Tue Sep 28 11:34:44 2010 -0700 staging: brcm80211: handle missing firmware better Handle non-extistent firmware more gracefully. Signed-off-by: Brett Rudley Signed-off-by: Greg Kroah-Hartman commit a200adb1c73e9ef24c6415b08fd4fd54e3ba1488 Author: Greg Kroah-Hartman Date: Thu Sep 30 04:34:26 2010 -0700 Staging: keucr: fix compiler warning Now that we aren't using the rc_lock variable, delete it to keep gcc happy and not complaining about it. Cc: Al Cho Signed-off-by: Greg Kroah-Hartman commit e10496041bd8ef75772d6adbbd7029ca023dc66e Author: Al Cho Date: Fri Sep 24 18:50:11 2010 +0800 staging: keucr: fix keucr lost disconnect in transport The other part of keucr lost usb disconnect. Unplug SDcard after thread scan,the wrong rule in usb_stor_port_reset, so the driver still fail in stress test. Signed-off-by: Al Cho Signed-off-by: Greg Kroah-Hartman commit 53059aa05988761a738fa8bc082bbf3c5d4462d1 Author: Arthur Benilov Date: Fri Sep 24 19:26:13 2010 +0200 Staging: vme: Assure D16 cycle if required in master_read and master_write From a95892fc2246d6dc45f57b7dd68f32b9b28bd0f7 Mon Sep 17 00:00:00 2001 From: Arthur Benilov Date: Fri, 24 Sep 2010 13:51:07 +0200 Subject: [PATCH] Staging: vme: Assure D16 cycle if required in master_read and master_write memcpy_fromio() and memcpy_toio() functions apply internally to __memcpy() that performs data transfer in 32-bits or 8-bits blocks (at least on x86). This makes impossible to perform D16 cycle with ca91cx42 bridge. Provided modification assures performing data transfer with 32, 16, and 8 bits chunks. Signed-off-by: Arthur Benilov Signed-off-by: Martyn Welch Signed-off-by: Greg Kroah-Hartman commit 0abd242839eac8437521101c9361c095728eded3 Author: Phillip Kurtenbach Date: Sun Sep 26 01:11:09 2010 +0200 staging: iio: whitespace cleanup Fixed whitespace coding style issues. Signed-off-by: Phillip Kurtenbach Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 20caa14c59dfda3f4be75530e08e439ad2e73580 Author: Vasiliy Kulikov Date: Tue Sep 28 21:08:08 2010 +0400 staging: slicoss: use free_netdev(netdev) instead of kfree() Freeing netdev without free_netdev() leads to net, tx leaks. I might lead to dereferencing freed pointer. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) @@ struct net_device* dev; @@ -kfree(dev) +free_netdev(dev) Signed-off-by: Vasiliy Kulikov Acked-by: Denis Kirjanov Signed-off-by: Greg Kroah-Hartman commit c4711c3acb9fbe7f559ead7ff511dba3665a048e Author: Vasiliy Kulikov Date: Tue Sep 28 21:08:01 2010 +0400 staging: octeon: use free_netdev(netdev) instead of kfree() It is not guaranteed that free_netdev() is macro. Freeing netdev without free_netdev() leads to net, tx leaks. I might lead to dereferencing freed pointer. Signed-off-by: Vasiliy Kulikov Acked-by: David Daney Signed-off-by: Greg Kroah-Hartman commit 8db3271cb24d4298e39a249c4dd966b189b05e97 Author: Vasiliy Kulikov Date: Tue Sep 28 21:07:55 2010 +0400 staging: ath6kl: use free_netdev(netdev) instead of kfree() It is not guaranteed that free_netdev() is macro. Freeing netdev without free_netdev() leads to net, tx leaks. I might lead to dereferencing freed pointer. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit 2166abebc55843409327ddf6cc424cafadd33a30 Author: Vasiliy Kulikov Date: Tue Sep 28 21:08:04 2010 +0400 staging: otus: use free_netdev(netdev) instead of kfree() Freeing netdev without free_netdev() leads to net, tx leaks. I might lead to dereferencing freed pointer. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) @@ struct net_device* dev; @@ -kfree(dev) +free_netdev(dev) Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit b37e0c619dc231f292ed199f50c18f5bf508e16d Author: Vasiliy Kulikov Date: Tue Sep 28 21:08:11 2010 +0400 staging: wlags49_h2: use free_netdev(netdev) instead of kfree() Freeing netdev without free_netdev() leads to net, tx leaks. I might lead to dereferencing freed pointer. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) @@ struct net_device* dev; @@ -kfree(dev) +free_netdev(dev) Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit c95aef4161c38775d58cca522e4c4b69eb97548e Author: Vasiliy Kulikov Date: Tue Sep 28 21:49:35 2010 +0400 staging: ft1000: fix skb, netdev, memory leaks ft1000_copy_up_pkt() doesn't free skb on errors. init_ft1000_card() doesn't free netdev with free_netdev() but with kfree(). init_ft1000_card() doesn't check request_region()'s return value and doesn't free region on error. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit 6a04002bea137d2c6359228316d9c827806e475f Author: Simon Que Date: Thu Sep 30 09:36:39 2010 +0100 i915: Added function to initialize VBT settings Added a function that sets the LVDS values to default settings. This will be called by intel_init_bios before checking for the VBT (video BIOS table). The default values are thus loaded regardless of whether a VBT is found. The default settings in each parse function have been moved to the new function. This consolidates all the default settings into one place. The default dither bit value has been changed from 0 to 1. We can assume that display devices will want dithering enabled. Signed-off-by: Simon Que Acked-by: Olof Johansson [ickle: fixup for -next] Signed-off-by: Chris Wilson commit f394940b8d275064f080a59dac636688dae3531a Author: Chris Wilson Date: Wed Sep 29 21:19:54 2010 +0100 drm/i915: Remove redundant deletion of obj->gpu_write_list At that point as the object is no longer in any GPU write domain it must not be on the list, so the list_del() is redundant. Signed-off-by: Chris Wilson commit 5cdf58817433345157644140f2f509f00c06d479 Author: Chris Wilson Date: Mon Sep 27 15:51:07 2010 +0100 drm/i915: Make get/put pages static Signed-off-by: Chris Wilson commit 8f2480fb05991f1a5522dd48332cd9db4f7745c6 Author: Chris Wilson Date: Sun Sep 26 11:44:19 2010 +0100 drm/i915/debugfs: Include list totals Signed-off-by: Chris Wilson commit d21d5975686fbc107f9352006b06e1e92b4c5810 Author: Chris Wilson Date: Sun Sep 26 11:19:33 2010 +0100 drm/i915: Report the deferred free list in debugfs Signed-off-by: Chris Wilson commit 23bc598253fa8e9ede6ad29304ea4ed177e9fc23 Author: Chris Wilson Date: Wed Sep 29 16:10:57 2010 +0100 drm/i915/debug: Convert i915_verify_active() to scan all lists ... and check more regularly. Signed-off-by: Chris Wilson commit b365a85c68161ea5db5476eb8845a91ceb1777ea Author: Dan Carpenter Date: Wed Sep 29 10:41:05 2010 +0200 x86, UV: Use allocated buffer in tlb_uv.c:tunables_read() The original code didn't check that the value returned from snprintf() was less than the size of the buffer. Although it didn't cause a runtime bug in this case, it makes the static checkers complain. Andrew Morton suggested a dynamically sized buffer would be cleaner. Suggested-by: Andrew Morton Signed-off-by: Dan Carpenter Cc: Cliff Wickman Cc: Jack Steiner Cc: Robin Holt LKML-Reference: <20100929083118.GA6376@bicker> Signed-off-by: Ingo Molnar commit c76a544feb63b10883acff9a59cd989c6b438cd3 Merge: 095a0f6 20d9a26 Author: Takashi Iwai Date: Thu Sep 30 08:42:14 2010 +0200 Merge remote branch 'alsa/devel' into topic/misc commit 6d0722a2cec2c23db3b0855ff8bb433175a16b44 Author: Eric Dumazet Date: Wed Sep 29 23:35:10 2010 -0700 ip_gre: comments change HARD_TX_LOCK no longer protects tunnels from dead loops, but xmit_recursion percpu counter. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 52cab756a2da989859322aed0573a851aa88731c Author: Mike McCormack Date: Fri Sep 24 18:40:01 2010 +0900 Staging: rtl8192e: Convert macros to inline functions Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit a922a4b778dc94f697b18aac85425340ca3aeffc Author: Mike McCormack Date: Fri Sep 24 18:39:50 2010 +0900 Staging: rtl8192e: Clean formatting in rtl8192_hard_start_xmit() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 1f1f19ff628ac3936f88465efb07efde0a4e5a5a Author: Mike McCormack Date: Fri Sep 24 18:39:41 2010 +0900 Staging: rtl8192e: Clean up rtl8192_pci_initdescring() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 067ba6cf6c09b14057f6b8999933fd5780d68a25 Author: Mike McCormack Date: Fri Sep 24 18:39:31 2010 +0900 Staging: rtl8192e: Clean formatting in rtl8192_tx() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 4b37700dd1ec4a847f1b3133596a397b4c1459d5 Author: Mike McCormack Date: Fri Sep 24 18:39:18 2010 +0900 Staging: rtl8192e: Remove dead code from rtl8192_tx Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 932f4b3aab6ff45858034e0a6b2645d5d4853f08 Author: Mike McCormack Date: Fri Sep 24 18:39:09 2010 +0900 Staging: rtl8192e: Clean up rtl8192_halt_adapter() Remove dead code, fix whitespace, clean comments Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit b72cb94f4ab5bfcc67233bf3ebc6a2fb358320d2 Author: Mike McCormack Date: Fri Sep 24 18:38:59 2010 +0900 Staging: rtl8192e: Clean up rtl8192_qos_association_resp() Fix whitespace, remove dead code. Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit f8acdc3d5cb2c76391a19f26536f4aff1fccd4e3 Author: Mike McCormack Date: Fri Sep 24 18:38:51 2010 +0900 Staging: rtl8192e: Delete some dead code Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit f72b6a505ba9499c57886a56b730feb571e0a52a Author: Mike McCormack Date: Fri Sep 24 18:38:41 2010 +0900 Staging: rtl8192e: Clean up formatting in MapHwQueueToFirmwareQueue() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit eb40aeac630d2da3735b782baa127af624a3b023 Author: Mike McCormack Date: Fri Sep 24 18:38:23 2010 +0900 Staging: rtl8192e: Clean up rtl8192_net_update() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 65836112fc24bdf009554481b36b6ba0a690b855 Author: Ohad Ben-Cohen Date: Tue Sep 28 20:20:28 2010 +0200 wl12xx: fix non-wl12xx build scenarios Support building wl1271-equipped boards without building the wl1271 driver itself, e.g.: CONFIG_MACH_OMAP_ZOOM3=y CONFIG_WL12XX is not set Reported-by: John W. Linville Signed-off-by: Ohad Ben-Cohen Signed-off-by: Luciano Coelho commit 9812cb12c9d58c5d9aead84eb2e7864c68c80302 Author: Ondrej Zary Date: Tue Sep 28 08:46:17 2010 +0000 de2104x: remove experimental status It should be ready after 8 years...remove the experimental dependency. Signed-off-by: Ondrej Zary Acked-by: Jeff Garzik Signed-off-by: David S. Miller commit 862ea4f263c68680558382c1475ad3032c7fd7d4 Author: Ondrej Zary Date: Tue Sep 28 08:18:55 2010 +0000 de2104x: disable media debug messages by default Print media debug messages only when HW debug is enabled. Signed-off-by: Ondrej Zary Acked-by: Jeff Garzik Signed-off-by: David S. Miller commit ef09aadf7bf1a17f4d4938855238c0fd8749a99f Author: Andrew Gallatin Date: Tue Sep 28 08:13:12 2010 +0000 myri10ge: DCA update (resubmit) This patch contains the following DCA improvements to myri10ge: 1) Finally move myri10ge to use dca3 API 2) Disable PCIe relaxed ordering when enabling DCA on myri10ge. This provides a performance boost on Nehalem based Xeons 3) Make sure to properly initialize NIC's DCA state when it is enabled, rather than giving the NIC a bogus tag (0) and waiting for the first received packet to trigger an update. Not using a real tag can cause hardware exceptions on some motherboards when a CPU socket is empty. 3) Always update the cached CPU when our interrupt affinity changes so as to avoid excessive calls to dca3_get_tag() Signed-off-by: Andrew Gallatin Signed-off-by: Loic Prylli Signed-off-by: David S. Miller commit 8681dc3abd54e845a2effab441921b4c4457c241 Author: Dmitry Kravkov Date: Wed Sep 29 01:05:37 2010 +0000 bnx2x: Moved enabling of MSI to the bnx2x_set_num_queues() Moved enabling of MSI to the bnx2x_set_num_queues() - the same functions that handles the initialization of the MSI-X. From: Vladislav Zolotarov Signed-off-by: Dmitry Kravkov Signed-off-by: Vladislav Zolotarov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 1b9f409293529da4630bfc5d6d8e7d7451a6ccb5 Author: stephen hemminger Date: Tue Sep 28 19:30:14 2010 +0000 tcp: tcp_enter_quickack_mode can be static Function only used in tcp_input.c Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit a64de47c091e4a337fa9763315cb6f2fbf0c583b Author: stephen hemminger Date: Tue Sep 28 17:08:02 2010 +0000 arp: remove unnecessary export of arp_broken_ops arp_broken_ops is only used in arp.c Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 0769c38d26bdb2941385c32ff66a25beeb987f75 Author: David Cross Date: Thu Sep 23 17:24:45 2010 -0700 Staging: west bridge, removal of " " before ";" This patch fixes removes all of the the " ;"'s in the west bridge driver and instead replaces them with ";" only. Although this is a large patch, this is the only thing that it does. I can break it up on a file basis if needed. Signed-off-by: David Cross Signed-off-by: Greg Kroah-Hartman commit 9ebed608bde8e27a1993f1b12eff16e04c8c419e Author: David Cross Date: Thu Sep 23 17:20:00 2010 -0700 Staging: west bridge, cyasgadget fix for usb_gadget_probe_driver This patch fixes the west bridge cyasgadget driver in order to allow for compilation against the linux-next tree. This changes usb_gadget_register_driver to usb_gadget_probe_driver and updates this function based on the new function definition (bind call). Signed-off-by: David Cross Signed-off-by: Greg Kroah-Hartman commit 1966cb225c6f9040ca163802cbd052c393d4448f Author: Dmitry Torokhov Date: Wed Sep 29 18:04:21 2010 -0700 Input: sysrq - add locking to sysrq_filter() Similarly to the keyboard handler, we are called by different input devices and thus need to add spinlock if we want to maintain our state properly. Signed-off-by: Dmitry Torokhov commit 594d63632024636a962be508dfe5ee6bfd309160 Author: Christoph Fritz Date: Wed Sep 29 18:04:21 2010 -0700 Input: i8042 - use unsigned char for 0x90 Keep the file consistent and make clear that we mean 144 instead of -112. Signed-off-by: Christoph Fritz Signed-off-by: Dmitry Torokhov commit d345d97012c3f8fb72c0c9d2ee319ea958b63229 Author: Dmitry Torokhov Date: Wed Sep 29 18:17:16 2010 -0700 Input: fm801-gp - add missing call to pci_disable_device() Signed-off-by: Dmitry Torokhov commit d8daece8f457883e8f2e3065a1e02322ed444ddb Author: Rahul Ruikar Date: Wed Sep 29 18:12:46 2010 -0700 Input: emu10k1-gp - add missing calls to pci_disable_device() pci_disable_device() is called for following 2 cases - error path in emu_probe() - in emu_remove() Signed-off-by: Rahul Ruikar Signed-off-by: Dmitry Torokhov commit 727eeb7dbeac8a7ecd2ad943eb27a5566ab83601 Author: Xing Wei Date: Wed Sep 29 18:25:20 2010 -0700 Input: hanwang - add support for Art Master HD 5012 tablet This adds support for hanwang Art Master HD 5012 electromagnetic tablet. Signed-off-by: Xing Wei Signed-off-by: Dmitry Torokhov commit a06b1414a4d1850244827dc61382f44525151e92 Author: Greg Kroah-Hartman Date: Wed Sep 29 18:07:31 2010 -0700 Staging: brcm80211: remove Module.symvers file from the tree This shouldn't have been in the tree, it's generated by the build, so remove it. Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 95699fb7c34e230061b6c2997bd7590801c0b5fe Author: Andres Salomon Date: Sat Sep 25 19:06:30 2010 -0700 staging: olpc_dcon: drop old VT switch code, watch for CONBLANK event Eons ago, in a galaxy far far away, Jordan committed code to work around the fact that X might have put the DCON to sleep and then crashed (in that galaxy, X crashed a lot; crazy, right?) This code was based on a custom API. These days, we have code which watches for FB unblanks, and should perform the same function.. Therefore, the older code can be dropped. We should probably be watching for CONBLANK events to, so allow those to turn the DCON back on. Dropping the old code is necessary for building the driver. Signed-off-by: Andres Salomon Signed-off-by: Greg Kroah-Hartman commit 58f92cf19ce6cdcc5a5a1d46cb4e42a8bef98ebb Author: Andres Salomon Date: Sat Sep 25 19:05:50 2010 -0700 staging: olpc_dcon: add people to the Cc list Some additional folks requested to be Cc'd for OLPC-DCON changes; add them to the TODO file. Signed-off-by: Andres Salomon Signed-off-by: Greg Kroah-Hartman commit 233aa49b8c1cb9276ca4316c61e324f697a19ce2 Author: Andres Salomon Date: Fri Sep 24 23:50:16 2010 -0700 staging: olpc_dcon: remove outdated backlight comment This comment about killing power to the backlight is ancient, and incorrect (the code that follows actually does the opposite of what the comment says). This was due to hardware changes; the comment was for the original OLPC GX2 boards, but when the OLPC LX boards came out, the code was updated for that hardware. Signed-off-by: Andres Salomon Signed-off-by: Greg Kroah-Hartman commit 8ae48363ee2134141c0c661a57be213fc5d98cee Author: Andres Salomon Date: Fri Sep 24 23:48:34 2010 -0700 staging: olpc_dcon: add TODO file Add and populate a TODO file for the olpc_dcon driver. Signed-off-by: Andres Salomon Signed-off-by: Greg Kroah-Hartman commit 5f0753b8a908dd641144b314d7028af880f376a6 Author: Andres Salomon Date: Fri Sep 24 19:14:38 2010 -0700 staging: olpc_dcon: drop XO-1.5 support for now The vx855 stuff isn't upstream yet; for now, drop support for XO-1.5. This will come back once the 1.5 code is in place (and will be in a form that allows both 1.0 and 1.5 support to be compiled in at the same time), but for now just remove it. This is necessary to get the driver building. Signed-off-by: Andres Salomon Signed-off-by: Greg Kroah-Hartman commit 316604bef6874bbd2a946fb39a7555b068c44c08 Author: Andres Salomon Date: Fri Sep 24 19:14:09 2010 -0700 staging: olpc_dcon: switch back to using olpc_board(0xXX) ...Rather than macros that don't exist. Necessary for building the driver. Signed-off-by: Andres Salomon Signed-off-by: Greg Kroah-Hartman commit eecb3e4e5d9d83ebe1bef222a707eb7618498b67 Author: Andres Salomon Date: Fri Sep 24 19:13:42 2010 -0700 staging: olpc_dcon: add OLPC display controller (DCON) support This adds DCON support for the OLPC XO. The DCON is found in XO-1 and XO-1.5 hardware. The XO-1 has a CS5536 southbridge, while the XO-1.5 has a Via chipset; the GPIO magic that's necessary to communicate with the DCON chip is unfortunately different across both platforms. This driver supports both. This driver is in bad state atm, so I'm requesting its inclusion into staging so it can be cleaned up while staying in the kernel tree. Original driver by Dave Woodhouse, and modified extensively by Jordan Crouse, myself, Deepak Saxena, Paul Fox, Daniel Drake, and probably others that I've missed. Signed-off-by: Andres Salomon Signed-off-by: Greg Kroah-Hartman commit 68a1aed7039e5a94a8e60e23fdf676738c36086a Author: Magnus Damm Date: Fri Sep 24 09:05:38 2010 +0000 sh: boot kernel with SR.BL set Update the SH kernel to keep SR.BL set until the VBR register has been initialized. Useful to allow boot of the kernel even though exceptions are pending. Without this patch there is a window of time when exceptions such as NMI are enabled but no exception handlers are installed. This patch modifies both the zImage loader and the actual kernel to boot with BL=1, but the zImage loader is modfied in such a way that the init_sr value is unchanged to not break the zImage loader provided by kexec. Tested on sh7724 Ecovec and on the SH4AL-DSP core included in sh7372. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 4c62c595c2a23fb36a0b901b550115370047a137 Author: Guennadi Liakhovetski Date: Fri Sep 17 09:25:10 2010 +0000 sh: fix a kfree address in clkdev code kfree() in clkdev_drop() function should actually be called with an address of a struct clk_lookup_alloc object, and not struct clk_lookup, as presently done. This just happens to work, because "struct clk_lookup cl" is the first member in struct clk_lookup_alloc. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit e8689e63d4d2046079f2db9d494ac05c6885ac0c Author: Linus Walleij Date: Tue Sep 28 15:57:37 2010 +0200 dmaengine: driver for the ARM PL080/PL081 PrimeCells v5 This creates a DMAengine driver for the ARM PL080/PL081 PrimeCells based on the implementation earlier submitted by Peter Pearse. This is working like a charm for memcpy and slave DMA to the PL011 PrimeCell on the PB11MPCore. This DMA controller is used in mostly unmodified form in the ARM RealView and Versatile platforms, in the ST-Ericsson Nomadik, and in the ST SPEAr platform. It has been converted to use the header from the Samsung PL080 derivate instead of its own defintions. The Samsungs have a custom driver in their mach-* folders though, atleast we can share the register definitions. Cc: Peter Pearse Cc: Ben Dooks Cc: Kukjin Kim Cc: Alessandro Rubini Acked-by: Viresh Kumar Signed-off-by: Linus Walleij [GFP_KERNEL to GFP_NOWAIT in pl08x_prep_dma_memcpy] Signed-off-by: Dan Williams commit 20d9a26dbbbec32aa7c9da49b979f201bd7104b9 Author: Jaroslav Kysela Date: Thu Sep 30 00:16:50 2010 +0200 ALSA: snd-aloop - fix capture buffer silence In a special case, some old samples are left in the capture ring buffer. Fix it. Signed-off-by: Jaroslav Kysela commit bfa5ae63b823f4ffd3483a05f60a93a4a7b7d680 Author: Eric Dumazet Date: Tue Sep 28 05:58:37 2010 +0000 net: rename netdev rx_queue to ingress_queue There is some confusion with rx_queue name after RPS, and net drivers private rx_queue fields. I suggest to rename "struct net_device"->rx_queue to ingress_queue. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 8560f2266b36adb43238f1f9fd13958dd031901c Author: Eric Dumazet Date: Tue Sep 28 03:23:34 2010 +0000 ip6tnl: percpu stats accounting Maintain per_cpu tx_bytes, tx_packets, rx_bytes, rx_packets. Other seldom used fields are kept in netdev->stats structure, possibly unsafe. This is a preliminary work to support lockless transmit path, and correct RX stats, that are already unsafe. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 153f0943382e9ae0bff7caa110a1a4656088d0d4 Author: Eric Dumazet Date: Tue Sep 28 00:17:17 2010 +0000 ipip: enable lockless xmits IPIP tunnels can benefit from lockless xmits, using NETIF_F_LLTX Bench on a 16 cpus machine (dual E5540 cpus), 16 threads sending 10000000 UDP frames via one ipip tunnel (size:200 bytes per frame) Before patch : real 2m53.321s user 0m10.277s sys 46m0.597s After patch: real 0m32.063s user 0m9.237s sys 8m16.255s Last problem to solve is the contention on dst : 16118.00 28.3% __ip_route_output_key vmlinux 6135.00 10.8% dst_release vmlinux 3220.00 5.6% ip_finish_output vmlinux 2149.00 3.8% ip_route_output_flow vmlinux 1575.00 2.8% ip_append_data vmlinux 1481.00 2.6% ip_push_pending_frames vmlinux 1349.00 2.4% __xfrm_lookup vmlinux 1216.00 2.1% csum_partial_copy_generic vmlinux 1208.00 2.1% udp_sendmsg vmlinux Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit b790e01aee74c23a5d92576177934f13aa51f718 Author: Eric Dumazet Date: Mon Sep 27 23:05:47 2010 +0000 ip_gre: lockless xmit GRE tunnels can benefit from lockless xmits, using NETIF_F_LLTX Note: If tunnels are created with the "oseq" option, LLTX is not enabled : Even using an atomic_t o_seq, we would increase chance for packets being out of order at receiver. Bench on a 16 cpus machine (dual E5540 cpus), 16 threads sending 10000000 UDP frames via one gre tunnel (size:200 bytes per frame) Before patch : real 3m0.094s user 0m9.365s sys 47m50.103s After patch: real 0m29.756s user 0m11.097s sys 7m33.012s Last problem to solve is the contention on dst : 38660.00 21.4% __ip_route_output_key vmlinux 20786.00 11.5% dst_release vmlinux 14191.00 7.8% __xfrm_lookup vmlinux 12410.00 6.9% ip_finish_output vmlinux 4540.00 2.5% ip_push_pending_frames vmlinux 4427.00 2.4% ip_append_data vmlinux 4265.00 2.4% __alloc_skb vmlinux 4140.00 2.3% __ip_local_out vmlinux 3991.00 2.2% dev_queue_xmit vmlinux Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 8df40d1033d64597dcf1efd4f7547e817f7a953b Author: Eric Dumazet Date: Tue Sep 28 02:53:41 2010 +0000 sit: enable lockless xmits SIT tunnels can benefit from lockless xmits, using NETIF_F_LLTX Bench on a 16 cpus machine (dual E5540 cpus), 16 threads sending 10000000 UDP frames via one sit tunnel (size:220 bytes per frame) Before patch : real 3m15.399s user 0m9.185s sys 51m55.403s 75029.00 87.5% _raw_spin_lock vmlinux 1090.00 1.3% dst_release vmlinux 902.00 1.1% dev_queue_xmit vmlinux 627.00 0.7% sock_wfree vmlinux 613.00 0.7% ip6_push_pending_frames ipv6.ko 505.00 0.6% __ip_route_output_key vmlinux After patch: real 1m1.387s user 0m12.489s sys 15m58.868s 28239.00 23.3% dst_release vmlinux 13570.00 11.2% ip6_push_pending_frames ipv6.ko 13118.00 10.8% ip6_append_data ipv6.ko 7995.00 6.6% __ip_route_output_key vmlinux 7924.00 6.5% sk_dst_check vmlinux 5015.00 4.1% udpv6_sendmsg ipv6.ko 3594.00 3.0% sock_alloc_send_pskb vmlinux 3135.00 2.6% sock_wfree vmlinux 3055.00 2.5% ip6_sk_dst_lookup ipv6.ko 2473.00 2.0% ip_finish_output vmlinux Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit dd4080ee575db1a2d0f40538aed5aa7662a06c54 Author: Eric Dumazet Date: Tue Sep 28 02:17:58 2010 +0000 sit: fix percpu stats accounting commit 15fc1f7056ebd (sit: percpu stats accounting) forgot the fallback tunnel case (sit0), and can crash pretty fast. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit fada5636fe41fd1423fe4e6af7b9f609378acde6 Author: Eric Dumazet Date: Mon Sep 27 23:56:46 2010 +0000 ipip: fix percpu stats accounting commit 3c97af99a5aa1 (ipip: percpu stats accounting) forgot the fallback tunnel case (tunl0), and can crash pretty fast. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 6d81f41c58c69ddde497e9e640ba5805aa26e78c Author: Eric Dumazet Date: Mon Sep 27 20:50:33 2010 +0000 dummy: percpu stats and lockless xmit Converts dummy network device driver to : - percpu stats - 64bit stats - lockless xmit (NETIF_F_LLTX) - performance features added (NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_TSO | NETIF_F_NO_CSUM | NETIF_F_HIGHDMA) Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 745e20f1b626b1be4b100af5d4bf7b3439392f8f Author: Eric Dumazet Date: Wed Sep 29 13:23:09 2010 -0700 net: add a recursion limit in xmit path As tunnel devices are going to be lockless, we need to make sure a misconfigured machine wont enter an infinite loop. Add a percpu variable, and limit to three the number of stacked xmits. Reported-by: Jesse Gross Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 257f23d87f9309fee41d468575404b9371bf4c7d Author: Govindraj.R Date: Mon Sep 27 20:21:05 2010 +0530 OMAP3: SERIAL: Initialize all omap-uarts for zoom boards Initialize all omap-uarts for zoom boards. Now zoom_peripheral_init will initialise all uarts for 3630. 3630sdp_board_init call zoom_peripheral_init so we can now remove serial_init from 3630sdp board init as zoom_peripheral_init now will do that the same. Signed-off-by: Anand Gadiyar Signed-off-by: Govindraj.R Signed-off-by: Kevin Hilman commit 12a75da296d43784c960a2beaca002a08d06cf15 Author: Govindraj.R Date: Mon Sep 27 20:20:57 2010 +0530 OMAP: SERIAL: Enable omap-serial driver in Kconfig Enable omap-serial driver in /mach-omap2/Kconfig and move 8250 driver selection for zoom boards. With omap-serial driver addition all omap-uarts can be handled with omap-serial driver. With addition of omap-serial driver console parameter needs be changed in bootargs from ttyS* should be replaced with ttyO* [O --> OMAP not ZERO] For example: ttyS0[UART1 on 3430SDP] changes to ttyO0. But with some boards that do not use omap-uart as console uart. we need to handle them with 8250 driver. Ex: ZOOM2/3. For zoom2/3 board we need to use 8250 serial driver and console parameter will remain ttyS0 which basically uses a Quad uart placed on the debug board connected through a gpio line. Signed-off-by: Govindraj.R Signed-off-by: Kevin Hilman commit b612633b5928077441b979471869753bfa93d41a Author: Govindraj.R Date: Mon Sep 27 20:20:49 2010 +0530 serial: Add OMAP high-speed UART driver This patch adds driver support for OMAP2/3/4 high speed UART. The driver is made separate from 8250 driver as we cannot over load 8250 driver with omap platform specific configuration for features like DMA, it makes easier to implement features like DMA and hardware flow control and software flow control configuration with this driver as required for the omap-platform. This patch involves only the core driver and its dependent. Cc: Tony Lindgren Signed-off-by: Govindraj.R Acked-by: Alan Cox Acked-by: Greg Kroah-Hartman Signed-off-by: Kevin Hilman commit 52663aea10c3ce175b636ff3ed5a6d78fdbeec02 Author: Govindraj.R Date: Mon Sep 27 20:20:41 2010 +0530 OMAP3: serial: Fix uart4 handling for 3630 This patch makes the following: - Adds missing wakeup padding register handling. - Fixes a hardcode to use PER module ONLY on UART3. Signed-off-by: Sergio Aguirre Signed-off-by: Govindraj.R Signed-off-by: Kevin Hilman commit cd4f1faee029593fc10039aeb592dc2986d55f61 Author: Govindraj.R Date: Mon Sep 27 20:20:32 2010 +0530 OMAP3: PM: Add prepare idle and resume idle call for uart4 Add prepare idle and resume idle call for uart4 used by 3630. Signed-off-by: Govindraj.R Signed-off-by: Kevin Hilman commit e586368904b737b4888927e4c869a25966e5cd05 Author: Govindraj.R Date: Mon Sep 27 20:20:25 2010 +0530 OMAP3: PRCM: Consider UART4 for 3630 chip in prcm_setup_regs To standarize among other uarts (1 to 3), we shall now: - Enable uart4 autodile bit. - Enable uart4 wakeup in PER. - Allow uart4 to wakeup the MPU. Signed-off-by: Sergio Aguirre Signed-off-by: Govindraj.R Acked-by: Paul Walmsley Signed-off-by: Kevin Hilman commit a0edcdbe5295b7912e92ff88dd8f46646710735b Author: Govindraj.R Date: Mon Sep 27 20:20:17 2010 +0530 OMAP clock: Add uart4_ick/fck definitions for 3630 This is only valid for omap 36xx family of chips. Signed-off-by: Sergio Aguirre Signed-off-by: Govindraj.R Acked-by: Paul Walmsley Signed-off-by: Kevin Hilman commit 8da37d9dc52befa8b55bdc20eef2a4aaf20e0c8d Author: Kevin Hilman Date: Mon Sep 27 20:20:06 2010 +0530 OMAP: UART: use non-locking versions of hwmod enable/idle functions Since the UART enable/idle is done during the idle path (with interrupts disabled), use the non-locking versions of the hwmod enable/idle functions. Signed-off-by: Govindraj.R Signed-off-by: Kevin Hilman commit 3244fcd227526a2f21018a280c7af0a9219c6ff4 Author: Kevin Hilman Date: Mon Sep 27 20:19:53 2010 +0530 OMAP: UART: don't do automatic bus-level suspend/resume Since the omap_device for UART is currently managed inside the idle path itself, don't let the bus-level code suspend/resume the UART. To prevent this, pm_runtime_get() is used when preparing for suspend and pm_runtime_put() is used when finished with suspend. Signed-off-by: Govindraj.R Signed-off-by: Kevin Hilman commit c04ede382a64020f19e9aa23a85493a09af945d3 Author: Govindraj.R Date: Mon Sep 27 20:19:46 2010 +0530 OMAP2: UART: remove set_uart_globals Remove set_uart_globals function as this will not be needed as physical address for uarts will be taken from hwmod data file. Signed-off-by: Govindraj.R Signed-off-by: Kevin Hilman commit 6f251e9db1093c187addc309b5f2f7fe3efd2995 Author: Kevin Hilman Date: Mon Sep 27 20:19:38 2010 +0530 OMAP: UART: omap_device conversions, remove implicit 8520 assumptions Major rework of OMAP UART init for omap_device conversion as well as use with either 8250 driver or new omap-serial driver. In preparation for a new omap-serial driver, remove 8250 assumptions and dependencies from the serial core. Convert UART core and PM support to use omap_device layer. Also add support for both console on 8250 or omap-serial driver. omap_device conversion: - Convert clock API calls to omap_device calls - Remove all static platform_data setup and configuration. This is all done by the omap_device build phase. Signed-off-by: Govindraj.R Signed-off-by: Kevin Hilman commit 046465b76a41a32a8d56e691b167fb9ba7729970 Author: Kevin Hilman Date: Mon Sep 27 20:19:30 2010 +0530 OMAP2/3: UART: add omap_hwmod data for UARTs 1-4 This patch adds omap_hwmod data for UARTs on OMAP2 and OMAP3 platforms. UART4 support for 3630 and OMAP2 hwmod data added by Govindraj R. Signed-off-by: Govindraj.R Signed-off-by: Kevin Hilman commit db12ba53fe8b2d79c06bfe00589b3e98fd50cb4c Author: Benoit Cousson Date: Mon Sep 27 20:19:19 2010 +0530 OMAP4: UART: Add uart1-4 hwmods data for omap4 Add uart1-4 hwmod data into omap4_hwmod data file. Signed-off-by: Benoit Cousson Signed-off-by: Govindraj.R Signed-off-by: Kevin Hilman commit 7ec5ad0f3c1e28b693185c35f768953c5db32291 Author: Varadarajan, Charulatha Date: Thu Sep 23 20:02:43 2010 +0530 OMAP: WDT: Use PM runtime APIs instead of clk FW APIs Call runtime pm APIs pm_runtime_put_sync() and pm_runtime_get_sync() for enabling/disabling the clocks, sysconfig settings instead of using clock FW APIs. Signed-off-by: Charulatha V Acked-by: Cousson, Benoit Acked-by: Wim Van Sebroeck Signed-off-by: Kevin Hilman commit f2ce62312650211f6cf665cd6dc519c334c4071e Author: Varadarajan, Charulatha Date: Thu Sep 23 20:02:42 2010 +0530 OMAP: WDT: Split OMAP1 and OMAP2PLUS device registration This patch splits omap_init_wdt() into separate omap_init_wdt() functions under mach-omap1 and mach-omap2 and set them up with subsys_initcall. Also it uses omap_device_build() API instead of platform_device_register() for watchdog timer device registration for OMAP2plus chips. For OMAP2plus chips, the device specific data defined in centralized hwmod database will be used. Signed-off-by: Charulatha V Acked-by: Cousson, Benoit Signed-off-by: Kevin Hilman commit 92b18d1cf1335a468d4014c4fdb1eb720e77526f Author: Benoit Cousson Date: Thu Sep 23 20:02:41 2010 +0530 OMAP4: hwmod data: Add watchdog timer Add watchdog timer hwmod data for OMAP4 chip Note: wd_timer3 in enabled in the hwmod list but it is not yet supported by the watchdog driver. Signed-off-by: Benoit Cousson Signed-off-by: Charulatha V Signed-off-by: Kevin Hilman commit 165e2161525d66a76ed2b870dedabb4c1c4714b0 Author: Varadarajan, Charulatha Date: Thu Sep 23 20:02:40 2010 +0530 OMAP2430: hwmod data: Add watchdog timer Add watchdog timer hwmod data for OMAP2430 chip Signed-off-by: Charulatha V Acked-by: Cousson, Benoit Signed-off-by: Kevin Hilman commit a714b9cfabcc385540a493733bd4958d37e982d3 Author: Varadarajan, Charulatha Date: Thu Sep 23 20:02:39 2010 +0530 OMAP2420: hwmod data: Add watchdog timer Add watchdog timer hwmod data for OMAP2420 chip Signed-off-by: Charulatha V Acked-by: Cousson, Benoit Signed-off-by: Kevin Hilman commit 6b667f880ff5b273f9c1ec1076ffc2c9baf97a96 Author: Varadarajan, Charulatha Date: Thu Sep 23 20:02:38 2010 +0530 OMAP3: hwmod data: Add watchdog timer Add watchdog timer hwmod data for OMAP3 chip Signed-off-by: Charulatha V Acked-by: Cousson, Benoit Signed-off-by: Kevin Hilman commit aa510da5bfe1dfe263215fd0e05dac96e738a782 Author: Trond Myklebust Date: Wed Sep 29 15:11:56 2010 -0400 NFS: We must use list_for_each_entry_safe in nfs_access_cache_shrinker We may end up removing the current entry from nfs_access_lru_list. Signed-off-by: Trond Myklebust commit f3983c2133e9bea9c8b4f690737d15e3e9b02491 Author: Jeff Layton Date: Wed Sep 22 16:17:40 2010 -0700 cifs: fix handling of signing with writepages (try #6) Get a reference to the file early so we can eventually base the decision about signing on the correct tcon. If that doesn't work for some reason, then fall back to generic_writepages. That's just as likely to fail, but it simplifies the error handling. In truth, I'm not sure how that could occur anyway, so maybe a NULL open_file here ought to be a BUG()? After that, we drop the reference to the open_file and then we re-get one prior to each WriteAndX call. This helps ensure that the filehandle isn't held open any longer than necessary and that open files are reclaimed prior to each write call. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit f7a40689fd1e963cb1006349e050c07584895db5 Author: Jeff Layton Date: Mon Sep 20 16:01:36 2010 -0700 cifs: have cifs_new_fileinfo take a tcon arg To minimize calls to cifs_sb_tcon and to allow for a clear error path if a tcon can't be acquired. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 0d424ad0a4b8c08e45928bccfa5b4b240097b01b Author: Jeff Layton Date: Mon Sep 20 16:01:35 2010 -0700 cifs: add cifs_sb_master_tcon and convert some callers to use it At mount time, we'll always need to create a tcon that will serve as a template for others that are associated with the mount. This tcon is known as the "master" tcon. In some cases, we'll need to use that tcon regardless of who's accessing the mount. Add an accessor function for the master tcon and go ahead and switch the appropriate places to use it. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit f6acb9d0596889a774e142ed76cb05b90d9763d2 Author: Jeff Layton Date: Mon Sep 20 16:01:34 2010 -0700 cifs: temporarily rename cifs_sb->tcon to ptcon to catch stragglers Signed-off-by: Jeff Layton Signed-off-by: Steve French commit a6e8a8455c94565c53e1a1756d2ab9d9e3a902b8 Author: Jeff Layton Date: Mon Sep 20 16:01:33 2010 -0700 cifs: add function to get a tcon from cifs_sb When we convert cifs to do multiple sessions per mount, we'll need more than one tcon per superblock. At that point "cifs_sb->tcon" will make no sense. Add a new accessor function that gets a tcon given a cifs_sb. For now, it just returns cifs_sb->tcon. Later it'll do more. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit ba00ba64cf0895e4c2ac507e56306363dc125a90 Author: Jeff Layton Date: Mon Sep 20 16:01:31 2010 -0700 cifs: make various routines use the cifsFileInfo->tcon pointer ...where it's available and appropriate. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit d3bf5221d3274b5015ad18a55060b074cca8d2f0 Author: Steve French Date: Wed Sep 22 19:15:36 2010 +0000 [CIFS] Fix ordering of cleanup on module init failure If registering fs cache failed, we weren't cleaning up proc. Acked-by: Jeff Layton CC: Suresh Jayaraman Signed-off-by: Steve French commit 17edec6f563ba6b5630329fbe9473557bb475c3d Author: Steve French Date: Wed Sep 22 02:01:59 2010 +0000 [CIFS] Remove obsolete header We decided not to use connector to do the upcalls so cn_cifs.h is obsolete - remove it. Signed-off-by: Steve French commit ab9db8b737210bec365593a04dd1c534220bb311 Author: Jeff Layton Date: Tue Sep 21 08:14:46 2010 -0700 cifs: allow matching of tcp sessions in CifsNew state With commit 7332f2a6217ee6925f83ef0e725013067ed316ba, cifsd will no longer exit when the socket abends and the tcpStatus is CifsNew. With that change, there's no reason to avoid matching an existing session in this state. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 5fe97cfddc426f3145e8673b68faab7e54462173 Author: Jeff Layton Date: Mon Sep 20 16:01:30 2010 -0700 cifs: add tcon field to cifsFileInfo struct Eventually, we'll have more than one tcon per superblock. At that point, we'll need to know which one is associated with a particular fid. For now, this is just set from the cifs_sb->tcon pointer, but eventually the caller of cifs_new_fileinfo will pass a tcon pointer in. Signed-off-by: Jeff Layton Signed-off-by: Steve French commit 736a33205969c16f81d747db14ff4c0f133609a6 Author: Stefan Metzmacher Date: Fri Jul 30 14:56:00 2010 +0200 cifs: add "mfsymlinks" mount option This is the start for an implementation of "Minshall+French Symlinks" (see http://wiki.samba.org/index.php/UNIX_Extensions#Minshall.2BFrench_symlinks). Signed-off-by: Stefan Metzmacher Signed-off-by: Steve French commit 1b12b9c15b4371d83b729b8fc18c670e78a1479b Author: Stefan Metzmacher Date: Thu Aug 5 21:19:56 2010 +0200 cifs: use Minshall+French symlink functions If configured, Minshall+French Symlinks are used against all servers. If the server supports UNIX Extensions, we still create Minshall+French Symlinks on write, but on read we fallback to UNIX Extension symlinks. Signed-off-by: Stefan Metzmacher Signed-off-by: Steve French commit 8713d01db8bf948eb9632726f529ec4f821bb025 Author: Stefan Metzmacher Date: Thu Aug 5 21:15:22 2010 +0200 cifs: implement CIFSCreateMFSymLink() Signed-off-by: Stefan Metzmacher Signed-off-by: Steve French commit 18bddd1059c5d1e17ad6e49c514c95484aa80a33 Author: Stefan Metzmacher Date: Tue Aug 3 11:24:22 2010 +0200 cifs: implement CIFSFormatMFSymlink() Signed-off-by: Stefan Metzmacher Signed-off-by: Steve French commit 0fd43ae4758b2841656afda4439b80e8a3603af2 Author: Stefan Metzmacher Date: Thu Aug 5 21:13:44 2010 +0200 cifs: implement CIFSQueryMFSymLink() Signed-off-by: Stefan Metzmacher Signed-off-by: Steve French commit 8bfb50a882ccd9804929876470f74edcb23d2326 Author: Stefan Metzmacher Date: Sat Jul 31 09:15:10 2010 +0200 cifs: implement CIFSCouldBeMFSymlink() and CIFSCheckMFSymlink() Signed-off-by: Stefan Metzmacher Signed-off-by: Steve French commit c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 Author: Stefan Metzmacher Date: Sat Jul 31 09:14:16 2010 +0200 cifs: implement CIFSParseMFSymlink() Signed-off-by: Stefan Metzmacher Signed-off-by: Steve French commit 3eb9a8893a76cf1cda3b41c3212eb2cfe83eae0e Author: Ben Greear Date: Wed Sep 1 17:06:02 2010 -0700 cifs: Allow binding to local IP address. When using multi-homed machines, it's nice to be able to specify the local IP to use for outbound connections. This patch gives cifs the ability to bind to a particular IP address. Usage: mount -t cifs -o srcaddr=192.168.1.50,user=foo, ... Usage: mount -t cifs -o srcaddr=2002::100:1,user=foo, ... Acked-by: Jeff Layton Acked-by: Dr. David Holder Signed-off-by: Ben Greear Signed-off-by: Steve French commit 2b149f11978b44199954710d32c0eecf6c9efd9c Author: Shirish Pargaonkar Date: Sat Sep 18 22:02:18 2010 -0500 cifs NTLMv2/NTLMSSP ntlmv2 within ntlmssp autentication code Attribue Value (AV) pairs or Target Info (TI) pairs are part of ntlmv2 authentication. Structure ntlmv2_resp had only definition for two av pairs. So removed it, and now allocation of av pairs is dynamic. For servers like Windows 7/2008, av pairs sent by server in challege packet (type 2 in the ntlmssp exchange/negotiation) can vary. Server sends them during ntlmssp negotiation. So when ntlmssp is used as an authentication mechanism, type 2 challenge packet from server has this information. Pluck it and use the entire blob for authenticaiton purpose. If user has not specified, extract (netbios) domain name from the av pairs which is used to calculate ntlmv2 hash. Servers like Windows 7 are particular about the AV pair blob. Servers like Windows 2003, are not very strict about the contents of av pair blob used during ntlmv2 authentication. So when security mechanism such as ntlmv2 is used (not ntlmv2 in ntlmssp), there is no negotiation and so genereate a minimal blob that gets used in ntlmv2 authentication as well as gets sent. Fields tilen and tilbob are session specific. AV pair values are defined. To calculate ntlmv2 response we need ti/av pair blob. For sec mech like ntlmssp, the blob is plucked from type 2 response from the server. From this blob, netbios name of the domain is retrieved, if user has not already provided, to be included in the Target String as part of ntlmv2 hash calculations. For sec mech like ntlmv2, create a minimal, two av pair blob. The allocated blob is freed in case of error. In case there is no error, this blob is used in calculating ntlmv2 response (in CalcNTLMv2_response) and is also copied on the response to the server, and then freed. The type 3 ntlmssp response is prepared on a buffer, 5 * sizeof of struct _AUTHENTICATE_MESSAGE, an empirical value large enough to hold _AUTHENTICATE_MESSAGE plus a blob with max possible 10 values as part of ntlmv2 response and lmv2 keys and domain, user, workstation names etc. Also, kerberos gets selected as a default mechanism if server supports it, over the other security mechanisms. Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French commit 5f98ca9afb9c004f8948c0d40920503de447918a Author: Shirish Pargaonkar Date: Sat Sep 18 22:01:58 2010 -0500 cifs NTLMv2/NTLMSSP Change variable name mac_key to session key to reflect the key it holds Change name of variable mac_key to session key. The reason mac_key was changed to session key is, this structure does not hold message authentication code, it holds the session key (for ntlmv2, ntlmv1 etc.). mac is generated as a signature in cifs_calc* functions. Signed-off-by: Shirish Pargaonkar Signed-off-by: Steve French commit aa91c7e4ab9b0842b7d7a7cbf8cca18b20df89b5 Author: Suresh Jayaraman Date: Fri Sep 17 18:56:39 2010 +0530 cifs: fix broken oplock handling cifs_new_fileinfo() does not use the 'oplock' value from the callers. Instead, it sets it to REQ_OPLOCK which seems wrong. We should be using the oplock value obtained from the Server to set the inode's clientCanCacheAll or clientCanCacheRead flags. Fix this by passing oplock from the callers to cifs_new_fileinfo(). This change dates back to commit a6ce4932 (2.6.30-rc3). So, all the affected versions will need this fix. Please Cc stable once reviewed and accepted. Cc: Stable Reviewed-by: Jeff Layton Signed-off-by: Suresh Jayaraman Signed-off-by: Steve French commit a347ecb209b58a1b37f20d8299ab552f7d3ee8c3 Author: Suresh Jayaraman Date: Fri Sep 17 19:43:10 2010 +0530 cifs: use type __u32 instead of int for the oplock parameter ... and avoid implicit casting from a signed type. Also, pass oplock by value instead by reference as we don't intend to change the value in cifs_open_inode_helper(). Thanks to Jeff Layton for spotting this. Reviewed-by: Jeff Layton Signed-off-by: Suresh Jayaraman Signed-off-by: Steve French commit a00dd6c03dd97a777c291a8af8682be4b5fadf8d Author: Jeff Layton Date: Tue Sep 28 09:14:01 2010 -0400 NFS: don't use FLUSH_SYNC on WB_SYNC_NONE COMMIT calls (try #2) WB_SYNC_NONE is supposed to mean "don't wait on anything". That should also include not waiting for COMMIT calls to complete. WB_SYNC_NONE is also implied when wbc->nonblocking and wbc->for_background are set, so we can replace those checks in nfs_commit_unstable_pages with a check for WB_SYNC_NONE. Signed-off-by: Jeff Layton Reviewed-by: Wu Fengguang Signed-off-by: Trond Myklebust commit 5c78f58e2d5cef65c255a556184f1f43c8d84c84 Author: Trond Myklebust Date: Mon Sep 27 15:51:20 2010 -0400 NFS: Really fix put_nfs_open_context() In nfs_open_revalidate(), if the open_context() call returns an inode that is not the same as dentry->d_inode, then we will call put_nfs_open_context() with a valid dentry->d_inode, but without the context being part of the nfsi->open_files list. In this case too, we want to just skip the list removal, but we do want to call the ->close_context() callback in order to close the NFSv4 state. Signed-off-by: Trond Myklebust Acked-by: Jeff Layton commit 7ad0e386d46e9edff64705ab25337ad9130baf63 Author: Kevin Hilman Date: Tue Sep 28 19:07:28 2010 +0000 OMAP2+: defconfig: disable CPUfreq Disable CPUfreq since 1) is not yet supported in mainline, and 2) the current driver fails to suspend properly Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren commit ecfdd76d2ffe76687385294619f6576aa4338c4e Author: Kevin Hilman Date: Tue Sep 28 19:07:29 2010 +0000 OMAP2+: defconfig: modularize bluetooth, audio and WLAN In working towards a smaller default kernel, only devices used for early boot should be built in. Toward that end, build the following as modules by default: - bluetooth - audio: ALSA, ASoC - WLAN Uncompressed kernel size comparison: Before: text data bss dec hex filename 6557576 465088 5616024 12638688 c0d9e0 vmlinux After: text data bss dec hex filename 5616572 436448 5610800 11663820 b1f9cc vmlinux Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren commit c135e84afb6bcec9cb8ef0492fa4867efbfaad91 Author: Stephen Rothwell Date: Wed Sep 29 14:16:57 2010 +1000 sunrpc: fix up rpcauth_remove_module section mismatch On Wed, 29 Sep 2010 14:02:38 +1000 Stephen Rothwell wrote: > > After merging the final tree, today's linux-next build (powerpc > ppc44x_defconfig) produced tis warning: > > WARNING: net/sunrpc/sunrpc.o(.init.text+0x110): Section mismatch in reference from the function init_sunrpc() to the function .exit.text:rpcauth_remove_module() > The function __init init_sunrpc() references > a function __exit rpcauth_remove_module(). > This is often seen when error handling in the init function > uses functionality in the exit path. > The fix is often to remove the __exit annotation of > rpcauth_remove_module() so it may be used outside an exit section. > > Probably caused by commit 2f72c9b73730c335381b13e2bd221abe1acea394 > ("sunrpc: The per-net skeleton"). This actually causes a build failure on a sparc32 defconfig build: `rpcauth_remove_module' referenced in section `.init.text' of net/built-in.o: defined in discarded section `.exit.text' of net/built-in.o I applied the following patch for today: Fixes: `rpcauth_remove_module' referenced in section `.init.text' of net/built-in.o: defined in discarded section `.exit.text' of net/built-in.o Signed-off-by: Stephen Rothwell Acked-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 1c4a77bf54a61dde135740a563b6ec03382604e8 Author: Dominik Brodowski Date: Sat Sep 18 23:21:09 2010 +0200 pcmcia: add a few debug statements Signed-off-by: Dominik Brodowski commit 2262054e74b4b26ed56a8535c1259f6c6c2862a4 Author: Dominik Brodowski Date: Sun Aug 15 08:38:38 2010 +0200 pcmcia: remove obsolete and wrong comments What's worse than no comment? A wrong comment. Several PCMCIA device drivers contained the same comments, which were based on how the PCMCIA subsystem worked in the old days of 2.4., and which were originally part of a "dummy_cs" driver. These comments no longer matched at all what is happening now, and therefore should be removed. Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 06b3a1d12f41b592972643f8b84015d6c03dc576 Author: Dominik Brodowski Date: Sun Aug 8 12:27:40 2010 +0200 pcmcia: avoid messages on module (un)loading printk() statements on module load or unload are frowned upon. Also, add a few __init or __exit declarations. Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 2e9b981a7c63ee8278df6823f8389d69dad1a499 Author: Dominik Brodowski Date: Sun Aug 8 11:36:26 2010 +0200 pcmcia: move driver name to struct pcmcia_driver Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 1cc745d1cdca8086b472a06671f0830fc0e98861 Author: Dominik Brodowski Date: Sun Aug 1 11:21:14 2010 +0200 pcmcia: remove the "Finally, report what we've done" message Remove this unnecessary message -- this info is either available in sysfs or by enabling dynamic debug from the PCMCIA core. CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-scsi@vger.kernel.org CC: linux-usb@vger.kernel.org Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 00990e7ce0b0e596fe41d9c64d6933ea70084003 Author: Dominik Brodowski Date: Fri Jul 30 13:13:46 2010 +0200 pcmcia: use autoconfiguration feature for ioports and iomem When CONF_AUTO_SET_IO or CONF_AUTO_SET_IOMEM are set, the corresponding fields in struct pcmcia_device *p_dev->resource[0,1,2] are set accordinly. Drivers wishing to override certain settings may do so in the callback function, but they no longer need to parse the CIS entries stored in cistpl_cftable_entry_t themselves. CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-ide@vger.kernel.org CC: linux-usb@vger.kernel.org CC: laforge@gnumonks.org CC: linux-mtd@lists.infradead.org CC: linux-bluetooth@vger.kernel.org CC: alsa-devel@alsa-project.org CC: linux-serial@vger.kernel.org CC: Jiri Kosina CC: linux-scsi@vger.kernel.org Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 440eed43e2a95bb842488755683716814da10f2b Author: Dominik Brodowski Date: Fri Jul 30 09:51:52 2010 +0200 pcmcia: introduce autoconfiguration feature Introduce an autoconfiguration feature to set certain values in pcmcia_loop_config(), instead of copying the same code over and over in each PCMCIA driver. At first, introduce the following options: CONF_AUTO_CHECK_VCC check or matching Vcc entry CONF_AUTO_SET_VPP set Vpp CONF_AUTO_AUDIO enable the speaker line CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-ide@vger.kernel.org CC: linux-usb@vger.kernel.org CC: laforge@gnumonks.org CC: linux-mtd@lists.infradead.org CC: alsa-devel@alsa-project.org CC: linux-serial@vger.kernel.org CC: Jiri Kosina CC: linux-scsi@vger.kernel.org Acked-by: Gustavo F. Padovan (for drivers/bluetooth) Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 9485ee14e143c7076e88deea1e87ca3eb0b2f94e Author: Dominik Brodowski Date: Sat Jul 31 07:09:32 2010 +0200 pcmcia: Documentation update Fill in missing descriptions and update some others for functions in pcmcia_resource.c. Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 1ac71e5a35eebee60cdcf15b3980bd94498f037b Author: Dominik Brodowski Date: Thu Jul 29 19:27:09 2010 +0200 pcmcia: convert pcmcia_request_configuration to pcmcia_enable_device pcmcia_enable_device() now replaces pcmcia_request_configuration(). Instead of config_req_t, all necessary flags are either passed as a parameter to pcmcia_enable_device(), or (in rare circumstances) set in struct pcmcia_device -> flags. With the last remaining user of include/pcmcia/cs.h gone, remove all references. CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-ide@vger.kernel.org CC: linux-usb@vger.kernel.org CC: laforge@gnumonks.org CC: linux-mtd@lists.infradead.org CC: alsa-devel@alsa-project.org CC: linux-serial@vger.kernel.org CC: Jiri Kosina CC: linux-scsi@vger.kernel.org Acked-by: Gustavo F. Padovan (for drivers/bluetooth) Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 7feabb6412ea23edd298c0fa90e5aa6733eb4a42 Author: Dominik Brodowski Date: Thu Jul 29 18:35:47 2010 +0200 pcmcia: move config_{base,index,regs} to struct pcmcia_device Several drivers prefer to explicitly set config_{base,index,regs}, formerly known as ConfigBase, ConfigIndex and Present. Instead of passing these values inside config_req_t, store it in struct pcmcia_device. CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-ide@vger.kernel.org CC: linux-usb@vger.kernel.org CC: laforge@gnumonks.org CC: linux-mtd@lists.infradead.org CC: alsa-devel@alsa-project.org CC: linux-serial@vger.kernel.org CC: Jiri Kosina CC: linux-scsi@vger.kernel.org Acked-by: Gustavo F. Padovan (for drivers/bluetooth) Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 37979e1546a790c44adbc7f27a85569944480ebc Author: Dominik Brodowski Date: Thu Jul 29 16:33:23 2010 +0200 pcmcia: simplify IntType IntType was only set to INT_MEMORY (driver pcmciamtd) or INT_MEMORY_AND_IO (all other drivers). As this flags seems to relate to ioport access, make it conditional to the driver having requested IO port access. There are two drivers which do not request IO ports, but did set INT_MEMORY_AND_IO: ray_cs and b43. For those, we consistently only set INT_MEMORY in future. CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-ide@vger.kernel.org CC: linux-usb@vger.kernel.org CC: laforge@gnumonks.org CC: linux-mtd@lists.infradead.org CC: alsa-devel@alsa-project.org CC: linux-serial@vger.kernel.org CC: Jiri Kosina CC: linux-scsi@vger.kernel.org Acked-by: Gustavo F. Padovan (for drivers/bluetooth) Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit fc301101034c06bf56a7f71bf682c48909e401a4 Author: Dominik Brodowski Date: Thu Jul 29 16:19:39 2010 +0200 pcmcia: simplify Status, ExtStatus register access The Status (CISREG_CCSR) and ExtStatus (CISREG_ESR) registers were only accessed to enable audio output for some drivers and IRQ for serial_cs.c. The former also required setting config_req_t.Attributes to CONF_ENABLE_SPKR; the latter can be simplified to setting this field to CONF_ENABLE_ESR. CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-serial@vger.kernel.org CC: linux-scsi@vger.kernel.org Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 1a4a046030ade0f57b8f3b476d61c7c35d894b66 Author: Dominik Brodowski Date: Thu Jul 29 15:54:54 2010 +0200 pcmcia: remove Pin, Copy configuration register access The "Pin" and "Copy" configuration registers (CISREG_SCR, CISREG_PPR) do not seem to be utilized anywhere. If a device would request a write to these registers, "0" would be written. Continue to do so, but warn of unexpected behavior -- and remove the "Pin" and "Copy" entries from config_req_t. Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit e8405f0f617856de0ceb7d04e65b663051451544 Author: Dominik Brodowski Date: Thu Jul 29 15:50:55 2010 +0200 pcmcia: move Vpp setup to struct pcmcia_device Some drivers prefer to explicitly set Vpp. Instead of passing the voltage inside config_req_t, store it in struct pcmcia_device. CC: linux-ide@vger.kernel.org CC: netdev@vger.kernel.org CC: linux-mtd@lists.infradead.org CC: linux-wireless@vger.kernel.org CC: linux-serial@vger.kernel.org CC: linux-usb@vger.kernel.org CC: linux-scsi@vger.kernel.org Acked-by: Gustavo F. Padovan (for drivers/bluetooth) Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit fb49fa533f9d211994c33efb752ffa5b30033729 Author: Dominik Brodowski Date: Thu Jul 29 14:06:42 2010 +0200 pcmcia: split up modify_configuration() into two fixup functions pcmcia_modify_configuration() was only used by two drivers to fix up one issue each: setting the Vpp to a different value, and reducing the IO width to 8 bit. Introduce two explicitly named functions handling these things, and remove one further typedef. CC: netdev@vger.kernel.org CC: linux-mtd@lists.infradead.org Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit cdb138080b78146d1cdadba9f5dadbeb97445b91 Author: Dominik Brodowski Date: Wed Jul 28 10:59:06 2010 +0200 pcmcia: do not use win_req_t when calling pcmcia_request_window() Instead of win_req_t, drivers are now requested to fill out struct pcmcia_device *p_dev->resource[2,3,4,5] for up to four iomem ranges. After a call to pcmcia_request_window(), the windows found there are reserved and may be used until pcmcia_release_window() is called. CC: netdev@vger.kernel.org CC: linux-wireless@vger.kernel.org CC: linux-mtd@lists.infradead.org CC: Jiri Kosina CC: linux-scsi@vger.kernel.org Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski commit 9f02186c236ba4ce11ba4e50d5a756c53d56c29e Author: matt mooney Date: Sun Sep 19 23:06:36 2010 -0700 Documentation/kbuild: major edit of modules.txt sections 5-8 A follow-up to my edit of the first 4 sections. Shift sections down by one due to the deletion of section 3; grammar corrections along with some rewording; margin width cleanup; and change EXTRA_CFLAGS -> ccflags-y. Signed-off-by: matt mooney Signed-off-by: Michal Marek commit efdf02cf0651c951de055b0f52128804e11a92fa Author: matt mooney Date: Sat Sep 18 18:33:57 2010 -0700 Documentation/kbuild: major edit of modules.txt sections 1-4 Omit needless words and sentences; reorganize and tighten sentence structure; swap sections 2.2 and 2.3 for a more logical flow; remove section 3, therefore shifting 4->3; add to explanations; and add section on building multiple modules. Signed-off-by: matt mooney Signed-off-by: Michal Marek commit ffe8018c3424892c9590048fc36caa6c3e0c8a76 Author: Hendrik Brueckner Date: Fri Sep 17 15:24:11 2010 -0700 initramfs: fix initramfs size calculation The size of a built-in initramfs is calculated in init/initramfs.c by "__initramfs_end - __initramfs_start". Those symbols are defined in the linker script include/asm-generic/vmlinux.lds.h: #define INIT_RAM_FS \ . = ALIGN(PAGE_SIZE); \ VMLINUX_SYMBOL(__initramfs_start) = .; \ *(.init.ramfs) \ VMLINUX_SYMBOL(__initramfs_end) = .; If the initramfs file has an odd number of bytes, the "__initramfs_end" symbol points to an odd address, for example, the symbols in the System.map might look like: 0000000000572000 T __initramfs_start 00000000005bcd05 T __initramfs_end <-- odd address At least on s390 this causes a problem: Certain s390 instructions, especially instructions for loading addresses (larl) or branch addresses must be on even addresses. The compiler loads the symbol addresses with the "larl" instruction. This instruction sets the last bit to 0 and, therefore, for odd size files, the calculated size is one byte less than it should be: 0000000000540a9c : 540a9c: eb cf f0 78 00 24 stmg %r12,%r15,120(%r15), 540aa2: c0 10 00 01 8a af larl %r1,572000 <__initramfs_start> 540aa8: c0 c0 00 03 e1 2e larl %r12,5bcd04 (Instead of 5bcd05) ... 540abe: 1b c1 sr %r12,%r1 To fix the problem, this patch introduces the global variable __initramfs_size, which is calculated in the "usr/initramfs_data.S" file. The populate_rootfs() function can then use the start marker of the .init.ramfs section and the value of __initramfs_size for loading the initramfs. Because the start marker and size is sufficient, the __initramfs_end symbol is no longer needed and is removed. Signed-off-by: Michael Holzheu Signed-off-by: Hendrik Brueckner Reviewed-by: WANG Cong Acked-by: Michal Marek Acked-by: "H. Peter Anvin" Cc: Heiko Carstens Cc: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Michal Marek commit 6ae64e428f74e7bacab898ef9665dda719ea6fde Author: Hendrik Brueckner Date: Fri Sep 17 15:24:09 2010 -0700 initramfs: generalize initramfs_data.xxx.S variants Remove initramfs_data.{lzo,lzma,gz,bz2}.S variants and use a common implementation in initramfs_data.S. The common implementation expects the file name of the initramfs to be defined in INITRAMFS_IMAGE. Change the Makefile to set the INITRAMFS_IMAGE define symbol according to the selected compression method. Signed-off-by: Hendrik Brueckner Cc: WANG Cong Acked-by: Michal Marek Acked-by: "H. Peter Anvin" Cc: Hendrik Brueckner Cc: Heiko Carstens Cc: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Michal Marek commit ef894870c6c38580e540c29cfb22a827d54a950a Author: Jean Sacren Date: Fri Sep 10 23:13:33 2010 -0600 scripts/kallsyms: Enable error messages while hush up unnecessary warnings As no error was handled, we wouldn't be able to know when an error does occur. The fix preserves error messages while it doesn't let unnecessary compiling warnings show up. Signed-off-by: Jean Sacren Signed-off-by: Michal Marek commit feb47ca9314666d920855b8a235032dea2b2caa4 Author: Steven Whitehouse Date: Wed Sep 29 15:04:18 2010 +0100 GFS2: Improve journal allocation via sysfs Recently a feature was added to GFS2 to allow journal id allocation via sysfs. This patch builds upon that so that a negative journal id will be treated as an error code to be passed back as the return code from mount. This allows termination of the mount process if there is a failure. Also, the process has been updated so that the kernel will wait for a journal id, even in the "spectator" case. This is required in order to avoid mounting a filesystem in case there is an error while joining the cluster. In the spectator case, 0 is written into the file to indicate that all is well, and that mount should continue. Signed-off-by: Steven Whitehouse commit 43f74c199563a4273e528e2166d0650625a1e05f Author: Steven Whitehouse Date: Wed Sep 29 14:24:41 2010 +0100 GFS2: Add "norecovery" mount option as a synonym for "spectator" XFS supports the "norecovery" mount option which is basically the same as the GFS2 spectator mode. This adds support for "norecovery" as a synonym for spectator mode, which is hopefully a more obvious description of what it actually does. Signed-off-by: Steven Whitehouse commit c741c4551237f9c1bdcd3b1b39b0883bd19a3723 Author: Steven Whitehouse Date: Wed Sep 29 14:20:52 2010 +0100 GFS2: Fix spectator umount issue The tests further down the recovery function relating to unlocking the journal need to be updated to match the intial test. Also, a test in the umount code which was surplus to requirements has been removed. Umounting spectator mounts now works correctly, as expected. Signed-off-by: Steven Whitehouse commit 891b48cfc8659be486c70a03ad815f9a2485ee58 Author: Chris Wilson Date: Wed Sep 29 12:26:37 2010 +0100 drm/i915: Avoid blocking the kworker thread on a stuck mutex Just reschedule the retire requests again if the device is currently busy. The request list will be pruned along other paths so will never grow unbounded and so we can afford to miss the occasional pruning. Signed-off-by: Chris Wilson commit 3d2a812ae4676b74f2033cf09c855074d06f3872 Author: Chris Wilson Date: Wed Sep 29 11:39:53 2010 +0100 drm/i915/debug: Remove default WATCH_BUF Replaced by tracepoints. Signed-off-by: Chris Wilson commit 97d1ebaf81491afd8b45186056eda7ebf5da7875 Author: Chris Wilson Date: Wed Sep 29 11:36:22 2010 +0100 drm/i915/debug: Remove defunct WATCH_LRU This has bitrotted through inuse and superseded by tracing and debugfs. Signed-off-by: Chris Wilson commit 0c92ecf10d9fb80b1798d2a9adfdea17f8f5e6d9 Author: Jassi Brar Date: Wed Sep 29 17:31:33 2010 +0900 spi/s3c64xx: Correction for 16,32 bits bus width We can't do without setting channel and bus width to same size. In order to do that, use loop read/writes in polling mode and appropriate burst size in DMA mode. Signed-off-by: Jassi Brar Signed-off-by: Grant Likely commit b42a81ca0fa7b3b442a0731ffc4e7db44464b5f2 Author: Jassi Brar Date: Wed Sep 29 17:31:33 2010 +0900 spi/s3c64xx: Consider the clk_from_cmu flag Newer SoCs have the SPI clock scaling control in platform's clock management unit. Inorder for such SoCs to work, we need to check the flag clk_from_cmu before making any clock changes. Signed-off-by: Jassi Brar Signed-off-by: Grant Likely commit e02ddd442a532c73e547ae3735c8012e3bd719a5 Author: Jassi Brar Date: Wed Sep 29 17:31:31 2010 +0900 spi/s3c64xx: Prevent unnecessary map-unmap Since we use DMA mode only for xfers bigger than FIFO size, do not map/unmap buffers for polling mode transfers. Signed-off-by: Jassi Brar Signed-off-by: Grant Likely commit 4a4fd47155ac49b62de5177a780c245e967752f3 Author: Julia Lawall Date: Wed Sep 29 17:31:30 2010 +0900 spi/amba-pl022: Fix error case return statement. The return -EINVAL appears to only make sense if the if branch that it is aligned with is taken, and the indentation indicates that this is the authors intent, so move it into that branch. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r disable braces4@ position p1,p2; statement S1,S2; @@ ( if (...) { ... } | if (...) S1@p1 S2@p2 ) @script:python@ p1 << r.p1; p2 << r.p2; @@ if (p1[0].column == p2[0].column): cocci.print_main("branch",p1) cocci.print_secs("after",p2) // Signed-off-by: Julia Lawall Signed-off-by: Grant Likely commit e447d3588e1c5944f607083cb509663f8015d420 Author: Julia Lawall Date: Wed Sep 29 17:31:29 2010 +0900 spi/orion: Drop unnecessary null test list_for_each_entry binds its first argument to a non-null value, and thus any null test on the value of that argument is superfluous. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ iterator I; expression x,E; @@ I(x,...) { <... - (x != NULL) && E ...> } // Signed-off-by: Julia Lawall Signed-off-by: Grant Likely commit 079a176d87a4da4cb18864c54d3932131e11e229 Author: Felipe Balbi Date: Wed Sep 29 17:31:29 2010 +0900 spi: omap2_mcspi: make use of dev_vdbg() dev_vdbg() is only compiled when VERBOSE is defined, so there's no need to wrap dev_dbg() on #ifdef VERBOSE .. #endif as we can use dev_vdbg() directly. Signed-off-by: Felipe Balbi Signed-off-by: Grant Likely commit 66be8f6cec4ffd78e5d59921ec9d5e299c0cfa3c Author: Grazvydas Ignotas Date: Tue Aug 24 15:18:43 2010 +0200 OMAP: DSS2: make filter coefficient tables human readable Reorganize scaler FIR filter data as FIR value tables from raw register values. This makes them easier to understand and simplifies register programming code. No functional changes. Signed-off-by: Grazvydas Ignotas Signed-off-by: Tomi Valkeinen commit dd9c8bfbf074c93d45e98bf2a50c1261d0ad1747 Author: Jarkko Nikula Date: Wed Aug 11 14:23:02 2010 +0200 OMAP: DSS2: Add SPI dependency to Kconfig of ACX565AKM panel This panel driver is using SPI for its communication so add CONFIG_SPI dependency. Signed-off-by: Jarkko Nikula Cc: Roger Quadros Cc: Tomi Valkeinen Signed-off-by: Tomi Valkeinen commit 45e655047fd64ba7eb52d14ef5acc41763c8ea34 Author: Mark Brown Date: Tue Sep 28 16:01:20 2010 -0700 ASoC: Initial WM8962 IRQ support Provide an initial hookup for interrupts on the WM8962. Currently we simply report error status via log messages if an IRQ is provided for the device. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit ea738bade2111568a4e6b4b454e2dcd028bc17f6 Author: Mark Brown Date: Mon Sep 20 20:36:19 2010 +0100 ASoC: Lowercase WM8962 CODEC name For consistency. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit ab79ad14a2d51e95f0ac3cef7cd116a57089ba82 Author: Maciej Żenczykowski Date: Mon Sep 27 00:07:02 2010 +0000 ipv6: Implement Any-IP support for IPv6. AnyIP is the capability to receive packets and establish incoming connections on IPs we have not explicitly configured on the machine. An example use case is to configure a machine to accept all incoming traffic on eth0, and leave the policy of whether traffic for a given IP should be delivered to the machine up to the load balancer. Can be setup as follows: ip -6 rule from all iif eth0 lookup 200 ip -6 route add local default dev lo table 200 (in this case for all IPv6 addresses) Signed-off-by: Maciej Żenczykowski Signed-off-by: David S. Miller commit 4465b469008bc03b98a1b8df4e9ae501b6c69d4b Author: Tom Herbert Date: Sun May 23 19:54:12 2010 +0000 ipv4: Allow configuring subnets as local addresses This patch allows a host to be configured to respond to any address in a specified range as if it were local, without actually needing to configure the address on an interface. This is done through routing table configuration. For instance, to configure a host to respond to any address in 10.1/16 received on eth0 as a local address we can do: ip rule add from all iif eth0 lookup 200 ip route add local 10.1/16 dev lo proto kernel scope host src 127.0.0.1 table 200 This host is now reachable by any 10.1/16 address (route lookup on input for packets received on eth0 can find the route). On output, the rule will not be matched so that this host can still send packets to 10.1/16 (not sent on loopback). Presumably, external routing can be configured to make sense out of this. To make this work, we needed to modify the logic in finding the interface which is assigned a given source address for output (dev_ip_find). We perform a normal fib_lookup instead of just a lookup on the local table, and in the lookup we ignore the input interface for matching. This patch is useful to implement IP-anycast for subnets of virtual addresses. Signed-off-by: Tom Herbert Signed-off-by: David S. Miller commit 2548558445b43c1f18a61c0bd3629f92dffa612e Author: Michal Simek Date: Wed Sep 29 15:52:13 2010 +1000 of: MTD: Fix OF probing on little-endian systems Convert big-endian DTB to little-endian if necessary. Signed-off-by: Michal Simek Signed-off-by: Grant Likely commit a04e78b8579272c37c42a9badb6dae71f38fe4a9 Author: Michal Simek Date: Wed Sep 29 15:52:12 2010 +1000 of: GPIO: Fix OF probing on little-endian systems DTB is always big-endian that's why is necessary to convert it. Signed-off-by: Michal Simek Signed-off-by: Grant Likely commit 557d0540b96176dc42943e84c88c288f523388ca Author: Thomas Gleixner Date: Tue Sep 7 14:33:31 2010 +0000 IB/umad: Make user_mad semaphore a real one Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Signed-off-by: Roland Dreier commit fc4ec9bd82dbe08499d801f45a1d49e4c7b66b20 Author: Joe Perches Date: Sat Sep 11 22:10:55 2010 -0700 RDMA/amso1100: Remove KERN_ from pr_ use Signed-off-by: Joe Perches Signed-off-by: Roland Dreier commit 4d8d6389b26d8bee06cd706caf1fd3f1ccaa0205 Author: Dan Carpenter Date: Wed Sep 15 18:32:39 2010 +0200 RDMA/nes: Remove unneeded variable Just a small cleanup. The "passive_state" variable isn't used any more after commit dae58728dc ("RDMA/nes: Fix double CLOSE event indication crash") Signed-off-by: Dan Carpenter Acked-by: Faisal Latif Signed-off-by: Roland Dreier commit 0498628f974d4132ba34b06fc24786a00401b79c Author: Eli Cohen Date: Mon Sep 20 08:42:38 2010 +0200 mlx4_core: Allow log_mtts_per_seg up to 7 As there are now machines with a lot more physical memory, we need to be able to register more memory. This patch lifts the upper limit of log_mtts_per_seg from 5 to 7, increasing the amount of memory that can be registered. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit 62cb3c6ac47a5ab7d8c67dbbf8cbdcd5ae735410 Author: Wey-Yi Guy Date: Tue Sep 28 17:43:10 2010 -0700 iwlagn: API v5 for 6050 series device For 6050 series device, change the supported API version Signed-off-by: Wey-Yi Guy commit 6d6a1afdc591e3f3ee66c39206923def43044ab6 Author: Shanyu Zhao Date: Tue Sep 14 18:13:31 2010 -0700 iwlwifi: send DC calib config to runtime ucode Since uCode is responsible for doing DC calibration, there's no need to let init uCode to do initial DC calibration then send results back to driver, then driver sends the results to runtime uCode. Driver can simply tell runtime uCode to do DC calibration. Actually, this patch does not disable DC calib for init uCode. It just prevent driver from saving and sending the DC calib results (from init ucode) to runtime uCode. The driver still uses 0xffffffff in CALIB_CFG_CMD for init ucode. Signed-off-by: Shanyu Zhao Signed-off-by: Wey-Yi Guy commit 02796d77cb4cfb64b9465eabbdb13b3b7d1679e9 Author: Shanyu Zhao Date: Tue Sep 14 16:23:42 2010 -0700 iwlagn: set CSR register for 6050g2 devices For 6050g2 devices driver needs to set a special bit to CSR register so that uCode can do things correctly in calibration routines. Signed-off-by: Shanyu Zhao Signed-off-by: Wey-Yi Guy commit 6b5ce501428942d9dec864a41ee223307f421574 Author: Shanyu Zhao Date: Tue Sep 14 16:23:32 2010 -0700 iwlwifi: add iwl_nic_ops structure to iwl_ops iwlwifi driver supports multiple devices. Since some device needs special configuration we create a new iwl_nic_ops structure which is configurable per device. Currently there is only one function pointer inside this structure: additional_nic_config(). The iwl_nic_ops structure is added to the top level in struct iwl_ops, making it easier to change per device. Duplication of the iwl_lib_ops structure is no longer needed. With this new ops the previous function pointer set_calib_version is no longer needed since it is just a per device nic configuration. As part of the code restructuring, a bug is addressed. Indication of calib version to uCode is only needed for 6050 devices, however, current implementation set calib version for all 6000 devices for which DC calib is needed. To fix this, create iwl6050_ops for 6050 devices and only populate iwl_nic_ops in this structure. Signed-off-by: Shanyu Zhao Signed-off-by: Wey-Yi Guy commit 1de19eccb3fe634e939cb40f30fdfda93a67fe93 Author: Jay Sternberg Date: Tue Sep 14 15:21:20 2010 -0700 iwlwifi: define 100 devices add new structures and defines need to identify 100 devices. Signed-off-by: Jay Sternberg Signed-off-by: Wey-Yi Guy commit f573c66061184ce28196a22229b6214256ceacd8 Author: Chris Wilson Date: Tue Sep 28 23:34:44 2010 +0100 drm/i915/dvo: Fix panel and DDC i2c pins Signed-off-by: Chris Wilson commit a8ed0b16a924a59b56906e83d6c033a04a9818f6 Author: Chris Wilson Date: Tue Sep 28 23:33:17 2010 +0100 drm/i915: Tidy dvo_ch7017 and print out which chip we detect Signed-off-by: Chris Wilson commit 61371126307ffabb9880e5a22e126b46df846b12 Author: Mark Brown Date: Mon Sep 27 17:20:11 2010 -0700 ASoC: Fix masking of WM8962 FLL1 register When configuring the FLL we preserve the FLL enable configuration in order to allow us to reenable the FLL after configuration but we do not clear the other bits in the register, causing old configuration to be preserved. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit d1454e6fbdf01056834018cfd12f9a066cfc0dd7 Author: Dimitris Papastamos Date: Mon Sep 27 11:16:30 2010 +0100 ASoC: WM8985: Use the correct macro for the kcontrol defined Since we are using custom get/put handlers use SOC_ENUM_SINGLE_EXT_DECL instead of the original SOC_ENUM_SINGLE_DECL macro. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit c123e5e437a0e61e364c1cbad3ef9a7384975fb2 Author: Luke Yelavich Date: Tue Sep 28 12:04:06 2010 +1000 ALSA: hda - Add quirk for another Acer laptop with a CX20585 codec BugLink: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/647374 Set another Acer laptop (SSID 1025:043d) to use CXT5066_IDEAPAD Signed-off-by: Luke Yelavich Signed-off-by: Takashi Iwai commit 1728943d83e9fd919e454332fe344944123b3c3a Merge: f2176d7 e7ee762 Author: John W. Linville Date: Tue Sep 28 16:01:47 2010 -0400 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 Conflicts: drivers/net/wireless/iwlwifi/iwl-agn-lib.c drivers/net/wireless/iwlwifi/iwl3945-base.c commit f2176d7240e4f455a6e007703c7512fbde926dc8 Author: Juuso Oikarinen Date: Tue Sep 28 14:39:32 2010 +0300 mac80211: Fix WMM driver queue configuration The WMM parameter configuration function (ieee80211_sta_wmm_params) only configures the WMM parameters to the driver is the wmm_last_param_set counter value is changed by the AP. The wmm_last_param_set is initialized to -1 on association in order to ensure the configuration is made to the driver at least once on association, but currently this initialization is done *after* the WMM parameter configuration function was called. This leads to unreliability in the driver getting properly configured on first association (depending on what counter value the AP happens to use.) When disassociating (the wmm default parameters are configured to the driver) and then reassociating, due to the above the WMM configuration is not set to the driver at all. On drivers without beacon filtering the problem is corrected by later beacons, but on drivers with beacon filtering the WMM will remain permanently incorrectly configured. Fix this by moving the initialization of wmm_last_param_set to -1 before ieee80211_sta_wmm_params is called on association. Signed-off-by: Juuso Oikarinen Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 93b05238027420978d785569f8c1aa4a6867bc13 Author: Johannes Berg Date: Tue Sep 28 12:53:14 2010 +0200 cfg80211: always set IBSS basic rates IBSS started from wireless extensions is currently missing basic rate configuration, fix this by moving the code to generate the default to the common code that gets invoked for both nl80211 and wext. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit dc4769f0bb949e312ad8d9b652047ff6709978c2 Author: Christian Lamparter Date: Tue Sep 28 01:53:42 2010 +0200 carl9170: interrupt urbs must not set URB_ZERO_PACKET This patch fixes a bug in the driver which was exposed by CONFIG_USB_DEBUG: "usb 1-1.6.3: BOGUS urb flags, 40 --> 0" The transfer flag "URB_ZERO_PACKET" is only valid for bulk urbs. Reported-by: André Erdmann Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit eada7cad6005006b457f10a4c3e1881ff99d03a4 Author: Bruno Randolf Date: Mon Sep 27 13:02:40 2010 +0900 ath5k: Fix bitmasks and typos for PCU Diagnostic register As reported by Ryan Niemi, some bitmasks in the register definition for the PCU Diagnostic register (DIAG_SW) were missing a zero at the end. While at it fix some typos and add more comments. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 28df897a42aa41d6318be5b9872c4bb5c8d8d7e3 Author: Bruno Randolf Date: Mon Sep 27 12:22:32 2010 +0900 ath5k: Disable interrupts in ath5k_hw_get_tsf64 The code in ath5k_hw_get_tsf64() is time critical and will return wrong results if we get interrupted, so disable local interrupts. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 11f21df36cbcffbfada9307e809d4372ece27f47 Author: Bruno Randolf Date: Mon Sep 27 12:22:26 2010 +0900 ath5k: Increase "fudge" for beacon timers We use FUDGE to make sure the next TBTT is ahead of the current TU. Since we later substract AR5K_TUNE_SW_BEACON_RESP (10) in the timer configuration we need to make sure it is bigger than that. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 7f896126017830b29cf501d246ee32b81e359acd Author: Bruno Randolf Date: Mon Sep 27 12:22:21 2010 +0900 ath5k: Check and fix ATIM window This patch adds sanity-checks for the beacon timers and especially the ATIM window to ath5k. It is basically the same what i did for madwifi two years ago and fixes a problem in IBSS mode which has been described as "ramping" pings. See the code comments for a more detailed description and these links: http://madwifi-project.org/ticket/1154 http://madwifi-project.org/changeset/3867 http://thread.gmane.org/gmane.linux.drivers.madwifi.devel/6066 Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 4a79f2c517cce31c3b25aab0ec5078368b22c363 Author: Bruno Randolf Date: Mon Sep 27 12:22:16 2010 +0900 ath5k: Remove unused variable for atim window It's not used and it's unlikely we will ever implement ATIM. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 4bd437ea40b81fb4c047034de6dca1b5af496fb0 Author: Christian Lamparter Date: Mon Sep 27 01:36:38 2010 +0200 carl9170: revamp carl9170_tx_prepare David Miller complained about the driver's excessive use of variables in __packed structs. While I did not fully agree with his sole "performance" argument on all accounts. I do see some room for improvement in hot-paths on architectures without an efficient access to unaligned elements. This first patch (dare I say?) optimizes an important tx hot-path in the driver: carl9170_tx_prepare. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 9c655c8be9053a65886ac3e06420399a9bfdbd70 Author: Christian Lamparter Date: Sun Sep 26 23:06:56 2010 +0200 carl9170: fix WARN_ON triggered by Broadcom HT STAs Broadcom's Windows driver for the 4313 advertises an ampdu density of 7 => 16 us. The AR9170 MAC on the other hand only supports densities up to 8 us. This patch removes the noisy WARN_ON, because there is nothing we can do about it. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit cb139ecc0c030e8ccc736bd86cfef502c200825a Author: Christian Lamparter Date: Sun Sep 26 22:49:34 2010 +0200 carl9170: fix tx_ampdu_upload counter tx_ampdu_upload was not decreased when an a-MPDU frame had to be kicked out from the tx_pending queues. This broke ampdu aggregation, because the scheduler waits until tx_ampdu_upload drops to zero, before making the next aggregate. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 042c53f6e84896701b67012ad525bc44ea6de25f Author: Christian Lamparter Date: Sun Sep 26 21:48:31 2010 +0200 carl9170: remove lost-frame workaround This patch removes some cruft, which survived the RFC review phase. Originally, carl9170_tx_ampdu_queue erroneously dropped a lot of frames. As a result the ampdu scheduler bogged down quite frequently and the affected BA session timed out. However this bug has been fixed and the WA and its debugfs counter is no longer useful. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit b4c85d459c3a2c539a2d5885b12372e404bafc6b Author: Christian Lamparter Date: Sun Sep 26 21:40:40 2010 +0200 carl9170: angle brackets for wiki link "The convention seems to be angle brackets around URLS in Kconfig." -- Finn Thain (to update web addresses in the kernel) Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 793e721d21fd7d2825e3b7e56ff5009ec6d052e9 Author: Christian Lamparter Date: Sun Sep 26 21:28:51 2010 +0200 carl9170: remove non-standard ba session teardown 802.11n-2009 demands in 11.2.1: " When a STA enters normal (non-APSD) PS mode, any downlink Block ACK agreement without an associated schedule is suspended for the duration of this PS mode." The operative word is "suspended" and not terminated. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 8d4780eb1ece4e8109b4f6b2e5e61f7fc593c3f4 Author: Luis R. Rodriguez Date: Fri Sep 24 21:59:57 2010 -0400 mac80211: fix offchannel assumption upon association Association is dealt with as an atomic offchannel operation, we do this because we don't know we are associated until we get the associatin response from the AP. When we do get the associatin response though we were never clearing the offchannel state. This has a few implications, we told drivers we were still offchannel, and the first configured TX power for the channel does not take into account any power constraints. For ath9k this meant ANI calibration would not start upon association, and we'd have to wait until the first bgscan to be triggered. There may be other issues this resolves but I'm too lazy to comb the code to check. Cc: stable@kernel.org Cc: Amod Bodas Cc: Vasanth Thiagarajan Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit bc01befdcf3e40979eb518085a075cbf0aacede0 Author: Pablo Neira Ayuso Date: Tue Sep 28 21:06:34 2010 +0200 netfilter: ctnetlink: add support for user-space expectation helpers This patch adds the basic infrastructure to support user-space expectation helpers via ctnetlink and the netfilter queuing infrastructure NFQUEUE. Basically, this patch: * adds NF_CT_EXPECT_USERSPACE flag to identify user-space created expectations. I have also added a sanity check in __nf_ct_expect_check() to avoid that kernel-space helpers may create an expectation if the master conntrack has no helper assigned. * adds some branches to check if the master conntrack helper exists, otherwise we skip the code that refers to kernel-space helper such as the local expectation list and the expectation policy. * allows to set the timeout for user-space expectations with no helper assigned. * a list of expectations created from user-space that depends on ctnetlink (if this module is removed, they are deleted). * includes USERSPACE in the /proc output for expectations that have been created by a user-space helper. This patch also modifies ctnetlink to skip including the helper name in the Netlink messages if no kernel-space helper is set (since no user-space expectation has not kernel-space kernel assigned). You can access an example user-space FTP conntrack helper at: http://people.netfilter.org/pablo/userspace-conntrack-helpers/nf-ftp-helper-userspace-POC.tar.bz Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy commit 26428b5c4f675434d52c8dc09c4c8d5e6198a6ac Author: Tim Nordell Date: Mon Sep 27 16:05:50 2010 +0000 ARM: OMAP3LOGIC: Added SMSC Ethernet board support Enable SMSC911x Ethernet driver for LogicPD's OMAP 3530 LV SOM and OMAP 35x Torpedo board. Signed-off-by: Tim Nordell Signed-off-by: Tony Lindgren commit cdd280b9958d71ccbaf7c00c0d63dab0a48c1db0 Author: Tim Nordell Date: Mon Sep 27 16:05:49 2010 +0000 ARM: OMAP3LOGIC: Add generic smsc911x support when connected to GPMC Introduce of a generic way to setup smsc911x based Ethernet controller connected to GPMC similar to gpmc-smc91x but without timing setup. Signed-off-by: Tim Nordell Signed-off-by: Tony Lindgren commit 8430281b0a909048cc0e38756b11ae309bb783cd Author: Tim Nordell Date: Mon Sep 27 16:05:48 2010 +0000 ARM: OMAP3LOGIC: Adding SDMMC support Add low-level initialization for hsmmc controller for LogicPD's OMAP 3530 LV SOM and OMAP 35x Torpedo board. Signed-off-by: Tim Nordell [tony@atomide.com: updated for the recent mmc platform init changes] Signed-off-by: Tony Lindgren commit fed1db33fe85573487a4732d628ac5afdb5dc776 Author: Christoph Lameter Date: Fri Aug 27 08:29:38 2010 -0500 IPoIB: Set pkt_type correctly for multicast packets (fix IGMP breakage) IGMP processing is broken because the IPOIB does not set the skb->pkt_type the right way for multicast traffic. All incoming packets are set to PACKET_HOST which means that igmp_recv() will ignore the IGMP broadcasts/multicasts. This in turn means that the IGMP timers are firing and are sending information about multicast subscriptions unnecessarily. In a large private network this can cause traffic spikes. Signed-off-by: Christoph Lameter Signed-off-by: Roland Dreier commit 40dbf6ee381008e471d3c4a332971247b7799744 Author: Steve Wise Date: Fri Sep 17 15:40:15 2010 -0500 RDMA/cxgb4: Fastreg NSMR fixes - Remove dsgl support - doesn't work in T4. - Wrap the immediate PBL as needed when building it in the wr. - Adjust max pbl depth allowed based on ulptx alignment requirements. - Bump the slots per SQ to 5 to allow up to 128MB fast registers. - Advertise fastreg support by default. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 410ade4c26bdf256fea3246e968a12409eb08763 Author: Steve Wise Date: Fri Sep 17 15:40:09 2010 -0500 RDMA/cxgb4: Don't set completion flag for read requests Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 98ae68b7ee6adb75ede42d84eae4032dbb122b81 Author: Steve Wise Date: Fri Sep 10 11:15:41 2010 -0500 RDMA/cxgb4: Set the default TCP send window to 128KB This helps with large IO throughput. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 2f5b48c3ad84fda9efe35122b058ccffc0c2c7cf Author: Steve Wise Date: Fri Sep 10 11:15:36 2010 -0500 RDMA/cxgb4: Use a mutex for QP and EP state transitions Move the connection setup/teardown paths to the workq thread removing spin lock/irq disable requirements for these paths. This allows calls down to the LLD for EP and QP state transition actions to be atomic with respect to processing CPL messages coming up from the HW. Namely, calls to rdma_init() and rdma_fini() can now be called with the mutex held avoiding many race conditions with the abort path. The QP spinlock is still used but only to manipulate the qp state. This allows the fastpaths, poll, post_send, and pos_recv, to run in the irq context. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit c6d7b26791a2aefdf97f2af1e93161ed05acd631 Author: Steve Wise Date: Mon Sep 13 11:23:57 2010 -0500 RDMA/cxgb4: Support on-chip SQs T4 support on-chip SQs to reduce latency. This patch adds support for this in iw_cxgb4: - Manage ocqp memory like other adapter mem resources. - Allocate user mode SQs from ocqp mem if available. - Map ocqp mem to user process using write combining. - Map PCIE_MA_SYNC reg to user process. Bump uverbs ABI. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit aadc4df3087a33ca7fc37f91a024e7b7efdafa75 Author: Steve Wise Date: Fri Sep 10 11:15:25 2010 -0500 RDMA/cxgb4: Centralize the wait logic Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 9e8d1fa3420f489da8a5da47c026511aa71fa50b Author: Steve Wise Date: Fri Sep 10 11:15:20 2010 -0500 RDMA/cxgb4: debugfs files for dumping active stags Add "stags" debugfs file. This is useful for examining the TPTE and PBL entries in adapter memory. It allows scripts to dump just the active entries. Also clean up the "qps" file handlers and shared common code. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 05fb9629473690e4be4112f22e1adeb1fe4ad733 Author: Steve Wise Date: Fri Sep 10 11:15:14 2010 -0500 RDMA/cxgb4: Log HW lack-of-resource errors This helps debug cases where HW resources are depleted. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 0e42c1f4303f3f8d5b2c257dc5488b0ad465097d Author: Steve Wise Date: Fri Sep 10 11:15:09 2010 -0500 RDMA/cxgb4: Handle CPL_RDMA_TERMINATE messages T4 FW sends up CPL_RDMA_TERMINATE to indicate a peer TERM. This triggers the QP moving to TERMINATE state. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 6ff0e343b3356897cef1f09452f93acb13703911 Author: Steve Wise Date: Fri Sep 10 11:15:04 2010 -0500 RDMA/cxgb4: Ignore TERMINATE CQEs T4 incorrectly inserts TERM CQEs into the CQ. Silently ignore them. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 7459486133dc726ff2edf0957d9cb5c954aedbc7 Author: Steve Wise Date: Fri Sep 10 11:14:58 2010 -0500 RDMA/cxgb4: Ignore positive return values from cxgb4_*_send() functions The cxgb4_*_send() functions return NET_XMIT_ values, which are positive integers or negative errno values. So don't treat positive return values as an error. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit 13fecb83b410b147343e6c7b0427d244ef77b526 Author: Steve Wise Date: Fri Sep 10 11:14:53 2010 -0500 RDMA/cxgb4: Zero out ISGL padding The HW design requires zeroing any pad in SGLs. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit af93fb5dcc6b1cba5fd0861d349b3f9c93144bc0 Author: Steve Wise Date: Fri Sep 10 11:14:48 2010 -0500 RDMA/cxgb4: Don't use null ep ptr In c4iw_modify_qp() error path, only use qhp->ep if ep is not already set. Otherwise qhp->ep can be NULL and we crash. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier commit fc34ecd07f15358e2b29620fafeb8a6a9528ce79 Author: Randy Dunlap Date: Tue Sep 28 10:34:27 2010 -0700 pch_gbe: add header files Fix build errors, more header files needed. drivers/net/pch_gbe/pch_gbe_main.c:965: error: implicit declaration of function 'tcp_hdr' drivers/net/pch_gbe/pch_gbe_main.c:965: error: invalid type argument of '->' (have 'int') drivers/net/pch_gbe/pch_gbe_main.c:968: error: invalid type argument of '->' (have 'int') drivers/net/pch_gbe/pch_gbe_main.c:976: error: implicit declaration of function 'udp_hdr' drivers/net/pch_gbe/pch_gbe_main.c:976: error: invalid type argument of '->' (have 'int') drivers/net/pch_gbe/pch_gbe_main.c:980: error: invalid type argument of '->' (have 'int') Signed-off-by: Randy Dunlap Signed-off-by: David S. Miller commit d40f3f15d31e93fce3960d90caaa5a40b52494e8 Author: Tim Nordell Date: Mon Sep 27 16:05:47 2010 +0000 ARM: OMAP3LOGIC: Adding LogicPD OMAP3 board support Adding support for LogicPD's OMAP 3530 LV SOM and OMAP 35x Torpedo board. Signed-off-by: Tim Nordell Signed-off-by: Tony Lindgren commit b45b501c31ce496dbb2b96a8d606642261fa8d8b Author: matt mooney Date: Mon Sep 27 19:04:32 2010 -0700 arm: remove cast from void* Unnecessary cast from void* in assignment. Signed-off-by: matt mooney Acked-by: Hiroshi DOYU Signed-off-by: Tony Lindgren commit b8232e906381dcba2bb26f0d849d4c25cc9b1368 Author: Chris Wilson Date: Tue Sep 28 16:41:32 2010 +0100 drm/i915: Disable LVDS i2c probing when using GPIO bit banging This check only appears to succeed when using GMBUS, so we need to skip it if we have fallen back to using GPIO bit banging. Signed-off-by: Chris Wilson commit d99bf6e707444af4df294f54a679f679018d7ec3 Author: John W. Linville Date: Mon Sep 27 14:00:51 2010 -0400 wl12xx: fix separate-object-folder builds Make this go away (happens when building with a separate object directory): Assembler messages: Fatal error: can't create drivers/net/wireless/wl12xx/.tmp_wl12xx_platform_data.o: No such file or directory drivers/net/wireless/wl12xx/wl12xx_platform_data.c: In function 'wl12xx_get_platform_data': drivers/net/wireless/wl12xx/wl12xx_platform_data.c:28: error: cannot open drivers/net/wireless/wl12xx/.tmp_wl12xx_platform_data.gcno drivers/net/wireless/wl12xx/wl12xx_platform_data.c:28: confused by earlier errors, bailing out Signed-off-by: John W. Linville Reported-by: Stephen Rothwell Cc: Signed-off-by: Ohad Ben-Cohen commit e0e41598b433c0216814d54c62e7c1834f464d9b Merge: 8daf747 d270ae3 Author: Chris Wilson Date: Tue Sep 28 15:48:38 2010 +0100 Merge branch 'drm-intel-fixes' into drm-intel-next commit 8daf7473203cd9bd1b9b98200ee1c74dfe4826fe Author: Chris Wilson Date: Tue Sep 28 14:07:26 2010 +0100 MAINTAINERS: Add contact details for drm/i915 Signed-off-by: Chris Wilson commit d3ab61ecbab2b8950108b3541bc9eda515d605e0 Author: Rhyland Klein Date: Tue Sep 21 15:33:55 2010 -0700 bq20z75: Add support for more power supply properties This patch adds properties to support devicekit power. Also, create IO wrapper functions and fix some issues found while testing, including unit conversions to match the power_supply types. Signed-off-by: Rhyland Klein Signed-off-by: Anton Vorontsov commit cb8ea7527b813dd6e19fb07328f7867a5f0a8d0a Author: Chris Wilson Date: Tue Sep 28 13:35:47 2010 +0100 drm/i915: Use i2c bit banging instead of GMBUS There are several reported instances of GMBUS failing to successfully read the EDID, so revert back to bit banging until the issue is resolved. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30371 Signed-off-by: Chris Wilson commit e957d7720a2797b31231616014b68f4f6203145e Author: Chris Wilson Date: Fri Sep 24 12:52:03 2010 +0100 drm/i915/sdvo: Fix GMBUSification Besides a couple of bugs when writing more than a single byte along the GMBUS, SDVO was completely failing whilst trying to use GMBUS, so use bit banging instead. Signed-off-by: Chris Wilson commit 9c99f08991b38bf6ab62ffe9013ee46ff41d66d0 Author: Axel Lin Date: Mon Sep 27 15:10:11 2010 +0800 wm831x_power: Add missing kfree(wm831x_power) in wm831x_power_remove() Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Anton Vorontsov commit 5f29895f3e8cd4c4b25613c3dd64b68124a1762f Author: Axel Lin Date: Mon Sep 27 15:08:31 2010 +0800 jz4740-battery: Add missing kfree(jz_battery) in jz_battery_remove() Signed-off-by: Axel Lin Acked-By: Lars-Peter Clausen Signed-off-by: Anton Vorontsov commit a01bce6ad970d181797dffff5649e1e6989aa88b Author: Axel Lin Date: Mon Sep 27 15:07:12 2010 +0800 ds2760_battery: Add missing kfree(di) in ds2760_battery_remove() Signed-off-by: Axel Lin Signed-off-by: Anton Vorontsov commit 7cfbb29466633e6ecdc14f76a693c8478c2b22af Author: Richard A. Smith Date: Sat Sep 25 19:19:26 2010 +0100 olpc_battery: Fix endian neutral breakage for s16 values When the driver was updated to be endian neutral (8e9c7716c) the signed part of the s16 values was lost. This is because be16_to_cpu() returns an unsigned value. This patch casts the values back to a s16 number prior to the the implicit cast up to an int. Signed-off-by: Richard A. Smith Signed-off-by: Daniel Drake Cc: Signed-off-by: Anton Vorontsov commit a56ba56c275b1c2b982c8901ab92bf5a0fd0b757 Author: Chris Wilson Date: Tue Sep 28 10:07:56 2010 +0100 Revert "drm/i915: Drop ring->lazy_request" With multiple rings generating requests independently, the outstanding requests must also be track independently. Reported-by: Wang Jinjin Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30380 Signed-off-by: Chris Wilson commit 381bd10aff491216383291879b29461efb575119 Author: Luciano Coelho Date: Tue Sep 28 09:54:27 2010 +0300 MAINTAINERS: Update git url for the wl1271 driver We are integrating wl1271 commits via a new git tree now and wl1271 development should be made on top of the new tree. Update the repository url accordingly. Cc: John W. Linville Signed-off-by: Luciano Coelho commit 7a55724e0dc24cadaeb58f8306222a7802a24ff1 Author: Juuso Oikarinen Date: Mon Sep 27 12:42:07 2010 +0200 wl1271: Add support for hardware GEM cipher This patch adds support for the hardware GEM cipher suite. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 8eab7b4708b5ef4701ecbe5d659f99743b77b668 Author: Juuso Oikarinen Date: Fri Sep 24 03:10:11 2010 +0200 wl1271: Increase connection reliability This patch improves connection reliability by choosing the lowest basic rate for null-func frames (which increases their range, as the firmware does not do rate fall-back for null-func frames.) Also, increase the PSM entry retry-counter. Signed-off-by: Juuso Oikarinen Reviewed-by: Teemu Paasikivi Tested-by: Tuomas Katila Signed-off-by: Luciano Coelho commit bea39d6a60b62f16e904be5a520bf55714d73021 Author: Juuso Oikarinen Date: Tue Sep 21 08:14:31 2010 +0200 wl1271: Optimize scan duration Currently then dwell times for each channel in scans is set to an overly long value, and excessive number of probe-requests are transmitted on each channel (for active scans.) Based on testing, comparable results can be received with smaller dwell-time, and, with fever probe-requests - in fact, reducing the number of probe-requests to 2 seems to increase the number of found results. Configure more optimal values for per channel dwell times. Comparison for the different scan configurations (in my current office environment): dwell-time 60000 3x probe-req == ~60 results 40000 3x probe-req == ~50 results 30000 3x probe-req == ~40 results dwell-time 60000 2x probe-req == ~70 results 40000 2x probe-req == ~60 results 30000 2x probe-req == ~58 results The above are results for a cumulative 3 scan run. For individual scans, the number of results drop slightly more. Signed-off-by: Juuso Oikarinen Reviewed-by: Teemu Paasikivi Signed-off-by: Luciano Coelho commit 78abd3207438b20e099b41cbed58d640cbd237a6 Author: Juuso Oikarinen Date: Tue Sep 21 06:23:32 2010 +0200 wl1271: Add handling for failing hardware scan command Currently, the driver does not handle a failing hardware command to scan in any way - effectively, the scan machine will jam until the driver is shut down, and future scan requests will just return -EBUSY to user space, resulting in a type of busy-loop. The same problem occurs if the firmware fails to deliver the scan completion event - add timeout for this. Signed-off-by: Juuso Oikarinen Reviewed-by: Teemu Paasikivi Signed-off-by: Luciano Coelho commit 52b0e7a61fd4b67fe8efe295297d8549f052f786 Author: Juuso Oikarinen Date: Tue Sep 21 06:23:31 2010 +0200 wl1271: Add hardware recovery mechanism There is some probability of hardware failures, which currently go largely undetected. Attempt to recover from these failures by shutting down the hardware, and requesting mac80211 to reconfigure it. Signed-off-by: Juuso Oikarinen Reviewed-by: Teemu Paasikivi Signed-off-by: Luciano Coelho commit 52a2a37550b604b3c3c7a044ff72d85b60165659 Author: Juuso Oikarinen Date: Tue Sep 21 06:23:30 2010 +0200 wl1271: Separate interface removal to another function Do this so the interface removal can be triggered from an upcoming hardware failure recovery mechanism. Signed-off-by: Juuso Oikarinen Reviewed-by: Teemu Paasikivi Signed-off-by: Luciano Coelho commit 8c7f4f3166e16bb350bfc53955ea6cf9bfd34aab Author: Juuso Oikarinen Date: Tue Sep 21 06:23:29 2010 +0200 wl1271: Fix work cancelling when shutting down the driver The work cancelling has had several hazards, ranging from potentially executing work after the driver is in OFF state, to executing work after the driver and relevant memory structures are already removed. Fix these. Signed-off-by: Juuso Oikarinen Reviewed-by: Teemu Paasikivi Signed-off-by: Luciano Coelho commit c454f1d9a896d3519c756355b37bb39941093233 Author: Juuso Oikarinen Date: Tue Aug 24 06:28:03 2010 +0300 wl1271: Move scan complete invocation into work function The current scan implementation can jam, if the scan request ends up containing no work. This can especially happen if there is a scan request with only 11a band channels for HW that does not support 11a. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 9987a9da3eda093ceeff14ad4926adb130a0d0ea Author: Juuso Oikarinen Date: Wed Sep 1 11:31:12 2010 +0200 wl1271: Fix AC/TID default configuration The WMM queue default configuration was incorrect, and caused uapsd mode problems (among possible others.) Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit ed484a16b495ee7e13cb28fd6ff6053d10657633 Author: Juuso Oikarinen Date: Wed Sep 1 11:31:11 2010 +0200 wl1271: Fix tid-configuration of TX frames Incorrect TID was configured for TX frames. This resulted in incorrect queues to be used for classes in transmission. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit d594845106f34c079a6b05be01a37e4883c3bf4c Author: Steven Whitehouse Date: Tue Sep 28 10:17:47 2010 +0100 GFS2: Fix compiler warning from previous patch This shouldn't really be required, but gcc can't tell that "al" is only accessed when initialised. Signed-off-by: Steven Whitehouse commit 11eb54298fa7197cb4187f8a3474ead0709f76ff Author: Juuso Oikarinen Date: Tue Aug 24 06:28:03 2010 +0300 wl1271: Enable 11a support always, prevent scanning for unsupporting chips This patch always enables 11a band towards the mac80211, but prevents scanning (and hence the usage of) 11a band channels if the chipset does not support it. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 65cddbf1353212f8ab00c6084e3063d85c419201 Author: Juuso Oikarinen Date: Tue Aug 24 06:28:03 2010 +0300 wl1271: Reduce rate used for last PSM entry attempt This patch reduces the rate of the null-func used to enter PSM on the last retry as precaution. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 02fabb0eafde901ae51532ad15fdd4737b7d71e3 Author: Juuso Oikarinen Date: Thu Aug 19 04:41:15 2010 +0200 wl1271: Enable/disable 11a support based on INI configuration Instead of hardcoding 11a support, enable/disable driver support based on the dual-mode-select parameter in the nvs-file general paramters. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 18c311b71899803de91f1ed41b9d87eb81017a91 Author: Juuso Oikarinen Date: Tue Aug 17 04:09:34 2010 +0200 wl1271: Remove function cmd_read_memory The function is not used anywhere. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 4e23b11b08ed116664cce6114546d5a96eb94e8b Author: Juuso Oikarinen Date: Fri Aug 13 04:46:48 2010 +0200 wl1271: Release interrupt *after* releasing the driver context The current order causes driver releasing to fail in various ways, and causes possible instability. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 165530974504e21d79a43e5f964bd9284e45a8f1 Author: Juuso Oikarinen Date: Tue Aug 17 03:50:04 2010 +0200 wl1271: Remove acx_fw_version function It's not used anywhere. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 03f06b7efc8cbc666bd096b68bdf955388e0b323 Author: Juuso Oikarinen Date: Tue Aug 10 06:38:36 2010 +0200 wl1271: Move setting of wake-up conditions to ps.c from cmd.c This removes a fixme. Also, it removes a redundant setting of the wake-up conditions when exiting power save mode, which should improve performance. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 2f63b011b4a6d3c0572147be5756212f5558fff0 Author: Juuso Oikarinen Date: Tue Aug 10 06:38:35 2010 +0200 wl1271: Remove outdated FIXME's Remove outdated FIXME's from the code. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit fa21c7a9e4be439e217fe72edbd39b643b643791 Author: Juuso Oikarinen Date: Tue Aug 10 08:22:02 2010 +0200 wl1271: Change supported channel order for a more optimal scan The mac80211 inserts channels into a scan request in the same order the driver registers them. Use this fact to optimize scan by ordering the channels so that adjacent channels don't get scanned consecutively. Signed-off-by: Juuso Oikarinen Reviewed-by: Luciano Coelho Signed-off-by: Luciano Coelho commit 4f35c0253ab7f32cf30eab5459e8256af1619ff1 Author: Luciano Coelho Date: Wed Aug 4 04:36:32 2010 +0300 wl1271: fix forced passive scan When we get no SSIDs in the scan request, we should force a passive scan in all channels. This patch adds code to force the passive scan flag to be set in that case. Signed-off-by: Luciano Coelho Reviewed-by: Juuso Oikarinen commit 5924f89d6597cd7ba014128ded64b2c7450c369c Author: Luciano Coelho Date: Wed Aug 4 03:46:22 2010 +0300 wl1271: remove useless 11a check when scanning This code was a leftover of the previous scanning mechanism. The if is totally unnecessary, since both branches do the same thing. Signed-off-by: Luciano Coelho Reviewed-by: Juuso Oikarinen commit 76a029fbfb18c42f75c891842df26605ef87add0 Author: Juuso Oikarinen Date: Thu Jul 29 04:54:45 2010 +0300 wl1271: Fix scan race condition In the scan state machine, the wl1271_mutex is unlocked first then relocked, and then the scan state variables are modified. This makes it possible for ieee80211_scan_complete to be called twice in some scenarios, as the scan completion event from the firmware may be processed while the mutex is unlocked. To fix the issue, move the ieee80211_scan_complete call last in the function. This is generally safer, but there still may be issues is functions calling the scan state machine rely on states checked before the unlocking of the global mutex. (forward ported from 2.6.32 -- this is not strictly needed anymore, because the mutex doesn't need to be unlocked anymore, but I'm applying this change anyway, so that the call to ieee80211_scan_complete is in the same place) Signed-off-by: Juuso Oikarinen Reviewed-by: Saravanan Dhanabal Signed-off-by: Luciano Coelho commit c2c192ac6c16e2e8f5cc8cf54e02bb1d4e0e761d Author: Juuso Oikarinen Date: Tue Jul 27 03:30:09 2010 +0300 wl1271: Add trigger to net_device oper_state to change BT coex priority Add a trigger to net_device changes to monitor for oper_state changes in order to be able to inform the firmware when association is fully complete (including the EAP negotiation.) Signed-off-by: Juuso Oikarinen Reviewed-by: Teemu Paasikivi Signed-off-by: Luciano Coelho commit be86cbea1e9c3a4dd8faedcfa327495d09fe3531 Author: Juuso Oikarinen Date: Thu May 27 12:53:01 2010 +0300 wl1271: Implement CMD_SET_STA_STATE to indicate connection completion to FW Implement the command function to send CMD_SET_STA_STATE to the firmware. This is used to indicate that association (and the related EAP negotiation) are complete. This is used to tune WLAN-BT coexistense priority towards BT, improving BT A2DP and SCO performance. Signed-off-by: Juuso Oikarinen Reviewed-by: Teemu Paasikivi Signed-off-by: Luciano Coelho commit 98d633b64a55d6f3e943951ca35f283b0901d7db Author: Luciano Coelho Date: Thu Jul 8 06:27:38 2010 +0300 wl1271: remove deprecated ACX definition As of Rev. 6.1.0.0.335, the ACX_SET_SMART_REFLEX_DEBUG command is deprecated. This patch removes it from the wl1271 driver (it wasn't used anyway). Signed-off-by: Luciano Coelho Reviewed-by: Saravanan Dhanabal commit bf97b6734e027cc18abad420ab88f861f65d7816 Author: Benjamin Marzinski Date: Mon Sep 27 16:00:04 2010 -0500 GFS2: reserve more blocks for transactions Some of the functions in GFS2 were not reserving space in the transaction for the resource group header and the resource groups bitblocks that get added when you do allocation. GFS2 now makes sure to reserve space for the resource group header and either all the bitblocks in the resource group, or one for each block that it may allocate, whichever is smaller using the new gfs2_rg_blocks() inline function. Signed-off-by: Benjamin Marzinski Signed-off-by: Steven Whitehouse commit 54dd55a406f6e9cb5ae208f258b907455162e045 Author: Steffen Sledz Date: Mon Sep 27 14:20:26 2010 +0200 UBIFS: avoid kernel error if ubifs superblock read fails .get_sb is called on mounts with automatic fs detection too, so this function should print an error if it cannot read the superblock in debug mode only (new behaviour conforms the other fs types) Signed-off-by: Steffen Sledz Signed-off-by: Artem Bityutskiy commit 4d443a085de2b6bcae5e0a773c63b8731ff27101 Author: Kumar Sanghvi Date: Mon Sep 27 19:35:06 2010 +0000 Documentation: Update Phonet doc for Pipe Controller implementation Updates the Phonet document with description related to Pipe controller implementation Signed-off-by: Kumar Sanghvi Acked-by: Linus Walleij Signed-off-by: David S. Miller commit 2ddaad397c47de012dfb956b0c05540da1a0dde5 Author: Ben Hutchings Date: Mon Sep 27 22:11:51 2010 -0700 tg3: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 5df8dbd7e517b581e0b8cbd72a99da17914a20b0 Author: Ben Hutchings Date: Mon Sep 27 08:32:59 2010 +0000 8021q: Use netif_copy_real_num_queues() to set queue counts This covers RX if necessary, as well as TX. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit c4f4adc7b7e03f9c0bfc81fccc8ad85d06dc8d88 Author: Ben Hutchings Date: Mon Sep 27 08:31:07 2010 +0000 sfc: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit e2209ba35aa7050fced05bf9c4244562fcaebd63 Author: Ben Hutchings Date: Mon Sep 27 08:30:59 2010 +0000 niu: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit c99202684f7a45c965cb13fa6bb647f2ce9d27fa Author: Ben Hutchings Date: Mon Sep 27 08:30:34 2010 +0000 myri10ge: Use netif_set_real_num_{rx, tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 206d6b3270921fe4a207515beb1f7f7cd8aa3597 Author: Ben Hutchings Date: Mon Sep 27 08:30:05 2010 +0000 mv643xx_eth: Use netif_set_real_num_{rx, tx}_queues() Signed-off-by: Ben Hutchings Acked-by: Lennert Buytenhek Signed-off-by: David S. Miller commit 1eb63a28148336b8a97ff5ee0ecd6830e76a7044 Author: Ben Hutchings Date: Mon Sep 27 08:29:34 2010 +0000 mlx4_en: Use netif_set_real_num_{rx, tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 847f53ff40a81c94367aabb2ef05f2b99cb5706d Author: Ben Hutchings Date: Mon Sep 27 08:28:56 2010 +0000 ixgbe: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 21adef3e2959160df31f8516883431e5595f9e50 Author: Ben Hutchings Date: Mon Sep 27 08:28:39 2010 +0000 igb: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit fe06912333bb9776b0429100b195080809984ae4 Author: Ben Hutchings Date: Mon Sep 27 08:27:37 2010 +0000 gianfar: Use netif_set_real_num_rx_queues() Do not set num_tx_queues or real_num_tx_queues, since alloc_etherdev_mq() does that. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 003ab6742a31662eb808f01273126830612cbda1 Author: Ben Hutchings Date: Mon Sep 27 08:26:10 2010 +0000 cxgb4vf: Use netif_set_real_num_{rx, tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit a020ed4bb88356fea9e24ffcfd9692a835a3f122 Author: Ben Hutchings Date: Mon Sep 27 08:25:57 2010 +0000 cxgb4: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 19221e75da32cecbd3fe83a8ac12755fe38a4602 Author: Ben Hutchings Date: Mon Sep 27 08:25:44 2010 +0000 cxgb3: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 31b600b5fcd101acffb261f87f60f27085ca6509 Author: Ben Hutchings Date: Mon Sep 27 08:25:27 2010 +0000 bnx2x: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 657d92fe6d693b9674264bc7546e664714955425 Author: Ben Hutchings Date: Mon Sep 27 08:25:16 2010 +0000 bnx2: Use netif_set_real_num_{rx,tx}_queues() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 3171d026291d08c2a4cfe06302ce308b09605c4b Author: Ben Hutchings Date: Mon Sep 27 08:24:49 2010 +0000 net: Add netif_copy_real_num_queues() for use by virtual net drivers This sets the active numbers of queues on a net device to match another. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 62fe0b40abb3484413800edaef9b087a20059acf Author: Ben Hutchings Date: Mon Sep 27 08:24:33 2010 +0000 net: Allow changing number of RX queues after device allocation For RPS, we create a kobject for each RX queue based on the number of queues passed to alloc_netdev_mq(). However, drivers generally do not determine the numbers of hardware queues to use until much later, so this usually represents the maximum number the driver may use and not the actual number in use. For TX queues, drivers can update the actual number using netif_set_real_num_tx_queues(). Add a corresponding function for RX queues, netif_set_real_num_rx_queues(). Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit f91ff5b9ff529be8aac2039af63b2c8ea6cd6ebe Author: Eric Dumazet Date: Mon Sep 27 06:07:30 2010 +0000 net: sk_{detach|attach}_filter() rcu fixes sk_attach_filter() and sk_detach_filter() are run with socket locked. Use the appropriate rcu_dereference_protected() instead of blocking BH, and rcu_dereference_bh(). There is no point adding BH prevention and memory barrier. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 7fa7cb7109d07c29ab28bb877bc7049a0150dbe5 Author: Eric Dumazet Date: Mon Sep 27 04:18:27 2010 +0000 fib: use atomic_inc_not_zero() in fib_rules_lookup It seems we dont use appropriate refcount increment in an rcu_read_lock() protected section. fib_rule_get() might increment a null refcount and bad things could happen. While fib_nl_delrule() respects an rcu grace period before calling fib_rule_put(), fib_rules_cleanup_ops() calls fib_rule_put() without a grace period. Note : after this patch, we might avoid the synchronize_rcu() call done in fib_nl_delrule() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 15fc1f7056ebdc57e23f99077fec89e63e6fa941 Author: Eric Dumazet Date: Mon Sep 27 00:38:18 2010 +0000 sit: percpu stats accounting Maintain per_cpu tx_bytes, tx_packets, rx_bytes, rx_packets. Other seldom used fields are kept in netdev->stats structure, possibly unsafe. This is a preliminary work to support lockless transmit path, and correct RX stats, that are already unsafe. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 3c97af99a5aa17feaebb4eb0f85f51ab6c055797 Author: Eric Dumazet Date: Mon Sep 27 00:35:50 2010 +0000 ipip: percpu stats accounting Maintain per_cpu tx_bytes, tx_packets, rx_bytes, rx_packets. Other seldom used fields are kept in netdev->stats structure, possibly unsafe. This is a preliminary work to support lockless transmit path, and correct RX stats, that are already unsafe. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit e985aad723d7709e6bee566bacb100d33d9b791b Author: Eric Dumazet Date: Mon Sep 27 03:57:11 2010 +0000 ip_gre: percpu stats accounting Le lundi 27 septembre 2010 à 14:29 +0100, Ben Hutchings a écrit : > > diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c > > index 5d6ddcb..de39b22 100644 > > --- a/net/ipv4/ip_gre.c > > +++ b/net/ipv4/ip_gre.c > [...] > > @@ -377,7 +405,7 @@ static struct ip_tunnel *ipgre_tunnel_locate(struct net *net, > > if (parms->name[0]) > > strlcpy(name, parms->name, IFNAMSIZ); > > else > > - sprintf(name, "gre%%d"); > > + strcpy(name, "gre%d"); > > > > dev = alloc_netdev(sizeof(*t), name, ipgre_tunnel_setup); > > if (!dev) > [...] > > This is a valid fix, but doesn't belong in this patch! > Sorry ? It was not a fix, but at most a cleanup ;) Anyway I forgot the gretap case... [PATCH 2/4 v2] ip_gre: percpu stats accounting Maintain per_cpu tx_bytes, tx_packets, rx_bytes, rx_packets. Other seldom used fields are kept in netdev->stats structure, possibly unsafe. This is a preliminary work to support lockless transmit path, and correct RX stats, that are already unsafe. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 290b895e0ba4552dfcfc4bd35759c192345b934a Author: Eric Dumazet Date: Mon Sep 27 00:33:35 2010 +0000 tunnels: prepare percpu accounting Tunnels are going to use percpu for their accounting. They are going to use a new tstats field in net_device. skb_tunnel_rx() is changed to be a wrapper around __skb_tunnel_rx() IPTUNNEL_XMIT() is changed to be a wrapper around __IPTUNNEL_XMIT() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit af5ef241133b602a77b682009f112e7c3f7604e5 Author: Eric Dumazet Date: Sun Sep 26 22:47:09 2010 +0000 vlan: use this_cpu_ptr() in vlan_skb_recv() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 8d98efa84b790bdd62248eb0dfff17e9baf5c844 Author: Kumar Sanghvi Date: Sun Sep 26 19:07:59 2010 +0000 Phonet: Implement Pipe Controller to support Nokia Slim Modems Phonet stack assumes the presence of Pipe Controller, either in Modem or on Application Processing Engine user-space for the Pipe data. Nokia Slim Modems like WG2.5 used in ST-Ericsson U8500 platform do not implement Pipe controller in them. This patch adds Pipe Controller implemenation to Phonet stack to support Pipe data over Phonet stack for Nokia Slim Modems. Signed-off-by: Kumar Sanghvi Acked-by: Linus Walleij Signed-off-by: David S. Miller commit 183ae74bda75b1cfda632b42cdc916853e2dded4 Author: Roland Dreier Date: Mon Sep 27 17:51:33 2010 -0700 RDMA/nes: Fix cast-to-pointer warnings on 32-bit Fix: drivers/infiniband/hw/nes/nes_verbs.c: In function 'nes_alloc_fast_reg_page_list': drivers/infiniband/hw/nes/nes_verbs.c:477: warning: cast to pointer from integer of different size drivers/infiniband/hw/nes/nes_verbs.c: In function 'nes_post_send': drivers/infiniband/hw/nes/nes_verbs.c:3486: warning: cast to pointer from integer of different size drivers/infiniband/hw/nes/nes_verbs.c:3486: warning: cast to pointer from integer of different size by printing u64 quantities by casting to unsigned long and long and using %llx, rather than casting to void* and using %p. Reported-by: Andrew Morton Signed-off-by: Roland Dreier commit 605841f5d263892d9254f09fcf265a26e0bede7e Author: Roland Dreier Date: Mon Sep 27 17:51:24 2010 -0700 MAINTAINERS: Fix broken link to http://www.openib.org/ openib.org is now openfabrics.org. Signed-off-by: Roland Dreier commit a3f5adaf491490089215f863a61b9422fae902f8 Author: Eli Cohen Date: Mon Sep 27 17:51:10 2010 -0700 IB/core: Add link layer property to ports This patch allows ports to have different link layers: IB_LINK_LAYER_INFINIBAND or IB_LINK_LAYER_ETHERNET. This is required for adding IBoE (InfiniBand-over-Ethernet, aka RoCE) support. For devices that do not provide an implementation for querying the link layer property of a port, we return a default value based on the transport: RMA_TRANSPORT_IB nodes will return IB_LINK_LAYER_INFINIBAND and RDMA_TRANSPORT_IWARP nodes will return IB_LINK_LAYER_ETHERNET. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier commit c8e081a1bf11c5cbac5f2f9f53c040be61d7b29e Author: Roland Dreier Date: Mon Sep 27 17:51:04 2010 -0700 RDMA/cxgb4: Fix warnings about casts to/from pointers of different sizes Fix: drivers/infiniband/hw/cxgb4/qp.c: In function ‘create_qp’: drivers/infiniband/hw/cxgb4/qp.c:147: warning: cast from pointer to integer of different size drivers/infiniband/hw/cxgb4/qp.c: In function ‘rdma_fini’: drivers/infiniband/hw/cxgb4/qp.c:988: warning: cast from pointer to integer of different size drivers/infiniband/hw/cxgb4/qp.c: In function ‘rdma_init’: drivers/infiniband/hw/cxgb4/qp.c:1063: warning: cast from pointer to integer of different size drivers/infiniband/hw/cxgb4/mem.c: In function ‘write_adapter_mem’: drivers/infiniband/hw/cxgb4/mem.c:74: warning: cast from pointer to integer of different size drivers/infiniband/hw/cxgb4/cq.c: In function ‘destroy_cq’: drivers/infiniband/hw/cxgb4/cq.c:58: warning: cast from pointer to integer of different size drivers/infiniband/hw/cxgb4/cq.c: In function ‘create_cq’: drivers/infiniband/hw/cxgb4/cq.c:135: warning: cast from pointer to integer of different size drivers/infiniband/hw/cxgb4/cm.c: In function ‘fw6_msg’: drivers/infiniband/hw/cxgb4/cm.c:2326: warning: cast to pointer from integer of different size by casting pointers to unsigned long instead of u64. Reported-by: Andrew Morton Signed-off-by: Roland Dreier commit b6a26b4b87d7b030a546e7bdaf390ffc58323f36 Author: Igor Grinberg Date: Tue Sep 21 16:03:13 2010 +0000 omap3: cm-t3517: add support for TI HECC add support for TI HECC. Signed-off-by: Igor Grinberg Signed-off-by: Tony Lindgren commit ec34fccd3a8ed4997c38797b49e37535ad387401 Author: Igor Grinberg Date: Tue Sep 21 16:03:12 2010 +0000 omap3: cm-t3517: add support for NAND flash add support for NAND flash. Signed-off-by: Igor Grinberg Signed-off-by: Tony Lindgren commit 525d75b31bc97354870b5991d57b2607d7b88602 Author: Igor Grinberg Date: Tue Sep 21 16:03:11 2010 +0000 omap3: cm-t3517: add support for usb host add support for hsusb host ports 1, 2 and on-module usb hub. Signed-off-by: Igor Grinberg Signed-off-by: Tony Lindgren commit 46893a56aad011764003703b06303515ea670c57 Author: Igor Grinberg Date: Tue Sep 21 16:03:10 2010 +0000 omap3: cm-t3517: add support for v3020 rtc add support for v3020 rtc. Signed-off-by: Igor Grinberg Signed-off-by: Tony Lindgren commit d04b620e6e6e72a95b7b88ccb7b002cb8f6b8113 Author: Igor Grinberg Date: Tue Sep 21 16:03:09 2010 +0000 omap3: Introduce CompuLab CM-T3517 module Add basic suppot, enable uart and led. Signed-off-by: Igor Grinberg Signed-off-by: Tony Lindgren commit 0455029bea7da2a2a92003238c9617a36d5d48fd Merge: 8c41e5e 838a2e5 Author: Michal Marek Date: Mon Sep 27 23:24:53 2010 +0200 Merge branch 'kbuild/kconfig/kbuild-generic-v7' of http://github.com/lacombar/linux-2.6 into kbuild/kconfig * 'kbuild/kconfig/kbuild-generic-v7' of http://github.com/lacombar/linux-2.6: kbuild: migrate all arch to the kconfig mainmenu upgrade kconfig: expand file names kconfig: use the file's name of sourced file kconfig: constify file name kconfig: don't emit warning upon rootmenu's prompt redefinition kconfig: replace KERNELVERSION usage by the mainmenu's prompt kconfig: delay gconf window initialization kconfig: expand by default the rootmenu's prompt kconfig: add a symbol string expansion helper kconfig: regen parser kconfig: implement the `mainmenu' directive kconfig: allow PACKAGE to be defined on the compiler's command-line kconfig: rephrase help texts/comments not to include the package name kconfig: allow build-time definition of the internal config prefix kconfig: rephrase help text not to mention the internal prefix kconfig: replace a `switch()' statement by a more flexible `if()' statement commit 5d4bff94f9e0877a85b4dc573eb7a3f1d97c13ae Author: Tony Luck Date: Mon Sep 27 13:58:14 2010 -0700 [IA64] Stop using the deprecated __do_IRQ() code path Thomas Gleixner wrote: >__do_IRQ() has been deprecated after a two years migration phase in >commit 0e57aa1. Since then another 18 months have gone by ... Mostly trivial stuff for this. The only tricky part was realizing that the new handler_*_irq() paths do not use desc->chip->end(irq). Not a problem for the edge case as the ia64 iosapic routine for that was nop(). But the "level" case handled interrupt migration there. Just use a slightly modified version of the "end" routine as "unmask" for the level triggered case. Signed-off-by: Tony Luck commit 91f6c90c8df1818a66d177e105d602c3da820919 Merge: 6e457bb a3fed9b Author: Tony Lindgren Date: Mon Sep 27 13:17:13 2010 -0700 Merge branch 'omap4_and_sdrc_2.6.27' of git://git.pwsan.com/linux-2.6 into omap-for-linus commit a3fed9bc181666df6ecfe9ce34a29d48803f2310 Author: Jon Hunter Date: Mon Sep 27 14:02:59 2010 -0600 omap3: Prevent SDRC deadlock when L3 is changing frequency When changing the L3 clock frequency, the CPU is executing from internal RAM and the SDRC clock is disabled. During this time accesses made to external DDR are stalled. If the ARM subsystem attempts to access the DDR while the SDRC clock is disabled this will stall the CPU until the access to the SDRC timeouts. A timeout on the SDRC should never occur. Once a timeout occurs all the following accesses will be aborted and the DDR is no longer accessible. Although the code being executed in the internal RAM does not directly access the DDR, it was found that the branch prediction logic in the CPU may cause the CPU to prefetch code from a DDR location while the SDRC clock is disabled. This was causing an SDRC timeout which resulted in a system hang. This patch fixes this problem by ensuring the branch prediction logic is disabled while changing the L3 clock frequency. The branch prediction logic is disabled by clearing the Z-bit in the ARM CTRL register. Disabling the branch prediction logic does not have any noticable impact on the execution time of this code section. The hardware observability signals were used to monitor the sdrc idle time with and without this patch when operating at different CPU frequencies (150MHz, 500MHz and 600MHz) and the total sdrc idle time when changing frequenct was in the range of 9-11us. This was measured on an omap3430 SDP running the omapzoom p-android-omap-2.6.29 branch. Signed-off-by: Jon Hunter Signed-off-by: Paul Walmsley Cc: Santosh Shilimkar Cc: Richard Woodruff Cc: Tony Lindgren commit dcf5ef3f42fbc0c62043b4c466d679fca32f1b9f Author: Santosh Shilimkar Date: Mon Sep 27 14:02:58 2010 -0600 omap4: control: Fix the control module register accesses This patch has multiple fixes together. To ensure that git bisect work across commits, all changes are clubbed together 1. Move the common control base address to control core 2. Remove the manually coeded defines and use the ones from headers. 3. Fix the the status register define in id.c for OMAP4 4. Fix all the register define in hsmmc.c 5. Use the control pad accessor API for omap4 hsmmc register accesses Signed-off-by: Benoit Cousson Signed-off-by: Santosh Shilimkar Signed-off-by: Paul Walmsley commit 802edcb7a9227ad98e902ad4406c4b99ddf18c13 Author: Santosh Shilimkar Date: Mon Sep 27 14:02:58 2010 -0600 omap4: control: Add the register definition headers On OMAP4, control module is divided into 4 separate IPs - OMAP44XX_CTRL_MODULE_CORE - OMAP44XX_CTRL_MODULE_PAD_CORE - OMAP44XX_CTRL_MODULE_WKUP - OMAP44XX_CTRL_MODULE_PAD_WKUP This patch adds all the omap4 control module register data and includes them in the common control.h The register data is autogenerated from the codebase thanks to Benoit Cousson efforts Signed-off-by: Benoit Cousson Signed-off-by: Santosh Shilimkar Signed-off-by: Paul Walmsley commit 70ba71a25e02ef7b8796723c8615955620e465ff Author: Santosh Shilimkar Date: Mon Sep 27 14:02:57 2010 -0600 omap4: control: Add accessor api's for pad control module On OMAP4 control pad are not addressable from control core base. So the common omap_ctrl_read/write APIs breaks Hence export separate APIs to manage the omap4 pad control registers. This APIs will work only for OMAP4 Signed-off-by: Santosh Shilimkar Signed-off-by: Paul Walmsley commit 0c3492467c99f3d0d83a48012ee6e672b016759c Author: Santosh Shilimkar Date: Mon Sep 27 14:02:57 2010 -0600 omap4: control: Add ctrl_pad_base to omap_globals On omap4 control module is divided in four IP blocks. - CTRL_MODULE_CORE 0x4a002000 - CTRL_MODULE_PAD_CORE 0x4a100000 - CTRL_MODULE_WKUP 0x4a30c000 - CTRL_MODULE_PAD_WKUP 0x4a31e000 Addressing all the modules with single base address is not possible considering 16 bit offsets. The mux code manages the pad core and pad wakeup related base address inside the mux framework. For other usage only control core and control pad bases are necessary. So this patch maps only needed pad control base address which is used by device drivers and infrastructure code The main control core base is still kept same in this patch to keep git-bisect working. This will be fixed in the relevant patch in this series. Signed-off-by: Benoit Cousson Signed-off-by: Santosh Shilimkar Signed-off-by: Paul Walmsley commit 0edc9e858222ca8fd685756f0d7e546633c39ff0 Author: Benoit Cousson Date: Mon Sep 27 14:02:56 2010 -0600 OMAP4: clocks: Fix ES2 clock issues Fix a few OMAP4430 clock tree problems after the recent manual merge of the various ES2 clock patches: - usim optional clock and its parent had the same name, rename the parent usim_fclk -> usim_ck - OPTFCLKEN_CLK32K is not handled anymore by the USBPHYOCP2SCP module in ES2 Create a new clock that belongs to CM_ALWON_USBPHY_CLKCTRL register This patch depends on some of the PRCM macro updates from Rajendra. Signed-off-by: Benoit Cousson [paul@pwsan.com: tweaked patch description] Signed-off-by: Paul Walmsley Cc: Rajendra Nayak commit bb722f33e233c980159f0ac5560d530eb5dfdd0f Author: Rajendra Nayak Date: Mon Sep 27 14:02:56 2010 -0600 OMAP4: powerdomain: Update DSS logic state for ES2 DSS on ES2 supports only OSWR, hence remove the support for CSWR from the powerdomain framework. Signed-off-by: Rajendra Nayak Signed-off-by: Benoît Cousson Signed-off-by: Paul Walmsley Cc: Kevin Hilman commit fdd4f409981e5581e03d4259f2b4923b3158f2cf Author: Rajendra Nayak Date: Mon Sep 27 14:02:56 2010 -0600 OMAP4: PM: Define additional registers for ES2 4430 ES2 has a few new registers added and a few modified from ES1. This patch adds all the register changes in PRM and CM for OMAP4430 ES2. Signed-off-by: Rajendra Nayak Signed-off-by: Benoît Cousson Signed-off-by: Paul Walmsley Cc: Kevin Hilman commit 568997cf375f3e3db28d6962cde66958b57dd6ac Author: Rajendra Nayak Date: Mon Sep 27 14:02:55 2010 -0600 OMAP4: CM & PRM: Update PRCM register bitshifts and masks for ES2 This patch updates the PRM and CM register bitshifts and masks for OMAP4430 ES2.0. Replace as well the BITFIELD macro with the shift operator in order to be consistent with the previous OMAP2 & 3 format. Sort the register list in comments in order to have a consistent register order and avoid futur change during code generation. Signed-off-by: Rajendra Nayak Signed-off-by: Benoît Cousson Signed-off-by: Paul Walmsley Cc: Kevin Hilman commit 1c03f42f01d212a79f7cd6e91eb8d8c624a843ec Author: Benoit Cousson Date: Mon Sep 27 14:02:55 2010 -0600 OMAP4: clock: Add optional clock nodes OMAP4 IP optional clocks require explicit enable in module CTRLCLK register. In order to allow that we have to create artificial clock nodes that represent this clock inputs in the IP. Notes: - Temporary use OMAP3 names for GPIO optional clocks until the GPIO hwmod convertion is done. It will enforce the usage of OMAP4 names as the reference. - Temporary use OMAP3 names for TIMER main clock (gptX_fck) until TIMER hwmod convertion is done. During that convertion, the new name will have to be used. Signed-off-by: Benoit Cousson Signed-off-by: Paul Walmsley Cc: Kevin Hilman Cc: Rajendra Nayak commit 0e43327191986e88efdc8717084aeb22db2cc8a9 Author: Benoit Cousson Date: Mon Sep 27 14:02:54 2010 -0600 OMAP4: clock: Fix clock names and align with hwmod names The OMAP4 hwmod data introduced the new naming convention for TI IPs (See patch OMAP4: hwmod: Add partial hwmod support for OMAP4430 ES1.0) The leaf clock names are using the same IP name and thus must be modified to match the clock populated in the hwmod data. - Fix some leaf clocks nodes that were using a _iclk instead of the _fclk prefix. - Fix some wrong interface clock name for master IPs connected to interconnect. Please not that due to the fact that nodes are sorted by name, the name change will introduce a quite ugly diff a little bit hard to follow. Timers clock con_id is still using the old gptX_fck name until the gptimer driver is updated to omap_device framework. Timers entries in hwmods DB are still disabled until the migration if timer to platform_driver + omap_hwmod. Signed-off-by: Benoit Cousson [paul@pwsan.com: manually resolved conflicts with Rajendra's clock patch] Signed-off-by: Paul Walmsley Cc: Rajendra Nayak commit 76cf52951ac57a31a453610e0ab5cae50b10502d Author: Rajendra Nayak Date: Mon Sep 27 14:02:54 2010 -0600 OMAP4: clocks: Update clock tree for ES2 This patch updates the clock tree with all the changes in OMAP4430 ES2. clock nodes added -1- tie_low_clock_ck -2- abe_dpll_bypass_clk_mux_ck clock nodes deleted -1- dpll_sys_ref_clk -2- per_sgx_fclk -3- usbphyocp2scp_ick Signed-off-by: Rajendra Nayak Signed-off-by: Benoît Cousson [paul@pwsan.com: added comment re ES1 clocks to top of file] Signed-off-by: Paul Walmsley Cc: Kevin Hilman commit e2b626248b0799bd14be40ce290c6681a8419512 Author: Rajkumar Manoharan Date: Fri Sep 24 17:58:50 2010 +0530 ath9k_htc: Fix TKIP disconnect failure with HTC drivers The following commit removed splitmic. But forgot to add ATH_CRYPT_CAP_MIC_COMBINED flag for HTC drivers which causes TKIP to fail. Author: Bruno Randolf Date: Wed Sep 8 16:04:54 2010 +0900 ath/ath9k: Replace common->splitmic with a flag Replace common->splitmic with ATH_CRYPT_CAP_MIC_COMBINED flag. Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit 554891e63a29af35cc6bb403ef34e319518114d0 Author: Johannes Berg Date: Fri Sep 24 12:38:25 2010 +0200 mac80211: move packet flags into packet commit 8c0c709eea5cbab97fb464cd68b06f24acc58ee1 Author: Johannes Berg Date: Wed Nov 25 17:46:15 2009 +0100 mac80211: move cmntr flag out of rx flags moved the CMNTR flag into the skb RX flags for some aggregation cleanups, but this was wrong since the optimisation this flag tried to make requires that it is kept across the processing of multiple interfaces -- which isn't true for flags in the skb. The patch not only broke the optimisation, it also introduced a bug: under some (common!) circumstances the flag will be set on an already freed skb! However, investigating this in more detail, I found that most of the flags that we set should be per packet, _except_ for this one, due to a-MPDU processing. Additionally, the flags used for processing (currently just this one) need to be reset before processing a new packet. Since we haven't actually seen bugs reported as a result of the wrong flags handling (which is not too surprising -- the only real bug case I can come up with is an a-MSDU contained in an a-MPDU), I'll make a different fix for rc. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 4080c7cdc23f26c6e6166a70f50fa43814552d81 Author: Johannes Berg Date: Fri Sep 24 11:21:08 2010 +0200 mac80211: fix release_reorder_timeout in scan Even if the reorder timeout timer fires while scanning, the frames weren't received during scanning and therefore shouldn't be dropped. To implement this, changes to the passive scan RX handler simplify understanding it, because it currently checks HW_SCANNING independently of a packet's in-scan receive status (which doesn't make a big difference, since scan_rx() will only pick up probe responses and beacons, which can't be aggregated.) Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 4b0dd98e70b6516c2c26f28091c2fb09f0ecf215 Author: Johannes Berg Date: Fri Sep 24 11:21:07 2010 +0200 mac80211: clean up rx handling wrt. found_sta If a station was found, then we'll have exited the function already, so it is not necessary to have a variable keeping track of it. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 4406c376895608375105013bf405ecac720ef558 Author: Johannes Berg Date: Fri Sep 24 11:21:06 2010 +0200 mac80211: consolidate packet processing There are now four instances of vaguely the same code that does packet preparation, checking for MMIC errors and reporting them, and then invoking packet processing. Consolidate all of these. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 20b01f80f72426e7ed2e773220da4357925383d5 Author: Johannes Berg Date: Fri Sep 24 11:21:05 2010 +0200 mac80211: remove prepare_for_handlers sdata argument The first argument to prepare_for_handlers is always the sdata that can just be stored in rx data directly (and even already is, in two of four code paths.) Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 7c1e183186377e84e6f4e457be0514887f2df4ef Author: John W. Linville Date: Fri Sep 24 15:52:49 2010 -0400 Revert "mac80211: fix use-after-free" This reverts commit cd87a2d3a33d75a646f1aa1aa2ee5bf712d6f963. Author reports it conflicts with proper fixes, applied hereafter. Signed-off-by: John W. Linville commit 92e44948b2b3b2db8f39f17033f98ae2356156a5 Author: Teemu Paasikivi Date: Fri Sep 24 07:23:55 2010 +0300 nl80211: Fix exit from nl80211_set_power_save If interface does not existk, when nl80211_set_power_save is called, (eg. module has been unloaded) it has been causing kernel panic. Added new goto target to avoid crash if get_rdev_dev_by_info_ifindex does not return dev and rdev pointers. Signed-off-by: Teemu Paasikivi Signed-off-by: John W. Linville commit 56af326830757f3e8a1742770d15dfd6e3c40e85 Author: Ben Greear Date: Thu Sep 23 10:22:24 2010 -0700 mac80211: Support receiving data frames on multiple vifs. When using multiple STA interfaces on the same radio, some data packets need to be received on all interfaces (broadcast, for instance). Make the STA loop look similar to the mgt-data loop. Also, add logic to check RX_FLAG_MMIC_ERROR for last interface in mgt-data loop. Signed-off-by: Ben Greear Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 686b9cb994f5f74be790df4cd12873dfdc8a6984 Author: Ben Greear Date: Thu Sep 23 09:44:36 2010 -0700 mac80211/ath9k: Support AMPDU with multiple VIFs. The old ieee80211_find_sta_by_hw method didn't properly find VIFS when there was more than one per AP. This caused AMPDU logic in ath9k to get the wrong VIF when trying to account for transmitted SKBs. This patch changes ieee80211_find_sta_by_hw to take a localaddr argument to distinguish between VIFs with the same AP but different local addresses. The method name is changed to ieee80211_find_sta_by_ifaddr. Signed-off-by: Ben Greear Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 295bafb47b0d365e1b4f747dffef29e590f13233 Author: Ben Greear Date: Wed Sep 22 20:29:01 2010 -0700 mac80211: Support multiple VIFS per AP in debugfs. Create 'stations' sub-directory under each netdev:[vif-name] directory to hold all stations for that network device. Signed-off-by: Ben Greear Acked-by: Johannes Berg Signed-off-by: John W. Linville commit a42acef0dd3548ffda03d245d41b95250354017e Author: Felix Fietkau Date: Wed Sep 22 12:34:54 2010 +0200 ath9k_hw: simplify revision checks for AR9287 Since AR9287 v1.0 was never sold (and the initvals removed), its revision checks can be simplified similar to AR9280 Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit e17f83eafd37129f9e09425136e59bc4333bdb9c Author: Felix Fietkau Date: Wed Sep 22 12:34:53 2010 +0200 ath9k_hw: simplify revision checks for AR9285 Since AR9285 v1.0 and v1.1 were never sold (and the initvals removed), its revision checks can be simplified similar to AR9280 Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 7a37081e2e25e58701b17c41579fd06bc353b392 Author: Felix Fietkau Date: Wed Sep 22 12:34:52 2010 +0200 ath9k_hw: simplify revision checks for AR9280 Since AR9280 v1.0 was never sold (and the initvals removed), v1.0 specific revision checks can be removed and the 'v2.0 or later' check can be simplified to a check for AR9280 or later. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 67e0208acea29682f5766eb9f67f6f26117eef3e Author: Ido Yariv Date: Wed Sep 22 09:53:13 2010 +0200 wl1271: Fix overflow in wl1271_boot_upload_nvs Due to miscalculation of nvs_len, excessive data was sent to the firmware. Fix this by first setting nvs_ptr to point to the first NVS table, and computing the total size of all NVS tables accordingly. Signed-off-by: Ido Yariv Tested-By: Tuomas Katila Acked-by: Luciano Coelho Signed-off-by: John W. Linville commit 87fd2e6c90acb45a5741207fc953190596f93841 Author: Ben Greear Date: Tue Sep 21 17:03:57 2010 -0700 ath5k: Add bssid mask and rxfilter to debugfs. Helps with debugging virtual interfaces. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit 6e457bb05c348e196f67005876992ceb5eb0430a Author: Lennert Buytenhek Date: Wed Sep 22 20:40:57 2010 +0200 update OMAP Kconfig help texts for all supported SoC models update OMAP Kconfig help texts for all supported SoC models Signed-off-by: Lennert Buytenhek Signed-off-by: Tony Lindgren commit ee6f5a2fec84479d468ebf2a5d4560e042a58647 Merge: 98bb8c3 d31f59f Author: Tony Lindgren Date: Mon Sep 27 10:22:16 2010 -0700 Merge branch 'devel-omap-smp-on-up' into omap-for-linus commit 98bb8c3e98267f2aa422bbafce3b734016e7ed02 Merge: d58cc92 3da434a Author: Tony Lindgren Date: Mon Sep 27 10:19:44 2010 -0700 Merge branch 'devel-boards' into omap-for-linus commit d58cc92bda765e62f28b12a8f4627ddee32978f0 Merge: b245f26 78f26e8 Author: Tony Lindgren Date: Mon Sep 27 10:18:00 2010 -0700 Merge branch 'misc_2.6.37' of git://git.pwsan.com/linux-2.6 into omap-for-linus commit b245f26f5e45a6513a318835d83eea895d3ab54b Merge: 5a37e78 3a63833 Author: Tony Lindgren Date: Mon Sep 27 10:15:47 2010 -0700 Merge branch 'devel-omap-misc' into omap-for-linus commit 3a63833ec3002816a759a49ebda4e229c089114e Author: Sukumar Ghorai Date: Wed Sep 15 14:49:23 2010 +0000 omap: mmc: extended to pass host capabilities from board file wires variable is renamed, extended and this single variable to be used to pass the platform capabilities, e.g DDR mode. Also removed the hardcoded value was using as bus-width. Signed-off-by: Sukumar Ghorai Signed-off-by: Tony Lindgren commit 7193559af4243279790fd8dbfef82f8536d9c514 Author: Jarkko Nikula Date: Tue Aug 31 10:12:56 2010 +0000 omap2: McBSP: Remove mux code for OMAP2420 McBSP2 and do cleanups This 'legacy' OMAP2420 McBSP2 muxing code is currently broken after recent conversion to new mux code. The omap_mcbsp_request calling this code is usually called after booting whereas the omap_mux_init_signal is __init marked so null pointer dereference would occur. Fix this by removing the muxing code and let the bootloader or board file to do it if necessary. Remove also omap2_mcbsp_ops as there is no use for it. Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren commit ce3f054bdd4e022fa0ee9d11a215ec32f1caa12d Author: Peter Ujfalusi Date: Tue Aug 31 08:11:44 2010 +0000 omap: McBSP: Do not enable SRG in slave mode McBSP SRG (Sample Rate Generator) and FSG (Frame Sync Generator) is only needed to be enabled, when McBSP is master. In McBSP slave mode, the SRG, and FSG can be kept disabled, which might save some power at the end in this configuration. Signed-off-by: Peter Ujfalusi Acked-by: Jarkko Nikula Signed-off-by: Tony Lindgren commit 813f6c5850521fec8917f61813be59691b60fcdf Author: Subramaniam C.A Date: Tue Aug 24 12:02:28 2010 -0500 omap: i2c: Avoid compilation error in case the header is included multiple times Added defines to avoid compilation error. Signed-off-by: Subramaniam C.A Acked-by: Felipe Balbi Signed-off-by: Tony Lindgren commit 82a0c149b5beb4b91036b9687644db8a913e8fd1 Author: Dmitry Kasatkin Date: Fri Aug 20 13:44:46 2010 +0000 omap: crypto: updates to enable omap aes Updates to enable omap aes Signed-off-by: Dmitry Kasatkin [tony@atomide.com: updated to use CONFIG_ARCH_OMAP2/3 instead of old 24XX/34XX] Signed-off-by: Tony Lindgren commit afc28bc0ec5ebe1b71108735e27283a19feb2e24 Author: Anand Gadiyar Date: Thu Sep 16 16:22:13 2010 -0700 omap: usb: fix build warning Fix this and similar build warnings when building with omap_4430sdp_defconfig. CC arch/arm/mach-omap2/board-4430sdp.o In file included from arch/arm/mach-omap2/board-4430sdp.c:36: arch/arm/plat-omap/include/plat/usb.h:109: warning: return type defaults to 'int' Signed-off-by: Anand Gadiyar Acked-by: Felipe Balbi Signed-off-by: Tony Lindgren commit d0795f912318f65b800c6b619d749c3bf7c930fb Author: Steven Whitehouse Date: Mon Sep 27 15:58:11 2010 +0100 GFS2: Fix journal check for spectator mounts When checking journals for spectator mounts, we cannot rely on the journal being locked, whatever its jid might be. This patch ensures that we always get the journal locks when checking journals for a spectator mount. Signed-off-by: Steven Whitehouse commit 90d51b02fd702d969eb05bd9d4ecc954759fbe23 Author: Pavel Emelyanov Date: Mon Sep 27 14:02:29 2010 +0400 sunrpc: Make the ip_map_cache be per-net Everything that is required for that already exists: * the per-net cache registration with respective proc entries * the context (struct net) is available in all the users Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 4f42d0d53ca4737f82937edb0efc83564c124853 Author: Pavel Emelyanov Date: Mon Sep 27 14:01:58 2010 +0400 sunrpc: Make the /proc/net/rpc appear in net namespaces Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 2f72c9b73730c335381b13e2bd221abe1acea394 Author: Pavel Emelyanov Date: Mon Sep 27 14:01:27 2010 +0400 sunrpc: The per-net skeleton Register empty per-net operations for the sunrpc layer. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 4fb8518bdac8e85f6580ea3f586adf396cd472bc Author: Pavel Emelyanov Date: Mon Sep 27 14:00:49 2010 +0400 sunrpc: Tag svc_xprt with net The transport representation should be per-net of course. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 593ce16b943ea37d4ec62c377b32d7f3f4085e84 Author: Pavel Emelyanov Date: Mon Sep 27 14:00:15 2010 +0400 sunrpc: Add routines that allow registering per-net caches Existing calls do the same, but for the init_net. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 352114f395bd79353faf0bc1506ead94de393f55 Author: Pavel Emelyanov Date: Mon Sep 27 13:59:48 2010 +0400 sunrpc: Add net to pure API calls There are two calls that operate on ip_map_cache and are directly called from the nfsd code. Other places will be handled in a different way. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 3be4479fdf2fb7eb17a4592917ae4b536058b0c7 Author: Pavel Emelyanov Date: Mon Sep 27 13:59:13 2010 +0400 sunrpc: Pass xprt to cached get/put routines They do not require the rqst actually and having the xprt simplifies further patching. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit e3bfca01c1ad378deaee598292bcc7ee19024563 Author: Pavel Emelyanov Date: Mon Sep 27 13:58:42 2010 +0400 sunrpc: Make xprt auth cache release work with the xprt This is done in order to facilitate getting the ip_map_cache from which to put the ip_map. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit bf18ab32ff2a50a3d13d559f26f94ecfba131f24 Author: Pavel Emelyanov Date: Mon Sep 27 13:57:36 2010 +0400 sunrpc: Pass the ip_map_parse's cd to lower calls The target is to have many ip_map_cache-s in the system. This particular patch handles its usage by the ip_map_parse callback. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 64de5ec168d9743903e6ec482c3e9f37af49f9c1 Author: Uwe Kleine-König Date: Tue Sep 21 12:13:34 2010 +0200 ARM: imx: reorganize imx-i2c device registration to use a struct per SoC Signed-off-by: Uwe Kleine-König commit 4697bb926f43b8012ebd111ef43834f42126a0ef Author: Uwe Kleine-König Date: Wed Aug 25 17:37:45 2010 +0200 ARM: imx: dynamically allocate imx-ssi devices Signed-off-by: Uwe Kleine-König commit 5162de08d116fe7bbb912b17d84169983bfa16a8 Author: Uwe Kleine-König Date: Tue Aug 10 22:57:24 2010 +0200 ARM: imx: change the way imx-uarts are registered For mx1_defconfig this yields: add/remove: 1/0 grow/shrink: 1/4 up/down: 49/-108 (-59) function old new delta imx1_imx_uart_data - 48 +48 kernel_config_data 7277 7278 +1 imx_add_imx_uart_1irq 132 128 -4 imx_add_imx_uart_3irq 164 156 -8 scb9328_init 96 64 -32 mx1ads_init 220 156 -64 for mx21_defconfig this yields: add/remove: 1/0 grow/shrink: 0/3 up/down: 64/-52 (12) function old new delta imx21_imx_uart_data - 64 +64 imx_add_imx_uart_3irq 160 156 -4 imx_add_imx_uart_1irq 140 136 -4 mx21ads_board_init 220 176 -44 for a random mx25 config this yields: add/remove: 1/0 grow/shrink: 0/5 up/down: 80/-56 (24) function old new delta imx25_imx_uart_data - 80 +80 imx_add_imx_uart_3irq 160 156 -4 imx_add_imx_uart_1irq 140 136 -4 mx25pdk_init 288 272 -16 eukrea_mbimxsd_baseboard_init 272 256 -16 eukrea_cpuimx25_init 252 236 -16 for mx27_defconfig this yields: add/remove: 1/0 grow/shrink: 0/10 up/down: 96/-280 (-184) function old new delta imx27_imx_uart_data - 96 +96 imx_add_imx_uart_3irq 160 156 -4 imx_add_imx_uart_1irq 140 136 -4 pca100_init 560 544 -16 mx27pdk_init 112 96 -16 mx27lite_init 92 76 -16 eukrea_cpuimx27_init 332 316 -16 pcm038_init 388 348 -40 mxt_td60_board_init 320 280 -40 eukrea_mbimx27_baseboard_init 476 436 -40 mx27ads_board_init 368 280 -88 and finally for mx3_defconfig: add/remove: 2/0 grow/shrink: 0/9 up/down: 128/-344 (-216) function old new delta imx31_imx_uart_data - 80 +80 imx35_imx_uart_data - 48 +48 imx_add_imx_uart_1irq 132 128 -4 imx_add_imx_uart_3irq 164 152 -12 mx31moboard_devboard_init 360 344 -16 mx31lite_db_init 176 160 -16 mx31moboard_smartbot_init 384 360 -24 kzm_board_init 232 208 -24 armadillo5x0_init 392 364 -28 mx31lilly_db_init 248 208 -40 mxc_board_init 3760 3580 -180 Signed-off-by: Uwe Kleine-König commit 35bab0589b9a71533b37280eefa430c21dc102fe Author: Uwe Kleine-König Date: Thu Sep 9 21:02:02 2010 +0200 ARM: imx: change the way spi-imx devices are registered Group soc specific data in a global struct instead of repeating it for each call to imxXX_add_spi_imxX. The structs holding the actual data are placed in .init.constdata and so don't do much harm. Compared to the previous approach this reduces code size to call imx_add_spi_imx. Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König commit a8a05b855291defb1d97a1c3681480e4ca330254 Author: Uwe Kleine-König Date: Tue Aug 3 16:09:35 2010 +0200 ARM: mx51: use IMX_IO_ADDRESS to define MX51_IO_ADDRESS Signed-off-by: Uwe Kleine-König commit 68b5e858dde8dcb0413b7c1d699c1056ecc0934d Author: Uwe Kleine-König Date: Tue Aug 3 16:15:29 2010 +0200 ARM: mx51: fix naming of spi related defines The names used now match the processor's reference manual. Also remove MXC from the interrupt defines to match the other imx platforms. Acked-by: Wolfram Sang Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König commit 5a2db4e3865868c3bf230435fb312524c0e10bd4 Author: Uwe Kleine-König Date: Tue Aug 3 16:03:26 2010 +0200 ARM: mx51: clean up mx51 header This makes the header more look like the other ones, i.e. - sort #defines by value - use lowercase hex constants - use a consistently named header guard Acked-by: Jason Wang Acked-by: Grant Likely Signed-off-by: Uwe Kleine-König commit 6470310865dc8d7ed78f0df8f4c7f7e39c7bab99 Author: Uwe Kleine-König Date: Tue Sep 21 10:46:15 2010 +0200 ARM: mx51_defconfig: add new boards MACH_MX51_3DS and MACH_EUKREA_CPUIMX51 Further remove FIXED_PHY as it breaks the ethernet. VGA_CONSOLE isn't selectable anymore since fb78b51cb11e. EXT3_DEFAULTS_TO_ORDERED defaults to y since aa32a796389b. INOTIFY is gone since 2dfc1cae4c42. CONFIG_DETECT_SOFTLOCKUP is gone since e16bb1d7fe07. Enable TMPFS for udev. KEYS is selected by NFS_USE_KERNEL_DNS Signed-off-by: Uwe Kleine-König commit ea9a9b2ba239792be57d8601f57a4971958ebad5 Author: Uwe Kleine-König Date: Wed Aug 11 07:32:33 2010 +0200 ARM: remove mx31pdk_defconfig This machine is enabled in mx3_defconfig and so mx31pdk_defconfig isn't really useful. Signed-off-by: Uwe Kleine-König commit 801561cdda3027a0d1e0e15a3772e5dab5af7c65 Author: Uwe Kleine-König Date: Fri Aug 13 12:38:56 2010 +0200 ARM: mx3_defconfig: add new machine MACH_EUKREA_CPUIMX35 Furthermore INOTIFY is gone since 2dfc1ca (inotify: remove inotify in kernel interface) Signed-off-by: Uwe Kleine-König commit 0ac15c884eceaf5b0917d4d28d86ff1bb4845d37 Author: Uwe Kleine-König Date: Tue Sep 21 12:35:41 2010 +0200 ARM: mx27_defconfig: enable switches used in mx27 code - enable all mx27 machines (MACH_CPUIMX27, MACH_IMX27_VISSTRIM_M10, MACH_PCA100, MACH_MXT_TD60) including optional features for CPUIMX27 - eukrea_mbimx27-baseboard.c uses TOUCHSCREEN_ADS7846 - mach-cpuimx27.c uses SERIAL_8250 - several machines make use of SPI_IMX (selects SPI_BITBANG) - drop VGA_CONSOLE as this isn't selectable anymore since fb78b51cb11e - several machines make use of USB_ULPI (depends on USB, but don't enable USB_DEVICE_CLASS as it's deprecated) Signed-off-by: Uwe Kleine-König commit e16ddb3ad2b42d7c906748dc3bc3f393ddb94c67 Author: Uwe Kleine-König Date: Tue Aug 24 12:33:23 2010 +0200 ARM: mx5/mx51_babbage: don't use PHYS_OFFSET Signed-off-by: Uwe Kleine-König commit e7a895bf64e9360499d04b80fa33b0ad93546d44 Author: Sascha Hauer Date: Thu Aug 19 11:37:31 2010 +0200 ARM: mx5/mx51_babbage: fix compiler warnings Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König commit a060656240af125b22b1c011944377ff4216ac3e Author: Uwe Kleine-König Date: Fri Aug 13 17:34:05 2010 +0200 ARM: imx: ehci: use void __iomem * to hold i/o addresses This fixes: arch/arm/plat-mxc/ehci.c: In function 'mxc_initialize_usb_hw': arch/arm/plat-mxc/ehci.c:260: warning: assignment makes integer from pointer without a cast arch/arm/plat-mxc/ehci.c:263: warning: assignment makes integer from pointer without a cast arch/arm/plat-mxc/ehci.c:270: warning: assignment makes integer from pointer without a cast Signed-off-by: Uwe Kleine-König commit 556cbdbf23fb43433dba9657ad194a36be18f81b Author: Uwe Kleine-König Date: Sat Aug 14 14:00:16 2010 +0200 ARM: imx: remove #ifdefery for unmerged flexcan driver The flexcan driver was merged as e955cead. Cc: Sascha Hauer Acked-by: Marc Kleine-Budde Cc: Wolfgang Grandegger Signed-off-by: Uwe Kleine-König commit 3efee47db7a191443b529740b35240d63ae1ad20 Author: Fabio Estevam Date: Mon Aug 23 07:32:09 2010 -0700 ARM: mx5/mx51_babbage: Add FEC support Tested it by booting a rootfs via NFS. Signed-off-by: Fabio Estevam Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König commit bd45140d98b60c8ddef8f053ad1645dc1572a15a Author: Sascha Hauer Date: Thu Aug 19 14:08:05 2010 +0200 ARM: mx3/imx35: Add EPIT support Signed-off-by: Sascha Hauer Signed-off-by: Michael Grzeschik Signed-off-by: Uwe Kleine-König commit f2b8901d3efe5e1603c8f6a102b2d5c851c108c6 Author: Sascha Hauer Date: Thu Aug 19 14:08:04 2010 +0200 ARM: imx: Add EPIT support The Enhanced Periodic Interrupt Timer (EPIT) is found on newer i.MX SoCs and can be used as an alternative system timer. Signed-off-by: Sascha Hauer Signed-off-by: Michael Grzeschik Signed-off-by: Uwe Kleine-König commit ab3d8b5859234d1d60b9592e9e9c5eaa9bb55678 Author: Marc Kleine-Budde Date: Wed Aug 18 18:26:42 2010 +0200 ARM: mx3/mx35_3ds: add usb host2 support we still have to toggle two pins on the mc9sdz60: /* MUX3_CTR to be low for USB Host2 DP&DM */ pmic_gpio_set_bit_val(MCU_GPIO_REG_GPIO_CONTROL_2, 6, 0); /* CAN_PWDN to be high for USB Host2 Power&OC */ pmic_gpio_set_bit_val(MCU_GPIO_REG_GPIO_CONTROL_2, 1, 1); until we've a proper driver for the mx9sdz60 in linux we'll do this in barebox (a.k.a. u-boot-v2) Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König commit 79a11b0ba4a4e2f042b143e6ac0813d6fab90626 Author: Marc Kleine-Budde Date: Wed Aug 18 17:56:44 2010 +0200 ARM: mx3/mx35_3ds: rename usb otg platform data variable name Rename the variable holding the usb otg platform data to avoid clash with usb host platform data variable. usb_pdata -> usb_otg_pdata Signed-off-by: Marc Kleine-Budde Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König commit 81aa17207b3c50f32be31a1be949e98c660da5f1 Author: Marc Kleine-Budde Date: Wed Aug 18 18:22:59 2010 +0200 ARM: mx3/mx35_3ds: add NAND flash The mx35_3ds comes with 2 GiByte NAND flash. This adds the corresponding platform device. Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König commit d17e1c1ac3a1e4befecb34c20dc8cb901aa72aba Author: Marc Kleine-Budde Date: Wed Aug 18 18:20:24 2010 +0200 ARM: mx3/mx35_3ds: add physmap-flash NOR at CS0 The mx35_3ds comes with 64 MiByte for NOR flash at CS0, add physmap-flash platform device for it. Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König commit 3b161e51b254fa7bd3a9b0bd7ca7a2ac8ceaae8b Author: Javier Martin Date: Fri Jul 30 10:06:01 2010 +0200 ARM: imx: Add support for Vista Silicon Visstrim_m10 board Vista Silicon Visstrim_m10 i.MX27 based board is used as multimedia streaming server, access control and other custom applications. Signed-off-by: Javier Martin Signed-off-by: Sascha Hauer Signed-off-by: Uwe Kleine-König commit e40051d134f7ee95c8c1f7a3471e84eafc9ab326 Merge: 42099d7 2cc6d2b Author: David S. Miller Date: Mon Sep 27 01:03:03 2010 -0700 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 Conflicts: drivers/net/qlcnic/qlcnic_init.c net/ipv4/ip_output.c commit cf1ff5011614cad540fa872b46552d078b510c38 Author: Takashi Iwai Date: Mon Sep 27 08:13:25 2010 +0200 ASoC: Fix a compile warning for printk format sound/soc/codecs/wm8985.c: In function 'wm8985_hw_params': sound/soc/codecs/wm8985.c:731:2: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' Actually the variable is fine as int. Signed-off-by: Takashi Iwai commit e35d4b119578a054515ccb4ed5dddc4e8a81ec15 Author: Otavio Salvador Date: Sun Sep 26 23:35:06 2010 -0300 ALSA: hda: add Vortex86MX PCI ids Signed-off-by: Otavio Salvador Signed-off-by: Takashi Iwai commit 42099d7a3941d4aaf853caac92b3ae76149fc6e7 Author: Otavio Salvador Date: Sun Sep 26 19:58:07 2010 -0700 net: r6040: store BIOS default MAC in perm_add Signed-off-by: Otavio Salvador Signed-off-by: David S. Miller commit a7855c78a24d6348e989bec616318e68c662e78b Author: Eric Dumazet Date: Thu Sep 23 23:51:51 2010 +0000 net: loopback driver cleanup loopback driver uses dev->ml_priv to store its percpu stats pointer. It uses ugly casts "(void __percpu __force *)" to shut up sparse complains. Define an union to better document we use ml_priv in loopback driver and define a lstats field with appropriate types. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 83180af0b0ea166adf8249f4513beb7355f9b4c9 Author: Eric Dumazet Date: Thu Sep 23 21:46:03 2010 +0000 net: fix rcu use in ip_route_output_slow __in_dev_get_rtnl(dev_out) is called while RTNL is not held, thus triggers a lockdep fault. At this point, we only perform a raw test of dev_out->ip_ptr being NULL, we dont need to make sure ip_ptr cant changed right after. We can use rcu_dereference_raw() for this. Reported-by: Andrew Morton Acked-by: Paul E. McKenney Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 1b4bf461f05d56ced6d6b8f3b4831adc7076f565 Author: Eric Dumazet Date: Thu Sep 23 17:26:35 2010 +0000 rps: allocate rx queues in register_netdevice only Instead of having two places were we allocate dev->_rx, introduce netif_alloc_rx_queues() helper and call it only from register_netdevice(), not from alloc_netdev_mq() Goal is to let drivers change dev->num_rx_queues after allocating netdev and before registering it. This also removes a lot of ifdefs in net/core/dev.c Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 7a91b434e2bad554b709265db7603b1aa52dd92e Author: Eric Dumazet Date: Sun Sep 26 18:53:07 2010 -0700 net: update SOCK_MIN_RCVBUF SOCK_MIN_RCVBUF current value is 256 bytes It doesnt permit to receive the smallest possible frame, considering socket sk_rmem_alloc/sk_rcvbuf account skb truesizes. On 64bit arches, sizeof(struct sk_buff) is 240 bytes. Add the typical 64 bytes of headroom, and we go over the limit. With old kernels and 32bit arches, we were under the limit, if netdriver was doing copybreak. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 807540baae406c84dcb9c1c8ef07a56d2d2ae84a Author: Eric Dumazet Date: Thu Sep 23 05:40:09 2010 +0000 drivers/net: return operator cleanup Change "return (EXPR);" to "return EXPR;" return is not a function, parentheses are not required. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit cb4dfe562cac6fcb544df752e40c1d78000d0712 Author: Eric Dumazet Date: Thu Sep 23 05:06:54 2010 +0000 net: skb_frag_t can be smaller on small arches On 32bit arches, if PAGE_SIZE is smaller than 65536, we can use 16bit offset and size fields. This patch saves 72 bytes per skb on i386, or 128 bytes after rounding. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit c5256c51232d8312755e8de2b514c426b19b101a Author: Eric Dumazet Date: Thu Sep 23 00:46:11 2010 +0000 net: propagate NETIF_F_HIGHDMA to vlans Automatically allows vlans to get NETIF_F_HIGHDMA if underlying device supports it. On 32bit arches (and more precisely if CONFIG_HIGHMEM is enabled), it can help to reduce cost of illegal_highdma() and __skb_linearize() calls. Tested on tg3 , bnx2, bonding, this worked very well. This is a generalization of a patch provided by Yi Zou & Jeff Kirsher. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 25417922694e60f04cd4dc8448ada9236f18c532 Author: Justin P. Mattock Date: Fri Sep 24 17:08:56 2010 -0700 staging: update web addresses in staging The below patch, is a simple fix to a broken web address not using a period in it's name. Signed-off-by: Justin P. Mattock Signed-off-by: Greg Kroah-Hartman commit 6afd1198d111ccff4c91be96d8c631afc29325e7 Author: Henry Ptasinski Date: Sun Sep 26 13:19:44 2010 -0700 staging: brcm80211: Make compiling of brcm80211.ko and brcmfmac.ko mutually exclusive. Temporary fix until utils get cleaned up. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 76a3ccabf25bc3a52c3377bfdfc3ecc16499180b Author: Henry Ptasinski Date: Sun Sep 26 13:18:38 2010 -0700 staging: brcm80211: Fix compile issue when BRCM80211_PCI is not set. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 2cc857ffec1e7540155c5ab90e622e5acc28d136 Author: Vasily Khoruzhick Date: Tue Sep 7 17:32:26 2010 +0300 ARM: rx1950: Add UDA1380 to i2c devices list Signed-off-by: Vasily Khoruzhick Signed-off-by: Ben Dooks commit 9c1a47cf1e8978394399198b6b296c10f3a8dbfe Author: Vasily Khoruzhick Date: Tue Sep 7 17:32:25 2010 +0300 ARM: rx1950: Add LEDs support Signed-off-by: Vasily Khoruzhick Signed-off-by: Ben Dooks commit ecab01d46c68370f347b2c1125cb90070813c799 Author: Vasily Khoruzhick Date: Mon Sep 27 00:17:48 2010 +0300 ARM: rx1950: Add battery device This patch adds registration of appropriate device for s3c-adc-battery driver, so battery monitoring and charging are available on RX1950 PDA now. Signed-off-by: Vasily Khoruzhick Signed-off-by: Ben Dooks commit 48cd65a6a020292e1ab5d0f5ba96571c858964e6 Author: Vasily Khoruzhick Date: Mon Sep 27 00:27:41 2010 +0300 ARM: h1940: Implement mmc_power function This patch implements h1940-specific set_power callback for s3cmci driver, so card power can be disabled when card is not inserted or before suspend. Without this patch PDA consumes power in suspend when card is inserted. Signed-off-by: Vasily Khoruzhick Signed-off-by: Ben Dooks commit ced270fa893735363f74bf96e0a8a05ec330d04d Author: Chris Wilson Date: Sun Sep 26 22:47:46 2010 +0100 drm/i915: Ensure that the mode change flushing is currently uninterruptible Introduced by 48b956c5, I had thought I had already fixed this. Oh well. Reported-by: Sitsofe Wheeler Signed-off-by: Chris Wilson commit 53b2087d218c100657bddcb8ae887fa07862fb81 Author: Chris Wilson Date: Sun Sep 26 22:21:10 2010 +0100 drm/i915: fix debugging compilation error from previous commit There is no equivalent to mutex_destroy() for spinlocks so just delete the code. Signed-off-by: Chris Wilson commit 74ec1e1269eba65b5f8e810cf0363ddb7aa64de5 Author: J. Bruce Fields Date: Fri Sep 24 17:43:59 2010 -0400 nfsd: fix /proc/net/rpc/nfsd.export/content display Note with "first" always 0, and "lastflags" initially 0, we always dump a spurious set of 0 flags at the start, among other problems. Fix. And attempt to make the code a little more obvious. Signed-off-by: J. Bruce Fields commit 0890b5880df6a4989336add11f3a22122b26d9e1 Author: Arnd Bergmann Date: Sat Sep 11 18:18:22 2010 +0200 cris: autoconvert trivial BKL users All uses of the big kernel lock in the cris architecture are for ioctl and open functions of character device drivers, which can be trivially converted to a per-driver mutex. Most of these are probably unnecessary, so it may make sense to audit them and eventually remove the extra mutex introduced by this patch. Signed-off-by: Arnd Bergmann Cc: Mikael Starvik Cc: Jesper Nilsson Cc: linux-cris-kernel@axis.com commit 80eb4a6f89bbf8e8318e108701bad11451efb2df Author: Arnd Bergmann Date: Sat Sep 11 18:10:10 2010 +0200 alpha: kill big kernel lock All uses of the BKL on alpha are totally bogus, nothing is really protected by this. Remove the remaining users so we don't have to mark alpha as 'depends on BKL'. Signed-off-by: Arnd Bergmann Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: linux-alpha@vger.kernel.org commit 6117d2130c9da5977e975ad9fa607b86d6516a44 Author: Arnd Bergmann Date: Sat Jun 5 13:28:09 2010 +0200 isapnp: BKL removal Remove BKL use from isapnp_proc_bus_lseek(), like was done for proc_bus_pci_lseek() a long time ago and recently for Zorro by Geert Uytterhoeven. Signed-off-by: Arnd Bergmann Cc: Geert Uytterhoeven Cc: Jaroslav Kysela commit cfdb00a77ea7d5fb922fd985e5dfbcb36873411b Author: Arnd Bergmann Date: Mon May 31 22:38:40 2010 +0200 s390/block: kill the big kernel lock The dasd and dcssblk drivers gained the big kernel lock in the recent pushdown from the block layer, but they don't really need it, so remove the calls without a replacement. Signed-off-by: Arnd Bergmann Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux-s390@vger.kernel.org commit 1c25595f8d31392b8c36b54c624d01591dbfb87b Author: Chris Wilson Date: Sun Sep 26 11:03:27 2010 +0100 drm/i915: Convert the file mutex into a spinlock Daniel Vetter pointed out that in this case is would be clearer and cleaner to use a spinlock instead of a mutex to protect the per-file request list manipulation. Make it so. Signed-off-by: Chris Wilson commit 45ff46c54a31bf8924b61e3e3411654410a3b5c3 Author: Daniel Vetter Date: Sun Sep 26 00:24:48 2010 +0200 drm: readd drm_lock_free in drm_unlock I've accidently killed a little bit too much in commit 1da3f87ebb7edb3e0b829ec4bbe5fb3d9d93986f Author: Daniel Vetter Date: Mon Aug 23 22:53:24 2010 +0200 drm: kill kernel_context_switch callbacks Note to self: Next time also test with AIGLX disabled. Reported-and-Tested-by: Andy Furniss Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30374 Signed-off-by: Daniel Vetter Signed-off-by: Dave Airlie commit 504c6d1b44bc6e694bdba8d9a2a4e046275b5e2b Author: Vivek Goyal Date: Sun Sep 26 12:23:25 2010 +0900 amiga floppy: Compile failure fixes o Compile fixes for amiga floppy driver. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 14477095abc661a9f195ca4733bb739c54794b32 Author: Vasily Khoruzhick Date: Wed Sep 8 12:39:46 2010 +0300 ARM: h1940: Use gpiolib for latch access This patch adds gpiolib support for h1940 latch. With this patch it's possible to use leds-gpio and uda1380 drivers (they require gpiolib support for appropriate pins). And now it's possible to drop leds-h1940 driver. Signed-off-by: Vasily Khoruzhick Signed-off-by: Ben Dooks commit 447da18742b170b8e09ac71edf63c5798d2dbb0b Author: Daniel Vetter Date: Fri Sep 24 21:49:27 2010 +0200 drm/i915: kill ring->setup_status_page It's the same code, essentially, so kill all copies safe one unified version. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 79f321b7e676bd54f563c5ce513588aa90b2cc21 Author: Daniel Vetter Date: Fri Sep 24 21:20:10 2010 +0200 drm/i915: kill ring->get_active_head All functions are extremely similar, so fold them into one generic implementation. This function isn't used anyway, because there's not yet a bsd ring error state dumper. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 3d281d8cca1acb2483444e0d1519c8ab6dda3a47 Author: Daniel Vetter Date: Fri Sep 24 21:14:22 2010 +0200 drm/i915: kill per-ring macros Two macros that use a base address for HWS_PGA were missing, add them. Also switch the remaining users of *_ACTHD to the ring-base one. Kill the other ring-specific macros because they're now unused. Signed-off-by: Daniel Vetter [ickle: And silence checkpatch whilst in the vicinity] Signed-off-by: Chris Wilson commit bf7e0e1268f72ea1687140603a910eeaca031fa1 Author: Daniel Vetter Date: Fri Sep 24 21:08:29 2010 +0200 drm/i915: fix ACTHD for gen <= 3 This was mixed up in the following patch: commit a6c45cf013a57e32ddae43dd4ac911eb4a3919fd Author: Chris Wilson Date: Fri Sep 17 00:32:17 2010 +0100 drm/i915: INTEL_INFO->gen supercedes i8xx, i9xx, i965g Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 95375b7f9de429100b6e72df5c3abd9a3aaf266c Author: Daniel Vetter Date: Fri Sep 24 20:54:39 2010 +0200 drm/i915: kill now unnecessary gtt defines from i915_reg.h Everything is now handled in intel-gtt.h so these defines are only confusing. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 76c1dec1979d9b552aab9600eb898ccec394fbbc Author: Chris Wilson Date: Sat Sep 25 11:22:51 2010 +0100 drm/i915: Make the mutex_lock interruptible on ioctl paths ... and combine it with the wedged completion handler. Signed-off-by: Chris Wilson commit 30dbf0c07ff4e3e21b827e2a9d6ff7eb34458819 Author: Chris Wilson Date: Sat Sep 25 10:19:17 2010 +0100 drm/i915: Adjust hangcheck EIO semantics Owain Ainsworth reported an issue between the interaction of the hangcheck and userspace immediately (and permanently) falling back to s/w rasterisation. In order to break the mutex and begin resetting the GPU, we must abort the current operation (usually within the wait) and climb sufficiently far back up the call chain to drop the mutex. In his implementation, Owain has a loop within the ioctl handler to detect the hang and then sleep until the error handler has run. I've chosen to return to userspace and report an EAGAIN which should trigger the userspace ioctl handler to repeat the call (simply because it felt less invasive...). Before hitting a wedged GPU, we then wait upon completion of the error handler. Reported-by: Owain G. Ainsworth Signed-off-by: Chris Wilson commit e4ecda1b60bfd2333c12bbe71b153d3b6bdc831a Author: Mark Lord Date: Sat Sep 25 11:17:22 2010 +0200 Fix compile error in blk-exec.c for !CONFIG_DETECT_HUNG_TASK Ensure that 'sysctl_hung_task_timeout_secs' is defined even when CONFIG_DETECT_HUNG_TASK is not set. This way we can safely reference it without need for ifdefs in the code elsewhere. eg. in block/blk-exec.c Signed-off-by: Mark Lord Signed-off-by: Jens Axboe commit 35e60448b98be847a7066134442789222a1916ea Merge: fc38a8a 4a109cc Author: Mark Brown Date: Sat Sep 25 09:15:39 2010 +0100 Merge branch 'for-2.6.36' into for-2.6.37 commit f41cc2a85d52ac6971299922084ac5ac59dc339d Author: Vitaliy Kulikov Date: Fri Sep 24 16:21:53 2010 -0500 ALSA: hda - Fix switching between dmic and mic using the same mux on IDT/STAC Fix bug in switching between dmic and mic when both use the same mux. Signed-off-by: Vitaliy Kulikov Signed-off-by: Takashi Iwai commit bba50b99b2410e863b38afdcd0280eb37f8a8bcc Author: Greg Rose Date: Thu Sep 23 12:46:25 2010 +0000 ixgbevf: Refactor ring parameter re-size The function to resize the Tx/Rx rings had the potential to dereference a NULL pointer and the code would attempt to resize the Tx ring even if the Rx ring allocation had failed. This would cause some confusion in the return code semantics. Fixed up to just unwind the allocations if any of them fail and return an error. Signed-off-by: Greg Rose Tested-by: Emil Tantilov Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 543876c92837a8b208b5c99ec225c1f5a581900e Author: Giuseppe Cavallaro Date: Fri Sep 24 21:27:41 2010 -0700 stmmac: review the wake-up support If the PM support is available this is passed through the platform instead to be hard-coded in the core files. WoL on Magic Frame can be enabled by using the ethtool support. Signed-off-by: Giuseppe Cavallaro Signed-off-by: David S. Miller commit 77555ee7228234257957fd54daa0b69178906320 Author: Masayuki Ohtake Date: Tue Sep 21 01:44:11 2010 +0000 net: Add Gigabit Ethernet driver of Topcliff PCH Signed-off-by: Masayuki Ohtake Signed-off-by: David S. Miller commit 3b4b682becdfa9f42321aa024d5cc84f71f06d8c Author: Ma Ling Date: Fri Sep 17 03:12:40 2010 +0800 x86, mem: Optimize memmove for small size and unaligned cases movs instruction will combine data to accelerate moving data, however we need to concern two cases about it. 1. movs instruction need long lantency to startup, so here we use general mov instruction to copy data. 2. movs instruction is not good for unaligned case, even if src offset is 0x10, dest offset is 0x0, we avoid and handle the case by general mov instruction. Signed-off-by: Ma Ling LKML-Reference: <1284664360-6138-1-git-send-email-ling.ma@intel.com> Signed-off-by: H. Peter Anvin commit 3da434acd4f7c7f5aeebd44fed42bf5ed9adfc44 Author: Ricardo Salveti de Araujo Date: Thu Sep 23 18:22:49 2010 -0700 omap4: board-omap4panda: adding leds status1 and status2 At Pandaboard we have 2 status leds, so adding them with similar usage as we have for Beagleboard (heartbeat and mmc0). The patch basically adds the platform data required by leds-gpio driver. Signed-off-by: Ricardo Salveti de Araujo Signed-off-by: Tony Lindgren commit 94ce7a6628ccaa71f0a5f26f6ff7dc7b0f0f65b7 Author: Shubhrajyoti Datta Date: Thu Sep 23 18:22:49 2010 -0700 omap: 4430sdp board support for proximity sensor omap 4430sdp board support for the proximity sensor via GPIO keys. The proximity sensor is connected to GPIO and is registered as a GPIO key. - Making the default state of the sensor off at bootup - The init is called before platform_add_devices Signed-off-by: Shubhrajyoti D Signed-off-by: Tony Lindgren commit 5a37e7840f445b551b8bdba3b4f10f7ea365dcfc Merge: 39cdd14 e7193cc Author: Tony Lindgren Date: Fri Sep 24 16:01:57 2010 -0700 Merge branch 'omap_for_2.6.37' of git://dev.omapzoom.org/pub/scm/santosh/kernel-omap4-base into omap-for-linus commit 59104f062435c7816e39ee5ed504a69cb8037f10 Author: Eric Dumazet Date: Mon Sep 20 20:16:27 2010 +0000 ip: take care of last fragment in ip_append_data While investigating a bit, I found ip_fragment() slow path was taken because ip_append_data() provides following layout for a send(MTU + N*(MTU - 20)) syscall : - one skb with 1500 (mtu) bytes - N fragments of 1480 (mtu-20) bytes (before adding IP header) last fragment gets 17 bytes of trail data because of following bit: if (datalen == length + fraggap) alloclen += rt->dst.trailer_len; Then esp4 adds 16 bytes of data (while trailer_len is 17... hmm... another bug ?) In ip_fragment(), we notice last fragment is too big (1496 + 20) > mtu, so we take slow path, building another skb chain. In order to avoid taking slow path, we should correct ip_append_data() to make sure last fragment has real trail space, under mtu... Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit a210080195c95ebca2a517ee3057d71607aa65e0 Author: Rafael J. Wysocki Date: Thu Sep 16 00:30:43 2010 +0200 ACPI / ACPICA: Defer enabling of runtime GPEs (v3) The current ACPI GPEs initialization code has a problem that it enables some GPEs pointed to by device _PRW methods, generally intended for signaling wakeup events (system or device wakeup). These GPEs are then almost immediately disabled by the ACPI namespace scanning code with the help of acpi_gpe_can_wake(), but it would be better not to enable them at all until really necessary. Modify the initialization of GPEs so that the ones that have associated _Lxx or _Exx methods and are not pointed to by any _PRW methods will be enabled after the namespace scan is complete. Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown commit f787a5f59e1b0e320a6b0a37e9a2e306551d1e40 Author: Chris Wilson Date: Fri Sep 24 16:02:42 2010 +0100 drm/i915: Only hold a process-local lock whilst throttling. Avoid cause latencies in other clients by not taking the global struct mutex and moving the per-client request manipulation a local per-client mutex. For example, this allows a compositor to schedule a page-flip (through X) whilst an OpenGL application is monopolising the GPU. Signed-off-by: Chris Wilson commit 9cf13668a5f8165a81349defc5f82c57a4a8279b Author: Rajkumar Manoharan Date: Tue Sep 21 12:58:09 2010 +0530 ath9k_htc: Fix beacon distribution in IBSS mode This patch ensures fair beacon distribution in IBSS mode by configuring proper CWmin based on slot time. Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit 9094537c3a9ef9e127e844254a74186735c9a90b Author: Vasanthakumar Thiagarajan Date: Mon Sep 20 22:54:46 2010 -0700 ath9k: Fix tx struck state with paprd Paprd needs to be done only on active chains(not for all the chains that hw can support). The paprd training frames which are sent for inactive chains would be hanging on the hw queue without getting transmitted and would make the connection so unstable. This issue happens only with the hw which supports paprd cal(ar9003). Signed-off-by: Vasanthakumar Thiagarajan Cc: stable@kernel.org Signed-off-by: John W. Linville commit eb7d3066cf864342e8ae6a5c1126a1602c4d06c0 Author: Christian Lamparter Date: Tue Sep 21 21:36:18 2010 +0200 mac80211: clear txflags for ps-filtered frames This patch fixes stale mac80211_tx_control_flags for filtered / retried frames. Because ieee80211_handle_filtered_frame feeds skbs back into the tx path, they have to be stripped of some tx flags so they won't confuse the stack, driver or device. Cc: Acked-by: Johannes Berg Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit ed627be38a1a07c6986a9f17c299f6afc86ac6b7 Author: Dan Carpenter Date: Sun Sep 12 01:48:33 2010 +0200 airo: remove "basic_rate" module option The "basic_rate" module option is not implemented correctly. If the rate was set to zero it was supposed to set it to "basic_rate | 0x80". Unfortunately the check to see if what zero was wrong and it checked "!ai->config.rates" (which is always false) instead of "!ai->config.rates[i]". This option was just used for development and it wasn't documented anywhere. Instead of fixing it, we can just remove it. Reported-by: Stanislaw Gruszka Signed-off-by: Dan Carpenter Signed-off-by: John W. Linville commit 651b52254fc061f02d965524e71de4333a009a5a Author: Jouni Malinen Date: Sat Aug 28 19:37:51 2010 +0300 mac80211: Add DS Parameter Set into Probe Request on 2.4 GHz IEEE Std 802.11k-2008 added DS Parameter Set information element into Probe Request frames as an optional information on 2.4 GHz band (and mandatory, if radio measurements are enabled). This allows APs to filter out Probe Request frames that may be received from neighboring overlapping channels and by doing so, reduce the number of unnecessary frames in the air. Make mac80211 add this IE into Probe Request frames whenever the channel is known (i.e., whenever hwscan is not used). Signed-off-by: Jouni Malinen Acked-by: Johannes Berg Signed-off-by: John W. Linville commit 8dcb20038ade81f9a87c024e7f12ec74f0e95f33 Author: Jouni Malinen Date: Sat Aug 28 19:36:10 2010 +0300 mac80211: Filter ProbeReq SuppRates based on TX rate mask If the TX rate set has been masked, the removed rates can also be removed from the Supported Rates and Extended Supported Rates IEs in Probe Request frames. Signed-off-by: Jouni Malinen Signed-off-by: John W. Linville commit 29ad2facd47f8e37eab8b156e2c384fa181c8b4a Merge: 6e5c2b4 cd87a2d Author: John W. Linville Date: Fri Sep 24 15:52:34 2010 -0400 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 Conflicts: drivers/net/wireless/ath/ath5k/base.c net/mac80211/main.c commit 639e2f2aa76eefaf22078dccbbf2f3483f587aa7 Author: Vivek Goyal Date: Fri Sep 24 20:35:45 2010 +0200 atari floppy: Stop sharing request queue across multiple gendisks o Use one request queue per gendisk instead of sharing the queue. o Don't have hardware. No compile testing or run time testing done. Completely untested. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 786029ff810ff4a2fd52c0462713985a415417ab Author: Vivek Goyal Date: Fri Sep 24 20:35:44 2010 +0200 amiga floppy: Stop sharing request queue across multiple gendisks o Use one request queue per gendisk instead of sharing request queue o Don't have hardware. No compile testing or run time testing done. Completely untested. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit c49825facfd4969585224a896a5e717f88450cad Author: Malahal Naineni Date: Fri Sep 24 20:25:49 2010 +0200 block: set the bounce_pfn to the actual DMA limit rather than to max memory The bounce_pfn of the request queue in 64 bit systems is set to the current max_low_pfn. Adding more memory later makes this incorrect. Memory allocated beyond this boot time max_low_pfn appear to require bounce buffers (bounce buffers are actually not allocated but used in calculating segments that may result in "over max segments limit" errors). Signed-off-by: Malahal Naineni Signed-off-by: Jens Axboe commit 4b285c3f3f0082f7fb765050f07a864474459bf0 Author: Jarkko Nikula Date: Thu Sep 23 19:11:54 2010 +0300 omap: zoom: Move new code introduced by ASoC m-c to board-zoom-peripherals ASoC Multi-Component Support moves some code from sound/soc/omap/zoom2.c into arch/arm/mach-omap2/board-zoom2.c. However, that code should go to board-zoom-peripherals.c instead as there is common code and registration for zoom boards. Signed-off-by: Jarkko Nikula Cc: Vikram Pandita Cc: Lopez Cruz, Misael Cc: Jorge Eduardo Candelaria Cc: Tony Lindgren Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 2c8e992716b3adff52846e2280731b533db592ff Author: Jarkko Nikula Date: Thu Sep 23 19:11:53 2010 +0300 omap: zoom2: Fix ASoC multi-component build breakage by removing dead code ASoC Multi-Component Support patch removes #if 0 in board-zoom2.c that was used to protect some uncompiling dead code. Remove that code as it seems to be here quite some time since commit 479f12c. Signed-off-by: Jarkko Nikula Cc: Vikram Pandita Cc: Tony Lindgren Tested-by: Misael Lopez Cruz Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit e6649cc62949f1ed473bf1131fa425cfe72d3f64 Author: Mauro Carvalho Chehab Date: Fri Sep 24 11:53:52 2010 -0300 i7300_edac: Properly initialize per-csrow memory size Due to the current edac-core limits, we cannot represent a per-channel memory size, for FB-DIMM drivers. So, we need to sum-up all values for each slot, in order to properly represent the total amount of memory found by the i7300 driver. Signed-off-by: Mauro Carvalho Chehab commit 1aa4a7b6b082adbfa704988dd098bc96b8837d5a Author: Mauro Carvalho Chehab Date: Fri Sep 24 11:29:02 2010 -0300 V4L/DVB: i7300_edac: better initialize page counts It is still somewhat fake, as the pages may not be on this exact order, and may even be used in mirror mode, but this is a best guess than the other random fake values. Signed-off-by: Mauro Carvalho Chehab commit 78f26e872f77b6312273216de1a8f836c6f2e143 Author: Hema HK Date: Fri Sep 24 10:23:19 2010 -0600 OMAP: hwmod: Set autoidle after smartidle during _sysc_enable OMAP USBOTG module has a requirement to set the autoidle bit only after setting smartidle bit. Modified the _sys_enable api to set the smartidle first and then the autoidle bit. Setting this will not have any impact on the other modules. Signed-off-by: Hema HK Signed-off-by: Partha Basak Cc: Felipe Balbi Cc: Tony Lindgren Cc: Kevin Hilman Acked-by: Benoit Cousson Signed-off-by: Paul Walmsley commit ff173d45525701d65d394cb8687e71845bfb34dc Author: Rajendra Nayak Date: Fri Sep 24 10:23:18 2010 -0600 OMAP4: PM: Declare idle modules as functional too The omap4_cm_wait_module_ready function would only check for the modules to be completely functional before declaring them ready to be accessed. There might also be instances where in the module is actually in idle (under h/w control) but should still be declared accessible, as the h/w control would make it functional when needed. Hence make omap4_cm_wait_module_ready return true in case the module is fully functional *or* in idle state. Fail only if the module is fully disabled or stuck intransition. The explaination from the TRM for the idlest bits on OMAP4 is as below for quick reference Module idle state: 0x0 func: Module is fully functional, including OCP 0x1 trans: Module is performing transition: wakeup, or sleep, or sleep abortion 0x2 idle: Module is in Idle mode (only OCP part). It is functional if using separate functional clock 0x3 disabled: Module is disabled and cannot be accessed Signed-off-by: Rajendra Nayak Signed-off-by: Partha Basak Signed-off-by: Benoit Cousson Signed-off-by: Paul Walmsley commit f39f4898ac72fec92066f15aef0e7485013482ea Author: Kishon Vijay Abraham I Date: Fri Sep 24 10:23:18 2010 -0600 OMAP: omap_device: Fix to support multiple hwmods for a single device Currently there is a bug in the existing omap_device core code when extracting the hwmod structures passed to omap_device_build_ss(). This bug gets exposed only when passing multiple hwmod structures to omap_device_build_ss() resulting in incorrect extraction from second hwmod structure. This fix uses the pointer to pointer to omap_hwmod structure (array of pointers to omap_hwmod structure) passed to omap_device_build_ss() to correctly extract the appropriate omap_hwmod structure. This patch has been created and tested on lo/master and mainline. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Paul Walmsley Acked-by: Benoit Cousson Acked-by: Kevin Hilman Cc: Charulatha V Cc: Shubhrajyoti D commit fc38a8a11d332549e4de0537ba34f197cf42788b Author: Dimitris Papastamos Date: Fri Sep 24 13:02:07 2010 +0100 ASoC: WM8985: Remove unneeded declaration. We are not using the private data in this function, so get rid of it. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 6c18c91b3a6db6169998b54df12c9d53e74999f3 Author: Victor Rodriguez Date: Thu Sep 23 11:28:40 2010 -0500 davinci: Initial support for Omapl138-Hawkboard This patch adds initial support for the Hawkboard-L138 system It is under the machine name "omapl138_hawkboard". This system is based on the da850 davinci CPU architecture. Information on these system may be found at http://www.hawkboard.org. Basic support for the UART console is included in this patch. It's tested with latest Angstrom File Systems like ramdisk from http://alturl.com/imb45. Signed-off-by: Victor Rodriguez Signed-off-by: Kevin Hilman commit 2a7dae04f3a5966ade5086ebd2e09f170fd0e085 Author: Michael Williamson Date: Fri Sep 17 09:56:06 2010 -0400 davinci: MityDSP-L138/MityARM-1808 read MAC address from I2C Prom For the MityDSP-L138/MityARM-1808 SOMS, read the factory assigned MAC address from the onboard I2C EPROM and assign it to the emac device during platform initialization. Signed-off-by: Michael Williamson Signed-off-by: Kevin Hilman commit 1f4640ae7c299ce87968cb3923c5f85254d68c37 Author: Cyril Chemparathy Date: Mon Sep 20 12:26:44 2010 -0400 davinci: add tnetv107x touchscreen platform device This patch adds a platform device definition for tnetv107x's touchscreen controller. Signed-off-by: Cyril Chemparathy Signed-off-by: Kevin Hilman commit 0fa6c773ad6e9ac6cfa6bad0a729e18babd602c3 Author: Cyril Chemparathy Date: Mon Sep 20 12:26:43 2010 -0400 input: add driver for tnetv107x touchscreen controller This patch adds support for tnetv107x's on-chip touchscreen controller. Signed-off-by: Cyril Chemparathy Acked-by: Dmitry Torokhov Signed-off-by: Kevin Hilman commit a1b4440314edca8e2016f2819d4655453e6aff44 Author: Cyril Chemparathy Date: Mon Sep 20 12:26:42 2010 -0400 davinci: add keypad config for tnetv107x evm board This patch adds evm board specific keymap definitions and controller configuration data for on-chip keypad controller on tnetv107x silicon. Signed-off-by: Cyril Chemparathy Signed-off-by: Kevin Hilman commit d45b1ed4e47d2f585d2acdf5b957bfc5ff465aab Author: Cyril Chemparathy Date: Mon Sep 20 12:26:41 2010 -0400 davinci: add tnetv107x keypad platform device This patch adds a platform device definition for tnetv107x's keypad controller. Signed-off-by: Cyril Chemparathy Signed-off-by: Kevin Hilman commit 70614084402ae40aef40019b991bf44d10093122 Author: Cyril Chemparathy Date: Mon Sep 20 12:26:40 2010 -0400 input: add driver for tnetv107x on-chip keypad controller This patch adds support for tnetv107x's on-chip keypad controller. Signed-off-by: Cyril Chemparathy Acked-by: Dmitry Torokhov Signed-off-by: Kevin Hilman commit d4ef0d42313dffa1feb94142b4c4286169fd1b0e Author: Cyril Chemparathy Date: Wed Sep 15 10:11:30 2010 -0400 net: davinci_emac: cleanup unused cpdma code Having switched over to the newly introduced cpdma layer, this patch now removes a whole bunch of code that is now unused. This patch has been maintained separate strictly for reasons of readability. Signed-off-by: Cyril Chemparathy Acked-by: David S. Miller Tested-by: Michael Williamson Tested-by: Caglar Akyuz Signed-off-by: Kevin Hilman commit 3ef0fdb2342cf58f617ce2bdcd133978629c2403 Author: Cyril Chemparathy Date: Wed Sep 15 10:11:29 2010 -0400 net: davinci_emac: switch to new cpdma layer This patch hooks up the emac driver with the newly separated cpdma driver. Key differences introduced here: - The old buffer list scheme is no longer required - The original code maintained mac address per rx channel, even if only one rx channel was being used. With this change, mac address is maintained device wide. If support for multiple rx channels is added in future, this will need to be reworked a bit. - The new CPDMA code handles short packets better than before. The earlier code was adjusting the length up, without ensuring that the tail end of the padding was cleared - a possible security issue. This has been fixed to use skb_padto(). Signed-off-by: Cyril Chemparathy Tested-by: Michael Williamson Tested-by: Caglar Akyuz Signed-off-by: Kevin Hilman commit ef8c2dab01b6e30c4b2ca3ea3b8db33430493589 Author: Cyril Chemparathy Date: Wed Sep 15 10:11:28 2010 -0400 net: davinci_emac: separate out cpdma code In addition to being embedded into the EMAC controller, the CPDMA hardware block is used in TI's CPSW switch controller. Fortunately, the programming interface to this hardware block remains pretty nicely consistent across these devices. This patch adds a new CPDMA services layer, which can then be reused across EMAC and CPSW drivers. Signed-off-by: Cyril Chemparathy Tested-by: Michael Williamson Tested-by: Caglar Akyuz Signed-off-by: Kevin Hilman commit 7b3742aff1a9946b9b25f16d6a7ca22c10926391 Author: Cyril Chemparathy Date: Wed Sep 15 10:11:27 2010 -0400 net: davinci_emac: cleanup unused mdio emac code This patch removes code that has been rendered useless by the previous patches in this series. Signed-off-by: Cyril Chemparathy Acked-by: David S. Miller Tested-by: Michael Williamson Tested-by: Caglar Akyuz Signed-off-by: Kevin Hilman commit 3b2a40a0a05cdf4f00f100c55b463d86ae14c383 Author: Cyril Chemparathy Date: Wed Sep 15 10:11:26 2010 -0400 omap: cleanup unused davinci mdio arch code This patch removes davinci architecture code that has now been rendered useless by the previous patches in the MDIO separation series. Signed-off-by: Cyril Chemparathy Acked-by: David S. Miller Acked-by: Tony Lindgren Signed-off-by: Kevin Hilman commit 782f2d782771484bb951be1c394ca2128ed7774e Author: Cyril Chemparathy Date: Wed Sep 15 10:11:25 2010 -0400 davinci: cleanup mdio arch code and switch to phy_id This patch removes davinci architecture code that has now been rendered useless by the previous patches in the MDIO separation series. In addition, the earlier phy_mask definitions have been replaced with corresponding phy_id definitions. Signed-off-by: Cyril Chemparathy Tested-by: Michael Williamson Tested-by: Caglar Akyuz Signed-off-by: Kevin Hilman commit 5d69e0076a726588265af040b21ac3f8266856d1 Author: Cyril Chemparathy Date: Wed Sep 15 10:11:24 2010 -0400 net: davinci_emac: switch to new mdio This patch switches the emac implementation over to the newly separated MDIO driver. With this, the mdio bus frequency defaults to a safe 2.2MHz. Boards may optionally specify a bus frequency via platform data. The phy identification scheme has been modified to use a phy bus id instead of a mask. This largely serves to eliminate the "phy search" code in emac init. Signed-off-by: Cyril Chemparathy Acked-by: David S. Miller Tested-by: Michael Williamson Tested-by: Caglar Akyuz Signed-off-by: Kevin Hilman commit 433cdb0ac4c4660e98412e441589a7a712010325 Author: Cyril Chemparathy Date: Wed Sep 15 10:11:23 2010 -0400 omap: add mdio platform devices This patch adds mdio platform devices on SoCs that have the necessary hardware. Clock lookup entries (aliases) have also been added, so that the MDIO and EMAC drivers can independently enable/disable a shared underlying clock. Further, the EMAC MMR region has been split down into separate MDIO and EMAC regions. Signed-off-by: Cyril Chemparathy Acked-by: David S. Miller Acked-by: Tony Lindgren Signed-off-by: Kevin Hilman commit d22960c8bbb8f685c2d8c4051e1f335ab13dca24 Author: Cyril Chemparathy Date: Wed Sep 15 10:11:22 2010 -0400 davinci: add mdio platform devices This patch adds mdio platform devices on SoCs that have the necessary hardware. Clock lookup entries (aliases) have also been added, so that the MDIO and EMAC drivers can independently enable/disable a shared underlying clock. Further, the EMAC MMR region has been split down into separate MDIO and EMAC regions. Signed-off-by: Cyril Chemparathy Acked-by: David S. Miller Tested-by: Michael Williamson Tested-by: Caglar Akyuz Signed-off-by: Kevin Hilman commit f20136eb03a1dbdfb04f3c62fd11c0d02d02b726 Author: Cyril Chemparathy Date: Wed Sep 15 10:11:21 2010 -0400 net: davinci_emac: separate out davinci mdio Davinci's MDIO controller is present on other TI devices, without an accompanying EMAC. For example, on tnetv107x, the same MDIO module is used in conjunction with a 3-port switch hardware. By separating the MDIO controller code into its own platform driver, this patch allows common logic to be reused on such platforms. Signed-off-by: Cyril Chemparathy Tested-by: Michael Williamson Tested-by: Caglar Akyuz Signed-off-by: Kevin Hilman commit 8774882394190fe52d1df449b1e1c6cff9c3088c Author: Michael Williamson Date: Sun Sep 5 13:29:39 2010 -0400 davinci: Add I2C0 devices to MityDSP-L138/MityARM-1808 platform This patch adds the i2c0 bus and attached devices to the MityDSP-L138 and MityARM-1808 davinci SoM. Included is a TPS65023 voltage regulator needed for power management and a small 24c02 EPROM that contains factory configuration data. Signed-off-by: Michael Williamson Signed-off-by: Kevin Hilman commit b41547c153436712daef544c0f18547fcb70f4ac Author: Cyril Chemparathy Date: Fri Sep 3 16:01:59 2010 -0400 davinci: add idcode for tnetv107x rev 1.1/1.2 This patch adds an entry into the idcode table for tnetv107x silicon revision 1.1 and 1.2 devices. Signed-off-by: Cyril Chemparathy Signed-off-by: Kevin Hilman commit f2dbb6d91b53d3ffbc85152aa7265599f0a4d850 Author: Michael Williamson Date: Thu Sep 2 13:58:07 2010 -0400 davinci: Initial support for MityDSP-L138/MityARM-1808 This patch adds initial support for the MityDSP-L138 and MityDSP-1808 system on Module (SOM) under the machine name "mityomapl138". These SOMs are based on the da850 davinci CPU architecture. Information on these SOMs may be found at http://www.mitydsp.com. Basic support for the console UART, NAND, and EMAC (MII interface) is included in this patch. Signed-off-by: Michael Williamson Signed-off-by: Kevin Hilman commit 9c6fbbee8d67eca75e9ffde3a10eb7ac0a73360d Author: Michael Williamson Date: Tue Aug 31 14:42:32 2010 -0400 davinci: Add CONFIG_REGULATOR_DUMMY to DA8XX defconfig file. In order to support reference DA8XX machines not providing a voltage regulator control for the core voltage, the REGULATOR_DUMMY option is required. Signed-off-by: Michael Williamson Signed-off-by: Kevin Hilman commit 1aa5f2a9c1575279baf06e94a4bd3b3b86b7f176 Author: Michael Williamson Date: Tue Aug 31 14:30:15 2010 -0400 davinci: Add machine checks to DA8XX serial console init routines This patch adds machine checks in the serial console init routines for the DA8XX EVM boards. This is needed because there are other DA8XX based machines that use a different UART/tty as the console and may be included in a common kernel build. Signed-off-by: Michael Williamson Signed-off-by: Kevin Hilman commit 0b3fc7bb88243371a2bd4a4990fb62a0b722efe7 Author: Sekhar Nori Date: Mon Aug 9 15:46:40 2010 +0530 davinci: dm6467t evm: setup NAND flash timing Setup NAND flash timing on DM6467T EVM. Without the timing setup, the NAND flash on DM6467T RevC EVM reports a number of random bad blocks because of read errors. Also, with this, copying a 100M file on RevB EVM takes ~35 sec against 1 minute 30 seconds earlier. Signed-off-by: Sekhar Nori Acked-by: Kevin Hilman Signed-off-by: Kevin Hilman commit 18a8505cc130448c8c0a29a46573b46697bf0e42 Author: Sekhar Nori Date: Mon Aug 9 15:46:39 2010 +0530 davinci: am18x/da850/omap-l138 evm: setup NAND flash timing Setup the NAND flash timings for DA850 EVM Before configuring the timing values, throughput calculation using dd command yielded 469 kB/s write and 966 kB/s read speed. After the timing configuration, the throughput was measured to be 2.4 MB/s write and 5 MB/s read. [Mukul Bhatnagar: actual calculation of timing values from the NAND datasheet] Signed-off-by: Sekhar Nori Cc: Mukul Bhatnagar Acked-by: Kevin Hilman Signed-off-by: Kevin Hilman commit 217f13662f291d8eaac5a3dfd7ba35be0a91c9fc Author: Sudhakar Rajashekhara Date: Mon Aug 9 15:46:38 2010 +0530 davinci: am17x/da830/omap-l137 evm: setup NAND flash timing Setup the NAND flash timings for DA830 EVM. Before configuring the timing values, throughput calculation using dd command yielded 477 kB/s write and 970 kB/s read speed. After the timing configuration, the throughput was measured to be 2.5 MB/s write and 5.1 MB/s read. [Mukul Bhatnagar: actual calculation of timing values from the NAND datasheet] Signed-off-by: Sudhakar Rajashekhara Cc: Mukul Bhatnagar Signed-off-by: Sekhar Nori Acked-by: Kevin Hilman Signed-off-by: Kevin Hilman commit fe69c82d0862f54b1a5aa5ece046468b4e76b40c Author: Sekhar Nori Date: Mon Aug 9 15:46:37 2010 +0530 davinci: dm644x evm: setup NAND flash timing The DM644x EVM nand flash timing was earlier being done as a special case in the NAND driver itself. With the NAND driver now capable of progamming the AEMIF interface using timing data passed from the platform, the timing values are being moved into their rightful place in the EVM specific board file. The values being programmed match what was being done earlier and thus do not represent any change in performance/functionality. Signed-off-by: Sekhar Nori Acked-by: Kevin Hilman Signed-off-by: Kevin Hilman commit a88dbc5bfdd26132bbf0ad19dd672e036971d74d Author: Sekhar Nori Date: Mon Aug 9 15:46:36 2010 +0530 nand: davinci: add support for timing configuration This patch modifies the DaVinci NAND driver to use the new AEMIF timing setup API to configure the NAND access timings. Earlier, AEMIF configuration was being done as a special case for DM644x board, but now more boards emerge which have capability to boot for other media (SPI flash, NOR flash) and have the kernel access NAND flash. This means that kernel cannot always depend on the bootloader to setup the NAND. Also, on platforms such as da850/omap-l138, the aemif input frequency changes as cpu frequency changes; necessiating re-calculation of timimg values as part of cpufreq transtitions. This patch forms the basis for adding that support. Signed-off-by: Sekhar Nori Acked-by: Kevin Hilman Signed-off-by: Artem Bityutskiy commit 8060ef4da9e73f461adf2ba1922ea5400a61cf98 Author: Sekhar Nori Date: Mon Aug 9 15:46:35 2010 +0530 davinci: add support for aemif timing configuration This patch adds support to configure the AEMIF interface with supplied timing values. Since this capability is useful both from NOR and NAND flashes, it is provided as a new interface and in a file of its own. AEMIF timing configuration is required in cases: 1) Where the AEMIF clock rate can change at runtime (a side affect of cpu frequency change). 2) Where U-Boot does not support NAND/NOR but supports other media like SPI Flash or MMC/SD and thus does not care about setting up the AEMIF timing for kernel to use. 3) Where U-Boot just hasn't configured the timing values and cannot be upgraded because the box is already in the field. Since there is now a header file for AEMIF interface, the common (non-NAND specific) defines for AEMIF registers have been moved from nand.h into the newly created aemif.h Signed-off-by: Sekhar Nori Acked-by: Kevin Hilman Signed-off-by: Kevin Hilman commit 13d36a923da6a1e0584e07d91320373c790c01c3 Author: Sekhar Nori Date: Fri Aug 27 14:14:03 2010 +0530 davinci: dm365 evm: use EDMAQ_3 as the audio DMA queue By default the audio driver uses EDMAQ_0 as the DMA queue, but on DM365 this queue is specially designed for video transfers with a large fifo size. Having both audio and video transfers on the same queue leads to noise on the audio side. This patch changes the audio queue number for DM365 to EDMAQ_3. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit b8241aef7eb54c6e5126b3aa309c2cf0f343c52d Author: Juha Kuikka Date: Thu Aug 26 12:40:47 2010 -0700 DA850: Add MMCSD1 resources, platform device and convenience registration function Add resources, platform device and convenience registration function for DA850's second MMC/SD controller (MMCSD1). Signed-off-by: Juha Kuikka Signed-off-by: Kevin Hilman commit 051a6687336d3310abc85991db7a8917ecc603fc Author: Juha Kuikka Date: Thu Aug 26 12:40:46 2010 -0700 DA850: Split MMCSD clock into two to support both MMCSD peripherals Split mmcsd_clk into mmcsd0_clk and mmcsd1_clk and add davinci_mmc.1 in preparation for adding support for MMCSD1 peripheral in DA850. Signed-off-by: Juha Kuikka Signed-off-by: Kevin Hilman commit d2b8622c9122841db9c0a09a02d92823d924a1a5 Author: Juha Kuikka Date: Thu Aug 26 12:40:45 2010 -0700 DA850: Add LPSC id for MMCSD1 peripheral Add LPSC id for DA850's MMCSD1 peripheral. Signed-off-by: Juha Kuikka Signed-off-by: Kevin Hilman commit 93fe23d8a9d95d8a85dfe2cb37cd9f220bef11b8 Author: Kulikov Vasiliy Date: Sat Jul 17 19:19:07 2010 +0400 arm: mach-davinci: check irq2ctlr() result If irq2ctlr() fails return IRQ_NONE. Also as it can fail make 'ctlr' signed. The semantic patch that finds this problem (many false-positive results): (http://coccinelle.lip6.fr/) // @ r1 @ identifier f; @@ int f(...) { ... } @@ identifier r1.f; type T; unsigned T x; @@ *x = f(...) ... *x > 0 Signed-off-by: Kulikov Vasiliy Signed-off-by: Kevin Hilman commit 85b8307fd03badbff0da5a75776c62cb45ee6551 Author: Sergei Shtylyov Date: Sun Aug 1 21:17:00 2010 +0400 DA850: move MII/RMII pin lists to the board file The CPGMAC pin list in da850.c was incorrectly split into two MII/RMII mode specific pin lists, while what pin group is used is a function of how the board is wired. Copy the pin lists to board-da850-evm.c, renaming them accordingly, and merge the two lists in da850.c into one, da850_cpgmac_pins[], representing the CPGMAC module as a whole... Signed-off-by: Sergei Shtylyov Tested-by: Ben Gardiner Signed-off-by: Kevin Hilman commit f48ecc2f73763e9d94d5847692ed25ab0f4fb73c Author: Sergei Shtylyov Date: Sun Aug 1 21:15:16 2010 +0400 DA850: move NAND/NOR pin lists to the board file The NAND/NOR flash pin lists (da850_nand_pins/da850_nor_pins) are purely board specific and as such shouldn't be in da850.c -- copy them to board-da850-evm.c, renaming to da850_evm_nand_pins/da850_evm_nor_pins respectively, and merge the two lists in da850.c into one, representing the EMIF 2.5 module as a whole, just like we have it in da830.c... While at it, remove the '__init' modifier from da850_evm_setup_nor_nand() as this function is called from non '__init' code... Signed-off-by: Sergei Shtylyov Tested-by: Ben Gardiner Signed-off-by: Kevin Hilman commit 7173d5493799944d47317d9490365a89ee079f2a Author: Cyril Chemparathy Date: Tue Aug 3 21:04:16 2010 -0400 Davinci: tnetv107x: retain psc reg base after init This is a bugfix for the original tnetv107x submission series. The psc_regs base array was being discarded post-init, and this was causing a crash during post-init clock enable/disable. Signed-off-by: Cyril Chemparathy Signed-off-by: Kevin Hilman commit b987c4b2c9c9db2393f4c089e63d1734301214e5 Author: Sekhar Nori Date: Tue Jul 20 16:46:51 2010 +0530 davinci: am18x/da850/omap-l138: keep async clock constant with cpufreq Keep PLL0 SYSCLK3 at a constant rate of 100MHz. This enables the AEMIF timing to remain valid even as the PLL0 output is changed by cpufreq driver to save power. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit 30a2c5d2f0134df6175af26ce554aacaee304280 Author: Sekhar Nori Date: Tue Jul 20 16:46:50 2010 +0530 davinci: cpufreq: add support for keeping an additional clock constant On OMAP-L138 SoC, some of the sysclks need not be at a fixed ratio to CPU clock and can be kept at a relatively constant rate by adjusting the PLLDIVn ratio even as cpufreq goes ahead and changes the CPU clock. This feature can be used to keep the EMIFA (PLL0 SYSCLK3) clock at a constant rate so that the EMIF timings need not be re-programmed whenever the CPU frequency changes. This patch adds the required suppport to cpufreq driver. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit b39639b820ca64e55c39b5217773919ca7973cec Author: Sekhar Nori Date: Tue Jul 20 16:46:49 2010 +0530 davinci: clock: add support for setting sysclk rate Setting sysclk rate will be useful in cases where the sysclk is not at a fixed ratio to the PLL output but can asynchronously be changed. This support forms the basis of attempt to keep the AEMIF clock constant on OMAP-L138 even as PLL0 output changes as ARM clock is changed to save power. This patch has been tested on OMAP-L138. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit 0a477f6b8c1849701981f6e00e7afcd35af75546 Author: Sekhar Nori Date: Wed Jul 14 17:09:45 2010 +0530 davinci: dm365: disable pulldowns for all MMC/SD1 pins. This patch disables internal pulldowns for all MMC/SD1 pins. Presently only MMCSD1_CMD pin's pull down is disabled, but with this some MMC/SD cards do not get detected on MMC/SD1 slot of the EVM. The problem was reproducible with SanDisk 4GB SDHC card. Reported-by: Stephane Bovagne Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit 6ef62f8204402e32259451857c1a4a04f155b56e Author: Sekhar Nori Date: Wed Jul 7 14:02:49 2010 +0530 davinci: am18x/da850/omap-l138: use 'NOM' voltage defined in datasheet as min voltage For each DA850 OPP, the normal ('NOM') voltage defined in the tecnical reference manual (TRM) is actually the minimum voltage the frequency is supported at. The minimum ('MIN') voltage defined in TRM is meant to take care of voltage fluctuations and the device should not be run at this voltage for extended periods of time. Fix the OPP definitions to define the cvdd_min as the normal voltage defined in the datasheet. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit 48ea89eabee96019a4a84615af921f8703320abb Author: Sekhar Nori Date: Thu Jul 1 19:00:50 2010 +0530 davinci: introduce support for AM1x ARM9 microprocessors The Sitara AM17x SoCs from TI are an OMAP-L137 pin-to-pin compatible ARM9 microprocessor offering from TI. The Sitara AM18x SoCs from TI are an OMAP-L138 pin-to-pin compatible ARM9 microprocessor offering from TI. More information about these processors available at: www.ti.com/am1x Because of their compatibiliy with OMAP-L1x, the kernel support for OMAP-L1x is fully relevant to AM1x processors. This patch updates the Kconfig prompt and help text to include the AM1x part names to help users select configurations required for these parts easily. Also, the hardware information that shows up in /proc/cpuinfo is updated to show applicability of the respective OMAP-L1x EVMs for AM1x parts. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit a7884f454b75ac57e92b8c3fb3b20148f92f7688 Author: Sekhar Nori Date: Thu Jul 1 19:00:49 2010 +0530 davinci: clean up inconsistent usage of spaces in Kconfig In arch/arm/mach-davinci/Kconfig, some of the configuration items are indented with multiple spaces instead of tabs. Also, in couple of places, two spaces are used in the middle of help text where one should do. This patch fixes both issues. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit fca97b3337edb6b12707d167460b224dd8ef6052 Author: Sekhar Nori Date: Tue Jul 20 16:46:48 2010 +0530 davinci: cpufreq: bailout on regulator errors Current cpufreq code does not consider errors that can occur while changing voltage. Code to increase CPU frequency goes ahead even in the case the regulator has failed to increase the voltage. This leads to hard error since lower voltages cannot support increased frequency. Prevent this by not increasing frequency in case increasing voltage is not successful. Also, do not lower the voltage if changing the cpu frequency has failed for some reason. Note that we do not return error on failure to decrease voltage as that is not a hard error. Build fix for non-cpufreq kernels by Caglar Akyuz. Signed-off-by: Sekhar Nori Cc: Caglar Akyuz Signed-off-by: Kevin Hilman commit c89f1681450822c74afb3217ed4c24a177a23f43 Author: Kevin Hilman Date: Thu Aug 5 10:55:16 2010 -0700 davinci: clock: make 'disable unused clocks' printk debug only The long list of clocks being disabled on boot is noisy and not needed for standard boots. Make this a debug printk instead. Signed-off-by: Kevin Hilman commit 4b5dc96a71b85f2d8759decb23a2ade49a722561 Author: Sekhar Nori Date: Mon Jul 12 18:51:05 2010 +0530 MAINTAINERS: Add Kevin's e-mail in entry for TI DaVinci In absence of Kevin's e-mail address, using get_maintaner.pl in git-send-email --cc-cmd option is not CCing Kevin at all. While at it, mark davinci-linux-open-source@linux.davincidsp.com as a list in line with what is being done for other maintainer entries. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit db549d22c4b84824f90558eb8e6b116cf134794d Author: Sekhar Nori Date: Mon Jun 28 17:16:38 2010 +0530 davinci: da850 evm: sparse cleanup: make file local variables static Without this cleanup, sparse checker reports warnings of the type: CHECK arch/arm/mach-davinci/board-da850-evm.c arch/arm/mach-davinci/board-da850-evm.c:112:22: warning: symbol 'da850_evm_nandflash_partition' was not declared. Should it be static? The nand flash partitions and regulator supplies are used within the EVM file and so should have been static This patch has been boot tested on DA830 and DA850 EVMs. Signed-off-by: Sekhar Nori Signed-off-by: Kevin Hilman commit 4b1977698ceb4c4caa800d475127139da49966f9 Author: Mark Lord Date: Fri Sep 24 09:51:13 2010 -0400 block: Prevent hang_check firing during long I/O During long I/O operations, the hang_check timer may fire, trigger stack dumps that unnecessarily alarm the user. Eg. hdparm --security-erase NULL /dev/sdb ## can take *hours* to complete So, if hang_check is armed, we should wake up periodically to prevent it from triggering. This patch uses a wake-up interval equal to half the hang_check timer period, which keeps overhead low enough. Signed-off-by: Mark Lord Signed-off-by: Jens Axboe commit 27d64339a8d8465484286a2da93f5f6c36be5c3d Author: Hette Visser Date: Fri Sep 24 10:51:30 2010 +0100 drm/i915/dp: Wait for PP_CONTROL to take effect. This patch fixes the black screen bug on Dell e6510, by adding two delays to give the eDP panel time to turn on before we continue with the next write. 300ms is rather arbitray and a rather long sleep, we need to find a way of refining this value. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=29278 Signed-off-by: Chris Wilson Acked-by: Jesse Barnes commit e61cb0d5fd172ab95a4501917526382f25158e83 Author: Jan Beulich Date: Fri Sep 24 13:25:30 2010 +0100 some clean up to intel-gtt.c In commit e517a5e97080bbe52857bd0d7df9b66602d53c4d the call to map_page_into_agp() got removed from intel_i830_setup_flush(), but the counterpart call from intel_i830_fini_flush() to unmap_page_from_agp() was left in place. Additionally, the page allocated here never gets its physical address used for sending to hardware, so there's no need to allocate it with GFP_DMA32. Nor is __GFP_ZERO really necessary, as the page is used only to store data to force flushing of some internal processor state. Signed-off-by: Jan Beulich Cc: Eric Anholt Signed-off-by: Chris Wilson commit 5ceb0f9bb7bde101d8b07cb803002591dcb8c804 Author: Chris Wilson Date: Fri Sep 24 10:24:28 2010 +0100 drm/i915: Parse the eDP link configuration from the vBIOS First step, lets have a look at the values for troublesome panels and see if they may be used to improve our link training. Signed-off-by: Chris Wilson commit 270eea0fd71ae95654606ff7448f195fa22d12c5 Author: Chris Wilson Date: Fri Sep 24 01:15:02 2010 +0100 drm/i915/lvds: Use the GMBUS pin if specified in VBT Signed-off-by: Chris Wilson commit e6c3a2a6d358a726c2c52cb0132c9ad8f6f37486 Author: Chris Wilson Date: Thu Sep 23 23:04:43 2010 +0100 drm/i915: Use an uninterruptible wait for page-flips during modeset We need to drain the pending flips prior to disabling the pipe during modeset, and these need to be done in an uninterruptible fashion. Signed-off-by: Chris Wilson commit d3849eded23e6c78b19acc1a3a7811a01d2f541d Author: Chris Wilson Date: Thu Sep 23 22:12:23 2010 +0100 drm/i915: Remove unused dev_priv->panel_wants_dither This is now private to the DVO connector, remove it from the main device private. Signed-off-by: Chris Wilson commit 780f0ca3e0cd3f0677d9149b7e14bf0878d1dbdc Author: Chris Wilson Date: Thu Sep 23 17:45:39 2010 +0100 drm/i915/ringbuffer: Fix sign of ring space. As we presume space is signed when computing and looking for wrap along, make it so. Reported-by: Owain G. Ainsworth Signed-off-by: Chris Wilson commit 3eee1794ac14f160338622ea57dcace7382ceb8f Author: Chris Wilson Date: Thu Sep 23 16:45:52 2010 +0100 drm/i915: Remove idle timer debugging messages These have served their purpose and are now just noise in the debug stream. Signed-off-by: Chris Wilson commit 428d2e828c0a68206e5158a42451487601dc9194 Author: Chris Wilson Date: Thu Sep 23 11:16:49 2010 +0100 drm/i915/lvds: Probe DDC on creation Try to validate the panel's connection by writing to address 0xA0. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=18072 Signed-off-by: Chris Wilson commit dfb4f309830359352539919f23accc59a20a3758 Author: Benny Halevy Date: Fri Sep 24 09:17:01 2010 -0400 NFSv4.1: keep seq_res.sr_slot as pointer rather than an index Having to explicitly initialize sr_slotid to NFS4_MAX_SLOT_TABLE resulted in numerous bugs. Keeping the current slot as a pointer to the slot table is more straight forward and robust as it's implicitly set up to NULL wherever the seq_res member is initialized to zeroes. Signed-off-by: Benny Halevy Signed-off-by: Trond Myklebust commit 45798c28b43d06d371df2e26e4a143c6f1428c6d Author: Jiri Kosina Date: Fri Sep 24 14:07:23 2010 +0200 Revert "Fix typo: configuation => configuration" partially This is a partial revert of 0b1974de66f ("Fix typo: configuation => configuration") as this hunk is removed in net-next. Reported-by: Stephen Rothwell Signed-off-by: Jiri Kosina commit 50bb6d8492ff0c3f204b263aff90d4a7ebf4dd90 Author: Alan Stern Date: Thu Sep 23 10:40:21 2010 -0400 HID: usbhid: remove unused hiddev_driver Now that hiddev_driver isn't being used for anything, there's no reason to keep it around. This patch (as1419) gets rid of it entirely. Signed-off-by: Alan Stern Signed-off-by: Jiri Kosina commit 73e6d6c6467771838c1fc6949e6768a12ed72464 Merge: 12e5272 a850ea3 Author: Jiri Kosina Date: Fri Sep 24 14:03:37 2010 +0200 Merge branch 'master' into upstream commit 64eb105d7f92fa48798106ac0d8bf17668eb2524 Author: Michael Poole Date: Fri Sep 24 13:58:18 2010 +0200 HID: magicmouse: Use hid-input parsing rather than bypassing it Let the HID core handle input device setup and HID-compliant reports. This driver then only has to worry about the non-standard reports. Signed-off-by: Michael Poole Acked-by: Chase Douglas Signed-off-by: Jiri Kosina commit 591796b82ab04c01179b9f47b1159051aeb66f08 Author: Mark Brown Date: Thu Sep 23 19:43:07 2010 +0100 ASoC: Clean up AC'97 glue driver Remove version number and clean up some indentation. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 8d85d7414a681ad17f6bfc7564e310caee2c868d Author: Mark Brown Date: Thu Sep 23 17:41:46 2010 +0100 ASoC: Add debug logging for s3c-ac97 resets Helps tracing errors further up the stack. Signed-off-by: Mark Brown Acked-by: Jassi Brar Acked-by: Liam Girdwood commit 4a6f998ebb1e434ce83c6169a1afbe6a39015bea Author: Mark Brown Date: Thu Sep 23 16:48:54 2010 +0100 ASoC: Convert s3c-ac97 to pr_() macros Could use dev_() but we'd have to remember the struct device somewhere and it wouldn't make the logging clearer. Signed-off-by: Mark Brown Acked-by: Jassi Brar Acked-by: Liam Girdwood commit 97daff36f207c62df250092863f2af7e62b0e389 Author: Mark Brown Date: Thu Sep 23 15:28:14 2010 +0100 ASoC: Clean up the CODEC device as well as the board for SMDK WM9713 Otherwise we try to re-register the CODEC device if the module is reloaded and sysfs becomes miserable. Signed-off-by: Mark Brown Acked-by: Jassi Brar Acked-by: Liam Girdwood commit 9fab9635033a175c6583bd4ec702a200940c5a56 Author: Mark Brown Date: Wed Sep 22 19:44:13 2010 +0100 ASoC: Clarify naming for SMDK WM9713 driver At least some of the systems using this device have multiple audio subsystems so provide some guidance to userspace about which one this is. Signed-off-by: Mark Brown Acked-by: Jassi Brar Acked-by: Liam Girdwood commit 266edab35d77d836f56813a673e77cd608a24840 Author: Mark Brown Date: Wed Sep 22 19:43:30 2010 +0100 ASoC: Remove unneeded WM9713 header include from SMDK WM9713 driver Signed-off-by: Mark Brown Acked-by: Jassi Brar Acked-by: Liam Girdwood commit c80dbb58f9c3f84372e37dfe80b41810052ad62f Author: Steven Whitehouse Date: Fri Sep 24 09:55:07 2010 +0100 GFS2: Remove upgrade mount option This option has never done anything useful. Also at the same time this cleans up the sb checks which are done at mount time. The debug option will be accepted, but ignored in future. Since it didn't do anything, there didn't seem much point in retaining it. Signed-off-by: Steven Whitehouse commit d6dad199a10423ce37b8bfec1f055c380dc4a3d5 Author: Ingo Molnar Date: Fri Sep 24 09:12:25 2010 +0200 jump label: Fix GCC feature check when distcc is used The following build bug occurs on distcc builds: CC arch/x86/kernel/asm-offsets.s In file included from include/linux/module.h:24, from include/linux/crypto.h:22, from arch/x86/kernel/asm-offsets_64.c:9, from arch/x86/kernel/asm-offsets.c:5: include/trace/events/module.h: In function 'trace_module_load': include/trace/events/module.h:18: error: expected '(' before 'goto' include/trace/events/module.h:18: error: expected identifier or '*' before '(' token It triggers because distcc is invoked by turning $CC into "distcc gcc", but gcc-goto.sh check script was using $1 not $@ to expand parameters. Cc: Jason Baron Cc: Steven Rostedt LKML-Reference: <20100923034910.867858597@goodmis.org> Signed-off-by: Ingo Molnar commit fec88dea9d316e9d850e84c5a57c4c6b15cb9b26 Merge: 4e7d7c6 01fdf18 Author: Takashi Iwai Date: Fri Sep 24 09:12:21 2010 +0200 Merge branch 'fix/hda' into topic/hda commit a5a2bad55de89a0adf7d6f783cb87ab7eb1a894f Merge: d0303d7 46eb3b6 Author: Ingo Molnar Date: Fri Sep 24 09:12:05 2010 +0200 Merge branch 'tip/perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core commit 5b32165b044f7d2486e2815456b1b2894aaab4ee Author: Ben Skeggs Date: Fri Sep 24 09:17:02 2010 +1000 drm/nv50: use pll type rather than register for CRTC PLL Just in case someone, somewhere, does something difficult. This also removes one path that was different between fermi and non-fermi. Signed-off-by: Ben Skeggs commit 56edd964e883f2746bad7268cf557ab9b1d232cd Author: Ben Skeggs Date: Fri Sep 24 09:15:50 2010 +1000 drm/nouveau: v3.0 pll limits tables have type<->register mapping too Signed-off-by: Ben Skeggs commit 5c4abd09bdefb41d0c80055aa9d98433624ce1f0 Author: Francisco Jerez Date: Thu Sep 23 20:36:42 2010 +0200 drm/nouveau: Misc cleanup of the PM code. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 66146da06643d8ee89bc5255fb0254006e3d0e79 Author: Francisco Jerez Date: Thu Sep 23 21:00:40 2010 +0200 drm/nouveau: Add support for I2C hardware monitoring devices. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 8155cac489eb8cc6fd96b9bdefacdf5a56e6ea32 Author: Francisco Jerez Date: Thu Sep 23 20:58:38 2010 +0200 drm/nouveau: Refactor nouveau_temp_get() into engine pointers. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit e829d804d78c57b8e90039079284ac585f72851d Author: Francisco Jerez Date: Thu Sep 23 15:34:09 2010 +0200 drm/nouveau: Double the perf table memory clocks on pre-G71 cards. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 67e1d4fbaefd6a27b55523bb6bb0dd941351a325 Author: Francisco Jerez Date: Thu Sep 23 17:01:05 2010 +0200 drm/nouveau: Fix parsing of the temperature constant correction. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit d34ec507d40faab908968985b3106869d8d8fbcf Author: Francisco Jerez Date: Thu Sep 23 16:27:14 2010 +0200 drm/nouveau: Add sane sensor correction defaults for nv4a. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 4164743c8249ef2867cf71ae2cb2380b5a550b06 Author: Francesco Marella Date: Thu Sep 23 09:14:22 2010 +0200 drm/nv40: fix reading temp value Signed-off-by: Francesco Marella Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 5e6a74436e378eb021a74f3e5f329eecf49d928e Author: Francisco Jerez Date: Wed Sep 22 23:25:00 2010 +0200 drm/nouveau: Don't try to parse a GPIO table on early DCBv2.2 BIOSes. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit bb338bb6f230aa70e70dc0d27af1b7a8efc34cdd Author: Francisco Jerez Date: Tue Sep 21 19:03:19 2010 +0200 drm/nv10: Don't oops if the card wants to switch to a channel with no grctx. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 80dad869a3bc30b4e6c3ae527f94abbe9bb497f5 Author: Ben Skeggs Date: Thu Sep 23 16:37:39 2010 +1000 drm/nouveau: fix panels using straps-based mode detection nouveau_bios_fp_mode() zeroes the mode struct before filling in relevant entries. This nukes the mode id initialised by drm_mode_create(), and causes warnings from idr when we try to remove the mode. Signed-off-by: Ben Skeggs commit 9bb5863ab4c2bad487e9d02fabde60e858c22411 Author: Ben Skeggs Date: Thu Sep 23 15:23:16 2010 +1000 drm/nouveau: fix chipset vs card_type thinko Signed-off-by: Ben Skeggs commit 5220b3c14b5d4e35df5a4574534519d7007713c3 Author: Ben Skeggs Date: Thu Sep 23 15:21:17 2010 +1000 drm/nv50: assume smaller tiles for bo moves Somehow fixes some corruption seen in KDE.. Signed-off-by: Ben Skeggs commit 5f7d42ece30104dd05307f0a004c9d45895582fb Author: Ben Skeggs Date: Thu Sep 23 14:45:52 2010 +1000 drm/nouveau: add debugfs file to forcibly evict everything from vram Very useful for debugging buffer migration issues. Signed-off-by: Ben Skeggs commit 34e9d85a1aae28b090ec4e72a0f98a5483c198c4 Author: Martin Peres Date: Wed Sep 22 20:54:22 2010 +0200 drm/nouveau: Add temperature support (vbios parsing, readings, hwmon) Signed-off-by: Martin Peres Signed-off-by: Ben Skeggs commit 64d202b4d78968979c0d44306854d41f9b71626d Author: Ben Skeggs Date: Tue Sep 21 12:10:51 2010 +1000 drm/nouveau: correct INIT_DP_CONDITION subcondition 5 Fixes DP output on a GTX 465 board I have. Signed-off-by: Ben Skeggs commit 0fbb114af7ea63227599460c412fb8796556a169 Author: Francisco Jerez Date: Mon Sep 20 16:18:28 2010 +0200 drm/nouveau: Parse old style perf tables. Used on nv17-nv28, they contain memory clocks and timings, only one of the table entries can actually be used, depending on the RAMCFG straps, and it's usually higher than the frequency programmed on boot by the BIOS. The memory timings listed in table version 0x1x are used to init the 0x12xx range but they aren't required for reclocking to work. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 038b8b2a0dd8a0760d086f0c90af656b242369e3 Author: Ben Skeggs Date: Mon Sep 20 18:27:39 2010 +1000 drm/nv50: flush bar1 vm / dma object setup before poking 0x1708 Should fix issues noticed on NVAC (MacBook Pro / ION) since gpuobj rework. Signed-off-by: Ben Skeggs commit dc7339df11bc7a90268929e57e13a14951343cc3 Author: Ben Skeggs Date: Mon Sep 20 10:38:30 2010 +1000 drm/nouveau: fix thinko in volt 0x1x parsing Signed-off-by: Ben Skeggs commit e49f70f775335ab1ee0ecd54904d2b25982a2600 Author: Ben Skeggs Date: Mon Sep 20 10:06:50 2010 +1000 drm/nouveau: implement parsing of DCB 2.2 GPIO table Found on NV3x boards, this should allow voltage modifications to work on these chipsets. Signed-off-by: Ben Skeggs commit 07b1266962085412e85af2e7df471ec9ed0c35f5 Author: Ben Skeggs Date: Sat Sep 18 22:13:04 2010 +1000 drm/nouveau: fix potential accuracy loss when parsing perf 0x1c tables Reported-by: Roy Spliet Signed-off-by: Ben Skeggs commit e022878571690e09e965e8c6bfc837b3dc5b6b74 Author: Phil Turmel Date: Tue Sep 14 20:14:11 2010 -0400 drm/nouveau: Fix build regression, undefined reference to `acpi_video_get_edid' Build breakage: drivers/built-in.o: In function `nouveau_acpi_edid': (.text+0x13404e): undefined reference to `acpi_video_get_edid' make: *** [.tmp_vmlinux1] Error 1 Introduced by: a6ed76d7ffc62ffa474b41d31b011b6853c5de32 is the first bad commit commit a6ed76d7ffc62ffa474b41d31b011b6853c5de32 Author: Ben Skeggs Date: Mon Jul 12 15:33:07 2010 +1000 drm/nouveau: support fetching LVDS EDID from ACPI Based on a patch from Matthew Garrett. Signed-off-by: Ben Skeggs Acked-by: Matthew Garrett It doesn't seem to revert cleanly, but the problem lies in these two config entries: CONFIG_ACPI=y CONFIG_ACPI_VIDEO=m Adding a select for ACPI_VIDEO appears to be the best solution, and is comparable to what is done in DRM_I915. Builds, boots, and appears to work correctly. Signed-off-by: Philip J. Turmel Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 64f1c11a477cb76e1572ee0793234739e045b3d5 Author: Ben Skeggs Date: Fri Sep 17 13:35:25 2010 +1000 drm/nouveau: restore perflvl on resume, and restore boot perflvl on unload Signed-off-by: Ben Skeggs commit 6f876986bedf23b40ab707543e88fae7eac27f1f Author: Ben Skeggs Date: Thu Sep 16 16:47:14 2010 +1000 drm/nouveau: allow static performance level setting Guarded by a module parameter for the moment, read the code for the magic value which enables it. Signed-off-by: Ben Skeggs commit 442b626ece6fbbe7f52c03a09f85ae5755f29eab Author: Ben Skeggs Date: Thu Sep 16 16:25:26 2010 +1000 drm/nv04-nv40: import initial pm backend Currently just hooked up to the already-existing nouveau_hw, which should handle all relevant chipsets as well as we currently can. This will likely be eventually split out and improved into chipset specific code at a later point. Signed-off-by: Ben Skeggs commit 02c30ca0a1d6d8b878fc32f47b3b25192ef4a8ef Author: Ben Skeggs Date: Thu Sep 16 16:17:35 2010 +1000 drm/nv50: import initial clock get/set routines + hook up pm engine This will make nouveau_pm attempt to report the card's current performance level both during bootup, and through sysfs. This is a very initial implementation, and can be improved a *lot* Signed-off-by: Ben Skeggs commit 330c5988ee78045e6a731c3693251aaa5b0d14e3 Author: Ben Skeggs Date: Thu Sep 16 15:39:49 2010 +1000 drm/nouveau: import initial work on vbios performance table parsing Signed-off-by: Ben Skeggs commit 4709bff02adcb0d05d2d1a397e60581baa562de9 Author: Ben Skeggs Date: Mon Sep 13 15:18:40 2010 +1000 drm/nouveau: make bios code easier to use externally Signed-off-by: Ben Skeggs commit 855a95e4fc2ac6b758145ca7d6a0c95b66a57ef8 Author: Ben Skeggs Date: Thu Sep 16 15:25:25 2010 +1000 drm/nouveau: make the behaviour of get_pll_limits() consistent This replaces all the pll_types definitions for ones that match the types used in the tables in recent VBIOS versions. get_pll_limits() will now accept either type or register value as input across all limits table versions, and will store the actual register ID that a PLL type refers to in the returned structure. Signed-off-by: Ben Skeggs commit f9aafdd30ef8356f0a3690bf9bdd9c6e51b7705c Author: Ben Skeggs Date: Mon Sep 13 11:12:50 2010 +1000 drm/nv50: fix 100c90 write on nva3 Signed-off-by: Ben Skeggs commit b6fd780791e9189b781e27a443d47bd21ce5145f Author: Ben Skeggs Date: Mon Sep 13 09:58:37 2010 +1000 drm/nouveau: zero dummy page Signed-off-by: Ben Skeggs commit 17b20348ea94a92a54898c518b514c564d12e4c3 Author: Ben Skeggs Date: Mon Sep 13 09:57:44 2010 +1000 drm/nv50: mark PCIEGART pages non-present rather than using dummy page Signed-off-by: Ben Skeggs commit 24b102d3488c9d201915d070a519e07098e0cd30 Author: Ben Skeggs Date: Fri Sep 10 15:33:11 2010 +1000 drm/nouveau: we can't free ACPI EDID, so make a copy that we can The rest of the connector code assumes we can kfree() the EDID pointer. This causes things to blow up with the ACPI EDID pointer we get passed. Signed-off-by: Ben Skeggs commit e071f8cd714261cb4f5ce7104eb54b16b2bbb0cf Author: Ben Skeggs Date: Wed Sep 8 15:40:30 2010 +1000 drm/nouveau: handle fifo pusher errors better The most important part of this change is that we now instruct PFIFO to drop all pending fetches, rather than attempting to skip a single dword and hope that things would magically sort themselves out - they usually don't, and we end up with PFIFO being completely hung. This commit also adds somewhat more useful logging when these exceptions occur. Signed-off-by: Ben Skeggs commit e1429b4c3c79512f0e1a44d9d895c1db52b8c42f Author: Ben Skeggs Date: Fri Sep 10 11:12:25 2010 +1000 drm/nouveau: better handling of unmappable vram Signed-off-by: Ben Skeggs commit c16c570762bb4419f2bb764f2a7428c249d905d0 Author: Francisco Jerez Date: Thu Sep 9 14:33:17 2010 +0200 drm/nouveau: Try to fetch an EDID from OF if DDC fails. More Apple brain damage, it fixes the modesetting failure on an eMac G4 (fdo bug 29810). Reported-by: Zoltan Varnagy Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 9f56b1265d66f6698e3155529e6c5d0c34b37afa Author: Francisco Jerez Date: Tue Sep 7 18:24:52 2010 +0200 drm/nouveau: Simplify tile region handling. Instead of emptying the caches to avoid a race with the PFIFO puller, go straight ahead and try to recover from it when it happens. Also, kill pfifo->cache_flush and tile->lock, we don't need them anymore. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 4b5c152a79d512803ea525b0878ccef627cd1629 Author: Francisco Jerez Date: Tue Sep 7 17:34:44 2010 +0200 drm/nouveau: Remove implicit argument from nv_wait(). Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 35fd5b42f035c795bd9c6649591f59b500cb62b3 Author: Francisco Jerez Date: Mon Sep 6 20:25:28 2010 +0200 drm/nouveau: PRAMIN is available from the start on pre-nv50. This makes sure that RAMHT is cleared correctly on start up. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit de5899bdaccaabfaab894559a7eec3302ae88b52 Author: Francisco Jerez Date: Wed Sep 8 02:28:23 2010 +0200 drm/nouveau: Add module parameter to override the default AGP rate. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 71d0618661f9dd531caa94ce2ce5dc919321624b Author: Francisco Jerez Date: Wed Sep 8 02:23:20 2010 +0200 drm/nouveau: Don't enable AGP FW on nv18. FW seems to be broken on nv18, it causes random lockups and breaks suspend/resume even with the blob. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 3bc14b4dca2f8bc088162476279480e78491fd83 Author: Francisco Jerez Date: Sun Sep 5 06:03:07 2010 +0200 drm/nouveau: Don't remove ramht entries from the neighboring channels. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit f243423759271026ddc3f8ab12a16cc7abfabc49 Author: Francisco Jerez Date: Wed Sep 8 02:21:09 2010 +0200 drm/nouveau: Break some long lines in the TV-out code. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 8597a1ba376e03229835a0e4215a7a4cb1dcaa32 Author: Ben Skeggs Date: Mon Sep 6 11:39:25 2010 +1000 drm/nv50: fix SOR count for early chipsets Signed-off-by: Ben Skeggs commit 1da265662db0306d04efb5f687c2992e40d1b85c Author: Ben Skeggs Date: Fri Sep 3 15:56:12 2010 +1000 drm/nv50: report BAR access faults Signed-off-by: Ben Skeggs commit d96773e7b61d9976b8227e018a1c94fb7374e641 Author: Ben Skeggs Date: Fri Sep 3 15:46:58 2010 +1000 drm/nv50: move vm trap to nv50_fb.c Signed-off-by: Ben Skeggs commit e69b4418825c2e4c6563ae1d69bd75377826e263 Author: Marcin Kościelnicki Date: Wed Sep 1 15:41:24 2010 +1000 drm/nv50: demagic grctx, and add NVAF support Signed-off-by: Ben Skeggs Signed-off-by: Marcin Kościelnicki Signed-off-by: Ben Skeggs commit 2941482ead0b02c9efd81fc3862be3ebfce607a5 Author: Ben Skeggs Date: Fri Sep 3 10:25:02 2010 +1000 drm/nouveau: protect ramht_find() from oopsing if on channel without ramht This doesn't actually happen now, but there's a test case for an earlier kernel where a GPU error is signalled on one of nv50's fake channels, and the ramht lookup by the IRQ handler triggered an oops. This adds a check for RAMHT's existance on a channel before looking up an object handle. Signed-off-by: Ben Skeggs commit 185abeccabe5aed0ef79e8572c3916ea08034a45 Author: Ben Skeggs Date: Wed Sep 1 15:24:39 2010 +1000 drm/nouveau: remove nouveau_gpuobj_late_takedown Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit e05d7eaeba57921abad0ef564b0875e225171de8 Author: Ben Skeggs Date: Wed Sep 1 15:24:38 2010 +1000 drm/nouveau: protect gpuobj list + global instmem heap with spinlock Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit eb9bcbdc45369105bc004a82c7bed60655aae926 Author: Ben Skeggs Date: Wed Sep 1 15:24:37 2010 +1000 drm/nouveau: fix gpuobj refcount to use atomics Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit dac790080467eb12f1049ddca1c101eb0dcc9f0c Author: Ben Skeggs Date: Wed Sep 1 15:24:36 2010 +1000 drm/nouveau: add spinlock around ramht modifications Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit e05c5a317efb03854950a3fcc5c9501bfefc7d68 Author: Ben Skeggs Date: Wed Sep 1 15:24:35 2010 +1000 drm/nouveau: tidy ram{ht,fc,ro} a bit Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit fbd2895e45aebdb3d3ea73a3a796cf3bb9c912da Author: Ben Skeggs Date: Wed Sep 1 15:24:34 2010 +1000 drm/nouveau: rework init ordering so nv50_instmem.c can be less bad Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 6c3d7ef25e3b4a0ea511b1e9d4a0a212750874a6 Author: Ben Skeggs Date: Thu Aug 12 12:37:28 2010 +1000 drm/nv50: calculate vram reordering block size Will be used at a later point when we plug in an alternative VRAM memory manager for GeForce 8+ boards. Based on pscnv code to do the same. Signed-off-by: Ben Skeggs Signed-off-by: Marcin Kościelnicki Signed-off-by: Ben Skeggs commit 5125bfd88608012d58652ac7ea6a03a78773200f Author: Ben Skeggs Date: Wed Sep 1 15:24:33 2010 +1000 drm/nv50: allow gpuobjs that aren't mapped into aperture Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 43efc9ce25c6956133c07394a6fa44ef2c9268a4 Author: Ben Skeggs Date: Wed Sep 1 15:24:32 2010 +1000 drm/nouveau: simplify fake gpu objects Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit a8eaebc6c52bb0cd243b4cb421068f42d378be9c Author: Ben Skeggs Date: Wed Sep 1 15:24:31 2010 +1000 drm/nouveau: remove nouveau_gpuobj_ref completely, replace with sanity Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit de3a6c0a3b642c0c350414d63298a1b19a009290 Author: Ben Skeggs Date: Wed Sep 1 15:24:30 2010 +1000 drm/nouveau: rebase per-channel pramin heap offsets to 0 Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit b3beb167af0de6d7cb03aed0687eca645cfd06a6 Author: Ben Skeggs Date: Wed Sep 1 15:24:29 2010 +1000 drm/nouveau: modify object accessors, offset in bytes rather than dwords Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 479dcaea09bf17e8de7005015345e4266723666d Author: Ben Skeggs Date: Wed Sep 1 15:24:28 2010 +1000 drm/nouveau: move ramht code out of nouveau_object.c, nothing to see here Reviewed-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 2a7fdb2bc15b3bfc824eb969b3dc7efa3fb52463 Author: Ben Skeggs Date: Mon Aug 30 16:14:51 2010 +1000 drm/nouveau: have nv_mask return original register value Signed-off-by: Ben Skeggs commit 217275d03d7e1f3e62c7b0d9718df99456b7c356 Author: Francisco Jerez Date: Mon Aug 30 19:55:52 2010 +0200 drm/nv40: Try to set up CRE_LCD even if it has unknown bits set. They don't seem to do anything useful, and we really want to program CRE_LCD if we aren't lucky enough to find the right CRTC binding already set. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 7314dec95c054258d5e5a3d1d55e1fd042f8eaad Author: Francisco Jerez Date: Mon Aug 30 15:37:57 2010 +0200 drm/nv17-nv4x: Fix analog load detection false positive on rare occasions. On some boards the residual current DAC outputs can draw when they're disconnected can be high enough to give a false load detection positive (I've only seen it in the S-video luma output of some cards, but just to be sure). The output line capacitance is limited and sampling twice should fix it reliably. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 9d59e8a1fc8fc35bf22dc92d7722a7502769ab7e Author: Ben Skeggs Date: Fri Aug 27 13:04:41 2010 +1000 drm/nouveau: require explicit unmap of kmapped bos Signed-off-by: Ben Skeggs commit e694438d2f55d71da3491b1a2472383cec4b8236 Author: Ben Skeggs Date: Fri Aug 27 11:58:49 2010 +1000 drm/nouveau: remove second map of notifier bo Signed-off-by: Ben Skeggs commit b8a6a8045d4d3e5b7330603c35cbfaf9f3cc2e50 Author: Ben Skeggs Date: Fri Aug 27 11:55:43 2010 +1000 drm/nouveau: move check for no-op bo move before memcpy fallback Signed-off-by: Ben Skeggs commit f1ab0cc9bacdd33a37603a80852ee0579f809ce7 Author: Ben Skeggs Date: Thu Aug 26 11:32:01 2010 +1000 drm/nv50: add new accelerated bo move funtion Hopefully this one will be better able to cope with moving tiled buffers around without getting them all scrambled as a result. Signed-off-by: Ben Skeggs commit 4295f188e8297660b498e021caee430a40558d8b Author: Francisco Jerez Date: Thu Aug 26 23:07:02 2010 +0200 drm/nv20: Use the nv30 CRTC bandwidth calculation code. nv2x CRTC FIFOs are as large as in nv3x (4kB it seems), and the FIFO control registers have the same layout: we can make them share the same implementation. Previously we were using the nv1x code, but the calculated FIFO watermarks are usually too low for nv2x and they cause horrible scanout artifacts. They've gone unnoticed until now because we've been leaving one of the bandwidth regs uninitialized (CRE 47, which contains the most significant bits of FFLWM), so everything seemed to work fine except in some cases after a cold boot, depending on the memory bandwidth and pixel clocks used. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit 316f60a120a8f1dacb574f705d5faf7eac3e6e2a Author: Francisco Jerez Date: Thu Aug 26 16:13:49 2010 +0200 drm/nouveau: Fix suspend on some nv4x AGP cards. On some nv4x cards (specifically, the ones that use an internal PCIE->AGP bridge) the AGP controller state isn't preserved after a suspend/resume cycle, and the AGP control registers have moved from 0x18xx to 0x100xx, so the FW check in nouveau_mem_reset_agp() doesn't quite work. Check "dev->agp->mode" instead. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs commit e7193cc8e7b67b29483d9fd4fec04ec7b42861f0 Author: Santosh Shilimkar Date: Thu Sep 16 18:44:48 2010 +0530 omap4: Fix bootup crash observed with higher CPU clocks This patch is temporary fix to below crash. This is observed when CPU is clocked more than 600 MHz. Unhandled fault: imprecise external abort (0x1406) at 0xbf9ef65c Internal error: : 1406 [#1] PREEMPT SMP last sysfs file: Modules linked in: CPU: 0 Not tainted (2.6.36-rc3+ #18) PC is at kernel_thread_helper+0x0/0x14 LR is at kernel_thread_helper+0x0/0x14 pc : [] lr : [] psr: 00000093 sp : dc83bff8 ip : 00000000 fp : 00000000 r10: 00000000 r9 : 00000000 r8 : 00000000 r7 : 00000013 r6 : c003ce28 r5 : c008935c r4 : 00000000 r3 : 00000000 r2 : 00000000 r1 : 00000000 r0 : 00000000 Flags: nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel Control: 10c53c7f Table: 8000404a DAC: 00000017 Process swapper (pid: 2, stack limit = 0xdc83a2f0) Stack: (0xdc83bff8 to 0xdc83c000) bfe0: 00000000 ffffffff [] (kernel_thread_helper+0x0/0x14) from [] (0xfffffffe) Code: c03a0ba3 c03a5fcb c045c880 c0394035 (eb017701) ---[ end trace 1b75b31a2719ed1c ]--- The timer hwmod adaptation will eventually fix it in a proper way. Signed-off-by: Rajendra Nayak Signed-off-by: Santosh Shilimkar commit b5be6b66b7a33f48bf0dfb466443ae9b65e69871 Author: David Anders Date: Thu Sep 16 18:44:47 2010 +0530 omap4: Panda: Add DEBUG_LL support Add support for use of DEBUG_LL for use with PandaBoard. Signed-off-by: David Anders commit a777b7277ef9b04481d4ceaac353bb4bd82e2f1e Author: Santosh Shilimkar Date: Thu Sep 16 18:44:47 2010 +0530 omap4: l2x0: Fix init parameter for es2.0 On ES2.0 the L2 cache init parameter ineeds to be changed to take care of cache size. The cache size is 1MB on ES2.0 vs 512KB on ES1.0 This patch fixes the init parameter to update the same using dynamic cpu version check Signed-off-by: Santosh Shilimkar commit ed6be0bafc7781634a197ddd85b575ffcd7736b6 Author: Santosh Shilimkar Date: Thu Sep 16 18:44:46 2010 +0530 omap4: Update id.c and cpu.h for es2.0 This patch updates the id.c and cpu.h files to support omap4 ES2.0 silicon detection. Few initial omap4 es2 samples IDCODE is same as es1. So the patch uses ARM cpuid register to detect the ES version for such samples Signed-off-by: Santosh Shilimkar commit f47d8c694e666843653f06c257d8cfb87e376f5d Author: Vikram Pandita Date: Thu Sep 16 18:19:25 2010 +0530 omap4: sram: Fix start address On OMAP4 there is no need to have SRAM_BOOTLOADER_SZ provision Hence put this macro under CONFIG_ARCH_OMAP2PLUS check Signed-off-by: Vikram Pandita Reviewed-by: Santosh Shilimkar commit 2a27753fdc2ab046c754e3e203953dd0d4c1611b Author: Vikram Pandita Date: Thu Sep 16 18:19:24 2010 +0530 omap: sram: fix is_sram_locked check For OMAP24xx/34xx/44xx: omap_type() returns the correct type: OMAP2_DEVICE_TYPE_TEST OMAP2_DEVICE_TYPE_EMU OMAP2_DEVICE_TYPE_SEC OMAP2_DEVICE_TYPE_GP OMAP2_DEVICE_TYPE_BAD In current implementation there are two problems: Problem 1: For 34xx, the current if check will never return true. Problem 2: For 24xx the correct type check should be with omap_type() function Verified by checking the TRM 24xx for CONTROL_STATUS register bits Signed-off-by: Vikram Pandita Acked-by: Santosh Shilimkar commit 4a445f291ac3faa08f56eaeb6e44856b6b72b74c Merge: cbc60ca a850ea3 Author: Dave Airlie Date: Fri Sep 24 15:37:33 2010 +1000 Merge remote branch 'origin/master' of /home/airlied/kernel//linux-2.6 into drm-core-next commit efd4f6398dc92b5bf392670df862f42a19f34cf2 Author: Florian Tobias Schandinat Date: Wed Sep 22 02:33:52 2010 +0000 viafb: use proper register for colour when doing fill ops The colour was written to a wrong register for fillrect operations. This sometimes caused empty console space (for example after 'clear') to have a different colour than desired. Fix this by writing to the correct register. Many thanks to Daniel Drake and Jon Nettleton for pointing out this issue and pointing me in the right direction for the fix. Fixes http://dev.laptop.org/ticket/9323 Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan Cc: Daniel Drake Cc: Jon Nettleton Cc: stable@kernel.org commit 47eb1d841790082d2fb4bc7a83c81e0a84a30a9e Author: Florian Tobias Schandinat Date: Sun Sep 19 05:35:44 2010 +0000 viafb: add documentation for proc interface This patch adds documentation for the new proc interface that allows modification of the output device configuration. Should be stable and useful enough now for daily use. Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan Cc: Andrew Morton commit a2aa9f9f5ad94c8e0e767110c7a659de84a6b762 Author: Florian Tobias Schandinat Date: Sun Sep 19 04:40:15 2010 +0000 viafb: rename output devices Now it looks like we finally know enough about the output devices to give them proper names. As VIA_96 is often referred to as DVP0 rename it to VIA_DVP0. As VIA_6C and VIA_93 seem to exist only on CLE266 and "replace" DVP0 and DVP1 there rename them to VIA_LDVP0 and VIA_LDVP1 (L as legacy). The proc names were changed accordingly which should be harmless as they were just introduced and not beyond RFC state. This patch should make things a bit more comfortable and less scary. Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan Cc: Andrew Morton commit dd7a0b08cd921763e570f693ecc4816aa2f1a3fd Author: Florian Tobias Schandinat Date: Sun Sep 19 04:20:55 2010 +0000 viafb: add a mapping of supported output devices This patch maps supported output devices to IGP versions. This list may contain errors as most of it is derived of the driver source but it should be correct enough to provide a good help. The devices are exported via a proc entry in the same format as those showing the output devices per IGA. Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan Cc: Andrew Morton commit 2e1abbdd1dbc49e16eabd13e8b2458ee48e7b560 Author: Florian Tobias Schandinat Date: Sun Sep 19 01:20:19 2010 +0000 viafb: set sync polarity for all output devices This patch sets the sync polarity for all output devices, not only CRT. This may give some people a working screen but only if lcd scaling and centering are not used as it is currently too dificult to propagate a different resolution (from what the application thinks) to the correct output device. Hopefully this does not introduce regressions as the polarity of non-CRT devices was completly ignored before. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit 7f0e153e2c0b15aa7427ad4ac550640e1e2e9c33 Author: Florian Tobias Schandinat Date: Sat Sep 18 23:47:28 2010 +0000 viafb: add function to change sync polarity per device At the moment only the sync polarity for CRT is handled but there are also bits for controlling the sync polarity for other output devices. Add a function to change those similar to the other output device functions. There is no runtime change yet as the code still handles only CRT. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit e029ab0d02b94d633d8e82a46dfdb7fd94a62216 Author: Florian Tobias Schandinat Date: Fri Sep 17 02:10:33 2010 +0000 viafb: reduce I2C timeout and delay This patch reduces the value for I2C timeout and udelay. The udelay was reduced to 10 (old: 40) which is still very high as for standard-mode I2C even 5 should work. This gives a speedup of factor 4 when talking to I2C devices. The timeout was reduced to 2 (old: 20) which is taken from the radeon driver so it should work as well. This gives a speedup of factor 10 when detecting that there is no I2C device we want to talk to. This causes a huge improvement of device initialization time. Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan commit ee40b7d1c0391944cdd328d4e2432bd4c110c644 Author: Florian Tobias Schandinat Date: Fri Sep 17 01:56:18 2010 +0000 viafb: enable I2C for CRT This patch enables the I2C port to talk with the CRT. This allows adding EDID reading and parsing capability for CRTs. Just a small preparation, no notable changes in user experience yet. Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan commit 85c5702ac046b14713f776d59768252d8ed8018f Author: Florian Tobias Schandinat Date: Fri Sep 17 01:16:25 2010 +0000 viafb: fix i2c_transfer error handling i2c_transfer returns negative errno on error and number of messages processed on success. Just returning this value would give a poor interface as it is not obvious that you must compare with 2 after reading 1 or n bytes and with 1 after writing 1 byte to determine if it was successful. To avoid this error prone interface convert the error code of a successful read/write to zero and all other non-negative values to an negative error code. This fixes a regression introduced by via: Rationalize vt1636 detection which resulted in no longer detecting a VT1636 chip and therefore has broken the output in configurations which contain this chip. Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan Cc: stable@kernel.org commit dbc28098248197e6b58f33ca0685f694a8e03e60 Author: Florian Tobias Schandinat Date: Wed Sep 8 17:13:55 2010 +0000 viafb: vt1636 cleanup This patch merges tbl1636 into vt1636 and cleans it up as the data was only used there anyway. No runtime changes are expected. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit 6f9422d4e407bd63a9bd665ea09e57c1e3800c47 Author: Florian Tobias Schandinat Date: Tue Sep 7 14:28:26 2010 +0000 viafb: introduce per output device power management This patch moves common parts of dvi.c, lcd.c and vt1636.c to hw.c to start a per output device power management. There should be no runtime changes aside that this patch enables the proc interface to enable/disable devices when needed which greatly increases the chances that changes to the output device configuration will work. However the power management is not yet complete so it might fail on some configurations. As this area is quite complex and touches undocumented things there is a slight chance of regressions. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit c2a07c932dad49b3b80b11132183b8b2ec8ea1aa Author: Florian Tobias Schandinat Date: Tue Sep 7 01:24:52 2010 +0000 viafb: limit LCD code impact This patch cleans the LCD code up. It forbids overwritting global decissions like what IGA should be used as the source and whether to enable the second display channel. Additionally it removes a bit code duplication. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit 2a9183923af1f6f4da66aeabf9fa5af0dc58ccec Author: Florian Tobias Schandinat Date: Sun Sep 5 01:33:28 2010 +0000 viafb: add interface for output device configuration This patch extends the proc entry to contain a possibility to view and change the output devices for each IGA. This is useful for debugging output problems as it provides a reliable way to query which low level devices are active after VIAs output device configuration nightmare happended. It's as well suitable for daily use as one can change the output configuration on the fly for example to connect a projector. At the moment it's still unstable. The reason is that we have to handle a bunch of undocumented output devices (those without a proper name) and that this patch is the first step to collect and verify the needed information. Basically the only configuration change that is expected to work at the moment is switching output devices between IGA1 and IGA2. Signed-off-by: Florian Tobias Schandinat Acked-by: Jonathan Corbet Cc: Joseph Chan Cc: Andrew Morton commit cd7e9103e983ff0f518ac0e85cee265027ccbfa4 Author: Florian Tobias Schandinat Date: Wed Aug 11 22:22:54 2010 +0000 viafb: merge the remaining output path with enable functions This patch merges the remaining functionality of the output path function in the associated enabling functions. This is very natural as most of the remaining code does actually enable the device. Just some more or less intelligent code merge. If no stupid mistakes occured there should be no regressions. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit bc6848875152f3df860d0f54a2323cc7615527d9 Author: Florian Tobias Schandinat Date: Wed Aug 11 00:37:58 2010 +0000 viafb: use new device routing This patch uses the iga{1,2}_devices variables to select which IGA should be the source. Doing this is convinient, more powerfull than the older scheme and easy extendable to support further output devices. It is not yet completed as the device on/off selection needs to be converted to the same scheme to take full advantage. No visible changes yet as we want to complete the transition before anouncing any unstabke interface. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit 18d9dc08b22145adb248d16dd2cefb2ccf9f7665 Author: Florian Tobias Schandinat Date: Tue Aug 10 02:44:44 2010 +0000 viafb: add new output device management This patch adds a new output device management that stores for each IGA which output devices are routed to it and a compatiblity layer that converts the old per-output device values in the new format. Bounding the output devices to each IGA is a central idea of the cleanup. Doing it this way should be easier and make much more sense than the old format which happily mixed different output devices together and did not even take into account that some devices are no longer available on newer chipsets. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit 661c65cd0ce180d5e3a3e05f08fc9e64cedcf91c Author: Florian Tobias Schandinat Date: Tue Aug 10 00:45:06 2010 +0000 viafb: reduce viafb_set_iga_path usage The result of viafb_set_iga_path can change after init only in the hotplug ioctl. So we can move it there rather than doing it always when a new mode is set. The setup during init is done via a call from the init chip funtion. This change enables a stable mapping between the old device scheme and a new more powerfull one. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit f4ab2f7a21338ae0f59ad925c23545e790cd51e3 Author: Florian Tobias Schandinat Date: Mon Aug 9 01:34:27 2010 +0000 viafb: propagate __init and __devinit There are a lot of init functions which are not marked as such. Fix this. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit a54be174e425cb41eb774714d03ff98562ee0824 Author: Florian Tobias Schandinat Date: Wed Jul 28 23:06:04 2010 +0000 viafb: rework output device routing This patch rips the device routing out of the 3 main functions to separate functions to make them available for transition to a better controlling scheme. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit b002741d174a32f8162b2110ad9757b6fb6afcc3 Author: Florian Tobias Schandinat Date: Wed Jul 28 01:11:41 2010 +0000 viafb: enable second display channel at central place Move the enabling of the second display channel to the generic output routing function and do it exactly if something is using it. This unifies a zoo of variants how to do it and does no longer disable it if LCD is not on the second display which is much saner as there can be other users who need it. Probably this did not cause any problems so far as we only recently started dual fb support and otherwise there won't be other users and LCD is preferred assigned to second display channel. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit 414d3ce1b34384dd42e31536075583b9edb3cab6 Author: Florian Tobias Schandinat Date: Sun Aug 8 02:14:59 2010 +0000 viafb: unify output path configuration Move all output path routing directly in the viafb_setmode. This gives a better overview and allows to factor similar parts out. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit 646aafa649abb5362e55176cc5ee9c14c3c463a1 Author: Florian Tobias Schandinat Date: Fri Jul 30 22:49:17 2010 +0000 viafb: remove stub This is a nop so removing it is safe. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit 91336712ce579dd8e83bc07bf0a45b7c6963eed2 Author: Florian Tobias Schandinat Date: Sat Aug 7 18:47:01 2010 +0000 viafb: remove lcdtbl.h This patch moves the power on/off sequences to lcd.c as they are only used there. This allows removing lcdtbl.h as the other stuff is not used. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit e3812ce4ee43f50a7423de70609f42990039f4ae Author: Florian Tobias Schandinat Date: Wed Jul 28 00:57:18 2010 +0000 viafb: reset correct PLL Looks like we did reset the PLL of the (whatever) engine instead of the PLL of the secondary display (IGA2, LCDCK). This patch fixes it. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan commit 04be1e9ba49657347b4e1969a217e5fc33bbf72a Author: Jarkko Nikula Date: Fri Aug 20 09:36:28 2010 +0300 omap: n8x0: Mux i2s codec port pins for McBSP block Bootloader on Nokia N800 and N810 muxes I2C codec port pins for EAC block. As there is no driver and use for EAC, mux those pins for McBSP instead since N810 ASoC drivers can use it. Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren commit 366498d4f2aef7640ae467a986d69d1cc06a141b Author: Jarkko Nikula Date: Fri Aug 20 09:36:28 2010 +0300 omap: n8x0: Register i2c2 and add board info with tlv320aic3xfor N810 Second i2c bus on Nokia N800 and N810 shares both common and hw specific peripherals. Register now this bus and add board info with tlv320aic3x for N810. Common peripherals may be added as an additional board info to omap_register_i2c_bus(2, ...); Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren commit a7f97d25c707e1020bd7bcb443e183860e5abf48 Author: Jarkko Nikula Date: Fri Aug 20 09:36:28 2010 +0300 omap: n8x0: Cleanup i2c1 and menelaus registration - Move n8x0_i2c_board_info_1 out from #ifdef CONFIG_MENELAUS block, register i2c1 in n8x0_init_machine and do a few clean-ups around these. Code looks better if board infos are grouped together - Mark n8x0_i2c_board_info_1 and n8x0_menelaus_platform_data with __initdata Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren commit ca828760f96ee8f0b6c93400599844761aa69dc0 Author: Sanjeev Premi Date: Thu Sep 23 18:27:18 2010 -0700 omap2: fix assorted compiler warnings This patch fixes these compiler warnings: CC arch/arm/mach-omap2/mux.o arch/arm/mach-omap2/mux.c: In function 'omap_mux_init_gpio': arch/arm/mach-omap2/mux.c:90: warning: 'gpio_mux' may be used uninitial ized in this function CC arch/arm/plat-omap/gpio.o arch/arm/plat-omap/gpio.c: In function 'omap2_gpio_resume_after_idle': arch/arm/plat-omap/gpio.c:2152: warning: 'l' may be used uninitialized in this function arch/arm/plat-omap/gpio.c: In function 'omap2_gpio_prepare_for_idle': arch/arm/plat-omap/gpio.c:2085: warning: 'l2' may be used uninitialized in this function arch/arm/plat-omap/gpio.c:2085: warning: 'l1' may be used uninitialized in this function CC arch/arm/mach-omap2/board-omap4panda.o arch/arm/mach-omap2/board-omap4panda.c: In function 'omap4_panda_init': arch/arm/mach-omap2/board-omap4panda.c:277: warning: unused variable 's tatus' Signed-off-by: Sanjeev Premi Signed-off-by: Tony Lindgren commit e3333f48dd5cb21b8d43d6d3a434055815084f1e Author: Mathieu J. Poirier Date: Thu Sep 23 18:22:48 2010 -0700 omap: Adding beagle i2c eeprom driver to read EDID Adding i2c eeprom driver to access monitor EDID binary information from user space, something that is required by 'decode-edid' and 'parse-edid'. BugLink: https://bugs.launchpad.net/bugs/608279 Signed-off-by: Mathieu Poirier Signed-off-by: Tony Lindgren commit cf74d41ea07fe6066daea7df74d9550bc2c64284 Author: Robert Nelson Date: Thu Sep 23 18:22:48 2010 -0700 omap: Beagle: no gpio_wp pin connection on xM The omap3630 based BeagleBoard xM uses a MicroSD card slot with no write protection. Signed-off-by: Robert Nelson Acked-by: Jarkko Nikula Signed-off-by: Tony Lindgren commit e4916e117a4fcd001a1be777e406ec1f98b75de4 Author: Robert Nelson Date: Thu Sep 23 18:22:48 2010 -0700 omap: Beagle: only Cx boards use pin 23 for write protect system_rev comes from u-boot and is a constant 0x20, so Bx boards also fall in this 'if' and will get setup with the wrong gpio_wp pin. Switch to using the Beagle revision routine to correcly set pin 23 only for C1/2/3 and C4 Boards. Bx boards will then use the correct default pin setting. Signed-off-by: Robert Nelson Acked-by: Jarkko Nikula Signed-off-by: Tony Lindgren commit 954bed046fe57724851879a9db813eecb1d15f55 Author: Robert Nelson Date: Thu Sep 23 18:22:47 2010 -0700 omap: Beagle: revision detection Due to the omap3530 ES3.0 Silicon being used on both the B5/B6 and C1/2/3 Beagle we can't use the cpu_is_omap34xx() routines to differentiate the Beagle Boards. However gpio pins 171,172,173 where setup for this prupose, so lets use them. Changes: for older U-Boot's, use omap_mux_init_gpio() keep Beagle Rev in board-omap3beagle.c gpio_free on gpio request failure Tested on Beagle Revisions: B5, C2, C4, and xMA Signed-off-by: Robert Nelson Acked-by: Jarkko Nikula Signed-off-by: Tony Lindgren commit 0df891bb9c36c57d09c8b7cf28904e3672d93f9e Author: Shubhrajyoti Datta Date: Thu Sep 23 18:22:47 2010 -0700 hmc5843: Digital compass board file The board file changes for the digital compass hmc5843. The interface to the device is i2c. Signed-off-by: Shubhrajyoti D Signed-off-by: Tony Lindgren commit 39cdd14570e3c32728d407cb38de17e80cf16104 Merge: 172c113 e933ec7 Author: Tony Lindgren Date: Thu Sep 23 17:29:36 2010 -0700 Merge branch 'pm-runtime' of ssh://master.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm into omap-for-linus commit 172c11351576cf5daa8f1b02a265bf84de8bbed1 Merge: 9af2ebb 0aed0435 Author: Tony Lindgren Date: Thu Sep 23 17:29:28 2010 -0700 Merge branch 'pm-next' of ssh://master.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm into omap-for-linus commit 0aed043517ad4135cb458a46e9e99e21cbb59c69 Author: Kevin Hilman Date: Wed Sep 22 16:06:27 2010 -0700 OMAP: GPIO: ensure debounce clocks are disabled during idle/suspend If a GPIO bank has more than one GPIO with debounce enabled, the debounce clock will not be fully disabled before going to idle/suspend. In the idle path, we just do a single clk_disable() of the bank's debounce clock. If there are multiple debounce-enabled GPIOs in the bank, that clocks usage count will be > 1, so the clk_disable() will not actually disable the clock. So the fix is to clk_disable() for every debounce-enabled GPIO in the bank (and an equivalent clk_enable() of course.) Signed-off-by: Kevin Hilman commit cbf27660e692d8c74087c0ccb80225207d280af1 Author: Benoit Cousson Date: Thu Aug 5 15:22:35 2010 +0200 OMAP4: pm: Change l3_main to l3_main_1 during bus device init The OMAP4 L3 interconnect is split in 3 part for power saving reason. Because of that there is no l3_main like on OMAP2 & 3 but 3 differentes l3_main_X instances. In the case of OMAP4, query only the l3_main_1 part. The clock and voltage are shared across the 3 instances. Signed-off-by: Benoit Cousson Cc: Paul Walmsley Signed-off-by: Kevin Hilman commit 55d2cb0814f4285f89be8ed474a8ae7042fb5735 Author: Benoit Cousson Date: Wed May 12 17:54:36 2010 +0200 OMAP4: hwmod: Add initial data for OMAP4430 ES1 & ES2 The current version contains only the interconnects and the mpu hwmods. The remaining hwmods will be introduced by further patches on top of this one. - enable as well omap_hwmod.c build for OMAP4 Soc Please not that this file uses the new naming convention for naming HW IPs. This convention will be backported soon for previous OMAP2 & 3 data files. new name trm name ------------- ------------------- counter_32k synctimer_32k l3_main l3 timerX gptimerX / dmtimerX mmcX mmchsX / sdmmcX dma_system sdma smartreflex_X sr_X / sr? usb_host_fs usbfshost usb_otg_hs hsusbotg usb_tll_hs usbtllhs_config wd_timerX wdtimerX ipu cortexm3 / ducati dsp c6x / tesla iva ivahd / iva2.2 kbd kbdocp / keyboard mailbox system_mailbox mpu cortexa9 / chiron Signed-off-by: Benoit Cousson Cc: Paul Walmsley Cc: Kevin Hilman Cc: Rajendra Nayak Signed-off-by: Kevin Hilman commit 0d5e825252e184a5608c8a9827b79f591535b806 Author: Kevin Hilman Date: Mon Aug 23 08:10:55 2010 -0700 OMAP: omap_device: make all devices a child of a new parent device In order to help differentiate omap_devices from normal platform_devices, make them all a parent of a new common parent device. Then, in order to determine if a platform_device is also an omap_device, checking the parent is all that is needed. Users of this feature are the runtime PM core for OMAP, where we need to know if a device being passed in is an omap_device or not in order to know whether to call the omap_device API with it. In addition, all omap_devices will now show up under /sys/devices/omap instead of /sys/devices/platform Acked-by: Paul Walmsley Signed-off-by: Kevin Hilman commit a1ed40cb258ba7a8574e662de5ae6ba4dc314436 Author: Kevin Hilman Date: Mon Aug 23 10:53:10 2010 -0700 Revert "OMAP: omap_device: add omap_device_is_valid()" This reverts commit 0007122ad85cc36b1c18c0b59344093ca210d206. The dereference method of checking for a valid omap_device when wrapping a platform_device is rather unsafe and dangerous. Instead, a better way of checking for a valid omap-device is to use a common parent device for all omap_devices, then a check can simply be made using the device parent. The only user of this API was the initial version of the runtime PM core for OMAP. This has now been switched to check device parent, so there are no more users of this API. Acked-by: Paul Walmsley Signed-off-by: Kevin Hilman commit 6f7f63cc9adf3192e6fcac4e8bed5cc10fd924aa Author: Paul Walmsley Date: Tue Sep 14 15:56:53 2010 -0600 OMAP clockdomain: initialize clockdomain registers when the clockdomain layer starts When the clockdomain layer initializes, place all clockdomains into software-supervised mode, and clear all wakeup and sleep dependencies immediately, rather than waiting for the PM code to do this later. This fixes a major bug where critical sleep dependencies added by the hwmod code are cleared during late PM init. As a side benefit, the _init_{wk,sleep}dep_usecount() functions are no longer needed, so remove them. Kevin Hilman did all the really hard work on this, identifying the problem and finding the bug. Signed-off-by: Paul Walmsley Signed-off-by: Kevin Hilman commit eb6a2c7550560e6619eadb912ea8384ce27964b8 Author: Santosh Shilimkar Date: Wed Sep 15 01:04:01 2010 +0530 omap: pm: Move set_pwrdm_state routine to common pm.c The set_pwrdm_state() is needed on omap4 as well so move this routine to common pm.c file so that it's available for omap3/4 Signed-off-by: Rajendra Nayak Signed-off-by: Santosh Shilimkar Signed-off-by: Kevin Hilman commit 315e2556f62adb51c40d5422f4134bd3630d8157 Author: Santosh Shilimkar Date: Wed Sep 15 01:04:00 2010 +0530 omap: pm-debug: Enable wakeup_timer_milliseconds debugfs entry Commit 8e2efde9 added milliseconds suspend wakeup time support but same interface is not exported through debugfs This patch enables the debugfs hook for wakeup_timer_milliseconds Signed-off-by: Santosh Shilimkar Signed-off-by: Kevin Hilman commit 86b0c1e3c07f7fc3a8197a934d9a04476061bed9 Author: Santosh Shilimkar Date: Wed Sep 15 01:03:59 2010 +0530 omap: pm-debug: Move common debug code to pm-debug.c This patch moves omap2_pm_wakeup_on_timer() and pm debug entries form pm34xx.c to pm-debug.c and export it, so that it is available to other OMAPs Signed-off-by: Santosh Shilimkar Signed-off-by: Kevin Hilman commit b3294e2327718e9487e662d1392b36b39f07d70b Author: Thara Gopinath Date: Wed Sep 1 13:44:53 2010 +0530 OMAP4: pm.c extensions for OMAP4 support OMAP4 has an iva device and a dsp devcice where as OMAP2/3 has only an iva device. In this file the iva device in the system is registered under the name dsp_dev and the API to retrieve the iva device is omap2_get_dsp_device. This patch renames the dsp_dev to iva_dev, renames omap2_get_dsp_device to omap2_get_iva_device, registers dsp_dev for OMAP4 and adds a new API omap4_get_dsp_device to retrieve the dep_dev. Signed-off-by: Thara Gopinath Signed-off-by: Kevin Hilman commit e7410cf7831c2e5106a90dac6179df5d2c9bd60e Author: Kevin Hilman Date: Wed Sep 8 16:37:42 2010 -0700 OMAP3: PM: move device-specific special cases from PM core into CPUidle In an effort to simplify the core idle path, move any device-specific special case handling from the core PM idle path into the CPUidle pre-idle checking path. This keeps the core, interrupts-disabled idle path streamlined and independent of any device-specific handling, and also allows CPUidle to do the checking only for certain C-states as needed. This patch has the device checks in place for all states with the CHECK_BM flag, namely all states >= C2. This patch was inspired by a similar patch written by Tero Kristo as part of a larger series to add INACTIVE state support. NOTE: This is a baby-step towards decoupling device idle (or system idle) from CPU idle. Eventually, CPUidle should only manage the CPU, and device/system idle should be managed elsewhere. Cc: Tero Kristo Signed-off-by: Kevin Hilman commit efd89a2204d4086de48673ff7e4d5f537e32e0a5 Author: Greg Kroah-Hartman Date: Thu Sep 23 16:36:06 2010 -0700 Staging: brcm80211: remove driver specific -W options A single driver shouldn't be overriding the kernel-wide -W options. This removes them from the Makefile. Bonus is that the code at least now will build on a 64bit platform. Problem is that both drivers can't be built at the same time right now or bad things happen when linking. Cc: Henry Ptasinski Cc: Nohee Ko Cc: jason Signed-off-by: Greg Kroah-Hartman commit 449c6741b69cb745214f1b62e188852f28c79332 Author: Greg Kroah-Hartman Date: Thu Sep 23 16:28:53 2010 -0700 Staging: brcm80211: clean up makefile cflag lines Change to use the proper ccflags-y option, as well as splitting the options out one-per-line so that we can see what is needed to be cleaned up and removed over time. Cc: Henry Ptasinski Cc: Nohee Ko Cc: jason Signed-off-by: Greg Kroah-Hartman commit df0a59a14c693647da4097ba3578c524c452fd0d Author: Joe Perches Date: Mon Jul 12 13:49:54 2010 -0700 [IA64] Remove unnecessary casts of private_data in perfmon.c Signed-off-by: Joe Perches Signed-off-by: Tony Luck commit a02cec2155fbea457eca8881870fd2de1a4c4c76 Author: Eric Dumazet Date: Wed Sep 22 20:43:57 2010 +0000 net: return operator cleanup Change "return (EXPR);" to "return EXPR;" return is not a function, parentheses are not required. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 6a08d194ee40806e0ccd5f36ed768e64cbfc979f Author: Jesse Brandeburg Date: Wed Sep 22 18:23:05 2010 +0000 e1000: use GRO for receive E1000 can benefit from calling the GRO receive functions. Signed-off-by: Jesse Brandeburg Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 338c15e470d818f215d651505dc169d4e92f36a4 Author: Jesse Brandeburg Date: Wed Sep 22 18:22:42 2010 +0000 e1000: fix occasional panic on unload Net drivers in general have an issue where timers fired by mod_timer or work threads with schedule_work are running outside of the rtnl_lock. With no other lock protection these routines are vulnerable to races with driver unload or reset paths. The longer term solution to this might be a redesign with safer locks being taken in the driver to guarantee no reentrance, but for now a safe and effective fix is to take the rtnl_lock in these routines. Signed-off-by: Jesse Brandeburg Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 5cf42fcda0fdddfe7f5ea8629cb7b820bf7e91ab Author: Jesse Brandeburg Date: Wed Sep 22 18:22:17 2010 +0000 e1000: use work queues E1000 is using several timers that in a follow on patch will need to acquire the rtnl_lock in order to be safe. This patch moves the timer bodies into work queues which will allow the next patch to add rtnl_lock. Signed-off-by: Jesse Brandeburg Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit ddad53ee8a85649e78f6a3eb8a4af4a7a7c577cb Author: Julia Lawall Date: Fri Aug 27 23:01:30 2010 +0200 [IA64] Fix missing iounmap in error path in cyclone.c By moving the iounmap up above the test, it takes place whether the test succeeds or fails. Signed-off-by: Julia Lawall Signed-off-by: Tony Luck commit 383f9f1741cd03687303f82543bbae11935a2ad6 Author: Thomas Gleixner Date: Tue Sep 7 14:33:34 2010 +0000 [IA64] salinfo: sema_init instead of init_MUTEX Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Signed-off-by: Tony Luck commit 3e6b1b25a92df39d2b619ed3cf74322ddef6800e Author: Nikitas Angelinas Date: Wed Sep 8 22:04:30 2010 +0100 [IA64] xen: use ARRAY_SIZE macro in xen_pv_ops.c Replace sizeof(xen_branch_target) / sizeof(xen_branch_target[0]) with ARRAY_SIZE(xen_branch_target) in arch/ia64/xen/xen_pv_ops.c Signed-off-by: Nikitas Angelinas Signed-off-by: Tony Luck commit c216488cd1f35c54afbcedf185d5908beb814aef Author: Joe Perches Date: Mon Sep 13 21:23:48 2010 -0700 [IA64] Use static const char * const in palinfo.c Signed-off-by: Joe Perches Signed-off-by: Tony Luck commit 48a4b30124d079c765e6eaea3a7359195d7f0c37 Author: Tony Luck Date: Thu Sep 23 14:02:09 2010 -0700 [IA64] remove asm/compat.h Missed this file in commit 32974ad4907cdde6c9de612cd1b2ee0568fb9409 [IA64] Remove COMPAT_IA32 support It is no longer needed, so remove it. Signed-off-by: Tony Luck commit 85718fae2a8d845e66762e6464152a255e323777 Author: Tony Luck Date: Thu Sep 23 13:52:07 2010 -0700 [IA64] Add CONFIG_STACKTRACE_SUPPORT Several Linux features are dependent on stack trace support. Add it so they can be enabled. Signed-off-by: Tony Luck commit 3f224f4e057ce67713f3e7a8890f2fbe12d047a5 Author: Paul Mundt Date: Fri Sep 24 04:04:26 2010 +0900 sh: provide generic arch_debugfs_dir. While sh previously had its own debugfs root, there now exists a common arch_debugfs_dir prototype, so we switch everything over to that. Presumably once more architectures start making use of this we'll be able to just kill off the stub kdebugfs wrapper. Signed-off-by: Paul Mundt commit 005d65fbac28e6cf32c76e95163012eb326f37e4 Author: Dimitris Papastamos Date: Wed Sep 22 16:16:06 2010 +0100 ASoC: Fix incorrect parameter to snd_soc_codec_volatile_register We need to pass the register index and not the register value. This patch depends on my previous patch "ASoC: Delegate to hw specific read for volatile registers". Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit db49c146a8c0e8d49c0ff029c2496d47660dfb28 Author: Dimitris Papastamos Date: Wed Sep 22 13:25:47 2010 +0100 ASoC: Delegate to hw specific read for volatile registers Ensure that reads on volatile registers will correctly delegate to the bus specific read function. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 7c563cc9f3f4aca70c27bd08a135499227f67014 Author: Suresh Jayaraman Date: Thu Sep 23 14:26:48 2010 -0400 nfs: show "local_lock" mount option in /proc/mounts Display the status of 'local_lock' mount option in /proc/mounts. Signed-off-by: Suresh Jayaraman Signed-off-by: Trond Myklebust commit 3e3c486012a3dbb113c0ca15ee265d309d77aea9 Author: Daniel Drake Date: Thu Sep 23 17:28:46 2010 +0100 x86, olpc: Rework BIOS signature check The XO-1.5 laptop is not currently detected as an OLPC machine because it fails this XO-1-centric check. Now that we have OLPC OFW support in the kernel, a more sensible check is to see if we found OFW during boot and check the architecture property. Also remove a now-meaningless codepath, as we're always going to have OFW support with OLPC. Signed-off-by: Daniel Drake LKML-Reference: <20100923162846.D8D409D401B@zog.reactivated.net> Cc: Andres Salomon Cc: Grant Likely Signed-off-by: H. Peter Anvin commit 76fb657017588a0912f0d1d140cb807446e4ef05 Author: Daniel Drake Date: Thu Sep 23 17:28:04 2010 +0100 x86, olpc: Only enable PCI configuration type override on XO-1 This configuration type override is for XO-1 only and must not happen on XO-1.5. Signed-off-by: Daniel Drake LKML-Reference: <20100923162805.0F6549D401B@zog.reactivated.net> Cc: Andres Solomon Cc: Grant Likely Signed-off-by: H. Peter Anvin commit 6554287b1de0448f1e02e200d02b43914e997d15 Author: Bart Oldeman Date: Thu Sep 23 13:16:58 2010 -0400 x86, vm86: Fix preemption bug for int1 debug and int3 breakpoint handlers. Impact: fix kernel bug such as: BUG: scheduling while atomic: dosemu.bin/19680/0x00000004 See also Ubuntu bug 455067 at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/455067 Commits 4915a35e35a037254550a2ba9f367a812bc37d40 ("Use preempt_conditional_sti/cli in do_int3, like on x86_64.") and 3d2a71a596bd9c761c8487a2178e95f8a61da083 ("x86, traps: converge do_debug handlers") started disabling preemption in int1 and int3 handlers on i386. The problem with vm86 is that the call to handle_vm86_trap() may jump straight to entry_32.S and never returns so preempt is never enabled again, and there is an imbalance in the preempt count. Commit be716615fe596ee117292dc615e95f707fb67fd1 ("x86, vm86: fix preemption bug"), which was later (accidentally?) reverted by commit 08d68323d1f0c34452e614263b212ca556dae47f ("hw-breakpoints: modifying generic debug exception to use thread-specific debug registers") fixed the problem for debug exceptions but not for breakpoints. There are three solutions to this problem. 1. Reenable preemption before calling handle_vm86_trap(). This was the approach that was later reverted. 2. Do not disable preemption for i386 in breakpoint and debug handlers. This was the situation before October 2008. As far as I understand preemption only needs to be disabled on x86_64 because a seperate stack is used, but it's nice to have things work the same way on i386 and x86_64. 3. Let handle_vm86_trap() return instead of jumping to assembly code. By setting a flag in _TIF_WORK_MASK, either TIF_IRET or TIF_NOTIFY_RESUME, the code in entry_32.S is instructed to return to 32 bit mode from V86 mode. The logic in entry_32.S was already present to handle signals. (I chose TIF_IRET because it's slightly more efficient in do_notify_resume() in signal.c, but in fact TIF_IRET can probably be replaced by TIF_NOTIFY_RESUME everywhere.) I'm submitting approach 3, because I believe it is the most elegant and prevents future confusion. Still, an obvious preempt_conditional_cli(regs); is necessary in traps.c to correct the bug. [ hpa: This is technically a regression, but because: 1. the regression is so old, 2. the patch seems relatively high risk, justifying more testing, and 3. we're late in the 2.6.36-rc cycle, I'm queuing it up for the 2.6.37 merge window. It might, however, justify as a -stable backport at a latter time, hence Cc: stable. ] Signed-off-by: Bart Oldeman LKML-Reference: Cc: Frederic Weisbecker Cc: K.Prasad Cc: Alan Stern Cc: Alexander van Heukelum Cc: Signed-off-by: H. Peter Anvin commit 9af2ebbd09e01bd2711617dcafce5f608cace6ec Merge: 493c32a 74ff3a6 Author: Tony Lindgren Date: Thu Sep 23 11:05:25 2010 -0700 Merge branch 'hwmod_2.6.37' of git://git.pwsan.com/linux-2.6 into omap-for-linus commit 493c32a0de2bfbcc33d52f32a39f3c301c6ffd62 Author: Cory Maccarrone Date: Wed Aug 18 04:35:46 2010 +0000 HTCHERALD: MMC, I2C, HTCPLD, SPI, TSC2046 This change adds in MMC and I2C support to the HTC Herald board, as well as adding the HTCPLD driver for the PLD used on this phone. It also adds in the gpio-keys entries for the front directional keys and selector and the cursor keys on the slide-out keyboard, and gpio-leds support for the LEDs attached to the htcpld. Additionally, SPI bus support (using the spi100k driver) and touchscreen support (using the ads7846 driver) were added. Signed-off-by: Cory Maccarrone Signed-off-by: Tony Lindgren commit 4e7d7c6018567fa03f387d06602d4145c75ebbe0 Author: Vince Weaver Date: Wed Sep 22 17:31:37 2010 -0400 ALSA: hda - MacBookPro 5,3 line-in support I've found the following patch is necessary to enable line-in on my MacBookPro 5,3 machine. With the patch applied I've successfully recorded audio from the line-in jack. This is based on the existing 5,5 support. Signed-off-by: Vince Weaver Signed-off-by: Takashi Iwai commit d1ea13c6e2cce0106531852daaa93dd97aec9580 Author: Thomas Gleixner Date: Thu Sep 23 18:40:07 2010 +0200 genirq: Cleanup irq_chip->typename leftovers 3 years transition phase is enough. Cleanup the last users and remove the cruft. Signed-off-by: Thomas Gleixner Cc: Leo Chen Cc: Hirokazu Takata Cc: Chris Metcalf Cc: Jeff Dike Cc: Chris Zankel commit ef84303ebc77a9041265faaccd56b7fcef151077 Author: Benny Halevy Date: Thu Sep 23 12:22:09 2010 -0400 NFS: handle inode==NULL in __put_nfs_open_context inode may be NULL when put_nfs_open_context is called from nfs_atomic_lookup before d_add_unique(dentry, inode) Signed-off-by: Benny Halevy Signed-off-by: Trond Myklebust commit 2dfbf4dfbe47a484bae20456c12b40763b9b6af7 Author: Paul E. McKenney Date: Wed Sep 15 23:30:48 2010 -0700 rcu: Add advice to PROVE_RCU_REPEATEDLY kernel config parameter The PROVE_RCU_REPEATEDLY has no "Say Y"/"Say N" advice, so this commit adds it. Reported-by: Johannes Berg Signed-off-by: Paul E. McKenney commit 269dcc1c2ec25864308ee03a3fa26ea819d9f5d0 Author: Paul E. McKenney Date: Tue Sep 7 14:23:09 2010 -0700 rcu: Add tracing data to support queueing models The current tracing data is not sufficient to deduce the average time that a callback spends waiting for a grace period to end. Add three per-CPU counters recording the number of callbacks invoked (ci), the number of callbacks orphaned (co), and the number of callbacks adopted (ca). Given the existing callback queue length (ql), the average wait time in absence of CPU hotplug operations is ql/ci. The units of wait time will be in terms of the duration over which ci was measured. In the presence of CPU hotplug operations, there is room for argument, but ql/(ci-co+ca) won't steer you too far wrong. Also fixes a typo called out by Lucas De Marchi . Signed-off-by: Paul E. McKenney commit 0ddea0ead2ced99eaaaddff2beb755381e5c89f8 Author: Paul E. McKenney Date: Sun Sep 19 21:06:14 2010 -0700 rcu: fix sparse errors in rcutorture.c Add the sparse __rcu address-space identifier and make a couple of variables static. Signed-off-by: Paul E. McKenney commit 53ecfba259f54b6967a35d19f4a564e3bc07997f Author: Paul E. McKenney Date: Mon Sep 13 17:24:21 2010 -0700 rcu: only one evaluation of arg in rcu_dereference_check() unless sparse The current version of the __rcu_access_pointer(), __rcu_dereference_check(), and __rcu_dereference_protected() macros evaluate their "p" argument three times, not counting typeof()s. This is bad news if that argument contains a side effect. This commit therefore evaluates this argument only once in normal kernel builds. However, the straightforward approach defeats sparse's RCU-pointer checking, so when __CHECKER__ is defined, the additional pair of evaluations of the "p" argument are performed in order to permit sparse to detect misuse of RCU-protected pointers. Signed-off-by: Paul E. McKenney Cc: Arnd Bergmann commit 829f8ed2c963df7c23d1c644db6c4387eb1601fa Author: Christian Dietrich Date: Mon Sep 6 16:37:12 2010 +0200 kernel: Remove undead ifdef CONFIG_DEBUG_LOCK_ALLOC The CONFIG_DEBUG_LOCK_ALLOC ifdef isn't necessary at this point, because it is checked in an outer ifdef level already and has no effect here. Signed-off-by: Christian Dietrich Signed-off-by: Paul E. McKenney commit 049ef27b224ecc33958465fef83d5e4e8a056115 Author: Pavel Emelyanov Date: Thu Sep 23 18:26:58 2010 +0400 nfsd: Export get_task_comm for nfsd The git://linux-nfs.org/~bfields/linux.git nfsd-next branch doesn't compile when nfsd is a module with the following error: ERROR: "get_task_comm" [fs/nfsd/nfsd.ko] undefined! Replace the get_task_comm call with direct comm access, which is safe for current. Signed-off-by: Pavel Emelyanov Signed-off-by: J. Bruce Fields commit 18a06301158b5e4e9fae29e477f468e23f3eda90 Author: Linus Walleij Date: Sun Sep 12 12:56:44 2010 +0100 ARM: 6370/1: mmci: use _cansleep GPIO functions Currently the kernel is screaming about slowpath at me for the wp/cd callbacks. Switch to the _cansleep variants so as to silence this. Signed-off-by: Linus Walleij Signed-off-by: Russell King commit 4b8caec09562ce7e6e3aaf2954eef8ea73ba67b8 Author: Rabin Vincent Date: Mon Aug 9 12:56:40 2010 +0100 ARM: 6309/1: mmci: allow neither ->status nor gpio_cd to be specified The card may be always present on the board, and for these cases neither a status callback nor a card detect GPIO is required, and card detection polling can be disabled. Acked-by: Linus Walleij Signed-off-by: Rabin Vincent Signed-off-by: Russell King commit 148b8b39c156424da22693d26adcb69800faf95e Author: Rabin Vincent Date: Mon Aug 9 12:55:48 2010 +0100 ARM: 6308/1: mmci: support card detection interrupts If an IRQ can be requested on the card detected GPIO, use it instead of polling. Acked-by: Linus Walleij Signed-off-by: Rabin Vincent Signed-off-by: Russell King commit f6127b8645207b4cb43e7456214c6add7c37cdc1 Author: Martin Schwidefsky Date: Thu Sep 23 15:21:36 2010 +0200 ds2760_battery: Fix W1 and W1_SLAVE_DS2760 dependency Fix this Kconfig warning on allmodconfig for s390: warning: (BATTERY_DS2760 && POWER_SUPPLY) selects W1 which has unmet direct dependencies (HAS_IOMEM) Signed-off-by: Martin Schwidefsky Signed-off-by: Anton Vorontsov commit c2048b003cfb840ad81bdc6eb55beb12a19a222e Author: Steven Whitehouse Date: Thu Sep 23 14:00:31 2010 +0100 GFS2: Remove localcaching mount option This option defaulted to on for lock_nolock mounts and off otherwise. The only function was to avoid the revalidation of dentries. In the cluster case, that is entirely pointless and liable to cause coherency problems. The patch changes the revalidation to depend upon whether the fs is a local or cluster fs (i.e. it follows the existing default behaviour). I very much doubt anybody ever used this option as there is no reason to. Even so we will continue to accept it on the mount command line, but ignore it. Signed-off-by: Steven Whitehouse commit 5eebde23223aeb0ad2d9e3be6590ff8bbfab0fc2 Author: Suresh Jayaraman Date: Thu Sep 23 08:55:58 2010 -0400 nfs: introduce mount option '-olocal_lock' to make locks local NFS clients since 2.6.12 support flock locks by emulating fcntl byte-range locks. Due to this, some windows applications which seem to use both flock (share mode lock mapped as flock by Samba) and fcntl locks sequentially on the same file, can't lock as they falsely assume the file is already locked. The problem was reported on a setup with windows clients accessing excel files on a Samba exported share which is originally a NFS mount from a NetApp filer. Older NFS clients (< 2.6.12) did not see this problem as flock locks were considered local. To support legacy flock behavior, this patch adds a mount option "-olocal_lock=" which can take the following values: 'none' - Neither flock locks nor POSIX locks are local 'flock' - flock locks are local 'posix' - fcntl/POSIX locks are local 'all' - Both flock locks and POSIX locks are local Testing: - This patch was tested by using -olocal_lock option with different values and the NLM calls were noted from the network packet captured. 'none' - NLM calls were seen during both flock() and fcntl(), flock lock was granted, fcntl was denied 'flock' - no NLM calls for flock(), NLM call was seen for fcntl(), granted 'posix' - NLM call was seen for flock() - granted, no NLM call for fcntl() 'all' - no NLM calls were seen during both flock() and fcntl() - No bugs were seen during NFSv4 locking/unlocking in general and NFSv4 reboot recovery. Cc: Neil Brown Signed-off-by: Suresh Jayaraman Signed-off-by: Trond Myklebust commit f57a024ed2ee00d62515ffd4040f5ded3e0eb853 Author: Steven Whitehouse Date: Thu Sep 23 13:41:42 2010 +0100 GFS2: Remove ignore_local_fs mount argument This is been a no-op for a very long time now. I'm pretty sure nobody uses it, but just in case we'll still accept it on the command line, but ignore it. Signed-off-by: Steven Whitehouse commit ed9f524ac79457f0c547c85746b19b92526be612 Author: Namhyung Kim Date: Thu Sep 16 01:30:19 2010 +0900 ida: document IDA_BITMAP_LONGS calculation IDA_BITMAP_LONGS value is calculated take into account struct ida_bitmap not to waste memory space. Comment it. Signed-off-by: Namhyung Kim Acked-by: Tejun Heo Acked-by: Randy Dunlap Signed-off-by: Jiri Kosina commit 72b43570f304634532b4d66c991eef529135f68c Author: Namhyung Kim Date: Wed Sep 15 21:46:02 2010 +0900 ext2: fix a typo on comment in ext2/inode.c 'excpet' should be 'except'. 'ext3_get_branch' should be 'ext2_get_branch'. Signed-off-by: Namhyung Kim Signed-off-by: Jiri Kosina commit 35df83970ecdc2cffb141503cf721a740d0f0ec5 Author: Joe Perches Date: Sat Sep 4 18:52:46 2010 -0700 drivers/scsi: Remove unnecessary casts of private_data Signed-off-by: Joe Perches Signed-off-by: Jiri Kosina commit 27e49945ac7090b818e44cb9e8ae4b94fd711e41 Author: Joe Perches Date: Sat Sep 4 18:52:45 2010 -0700 drivers/s390: Remove unnecessary casts of private_data Signed-off-by: Joe Perches Signed-off-by: Jiri Kosina commit 655b5bb4a794267527a3059a22de54778a4548f3 Author: Joe Perches Date: Sat Sep 4 18:52:53 2010 -0700 net/sunrpc/rpc_pipe.c: Remove unnecessary casts of private_data Signed-off-by: Joe Perches Signed-off-by: Jiri Kosina commit ea3f0e6bc5312e5f664221c5941a76bdf49c9970 Author: Joe Perches Date: Sat Sep 4 18:52:43 2010 -0700 drivers/infiniband: Remove unnecessary casts of private_data Signed-off-by: Joe Perches Acked-by: Ralph Campbell Signed-off-by: Jiri Kosina commit 40b3be3fcaf8e0d8f7d8cee266dc4af3251d814b Author: Joe Perches Date: Sat Sep 4 18:52:42 2010 -0700 drivers/gpu/drm: Remove unnecessary casts of private_data Signed-off-by: Joe Perches Signed-off-by: Jiri Kosina commit 99a51792dbb7e6e39b2a4ebcfe202f1dcc7354c4 Author: Joe Perches Date: Sat Sep 4 18:52:50 2010 -0700 kernel/pm_qos_params.c: Remove unnecessary casts of private_data Signed-off-by: Joe Perches Signed-off-by: Jiri Kosina commit 0c6d7d5da27df7ec586fc916f06136a6b7ad1f72 Author: Joe Perches Date: Sat Sep 4 18:52:48 2010 -0700 fs/ecryptfs: Remove unnecessary casts of private_data Signed-off-by: Joe Perches Signed-off-by: Jiri Kosina commit 8209e2f46752914e94f65469b8312c42dc5d7d8f Author: Joe Perches Date: Sat Sep 4 18:52:49 2010 -0700 fs/seq_file.c: Remove unnecessary casts of private_data Signed-off-by: Joe Perches Signed-off-by: Jiri Kosina commit 909ea93b12541a0bac27c495c810ac6d79343986 Author: H Hartley Sweeten Date: Fri Aug 6 09:40:42 2010 -0700 arm: uengine.c: remove C99 comments Comments should be /* */ not //. Signed-off-by: H Hartley Sweeten Cc: Jiri Kosina Signed-off-by: Jiri Kosina commit aa88bc0a072b9f02891592d0aa6d0e8d138abf8f Author: H Hartley Sweeten Date: Fri Aug 6 09:36:42 2010 -0700 arm: scoop.c: remove C99 comments Comments should be /* */ not //. Signed-off-by: H Hartley Sweeten Cc: Jiri Kosina Signed-off-by: Jiri Kosina commit 29e1316ab129f2d3a9ea874e7c9a4cb936f43542 Author: Chris Wilson Date: Wed Sep 22 19:10:09 2010 +0100 drm/i915/tv: Sleep before checking for state changes. We need to wait for the PLLs to settle prior to detecting the state changes. The BIOS writers guide suggests waiting for the next vblank. Reported-by: Carlos R. Mafra Signed-off-by: Chris Wilson commit 20f0cd55f68e0678909214c60b3595a22124bdb0 Author: Chris Wilson Date: Thu Sep 23 11:00:38 2010 +0100 drm/i915: Remove the broken flush_ring from page-flip This is already performed with the pipelined flush, so by the time we schedule the flush in the page-flip, the ring is NULL and we OOPs instead. Reported-by: Daniel Vetter Signed-off-by: Chris Wilson commit b42e17963c20ecb80905083ceaecc79fd9bd30f1 Author: Thomas Weber Date: Thu Sep 23 11:46:50 2010 +0200 Fix typo configue => configure in comments Signed-off-by: Thomas Weber Acked-by: David S. Miller Signed-off-by: Jiri Kosina commit 0b1974de66f9ed44f1423449628f4926bf95b854 Author: Thomas Weber Date: Thu Sep 23 11:46:48 2010 +0200 Fix typo: configuation => configuration Signed-off-by: Thomas Weber Acked-by: David S. Miller Signed-off-by: Jiri Kosina commit a752447af5b61f19e9c50322d9b07cea9a086084 Author: Kim Phillips Date: Thu Sep 23 15:56:38 2010 +0800 crypto: talitos - sparse check endian fixes Signed-off-by: Kim Phillips Signed-off-by: Herbert Xu commit 0b798247453299c895e3fa1629101dd5e94901b2 Author: Kim Phillips Date: Thu Sep 23 15:56:08 2010 +0800 crypto: talitos - fix checkpatch warning WARNING: kfree(NULL) is safe this check is probably not required + if (priv->chan[i].fifo) + kfree(priv->chan[i].fifo); Signed-off-by: Kim Phillips Signed-off-by: Herbert Xu commit 1d11911a8c572041880c8d86229f6ed971f6f7e2 Author: Kim Phillips Date: Thu Sep 23 15:55:27 2010 +0800 crypto: talitos - fix warning: 'alg' may be used uninitialized in this function drivers/crypto/talitos.c: In function 'talitos_probe': drivers/crypto/talitos.c:2363: warning: 'alg' may be used uninitialized in this function drivers/crypto/talitos.c:2363: note: 'alg' was declared here Signed-off-by: Kim Phillips Signed-off-by: Herbert Xu commit a234ca0faa65dcd5cc473915bd925130ebb7b74b Author: matt mooney Date: Thu Sep 23 06:51:21 2010 +0000 sh: change to new flag variable Replace EXTRA_CFLAGS with ccflags-y. Signed-off-by: matt mooney Signed-off-by: Paul Mundt commit 9f5f9ffe50e90ed73040d2100db8bfc341cee352 Author: Paul Mackerras Date: Thu Sep 9 19:02:40 2010 +0000 powerpc/perf: Fix sampling enable for PPC970 The logic to distinguish marked instruction events from ordinary events on PPC970 and derivatives was flawed. The result is that instruction sampling didn't get enabled in the PMU for some marked instruction events, so they would never trigger. This fixes it by adding the appropriate break statements in the switch statement. Reported-by: David Binderman Cc: stable@kernel.org Signed-off-by: Paul Mackerras Signed-off-by: Benjamin Herrenschmidt commit 1ef21199a5d98702755cfa0df39b8b5112c423d6 Author: Stephen Rothwell Date: Fri Sep 3 13:19:04 2010 +1000 powerpc: define a compat_sys_recv cond_syscall Signed-off-by: Stephen Rothwell Signed-off-by: Benjamin Herrenschmidt commit 095a0f6df246bdc57b57d616c4698e41fbd3bf43 Author: John Kacur Date: Wed Sep 22 13:47:01 2010 +0200 SOUND-OSS: Remove sh_dac_audio Remove the SH DAC oss driver since there is an equivalent alsa driver. oss has been deprecated for years. Furthermore this driver has BKL code which we are trying to remove. Rather than attempt to fix this, simply remove the driver. Signed-off-by: John Kacur Acked-by: Paul Mundt Acked-by: Ralf Baechle Signed-off-by: Takashi Iwai commit d0303d71c2fb9bcb90a8d48e6462c78c86f70ce6 Merge: 90edf27 c79bd89 Author: Ingo Molnar Date: Thu Sep 23 08:02:09 2010 +0200 Merge branch 'linus' into perf/core Conflicts: arch/sparc/kernel/perf_event.c Merge reason: Resolve the conflict. Signed-off-by: Ingo Molnar commit 3e13f65e3aa51fc7009afc554683a0b182c057f5 Author: Takashi Iwai Date: Thu Sep 23 07:40:16 2010 +0200 ASoC: adapt multi-componentism again Go back to the new world order. (Also fixed indentation.) Signed-off-by: Takashi Iwai commit 42c39a6267e9d1093b7aa1915ce187d074988d1c Merge: 391d8a0 0077ca0 Author: Takashi Iwai Date: Thu Sep 23 07:31:27 2010 +0200 Merge branch 'for-2.6.36' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6 into topic/asoc commit 7b872a55c40b7e6f5e257c252f96dde911bd7b2f Author: Yi Zou Date: Wed Sep 22 17:57:58 2010 +0000 e1000/e1000e/igb/ixgb/ixgbe: set NETIF_F_HIGHDMA for VLAN feature flags If the netdev->features is set with NETIF_F_HIGHDMA, we should set the corresponding netdev->vlan_features as well to allow VLAN netdev created on top of the real netdev to be able to also benefit from HIGHDMA on 32bit system, reducing the performance hit that is caused by __skb_linearize(), particularly for large send. This is fixed in this patch for all Intel e1000, e1000e, igb, ixgbe, and ixgbe drivers since this should be beneficial to all devices supported by these drivers. Signed-off-by: Yi Zou Tested-by: Emil Tantilov Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 308fb39a860c816be8741fe783ae7c64e9c1af5d Author: Joseph Gasparakis Date: Wed Sep 22 17:56:44 2010 +0000 igb: Add support for DH89xxCC This patch adds support for the Intel(r) DH89xxCC series. The new device will be using Intel(r) i347-AT4 and Marvell(r) M88E1322 and M88E1112 PHYs. Support for these devices has also been added here. Signed-off-by: Joseph Gasparakis Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit d85b9004bc2047d79248b167cc151ff9a4b509c3 Author: Alexander Duyck Date: Wed Sep 22 17:56:20 2010 +0000 igb: clear VF_PROMISC bits instead of setting all other bits This change corrects an issue in which we were setting all flag bits except for promisc instead of clearing the promisc bits due to the incorrect use of an |= instead of an &=. Signed-off-by: Alexander Duyck Tested-by: Jeff Pieper Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller commit 46eb3b64dddd20f44e76b08676fa642dd374bf1d Author: Steven Rostedt Date: Wed Sep 22 23:10:23 2010 -0400 jump label/x86/sparc64: Remove !CC_OPTIMIZE_FOR_SIZE config conditions The !CC_OPTIMIZE_FOR_SIZE was added to enable the jump label functionality because Jason noticed that the gcc option would not optimize the labels and may even hurt performance. But this is a gcc problem not a kernel one. Removing this condition should add motivation to the gcc developers to actually fix it. Cc: Jason Baron Acked-by: David S. Miller Signed-off-by: Steven Rostedt commit 234bb549eea16ec7d5207ba747fb8dbf489e64c1 Author: Jan Beulich Date: Thu Sep 2 13:46:34 2010 +0100 x86, cleanups: Use clear_page/copy_page rather than memset/memcpy When operating on whole pages, use clear_page() and copy_page() in favor of memset() and memcpy(); after all that's what they are intended for. Signed-off-by: Jan Beulich LKML-Reference: <4C7FB8CA0200007800013F51@vpn.id2.novell.com> Cc: Andrew Morton Signed-off-by: H. Peter Anvin commit 3c0f24019f69c5199996ed9c76d05c92c6186ba8 Author: Jonas Aaberg Date: Mon Aug 9 12:09:21 2010 +0000 DMAENGINE: ste_dma40: added kernel doc for struct The half-channel struct was undocumented. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 3ac012af3b1b3a6b373f3a9f19c5362974856c2c Author: Jonas Aaberg Date: Mon Aug 9 12:09:12 2010 +0000 DMAENGINE: ste_dma40: don't pause/resume non-executing channels There is no point in pausing what isn't running. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 8f6fd7f50f7059e5725a36885af52e54b9df96b2 Author: Jonas Aaberg Date: Mon Aug 9 12:09:04 2010 +0000 DMAENGINE: ste_dma40: removed non-used variable from struct The reqrite of the LCLA code rendered this variable unused. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 698e4732e7c9cf9f1f3eac2b8cdce8d4fe2b90bd Author: Jonas Aaberg Date: Mon Aug 9 12:08:56 2010 +0000 DMAENGINE: ste_dma40: rewrote LCLA entries allocation code LLI allocation is now done on job level instead of channel level. Previously the maximum length of a linked job in hw on a logical channel was 8, since the LLIs where evenly divided. Now only executing jobs have allocated LLIs which increase the length to a maximum of 64 links in HW. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 69f93faa57ed6c91b32aae1dcff7282fcb2872f5 Author: Jonas Aaberg Date: Mon Aug 9 12:08:49 2010 +0000 DMAENGINE: ste_dma40: fix possible use of uninitialized variable Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 9dbfbd35ce16e4f5a4d0d9e3f6e012b136fe80ea Author: Jonas Aaberg Date: Mon Aug 9 12:08:41 2010 +0000 DMAENGINE: ste_dma40: corrected is_paused behavior The handling of pause detection was slightly incorrect. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 767a9675c4a68ada55f0f30d629db627bd47f012 Author: Jonas Aaberg Date: Mon Aug 9 12:08:34 2010 +0000 DMAENGINE: ste_dma40: code clean-up This patch includes non functional code clean up changes, file header updates and a few magic numbers got defined. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit aa182ae2621877e0c111922696c84c538b82ad14 Author: Jonas Aaberg Date: Mon Aug 9 12:08:26 2010 +0000 DMAENGINE: ste_dma40: added support for link jobs in hw If a new job is added on a physical channel that already has a job, the new job is linked in hw to the old job instead of queueing up the jobs. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 3ae0267fd569c2007235fb80cfe3b4a4c54c8f4b Author: Jonas Aaberg Date: Mon Aug 9 12:08:18 2010 +0000 DMAENGINE: ste_dma40: removed a few magic numbers Make sure to extract the revision field explicitly and document what bits are being accessed here without magic numbers. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 0246e77b4d374bb37aa08c3fcadad20012e85ea0 Author: Jonas Aaberg Date: Mon Aug 9 12:08:10 2010 +0000 DMAENGINE: ste_dma40: fix bug related to callback handling The callback got called even when it was not supposed to. Also removed some not needed interrupt trigger on/off code. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit b55912c66a317d9aaf4749488ca43d510c8a8a87 Author: Jonas Aaberg Date: Mon Aug 9 12:08:02 2010 +0000 DMAENGINE: ste_dma40: Code clean-up and removed an unneeded suspend request This patch cleans up some code and removes a suspend request that was pointless since the hw was never configured nor running when it was called. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 1b00348d5d0b3423fe21f499bf30d40a4d1dc594 Author: Jonas Aaberg Date: Mon Aug 9 12:07:54 2010 +0000 DMAENGINE: ste_dma40: No need reading, masking and setting a set register Removes an unnecessary register read and a few lines of code. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit be8cb7dfd92420b12dfd6831c2d638f4f46bdfdf Author: Jonas Aaberg Date: Mon Aug 9 12:07:44 2010 +0000 DMAENGINE: ste_dma40: Fix failed to restart logical channel bug A transfer that runs in the different direction on the same channel will now be resumed when the other is suspend/stopped. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 0747c7bae5c93377f4ea81b55d6851eaddc677fe Author: Linus Walleij Date: Mon Aug 9 12:07:36 2010 +0000 DMAENGINE: ste_dma40: config checks Added various configuration checks. Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij Signed-off-by: Dan Williams commit 95fccd465eefb3d6bf80dae0496607b534d38313 Author: Steven Rostedt Date: Wed Sep 22 17:37:43 2010 -0400 jump label: Remove duplicate structure for x86 The structure in the x86 jump label code uses the typedef jump_label_t, which is defined by the #ifdef arch type. The structure does not need to be duplicated there. Signed-off-by: Steven Rostedt commit 768190fdc058cc7405330f7782782df084c25d61 Author: andrew hendry Date: Tue Sep 21 15:24:45 2010 +0000 X.25 remove bkl in poll The x25_datagram_poll didn't add anything, removed it. Signed-off-by: Andrew Hendry Signed-off-by: David S. Miller commit 40e192c3ff7b1af680b0b03e94cadf1dad5fb82e Author: andrew hendry Date: Tue Sep 21 15:24:25 2010 +0000 X.25 remove bkl in getsockname Signed-off-by: Andrew Hendry Signed-off-by: David S. Miller commit dff9d3c215251022dd8bb3823c9f75edb4b63fe9 Author: David S. Miller Date: Fri Sep 17 11:09:25 2010 -0400 jump label: Add sparc64 support Add jump label support for sparc64. Signed-off-by: David S. Miller LKML-Reference: <3b5b071fcdb2afb7f67cacecfa78b14c740278a7.1284733808.git.jbaron@redhat.com> Signed-off-by: Jason Baron [ cleaned up some formatting ] Signed-off-by: Steven Rostedt commit d9f5ab7b1c0a520867af389bab5d5fcdbd0e407e Author: Jason Baron Date: Fri Sep 17 11:09:22 2010 -0400 jump label: x86 support add x86 support for jump label. I'm keeping this patch separate so its clear to arch maintainers what was required for x86 support this new feature. Hopefully, it wouldn't be too painful for other archs. Signed-off-by: Jason Baron LKML-Reference: [ cleaned up some formatting ] Signed-off-by: Steven Rostedt commit 52159d98be6f26c48f5e02c7ab3c9848a85979b5 Author: Jason Baron Date: Fri Sep 17 11:09:17 2010 -0400 jump label: Convert dynamic debug to use jump labels Convert the 'dynamic debug' infrastructure to use jump labels. Signed-off-by: Jason Baron LKML-Reference: Signed-off-by: Steven Rostedt commit 8f7b50c514206211cc282a4247f7b12f18dee674 Author: Jason Baron Date: Fri Sep 17 11:09:13 2010 -0400 jump label: Tracepoint support for jump labels Make use of the jump label infrastructure for tracepoints. Signed-off-by: Jason Baron LKML-Reference: Signed-off-by: Steven Rostedt commit 4c3ef6d79328c0e23ade60cbfc8d496123a6855c Author: Jason Baron Date: Fri Sep 17 11:09:08 2010 -0400 jump label: Add jump_label_text_reserved() to reserve jump points Add a jump_label_text_reserved(void *start, void *end), so that other pieces of code that want to modify kernel text, can first verify that jump label has not reserved the instruction. Acked-by: Masami Hiramatsu Signed-off-by: Jason Baron LKML-Reference: <06236663a3a7b1c1f13576bb9eccb6d9c17b7bfe.1284733808.git.jbaron@redhat.com> Signed-off-by: Steven Rostedt commit e0cf0cd49632552f063fb3ae58691946da45fb2e Author: Jason Baron Date: Fri Sep 17 11:09:04 2010 -0400 jump label: Initialize workqueue tracepoints *before* they are registered Initialize the workqueue data structures *before* they are registered so that they are ready for callbacks. Signed-off-by: Jason Baron LKML-Reference: Signed-off-by: Steven Rostedt commit bf5438fca2950b03c21ad868090cc1a8fcd49536 Author: Jason Baron Date: Fri Sep 17 11:09:00 2010 -0400 jump label: Base patch for jump label base patch to implement 'jump labeling'. Based on a new 'asm goto' inline assembly gcc mechanism, we can now branch to labels from an 'asm goto' statment. This allows us to create a 'no-op' fastpath, which can subsequently be patched with a jump to the slowpath code. This is useful for code which might be rarely used, but which we'd like to be able to call, if needed. Tracepoints are the current usecase that these are being implemented for. Acked-by: David S. Miller Signed-off-by: Jason Baron LKML-Reference: [ cleaned up some formating ] Signed-off-by: Steven Rostedt commit 7e51b439f147670c4ddd2bf6ca4567592b5312de Author: Ben Hutchings Date: Wed Sep 22 10:00:47 2010 +0000 sfc: Add support for SFE4003 board and TXC43128 PHY This board never went into production, but some engineering samples are in use. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 8fbca791309b5a57bec53e5fd7da912c16416ed3 Author: Ben Hutchings Date: Wed Sep 22 10:00:11 2010 +0000 sfc: Remove support for SFN4111T, SFT9001 and Falcon GMAC SFN4111T never reached production and is not being used for internal or customer testing. Since we have no production Falcon boards using the SFT9001 or the GMAC, remove support for them as well. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 1e1405673e4e40a94ed7620553eb440a21040402 Author: NeilBrown Date: Wed Sep 22 12:55:07 2010 +1000 nfsd: allow deprecated interface to be compiled out. Add CONFIG_NFSD_DEPRECATED, default to y. Only include deprecated interface if this is defined. This allows distros to remove this interface before the official removal, and allows developers to test without it. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit c67874f942e30039442d925b03793e0a46ddcddd Author: NeilBrown Date: Wed Sep 22 12:55:07 2010 +1000 nfsd: formally deprecate legacy nfsd syscall interface The syscall interface is has been replaced by a more flexible interface since 2.6.0. It is time to work towards discarding the old interface. So add a entry in feature-removal-schedule.txt and print a warning when the interface is used. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit e95dffa4304186ad87963255f3e5e96b5c41849f Author: NeilBrown Date: Wed Sep 22 12:55:06 2010 +1000 sunrpc/cache: fix recent breakage of cache_clean_deferred commit 6610f720e9e8103c22d1f1ccf8fbb695550a571f broke cache_clean_deferred as entries are no longer added to the pending list for subsequent revisiting. So put those requests back on the pending list. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit f904be9cc77f361d37d71468b13ff3d1a1823dea Author: Bryan Schumaker Date: Tue Sep 21 16:38:12 2010 -0400 lockd: Mostly remove BKL from the server This patch removes all but one call to lock_kernel() from the server. Signed-off-by: Bryan Schumaker Signed-off-by: J. Bruce Fields commit 7832167b694e545fc2f010ddaafc223ab7d17725 Author: Greg Kroah-Hartman Date: Wed Sep 22 12:17:16 2010 -0700 Staging: ft1000: mark pcmcia driver broken The driver hasn't been updated since the .30 kernel release and will not build due to pcmcia api changes. Mark it broken for now so no one hits it in their build accidentally. Cc: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 6ec3d0c0e9c0c605696e91048eebaca7b0c36695 Author: Chris Wilson Date: Wed Sep 22 18:17:01 2010 +0100 drm/i915/crt: Use a DDC probe on 0xA0 before load-detect The BIOS writer's guide suggests that a VGA connection will ACK a write to address 0xA0 and that this should be used before doing legacy load-detection. Considering the extreme cost of load-detection, performing an extra DDC seems a risk worth taking. Signed-off-by: Chris Wilson commit 90edf27fb89241917e91155bfdcc7c8e5a587222 Merge: 41945f6 8b15575 Author: Ingo Molnar Date: Wed Sep 22 18:45:01 2010 +0200 Merge branch 'linus' into perf/core Conflicts: kernel/hw_breakpoint.c Merge reason: resolve the conflict. Signed-off-by: Ingo Molnar commit 391d8a04fc0f0d603642daa07f379e17c88001c9 Author: Dimitris Papastamos Date: Tue Sep 21 17:04:07 2010 +0100 ASoC: Return -1 instead of -EINVAL to ensure consistency The code can't really cope with I/O errors, so it would be better to be consistent throughout all cache functions and return -1 instead of -EINVAL. The return value of snd_soc_read(...) is mostly checked in the probe function and nowhere else. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 321de0d05a4bbe0ee74d473e00d7947851bf5284 Author: Mark Brown Date: Tue Sep 21 15:09:37 2010 +0100 ASoC: Report error codes for card DAI instantiation failures Also clean up the error print a bit. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit e92049a1bbc4d84504b4c7886cf048fc5750259f Author: Greg Kroah-Hartman Date: Wed Sep 22 08:35:42 2010 -0700 Staging: ft1000: fix mode of firmware image file It should not be executable. Cc: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit bf3146c8652c32bd5c9b12eaf5e133e6fb4d0739 Author: Greg Kroah-Hartman Date: Wed Sep 22 08:34:49 2010 -0700 Staging: ft1000: remove trailing whitespace Lots of trailing whitespace was removed Cc: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 43589a832d3189afaaa0efd30a10a16f15891425 Author: Greg Kroah-Hartman Date: Wed Sep 22 08:24:41 2010 -0700 Staging: ft1000: fix build This fixes the build for the ft100-usb driver so it builds properly. Cc: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit f7c1be0cca2aa39dcea68f54287fb00f840a5ff4 Author: Marek Belisko Date: Wed Sep 22 07:56:27 2010 +0200 Staging: Add support for Flarion OFDM usb and pcmcia devices. This drivers add support for following devices: (usb)-> Qleadtek FLASH-OFDM USB Modem [LR7F04] -> Qleadtek Express Card -> Leadtek Multi-band modem HSDPA Sources for usb: https://sourceforge.net/projects/ft1000/files/ft1000_usb/ft1000_usb_v01.04.tar.gz/download (pcmcia) -> Multimedia Net Card Sources for pcmcia : https://sourceforge.net/projects/ft1000/files/ft1000_pcmcia_2.6.30-2.6.31.tgz/download More informations (in Slovak language): http://ft1000.qintec.sk/home.html Signed-off-by: Marek Belisko Signed-off-by: Greg Kroah-Hartman commit 74ff3a68ed11f1e9eede4fe301f42cc3cdf7396a Author: Paul Walmsley Date: Tue Sep 21 15:02:23 2010 -0600 OMAP: hwmod: improve documentation, clean up function names This patch: - adds more documentation to the hwmod code - fixes some documentation typos elsewhere in the file - changes the _sysc_*() function names to appear in (verb, noun) order, to match the rest of the function names. This patch should not result in any functional change. Signed-off-by: Paul Walmsley Cc: Kevin Hilman Cc: Benoît Cousson commit 4ef7aca895b2d06c07ff9d5f378af84bbf757e43 Author: Partha Basak Date: Tue Sep 21 19:23:04 2010 +0200 OMAP: hwmod: Handle opt clocks node using clk_add_alias For every optional clock present per hwmod per omap-device, this function adds an entry in the clocks list of the form , if an entry is already present in the list of the form . The function is called from within the framework inside omap_device_build_ss(), after omap_device_register. This allows drivers to get a pointer to its optional clocks based on its role by calling clk_get(, ). Link to discussions related to this patch: http://www.spinics.net/lists/linux-omap/msg34809.html Signed-off-by: Charulatha V Signed-off-by: Partha Basak Signed-off-by: Benoit Cousson Signed-off-by: Rajendra Nayak [paul@pwsan.com: simplified loop iterator; removed the superfluous clk_get(), using the clk_get() in clk_add_alias() instead] Signed-off-by: Paul Walmsley Acked-by: Kevin Hilman commit 63185942c5f138c62de16b4cbc7eee494a58fea8 Author: Bryan Schumaker Date: Wed Sep 22 09:50:35 2010 -0400 lockd: Remove BKL from the client This patch removes all calls to lock_kernel() from the client. This patch should be applied after the "fs/lock.c prepare for BKL removal" patch submitted by Arnd Bergmann on September 18. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust commit 3c9c92b6b5016a2e02c3438386b1c5efe7f588e4 Author: Mauro Carvalho Chehab Date: Wed Sep 22 09:36:54 2010 -0300 MAINTAINERS: Add maintainer for i7300-edac driver Signed-off-by: Mauro Carvalho Chehab commit a5cad620b36f15ef3aad434712ae290640aae96c Author: Chris Wilson Date: Wed Sep 22 13:15:10 2010 +0100 drm/i915: Disable "disabled FBC" message when a no-op Signed-off-by: Chris Wilson commit 305da8f504dc82ccc0e0ca9aa1889de9e2517090 Author: Axel Lin Date: Tue Sep 21 16:35:57 2010 +0800 pcf50633-charger: Add missing sysfs_remove_group() sysfs entries should be removed when unload the module. Signed-off-by: Axel Lin Signed-off-by: Anton Vorontsov commit 12e5272585901217e919da810c801e5084ee0cb1 Author: Alan Ott Date: Wed Sep 22 13:33:20 2010 +0200 HID: trivial formatting fix Added blank line after declarations. Signed-off-by: Alan Ott Signed-off-by: Jiri Kosina commit 32c88cbc3080f43c429f6456aa9cd845e37f3778 Author: Simon Wood Date: Wed Sep 22 13:19:42 2010 +0200 HID: Add support for Logitech Speed Force Wireless gaming wheel The following patch adds support for the Logitech Speed Force Wireless gaming wheel. Originally designed for the WII console. Details on the protocol: http://wiibrew.org/wiki/Logitech_USB_steering_wheel This patch relies on previous patch: "Don't Send Feature Reports on Interrupt Endpoint" Logitech as produce a very similar wheel for the PS2/PS3, it is expected that this patch could also support the PS2/PS3 wheel if the USB ID's are added and (if required) the HID descriptor is modified. Signed-off-by: Simon Wood Signed-off-by: Jiri Kosina commit fe2c91ee245bd81230f1d67645237a684b90be2b Author: Alan Ott Date: Wed Sep 22 13:19:42 2010 +0200 HID: don't Send Feature Reports on Interrupt Endpoint Feature reports should only be sent on the control endpoint. The USB HID standard is unclear and confusing on this issue. It seems to suggest that Feature reports can be sent on a HID device's Interrupt OUT endpoint. This cannot be the case because the report type is not encoded in transfers sent out the Interrput OUT endpoint. If Feature reports were sent on the Interrupt OUT endpint, they would be indistinguishable from Output reports in the case where Report IDs were not used. Further, Windows and Mac OS X do not send Feature reports out the interrupt OUT Endpoint. They will only go out the Control Endpoint. In addition, many devices simply do not hande Feature reports sent out the Interrupt OUT endpoint. Reported-by: simon@mungewell.org Signed-off-by: Alan Ott Signed-off-by: Jiri Kosina commit 0704129ff4e51402bf7b16064a54ff8f7889e962 Merge: d71b357 7d1be0a Author: Mark Brown Date: Wed Sep 22 12:19:07 2010 +0100 Merge branch 'for-2.6.37' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/asoc-2.6 into for-2.6.37 commit d71b3576f2be6131f5b9e2c300cb2a03621e62e0 Merge: fa6d529 d47372e Author: Mark Brown Date: Wed Sep 22 12:03:28 2010 +0100 Merge branch 'for-2.6.36' into for-2.6.37 commit 5c12a07e8073295ce8b57a822f811ac34e4f8420 Author: Chris Wilson Date: Wed Sep 22 11:22:30 2010 +0100 drm/i915: Drop ring->lazy_request We are not currently using it as intended, so remove the complication. Signed-off-by: Chris Wilson commit 2896b5397570f6857fd5d0e0533f640b05b1d162 Author: Chris Wilson Date: Wed Sep 22 10:54:48 2010 +0100 drm/i915: Don't offset the pin used for crt_ddc Previously when converting the GMBUS pin to the GPIO reg, we would offset the pin by one and then use the look-up table. Now that we first try to use the GMBUS pin, we no longer need the offset and can use the value from the VBIOS directly. Reported-by: Carlos R. Mafra Signed-off-by: Chris Wilson commit dfaae392f4461785eb1c92aeaf2a1040b184edba Author: Chris Wilson Date: Wed Sep 22 10:31:52 2010 +0100 drm/i915: Clear the gpu_write_list on resetting write_domain upon hang Otherwise we will hit a list handling assertion when moving the object to the inactive list. Signed-off-by: Chris Wilson commit 48216fbdad6cc462b056ce1e876edcc664d32a8d Author: Henrik Rydberg Date: Wed Sep 22 11:29:07 2010 +0200 HID: 3m: Adjust major / minor axes to scale By visual inspection, the reported touch_major and touch_minor axes are a factor of two too large. Presumably the device actually reports the width_major and width_minor, which are generally about a factor of two larger than the touches themselves. Signed-off-by: Henrik Rydberg Signed-off-by: Jiri Kosina commit 676cb02dc32adef13d9efb5ea52079e4ede1e3ec Author: Thomas Gleixner Date: Mon Jul 20 23:33:49 2009 +0200 softirqs: Make wakeup_softirqd static No users outside of kernel/softirq.c Signed-off-by: Thomas Gleixner commit fdfb7fa7c9118a4112738ad86452a67107082723 Merge: 26e34e9 1446c5f Author: Takashi Iwai Date: Wed Sep 22 10:03:28 2010 +0200 Merge remote branch 'alsa/devel' into topic/misc commit 488211844e0c3fad6ffa98a6f3c4f2139074e79a Author: Jens Axboe Date: Wed Sep 22 09:32:36 2010 +0200 floppy: switch to one queue per drive instead of sharing a queue Pretty straight forward conversion. Note that we do round-robin between the drives that have available requests, before we simply used the drive that the IO scheduler told us to. Since the IO scheduler doesn't care about multiple devices per queue, the resulting sort would not have made sense. Fixed by Vivek to get rid of a double lock problem in set_next_request() Signed-off-by: Jens Axboe Signed-off-by: Vivek Goyal commit 8b008faf92ac8f7eeb65e8cd36077601af7c46db Author: Pablo Neira Ayuso Date: Wed Sep 22 08:36:59 2010 +0200 netfilter: ctnetlink: allow to specify the expectation flags With this patch, you can specify the expectation flags for user-space created expectations. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy commit bcac0dfab191cb53b3f9b43c8014a34070ed58ff Author: Pablo Neira Ayuso Date: Wed Sep 22 08:35:36 2010 +0200 netfilter: ctnetlink: missing validation of CTA_EXPECT_ZONE attribute This patch adds the missing validation of the CTA_EXPECT_ZONE attribute in the ctnetlink code. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy commit 5b92b61f3891517d18d0573ad2c939c81b59ecfe Author: Pablo Neira Ayuso Date: Wed Sep 22 08:34:12 2010 +0200 netfilter: nf_nat: better error handling of nf_ct_expect_related() in helpers This patch improves the situation in which the expectation table is full for conntrack NAT helpers. Basically, we give up if we don't find a place in the table instead of looping over nf_ct_expect_related() with a different port (we should only do this if it returns -EBUSY, for -EMFILE or -ESHUTDOWN I think that it's better to skip this). Signed-off-by: Pablo Neira Ayuso Signed-off-by: Patrick McHardy commit e7f483eabea8ef6d2b5ce1b74c8184cc06819f15 Author: Andy Shevchenko Date: Tue Sep 21 09:40:25 2010 +0300 sunrpc/cache: don't use custom hex_to_bin() converter Signed-off-by: Andy Shevchenko Cc: Trond Myklebust Cc: linux-nfs@vger.kernel.org Signed-off-by: J. Bruce Fields commit 1117449276bb909b029ed0b9ba13f53e4784db9d Author: NeilBrown Date: Thu Aug 12 17:04:08 2010 +1000 sunrpc/cache: change deferred-request hash table to use hlist. Being a hash table, hlist is the best option. There is currently some ugliness were we treat "->next == NULL" as a special case to avoid having to initialise the whole array. This change nicely gets rid of that case. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit a0741ca949692904646c310573754859cba09bf1 Merge: 9e2e8f1 b618f6f Author: David S. Miller Date: Tue Sep 21 18:17:19 2010 -0700 Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 commit 9e2e8f14d48dbb6c31aeb739ae4fc8997b9dfe84 Author: Sjur Braendeland Date: Tue Sep 21 11:44:46 2010 +0000 caif: Use default send and receive buffer size in caif_socket. CAIF sockets should use socket's default send and receive buffers sizes. Signed-off-by: Sjur Braendeland Signed-off-by: David S. Miller commit e5e03ce1e5c6c015cabf274b24976dff408dc07f Author: Sjur Braendeland Date: Tue Sep 21 11:44:45 2010 +0000 caif: Fix function NULL pointer check. Check that receive function pointer is not null before calling it. Signed-off-by: Sjur Braendeland Signed-off-by: David S. Miller commit b04367df66eb63444d38c43d15f5e39499d85ae6 Author: Sjur Braendeland Date: Tue Sep 21 11:44:44 2010 +0000 caif: Minor fixes in log prints. Use pr_debug for flow control printouts, and refine an error printout. Signed-off-by: Sjur Braendeland Signed-off-by: David S. Miller commit 9c44c9fa78c5a449699491f0355189e2a09c242a Author: Sjur Braendeland Date: Tue Sep 21 10:40:06 2010 +0000 caif: Remove buggy re-definition of pr_debug Remove debugging quirk redefining pr_debug to pr_warning. Signed-off-by: Sjur Brændeland Signed-off-by: David S. Miller commit 48daa3bb84d547828871534caa51427a3fe90748 Author: Eric Dumazet Date: Tue Sep 21 06:57:39 2010 +0000 ipv6: addrconf.h cleanups - Use rcu_dereference_rtnl() in __in6_dev_get - kerneldoc for __in6_dev_get() and in6_dev_get() - Use inline functions instead of macros Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 756e64a0b106f1a2ca96889c39ea0d48131105c0 Author: Eric Dumazet Date: Tue Sep 21 06:43:54 2010 +0000 net: constify some ppp/pptp structs Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit a9478e386165477504916094ae5efb073a44fd9f Author: Denis Kirjanov Date: Mon Sep 20 22:57:49 2010 +0000 sundance: Use dev_kfree_skb_any() helper Use dev_kfree_skb_any() helper to free the skb Signed-off-by: Denis Kirjanov Signed-off-by: David S. Miller commit d91dc27993a366565b3ed37fc62d35cf3e10ff5d Author: Denis Kirjanov Date: Mon Sep 20 22:56:57 2010 +0000 sundance: Handle DMA mapping errors Check for DMA mapping errors. Signed-off-by: Denis Kirjanov Signed-off-by: David S. Miller commit 0c8a745f06f7f007ec492dc0606f5b1ea62f3da9 Author: Denis Kirjanov Date: Mon Sep 20 22:56:07 2010 +0000 sundance: Convert to DMA API Convert to DMA API Signed-off-by: Denis Kirjanov Signed-off-by: David S. Miller commit 82fd5b5d1ec370a50b3060418cde6a4ac8401117 Author: Andy Shevchenko Date: Mon Sep 20 20:40:26 2010 +0000 net: core: use kernel's converter from hex to bin Signed-off-by: Andy Shevchenko Signed-off-by: David S. Miller commit 66bb16de6b9a05936d1eeb20155bab008b476191 Author: Andy Shevchenko Date: Mon Sep 20 20:40:24 2010 +0000 drivers: atm: use native kernel's hex_to_bin() func Signed-off-by: Andy Shevchenko Cc: Chas Williams Cc: linux-atm-general@lists.sourceforge.net Signed-off-by: David S. Miller commit d9fd1b2857154f1ac32ca041641ba947525ff7fa Author: Meelis Roos Date: Mon Sep 20 21:19:03 2010 +0000 tmspci: fix tr%d in printk tmspci driver uses dev->name before register_netdev() and so prints tr%d in initialization messages. Fix it by using dev_info. Found and tested on real hardware. Signed-off-by: Meelis Roos Signed-off-by: David S. Miller commit 027360c5644b59d99db30e3515a8ec72350207b9 Author: Greg Kroah-Hartman Date: Tue Sep 21 16:58:00 2010 -0700 Staging: line6: minor coding style cleanups This fixes up all of the remaining coding style issues that make any sense to make in the line6 driver. Cc: Markus Grabner Signed-off-by: Greg Kroah-Hartman commit 79be7254ebd2fb6d5f91b4b8e5d12cfe4fd7ecd7 Author: Greg Kroah-Hartman Date: Tue Sep 21 16:18:13 2010 -0700 staging: line6: remove unneeded EXPORT_SYMBOL() usage These symbols don't need to be exported as nothing uses them, so don't. Cc: Markus Grabner Signed-off-by: Greg Kroah-Hartman commit 2ed5282cd9b44686a6e718269abb5c5cd332d8f1 Author: NeilBrown Date: Thu Aug 12 17:04:07 2010 +1000 svcauth_gss: replace a trivial 'switch' with an 'if' Code like: switch(xxx) { case -error1: case -error2: .. return; case 0: stuff; } can more naturally be written: if (xxx < 0) return; stuff; Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit 73da16c28ed0724755afdb95c7dd6b166381be10 Author: David S. Miller Date: Tue Sep 21 16:12:11 2010 -0700 ethtool: Fix build due to lack of ethtool.h include. net/core/ethtool.c: In function 'ethtool_get_regs': net/core/ethtool.c:818:2: error: implicit declaration of function 'vmalloc' net/core/ethtool.c:818:9: warning: assignment makes pointer from integer without a cast net/core/ethtool.c:833:2: error: implicit declaration of function 'vfree' Signed-off-by: David S. Miller commit 10ed61c432c013705ef6a2bebad139fc5d72e274 Author: David S. Miller Date: Tue Sep 21 16:11:06 2010 -0700 sfc: Fix build due to lack of vmalloc.h include. drivers/net/sfc/filter.c: In function ‘efx_probe_filters’: drivers/net/sfc/filter.c:422: error: implicit declaration of function ‘vmalloc’ drivers/net/sfc/filter.c:422: warning: assignment makes pointer from integer without a cast drivers/net/sfc/filter.c: In function ‘efx_remove_filters’: drivers/net/sfc/filter.c:442: error: implicit declaration of function ‘vfree’ Signed-off-by: David S. Miller commit 98e684bd5c927cb94ff23fb6f1dd34dd346a19cf Merge: e254c27 536bb20 Author: David S. Miller Date: Tue Sep 21 16:00:40 2010 -0700 Merge branch 'dccp' of git://eden-feed.erg.abdn.ac.uk/net-next-2.6 commit e254c274ae19888e5693ba6d32576ab03a8ae8a4 Author: Ben Hutchings Date: Mon Sep 20 08:44:10 2010 +0000 sfc: Clean up and correct comments on efx_monitor() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 75abc51c29d1d1f6cde0abd003003ac61b9a9fba Author: Ben Hutchings Date: Mon Sep 20 08:43:53 2010 +0000 sfc: Include RX IP filter table in register dump For backward compatibility, add it at the end. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit b4187e4277b13d7bc4acc3c953b3cab0137b14b2 Author: Ben Hutchings Date: Mon Sep 20 08:43:42 2010 +0000 sfc: Implement the ethtool RX n-tuple control functions Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 64eebcfd899a5d2ebe211a593ec13ec24630f1a3 Author: Ben Hutchings Date: Mon Sep 20 08:43:07 2010 +0000 sfc: Add filter table management Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit a77f5db361ed9953b5b749353ea2c7fed2bf8d93 Author: Ben Hutchings Date: Mon Sep 20 08:42:17 2010 +0000 ethtool: Allocate register dump buffer with vmalloc() Some NICs have huge register files which exceed the maximum heap allocation size. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 6099e3dea9aaa6127cea0610533221c9e956f009 Author: Ben Hutchings Date: Mon Sep 20 08:42:08 2010 +0000 ethtool: Add Ethernet MAC-level filtering/steering Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit c22ab7816fd81efceefa96b00c4ad62cf657964b Author: Ben Hutchings Date: Mon Sep 20 08:41:47 2010 +0000 ethtool: Define RX n-tuple action to clear a rule Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 9980ce53c97392a3dbdc9d1ac3e455d79b4167ed Author: Rajendra Nayak Date: Tue Sep 21 19:58:30 2010 +0530 OMAP: hwmod: Enable module wakeup if in smartidle If a module's OCP slave port is programmed to be in smartidle, its also necessary that they have module level wakeup enabled. Update _sysc_enable in hwmod framework to do this. The thread "[PATCH 7/8] : Hwmod api changes" archived here: http://www.mail-archive.com/linux-omap@vger.kernel.org/msg34212.html has additional technical information on the rationale of this patch. Sergei Shtylyov identified an indentation problem with this patch - thanks, Sergei. Signed-off-by: Rajendra Nayak Signed-off-by: Partha Basak Signed-off-by: Benoît Cousson [paul@pwsan.com: revised patch description] Signed-off-by: Paul Walmsley Cc: Kevin Hilman Cc: Sergei Shtylyov commit 96835af970e5d6aeedf868e53590a947be5e4a7a Author: Benoit Cousson Date: Tue Sep 21 18:57:58 2010 +0200 OMAP: hwmod: Fix softreset for modules with optional clocks Some modules (like GPIO, DSS...) require optionals clock to be enabled in order to complete the sofreset properly. Add a HWMOD_CONTROL_OPT_CLKS_IN_RESET flag to force all optional clocks to be enabled before reset. Disabled them once the reset is done. TODO: For the moment it is very hard to understand from the HW spec, which optional clock is needed and which one is not. So the current approach will enable all the optional clocks. Paul proposed a much finer approach that will allow to tag only the needed clock in the optional clock table. This might be doable as soon as we have a clear understanding of these dependencies. Reported-by: Partha Basak Signed-off-by: Benoit Cousson Signed-off-by: Paul Walmsley Cc: Kevin Hilman commit 2cb068149c365f1c2b10f2ece6786139527dcc16 Author: Benoit Cousson Date: Tue Sep 21 18:57:59 2010 +0200 OMAP: hwmod: Fix softreset status check for some new OMAP4 IPs In OMAP3 a specific SYSSTATUS register was used to get the softreset status. Starting in OMAP4, some IPs does not have SYSSTATUS register and instead use the SYSC softreset bit to provide the status. Other cases might exist: - Some IPs like McBSP does have a softreset control but no reset status. - Some IPs that represent subsystem, like the DSS, can contains a reset status without softreset control. The status is the aggregation of all the sub modules reset status. - Add a new flag (SYSC_HAS_RESET_STATUS) to identify the new programming model and replace the previous SYSS_MISSING, that was used to flag IP with softreset control but without the SYSSTATUS register, with a specific SYSS_HAS_RESET_STATUS flag. - MCSPI and MMC contains both programming models, so the legacy one will be prevented by removing the syss offset field that become useless. Signed-off-by: Benoit Cousson Signed-off-by: Paul Walmsley Cc: Kevin Hilman Cc: Rajendra Nayak commit aee48e3c9cee3698d17b4cf4203551de0a804760 Author: Paul Walmsley Date: Tue Sep 21 10:34:11 2010 -0600 OMAP: hwmod: add an hardreset API for use by other core code Expose an hardreset API from hwmod in order to assert / deassert all the individual reset lines that belong to an hwmod. This API is needed by some of the more complicated processor drivers, e.g., DSP/Bridge, Syslink, etc. Signed-off-by: Paul Walmsley Cc: Benoît Cousson commit 1d958c83c8d77ad4977ae963017e87cec8cca9b5 Author: Henrik Rydberg Date: Tue Sep 21 23:22:39 2010 +0200 HID: 3m: Correct touchscreen emulation The current code sometimes misses to report the last BTN_TOUCH event when multiple fingers are lifted simultaneously. With the introduction of MT slots, the tracking id is available to determine the oldest active contact. Use this information to simplify and correct the touchscreen emulation logic. Signed-off-by: Henrik Rydberg Acked-by: Stéphane Chatty Signed-off-by: Jiri Kosina commit 1f01a1fe167f588c8b6b449fde2f5427ca940423 Author: Henrik Rydberg Date: Tue Sep 21 22:12:12 2010 +0200 HID: 3m: Convert to MT slots The Microtouch controller is capable of doing finger tracking on up to 60 fingers. To reduce bandwidth and cpu usage, convert the driver to use the MT slots protocol. On Stephane's suggestion, also insert the additional copyright lines. Signed-off-by: Henrik Rydberg Acked-by: Stephane Chatty Signed-off-by: Jiri Kosina commit 76e5589e5b7cd0fd589264ab193f10550e1d8ab6 Author: Benoit Cousson Date: Tue Sep 21 10:34:11 2010 -0600 OMAP: hwmod: Force a softreset during _setup Force the softreset of every IPs during the _setup phase. IPs that cannot support softreset or that should not be reset must set the HWMOD_INIT_NO_RESET flag in the hwmod struct. Signed-off-by: Benoit Cousson Signed-off-by: Paul Walmsley Tested-by: Kevin Hilman commit 5365efbe29250a227502256cc912351fe2157b42 Author: Benoît Cousson Date: Tue Sep 21 10:34:11 2010 -0600 OMAP: hwmod: Add hardreset management support Most processor IPs does have a hardreset signal controlled by the PRM. This is different of the softreset used for local IP reset from the SYSCONFIG register. The granularity can be much finer than orginal HWMOD, for ex, the IVA hwmod contains 3 reset lines, the IPU 3 as well, the DSP 2... Since this granularity is needed by the driver, we have to ensure than one hwmod exist for each hardreset line. - Store reset lines as hwmod resources that a driver can query by name like an irq or sdma line. - Add two functions for asserting / deasserting reset lines in hwmods processor that require manual reset control. - Add one functions to get the current reset state. - If an hwmod contains only one line, an automatic assertion / de-assertion is done. -> de-assert the hardreset line only during enable from disable transition -> assert the hardreset line only during shutdown Note: The hwmods with hardreset line and HWMOD_INIT_NO_RESET flag must be kept in INITIALIZED state. They can be properly enabled only if the hardreset line is de-asserted before. For information here is the list of IPs with HW reset control on an OMAP4430 device: RM_DSP_RSTCTRL 1,1,'RST2','RW','1','DSP - MMU, cache and slave interface reset control' 0,0,'RST1','RW','1','DSP - DSP reset control' RM_IVA_RSTCTRL 2,2,'RST3','RW','1','IVA logic and SL2 reset control' 1,1,'RST2','RW','1','IVA Sequencer2 reset control' 0,0,'RST1','RW','1','IVA sequencer1 reset control' RM_IPU_RSTCTRL 2,2,'RST3','RW','1','IPU MMU and CACHE interface reset control.' 1,1,'RST2','RW','1','IPU Cortex M3 CPU2 reset control.' 0,0,'RST1','RW','1','IPU Cortex M3 CPU1 reset control.' PRM_RSTCTRL 1,1,'RST_GLOBAL_COLD_SW','RW','0','Global COLD software reset control.' 0,0,'RST_GLOBAL_WARM_SW','RW','0','Global WARM software reset control.' RM_CPU0_CPU0_RSTCTRL RM_CPU1_CPU1_RSTCTRL 0,0,'RST','RW','0','Cortex A9 CPU0&1 warm local reset control' Signed-off-by: Benoit Cousson [paul@pwsan.com: made the hardreset functions static; moved the register twiddling into prm*.c functions in previous patches; changed the function names to conform with hwmod practice] Signed-off-by: Paul Walmsley Cc: Kevin Hilman Cc: Rajendra Nayak commit cf21405fd51b416f071edb546631a6ecd2112263 Author: Paul Walmsley Date: Tue Sep 21 10:34:10 2010 -0600 OMAP2/3: PRM: add module hard reset support This patch adds hard-reset support for processor modules (e.g., DSP, IVA) on OMAP2/3 platforms. It's based on the OMAP4 hard-reset support that Benoît developed in the previous patch. This patch is a collaboration between Benoît Cousson and Paul Walmsley . Signed-off-by: Paul Walmsley Cc: Benoît Cousson commit 0be1621a749907ada0101e4139a1f57168c5410b Author: Benoît Cousson Date: Tue Sep 21 10:34:10 2010 -0600 OMAP4: PRM: add module hard reset support Most processor modules (e.g., DSP, IVA, IPU) on OMAPs can be reset under the control of the PRM. This patch adds an API for this purpose for OMAP4 devices: int omap4_prm_is_hardreset_asserted(void __iomem *rstctrl_reg, u8 shift); int omap4_prm_assert_hardreset(void __iomem *rstctrl_reg, u8 shift); int omap4_prm_deassert_hardreset(void __iomem *rstctrl_reg, u8 shift); This API is intended to be used only by the hwmod code - a subsequent patch will add that support to hwmod. This patch is a collaboration between Benoît Cousson and Paul Walmsley . Signed-off-by: Paul Walmsley Signed-off-by: Benoît Cousson Tested-by: Kevin Hilman commit 16b040129e324598d13ff2e2b3469dc2e909ce12 Author: Benoit Cousson Date: Tue Sep 21 10:34:10 2010 -0600 OMAP4: prcm: Add temporarily helper functions for rmw and read inside the PRM Since OMAP4 is using an absolute address, the current PRM accessors are not useable. OMAP4 adaptation for these API are currently ongoing, so define temp version until the proper ones are defined. Signed-off-by: Benoit Cousson Signed-off-by: Paul Walmsley Tested-by: Kevin Hilman commit 12b1fdb45c2594070bb36e39cd89a33547aad8fb Author: Kevin Hilman Date: Tue Sep 21 10:34:09 2010 -0600 OMAP: hwmod: separate list locking and hwmod hardware locking Currently omap_hwmod_mutex is being used to protect both the list access/modification and concurrent access to hwmod functions. This patch separates these two types of locking. First, omap_hwmod_mutex is used only to protect access and modification of omap_hwmod_list. Also cleaned up some comments referring to this mutex that are no longer needed. Then, for protecting concurrent access to hwmod functions, use a per-hwmod mutex. This protects concurrent access to a single hwmod, but would allow concurrent access to different hwmods. Signed-off-by: Kevin Hilman [paul@pwsan.com: added structure documentation; changed mutex variable name] Signed-off-by: Paul Walmsley commit ff4d3e186b7b92c74a4f64360f723c603193f344 Author: Rajeev Kulkarni Date: Tue Sep 21 10:34:09 2010 -0600 OMAP4: prcm: Fix global warm reset bit position OMAP4 platform has different register bits for Warm and Cold Resets. Write one into appropriate bits. Signed-off-by: Rajeev Kulkarni Cc: Leed Aguilar [b-cousson@ti.com: Change the define with the proper one from omap4 headers] Signed-off-by: Benoit Cousson Signed-off-by: Paul Walmsley Tested-by: Kevin Hilman commit 9b579114efc4bd00532de33c783b4cb4638910ff Author: Liam Girdwood Date: Tue Sep 21 10:34:09 2010 -0600 OMAP: hwmod: Fix omap_hwmod_reset wrong state test The reset function wrongly used the state flag as a bit mask and was trying to re-enable after a reset. hwmod is still enabled for the PRCM point of view after a softreset so there is no need to re-enable. Remove the state check from omap_hwmod_reset since the _reset function is checking that as well and in addition can generate a warning Signed-off-by: Liam Girdwood [b-cousson@ti.com: remove the wrong test, remove the re-enable] Signed-off-by: Benoit Cousson Signed-off-by: Paul Walmsley Tested-by: Kevin Hilman Cc: Rajendra Nayak commit 3827f9492bdff045ae57fe67e65ce7e259ed4219 Author: Benoit Cousson Date: Tue Sep 21 10:34:08 2010 -0600 OMAP: hwmod: Do not disable clocks if hwmod already in idle The disable function was disabling clocks and dependencies from both enable and idle state. Since idle function is already disabling both, an enable -> idle -> disable sequence will try to disable twice the clocks and thus generate a "Trying disable clock XXX with 0 usecount" warning. Signed-off-by: Benoit Cousson Signed-off-by: Paul Walmsley Tested-by: Kevin Hilman commit 839049a8732d689d02051e0198fb60a22f7ccb4b Author: NeilBrown Date: Thu Aug 12 17:04:06 2010 +1000 nfsd/idmap: drop special request deferal in favour of improved default. The idmap code manages request deferal by waiting for a reply from userspace rather than putting the NFS request on a queue to be retried from the start. Now that the common deferal code does this there is no need for the special code in idmap. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit 8ff30fa4eff2ff9e207961c654caa093f0c84873 Author: NeilBrown Date: Thu Aug 12 17:04:07 2010 +1000 nfsd: disable deferral for NFSv4 Now that a slight delay in getting a reply to an upcall doesn't require deferring of requests, request deferral for all NFSv4 requests - the concept doesn't really fit with the v4 model. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit 1ebede86b8abbcf8833830e18e05391758cf2f28 Author: NeilBrown Date: Thu Aug 12 17:04:07 2010 +1000 sunrpc: close connection when a request is irretrievably lost. If we drop a request in the sunrpc layer, either due kmalloc failure, or due to a cache miss when we could not queue the request for later replay, then close the connection to encourage the client to retry sooner. Note that if the drop happens in the NFS layer, NFSERR_JUKEBOX (aka NFS4ERR_DELAY) is returned to guide the client concerning replay. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields commit b4687da7fc5f741af7fee9b0248a2cf2ad9c4478 Author: Chuck Lever Date: Tue Sep 21 16:55:48 2010 -0400 SUNRPC: Refactor logic to NUL-terminate strings in pages Clean up: Introduce a helper to '\0'-terminate XDR strings that are placed in a page in the page cache. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 38359352fcb0d776b562a9e0ed4f0d355d5a332e Author: Chuck Lever Date: Tue Sep 21 16:55:48 2010 -0400 SUNRPC: Correct an rpcbind debugging message Clean up. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit d141d97437a3c84aa18cfd5c8d91b89c4173f25c Author: Chuck Lever Date: Tue Sep 21 16:55:47 2010 -0400 NFS: Fix NFSv3 debugging messages in fs/nfs/nfs3proc.c Clean up. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 609588928fae2c977c887d6d31b1f0aae60ea09e Author: Trond Myklebust Date: Tue Sep 21 16:55:31 2010 -0400 NFS: Convert nfsiod to use alloc_workqueue() create_singlethread_workqueue() is deprecated. Signed-off-by: Trond Myklebust commit 4fbf6e507888da902b02a3c4f5f493fab1071312 Author: Trond Myklebust Date: Tue Sep 21 16:54:34 2010 -0400 SUNRPC: Convert rpciod to use the alloc_workqueue() interface create_workqueue() is a deprecated function. Signed-off-by: Trond Myklebust commit d688e11007419fd060ae74d8d952a5c4ece735aa Author: Trond Myklebust Date: Tue Sep 21 16:52:40 2010 -0400 NFSv4.1: Fix the slotid initialisation in nfs_async_rename() This fixes an Oopsable condition that was introduced by commit d3d4152a5d59af9e13a73efa9e9c24383fbe307f (nfs: make sillyrename an async operation) Signed-off-by: Trond Myklebust commit f7732d6573c4f29fc1ca5d384bbf82ddfa115030 Author: Trond Myklebust Date: Tue Sep 21 16:52:40 2010 -0400 NFS: Fix a use-after-free case in nfs_async_rename() The call to nfs_async_rename_release() after rpc_run_task() is incorrect. The rpc_run_task() is always guaranteed to call the ->rpc_release() method. Signed-off-by: Trond Myklebust commit b618f6f885579a6237e5bf4582fa6167972ddef4 Merge: 462fb2a 6e5c2b4 Author: John W. Linville Date: Tue Sep 21 15:49:14 2010 -0400 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem Conflicts: arch/arm/mach-omap2/board-omap3pandora.c drivers/net/wireless/ath/ath5k/base.c commit e933ec7c4ebd7e7daaad67b22e5f4a9a0ab102ea Author: Kevin Hilman Date: Thu Jun 17 15:48:43 2010 -0700 OMAP1: PM: add simple runtime PM layer to manage clocks On OMAP1, we do not have omap_device + omap_hwmod to manage the device-specific idle, enable and shutdown. Instead, just enable/disable device clocks automatically at the runtime PM level. This allows drivers to not have any OMAP1 specific clock management and allows them to simply use the runtime PM API to manage clocks. OMAP1 compile fixes Manjunatha GK Cc: Manjunatha GK Signed-off-by: Kevin Hilman commit 57e6fe7b888e17f814bd35b7700ded51aa9a6a83 Author: Kevin Hilman Date: Thu Nov 5 19:06:01 2009 -0800 OMAP2+: PM: initial runtime PM core support Implement the new runtime PM framework as a thin layer on top of the omap_device API. OMAP specific runtime PM methods are registered with the as custom methods on the platform_bus. In order to determine if a device is an omap_device, its parent device is checked. All omap_devices have a new 'omap_device_parent_ device as their parent device, so checking for this parent is used to check for valid omap_devices. If a device is an omap_device, then the appropriate omap_device functions are called for it. If not, only the generic runtime PM functions are called. Device driver's ->runtime_idle() hook is called when the runtime PM usecount reaches zero for that device. Driver's ->runtime_suspend() hooks are called just before the device is disabled (via omap_device_idle()), and device driver ->runtime_resume() hooks are called just after device has been enabled (via omap_device_enable().) OMAP4 build support from Rajendra Nayak . OMAP2 build support from Charulatha V Cc: Rajendra Nayak Cc: Charulatha V Acked-by: Grant Likely Signed-off-by: Kevin Hilman commit 6cdee91257bee23a46dc869ca62469b67cba2c7e Author: Thara Gopinath Date: Thu Aug 12 13:52:25 2010 +0530 OMAP: PM debugfs removing OMAP3 hardcodings. This patch removes omap3 hardcodings from pm-debug.c so that enabling PM debugfs support does break compilation for other OMAP's. This is a preparatory patch for supporting OMAP4 pm entries through PM debugfs. Signed-off-by: Thara Gopinath Signed-off-by: Kevin Hilman commit d5c47d7e97c141edb620b3932e1e1cb39e70c654 Author: Kevin Hilman Date: Tue Aug 10 16:04:35 2010 -0700 OMAP3: PM: whitespace cleanup around IO wakeup enable Cleanup indentation around IO wakeup enable, the '\' terminator is not required in C when wrapping an expression past end-of-line. Whitespace change only. Signed-off-by: Kevin Hilman commit 1a0b25ce7889cbd569dff308975e8459645f23f2 Author: Greg Kroah-Hartman Date: Tue Sep 21 11:03:41 2010 -0700 Staging: keucr: prevent the driver from being built as a module. As there are symbols that conflict with the in-kernel usb-storage module, we can't build this into the kernel. Reported-by: Randy Dunlap Cc: Al Cho Signed-off-by: Greg Kroah-Hartman commit 584c5b7cf06194464240280483ee0376cdddbbae Author: Max Vozeler Date: Tue Sep 21 17:43:30 2010 +0200 staging: usbip: Process event flags without delay The way the event handler works can cause it to delay events until eventual wakeup for another event. For example, on device detach (vhci): - Write to sysfs detach file -> usbip_event_add(VDEV_EVENT_DOWN) -> wakeup() #define VDEV_EVENT_DOWN (USBIP_EH_SHUTDOWN | USBIP_EH_RESET). - Event thread wakes up and passes the event to event_handler() to process. - It processes and clears the USBIP_EH_SHUTDOWN flag then returns. - The outer event loop (event_handler_loop()) calls wait_event_interruptible(). The processing of the second flag which is part of VDEV_EVENT_DOWN (USBIP_EH_RESET) did not happen yet. It is delayed until the next event. This means the ->reset callback may not happen for a long time (if ever), leaving the usbip port in a weird state which prevents its reuse. This patch changes the handler to process all flags before waiting for another wakeup. I have verified this change to fix a problem which prevented reattach of a usbip device. It also helps for socket errors which missed the RESET as well. The delayed event processing also affects the stub side of usbip and the error handling there. Signed-off-by: Max Vozeler Reported-by: Marco Lancione Tested-by: Luc Jalbert Cc: stable Signed-off-by: Greg Kroah-Hartman commit 0c9a32f0192e656daa2ff3c9149f6d71b4a1b873 Author: Max Vozeler Date: Tue Sep 21 17:31:40 2010 +0200 staging: usbip: Notify usb core of port status changes This patch changes vhci to behave like dummy and other hcds when disconnecting a device. Previously detaching a device from the root hub did not notify the usb core of the disconnect and left the device visible. Signed-off-by: Max Vozeler Reported-by: Marco Lancione Tested-by: Luc Jalbert Cc: stable Signed-off-by: Greg Kroah-Hartman commit 162f535f3fdd5b5fe463dcd86847e545a9efd067 Author: Mike McCormack Date: Mon Sep 20 23:12:50 2010 +0900 staging: rtl8192e: Clean up rtl8192_hard_start_xmit() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 09585fbdc6b903d6cd418378b22a3c578fabc327 Author: Mike McCormack Date: Mon Sep 20 23:12:40 2010 +0900 staging: rtl8192e: Remove some dead code Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit c325d9805d2e32e818a362e5e66d544f786f98ff Author: Mike McCormack Date: Mon Sep 20 23:12:29 2010 +0900 staging: rtl8192e: Remove dead code in CamResetAllEntry() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 7aed48d9a7a9f72f8f1ad187d5d41510a7696813 Author: Mike McCormack Date: Mon Sep 20 23:12:18 2010 +0900 staging: rtl8192e: Fix indent of some functions Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 61d0e67af6a54ae4868449e6865d523c4f3d1e3c Author: Mike McCormack Date: Mon Sep 20 23:12:09 2010 +0900 staging: rtl8192e: Remove dead code from rtl8192_set_chan() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit a6b1d95908dbbc679846e6d362298e60445f5b7e Author: Mike McCormack Date: Mon Sep 20 23:11:59 2010 +0900 staging: rtl8192e: Remove commented function rtl8192_set_mode() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit cdeac5df346a7281d90cfe6bdda610adfc4155e6 Author: Mike McCormack Date: Mon Sep 20 23:11:49 2010 +0900 staging: rtl8192e: Remove empty function force_pci_posting() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit dcf663fba428a95b43ddc6c996f987b032c5d291 Author: Mike McCormack Date: Mon Sep 20 23:11:40 2010 +0900 staging: rtl8192e: Clean up rtl8192_hard_data_xmit() Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 214985a6d507694e9ede71936387cabb37d3378a Author: Mike McCormack Date: Mon Sep 20 23:11:29 2010 +0900 staging: rtl8192e: Clean up function headers Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 16d74da0fdeffda74bde09d1287b4eb7086c05f4 Author: Mike McCormack Date: Mon Sep 20 23:11:14 2010 +0900 staging: rtl8192e: Delete dead and commented out code Signed-off-by: Mike McCormack Signed-off-by: Greg Kroah-Hartman commit 3742e3d794315be8b979d2fd5d6b90c82100df63 Author: Tracey Dent Date: Mon Sep 20 21:19:42 2010 -0400 Staging: rtl8187se: r8185b_init: fixed a lot of checkpatch.pl issues Fixed numerous coding style issues using checkpatch.pl Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit de171bd6ff9f0f05594941223f6aac96dac73e03 Author: Tracey Dent Date: Mon Sep 20 21:19:41 2010 -0400 Staging: rtl8187se: r8180_wx: fixed a lot of checkptahc.pl issues Fixed numerous coding style issues using checkpatch.pl Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 7042b09ad5428a44d0f3bc9a8bc9132b504bc2ea Author: Tracey Dent Date: Mon Sep 20 21:19:40 2010 -0400 Staging: rtl8187se: r8180_rtl8225: fixed a lot of checkpatch.pl issues Fixed numerous coding style issues using checkpatch.pl Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 33f6c688c94a8ff5cf384912c2aa044cf17ef550 Author: Tracey Dent Date: Mon Sep 20 21:19:39 2010 -0400 Staging: rtl8187se: r8180_hw: fixed a lot of checkpatch.pl issues Fixed numerous coding style issues using checkpatch.pl Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit 888b9de56b06402892733194218d1170a024124b Author: Tracey Dent Date: Mon Sep 20 21:19:38 2010 -0400 Staging: rtl8187se: r8180.h: fixed alot of checkpatch.pl issues Fixed numerous coding style issues Signed-off-by: Tracey Dent Signed-off-by: Greg Kroah-Hartman commit a1b0925293190338add127b02a833d16f6af05ad Author: Victor Rosales Date: Sun Sep 19 17:53:00 2010 -0300 staging: winbond: mds.c: Fixed all checkpatch's errors Just fixed all checkpatch's errors but not the warinings. Signed-off-by: Victor Rosales Signed-off-by: Greg Kroah-Hartman commit 0fe212f7e3347c7d146258c9bc893bfd118df71e Author: Pekka Enberg Date: Sun Sep 19 13:04:21 2010 +0300 staging: w35und: Add locking problems to TODO list The w35und uses atomics such as "ThreadCount" and "FireCount" to emulate locking in the TX paths, for example. Document this bug in the TODO list. Cc: Lars Lindley Cc: Pavel Machek Cc: Ruslan Pisarev Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit 11c9a55d08d3d79c7a690312966567f70758886a Author: Pekka Enberg Date: Sun Sep 19 13:01:03 2010 +0300 staging: w35und: Inline MLMESendFrame() to wbsoft_tx() The wbsoft_tx() function is a simple wrapper on top of MLMESendFrame() so inline the latter to the former. Cc: Lars Lindley Cc: Pavel Machek Cc: Ruslan Pisarev Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit 80a284bd154ee3a9d38ee9c264a3a2bf6114385e Author: Pekka Enberg Date: Sun Sep 19 13:01:02 2010 +0300 staging: w35und: Use NETDEV_TX_BUSY if MLMESendFrame fails This patch changes MLMESendFrame to return NETDEV_TX_BUSY if MLME frame is in use so that wbsoft_tx() doesn't blindly return NETDEV_TX_OK in that case. Cc: Sandro Bonazzola Cc: Lars Lindley Cc: Pavel Machek Cc: Ruslan Pisarev Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit ff80d13fc45b97bb06dcb57036c768c8d3674d7d Author: Pekka Enberg Date: Sun Sep 19 12:28:43 2010 +0300 staging: w35und: Remove unused fields from struct wbsoft_priv This patch removes unused fields from "struct wbsoft_priv". Cc: Lars Lindley Cc: Pavel Machek Cc: Ruslan Pisarev Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit 89b32d45fe88884d4780057dd18a098b402e358c Author: Pekka Enberg Date: Sun Sep 19 12:28:42 2010 +0300 staging: w35und: Remove unused spinlocks This patch removes unused spinlocks from "struct mlme_frame" and "struct wbsoft_priv". Cc: Lars Lindley Cc: Pavel Machek Cc: Ruslan Pisarev Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit 3c093865aecc7addd34a56b5cf4b2ee9223d9b2d Author: Pekka Enberg Date: Sun Sep 19 12:28:41 2010 +0300 staging: w35und: Inline mlme_s.h to core.h The mlme_s.h header is included in one place. As the header is very small, just inline it to core.h. Cc: Lars Lindley Cc: Pavel Machek Cc: Ruslan Pisarev Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit f2e497e3e905f60f44eb475b527cc0e443ce4d0b Author: Pekka Enberg Date: Sun Sep 19 12:28:40 2010 +0300 staging: w35und: Remove dead code from mlme_s.h There's bunch of macros in mlme_s.h that aren't used for anything. Kill them off. Cc: Lars Lindley Cc: Pavel Machek Cc: Ruslan Pisarev Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit b9f98a05ba18cadd95fe57502ba038bb83001477 Author: Pekka Enberg Date: Sun Sep 19 12:28:39 2010 +0300 staging: w35und: Kill unused scan_s.h header The scan_s.h header is not actually used for anything so just kill it off. Cc: Lars Lindley Cc: Pavel Machek Cc: Ruslan Pisarev Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit c4d562a99fdf6ef66ee974f54efea66d09d504cf Author: Pekka Enberg Date: Sun Sep 19 12:28:38 2010 +0300 staging: w35und: Remove remaining typedef declarations This patch removes remaining typedef declarations from the w35und driver. Most of them were unused so I just killed them off completely. Cc: Lars Lindley Acked-by: Pavel Machek Cc: Ruslan Pisarev Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit 5fb108555b35ce35f997899e2a4ad074f3496949 Author: Pekka Enberg Date: Sun Sep 19 12:28:37 2010 +0300 staging: w35und: Kill dead HAL macros in wbhal_f.h Fixes an uninitialized variable access in _rx_iq_calibration_loop_winbond(): CC [M] drivers/staging/winbond/phy_calibration.o drivers/staging/winbond/phy_calibration.c: In function ‘_rx_iq_calibration_loop_winbond’: drivers/staging/winbond/phy_calibration.c:1138: warning: ‘val’ is used uninitialized in this function Cc: Lars Lindley Acked-by: Pavel Machek Cc: Ruslan Pisarev Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman commit fa6d52938906305356555e37e38939c7bad8fd7a Author: Dimitris Papastamos Date: Tue Sep 21 14:12:35 2010 +0100 ASoC: Fix soc-cache buffer overflow bug Make sure we stay within the cache boundaries when updating the register cache. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 0b25ad0571e9208c2bd1302a41ce219794c6f901 Author: Jarkko Nikula Date: Tue Sep 21 15:36:49 2010 +0300 ASoC: Remove extra rtd->dev.init_name assignment in soc_probe_dai_link rtd->dev.init_name is set twice in soc_probe_dai_link. I removed the first assignement from dai_link->stream_name since then there won't be sysfs name changes and usually dai_link->name seems to fit anyway better for a sysfs directory name. Signed-off-by: Jarkko Nikula Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 10ba8ea9bdad9cae23b555af38561f41e81e310a Author: Jonathan Cameron Date: Tue Sep 21 14:41:08 2010 +0100 staging: iio: sysfs abi documentation. Add _type and _index attrs Also remove no unused precision attr. Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 3215e31cc30cecdc4465bd1c5f36e1e898e686a1 Author: Jonathan Cameron Date: Tue Sep 21 14:41:07 2010 +0100 staging: iio: remove deprecated form of scan_el attribute naming. This has been replaced by a separate _index attribute Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit d16061bb6713844358abe87c82a23775ee1dd528 Author: Jonathan Cameron Date: Tue Sep 21 14:41:06 2010 +0100 staging: iio: sca3000 add _index attribute registration Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 77b3d3facfb32913a85f40156e7d4a70b18d0bd6 Author: Jonathan Cameron Date: Tue Sep 21 14:41:05 2010 +0100 staging: iio: max1363 add _index attribute registration Also fixes a missing NULL to terminate one of the attribute arrays. Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 67dd265d44df2998ab7a15e16d616f5a7f255853 Author: Jonathan Cameron Date: Tue Sep 21 14:41:04 2010 +0100 staging: iio: adis16400 add _index attribute registration Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit de9b493efb7e2dc3e936cab5d062a9534fd2aa7b Author: Jonathan Cameron Date: Tue Sep 21 14:41:03 2010 +0100 staging: iio: adis16350 add _index attribute registration Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 474437496a56d31e0692a79a3ccbd0ada9496f8e Author: Jonathan Cameron Date: Tue Sep 21 14:41:02 2010 +0100 staging: iio: adis16300 add _index attribute registration Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit c045e44dfc7099caf6352437fa6d1faee47447ac Author: Jonathan Cameron Date: Tue Sep 21 14:41:01 2010 +0100 staging: iio: adis16260 add _index attribute registration Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 6d2174f43832d6ad7cb6d4772046d3e05cf21d1e Author: Jonathan Cameron Date: Tue Sep 21 14:41:00 2010 +0100 staging: iio: adis16240 add _index attribute registration Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 49624fa833668011e4b70de5df6941d8df3f0af1 Author: Jonathan Cameron Date: Tue Sep 21 14:40:59 2010 +0100 staging: iio: adis16209 add _index attribute registration Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 13a091abb7bef52c419342f38f34e92ec6f9abaa Author: Jonathan Cameron Date: Tue Sep 21 14:40:58 2010 +0100 staging: iio: lis3l02dq add _index attribute registration Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit fc89b38db00ced7859cb5cb5c8c8007d2f14ca31 Author: Jonathan Cameron Date: Tue Sep 21 14:40:57 2010 +0100 staging: iio: amend macros for SCAN_EL creation to add separate index attr As Manuel Stahl observed, putting data into the naming of an attribute (beyond what it is for) breaks the one value per attribute rule (in spirit at least). Hence we introduce a separate _index attribute for each scan element to tell userspace the ordering in output from the buffer. This will generate a lot of sparse warnings as all drivers will have unused iio_const_attrs created. The rest of the set will clean these up. The final patch will remove the old indexing method. It is not here so as to maintain one or other interface for all devices as this set progresses. Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 44f270de711dcaf595786f2318b36f9b4f007338 Author: Jonathan Cameron Date: Tue Sep 21 14:40:56 2010 +0100 staging: iio: Remove unused bit_count from struct iio_scan_el The job this was intended to do (never implemented) is now done by explicit definition of _type attributes in all drivers Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 5df2145c8c37af0cc7c10009eea86c493cc434a5 Author: Jonathan Cameron Date: Tue Sep 21 14:40:55 2010 +0100 staging: iio: adis16400 add _type attributes for all scan elements The bit depth of 14 for the supply adc on the datasheet is highly suspicious. Confirmation requested from Analog. Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 3b401a96d5769e8a992336deda2e4344a521093a Author: Jonathan Cameron Date: Tue Sep 21 14:40:54 2010 +0100 staging: iio: adis16350 add _type attributes for all scan elements Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 88b76d1da59c7bf06ebc301dbee5e35d59277a6e Author: Jonathan Cameron Date: Tue Sep 21 14:40:53 2010 +0100 staging: iio: adis16300 add _type attributes for all scan elements Note some of the in driver type specifications do not match the data sheet. I am assuming the datasheet is correct. This bug would not have been apparent in the driver as these values were unusued. Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 357f0209b4f3da76da7d2e370bae8c548a47b38a Author: Jonathan Cameron Date: Tue Sep 21 14:40:52 2010 +0100 staging: iio: adis16260 add _type attributes for all scan elements Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit ef26b83090a49dd55dd2e40a3fcfd9872edcaa17 Author: Jonathan Cameron Date: Tue Sep 21 14:40:51 2010 +0100 staging: iio: sca3000 add _type attributes for all scan elements Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit be3ebd1f161efcbabd0e5f7d51b27469739568ea Author: Jonathan Cameron Date: Tue Sep 21 14:40:50 2010 +0100 staging: iio: adis16240 add _type attributes for all scan elements Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 6a4429c85e5059f3efd763d088a8e4803f519de1 Author: Jonathan Cameron Date: Tue Sep 21 14:40:49 2010 +0100 staging: iio: adis16209 add _type attributes for all scan elements Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 8d9c636b60434fd5f7453937e7d2139757481574 Author: Jonathan Cameron Date: Tue Sep 21 14:40:48 2010 +0100 staging: iio: max1363 add _type attributes for all scan elements As both signed and unsigned in attributes exist, each element must be fully specified. Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit 6a36e618b4b98dc43e67b03cd01ad7a3c41a06e5 Author: Jonathan Cameron Date: Tue Sep 21 14:40:47 2010 +0100 staging: iio: lis3l02dq add _type attributes for all scan elements Also, adds a macro to make defining such attributes simple. Signed-off-by: Jonathan Cameron Signed-off-by: Manuel Stahl Signed-off-by: Greg Kroah-Hartman commit cf2b448852abd47cee21007b8313fbf962bf3c9a Author: Henry Ptasinski Date: Mon Sep 20 22:33:12 2010 -0700 staging: brcm80211: add fullmac driver This patch to the existing bcm80211 directory in the staging tree adds fullmac driver support for the BCM4329 SDIO chip from Broadcom. Configuration of the mac80211 driver or the fullmac driver can be done through menuconfig. Signed-off-by: Henry Ptasinski Signed-off-by: Nohee Ko Signed-off-by: Greg Kroah-Hartman commit 9ee9fff92e02e8c5f84794b3a5ce47646c2dfc39 Author: Benoit Cousson Date: Tue Sep 21 10:34:08 2010 -0600 OMAP: hwmod: Rename dma_ch to dma_req The dma request line attribute was named dma channel, which leads to confusion with the real dma channel definition. Signed-off-by: Benoit Cousson Signed-off-by: Paul Walmsley Tested-by: Kevin Hilman commit 26c15cfd291f8b4ee40b4bbdf5e3772adfd704f5 Author: Julian Anastasov Date: Tue Sep 21 18:12:30 2010 +0200 ipvs: changes related to service usecnt Change the usage of svc usecnt during command execution: - we check if svc is registered but we do not need to hold usecnt reference while under __ip_vs_mutex, only the packet handling needs it during scheduling - change __ip_vs_service_get to __ip_vs_service_find and __ip_vs_svc_fwm_get to __ip_vs_svc_fwm_find because now caller will increase svc->usecnt - put common code that calls update_service in __ip_vs_update_dest - put common code in ip_vs_unlink_service() and use it to unregister the service - add comment that svc should not be accessed after ip_vs_del_service anymore - all IP_VS_WAIT_WHILE calls are now unified: usecnt > 0 - Properly log the app ports As result, some problems are fixed: - possible use-after-free of svc in ip_vs_genl_set_cmd after ip_vs_del_service because our usecnt reference does not guarantee that svc is not freed on refcnt==0, eg. when no dests are moved to trash - possible usecnt leak in do_ip_vs_set_ctl after ip_vs_del_service when the service is not freed now, for example, when some destionations are moved into trash and svc->refcnt remains above 0. It is harmless because svc is not in hash anymore. Signed-off-by: Julian Anastasov Acked-by: Simon Horman Signed-off-by: Patrick McHardy commit 99f07e91bef34db0fc8b1a224096e97f02dc0d56 Author: Changli Gao Date: Tue Sep 21 17:49:20 2010 +0200 netfilter: save the hash of the tuple in the original direction for latter use Since we don't change the tuple in the original direction, we can save it in ct->tuplehash[IP_CT_DIR_REPLY].hnode.pprev for __nf_conntrack_confirm() use. __hash_conntrack() is split into two steps: hash_conntrack_raw() is used to get the raw hash, and __hash_bucket() is used to get the bucket id. In SYN-flood case, early_drop() doesn't need to recompute the hash again. Signed-off-by: Changli Gao Signed-off-by: Patrick McHardy commit abdd8f510686da0a58e475bc0143d1069e5f53da Author: Takashi Iwai Date: Tue Sep 21 17:38:14 2010 +0200 ALSA: hda - Apply ALC269 VAIO fix-up to all Sony laptops with ALC269 We've applied a fix-up for ALC269 VAIO only for two models. But all Sony VAIO models with ALC269 codec seem to require the similar fix. Let's apply it with vendor-id mask. Signed-off-by: Takashi Iwai commit 5e09416f3676af1730af773afc477c2cea26a2c1 Merge: 265a024 0f9f1ee9 Author: Takashi Iwai Date: Tue Sep 21 17:40:48 2010 +0200 Merge branch 'fix/hda' into topic/hda commit 8a8030407f55a6aaedb51167c1a2383311fcd707 Author: Julian Anastasov Date: Tue Sep 21 17:38:57 2010 +0200 ipvs: make rerouting optional with snat_reroute Add new sysctl flag "snat_reroute". Recent kernels use ip_route_me_harder() to route LVS-NAT responses properly by VIP when there are multiple paths to client. But setups that do not have alternative default routes can skip this routing lookup by using snat_reroute=0. Signed-off-by: Julian Anastasov Signed-off-by: Patrick McHardy commit f4bc17cdd205ebaa3807c2aa973719bb5ce6a5b2 Author: Julian Anastasov Date: Tue Sep 21 17:35:41 2010 +0200 ipvs: netfilter connection tracking changes Add more code to IPVS to work with Netfilter connection tracking and fix some problems. - Allow IPVS to be compiled without connection tracking as in 2.6.35 and before. This can avoid keeping conntracks for all IPVS connections because this costs memory. ip_vs_ftp still depends on connection tracking and NAT as implemented for 2.6.36. - Add sysctl var "conntrack" to enable connection tracking for all IPVS connections. For loaded IPVS directors it needs tuning of nf_conntrack_max limit. - Add IP_VS_CONN_F_NFCT connection flag to request the connection to use connection tracking. This allows user space to provide this flag, for example, in dest->conn_flags. This can be useful to request connection tracking per real server instead of forcing it for all connections with the "conntrack" sysctl. This flag is set currently only by ip_vs_ftp and of course by "conntrack" sysctl. - Add ip_vs_nfct.c file to hold all connection tracking code, by this way main code should not depend of netfilter conntrack support. - Return back the ip_vs_post_routing handler as in 2.6.35 and use skb->ipvs_property=1 to allow IPVS to work without connection tracking Connection tracking: - most of the code is already in 2.6.36-rc - alter conntrack reply tuple for LVS-NAT connections when first packet from client is forwarded and conntrack state is NEW or RELATED. Additionally, alter reply for RELATED connections from real server, again for packet in original direction. - add IP_VS_XMIT_TUNNEL to confirm conntrack (without altering reply) for LVS-TUN early because we want to call nf_reset. It is needed because we add IPIP header and the original conntrack should be preserved, not destroyed. The transmitted IPIP packets can reuse same conntrack, so we do not set skb->ipvs_property. - try to destroy conntrack when the IPVS connection is destroyed. It is not fatal if conntrack disappears before that, it depends on the used timers. Fix problems from long time: - add skb->ip_summed = CHECKSUM_NONE for the LVS-TUN transmitters Signed-off-by: Julian Anastasov Signed-off-by: Patrick McHardy commit 6f0b31c31860a0be60663f76a305ca2d78e5e99f Author: Thomas Weber Date: Mon Sep 20 16:30:54 2010 +0200 Fix typo interrest[ing|ed] => interest[ing|ed] Fix typos with interrest*. Signed-off-by: Thomas Weber Signed-off-by: Jiri Kosina commit 6e5c2b4e8addfaab8ef54dedaf7b607e1585c35b Author: Felix Fietkau Date: Mon Sep 20 13:45:40 2010 +0200 ath9k: make the driver specific rate control module optional ath9k can use minstrel_ht instead, so it makes sense to save some space here. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 334b06029ed3f5e31d773527d54fb40e3ee571f9 Author: Felix Fietkau Date: Mon Sep 20 13:45:39 2010 +0200 ath9k: move ath_tx_aggr_check() to the rate control module It is not used anywhere else and can be made static Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 90fa539ca3f07323da5a90f5c8f4e5cd952875e7 Author: Felix Fietkau Date: Mon Sep 20 13:45:38 2010 +0200 ath9k: clean up / fix aggregation session flush The tid aggregation cleanup is a bit fragile, as it discards failed subframes in some places, and retransmits them in others. This could block the cleanup of an existing aggregation session, if a retransmission for a tid is issued, yet the tid is never scheduled again because of the cleanup state. Fix this by getting rid of as many subframes as possible, as early as possible, and immediately transmitting pending subframes as regular HT frames instead of waiting for the cleanup to complete. Drop all pending subframes while keeping track of the Block ACK window during aggregate tx completion to prevent sending out stale subframes, which could confuse the receiver side. Signed-off-by: Felix Fietkau Cc: stable@kernel.org Signed-off-by: John W. Linville commit 231c3a1f0630c07a584905507a1cb7b705a56ab7 Author: Felix Fietkau Date: Mon Sep 20 19:35:28 2010 +0200 ath9k: fix an aggregation start related race condition A new aggregation session start can be issued by mac80211, even when the cleanup of the previous session has not completed yet. Since the data structure for the session is not recreated, this could corrupt the block ack window and lock up the aggregation session. Fix this by delaying the new session until the old one has been cleaned up. Signed-off-by: Felix Fietkau Cc: stable@kernel.org Signed-off-by: John W. Linville commit 81ee13ba7ef8c9eaebe91ed06edb844ab6403d4e Author: Felix Fietkau Date: Mon Sep 20 13:45:36 2010 +0200 ath9k: clean up block ack window handling There's no reason to keep pointers to pending tx buffers around, if they're only used to keep track of which frames are still pending. Use a bitfield instead. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 9ee82d541095cb64bf16a1f5d7573a8cddc125aa Author: Eliad Peller Date: Sun Sep 19 18:55:09 2010 +0200 wl1271: bugfix: use bitwise-AND instead of logical-AND typo - while looking for specific bits we should do a bitwise-AND instead of logical-AND. Signed-off-by: Eliad Peller Acked-by: Luciano Coelho Signed-off-by: John W. Linville commit 58be4607d25f86962dee6cc6b30573f95303517e Author: Eliad Peller Date: Sun Sep 19 18:55:08 2010 +0200 wl1271: avoid redundant memcpy of rx_status copy the rx_status directly to skb->cb (control buffer) instead of copying it to a local struct and then copying it again (for each rx packet) Signed-off-by: Eliad Peller Acked-by: Luciano Coelho Signed-off-by: John W. Linville commit 2c7808d9345b91bb19f6bfaebf7b9e0916b0859a Author: Christian Lamparter Date: Sat Sep 18 00:15:13 2010 +0200 carl9170: fix hang in AP mode when HT STA does PSM This is a obvious bug, skb_queue_walk does not work if the iterator gets removed from the queue. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 735761108f435a30bbabb5254fc5a8e17b99f2a1 Author: Christian Lamparter Date: Fri Sep 17 23:09:19 2010 +0200 carl9170: reinit phy after HT settings have changed The driver has a set of different initvals for 20 MHz vs dynamic HT2040 operation. Because we can't change some of the registers "in-flight", the driver needs to perform a warm reset. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 78ec789bd397249a9bb412ca91bd360079e7b446 Author: Christian Lamparter Date: Fri Sep 17 22:58:40 2010 +0200 carl9170: fix state downgrade during reset Don't mark the device as completely dead just yet. If all goes to plan and carl9170_reboot succeeds then we can skip the expensive userspace-driven reinitialization anyway. And if it doesn't and carl9170_reboot fails, then carl9170_usb_cancel_urbs will do the necessary steps. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit cf6487d0d656994cc43851b8c2384741e220f7ac Author: Christian Lamparter Date: Fri Sep 17 22:47:28 2010 +0200 carl9170: abort tasklet during usb reset This patch prevents the tasklet code from interfering while the firmware is down for an unscheduled maintenance. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 9adc9e0ff397fb2d4f383cc2d399b18adc32e6eb Author: Christian Lamparter Date: Fri Sep 17 22:42:37 2010 +0200 carl9170: don't load bogus nf of chain 1 According to Atheros, chain 1 is not connected. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit e278c5a90368408bd191743e7c6f978f068f4b8d Author: Christian Lamparter Date: Fri Sep 17 22:22:50 2010 +0200 carl9170: fix noise dBm conversion Ever since carl9170 gained support to read the noisefloor, the reported noisefloor level was pretty poor. Initially I assumed that something was wrong in the PHY setup and it would be impossible to fix without any guidances. But this was not the case. In fact the nf readings were correct and the thing that was broken was the "simple" sign extension code! Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 9dec6f9c48242eec742c9475f32eeef29448701c Author: Christian Lamparter Date: Fri Sep 17 22:07:59 2010 +0200 carl9170: use rx chainmask from eeprom The eeprom provides a mask for all present rx chains. Why not use it instead of the generic initval default? Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit e0b1cc52e5da3e2fa79666b8df81a953c95c91e4 Author: Bruno Randolf Date: Fri Sep 17 11:37:18 2010 +0900 ath5k: Add tx queue configuration function Add the mac80211 callback function to configure the tx queue properties like cw_min, cw_max and aifs. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit de8af45520f47d14397b603beefae3d2983ce787 Author: Bruno Randolf Date: Fri Sep 17 11:37:12 2010 +0900 ath5k: Simplify cw_min/max and AIFS configuration Get rid of overly complicated cw_min/max and AIFS configuration: * Validate values in ath5k_hw_set_tx_queueprops(), so we can use them directly without further checks or computation in ath5k_hw_reset_tx_queue(). * Simplifiy by using AR5K_TUNE_AIFS|CWMIN|CWMAX variables directly since we don't support XR or B channels. That way we can also remove AR5K_TXQ_USEDEFAULT and the confusing logic around it. * Update data types: AIFS is u8, CW's are u16. * Remove now unneeded variables in ath5k_hw. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 234132960dcf8ebd9d424d92a4dfb0e57fa63a17 Author: Bruno Randolf Date: Fri Sep 17 11:37:07 2010 +0900 ath5k: Keep last descriptor in queue If we return a TX descriptor to the pool of available descriptors, while a queues TXDP still points to it we could potentially run into all sorts of troube. It has been suggested that there is hardware which can set the descriptors done bit before it reads ds_link and moves on to the next descriptor. While the documentation says this is not true for newer chipsets (the descriptor contents are copied to some internal memory), we don't know about older hardware. To be safe, we always keep the last descriptor in the queue, and avoid dangling TXDP pointers. Unfortunately this does not fully resolve the problem - queues still get stuck! This is similar to what ath9k does. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 923e5b3d3d773b9956b943ac64f782d5a127bdea Author: Bruno Randolf Date: Fri Sep 17 11:37:02 2010 +0900 ath5k: Count how many times a queue got stuck Add a counter to show how many times a queue got stuck in the debugfs queue file. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 4edd761f4075b03be5932682a2f7b9368dc9e536 Author: Bruno Randolf Date: Fri Sep 17 11:36:56 2010 +0900 ath5k: Add watchdog for stuck TX queues Since we do not know any better solution to the problem that TX queues can get stuck, this adds a timer-based watchdog, which will check for stuck queues and reset the hardware if necessary. Ported from ath9k commit 164ace38536849966ffa377b1b1132993a5a375d. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 1440401e7051d4cf66084a7c36125834901bb90d Author: Bruno Randolf Date: Fri Sep 17 11:36:51 2010 +0900 ath5k: Move tx frame completion into separate function Clearer separation between queue handling and what we do with completed frames. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 651d9375dca9997ef2b05639191756da73b0cf8d Author: Bruno Randolf Date: Fri Sep 17 11:36:46 2010 +0900 ath5k: Fix TX queues stopping It does not make sense to stop queues for NF calibration. This will not stop transmissions from the card, if there are queued packets. If we run out of TX buffers we need to stop all queues, not only one. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit cfddc11c429a655e418ffc111372cc69dee6a1a5 Author: Bruno Randolf Date: Fri Sep 17 11:36:40 2010 +0900 ath5k: Fix queue debug file Take txq lock in debug file and fix reporting of used buffers. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 925e0b061300c94912be36eac16f0b44249a1add Author: Bruno Randolf Date: Fri Sep 17 11:36:35 2010 +0900 ath5k: Use four hardware queues Prepare ath5k for WME by using four hardware queues. The way we set up our queues matches the mac80211 queue priority 1:1, so we don't have to do any mapping for queue numbers. Every queue uses 50 of the total 200 available transmit buffers, so the DMA memory usage does not increase with this patch, but it might be good to fine-tune the number of buffers per queue later (depending on the CPU speed and load, and the speed of the medium access, it might not be big enough). Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 8a63facc376a7b8bb2b64c0ffbdb0949d1d6c71c Author: Bob Copeland Date: Fri Sep 17 12:45:07 2010 +0900 ath5k: reorder base.c to remove fwd decls This change reorganizes the main ath5k file in order to re-group related functions and remove most of the forward declarations (from 61 down to 3). This is, unfortunately, a lot of churn, but there should be no functional changes. Signed-off-by: Bob Copeland Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit ce2220d1da0bad9583af38a03ad508968d554c0f Author: Bruno Randolf Date: Fri Sep 17 11:36:25 2010 +0900 ath/ath5k/ath9k: Fix crypto capabilities merge issue Fixing up a merge issue / concurrent development: Remove unneeded ath_crypt_caps flags, as per "ath9k_hw: remove useless hw capability flags" (364734fafbba0c3133e482db78149b9a823ae7a5), but set the AESCCM flag for ath9k. common ath code still needs a flag for this because there is ath5k hardware which can't do AES in hardware. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit c807666a08800ab387298817db5a6f6e11606adb Author: Christian Lamparter Date: Thu Sep 16 22:55:20 2010 +0200 carl9170: update AR9170 phy initvals This patch is loosely based on an ath9k patch called: "ath9k_hw: sync initvals for ar9001 and ar9002 with Atheros" It includes the following changes/fixes: - AGC setting improvements - timing changes for improved performance Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 80b517f362605f2b6a6cfe086604534290aab2de Author: Ohad Ben-Cohen Date: Thu Sep 16 01:32:30 2010 +0200 omap: zoom: add mmc3/wl1271 device support Add MMC3 support on ZOOM, which has the wl1271 device hardwired to. The wl1271 is a 4-wire, 1.8V, embedded SDIO WLAN device with an external IRQ line, and power-controlled by a GPIO-based fixed regulator. Signed-off-by: Ohad Ben-Cohen Acked-by: Tony Lindgren Signed-off-by: John W. Linville commit b642fde7f137566c993991fd2e7bf6b8274bf625 Author: Ohad Ben-Cohen Date: Thu Sep 16 01:32:09 2010 +0200 omap: zoom: add fixed regulator device for wlan Add a fixed regulator vmmc device to enable power control of the wl1271 wlan device. Signed-off-by: Ohad Ben-Cohen Acked-by: Tony Lindgren Signed-off-by: John W. Linville commit 15cea99306ae14ce5f7c3d3989bcc17202e2b0be Author: Ohad Ben-Cohen Date: Thu Sep 16 01:31:51 2010 +0200 wl1271: make ref_clock configurable by board The wl1271 device is using a reference clock that may change between board to board. Make the ref_clock parameter configurable by board settings instead of having a hard coded value in the sources. Signed-off-by: Ohad Ben-Cohen Signed-off-by: John W. Linville commit 09cecc340b3b4d9960b039c0f576548bbf857f5a Author: Ohad Ben-Cohen Date: Thu Sep 16 01:31:35 2010 +0200 wl1271: take irq info from private board data Remove the hard coded irq information, and instead take the irq information from the board's platform data. Signed-off-by: Ohad Ben-Cohen Signed-off-by: John W. Linville commit 61ee7007a5d61aa066076da578e8e8084e122d7d Author: Ohad Ben-Cohen Date: Thu Sep 16 01:31:12 2010 +0200 wl12xx: add platform data passing support Add a simple mechanism to pass platform data to the SDIO instances of wl12xx. This way there is no confusion over who owns the 'embedded data', typechecking is preserved, and no possibility for the wrong driver to pick up the data. Originally proposed by Russell King. Signed-off-by: Ohad Ben-Cohen Signed-off-by: John W. Linville commit 2cc78ff78c0af502b040d4527212e29e02d3231d Author: Ohad Ben-Cohen Date: Thu Sep 16 01:22:04 2010 +0200 wl1271: propagate set_power's return value Make it possible for the set power method to indicate a success/failure return value. This is needed to support more complex power on/off operations such as SDIO power manipulations. Signed-off-by: Ohad Ben-Cohen Acked-by: Luciano Coelho Signed-off-by: John W. Linville commit 817f2c842d6c38acfd58d20d29ba583ec467ae35 Author: Nikanth Karthikesan Date: Mon Sep 20 11:44:00 2010 +0530 Fix various typos of valid in comments Fix various typos of valid. Signed-off-by: Nikanth Karthikesan Signed-off-by: Jiri Kosina commit c1f9a095600e07fefe64eb94eb711f410100824a Author: Ohad Ben-Cohen Date: Thu Sep 16 13:16:02 2010 +0200 wl12xx: make wl12xx.h common to both spi and sdio Move wl12xx.h outside of the spi-specific location, so it can be shared with both spi and sdio solutions. Update all users of spi/wl12xx.h accordingly Signed-off-by: Ohad Ben-Cohen Acked-by: Luciano Coelho Acked-by: Tony Lindgren Signed-off-by: John W. Linville commit 0bc79f7f58f5d0670c776818e38f482555bc27ae Author: Nikanth Karthikesan Date: Mon Sep 20 11:43:58 2010 +0530 Doc: Fix typo s/packages/packaged Fix typo s/packages/packaged in Documentation/vm/numa_memory_policy.txt. Signed-off-by: Nikanth Karthikesan Signed-off-by: Jiri Kosina commit a8027073eb127cd207070891374b5c54c2ce3d23 Author: Steven Rostedt Date: Mon Sep 20 15:13:34 2010 -0400 tracing/sched: Add sched_pi_setprio tracepoint Add a tracepoint that shows the priority of a task being boosted via priority inheritance. Cc: Gregory Haskins Acked-by: Peter Zijlstra Signed-off-by: Steven Rostedt commit 46c4ba012c9e70b26e4c2072245e3922cca3ef31 Author: Henrik Rydberg Date: Tue Sep 21 16:16:09 2010 +0200 HID: 3m: Output proper orientation range The range of orientation values for height/width devices should be [0, 1], but is currently set to [1, 1]. Having min == max also breaks uinput device setup. Fixed with this patch. Signed-off-by: Henrik Rydberg Acked-by: Dmitry Torokhov Signed-off-by: Jiri Kosina commit 41035901df14e90ab70db826e940712dde2c1a0d Author: Henrik Rydberg Date: Tue Sep 21 16:11:44 2010 +0200 HID: 3m: Adjust to sequential MT HID protocol The multitouch extensions to the HID protocol allows for contact data to be sent over several reports, which is also the case for the 3M M2256PW touchscreen. This patch modifies the logic to only synchronize the input layer when all contacts have been received. Consequentially, the full 60-finger capacity of the device is enabled. Signed-off-by: Henrik Rydberg Acked-by: Stephane Chatty Signed-off-by: Jiri Kosina commit 24750f3e469bef81a96c0036cd4700df5fb48925 Author: Henrik Rydberg Date: Tue Aug 24 10:54:44 2010 +0200 HID: Add a hid quirk for input sync override As of lately, HID devices which send per-frame data split over several HID reports have started to emerge. This patch adds a quirk which allows the HID driver to take over the input layer synchronization, and hence the control of the frame boundary. Signed-off-by: Henrik Rydberg Signed-off-by: Jiri Kosina commit 9e0ae53404700f1e4ae1f33b0ff92948ae0e509d Author: Chris Wilson Date: Tue Sep 21 15:05:24 2010 +0100 drm/i915: Don't overwrite the returned error-code During i915_gem_create_mmap_offset() if the subsystem reports an error code, use it. Signed-off-by: Chris Wilson commit 4fd21dc8ee6fde52a99042186ff94de1b5e8b43c Author: Chris Wilson Date: Tue Sep 21 14:06:12 2010 +0100 drm/i915/lvds: Unlock the PP register when panel-fitting As we do not wait for the panel to turn off when we need to adjust the panel-fitting registers we also need to unlock the PLLs as with the non-pfit update path. Signed-off-by: Chris Wilson commit b3bc211cfe7d5fe94b310480d78e00bea96fbf2a Author: Steven Rostedt Date: Mon Sep 20 22:40:04 2010 -0400 sched: Give CPU bound RT tasks preference If a high priority task is waking up on a CPU that is running a lower priority task that is bound to a CPU, see if we can move the high RT task to another CPU first. Note, if all other CPUs are running higher priority tasks than the CPU bounded current task, then it will be preempted regardless. Signed-off-by: Steven Rostedt Signed-off-by: Peter Zijlstra Cc: Gregory Haskins LKML-Reference: <20100921024138.888922071@goodmis.org> Signed-off-by: Ingo Molnar commit 43fa5460fe60dea5c610490a1d263415419c60f6 Author: Steven Rostedt Date: Mon Sep 20 22:40:03 2010 -0400 sched: Try not to migrate higher priority RT tasks When first working on the RT scheduler design, we concentrated on keeping all CPUs running RT tasks instead of having multiple RT tasks on a single CPU waiting for the migration thread to move them. Instead we take a more proactive stance and push or pull RT tasks from one CPU to another on wakeup or scheduling. When an RT task wakes up on a CPU that is running another RT task, instead of preempting it and killing the cache of the running RT task, we look to see if we can migrate the RT task that is waking up, even if the RT task waking up is of higher priority. This may sound a bit odd, but RT tasks should be limited in migration by the user anyway. But in practice, people do not do this, which causes high prio RT tasks to bounce around the CPUs. This becomes even worse when we have priority inheritance, because a high prio task can block on a lower prio task and boost its priority. When the lower prio task wakes up the high prio task, if it happens to be on the same CPU it will migrate off of it. But in reality, the above does not happen much either, because the wake up of the lower prio task, which has already been boosted, if it was on the same CPU as the higher prio task, it would then migrate off of it. But anyway, we do not want to migrate them either. To examine the scheduling, I created a test program and examined it under kernelshark. The test program created CPU * 2 threads, where each thread had a different priority. The program takes different options. The options used in this change log was to have priority inheritance mutexes or not. All threads did the following loop: static void grab_lock(long id, int iter, int l) { ftrace_write("thread %ld iter %d, taking lock %d\n", id, iter, l); pthread_mutex_lock(&locks[l]); ftrace_write("thread %ld iter %d, took lock %d\n", id, iter, l); busy_loop(nr_tasks - id); ftrace_write("thread %ld iter %d, unlock lock %d\n", id, iter, l); pthread_mutex_unlock(&locks[l]); } void *start_task(void *id) { [...] while (!done) { for (l = 0; l < nr_locks; l++) { grab_lock(id, i, l); ftrace_write("thread %ld iter %d sleeping\n", id, i); ms_sleep(id); } i++; } [...] } The busy_loop(ms) keeps the CPU spinning for ms milliseconds. The ms_sleep(ms) sleeps for ms milliseconds. The ftrace_write() writes to the ftrace buffer to help analyze via ftrace. The higher the id, the higher the prio, the shorter it does the busy loop, but the longer it spins. This is usually the case with RT tasks, the lower priority tasks usually run longer than higher priority tasks. At the end of the test, it records the number of loops each thread took, as well as the number of voluntary preemptions, non-voluntary preemptions, and number of migrations each thread took, taking the information from /proc/$$/sched and /proc/$$/status. Running this on a 4 CPU processor, the results without changes to the kernel looked like this: Task vol nonvol migrated iterations ---- --- ------ -------- ---------- 0: 53 3220 1470 98 1: 562 773 724 98 2: 752 933 1375 98 3: 749 39 697 98 4: 758 5 515 98 5: 764 2 679 99 6: 761 2 535 99 7: 757 3 346 99 total: 5156 4977 6341 787 Each thread regardless of priority migrated a few hundred times. The higher priority tasks, were a little better but still took quite an impact. By letting higher priority tasks bump the lower prio task from the CPU, things changed a bit: Task vol nonvol migrated iterations ---- --- ------ -------- ---------- 0: 37 2835 1937 98 1: 666 1821 1865 98 2: 654 1003 1385 98 3: 664 635 973 99 4: 698 197 352 99 5: 703 101 159 99 6: 708 1 75 99 7: 713 1 2 99 total: 4843 6594 6748 789 The total # of migrations did not change (several runs showed the difference all within the noise). But we now see a dramatic improvement to the higher priority tasks. (kernelshark showed that the watchdog timer bumped the highest priority task to give it the 2 count. This was actually consistent with every run). Notice that the # of iterations did not change either. The above was with priority inheritance mutexes. That is, when the higher prority task blocked on a lower priority task, the lower priority task would inherit the higher priority task (which shows why task 6 was bumped so many times). When not using priority inheritance mutexes, the current kernel shows this: Task vol nonvol migrated iterations ---- --- ------ -------- ---------- 0: 56 3101 1892 95 1: 594 713 937 95 2: 625 188 618 95 3: 628 4 491 96 4: 640 7 468 96 5: 631 2 501 96 6: 641 1 466 96 7: 643 2 497 96 total: 4458 4018 5870 765 Not much changed with or without priority inheritance mutexes. But if we let the high priority task bump lower priority tasks on wakeup we see: Task vol nonvol migrated iterations ---- --- ------ -------- ---------- 0: 115 3439 2782 98 1: 633 1354 1583 99 2: 652 919 1218 99 3: 645 713 934 99 4: 690 3 3 99 5: 694 1 4 99 6: 720 3 4 99 7: 747 0 1 100 Which shows a even bigger change. The big difference between task 3 and task 4 is because we have only 4 CPUs on the machine, causing the 4 highest prio tasks to always have preference. Although I did not measure cache misses, and I'm sure there would be little to measure since the test was not data intensive, I could imagine large improvements for higher priority tasks when dealing with lower priority tasks. Thus, I'm satisfied with making the change and agreeing with what Gregory Haskins argued a few years ago when we first had this discussion. One final note. All tasks in the above tests were RT tasks. Any RT task will always preempt a non RT task that is running on the CPU the RT task wants to run on. Signed-off-by: Steven Rostedt Signed-off-by: Peter Zijlstra Cc: Gregory Haskins LKML-Reference: <20100921024138.605460343@goodmis.org> Signed-off-by: Ingo Molnar commit 58b26c4c025778c09c7a1438ff185080e11b7d0a Author: Venkatesh Pallipadi Date: Fri Sep 10 18:19:17 2010 -0700 sched: Increment cache_nice_tries only on periodic lb scheduler uses cache_nice_tries as an indicator to do cache_hot and active load balance, when normal load balance fails. Currently, this value is changed on any failed load balance attempt. That ends up being not so nice to workloads that enter/exit idle often, as they do more frequent new_idle balance and that pretty soon results in cache hot tasks being pulled in. Making the cache_nice_tries ignore failed new_idle balance seems to make better sense. With that only the failed load balance in periodic load balance gets accounted and the rate of accumulation of cache_nice_tries will not depend on idle entry/exit (short running sleep-wakeup kind of tasks). This reduces movement of cache_hot tasks. schedstat diff (after-before) excerpt from a workload that has frequent and short wakeup-idle pattern (:2 in cpu col below refers to NEWIDLE idx) This snapshot was across ~400 seconds. Without this change: domainstats: domain0 cpu cnt bln fld imb gain hgain nobusyq nobusyg 0:2 306487 219575 73167 110069413 44583 19070 1172 218403 1:2 292139 194853 81421 120893383 50745 21902 1259 193594 2:2 283166 174607 91359 129699642 54931 23688 1287 173320 3:2 273998 161788 93991 132757146 57122 24351 1366 160422 4:2 289851 215692 62190 83398383 36377 13680 851 214841 5:2 316312 222146 77605 117582154 49948 20281 988 221158 6:2 297172 195596 83623 122133390 52801 21301 929 194667 7:2 283391 178078 86378 126622761 55122 22239 928 177150 8:2 297655 210359 72995 110246694 45798 19777 1125 209234 9:2 297357 202011 79363 119753474 50953 22088 1089 200922 10:2 278797 178703 83180 122514385 52969 22726 1128 177575 11:2 272661 167669 86978 127342327 55857 24342 1195 166474 12:2 293039 204031 73211 110282059 47285 19651 948 203083 13:2 289502 196762 76803 114712942 49339 20547 1016 195746 14:2 264446 169609 78292 115715605 50459 21017 982 168627 15:2 260968 163660 80142 116811793 51483 21281 1064 162596 With this change: domainstats: domain0 cpu cnt bln fld imb gain hgain nobusyq nobusyg 0:2 272347 187380 77455 105420270 24975 1 953 186427 1:2 267276 172360 86234 116242264 28087 6 1028 171332 2:2 259769 156777 93281 123243134 30555 1 1043 155734 3:2 250870 143129 97627 127370868 32026 6 1188 141941 4:2 248422 177116 64096 78261112 22202 2 757 176359 5:2 275595 180683 84950 116075022 29400 6 778 179905 6:2 262418 162609 88944 119256898 31056 4 817 161792 7:2 252204 147946 92646 122388300 32879 4 824 147122 8:2 262335 172239 81631 110477214 26599 4 864 171375 9:2 261563 164775 88016 117203621 28331 3 849 163926 10:2 243389 140949 93379 121353071 29585 2 909 140040 11:2 242795 134651 98310 124768957 30895 2 1016 133635 12:2 255234 166622 79843 104696912 26483 4 746 165876 13:2 244944 151595 83855 109808099 27787 3 801 150794 14:2 241301 140982 89935 116954383 30403 6 845 140137 15:2 232271 128564 92821 119185207 31207 4 1416 127148 Signed-off-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra LKML-Reference: <1284167957-3675-1-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar commit cf84fd96323633be7d437e1de4505fc82ff2c11a Merge: 31915ab b30a3f6 Author: Ingo Molnar Date: Tue Sep 21 13:56:43 2010 +0200 Merge commit 'v2.6.36-rc5' into sched/core Merge reason: Pick up the latest fixes in -rc5. Signed-off-by: Ingo Molnar commit 41945f6ccf1e86f87fddf6b32db9cf431c05fb54 Author: Peter Zijlstra Date: Thu Sep 16 19:17:24 2010 +0200 perf: Avoid RCU vs preemption assumptions The per-pmu per-cpu context patch converted things from get_cpu_var() to this_cpu_ptr(), but that only works if rcu_read_lock() actually disables preemption, and since there is no such guarantee, we need to fix that. Use the newly introduced {get,put}_cpu_ptr(). Signed-off-by: Peter Zijlstra Cc: Tejun Heo LKML-Reference: <20100917093009.308453028@chello.nl> Signed-off-by: Ingo Molnar commit 8b8e2ec1eeca7f6941bc81cefc9663018d6ceb57 Author: Peter Zijlstra Date: Thu Sep 16 19:21:28 2010 +0200 percpu: Add {get,put}_cpu_ptr These are similar to {get,put}_cpu_var() except for dynamically allocated per-cpu memory. Signed-off-by: Peter Zijlstra Acked-by: Tejun Heo LKML-Reference: <20100917093009.252867712@chello.nl> Signed-off-by: Ingo Molnar commit 7ed569206ebe7467b9c912b857ec46cf1c361111 Merge: e9d2b06 b30a3f6 Author: Ingo Molnar Date: Tue Sep 21 13:55:04 2010 +0200 Merge commit 'v2.6.36-rc5' into perf/core Merge reason: Pick up the latest fixes in -rc5. Signed-off-by: Ingo Molnar commit a6b17b4367ed5d9bac94bc87d1489de3847fce98 Author: Chris Wilson Date: Tue Sep 21 12:34:25 2010 +0100 drm/i915: Use the correct DPB GMBUS port for GPIOE Signed-off-by: Chris Wilson commit cdd59983118c02d9c5ba0c116ded1faef47ec452 Author: Chris Wilson Date: Wed Sep 8 16:30:16 2010 +0100 drm/i915: Drop crtc->fb pin on disable. In order to handle disable_functions() where the framebuffer is decoupled from the crtc we need to unpin the fb in order to prevent a leak. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=29857 Reported-by: Sitsofe Wheeler Signed-off-by: Chris Wilson commit 6eecba33f2fc24544073631dc1b23b7a312e644b Author: Chris Wilson Date: Wed Sep 8 09:45:11 2010 +0100 drm/i915: Disable output polling across suspend & resume Suspending (especially hibernating) may take a finite amount of time, during which a hotplug event may trigger and we will attempt to handle it with inconsistent state. Disable hotplug polling around suspend and resume. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30070 Reported-by: Rui Tiago Matos Signed-off-by: Chris Wilson commit ae83dd5c7d80e0f9063739a18e270da7207a91e3 Author: Daniel Vetter Date: Sun Sep 12 17:11:15 2010 +0200 intel-gtt add a cleanup function for chipset specific stuff The old code didn't clean up the i830 chipset flush page. And it looks nicer. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 22533b494ff6a812b3e97248cc6c062858396182 Author: Daniel Vetter Date: Sun Sep 12 16:38:55 2010 +0200 intel-gtt: store the dma mask size in intel_gtt_driver Storing this explicitly makes for clearer code and hopefully less further confusion. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 0af9e92e779602bdd6d4d19acf63b4802fab91b6 Author: Daniel Vetter Date: Sun Sep 12 14:04:03 2010 +0200 intel-gtt: clean up gtt size reporting Consolidate everything in intel-gtt.c and also kill the export of intel_max_stolen. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit aaa62591199162e6496b4f47cac4f5923bc571d1 Author: Daniel Vetter Date: Sun Sep 12 11:07:15 2010 +0200 agp: kill agp_(unmap|map)_memory DMA remapping was only used by the intel-gtt driver. With that code now folded into the driver, kill the agp generic support for it. Cc: Dave Airlie Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit e9b1cc81c2222108d866323c51f482dd6db8d689 Author: Daniel Vetter Date: Sun Sep 12 00:29:26 2010 +0200 intel-gtt: consolidate fake_agp driver structs They're now all the same. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 1b263f246639c4777fbf6cfda932ecd1ea4bebb9 Author: Daniel Vetter Date: Sun Sep 12 00:27:24 2010 +0200 intel-gtt: move chipset flush to the gtt driver struct This is the last differentiator between the different fake agp drivers. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit bdd30729b68d708c970125aab363931134698f2d Author: Daniel Vetter Date: Sun Sep 12 12:34:44 2010 +0200 intel-gtt: kill mask_memory functions That indirection mess can now go. Add a dummy i81x gtt_driver to avoid a NULL pointer check. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 90cb149e1a85f8296daa1989c055db18fbf4ea88 Author: Daniel Vetter Date: Sat Sep 11 23:55:20 2010 +0200 intel-gtt: generic (insert|remove)_entries for sandybridge Like before, but now with the added bonus of being able to kill quite a bit of no-longer userful code (the old dmar support stuff). Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 450f2b3d51025a1749b694ee13f0e4e23ed58750 Author: Daniel Vetter Date: Sat Sep 11 23:48:25 2010 +0200 intel-gtt: generic (insert|remove)_entries for g33/i965 Like for the i915. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit fefaa70f0c7fa406492039e35b69b83fc13e163a Author: Daniel Vetter Date: Sat Sep 11 22:12:11 2010 +0200 intel-gtt: generic (insert|remove)_entries for i915 Beef up the generic version to support dmar. Otherwise like for the i830. v2: Don't try to DMA remap on resume for already remapped pages. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 5cbecafce4ee8ab73c194911e01a77a7a07f034e Author: Daniel Vetter Date: Sat Sep 11 21:31:04 2010 +0200 intel-gtt: generic (insert|remove)_entries for i830 Well, not all too generic because it does not yet support dmar. Add a new function check_flags to ensure that non-gem code does not try to screw us over. v2: Beautify i830_check_flags with an idea from Chris Wilson. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit a87aa5cc0074fea871c8c6d2660d9b6cd7699d3d Author: Daniel Vetter Date: Thu Sep 9 18:17:34 2010 +0200 agp: kill agp_(map|unmap)_page Only used to remap the scratch page. Now that intel-gtt does this itself, kill the support code. Cc: Dave Airlie Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit d0b6dc4b930e3be9c02cc9638f02e14d271d5f0d Author: Daniel Vetter Date: Thu Sep 9 18:11:41 2010 +0200 intel-gtt: drop agp scratch page support stuff intel-gtt.c now handles the scratch page itself, so drop all that was just there to support it. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 97ef1bdd0bc75bce7b2058e9c432b6c277dcf4d3 Author: Daniel Vetter Date: Thu Sep 9 17:52:20 2010 +0200 intel-gtt: introduce pte write function for gen6 Like for i830. intel_i9xx_configure is now unused, so kill it. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit a6963596a13e62f8e65b1cf3403a330ff2db407c Author: Daniel Vetter Date: Sat Sep 11 14:01:43 2010 +0200 intel-gtt: introduce pte write function for g33/i965/gm45 Like for the i830. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 351bb278d2fd2df93526c15f37500070347328b4 Author: Daniel Vetter Date: Tue Sep 7 22:41:04 2010 +0200 intel-gtt: introduce pte write function for i8xx/i915/i945 And put it to use in the gtt configuration code that writes the scratch page addr in all gtt ptes. This makes intel_i830_configure generic, hence rename it to intel_fake_agp_configure. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 0e87d2b06cb4651c874d0b208d31c73addbd638b Author: Daniel Vetter Date: Tue Sep 7 22:11:15 2010 +0200 intel-gtt: initialize our own scratch page The intel gtt fake agp driver is the only agp driver to use dma address remapping. So it makes sense to fold this code back into the only user (and thus reduce the reliance on the agp code). This patch does the first step by initializing (and remapping) the scratch page in a new function intel_gtt_setup_scratch_page. Unfortunately intel_gtt_cleanup had to move to avoid a forward declaration. The new scratch page is not yet used, though. v2: Refactor out scratch page teardown. Suggested by Chris Wilson on irc. This makes it clear what's going on and results in a nice symmetry between setup and teardown. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit f13d3f7311add99d1f874a6b67d56426afa35664 Author: Chris Wilson Date: Mon Sep 20 17:36:15 2010 +0100 drm/i915: Track pinned objects Keep a list of pinned objects and display it via debugfs. Now all objects that exist in the GTT are always tracked on one of the active, flushing, inactive or pinned lists. Signed-off-by: Chris Wilson commit 265db9585e570814d2f7aca109c5563bcde9c948 Author: Chris Wilson Date: Mon Sep 20 15:41:01 2010 +0100 drm/i915: Drain any pending flips on the fb prior to unpinning If we have queued a page flip on the current fb and then request a mode change, wait until the page flip completes before performing the new request. Signed-off-by: Chris Wilson commit c78ec30bba52754b9f21a899eac2e2f5a7486116 Author: Chris Wilson Date: Mon Sep 20 12:50:23 2010 +0100 drm/i915: Merge ring flushing and lazy requests Signed-off-by: Chris Wilson commit 53640e1d07fb7dd5d14300dd94f4718eca33348e Author: Chris Wilson Date: Mon Sep 20 11:40:50 2010 +0100 drm/i915: Track gpu fence usage Track if the gpu requires the fence for the execution of a batch buffer and so only wait upon the retirement of the object's last rendering seqno if the fence is in use by the GPU. Signed-off-by: Chris Wilson commit ab6f8e325083f138ce5da8417baf48887d62da3c Author: Chris Wilson Date: Sun Sep 19 17:53:44 2010 +0100 drm/i915/ringbuffer: whitespace cleanup Signed-off-by: Chris Wilson commit a9db5c8fdd8c6e6e966897e05e2c2acd99bcdb6e Author: Daniel Vetter Date: Mon Aug 2 17:22:48 2010 +0200 drm/i915: drop alignment ringbuffer parameter Always PAGE_SIZE and only complicates the code. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit fa7ed4d206890fd325eddcc8d27d6d1e89c5d4bd Author: Daniel Vetter Date: Mon Aug 2 17:08:41 2010 +0200 drm/i915: don't explicitly initialize ringbuffer members to zero The compiler happily does that for us. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 7f2ab69913135f0377a1dfc1da5695b64107d3ca Author: Daniel Vetter Date: Mon Aug 2 17:06:59 2010 +0200 drm/i915: use new macros to access the ring ctl register Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 570ef608591aa1c7f7cb615c2d33b30246179da1 Author: Daniel Vetter Date: Mon Aug 2 17:06:23 2010 +0200 drm/i915: use new macros to access the ring head register Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 6c0e1c556ee659cd8c976cd175c0b70e209acb92 Author: Daniel Vetter Date: Mon Aug 2 16:33:33 2010 +0200 drm/i915: use new macros to access the ring start register Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 870e86ddc2d110124812b277643ed0f2767148ee Author: Daniel Vetter Date: Mon Aug 2 16:29:44 2010 +0200 drm/i915: use new macros to access the ring tail register Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit 333e9fe94d00ce8c334d91099449b9948bf76b92 Author: Daniel Vetter Date: Mon Aug 2 16:24:01 2010 +0200 drm/i915: add relative ring register macros Documentation explicitly mentions that the ring registers are designed to have the same offsets relative to a base registers. Use this to fight the code beaurocratic in intel_ringbuffer.c. No code changes in this patch, just the new definitions. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit b8aea0c8003927f13e257c7ff370b6b73dbe2a5a Author: Daniel Vetter Date: Mon Aug 2 15:28:30 2010 +0200 drm/i915: kill duplicated/unneeded register defines This looks like a copy-paste remnant from the i810. All the regs that are actually used are already defined somewhere else in i915_reg.h! Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson commit c7f9f9a8b89bb4d53edc030f5b61ae11d6859721 Author: Chris Wilson Date: Sun Sep 19 15:05:13 2010 +0100 drm/i915: Use ring->flush() instead of MI_FLUSH Use the ring abstraction to hide the details of having choose the appropriate flushing method. Signed-off-by: Chris Wilson commit e070868ef2101ce548d4fbb25edfd301e59fb719 Author: Chris Wilson Date: Sun Sep 19 14:46:27 2010 +0100 drm/i915/ringbuffer: Mark the initialisation structs as constant. Signed-off-by: Chris Wilson commit 881f47b64723f4d697084533491a489e3e74b10f Author: Xiang, Haihao Date: Sun Sep 19 14:40:43 2010 +0100 drm/i915: add a new BSD ring buffer for Sandybridge This ring buffer is used for video decoding/encoding on Sandybridge. Signed-off-by: Xiang, Haihao Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson commit a3f07cd53e31c1c27364e56266a541b9467c1895 Author: Chris Wilson Date: Sun Sep 19 14:36:46 2010 +0100 drm/i915/ringbuffer: Implement advance using set_tail As noted by Zhenyu, we can now simply replace the existing advance hook by calling the new set_tail function pointer directly. Signed-off-by: Chris Wilson commit d46eefa29724b1be0e8e90a3a51a190b912ebfab Author: Xiang, Haihao Date: Thu Sep 16 10:43:12 2010 +0800 drm/i915: add set_tail hook in struct intel_ring_buffer This is prepared for video codec ring buffer on Sandybridge. It is needed to read/write more than one register to move the tail pointer of the video codec ring on Sandybridge. Signed-off-by: Xiang, Haihao Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson commit 5c1143bbecf50184ff7cad6287b4e0993bacbd9f Author: Xiang, Haihao Date: Thu Sep 16 10:43:11 2010 +0800 drm/i915: do not export the instances of struct intel_ring_buffer Introduce intel_init_render_ring_buffer(), intel_init_bsd_ring_buffer for ring initialization. Signed-off-by: Xiang, Haihao Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson commit 92f49d9cec0052e09d938ac913d8e9ab432a0584 Author: Xiang, Haihao Date: Thu Sep 16 10:43:10 2010 +0800 drm/i915: fix HAS_BSD with a device info flag Signed-off-by: Xiang, Haihao Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson commit f803aa5532d14efc463abbeae10faa115c457a07 Author: Chris Wilson Date: Sun Sep 19 12:38:26 2010 +0100 drm/i915: Clean up bo lists on all hung gpus Previously we only tidied up the active bo lists for chipsets were we would attempt to reset the GPU. However, this action is necessary for the system to continue and reclaim the dead bo for all chipsets. Pointed out, in passing, by Owain Ainsworth. Signed-off-by: Chris Wilson commit 77f01230223a08792f5320ebba27af9cbb81b0cf Author: Chris Wilson Date: Sun Sep 19 12:31:36 2010 +0100 drm/i915: Clear GPU read domains on reset Clear the GPU read domain for the inactive objects on a reset so that they are correctly invalidated on reuse. Signed-off-by: Chris Wilson commit 9375e446e7f43be9a7c21e246cee35ea912532ec Author: Chris Wilson Date: Sun Sep 19 12:21:28 2010 +0100 drm/i915: Clear flushing lists on GPU reset Owain Ainsworth noticed that the reset code failed to clear the flushing list leaving the driver in an inconsistent state following a hung GPU. Signed-off-by: Chris Wilson commit 9220434a8768902cd9cf248709972678b74aa8c1 Author: Chris Wilson Date: Sat Sep 18 11:02:01 2010 +0100 drm/i915: Only emit a flush request on the active ring. When flushing the GPU domains,we emit a flush on *both* rings, even though they share a unified cache. Only emit the flush on the currently active ring. Signed-off-by: Chris Wilson commit b84d5f0c22914d37d709add54c66e741c404fa56 Author: Chris Wilson Date: Sat Sep 18 01:38:04 2010 +0100 drm/i915: Inline i915_gem_ring_retire_request() Change the semantics to retire any buffer older than the current seqno rather than repeatedly calling calling the function to retire the buffer at the head of the list matching the request seqno. Whilst this should have no semantic impact on the implementation, Daniel was wondering if there was a bug where we might miss a retirement and so end up with a continually growing active list. Signed-off-by: Chris Wilson commit 82690bba375586ab93d74265710c2fd5788c8178 Author: Chris Wilson Date: Sat Sep 18 01:37:30 2010 +0100 drm/i915/debug: Dump BSD ring buffers to debugfs Signed-off-by: Chris Wilson commit 9fd981413e005827e7363a37fd0b61f9d0928034 Author: Chris Wilson Date: Sat Sep 18 08:08:06 2010 +0100 drm/i915: After a reset perform a forced modeset On more recent chipsets, restoring the display is not as simple as writing a few registers, so force a full modeset of the current configuration in order to retrain the display link. Signed-off-by: Chris Wilson commit 0573ed4a947d7a563db197511611d8a9039feb41 Author: Kenneth Graunke Date: Sat Sep 11 03:17:19 2010 -0700 drm/i915: Add support for GPU soft reset on Ironlake. Ironlake's graphics reset register has to be accessed via the MCHBAR, rather than via PCI config space, which requires some refactoring. Signed-off-by: Kenneth Graunke Signed-off-by: Chris Wilson commit eeccdcac07c1e21d25e7d3cf70030059a3017f0c Author: Kenneth Graunke Date: Sat Sep 11 01:24:50 2010 -0700 drm/i915: Rename graphics reset registers. The graphics domains are listed as GRDOM in the documentation, and the GDRST PCI config register (0xc0) is only valid on I965 and GM45. Newer chips (like Sandy Bridge) have a different GDRST. Signed-off-by: Kenneth Graunke Signed-off-by: Chris Wilson commit f49f0586191fe16140410db0a46d43bdc690d6af Author: Kenneth Graunke Date: Sat Sep 11 01:19:14 2010 -0700 drm/i915: Actually set the reset bit in i965_reset. Previously, it was only being set if passed GDRST_FULL - but the only caller passed GDRST_RENDER. So the hardware never actually reset. The comments also did not match the code. Instead, just set the reset bit regardless of what flags were passed. The GPU now resets correctly on my GM45. Signed-off-by: Kenneth Graunke Signed-off-by: Chris Wilson commit a6c45cf013a57e32ddae43dd4ac911eb4a3919fd Author: Chris Wilson Date: Fri Sep 17 00:32:17 2010 +0100 drm/i915: INTEL_INFO->gen supercedes i8xx, i9xx, i965g Avoid confusion between i965g meaning broadwater and the gen4+ chipset families. Signed-off-by: Chris Wilson commit 219adae138513bae20b256f1946b9cb3b75ca05c Author: Chris Wilson Date: Thu Sep 16 23:05:10 2010 +0100 drm/i915: Cache LVDS EDID We assume that the panel is permenantly connected and that the EDID data is consistent from boot, so simply cache the whole EDID for the panel. Signed-off-by: Chris Wilson commit e9e5f8e8d373e72f5c39dafde1ce110fc7082118 Merge: f899fc6 db8c076 Author: Chris Wilson Date: Tue Sep 21 11:19:32 2010 +0100 Merge branch 'drm-intel-fixes' into HEAD Conflicts: drivers/char/agp/intel-agp.c drivers/gpu/drm/i915/intel_crt.c commit 536bb20b45dee3f9b77b0d250f8ed0733a5cb025 Author: Gerrit Renker Date: Sun Sep 19 20:14:23 2010 +0200 dccp ccid-3: Remove redundant 'options_received' struct The `options_received' struct is redundant, since it re-duplicates the existing `p' and `x_recv' fields. This patch removes the sub-struct and migrates the format conversion operations to ccid3_hc_tx_parse_options(). Signed-off-by: Gerrit Renker commit 792e6d3389061ad449429b9ba228eb758c247ea0 Author: Gerrit Renker Date: Sun Sep 19 20:10:52 2010 +0200 dccp tfrc/ccid-3: computing the loss rate from the Loss Event Rate This adds a function to take care of the following, separate cases occurring in the computation of the Loss Rate p: * 1/(2^32-1) is mapped into 0% as per RFC 4342, 8.5; * 1/0 is mapped into 100%, the maximum; * to avoid that p = 1/x is rounded down to 0 when x is very large, since this means accidentally re-entering slow-start indicated by p == 0, the minimum resolution value of p is now returned instead; * a bug in ccid3_hc_rx_getsockopt is fixed: 1/0 was mapped into ~0U. Signed-off-by: Gerrit Renker commit 80763dfbac4ed1e6dfe6ec08ef748e0e9aec3260 Author: Gerrit Renker Date: Sun Sep 19 20:08:24 2010 +0200 dccp ccid-3: remove dead states This patch is thanks to an investigation by Leandro Sales de Melo and his colleagues. They worked out two state diagrams which highlight the fact that the xxx_TERM states in CCID-3/4 are in fact not necessary. And this can be confirmed by in turn looking at the code: the xxx_TERM states are only ever set in ccid3_hc_{rx,tx}_exit(): when CCID-3 sets the state to xxx_TERM, it is at a time where no more processing should be going on, hence it is not necessary to introduce a dedicated exit state - this is already implied by unloading the CCID. Signed-off-by: Gerrit Renker commit a18213d1d2a469956845b437f5d1d0401ab22e8b Author: Gerrit Renker Date: Sun Sep 19 20:08:00 2010 +0200 dccp: Replace magic CCID-specific numbers by symbolic constants The constants DCCPO_{MIN,MAX}_CCID_SPECIFIC are nowhere used in the code, but instead for the CCID-specific options numbers are used. This patch unifies the use of CCID-specific option numbers, by adding symbolic names reflecting the definitions in RFC 4340, 10.3. Signed-off-by: Gerrit Renker commit 4874c131d79695e3d372042781a408a1a8a762d8 Author: Gerrit Renker Date: Sun Sep 19 20:06:50 2010 +0200 dccp: Add packet type information to CCID-specific option parsing This 1. adds packet type information to ccid_hc_{rx,tx}_parse_options(). This is necessary, since table 3 in RFC 4340, 5.8 leaves it to the CCIDs to state which options may (not) appear on what packet type. 2. adds such a check for CCID-3's {Loss Event, Receive} Rate as specified in RFC 4340 8.3 ("Receive Rate options MUST NOT be sent on DCCP-Data packets") and 8.5 ("Loss Event Rate options MUST NOT be sent on DCCP-Data packets"). 3. removes an unused argument `idx' from ccid_hc_{rx,tx}_parse_options(). This is also no longer necessary, since the CCID-specific option-parsing routines are passed every single parameter of the type-length-value option encoding. Signed-off-by: Gerrit Renker commit a800c7cc5380fbb6b4f2f3bd89f6776eb3da2242 Author: Thomas Gleixner Date: Tue Sep 21 11:33:54 2010 +0200 MAINTAINERS: Add IRQ subsystem I do not expect, that this will help anything, but at least it's going to remove the lame excuse about the missing maintainer entry. Signed-off-by: Thomas Gleixner commit 265a02478db5217eda8063004ded1ef0a461c240 Author: Takashi Iwai Date: Tue Sep 21 11:26:21 2010 +0200 ALSA: hda - Check invalid NIDs in alc_init_jacks() The headphone and external-mic pin NIDs can be null, and the jack input elements should be skipped in such a case. Signed-off-by: Takashi Iwai commit 13f808cf8ddb5f3ca0f0271473c6c02a4b32580b Author: Mark Brown Date: Mon Sep 20 19:17:44 2010 +0100 ASoC: Fix merge issue with WM8962 control addition Let's not add the core controls twice. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 082100dc9210449dac8ad8c7d20180cc1a0c319d Author: Mark Brown Date: Mon Sep 20 19:03:28 2010 +0100 ASoC: Report error code when failing to add controls Helps with diagnostics. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 17cc26cd8c7ef84a614a2218753ced2773fd787b Author: Mark Brown Date: Mon Sep 20 17:54:57 2010 +0100 ASoC: Prototype s3c64xx_i2s_get_clock() So machine drivers can see the declaration. Signed-off-by: Mark Brown Acked-by: Jassi Brar Acked-by: Liam Girdwood commit 9e5341b92d1d2dde11691b394721b45b36416bef Author: Takashi Iwai Date: Tue Sep 21 09:57:06 2010 +0200 ALSA: hda - Introduce hda_call_check_power_status() helper Replace the explicit ifdef check and call of check_power_status ops with a new helper function, hda_call_check_power_status(). Signed-off-by: Takashi Iwai commit 9396d3174b761685d6fefb1103e66b96a2e5db6d Author: Jerry Zhou Date: Tue Sep 21 14:44:51 2010 +0800 ALSA: hdmi - fix surround41 channel mapping Channel 2 and channel 3 were all wrongly mapped to HDMI slot 4. This shows up as a bug that one channel is "lost" when playing in surround41 mode. Signed-off-by: Jerry Zhou Signed-off-by: Wu Fengguang Signed-off-by: Takashi Iwai commit 53d7d69d8ffdfa60c5b66cc2e9ee0774aaaef5c0 Author: Wu Fengguang Date: Tue Sep 21 14:25:49 2010 +0800 ALSA: hdmi - support infoframe for DisplayPort DisplayPort works mostly in the same way as HDMI, except that it expects a slightly different audio infoframe format. Citations from "HDA036-A: Display Port Support and HDMI Miscellaneous Corrections": The HDMI specification defines a data island packet with a header of 4 bytes (3 bytes content + 1 byte ECC) and packet body of 32 bytes (28 bytes content and 4 bytes ECC). Display Port specification on the other hand defines a data island packet (secondary data packet) with header of 4 bytes protected by 4 bytes of parity, and data of theoretically up to 1024 bytes with each 16 bytes chunk of data protected by 4 bytes of parity. Note that the ECC or parity bytes are not present in the DIP content populated by software and are hardware generated. It tests DP connection based on the ELD conn_type field, which will be set by the graphics driver and can be overriden manually by users through the /proc/asound/card0/eld* interface. The DP infoframe is tested OK on Intel SandyBridge/CougarPoint platform. Signed-off-by: Wu Fengguang Signed-off-by: Takashi Iwai commit c2b9ff24a0df649d4d40947878b5b5ac39c7299e Author: H. Peter Anvin Date: Mon Sep 20 18:01:46 2010 -0700 x86, cpu: Re-run get_cpu_cap() after adjusting the CPUID level At least on Intel, adjusting the max CPUID level can expose new CPUID features, so we need to re-run get_cpu_cap() after changing the CPUID level. Signed-off-by: H. Peter Anvin commit c7fcf25525b3cd6559f882837bfa76d04a80f8a6 Author: Markus Grabner Date: Fri Sep 17 23:33:25 2010 +0200 Staging: line6: workaround for null pointer bug Signed-off-by: Markus Grabner Signed-off-by: Greg Kroah-Hartman commit 340362abb9544043d41e047c63d86dffe990a48c Author: Vasiliy Kulikov Date: Sun Sep 19 16:54:40 2010 +0400 staging: spectra: off by one g_pBlockTable has only DeviceInfo.wDataBlockNum elements. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit b1f5f54e91e30ecd5ac670edc8bb2c0ee5990d0f Author: Vasiliy Kulikov Date: Sun Sep 19 11:36:23 2010 +0400 staging: keucr: check kmalloc() return value kmalloc() may fail, if so return error code. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit 83ef41f0858b48cce4f8ca23f674ec55d50bf47d Author: Pavan Savoy Date: Fri Sep 17 12:06:11 2010 -0400 staging: ti-st: mv headers to ti_wilink_st move all the header information to ti_wilink_st.h. This header would then not only serve the local modules like the st_core.c, st_kim.c and st_ll.c but also the external modules/protocol drivers that are dependent on the shared transport driver. Modify the source files to include the new header ti_wilink_st.h, Signed-off-by: Pavan Savoy Signed-off-by: Greg Kroah-Hartman commit 5d702ea3191ea8ab3efd3f203e88dba1d8016eba Author: Pavan Savoy Date: Fri Sep 17 12:06:10 2010 -0400 staging: ti-st: set right the data types replace uint and family by a much more proper u8/u16 types. This is required specifically for data members of structures coming in from the chip and data members parsed from the binary firmware file. Signed-off-by: Pavan Savoy Signed-off-by: Greg Kroah-Hartman commit 9b906a33e0a459ea4d51c8d243154c6998be2a1d Author: Vipin Mehta Date: Fri Sep 17 09:55:15 2010 -0700 staging: ath6kl: Fixing a race condition during initialization The commit fixes a race condition in the initialization portion of the driver. The problem was observed while testing with the kernel in the staging-next tree. The wait on the ready event is signalled prematurely before setting the arVersion.wlan_ver and arVersion.abi_ver. The code waiting on this semaphore checks for the validity of these values and hence may proceed with an un-updated values of these fields. The wakeup signal is now sent after these values are set. Signed-off-by: Vipin Mehta Signed-off-by: Greg Kroah-Hartman commit 103281df0b7fec07872ef033666a1707b5755b9c Author: Vipin Mehta Date: Fri Sep 17 18:14:33 2010 -0700 staging: ath6kl: Fixing a compile error The commit fixes a compilation error that was encountered while using a specific kernel configuration file. The problem was the use of some functions defined in without including the header file explicitly. It was probably working before because of the dependency getting implicitly satisfied via some other header file. Reported-by: Randy Dunlap Signed-off-by: Vipin Mehta Signed-off-by: Greg Kroah-Hartman commit 86fc4c897e3e9ebcf6449be4fc2436abfe0473a2 Author: Vipin Mehta Date: Fri Sep 17 18:26:03 2010 -0700 staging: ath6kl: Removing duplicate includes Eliminating the inclusion of the same header file more than once. The files being removed are already included by osapi_linux.h. Reported-by: Randy Dunlap Signed-off-by: Vipin Mehta Signed-off-by: Greg Kroah-Hartman commit 8522e70b44021d1cc44de1f6c491ac21cc8f4f3d Author: Maurice Dawson Date: Thu Sep 16 20:10:49 2010 +0100 Staging: comedi: fix printk() coding style issue in adl_pci9111.c This is a patch to the adl_pci9111.c file that fixes all, printk() should include KERN-facility level, warnings found by the checkpatch.pl tool Signed-off-by: Maurice Dawson Signed-off-by: Greg Kroah-Hartman commit 4f10d883be0238f81c3d14aa8daa0cd8839eae1d Author: Charles Clément Date: Fri Sep 17 11:46:29 2010 +0200 Staging: vt6655: remove unused update_BssList definition Signed-off-by: Charles Clément Signed-off-by: Greg Kroah-Hartman commit 037dafa8673dbe71c64be7d1021b85c6692a6f7d Author: Marek Lindner Date: Sat Sep 18 21:01:22 2010 +0200 Staging: batman-adv: Introduce update_primary_addr to update mac address set_primary_if is currently misused to update the mac address in vis packets. This unneeded and introduces overhead due to other operations which must be done when updating the primary interface. Signed-off-by: Marek Lindner Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 7e8158b341b2b043047b6f570c343fd9b0efd9c9 Author: Sven Eckelmann Date: Sat Sep 18 21:01:21 2010 +0200 Staging: batman-adv: Track references of batman_if in set_primary_if set_primary_if exchanges the current primary interfaces with a new one. This is a new reference and thus we have to count it and decrease the count of the old primary interface. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 399fb5b445370ddcc93221e339d02736f55b9bb8 Author: Sven Eckelmann Date: Sat Sep 18 21:01:20 2010 +0200 Staging: batman-adv: count batman_if list queries as reference The return of get_batman_if_by_netdev and get_active_batman_if leaks a pointer from the rcu protected list of interfaces. We must protect it to prevent a too early release of the memory. Those functions must increase the reference counter before rcu_read_unlock or it may be to late to prevent a free. hardif_add_interface must also increase the reference count for the returned batman_if to make the behaviour consistent. Reported-by: Paul E. McKenney Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 47f621dddc0b5ce3be4592a58e5f73707a83ad41 Author: Sven Eckelmann Date: Sat Sep 18 21:01:19 2010 +0200 Staging: batman-adv: Use refcnt to track usage count of batman_if get_batman_if_by_netdev and get_active_batman_if may leak data from the rcu protected list of interfaces. The rcu protected list of all gateway nodes leaks the actual data outside the read-side critical area. This is not valid as we may free the data using a call_rcu created callback after we unlock using rcu_read_unlock. A workaround is to provide a reference count to be sure that the memory isn't freed to early. It is currently only to implement the already existing functionality and doesn't provide the full tracking of all usage cases. Additionally, we must hardif_hold inside the rcu_read_lock()..rcu_read_unlock() before we attach to the structure which "leaks" it. When another function now removed it from its usage context (primary_if, usage on stack, ...) then we must hardif_put it. If it is decremented to zero then we can issue the call_rcu to the freeing function. So "put" is not allowed inside an rcu_read_lock. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 16f9530e99f5eb35dd1adafbae854dd94f8d3751 Author: Sven Eckelmann Date: Sat Sep 18 21:01:18 2010 +0200 Staging: batman-adv: Use synchronize_rcu instead of call_rcu It is recommended [1] to use synchronize_rcu to simplify the code - especially when otherwise extra locking is needed to protect other code from picking stale elements. It also protects us for emitting to many callbacks which may results in OOM conditions. The only reason not to use it, would be in performance critical sections or when we are not allowed to block. [1] Documentation/RCU/checklist.txt Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 952c699c06f562b07dba4b1f91dfc02de928545d Author: Sven Eckelmann Date: Sat Sep 18 21:01:17 2010 +0200 Staging: batman-adv: Remove unneeded rcu_read_lock Regions which do not use rcu functions don't need to protected by rcu_read_lock. If we want to protect data from being freed than it must be covered by the same read-side critical section or otherwise the grace period may already ended and freed the memory before we called rcu_read_lock again. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 2250840111b362a30e35ce52770bde3692e402b2 Author: Sven Eckelmann Date: Sat Sep 18 21:01:16 2010 +0200 Staging: batman-adv: Always protect list_for_each_entry_rcu with RCU receive_bat_packet is not called with rcu_read_lock so we must ensure by ourself that we protect list_for_each_entry_rcu using the correct RCU locks. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit af2ac7bfec4176cad5e04402d116b5242d759bf8 Author: Sven Eckelmann Date: Sat Sep 18 21:01:15 2010 +0200 Staging: batman-adv: Introduce if_list_lock to protect if_list The update critical sections of if_list must be protected by a locking primitive other than RCU. The iterator must also be protected by the chosen locking mechanism. The rtnl_lock in hardif_remove_interfaces must also be moved outside the iterator primitive to ensure that we don't deadlock the kernel due to differently nested locks in hardif_remove_interfaces and hard_if_event. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 67c3b705934af93a09a0f369346c2561499b73c4 Author: Sven Eckelmann Date: Sat Sep 18 21:01:14 2010 +0200 Staging: batman-adv: wait for call_rcu before unloading module synchronize_rcu respective synchronize_net only waits for the rcu grace period to elapse and we may fail to finish the calls which were made to call_rcu in that time. In result the module could be unloaded during the execution of the RCU callbacks. rcu_barrier[1] will now wait for all outstanding RCU callbacks to finish before continuing. [1] Documentation/RCU/rcubarrier.txt Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 2d77bb592f6cabc5ee5322c03ee92b9f96c45f60 Author: Sven Eckelmann Date: Sat Sep 18 21:01:13 2010 +0200 Staging: batman-adv: Mark debugfs files as nonseekable We don't allow to seek in the debugfs socket and log files. Thus we should mark the file descriptor as nonseekable. Signed-off-by: Sven Eckelmann Acked-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman commit 93b3d9d57828af928651742086f912af913b6b31 Author: Sven Eckelmann Date: Sat Sep 18 21:01:12 2010 +0200 Staging: batman-adv: Move mailing list address to .org The official mailing list is run on lists.open-mesh.org and it should be avoided to sent them to lists.open-mesh.net to reduce the number of receipents and double posts. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 1612ae996ec16ed358f0e9afacb0a262b1cf97a4 Author: Sven Eckelmann Date: Sat Sep 18 21:01:11 2010 +0200 Staging: batman-adv: checkpatch cleanup of comments checkpatch now detects the start of a comment and warns about usage of multiple spaces at the beginning of a line. We have to replace the ' ' in multiple lines comments by ' * ' to fix it. Checkpatch also wants a comment after a definition of a spinlock_t which describes what it protects. It is currently not possible to add it before the actual struct which includes the spinlock. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 430a8e9a3325e303f092a371b9d2e45a715b26d7 Author: Haiyang Zhang Date: Mon Sep 20 21:07:51 2010 +0000 staging: hv: Remove camel cases of vmbus packet buffer structures Remove camel cases of vmbus packet buffer structures Remove camel cases of: struct VMBUS_CHANNEL_PACKET_PAGE_BUFFER struct VMBUS_CHANNEL_PACKET_MULITPAGE_BUFFER Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 369ae8be423889c2ca1eed00e1eb4f5a91c17771 Author: Andy Shevchenko Date: Fri Sep 17 11:24:46 2010 +0300 staging: octeon: '&pointer[0]' to 'pointer' fix Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit a3cf4b42ce40492b12396ec64e734f84ace3a729 Author: Andy Shevchenko Date: Fri Sep 17 11:24:48 2010 +0300 staging: rt2870: '&pointer[0]' to 'pointer' fix Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit e7cde7b31271155e5fb896a325bea38e9e604806 Author: Andy Shevchenko Date: Fri Sep 17 11:24:50 2010 +0300 staging: vt6655: '&pointer[0]' to 'pointer' fix Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 97d2354518897cfc42740637e6390eaa23e3d206 Author: Andy Shevchenko Date: Fri Sep 17 11:24:44 2010 +0300 staging: ath6kl: '&pointer[0]' to 'pointer' fix Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit b01d467ddd7470b1e9c6ccc68a1279771146abad Author: Andy Shevchenko Date: Fri Sep 17 11:24:45 2010 +0300 staging: cxt1e1: '&pointer[0]' to 'pointer' fix Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit cfd1015a7a6236f4fdc0f8f9f688e38e78ae6d10 Author: Andy Shevchenko Date: Fri Sep 17 11:24:47 2010 +0300 staging: otus: '&pointer[0]' to 'pointer' fix Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit a5ed57a3ec3ebd20eaaad3c1cf36283b2baee531 Author: Andy Shevchenko Date: Fri Sep 17 11:24:49 2010 +0300 staging: rtl8712: '&pointer[0]' to 'pointer' fix Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit db5c53d15bc987bffa22e7e8044447026750f640 Author: Andy Shevchenko Date: Fri Sep 17 11:24:51 2010 +0300 staging: wlags49_h2: '&pointer[0]' to 'pointer' fix Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 1c919d90e157f6656439194d6823c68b81b17fee Author: Andy Shevchenko Date: Fri Sep 17 11:24:43 2010 +0300 staging: rt2860: '&pointer[0]' to 'pointer' fix Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit ce5f68246bf2385d6174856708d0b746dc378f20 Author: H. Peter Anvin Date: Mon Sep 20 13:04:45 2010 -0700 x86, hotplug: In the MWAIT case of play_dead, CLFLUSH the cache line When we're using MWAIT for play_dead, explicitly CLFLUSH the cache line before executing MONITOR. This is a potential workaround for the Xeon 7400 erratum AAI65 after having a spurious wakeup and returning around the loop. "Potential" here because it is not certain that that erratum could actually trigger; however, the CLFLUSH should be harmless. Signed-off-by: H. Peter Anvin Acked-by: Venkatesh Pallipadi Cc: Asit Mallick Cc: Arjan van de Ven Cc: Len Brown commit fa6f2cc77081792e4edca9168420a3422299ef15 Author: Jason Baron Date: Fri Sep 17 11:08:56 2010 -0400 jump label: Make text_poke_early() globally visible Make text_poke_early available outside of alternative.c. The jump label patchset wants to make use of it in order to set up the optimal no-op sequences at run-time. Signed-off-by: Jason Baron LKML-Reference: <04cfddf2ba77bcabfc3e524f1849d871d6a1cf9d.1284733808.git.jbaron@redhat.com> Signed-off-by: Steven Rostedt commit f49aa448561fe9215f43405cac6f31eb86317792 Author: Jason Baron Date: Fri Sep 17 11:08:51 2010 -0400 jump label: Make dynamic no-op selection available outside of ftrace Move Steve's code for finding the best 5-byte no-op from ftrace.c to alternative.c. The idea is that other consumers (in this case jump label) want to make use of that code. Signed-off-by: Jason Baron LKML-Reference: <96259ae74172dcac99c0020c249743c523a92e18.1284733808.git.jbaron@redhat.com> Signed-off-by: Steven Rostedt commit d31f59f31d602e8c3a34ce1f20d1e8fcfe50dd59 Author: Tony Lindgren Date: Mon Sep 20 14:53:38 2010 -0700 omap: Update omap3_defconfig for omap2 We need to enable ARM_ERRATA_411920 for omap2 and remove the omap2 specific defconfigs. Signed-off-by: Tony Lindgren commit 455d4d2dc76471baec0c70daf8ff6c09fc743c24 Author: Santosh Shilimkar Date: Wed Sep 15 22:40:19 2010 +0530 omap: Update and rename common defconfig for omap2plus devices This patch addresses below things - Renaming existing omap3_defconfig which has OMAP2, OMAP3 and OMAP4 builds enabled to more appropriate name 'omap2plus_defconfig' - L1 cache shift is suppose to be 5 on OMAP4 where as it is 6 on previous OMAPs. Keeping it to 5 is safer option for OMAP4 and previous OMAPs. For OMAP3 only build the shift would be still 6 - Enable needed Errata's for OMAP4 to work with DMA based device drivers CONFIG_PL310_ERRATA_588369=y CONFIG_ARM_ERRATA_720789=y - Enable the Micrel ethernet controller CONFIG_KS8851=y CONFIG_KS8851_MLL=y With above three changes, OMAP4 ethernet, mmc etc works reliably. Signed-off-by: Santosh Shilimkar Signed-off-by: Tony Lindgren commit 61e9beafdd6f2b2d27ad5935a2de9c46709b9671 Author: Tony Lindgren Date: Mon Sep 20 14:53:38 2010 -0700 omap: Update omap3_defconfig to work with SMP_ON_UP With the recent changes to core ARM kernel code, we can now boot SMP kernel on UP systems. Update omap3_defconfig to enable SMP. This allows us to remove omap_4430sdp_defconfig. In addition to enabling SMP, we also need to disable some options to make the system boot: - For some reason LOCK_STAT causes tons of WARNING: at mm/percpu-vm.c:320 pcpu_alloc+0x2fc/0x888() so disable it for now. - MUSB init fails for multi-omap, disable it for now. - LOCAL_TIMERS hangs on omap4, disable it for now. Also disable DEBUG_LL as this should be only enabled for debugging. Signed-off-by: Tony Lindgren commit c3083411062106452649e464e55c7b856de0d29b Author: Tony Lindgren Date: Mon Sep 20 14:53:15 2010 -0700 omap: Fix CONFIG_LOCAL_TIMERS initialization for multi-omap Fix CONFIG_LOCAL_TIMERS initialization for multi-omap Signed-off-by: Tony Lindgren Acked-By: Santosh Shilimkar commit 23ac4ae827e6264e21b898f2cd3f601450aa02a6 Author: Andreas Herrmann Date: Fri Sep 17 18:03:43 2010 +0200 x86, k8: Rename k8.[ch] to amd_nb.[ch] and CONFIG_K8_NB to CONFIG_AMD_NB The file names are somehow misleading as the code is not specific to AMD K8 CPUs anymore. The files accomodate code for other AMD CPU northbridges as well. Same is true for the config option which is valid for AMD CPU northbridges in general and not specific to K8. Signed-off-by: Andreas Herrmann LKML-Reference: <20100917160343.GD4958@loge.amd.com> Signed-off-by: H. Peter Anvin commit 9f081ce5da2c8af297a0a7d15a57fb4beeed374b Author: Tony Luck Date: Mon Sep 20 13:15:07 2010 -0700 [IA64] Move local_softirq_pending() definition Ugly #include dependencies. We need to have local_softirq_pending() defined before it gets used in . But provides the definition *after* this #include chain: Signed-off-by: Tony Luck commit 43e3bf203456c4f06bdd6060426976ad2bed9081 Author: Konrad Rzeszutek Wilk Date: Mon Sep 20 13:13:04 2010 -0700 [IA64] iommu: Add a dummy iommu_table.h file in IA64. We don't need a comlex IOMMU dependency list on IA64 so we just define the IOMMU_* macro as a dummy. Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Tony Luck commit d8b33534921796825a839cab222a1888c5e7256e Author: Kuninori Morimoto Date: Fri Sep 17 13:49:05 2010 +0900 ASoC: fsi: merge fsi_data_push/pop to fsi_fifo_data_ctrl Current FSI driver had data push/pop functions. But the main operation of these 2 were very similar. This mean it is possible to merge these to 1 function. Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 5bfb9ad0840b15d9c45d25a05e4ff9ae5eb80508 Author: Kuninori Morimoto Date: Fri Sep 17 13:48:45 2010 +0900 ASoC: fsi: modify variable name to easy to understand Current FSI driver is using data-length / width / number / offset for variables. But it was a very confusing name. This patch rename them to easy to understand, and add new functions for it. Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 5250a5031ee5733c10c7cb371206ed3784918adc Author: Mark Brown Date: Sun Sep 19 16:07:06 2010 +0100 ASoC: Fix WM8978/migor driver name conflict Standardise on 'wm8978' as the name for the CODEC. Reported-by: Guennadi Liakhovetski Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 7d1be0a6789f7d04e5104b1d2873268369eafcc2 Author: Jarkko Nikula Date: Mon Sep 20 10:39:14 2010 +0300 ASoC: tlv320aic3x: Let the codec hit SND_SOC_BIAS_OFF when idle Now codec hits the SND_SOC_BIAS_OFF also when it is idle. This is also the default state after probing and codec is left unconfigured and unpowered by default. Initialization will happen when the bias state changes and aic3x_set_power does power-up and cache sync. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 5a895f8a09218716654fb89e0f876e4e3ca606a8 Author: Jarkko Nikula Date: Mon Sep 20 10:39:13 2010 +0300 ASoC: tlv320aic3x: Use regulator notifiers for optimizing the cache sync There is no need to reset the codec and perform cache sync if none of the supply regulators were not disabled. Patch registers a notifier callback for each supply and callback then sets a flag to indicate when cache sync is required. HW writes are also needless when codec bias is off so cache_only flag is set independently of actual supply regulators state. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 6c1a7d40c2237ff7690ca682336e22777c847ffe Author: Jarkko Nikula Date: Mon Sep 20 10:39:12 2010 +0300 ASoC: tlv320aic3x: Add runtime regulator control to aic3x_set_bias_level Now all the regulators are disabled when entering into SND_SOC_BIAS_OFF and enabled when coming back to SND_SOC_BIAS_STANDBY state. Currently this runtime control happens only with suspend/resume as this patch does not change the default idle behavior. This patch manages all the regulators and reset since it seems that register sync is needed even if only analog supplies AVDD and DRVDD are disabled. This was noted when the system was running with idle behavior changed and IOVDD and DVDD were on. It is not known are all the registers needed to sync or only some subset of them. Therefore patch plays safe and does always full shutdown/power-up. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 2f24111a08d60e6db92ed2867a339ddde2195b88 Author: Jarkko Nikula Date: Mon Sep 20 10:39:11 2010 +0300 ASoC: tlv320aic3x: Move regulator management from i2c to soc domain It will be easier to keep regulator enable/disable calls in sync when dynamic regulator management is added if regulator management is moved from aic3x_i2c_probe/_remove to aic3x_probe/_remove. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit daebbca3ab41031666ee27f991b223d2bc0415e9 Author: Eric Dumazet Date: Mon Sep 20 02:28:59 2010 +0000 qlcnic: dont set skb->truesize skb->truesize is set in core network. Dont change it unless dealing with fragments. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 8990f468ae9010ab0af4be8f51bf7ab833a67202 Author: Eric Dumazet Date: Mon Sep 20 00:12:11 2010 +0000 net: rx_dropped accounting Under load, netif_rx() can drop incoming packets but administrators dont have a chance to spot which device needs some tuning (RPS activation for example) This patch adds rx_dropped accounting in vlans and tunnels. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 0ec33d1f952934ea3251cefc6d108b47818eedd0 Author: Takashi Iwai Date: Mon Sep 20 15:20:52 2010 +0200 ALSA: hda - Refactor ALC269 power-ups/downs in PM callbacks Create a helper function to simplify the code. Also, cleaned up the ifdef SND_HDA_NEEDS_RESUME and CONFIG_SND_HDA_POWER_SAVE. The former is always defined when the latter is set. Signed-off-by: Takashi Iwai commit f3550d1b052a8acf4159b407dbdd1def47f223f9 Author: Takashi Iwai Date: Mon Sep 20 15:09:03 2010 +0200 ALSA: hda - Fix capture widget for ALC269vb and co ALC269vb and other variants don't use the widgets 0x24 but prefer the widget 0x22 instead. We need to fix the input parser. Signed-off-by: Takashi Iwai commit d433a67831ab2c470cc53a3ff9b60f656767be15 Author: Takashi Iwai Date: Mon Sep 20 15:11:54 2010 +0200 ALSA: hda - Optimize the check of ALC269 codec variants Don't call the COEF check for checking ACL269 codec variants at each time in init but remember the type at the initialization. Signed-off-by: Takashi Iwai commit 749ef9f8423054e326f3a246327ed2db4b6d395f Author: Corrado Zoccolo Date: Mon Sep 20 15:24:50 2010 +0200 cfq: improve fsync performance for small files Fsync performance for small files achieved by cfq on high-end disks is lower than what deadline can achieve, due to idling introduced between the sync write happening in process context and the journal commit. Moreover, when competing with a sequential reader, a process writing small files and fsync-ing them is starved. This patch fixes the two problems by: - marking journal commits as WRITE_SYNC, so that they get the REQ_NOIDLE flag set, - force all queues that have REQ_NOIDLE requests to be put in the noidle tree. Having the queue associated to the fsync-ing process and the one associated to journal commits in the noidle tree allows: - switching between them without idling, - fairness vs. competing idling queues, since they will be serviced only after the noidle tree expires its slice. Acked-by: Vivek Goyal Reviewed-by: Jeff Moyer Tested-by: Jeff Moyer Signed-off-by: Corrado Zoccolo Signed-off-by: Jens Axboe commit e1ca7b4ea29707920650d86b22afdb7e94ad5986 Author: Takashi Iwai Date: Mon Sep 20 14:58:57 2010 +0200 ALSA: hda - Fix initialization of multiple output pins for ALC268/269 When multiple pins are assigned to headphones or speakers, they haven't been initialized properly. Signed-off-by: Takashi Iwai commit f6837bbd599c2a4e1f621441f84286434bcc91ae Author: Takashi Iwai Date: Mon Sep 20 14:56:32 2010 +0200 ALSA: hda - Fix up autocfg output pin numbers in realtek parser When quirks are applied, the numbers of output pins in autocfg aren't set up properly but only pin arrays are changed. Let's fix it up so that the rest of the parser can use autocfg.line_outs & co safely. Signed-off-by: Takashi Iwai commit 8c41e5e363db55d91aa3b1cdce4ab02ad9821de7 Author: Junio C Hamano Date: Sat Sep 18 19:25:32 2010 -0700 kconfig: fix menuconfig on debian lenny In 60f33b8 (kconfig: get rid of stray a.o, support ncursesw, 2006-01-15), support to link menuconfig with ncursesw library was added. To compute the linker command option -l, we check "libncursesw.{so,a,dylib}" to allow ncursesw to be used as a replacement ncurses. However, when checking what header file to include, we do not check /usr/include/ncursesw directory. Add /usr/include/ncursesw to the list of directories that are checked. With this patch, on my Debian Lenny box with libncursesw5-dev package but not libncurses5-dev package, I can say "make menuconfig". Signed-off-by: Junio C Hamano Acked-by: Sam Ravnborg Signed-off-by: Michal Marek commit 8d1235852b462cfb66aa036bd4a2686763c69ed4 Author: Steven Whitehouse Date: Fri Sep 17 12:30:23 2010 +0100 GFS2: Make . and .. qstrs constant Rather than calculating the qstrs for . and .. each time we need them, its better to keep a constant version of these and just refer to them when required. Signed-off-by: Steven Whitehouse Reviewed-by: Christoph Hellwig commit 9fa0ea9f26f64fbfc3dfd51d1dc2c230b65ffb19 Author: Steven Whitehouse Date: Mon Sep 13 16:23:00 2010 +0100 GFS2: Use new workqueue scheme The recovery workqueue can be freezable since we want it to finish what it is doing if the system is to be frozen (although why you'd want to freeze a cluster node is beyond me since it will result in it being ejected from the cluster). It does still make sense for single node GFS2 filesystems though. The glock workqueue will benefit from being able to run more work items concurrently. A test running postmark shows improved performance and multi-threaded workloads are likely to benefit even more. It needs to be high priority because the latency directly affects the latency of filesystem glock operations. The delete workqueue is similar to the recovery workqueue in that it must not get blocked by memory allocations, and may run for a long time. Potentially other GFS2 threads might also be converted to workqueues, but I'll leave that for a later patch. Signed-off-by: Steven Whitehouse Acked-by: Tejun Heo commit 1fea7c25a05d388c0cdbe02cbdaf3a2e70885581 Author: Steven Whitehouse Date: Wed Sep 8 10:09:25 2010 +0100 GFS2: Update handling of DLM return codes to match reality GFS2's idea of which return codes it needs to handle was based upon those listed in dlm.h. Those didn't cover all the possible codes and listed some which never happen. This updates GFS2 to handle all the codes which can actually be returned from the DLM under various circumstances. Signed-off-by: Steven Whitehouse commit 7b5e3d5fcf0d6fce66050bd0313a7dc2ae4abc62 Author: Steven Whitehouse Date: Fri Sep 3 09:39:20 2010 +0100 GFS2: Don't enforce min hold time when two demotes occur in rapid succession Due to the design of the VFS, it is quite usual for operations on GFS2 to consist of a lookup (requiring a shared lock) followed by an operation requiring an exclusive lock. If a remote node has cached an exclusive lock, then it will receive two demote events in rapid succession firstly for a shared lock and then to unlocked. The existing min hold time code was triggering in this case, even if the node was otherwise idle since the state change time was being updated by the initial demote. This patch introduces logic to skip the min hold timer in the case that a "double demote" of this kind has occurred. The min hold timer will still be used in all other cases. A new glock flag is introduced which is used to keep track of whether there have been any newly queued holders since the last glock state change. The min hold time is only applied if the flag is set. Signed-off-by: Steven Whitehouse Tested-by: Abhijith Das commit fe08d5a89726675a920b0e9bbbe849c46b27a6e5 Author: Steven Whitehouse Date: Mon Aug 23 11:54:45 2010 +0100 GFS2: Fix whitespace in previous patch Removes the offending space Signed-off-by: Steven Whitehouse commit 3921120e757f9167f3fcd3a1781239824471b14d Author: Benjamin Marzinski Date: Fri Aug 20 00:21:02 2010 -0500 GFS2: fallocate support This patch adds support for fallocate to gfs2. Since the gfs2 does not support uninitialized data blocks, it must write out zeros to all the blocks. However, since it does not need to lock any pages to read from, gfs2 can write out the zero blocks much more efficiently. On a moderately full filesystem, fallocate works around 5 times faster on average. The fallocate call also allows gfs2 to add blocks to the file without changing the filesize, which will make it possible for gfs2 to preallocate space for the rindex file, so that gfs2 can grow a completely full filesystem. Signed-off-by: Benjamin Marzinski Signed-off-by: Steven Whitehouse commit 9a3f236d40a99ea8dca3df40d8ef67631057cad6 Author: Steven Whitehouse Date: Mon Aug 23 11:49:34 2010 +0100 GFS2: Add a bug trap in allocation code This adds a check to ensure that if we reach the block allocator that we don't try and proceed if there is no alloc structure hanging off the inode. This should only happen if there is a bug in GFS2. The error return code is distinctive in order that it will be easily spotted. Signed-off-by: Steven Whitehouse commit 820969f353587281d645735c83c7f07d606e67ba Author: Steven Whitehouse Date: Wed Aug 11 09:53:47 2010 +0100 GFS2: No longer experimental I think the time has arrvied to remove the experimental tag from GFS2. Signed-off-by: Steven Whitehouse commit a2e0f79939e09e74698564b88dee709db208e1e2 Author: Steven Whitehouse Date: Wed Aug 11 09:53:11 2010 +0100 GFS2: Remove i_disksize With the update of the truncate code, ip->i_disksize and inode->i_size are merely copies of each other. This means we can remove ip->i_disksize and use inode->i_size exclusively reducing the size of a GFS2 inode by 8 bytes. Signed-off-by: Steven Whitehouse commit ff8f33c8b30d7b7efdcf2548c7f6e64db6a89b29 Author: Steven Whitehouse Date: Wed Aug 11 09:37:53 2010 +0100 GFS2: New truncate sequence This updates GFS2's truncate code to use the new truncate sequence correctly. This is a stepping stone to being able to remove ip->i_disksize in favour of using i_size everywhere now that the two sizes are always identical. Signed-off-by: Steven Whitehouse Cc: Nick Piggin Cc: Christoph Hellwig commit 39a90865f07f05343c450e91a56578bb8f69c5e8 Author: Paul Mundt Date: Mon Sep 20 18:56:13 2010 +0900 sh: pci: Use a generic raw spinlock for PCI config access locking. This copies the pci_config_lock idea from x86 over, allowing us to kill off a couple of existing private locks. At the same time, these need to be converted to raw spinlocks for -rt kernels, so we make that change at the same time. This should make it easier for future parts to get the locking right instead of inevitable ending up with lock type mismatches. Signed-off-by: Paul Mundt commit c524ebf5a6b78d25219d64a05b3876cde719b5ff Author: Paul Mundt Date: Mon Sep 20 18:45:11 2010 +0900 sh: pci: clock framework support for SH7786 PCIe. This gets each port handling its MSTP bit, as well as moving the PHY clock management in to the clock framework. Signed-off-by: Paul Mundt commit 826ca0bd53f443c830630c1532bf142c4e0f7d13 Merge: 19f7ac5 9900daa Author: Liam Girdwood Date: Mon Sep 20 09:53:29 2010 +0100 Merge remote branch 'asoc/for-2.6.37' into for-2.6.37 commit 19f7ac5038dc11e1ee2c54bb411326d23b40ccff Author: Jarkko Nikula Date: Fri Sep 17 14:39:01 2010 +0300 ASoC: tlv320aic3x: Add virtual output pin Detection Purpose of this virtual Detection pin is to keep codec bias on whenever the GPIO or jack detection features are needed. Jack detection needs a mic bias so machine drivers can construct a following route for instance for keeping the path and codec bias on: "Input Jack" -> "Mic Bias xV" -> "Detection" -> detection block inside codec. For the GPIO the machine driver can force the pin on with snd_soc_dapm_force_enable_pin. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 611ad378b302b931670c8671f9c4d64b52a7be00 Merge: 2c4ee9b b9fde18 Author: Liam Girdwood Date: Mon Sep 20 09:49:26 2010 +0100 Merge remote branch 'broonie-asoc/for-2.6.37' into for-2.6.37 commit cecf48e23fd9270053850643a56e8e791322e3d5 Author: Paul Mundt Date: Mon Sep 20 17:10:02 2010 +0900 sh: pci: Use I/O accessors consistently in SH7786 PCIe init code. Some of the existing code is flipping between __raw_xxx() and pci_{read,write}_reg(). As the latter are just wrappers for the former, flip over to using them consistently. Signed-off-by: Paul Mundt commit 298c926c6d7f50d91d6acb76c33b83bab5b5bd5c Author: Adrian Hoban Date: Mon Sep 20 16:05:12 2010 +0800 crypto: cryptd - Adding the AEAD interface type support to cryptd This patch adds AEAD support into the cryptd framework. Having AEAD support in cryptd enables crypto drivers that use the AEAD interface type (such as the patch for AEAD based RFC4106 AES-GCM implementation using Intel New Instructions) to leverage cryptd for asynchronous processing. Signed-off-by: Adrian Hoban Signed-off-by: Tadeusz Struk Signed-off-by: Gabriele Paoloni Signed-off-by: Aidan O'Mahony Signed-off-by: Herbert Xu commit 84eb01be18df7012ac31bf678da5aaf1accc6a77 Author: Takashi Iwai Date: Tue Sep 7 12:27:25 2010 +0200 ALSA: hda - Merge all HDMI modules into the unified module This patch merges all three patch_*hdmi variants to the single HDMI parser. There is only one snd-hda-codec-hdmi module now. In this patch, the behavior of each parser isn't changed much. The old ATI parser still doesn't use the dynamic parser yet. In later patches, they'll be cleaned up. Also, this patch gets rid of the individual snd-hda-eld module and builds into snd-hda-codec-hdmi, since this is referred only from the HDMI parser. Signed-off-by: Takashi Iwai commit bd792aea441a3dcdede462486ab8c63045803844 Author: Paul Mundt Date: Mon Sep 20 16:12:58 2010 +0900 sh: pci: Support ports with disabled links on SH7786 PCIe. Presently we error out if a link is disabled and simply drop the port registration outright. This follows the PPC changes and simply reports on the link state on boot, leaving the port registered, in order to more easily deal with hotplug on future parts. Signed-off-by: Paul Mundt commit beb54ad9c6fb60901d9445056d40bdaccdc3e819 Author: Paul Mundt Date: Mon Sep 20 16:00:42 2010 +0900 sh: pci: Discard initial PCICONF4/5 settings for SH7786 PCIe. These settings are properly propagated by the hardware already, so there's no need to bother with them manually. Signed-off-by: Paul Mundt commit 2c65d75ec4dde5e619a462e70cdd7b67e0e64bb8 Author: Paul Mundt Date: Mon Sep 20 15:39:54 2010 +0900 sh: pci: Support root complex config accesses on SH7786 PCIe. The SH7786 PCIe is presently unable to enumerate itself in root complex mode, and has no visibility through either type 0 or type 1 accesses, despite having a mostly sensible extended config space for each port. Attempts to generate type 0 or type 1 config cycles result in completer aborts, so we're ultimately forced to use SuperHyway transactions instead. As each port has a single port <-> device mapping that resolves for any PCI_SLOT definition, we simply hijack devfn 0 for the SuperHyway transaction and bump up the devfn limit. With enumeration of the root complex now possible, we also need to insert an early fixup to hide the BARs from the kernel. With all of that done, it's now possible to use the pcieport services with all of the PCIe ports, which is the first step to power management support. Signed-off-by: Paul Mundt commit cabdf8bf488bfa3b565360b9fa1322d2db7747eb Author: Paul Mundt Date: Mon Sep 20 15:37:25 2010 +0900 sh: pci: Move Renesas PCI IDs to a better place. Previously these IDs were only used by one driver, so there was not much need for having them generically defined. Now that this will no longer hold true, move them over. Signed-off-by: Paul Mundt commit 06497524589f2a7717da33969d541674e0a27da6 Author: J. Bruce Fields Date: Sun Sep 19 22:55:06 2010 -0400 nfsd4: fix hang on fast-booting nfs servers The last_close field of a cache_detail is initialized to zero, so the condition detail->last_close < seconds_since_boot() - 30 may be false even for a cache that was never opened. However, we want to immediately fail upcalls to caches that were never opened: in the case of the auth_unix_gid cache, especially, which may never be opened by mountd (if the --manage-gids option is not set), we want to fail the upcall immediately. Otherwise client requests will be dropped unnecessarily on reboot. Also document these conditions. Signed-off-by: J. Bruce Fields commit c88739b373e4930ed082a607cb78bf82616fd076 Merge: 3211af1 827e345 Author: J. Bruce Fields Date: Sun Sep 19 23:48:00 2010 -0400 Merge remote branch 'trond/bugfixes' into for-2.6.37 Without some client-side fixes, server testing is currently difficult. commit 838a2e55e6a4e9e8a10451ed2ef0f7a08dabdb04 Author: Arnaud Lacombe Date: Sat Sep 4 17:10:20 2010 -0400 kbuild: migrate all arch to the kconfig mainmenu upgrade Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit c7abe8630ae63e90c2267c2c385a682e729e08be Author: Arnaud Lacombe Date: Sat Sep 4 16:11:26 2010 -0400 kconfig: expand file names This will allow to use the following construct in source files: config FOO string default "foo" source "$FOO/Kconfig" Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit e82dae9083c8ca97c0f6ba1f5d09591aff67bb4e Author: Arnaud Lacombe Date: Sat Sep 4 16:09:26 2010 -0400 kconfig: use the file's name of sourced file Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit 2e7a091833f014cac8a6b92573ca6cd2edd2753c Author: Arnaud Lacombe Date: Sat Sep 4 16:03:30 2010 -0400 kconfig: constify file name Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit ba6ff60d5eb47d52f1a5eb0bb6ffa751be838c46 Author: Arnaud Lacombe Date: Sat Sep 4 16:05:15 2010 -0400 kconfig: don't emit warning upon rootmenu's prompt redefinition This silences the warning printed upon prompt redefinition for the rootmenu. We will encounter this redefinition when a "mainmenu" statement is specified and override the default prompt. Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit 0954828fcbf3bd13d593499b16b901a4e801b0b9 Author: Arnaud Lacombe Date: Wed Aug 18 01:57:13 2010 -0400 kconfig: replace KERNELVERSION usage by the mainmenu's prompt Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit c55c9d571a3db7a096834b6c8a58d5a32dc807e6 Author: Arnaud Lacombe Date: Sun Sep 19 22:47:17 2010 -0400 kconfig: delay gconf window initialization Delay the window initialization to let the rootmenu's prompt be initialized as it will be used to get the window's title. Signed-off-by: Arnaud Lacombe commit b51d92da4ebb52b61fdc99c911171562673e88ef Author: Simon Guinot Date: Sun Sep 19 15:33:59 2010 +0200 [ARM] Kirkwood: remove duplicated code in LaCie setup files Signed-off-by: Simon Guinot Signed-off-by: Nicolas Pitre commit 84712e9aa43862ded44e47acfaa93612a7eeaf7c Author: Simon Guinot Date: Sun Sep 19 15:33:58 2010 +0200 [ARM] Kirkwood: add LaCie d2 Network v2 support Signed-off-by: Simon Guinot Signed-off-by: Nicolas Pitre commit 709406494c0ed7da843bad624f6b16f9a2df4a6c Author: Eric Cooper Date: Wed Sep 15 10:49:41 2010 -0400 [ARM] Kirkwood: support for Seagate DockStar This patch adds support for the Seagate FreeAgent DockStar, a Marvell SheevaPlug variant. Signed-off-by: Eric Cooper Signed-off-by: Nicolas Pitre commit fd2ce9c59a63d1daec8d76d272eca5149fb8706a Author: Tanmay Upadhyay Date: Thu Aug 26 11:11:58 2010 +0530 [ARM] OpenRD: Enable SD/UART selection for serial port 1 This patch enables users to choose either the SDIO interface or UART1 (RS232/RS485). The selection can be done through kernel parameter. By default the port would be used for SDIO interface. Passing the string "kw_openrd_init_uart1=232" or "kw_openrd_init_uart1=485" enables either the RS-232 or RS-485 port respectively; disabling the SDIO interface. Anything else selects the default SDIO interface. "kw_openrd_init_uart1=485" is ignored on OpenRD-Base as it doesn't have RS485 port. Signed-off-by: Tanmay Upadhyay Acked-by: Alexander Clouter Signed-off-by: Nicolas Pitre commit f6ce00b8cca0517f7296cd76059e1fb37d01c871 Author: Arnaud Lacombe Date: Thu Sep 9 21:17:26 2010 -0400 kconfig: expand by default the rootmenu's prompt Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit 76a540958af5390a94b7f68c46cb7f2aed34ccf1 Author: Arnaud Lacombe Date: Wed Aug 18 01:23:50 2010 -0400 kconfig: add a symbol string expansion helper Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit c0920a1cbd7aecefa5f9768e82136935132ef1cf Author: Arnaud Lacombe Date: Fri Sep 10 21:23:28 2010 -0400 kconfig: regen parser Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit 8ea13e2c87c83b7cb0b360cb8779415967727647 Author: Arnaud Lacombe Date: Mon Aug 16 22:55:31 2010 -0400 kconfig: implement the `mainmenu' directive If specified, the directive must be placed at the top of the Kconfig file. We need to change the grammar to make the mainmenu directive set the `rootmenu' prompt. This reflect how menu_add_prompt() works internally, ie. set the prompt of the `current_entry', pointing originally to `rootmenu'. Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit ef211607ed49c475735898514c60a9797208b699 Author: Arnaud Lacombe Date: Sat Aug 21 01:20:52 2010 -0400 kconfig: allow PACKAGE to be defined on the compiler's command-line Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit 652cf9821d2a5b22a1725ce8dc235ea5de0e1c6f Author: Arnaud Lacombe Date: Sat Aug 14 23:51:40 2010 -0400 kconfig: rephrase help texts/comments not to include the package name Signed-off-by: Arnaud Lacombe Reviewed-by: Randy Dunlap Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit ffb5957bc48f64f0773fd3fbc43cb9bb9b38e270 Author: Arnaud Lacombe Date: Sat Aug 14 23:57:43 2010 -0400 kconfig: allow build-time definition of the internal config prefix Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit 59dfa24da7cb02b3ccc39f5e74b74fe26ea9626a Author: Arnaud Lacombe Date: Sat Aug 21 00:43:46 2010 -0400 kconfig: rephrase help text not to mention the internal prefix Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit 8baefd30b5b0101aa07aa75da44a9eee881eed28 Author: Arnaud Lacombe Date: Tue Aug 24 00:14:47 2010 -0400 kconfig: replace a `switch()' statement by a more flexible `if()' statement With the upcoming dynamical configuration prefix, we can no longer assume that the prefix will start by a 'C'. As such, we can no longer hardcode this value in the `case ...:', so replace the `switch() { ... }' statement by a more flexible 'if () { ... }' statement. Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek commit 462fb2af9788a82a534f8184abfde31574e1cfa0 Author: Bandan Das Date: Sun Sep 19 09:34:33 2010 +0000 bridge : Sanitize skb before it enters the IP stack Related dicussion here : http://lkml.org/lkml/2010/9/3/16 Introduce a function br_parse_ip_options that will audit the skb and possibly refill IP options before a packet enters the IP stack. If no options are present, the function will zero out the skb cb area so that it is not misinterpreted as options by some unsuspecting IP layer routine. If packet consistency fails, drop it. Signed-off-by: Bandan Das Signed-off-by: David S. Miller commit aef3ea33e85035f7c827c1db9155f97f4b7ee725 Author: Dan Carpenter Date: Sat Sep 18 13:44:14 2010 +0000 rds: spin_lock_irq() is not nestable This is basically just a cleanup. IRQs were disabled on the previous line so we don't need to do it again here. In the current code IRQs would get turned on one line earlier than intended. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller commit f4fa7f3807d41b78056c6648b04bfadd737df21e Author: Dan Carpenter Date: Sat Sep 18 13:42:59 2010 +0000 rds: double unlock in rds_ib_cm_handle_connect() We unlock after we goto out. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller commit 9b9d2e00bfa592aceda7b43da76c670df61faa97 Author: Dan Carpenter Date: Sat Sep 18 13:42:25 2010 +0000 rds: signedness bug In the original code if the copy_from_user() fails in rds_rdma_pages() then the error handling fails and we get a stack trace from kmalloc(). Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller commit 0746556beab1a57f1afb5c9d6f393d98528ce682 Author: Dan Carpenter Date: Sun Sep 19 11:25:54 2010 -0700 bna: off by one The mod->mbhdlr[] array has BFI_MC_MAX elements. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller commit 8f8f103d8466e627ecef7894248eb79407d9047c Author: Eric Dumazet Date: Sun Sep 19 11:24:02 2010 -0700 net: reorder struct netdev_hw_addr Move 'synced' and 'global_use' fields before 'refcount', to shrinks struct netdev_hw_addr by 8 bytes (on 64bit arches). Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 2ef13294d29bcfb306e0d360f1b97f37b647b0c0 Author: Artem Bityutskiy Date: Sun Sep 19 18:34:26 2010 +0300 UBIFS: introduce new flags for RO mounts Commit 2fde99cb55fb9d9b88180512a5e8a5d939d27fec "UBIFS: mark VFS SB RO too" introduced regression. This commit made UBIFS set the 'MS_RDONLY' flag in the VFS superblock when it switches to R/O mode due to an error. This was done to make VFS show the R/O UBIFS flag in /proc/mounts. However, several places in UBIFS relied on the 'MS_RDONLY' flag and assume this flag can only change when we re-mount. For example, 'ubifs_put_super()'. This patch introduces new UBIFS flag - 'c->ro_mount' which changes only when we re-mount, and preserves the way UBIFS was originally mounted (R/W or R/O). This allows us to de-initialize UBIFS cleanly in 'ubifs_put_super()'. This patch also changes all 'ubifs_assert(!c->ro_media)' assertions to 'ubifs_assert(!c->ro_media && !c->ro_mount)', because we never should write anything if the FS was mounter R/O. All the places where we test for 'MS_RDONLY' flag in the VFS SB were changed and now we test the 'c->ro_mount' flag instead, because it preserves the original UBIFS mount type, unlike the 'MS_RDONLY' flag. Signed-off-by: Artem Bityutskiy commit 09383498c5d35262e643bfdbae84826177a3c624 Author: Tejun Heo Date: Thu Sep 16 10:48:29 2010 +0200 workqueue: implement flush[_delayed]_work_sync() Implement flush[_delayed]_work_sync(). These are flush functions which also make sure no CPU is still executing the target work from earlier queueing instances. These are similar to cancel[_delayed]_work_sync() except that the target work item is flushed instead of cancelled. Signed-off-by: Tejun Heo commit baf59022c37d43f202e62d5130e4bac5e825b426 Author: Tejun Heo Date: Thu Sep 16 10:42:16 2010 +0200 workqueue: factor out start_flush_work() Factor out start_flush_work() from flush_work(). start_flush_work() has @wait_executing argument which controls whether the barrier is queued only if the work is pending or also if executing. As flush_work() needs to wait for execution too, it uses %true. This commit doesn't cause any behavior difference. start_flush_work() will be used to implement flush_work_sync(). Signed-off-by: Tejun Heo commit 401a8d048eadfbe1b1c1bf53d3b614fcc894c61a Author: Tejun Heo Date: Thu Sep 16 10:36:00 2010 +0200 workqueue: cleanup flush/cancel functions Make the following cleanup changes. * Relocate flush/cancel function prototypes and definitions. * Relocate wait_on_cpu_work() and wait_on_work() before try_to_grab_pending(). These will be used to implement flush_work_sync(). * Make all flush/cancel functions return bool instead of int. * Update wait_on_cpu_work() and wait_on_work() to return %true if they actually waited. * Add / update comments. This patch doesn't cause any functional changes. Signed-off-by: Tejun Heo commit 81dcaf6516d8bbd75b894862c8ae7bba04380cfe Author: Tejun Heo Date: Thu Sep 16 10:17:35 2010 +0200 workqueue: implement alloc_ordered_workqueue() alloc_ordered_workqueue() creates a workqueue which processes each work itemp one by one in the queued order. This will be used to replace create_freezeable_workqueue() and create_singlethread_workqueue(). Signed-off-by: Tejun Heo commit b9fde18c0582583cf12a4b1c02f621d3addd0a97 Author: Kuninori Morimoto Date: Fri Sep 17 13:48:32 2010 +0900 ASoC: fsi: Add fsi_dma_soft_push/pop function Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown commit c8fe2574cf860ace03785953878c4c7a0190d064 Author: Kuninori Morimoto Date: Fri Sep 17 13:48:17 2010 +0900 ASoC: fsi: modify noisy comment out Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown commit c79eab3ea4e6f769e35005bf77fb4d6acd9c18ea Author: Kuninori Morimoto Date: Fri Sep 17 13:48:05 2010 +0900 ASoC: fsi: Add fsi_dma_get_area Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown commit c6834dd2d20fe607d0a4a98e78a68614e4079492 Author: Guennadi Liakhovetski Date: Fri Sep 17 12:30:18 2010 +0200 ASoC: fix SIU driver breakage, occurred during the multi-component transition This patch fixes multiple bugs and a typo, occurred during the multi- component transition. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mark Brown commit 7d25d64441a8ce9fb8c0e1c889badb14d8af9370 Author: Guennadi Liakhovetski Date: Fri Sep 17 12:30:00 2010 +0200 sh: fix an SIU device name mismatch Recent ASoC changes unified all PCM names, fix the platform code to match. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mark Brown commit c54291de432954b99348449723f2ce2bfe102753 Author: Guennadi Liakhovetski Date: Fri Sep 17 12:29:46 2010 +0200 ASoC: fix compile breakage of the sh/siu driver The sh/siu ASoC driver doesn't compile because of a function defined static in the source and extern in a header. Remove the unneeded declaration in the header. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mark Brown commit 382e30200244a80358b65dcc63ccba4424bf752a Merge: d85a6d7 cbfa518 Author: Mark Brown Date: Sun Sep 19 16:03:16 2010 +0100 Merge branch 'for-2.6.36' into for-2.6.37 commit f8b63c184ad13cc8adc3dadb557d4fbc29f76e4d Author: Catalin Marinas Date: Mon Sep 13 15:59:07 2010 +0100 ARM: 6382/1: Remove superfluous flush_kernel_dcache_page() Since page cache pages are now considered 'dirty' by default, the cache flushing is handled via __flush_dcache_page() when a page gets mapped to user space. Highmem pages on VIVT systems are flushed during kunmap() and flush_kernel_dcache_page() was already a no-op in this case. ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE is still defined since ARM needs specific implementations for flush_kernel_vmap_range() and invalidate_kernel_vmap_range(). Cc: Nicolas Pitre Signed-off-by: Catalin Marinas Signed-off-by: Russell King commit 85848dd7ab75fce1134856228582a8df522c91d9 Author: Catalin Marinas Date: Mon Sep 13 15:58:37 2010 +0100 ARM: 6381/1: Use lazy cache flushing on ARMv7 SMP systems ARMv7 processors like Cortex-A9 broadcast the cache maintenance operations in hardware. This patch allows the flush_dcache_page/update_mmu_cache pair to work in lazy flushing mode similar to the UP case. Note that cache flushing on SMP systems now takes place via the set_pte_at() call (__sync_icache_dcache) and there is no race with other CPUs executing code from the new PTE before the cache flushing took place. Tested-by: Rabin Vincent Cc: Nicolas Pitre Signed-off-by: Catalin Marinas Signed-off-by: Russell King commit 6012191aa9c6ffff3a23b81162298318b56d7cb3 Author: Catalin Marinas Date: Mon Sep 13 15:58:06 2010 +0100 ARM: 6380/1: Introduce __sync_icache_dcache() for VIPT caches On SMP systems, there is a small chance of a PTE becoming visible to a different CPU before the current cache maintenance operations in update_mmu_cache(). To avoid this, cache maintenance must be handled in set_pte_at() (similar to IA-64 and PowerPC). This patch provides a unified VIPT cache handling mechanism and implements the __sync_icache_dcache() function for ARMv6 onwards architectures. It is called from set_pte_at() and replaces the update_mmu_cache(). The latter is still used on VIVT hardware where a vm_area_struct is required. Tested-by: Rabin Vincent Cc: Nicolas Pitre Signed-off-by: Catalin Marinas Signed-off-by: Russell King commit c01778001a4f5ad9c62d882776235f3f31922fdd Author: Catalin Marinas Date: Mon Sep 13 15:57:36 2010 +0100 ARM: 6379/1: Assume new page cache pages have dirty D-cache There are places in Linux where writes to newly allocated page cache pages happen without a subsequent call to flush_dcache_page() (several PIO drivers including USB HCD). This patch changes the meaning of PG_arch_1 to be PG_dcache_clean and always flush the D-cache for a newly mapped page in update_mmu_cache(). The patch also sets the PG_arch_1 bit in the DMA cache maintenance function to avoid additional cache flushing in update_mmu_cache(). Tested-by: Rabin Vincent Cc: Nicolas Pitre Signed-off-by: Catalin Marinas Signed-off-by: Russell King commit 0fc73099dd25df2c5181b7bad57d1faa5cd12d3c Author: Catalin Marinas Date: Mon Sep 13 15:57:05 2010 +0100 ARM: 6378/1: Allow lazy cache flushing via PG_arch_1 for highmem pages Commit d73cd42 forced non-lazy cache flushing of highmem pages in flush_dcache_page(). This isn't needed since __flush_dcache_page() (called lazily from update_mmu_cache) can handle highmem pages (fixed by commit 7e5a69e). Signed-off-by: Catalin Marinas Acked-by: Nicolas Pitre Signed-off-by: Russell King commit 4f724beace1be4ba3dbd1a75cff3940354e3ff4f Author: Sundar Iyer Date: Wed Sep 15 10:50:59 2010 +0100 ARM: 6392/1: ux500: add ab8500-regulators machine specific data From: Sundar R Iyer Reviewed-by: Mark Brown Acked-by: Linus Walleij Acked-by: Bengt JONSSON Signed-off-by: Sundar R Iyer Signed-off-by: Russell King commit 9d704c04ff8ae61b60935d67ce334b18fc70f1b2 Author: Sundar Iyer Date: Wed Sep 15 10:45:51 2010 +0100 ARM: 6391/1: ux500: add CPU hotplug support Acked-by: Linus Walleij Signed-off-by: Sundar Iyer Signed-off-by: Russell King commit f0a7a98d1d400e2a5fd9a63ed56d30d30f2864cb Author: Rabin Vincent Date: Mon Sep 13 13:04:02 2010 +0100 ARM: 6373/1: tc35892-gpio: add setup/remove callbacks For board-specific initialization. Cc: Samuel Ortiz Cc: linux-kernel@vger.kernel.org Acked-by: Linus Walleij Signed-off-by: Rabin Vincent Signed-off-by: Russell King commit f066439cfc37d498a06de76fcab8c21d4094ca64 Author: Rabin Vincent Date: Mon Sep 13 12:39:38 2010 +0100 ARM: 6372/1: ux500: add DB5500 DMA event lines Acked-by: Linus Walleij Signed-off-by: Rabin Vincent Signed-off-by: Russell King commit eaa7f2d50de08efcebb3909ad81fbd76220c9b95 Author: Rabin Vincent Date: Mon Sep 13 12:37:52 2010 +0100 ARM: 6371/1: ux500: add DB5500 pins Acked-by: Linus Walleij Signed-off-by: Rabin Vincent Signed-off-by: Russell King commit 29aeb3cfeb88ecdb2febb5da247d0cf6a82f8831 Author: Linus Walleij Date: Mon Sep 6 22:15:08 2010 +0100 ARM: 6337/2: AB8500 I2C platform configuration and irq This patch adds the platform part of the AB8500 PRCMU I2C access driver. The old irq name AB4500 is changed to AB8500. Signed-off-by: Mattias Wallin Signed-off-by: Linus Walleij Signed-off-by: Russell King commit aa3090005d27f3c7fba915ccea36b97b669fa3ab Merge: 151b6a5 448352a Author: Russell King Date: Sun Sep 19 11:00:02 2010 +0100 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-tcc into devel-stable commit 81df84f4060f4f19c7e6f39c7c527a6098436a2a Author: Paul Mundt Date: Sun Sep 19 13:57:51 2010 +0900 sh: pci: Give SH7786 PHY some time to settle. The spec suggests waiting up to 500ms for the PHY to settle before testing link state, but practice shows that 100ms is sufficient (this is the delay value we also use on the other SH-4A PCI controllers, too). This makes device detection much more reliable, although in the future it should be a bit faster to simply serialize with a TLP IRQ. Signed-off-by: Paul Mundt commit bdf7499081fc3c521d0f8fc28c6950c7c9bd7e97 Author: Paul Mundt Date: Sun Sep 19 13:54:50 2010 +0900 sh: pci: Toggle configuration accesses on SH7786. After configuration accesses have been completed deassert the configuration access enable cleanly. Signed-off-by: Paul Mundt commit c62e3fae58198fc1f5d7922f84fe91b3fcf61177 Author: Paul Mundt Date: Sun Sep 19 13:51:15 2010 +0900 sh: pci: Use generic pci_enable_resources() for pcibios_enable_device(). Signed-off-by: Paul Mundt commit f899fc64cda8569d0529452aafc0da31c042df2e Author: Chris Wilson Date: Tue Jul 20 15:44:45 2010 -0700 drm/i915: use GMBUS to manage i2c links Use the GMBUS interface rather than direct bit banging to grab the EDID over DDC (and for other forms of auxiliary communication with external display controllers). The hope is that this method will be much faster and more reliable than bit banging for fetching EDIDs from buggy monitors or through switches, though we still preserve the bit banging as a fallback in case GMBUS fails. Based on an original patch by Jesse Barnes. Cc: Jesse Barnes Signed-off-by: Chris Wilson commit 15e408cd6ccc3f4f453d87ccd5bc7a84d59feb96 Author: Namhyung Kim Date: Tue Sep 14 21:43:48 2010 +0900 futex: Add lock context annotations queue_lock/unlock/me() and unqueue_me_pi() grab/release spinlocks but are missing proper annotations. Add them. Signed-off-by: Namhyung Kim Cc: Peter Zijlstra Cc: Darren Hart LKML-Reference: <1284468228-8723-3-git-send-email-namhyung@gmail.com> Signed-off-by: Thomas Gleixner commit a3c74c52570c0c4ac90c9a0216de800c39089ba7 Author: Namhyung Kim Date: Tue Sep 14 21:43:47 2010 +0900 futex: Mark restart_block.futex.uaddr[2] __user @uaddr and @uaddr2 fields in restart_block.futex are user pointers. Add __user and remove unnecessary casts. Signed-off-by: Namhyung Kim Cc: Peter Zijlstra Cc: Darren Hart LKML-Reference: <1284468228-8723-2-git-send-email-namhyung@gmail.com> Signed-off-by: Thomas Gleixner commit 1dcc41bb037533839753df983d31778b30b67d93 Author: Namhyung Kim Date: Tue Sep 14 21:43:46 2010 +0900 futex: Change 3rd arg of fetch_robust_entry() to unsigned int* Sparse complains: kernel/futex.c:2495:59: warning: incorrect type in argument 3 (different signedness) Make 3rd argument of fetch_robust_entry() 'unsigned int'. Signed-off-by: Namhyung Kim Cc: Peter Zijlstra Cc: Darren Hart LKML-Reference: <1284468228-8723-1-git-send-email-namhyung@gmail.com> Signed-off-by: Thomas Gleixner commit 995bd3bb5c78f3ff71339803c0b8337ed36d64fb Author: Thomas Gleixner Date: Wed Sep 15 15:11:57 2010 +0200 x86: Hpet: Avoid the comparator readback penalty Due to the overly intelligent design of HPETs, we need to workaround the problem that the compare value which we write is already behind the actual counter value at the point where the value hits the real compare register. This happens for two reasons: 1) We read out the counter, add the delta and write the result to the compare register. When a NMI or SMI hits between the read out and the write then the counter can be ahead of the event already 2) The write to the compare register is delayed by up to two HPET cycles in certain chipsets. We worked around this by reading back the compare register to make sure that the written value has hit the hardware. For certain ICH9+ chipsets this can require two readouts, as the first one can return the previous compare register value. That's bad performance wise for the normal case where the event is far enough in the future. As we already know that the write can be delayed by up to two cycles we can avoid the read back of the compare register completely if we make the decision whether the delta has elapsed already or not based on the following calculation: cmp = event - actual_count; If cmp is less than 8 HPET clock cycles, then we decide that the event has happened already and return -ETIME. That covers the above #1 and #2 problems which would cause a wait for HPET wraparound (~306 seconds). Signed-off-by: Thomas Gleixner Tested-by: Nix Tested-by: Artur Skawina Cc: Damien Wyart Tested-by: John Drescher Cc: Venkatesh Pallipadi Cc: Arjan van de Ven Cc: Andreas Herrmann Tested-by: Borislav Petkov Cc: Suresh Siddha LKML-Reference: commit a68e5c94f7d3dd64fef34dd5d97e365cae4bb42a Author: H. Peter Anvin Date: Fri Sep 17 17:06:46 2010 -0700 x86, hotplug: Move WBINVD back outside the play_dead loop On processors with hyperthreading, when only one thread is offlined the other thread can cause a spurious wakeup on the idled thread. We do not want to re-WBINVD when that happens. Ideally, we should simply skip WBINVD unless we're the last thread on a particular core to shut down, but there might be similar issues elsewhere in the system. Thus, revert to previous behavior of only WBINVD outside the loop. Partly as a result, remove the mb()'s around it: they are not necessary since wbinvd() is a serializing instruction, but they were intended to make sure the compiler didn't do any funny loop optimizations. Reported-by: Asit Mallick Signed-off-by: H. Peter Anvin Cc: Arjan van de Ven Cc: Len Brown Cc: Venkatesh Pallipadi Cc: Peter Zijlstra LKML-Reference: commit e6599c2ecf18002339fe81cde1fa83b37bf26290 Author: Eric Dumazet Date: Fri Sep 17 09:25:07 2010 +0000 bonding: enable gro by default gro can be enabled by default on bonding devices. Actual support depends on the lower devices. One can still use ethtool to switch off GRO if needed. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 07af7a2bfa853db3957a22f9a41f437bf0f10e63 Author: Ben Hutchings Date: Thu Sep 16 11:34:26 2010 +0000 ethtool: Add comments for valid use of flow types Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit be2902daee80b655cebd482b5ee91ffc29408121 Author: Ben Hutchings Date: Thu Sep 16 11:28:07 2010 +0000 ethtool, ixgbe: Move RX n-tuple mask fixup to ethtool The ethtool utility does not set masks for flow parameters that are not specified, so if both value and mask are 0 then this must be treated as equivalent to a mask with all bits set. Currently that is done in the only driver that implements RX n-tuple filtering, ixgbe. Move it to the ethtool core. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 3b27e105550f7c4a79ecb6d6a9c49c651c59ae9b Author: David Lamparter Date: Fri Sep 17 03:22:19 2010 +0000 netns: keep vlan slaves on master netns move previously, if a vlan master device was moved from one network namespace to another, all 802.1q and macvlan slaves were deleted. we can use dev->reg_state to figure out whether dev_change_net_namespace is happening, since that won't set dev->reg_state NETREG_UNREGISTERING. so, this changes 8021q and macvlan to ignore NETDEV_UNREGISTER when reg_state is not NETREG_UNREGISTERING. Signed-off-by: David Lamparter Reviewed-by: "Eric W. Biederman" Acked-by: Daniel Lezcano Acked-by: Patrick McHardy Signed-off-by: David S. Miller commit b71c7aaa1e2a9858f0c469026098fbd6e046d7bb Author: Giuseppe CAVALLARO Date: Fri Sep 17 03:23:42 2010 +0000 stmmac: use one memset() to reset TDES01 Use one memset() to reset all TDES01 fields instead of one by one to reduce number of instructions. Signed-off-by: Giuseppe Cavallaro Signed-off-by: David S. Miller commit c629882ac73cab2cd41d9948caeed633fc570fc0 Author: Giuseppe CAVALLARO Date: Fri Sep 17 03:23:41 2010 +0000 stmmac: prevent dma init stuck in case of failures. Add a limit when perform the DMA reset procedure so, in case of problems (i.e. PHY reset failed) the Kernel won't hang on the stmmac DMA initialisation blocking the Kernels execution. Signed-off-by: Giuseppe Cavallaro Signed-off-by: David S. Miller commit ebbb293f8b3021ae2009fcb7cb3b8a52fb5fd06a Author: Giuseppe CAVALLARO Date: Fri Sep 17 03:23:40 2010 +0000 stmmac: consolidate and tidy-up the COE support The first version of the driver had hard-coded the logic for handling the checksum offloading. This was designed according to the chips included in the STM platforms where: o MAC10/100 supports no COE at all. o GMAC fully supports RX/TX COE. This is not good for other chip configurations where, for example, the mac10/100 supports the tx csum in HW or when the GMAC has no IPC. Thanks to Johannes Stezenbach; he provided me a first draft of this patch that only reviewed the IPC for the GMAC devices. This patch also helps on SPEAr platforms where the MAC10/100 can perform the TX csum in HW. Thanks to Deepak SIKRI for his support on this. In the end, GMAC devices for STM platforms have a bugged Jumbo frame support that needs to have the Tx COE disabled for oversized frames (due to limited buffer sizes). This information is also passed through the driver's platform structure. Signed-off-by: Giuseppe Cavallaro Signed-off-by: Johannes Stezenbach Signed-off-by: Deepak SIKRI Signed-off-by: David S. Miller commit dfb8fb96ae2b5126cd0c08c0ccd7c42e1f46568a Author: Giuseppe CAVALLARO Date: Fri Sep 17 03:23:39 2010 +0000 stmmac: add CSR Clock range selection This patch adds the CSR Clock range selection. Original patch from Johannes Stezenbach fixed the CSR in the stmmac_mdio. We agreed to provide this through the platform instead of. Also thanks to Johannes for having tested it on ARM. Signed-off-by: Giuseppe Cavallaro Signed-off-by: Johannes Stezenbach Signed-off-by: David S. Miller commit ea53069231f9317062910d6e772cca4ce93de8c8 Author: H. Peter Anvin Date: Fri Sep 17 15:39:11 2010 -0700 x86, hotplug: Use mwait to offline a processor, fix the legacy case The code in native_play_dead() has a number of problems: 1. We should use MWAIT when available, to put ourselves into a deeper sleep state. 2. We use the existence of CLFLUSH to determine if WBINVD is safe, but that is totally bogus -- WBINVD is 486+, whereas CLFLUSH is a much later addition. 3. We should do WBINVD inside the loop, just in case of something like setting an A bit on page tables. Pointed out by Arjan van de Ven. This code is based in part of a previous patch by Venki Pallipadi, but unlike that patch this one keeps all the detection code local instead of pre-caching a bunch of information. We're shutting down the CPU; there is absolutely no hurry. This patch moves all the code to C and deletes the global wbinvd_halt() which is broken anyway. Originally-by: Venkatesh Pallipadi Signed-off-by: H. Peter Anvin Reviewed-by: Arjan van de Ven Cc: Len Brown Cc: Venkatesh Pallipadi Cc: Peter Zijlstra LKML-Reference: <20090522232230.162239000@intel.com> commit bc83cccc761953f878088cdfa682de0970b5561f Author: H. Peter Anvin Date: Fri Sep 17 15:36:40 2010 -0700 x86, mwait: Move mwait constants to a common header file We have MWAIT constants spread across three different .c files, for no good reason. Move them all into a common header file. Signed-off-by: H. Peter Anvin Reviewed-by: Arjan van de Ven Cc: Len Brown LKML-Reference: commit d3d4152a5d59af9e13a73efa9e9c24383fbe307f Author: Jeff Layton Date: Fri Sep 17 17:31:57 2010 -0400 nfs: make sillyrename an async operation A synchronous rename can be interrupted by a SIGKILL. If that happens during a sillyrename operation, it's possible for the rename call to be sent to the server, but the task exits before processing the reply. If this happens, the sillyrenamed file won't get cleaned up during nfs_dentry_iput and the server is left with a dangling .nfs* file hanging around. Fix this problem by turning sillyrename into an asynchronous operation and have the task doing the sillyrename just wait on the reply. If the task is killed before the sillyrename completes, it'll still proceed to completion. Signed-off-by: Jeff Layton Reviewed-by: Chuck Lever Signed-off-by: Trond Myklebust commit 779c51795bfb35c2403c924b9de90ca9356bc693 Author: Jeff Layton Date: Fri Sep 17 17:31:30 2010 -0400 nfs: move nfs_sillyrename to unlink.c ...since that's where most of the sillyrenaming code lives. A comment block is added to the beginning as well to clarify how sillyrenaming works. Also, make nfs_async_unlink static as nfs_sillyrename is the only caller. Signed-off-by: Jeff Layton Reviewed-by: Chuck Lever Signed-off-by: Trond Myklebust commit e8582a8b96f329083b4da29aa87bc43cc0d80dd1 Author: Jeff Layton Date: Fri Sep 17 17:31:06 2010 -0400 nfs: standardize the rename response container Right now, v3 and v4 have their own variants. Create a standard struct that will work for v3 and v4. v2 doesn't get anything but a simple error and so isn't affected by this. Signed-off-by: Jeff Layton Reviewed-by: Chuck Lever Signed-off-by: Trond Myklebust commit 920769f031a8aff87b66bdf49d1a0d0988241ef9 Author: Jeff Layton Date: Fri Sep 17 17:30:25 2010 -0400 nfs: standardize the rename args container Each NFS version has its own version of the rename args container. Standardize them on a common one that's identical to the one NFSv4 uses. Signed-off-by: Jeff Layton Reviewed-by: Chuck Lever Signed-off-by: Trond Myklebust commit 900f9ac9f12dc3dd6fc8e33e16df172eafcaead6 Author: Andreas Herrmann Date: Fri Sep 17 18:02:54 2010 +0200 x86, k8-gart: Decouple handling of garts and northbridges So far we only provide num_k8_northbridges. This is required in different areas (e.g. L3 cache index disable, GART). But not all AMD CPUs provide a GART. Thus it is useful to split off the GART handling from the generic caching of AMD northbridge misc devices. Signed-off-by: Andreas Herrmann LKML-Reference: <20100917160254.GC4958@loge.amd.com> Signed-off-by: H. Peter Anvin commit 3518dd14ca888085797ca8d3a9e11c8ef9e7ae68 Author: Andreas Herrmann Date: Fri Sep 17 18:07:45 2010 +0200 x86, cacheinfo: Fix dependency of AMD L3 CID L3 cache index disable code uses PCI accesses to AMD northbridge functions. Currently the code is #ifdef CONFIG_CPU_SUP_AMD. But it should be #if (defined(CONFIG_CPU_SUP_AMD) && defined(CONFIG_PCI)) which in the end is a dependency to K8_NB. Signed-off-by: Andreas Herrmann LKML-Reference: <20100917160744.GF4958@loge.amd.com> Signed-off-by: H. Peter Anvin commit 09f250ac8faefa9deb14854e4715a139ed99617b Author: Wey-Yi Guy Date: Mon Sep 13 08:08:18 2010 -0700 iwlagn: initialize both tx/rx prio boost parameters For config bt command, initialize both tx_prio_boost and rx_prio_boost to "0". Signed-off-by: Wey-Yi Guy commit b345f4da42da69f7136ea1b83ef38b3412e51b72 Author: Wey-Yi Guy Date: Mon Sep 13 07:51:03 2010 -0700 iwlagn: minor coex API changes Adding two new parameters in config bt API. these two parameters use the 3 reserved bytes, so there is no structure size changes. Make sure set both parameters to "zero" in order to preserve previous behavior. Signed-off-by: Wey-Yi Guy commit 1d270075be62fb8212bd5afebd0bab693759a1a0 Author: Wey-Yi Guy Date: Tue Sep 7 12:42:20 2010 -0700 iwlagn: correct naming for failure reply tx status For failure tx status 0x90 and 0x91, give the correct name to reflect the errors. Signed-off-by: Wey-Yi Guy commit 0b7e5e85b0317f06d92704a5be42cc101a552ab5 Author: Jay Sternberg Date: Wed Sep 8 09:42:35 2010 -0700 iwlwifi: corrections to debug output of ucode statistics remove duplicate header and clean up format so it is defined once making changes consolicated ensuring consistancy of output. no function change to date displayed. Signed-off-by: Jay Sternberg Signed-off-by: Wey-Yi Guy commit 95b49ed013c9a8856ce768d8d4a62acfc410f73d Author: Wey-Yi Guy Date: Sun Sep 5 10:49:45 2010 -0700 iwlagn: adding aggregated frame failure status to debugfs Addition to standard tx frame failure report, adding aggregated frame failure report to debugfs Signed-off-by: Wey-Yi Guy commit 814665fef7562b31d32e515c4d91b06c8b956560 Author: Wey-Yi Guy Date: Sun Sep 5 10:49:44 2010 -0700 iwlagn: keep track of aggregated tx frames failure counter When uCode completed the aggregated frames transmission attempt, it will send tx command response with aggregated frame status. Keep track of the failure counter which help indicate any transmission error condition. Signed-off-by: Wey-Yi Guy commit e1b3fa0c22625d985cc7f82b7f3aa90a6fc75c2f Author: Wey-Yi Guy Date: Sun Sep 5 10:49:43 2010 -0700 iwlagn: log aggregation tx command status For aggregated frames with block ack, different status flag will be used as part of tx command response. Signed-off-by: Wey-Yi Guy commit 54a9aa65f749673f851ef86481940394185c1b0e Author: Wey-Yi Guy Date: Sun Sep 5 10:49:42 2010 -0700 iwlagn: keep track of failure tx status Tx command response sent to host by uCode after completed the transmission attempt. The status parameter indicates whether the transmission was successful, or else why if failed. Here we keep the counters to help understand the different failure cases. Signed-off-by: Wey-Yi Guy commit 91835ba401189a81e5ad1f932f880d8eed8c9db2 Author: Wey-Yi Guy Date: Sun Sep 5 10:49:41 2010 -0700 iwlagn: keep track fail tx reason counter If uCode fail to transmit frame, it will send reply tx back to driver with failure status; keep the counters of each failure cases for debugging. Signed-off-by: Wey-Yi Guy commit a437fbb96fe4eab241f06bbd7c7c1070ccdb2544 Author: Wey-Yi Guy Date: Sun Sep 5 10:49:38 2010 -0700 iwlagn: add bt_status_read for 5150 Include bt_status_read function pointer for 5150 device Signed-off-by: Wey-Yi Guy commit 448352ae72ef1760c19631a728a3791c1efc52f2 Author: Thomas Gleixner Date: Fri Sep 17 20:27:30 2010 +0200 MAINTAINERS: Add ARM Telechips maintainer Signed-off-by: Thomas Gleixner commit 2aea73ce22b786039906be89b0ae191d4c016c1e Author: Hans J. Koch Date: Fri Sep 17 18:21:36 2010 +0200 ARM: Add board support for Telechips TCC8000-SDK board Add support for the Telechips TCC8000-SDK development board. Signed-off-by: "Hans J. Koch" Signed-off-by: Thomas Gleixner commit 026cec6164901372c3a16b430cd405f0bb6a7c1f Author: Hans J. Koch Date: Fri Sep 17 18:20:11 2010 +0200 ARM: Add common platform devices for TCC8xxx SoCs This patch introduces a first set of platform devices for integrated peripherals of TCC8xxx processors. Drivers for these devices are available and will be posted in a second step. Signed-off-by: "Hans J. Koch" Signed-off-by: Thomas Gleixner commit 8a41fa3b3c89e5bd3c69219ddeee268bdcce886c Author: Hans J. Koch Date: Fri Sep 17 18:18:57 2010 +0200 ARM: Basic IO mappings for mach-tcc8k Map the IO ranges of TCC8xxx peripherals. Signed-off-by: "Hans J. Koch" Signed-off-by: Thomas Gleixner commit 3de7b517dfacf1deb0690dbac28f917643e49975 Author: Hans J. Koch Date: Fri Sep 17 18:17:42 2010 +0200 ARM: Add TCC8xxx system timer Add the system timer using clockevents with the internal TC32 timer. This also adds a clocksource using the same timer. Signed-off-by: "Hans J. Koch" Signed-off-by: Thomas Gleixner commit e9268ef2252c2dfc7e2d0c435826768bb0e549ea Author: Hans J. Koch Date: Fri Sep 17 18:16:29 2010 +0200 ARM: Introduce plat-tcc irq framework Introduce lowlevel interrupt routines. Signed-off-by: "Hans J. Koch" Signed-off-by: Thomas Gleixner commit da15797eaec795bc2a1a9adb441214a6f5ea07fc Author: Hans J. Koch Date: Fri Sep 17 18:15:11 2010 +0200 ARM: Add the clock framework for Telechips TCC8xxx processors. This adds definitions and low-level functions to handle clocks in TCC8xxx processors. Signed-off-by: "Hans J. Koch" Signed-off-by: Thomas Gleixner commit 83ef3338a2ae5d5bd9f5f6803b900b8067660054 Author: Hans J. Koch Date: Fri Sep 17 18:13:56 2010 +0200 ARM: Introduce plat-tcc This patch introduces support for the tcc platform by creating an arch/arm/plat-tcc and arch/arm/mach-tcc8k directories and adding basic include files plus Kconfig and Makefile. Signed-off-by: "Hans J. Koch" Signed-off-by: Thomas Gleixner commit 67c9660831f6b6b76866a0838466c83765ffbbd3 Author: Eric Dumazet Date: Fri Sep 17 11:56:18 2010 -0700 ethtool: change ethtool_set_gro() to use ethtool_op_get_rx_csum To be able to switch on GRO on a device, ethtool_set_gro() checks this device provides a get_rx_csum() method. Some devices dont provide this method, while they do support RX checksumming. This patch allows bonding to support GRO : ethtool -K bond0 gro on Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit b7e1b2039de3a028fba46fbaca58a45c23a417ec Author: Lech Perczak Date: Thu Sep 16 23:19:33 2010 +0200 HID: fix A4Tech RP-649 horizontal scrollwheel Enable fix for their horizontal scroll wheel behaviour, associate it with B8 hack. Signed-off-by: Lech Perczak Signed-off-by: Jiri Kosina commit 457e9d2233bdde5bb5577df3e2d4d48f84c67b66 Author: Amit Kumar Salecha Date: Thu Sep 16 19:14:43 2010 +0000 qlcnic: update version 5.0.10 Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 97f29d8236aa3612986e7e7179282ff460eba686 Author: Amit Kumar Salecha Date: Thu Sep 16 19:14:42 2010 +0000 qlcnic: remove fw version check Don't compare flash and file fw version. Allow to load old fw from file than flashed fw. If file fw is present, don't skip fw re-intialization. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit aec1e8452dc364cffd0333e5632ec482f6322593 Author: Amit Kumar Salecha Date: Thu Sep 16 19:14:41 2010 +0000 qlcnic: vlan lro support LRO + GRO + vlan rx accleration support, performance increases around 20% and cpu utilization reduces around 70% on vlan interface. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit 5718d3b432757ac83f65c50dd61df9c1e0d88e61 Author: Amit Kumar Salecha Date: Thu Sep 16 19:14:40 2010 +0000 qlcnic: vlan gro support GRO support + vlan rx accleration, boost around 9% performance and reduces 25% of cpu utilization on vlan interface. Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller commit d57906633efd58ccd93f056ed436ffde5cb31aa8 Author: Amit Kumar Salecha Date: Thu Sep 16 19:14:39 2010 +0000 qlcnic: support vlan rx accleration Implemented vlan rx accleration in driver. This helps in increasing significant performance and reduces cpu utilization with GRO and LRO. Eric Dumazet: "Its a bit strange you use dev_kfree_skb_any(skb) here." "We run in NAPI mode, so you can use dev_kfree_skb()." Amit: Done. Using dev_kfree_skb(); Signed-off-by: Amit Kumar Salecha Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit 045d3fe766b01921e24e2d4178e011b3b09ad4d6 Author: Martin K. Petersen Date: Fri Sep 10 01:22:07 2010 -0400 [SCSI] sd: Update thin provisioning support Add support for the Thin Provisioning VPD page and use the TPU and TPWS bits to switch between UNMAP and WRITE SAME(16) for discards. If no TP VPD page is present we fall back to old scheme where the max descriptor count combined with the max lba count are used trigger UNMAP. Signed-off-by: Martin K. Petersen Signed-off-by: James Bottomley commit 2b484297e48c3fbb1846fc6ea10036d9465273e7 Author: Trond Myklebust Date: Fri Sep 17 10:56:51 2010 -0400 NFS: Add an 'open_context' element to struct nfs_rpc_ops Signed-off-by: Trond Myklebust commit c0204fd2b8fe047b18b67e07e1bf2a03691240cd Author: Trond Myklebust Date: Fri Sep 17 10:56:51 2010 -0400 NFS: Clean up nfs4_proc_create() Remove all remaining references to the struct nameidata from the low level NFS layers. Again pass down a partially initialised struct nfs_open_context when we want to do atomic open+create. Signed-off-by: Trond Myklebust commit 535918f14176396646b5547b7d1353c932f24f5e Author: Trond Myklebust Date: Fri Sep 17 10:56:51 2010 -0400 NFSv4: Further cleanups for nfs4_open_revalidate() Signed-off-by: Trond Myklebust commit b8d4caddd871758ffa156be51b4c8be82fea470d Author: Trond Myklebust Date: Fri Sep 17 10:56:51 2010 -0400 NFSv4: Clean up nfs4_open_revalidate Remove references to 'struct nameidata' from the low-level open_revalidate code, and replace them with a struct nfs_open_context which will be correctly initialised upon success. Signed-off-by: Trond Myklebust commit f46e0bd34ec002d0727761da52b8fd47f06d4440 Author: Trond Myklebust Date: Fri Sep 17 10:56:50 2010 -0400 NFSv4: Further minor cleanups for nfs4_atomic_open() Signed-off-by: Trond Myklebust commit cd9a1c0e5ac681871d64804f82291649e2a0accb Author: Trond Myklebust Date: Fri Sep 17 10:56:50 2010 -0400 NFSv4: Clean up nfs4_atomic_open Start moving the 'struct nameidata' dependent code out of the lower level NFS code in preparation for the removal of open intents. Instead of the struct nameidata, we pass down a partially initialised struct nfs_open_context that will be fully initialised by the atomic open upon success. Signed-off-by: Trond Myklebust commit cec1921ec9a91b9bc7c083b6ebe47c17552b9a81 Author: Justin P. Mattock Date: Mon Sep 13 12:55:56 2010 -0700 scripts/kconfig/gconf.glade Update broken web addresses. As discussed, remove the DOCTYPE declaration since libglade validates the file against itself.. Signed-off-by: Justin P. Mattock Signed-off-by: Michal Marek commit 859d5024f450686ad0a42ed3c06f2fa20295c9e6 Author: Chuck Lever Date: Fri Sep 17 10:54:37 2010 -0400 SUNRPC: Remove rpcb_getport_sync() Clean up: rpcb_getport_sync() has no more users, so remove it. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 306a075362a288683f6346185f97dd0e06df19da Author: Chuck Lever Date: Fri Sep 17 10:54:37 2010 -0400 NFS: Allow NFSROOT debugging messages to be enabled dynamically As a convenience, introduce a kernel command line option to enable NFSROOT debugging messages. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 8d2321037896aa4868a67f45b2d6ed52b579a48a Author: Chuck Lever Date: Fri Sep 17 10:54:37 2010 -0400 NFS: Clean up nfsroot.c Clean up: now that mount option parsing for nfsroot is handled in fs/nfs/super.c, remove code in fs/nfs/nfsroot.c that is no longer used. This includes code that constructs the legacy nfs_mount_data structure, and code that does a MNT call to the server. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 56463e50d1fc3f070492434cea6303b35ea000de Author: Chuck Lever Date: Fri Sep 17 10:54:37 2010 -0400 NFS: Use super.c for NFSROOT mount option parsing Replace duplicate code in NFSROOT for mounting an NFS server on '/' with logic that uses the existing mainline text-based logic in the NFS client. Add documenting comments where appropriate. Note that this means NFSROOT mounts now use the same default settings as v2/v3 mounts done via mount(2) from user space. vers=3,tcp,rsize=,wsize= As before, however, no version/protocol negotiation with the server is done. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 60ac03685bf513f9d9b6e8e098018b35309ed326 Author: Chuck Lever Date: Fri Sep 17 10:54:37 2010 -0400 NFS: Clean up NFSROOT command line parsing Clean up: To reduce confusion, rename nfs_root_name as nfs_root_parms, as this buffer contains more than just the name of the remote server. Introduce documenting comments around nfs_root_setup(). Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit ed58b2917be24fc8603128e32d50a1378afe66e1 Author: Chuck Lever Date: Fri Sep 17 10:54:37 2010 -0400 NFS: Remove \t from mount debugging message During boot, a random character is displayed instead of a tab. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust commit 2680d722bf2c5f75225dd9acb3ec9e5a9e2652f4 Author: Artem Bityutskiy Date: Fri Sep 17 16:44:28 2010 +0300 UBIFS: introduce new flag for RO due to errors The R/O state may have various reasons: 1. The UBI volume is R/O 2. The FS is mounted R/O 3. The FS switched to R/O mode because of an error However, in UBIFS we have only one variable which represents cases 1 and 3 - 'c->ro_media'. Indeed, we set this to 1 if we switch to R/O mode due to an error, and then we test it in many places to make sure that we stop writing as soon as the error happens. But this is very unclean. One consequence of this, for example, is that in 'ubifs_remount_fs()' we use 'c->ro_media' to check whether we are in R/O mode because on an error, and we print a message in this case. However, if we are in R/O mode because the media is R/O, our message is bogus. This patch introduces new flag - 'c->ro_error' which is set when we switch to R/O mode because of an error. It also changes all "if (c->ro_media)" checks to "if (c->ro_error)" checks, because this is what the checks actually mean. We do not need to check for 'c->ro_media' because if the UBI volume is in R/O mode, we do not allow R/W mounting, and now writes can happen. This is guaranteed by VFS. But it is good to double-check this, so this patch also adds many "ubifs_assert(!c->ro_media)" checks. In the 'ubifs_remount_fs()' function this patch makes a bit more changes - it fixes the error messages as well. Signed-off-by: Artem Bityutskiy commit d85a6d7bdc4eb88b31ca3c276ee5f0f1c8696795 Author: Dzianis Kahanovich Date: Fri Sep 17 16:42:05 2010 +0300 ASoC: Add device table to SH FSI driver Signed-off-by: Dzianis Kahanovich [Modified to move the location of the table] Signed-off-by: Mark Brown commit f68b3b291d39f1e3361b194a95459f9cbdaf31e6 Author: Takashi Iwai Date: Fri Sep 17 14:45:14 2010 +0200 ALSA: hda - Check the external mic pin more strictly for Conexant chips The external mic jack for auto-mic switch must be really an external jack and with a presense-detection capability. This patch makes the check more paranoia. Signed-off-by: Takashi Iwai commit 99ae28bea984df4c38234eb6d2f29a552def6c1b Author: Takashi Iwai Date: Fri Sep 17 14:42:34 2010 +0200 ALSA: hda - Make snd_hda_get_input_pin_attr() helper Make the helper function to give the input-pin attribute for jack connectivity and location. This simplifies checks of input-pin jacks a bit in some places. Signed-off-by: Takashi Iwai commit 3575792e005dc9994f15ae72c1c6f401d134177d Author: Julian Anastasov Date: Fri Sep 17 14:18:16 2010 +0200 ipvs: extend connection flags to 32 bits - the sync protocol supports 16 bits only, so bits 0..15 should be used only for flags that should go to backup server, bits 16 and above should be allocated for flags not sent to backup. - use IP_VS_CONN_F_DEST_MASK as mask of connection flags in destination that can be changed by user space - allow IP_VS_CONN_F_ONE_PACKET to be set in destination Signed-off-by: Julian Anastasov Signed-off-by: Patrick McHardy commit e9d2b064149ff7ef4acbc65a1b9374ac8b218d3e Author: Peter Zijlstra Date: Fri Sep 17 11:28:50 2010 +0200 perf: Undo the per cpu-context timer stuff Revert the timer per cpu-context timers because of unfortunate nohz interaction. Fixing that would have been somewhat ugly, so go back to driving things from the regular tick. Provide a jiffies interval feature for people who want slower rotations. Signed-off-by: Peter Zijlstra Cc: Stephane Eranian Cc: Robert Richter Cc: Yinghai Lu LKML-Reference: <20100917093009.519845633@chello.nl> Signed-off-by: Ingo Molnar commit 917bdd1c9b7b0f4c22f2504c2f0c1074c8ab9df7 Author: Peter Zijlstra Date: Fri Sep 17 11:28:49 2010 +0200 perf: Fix perf_event_exit_cpu_context() Use the right cpu-context.. spotted by preempt warning on hot-unplug Signed-off-by: Peter Zijlstra Cc: Stephane Eranian Cc: Robert Richter LKML-Reference: <20100917093009.461794357@chello.nl> Signed-off-by: Ingo Molnar commit b04243ef7006cda301819f54ee7ce0a3632489e3 Author: Peter Zijlstra Date: Fri Sep 17 11:28:48 2010 +0200 perf: Complete software pmu grouping Aside from allowing software events into a !software group, allow adding !software events to pure software groups. Once we've moved the software group and attached the first !software event, the group will no longer be a pure software group and hence no longer be eligible for movement, at which point the straight ctx comparison is correct again. Signed-off-by: Peter Zijlstra Cc: Stephane Eranian Cc: Robert Richter Cc: Paul Mackerras LKML-Reference: <20100917093009.410784731@chello.nl> Signed-off-by: Ingo Molnar commit d14b12d7adbf214f33eb59f800b5c3d5ed9268e8 Author: Stephane Eranian Date: Fri Sep 17 11:28:47 2010 +0200 perf_events: Fix broken event grouping Events were not grouped anymore. The reason was that in perf_event_open(), the field event->group_leader was initialized before the function looked up the group_fd to find the event leader. This patch fixes this by reordering the code correctly. Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra Cc: Robert Richter LKML-Reference: <20100917093009.360420946@chello.nl> Signed-off-by: Ingo Molnar commit 5637edb2e1c2d13b276748508ae17f319fb7f066 Author: David Henningsson Date: Fri Sep 17 10:58:03 2010 +0200 ALSA: HDA: Sort CXT5066 quirk table It was just a boring day. Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai commit 1feba3b7367b333c3fc7deba638a3a1068f22932 Author: David Henningsson Date: Fri Sep 17 10:52:50 2010 +0200 ALSA: HDA: Fix spelling (change VOSTO to VOSTRO) It was just a boring day. Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai commit 41c89ef3aafea5f35601fa75edba90e7417f604e Author: Takashi Iwai Date: Fri Sep 17 10:26:37 2010 +0200 ALSA: hda - Fix mic attribute check for internal mics Now Windows claims that the BIOS sets pins for internal mics to be BOTH connection instead of FIXED. Signed-off-by: Takashi Iwai commit 9907790aa06bfc04bf78b445e732ea10039c61e4 Author: Charles Chin Date: Fri Sep 17 10:22:32 2010 +0200 ALSA: hda - Fix automatic MIC switching and include dock MIC for IDT codecs Signed-off-by: Charles Chin Signed-off-by: Takashi Iwai commit 6d0aed7a38d06284db2a0e46c0a072b0c1c3299b Author: Jens Axboe Date: Fri Sep 17 10:00:46 2010 +0200 do_mounts: only enable PARTUUID for CONFIG_BLOCK When CONFIG_BLOCK is not enabled: init/do_mounts.c:71: error: implicit declaration of function 'dev_to_part' init/do_mounts.c:71: warning: initialization makes pointer from integer without a cast init/do_mounts.c:73: error: dereferencing pointer to incomplete type init/do_mounts.c:76: error: dereferencing pointer to incomplete type init/do_mounts.c:76: error: dereferencing pointer to incomplete type init/do_mounts.c:102: error: implicit declaration of function 'part_pack_uuid' init/do_mounts.c:104: error: 'block_class' undeclared (first use in this function) Reported-by: Randy Dunlap Signed-off-by: Jens Axboe commit 3ee48b6af49cf534ca2f481ecc484b156a41451d Author: Cliff Wickman Date: Thu Sep 16 11:44:02 2010 -0500 mm, x86: Saving vmcore with non-lazy freeing of vmas During the reading of /proc/vmcore the kernel is doing ioremap()/iounmap() repeatedly. And the buildup of un-flushed vm_area_struct's is causing a great deal of overhead. (rb_next() is chewing up most of that time). This solution is to provide function set_iounmap_nonlazy(). It causes a subsequent call to iounmap() to immediately purge the vma area (with try_purge_vmap_area_lazy()). With this patch we have seen the time for writing a 250MB compressed dump drop from 71 seconds to 44 seconds. Signed-off-by: Cliff Wickman Cc: Andrew Morton Cc: kexec@lists.infradead.org Cc: LKML-Reference: Signed-off-by: Ingo Molnar commit 74704ac6ea402d50c9543cb28247e6d9f521f7ae Author: Jean Pihet Date: Tue Sep 7 09:21:32 2010 +0200 tracing, perf: Add more power related events This patch adds new generic events for dynamic power management tracing: - clock events class: used for clock enable/disable and for clock rate change, - power_domain events class: used for power domains transitions. The OMAP architecture will be using the new events for PM debugging, however the new events are made generic enough to be used by all platforms. Signed-off-by: Jean Pihet Acked-by: Thomas Renninger Cc: discuss@lesswatts.org Cc: linux-pm@lists.linux-foundation.org Cc: Thomas Renninger Cc: Arjan van de Ven Cc: Peter Zijlstra Cc: Len Brown Cc: Kevin Hilman LKML-Reference: Signed-off-by: Ingo Molnar commit 0c796f91a518480fd6696ba2affed1167e840823 Author: Dan Rosenberg Date: Thu Sep 16 22:34:26 2010 -0700 drivers/net/tulip/de4x5.c: fix union member name in DE4X5_GET_REG ioctl This was previously reported as a security issue due to leakage of uninitialized stack memory. Jeff Mahoney pointed out that this is incorrect since the copied data is from a union (rather than a struct). Therefore, this patch is only under consideration for the sake of correctness, and is not security relevant. Signed-off-by: Dan Rosenberg Acked-by: Grant Grundler Signed-off-by: David S. Miller commit cd13539b8bc9ae884e6d8d9374c594adff4304e4 Author: Eric Dumazet Date: Thu Sep 16 02:58:13 2010 +0000 net: shrinks struct net_device commit ab95bfe01 (net: replace hooks in __netif_receive_skb) added rx_handler at wrong place, between two cache line aligned objects, creating a big hole (a full cache line) Move rx_handler and rx_handler_data before rx_queue, filling existing hole. Move master field in the cache line(s) used in receive path. This saves 64 bytes (or L1_CACHE_BYTES), and avoids two possible cache misses in receive path. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 94767632623c7bf5b16a0cf963ec93a8ad9acca4 Author: Eric Dumazet Date: Wed Sep 15 20:25:34 2010 +0000 ip6tnl: get rid of ip6_tnl_lock As RTNL is held while doing tunnels inserts and deletes, we can remove ip6_tnl_lock spinlock. My initial RCU conversion was conservative and converted the rwlock to spinlock, with no RTNL requirement. Use appropriate rcu annotations and modern lockdep checks as well. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit caeda9b926c608702c99f3432aae2c24298c3c1d Author: Stephen Rothwell Date: Thu Sep 16 21:39:16 2010 -0700 net: include inetdevice.h for rcu_dereference_raw api change rcu_dereference_raw() now needs to know the type of its argument. Signed-off-by: Stephen Rothwell Signed-off-by: David S. Miller commit a36c61f9025b8924f99f54d518763bee7aa84085 Author: Krishna Gudipati Date: Wed Sep 15 11:50:55 2010 -0700 [SCSI] bfa: cleanup driver We have flattened the BFA hierarchy and also reduced the number of source and header files we used to have earlier. Signed-off-by: Krishna Gudipati Signed-off-by: James Bottomley commit edaed859e63aac174fcc3fed81886b91bb124661 Author: Swen Schillig Date: Wed Sep 8 14:40:01 2010 +0200 [SCSI] zfcp: Replace status modifier functions. Replace the zfcp_modify__status functions and its accompanying wrappers with dedicated status modifier functions. This eases code readability and maintenance. Signed-off-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit c9ff5d0315231b133a43e5af842bc01fb474f0d7 Author: Christof Schmitt Date: Wed Sep 8 14:40:00 2010 +0200 [SCSI] zfcp: Remove duplicated code from zfcp_ccw_set_online The steps for setting the zfcp_adapter online are the same in zfcp_ccw_set_online and zfcp_ccw_activate. Remove the code duplication by calling zfcp_ccw_activate from zfcp_ccw_set_online. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit a1ca48319a9aa1c5b57ce142f538e76050bb8972 Author: Christof Schmitt Date: Wed Sep 8 14:39:59 2010 +0200 [SCSI] zfcp: Move ACL/CFDC code to zfcp_cfdc.c Move the code evaluating the ACL/CFDC specific errors to the file zfcp_cfdc.c. With this change, all code related to the old access control feature is kept in one file, not split across zfcp_erp.c and zfcp_fsf.c. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit c61b536c97f225a74cf430716fdb243dfafe9d48 Author: Christof Schmitt Date: Wed Sep 8 14:39:58 2010 +0200 [SCSI] zfcp: Reorder FCP I/O and task management handler functions Instead of calling the same handler for both, I/O and task management commands, use different handlers that call a function for the common part. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit 44a24cb3731495336d77f3a955a7004997270dfd Author: Christof Schmitt Date: Wed Sep 8 14:39:57 2010 +0200 [SCSI] zfcp: Change spin_lock_bh to spin_lock_irq to fix lockdep warning With the change to use the data on the SCSI device, iterating through all LUNs/scsi_devices takes the SCSI host_lock. This triggers warnings from the lock dependency checker: ========================================================= [ INFO: possible irq lock inversion dependency detected ] 2.6.34.1 #97 --------------------------------------------------------- chchp/3224 just changed the state of lock: (&(shost->host_lock)->rlock){-.-...}, at: [<00000000003a73f4>] __scsi_iterate_devices+0x38/0xbc but this lock took another, HARDIRQ-unsafe lock in the past: (&(&qdio->req_q_lock)->rlock){+.-...} and interrupts could create inverse lock ordering between them. other info that might help us debug this: [ 24.972394] 2 locks held by chchp/3224: #0: (&(sch->lock)->rlock){-.-...}, at: [<0000000000401efa>] do_IRQ+0xb2/0x1e4 #1: (&adapter->port_list_lock){.-....}, at: [<0000000000490302>] zfcp_erp_modify_adapter_status+0x9e/0x16c [...] ========================================================= [ INFO: possible irq lock inversion dependency detected ] 2.6.34.1 #98 --------------------------------------------------------- chchp/3235 just changed the state of lock: (&(shost->host_lock)->rlock){-.-...}, at: [<00000000003a73f4>] __scsi_iterate_devices+0x38/0xbc but this lock took another, HARDIRQ-unsafe lock in the past: (&(&qdio->stat_lock)->rlock){+.-...} and interrupts could create inverse lock ordering between them. other info that might help us debug this: 2 locks held by chchp/3235: #0: (&(sch->lock)->rlock){-.-...}, at: [<0000000000401efa>] do_IRQ+0xb2/0x1e4 #1: (&adapter->port_list_lock){.-.-..}, at: [<00000000004902f6>] zfcp_erp_modify_adapter_status+0x9e/0x16c [...] To stop this warning, change the request queue lock to disable irqs, not only softirq. The changes are required only outside of the critical "send fcp command" path. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit f8210e34887e1feb977a9b6b8caa086855af40c9 Author: Christof Schmitt Date: Wed Sep 8 14:39:56 2010 +0200 [SCSI] zfcp: Allow midlayer to scan for LUNs when running in NPIV mode Enable the LUN scanning mechanism in the SCSI midlayer: - Do not set the disable_target_scan bit in the FC transport class. - Set max_lun to 0xFFFFFFFF to allow the midlayer scan to include the two-level hierachical LUNs (like 0x40XX40XX00000000, but in SCSI midlayer LUN format). - Set max_id to a high value to allow triggering the SCSI device rescan from sysfs. When running in NPIV mode, zfcp accepts all LUNs in slave_attach. When running in non-NPIV mode, the list of zfcp_unit structs determines which SCSI devices are allowed on the current system. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit b62a8d9b45b971a67a0f8413338c230e3117dff5 Author: Christof Schmitt Date: Wed Sep 8 14:39:55 2010 +0200 [SCSI] zfcp: Use SCSI device data zfcp_scsi_dev instead of zfcp_unit This is the large change to switch from using the data in zfcp_unit to zfcp_scsi_dev. Keeping everything working requires doing the switch in one piece. To ensure that no code keeps using the data in zfcp_unit, this patch also removes the data from zfcp_unit that is now being replaced with zfcp_scsi_dev. For zfcp, the scsi_device together with zfcp_scsi_dev exist from the call of slave_alloc to the call of slave_destroy. The data in zfcp_scsi_dev is initialized in zfcp_scsi_slave_alloc and the LUN is opened; the final shutdown for the LUN is run from slave_destroy. Where the scsi_device or zfcp_scsi_dev is needed, the pointer to the scsi_device is passed as function argument and inside the function converted to the pointer to zfcp_scsi_dev; this avoids back and forth conversion betweeen scsi_device and zfcp_scsi_dev. While changing the function arguments from zfcp_unit to scsi_device, the functions names are renamed form "unit" to "lun". This is to have a seperation between zfcp_scsi_dev/LUN and the zfcp_unit; only code referring to the remaining configuration information in zfcp_unit struct uses "unit". Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit fdbd1c5e27dabfa950d4b0f52a20069aeaf67b9d Author: Christof Schmitt Date: Wed Sep 8 14:39:54 2010 +0200 [SCSI] zfcp: Allow running unit/LUN shutdown without acquiring reference With the change for the LUN data to be part of the scsi_device, the slave_destroy callback will be the final call to the zfcp_erp_unit_shutdown function. The erp tries to acquire a reference to run the action asynchronously and fail, if it cannot get the reference. But calling scsi_device_get from slave_destroy will fail, because the scsi_device is already in the state SDEV_DEL. Introduce a new call into the zfcp erp to solve this: The function zfcp_erp_unit_shutdown_wait will close the LUN and wait for the erp to finish without acquiring an additional reference. The wait allows to omit the reference; the caller waiting for the erp to finish already has a reference that holds the struct in place. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit e4b9857fe628b453983cac89473a11a76a1f5786 Author: Christof Schmitt Date: Wed Sep 8 14:39:53 2010 +0200 [SCSI] zfcp: Remove ZFCP_SYSFS_FAILED macro and implement fcp_lun_show without macro These sysfs attributes will require different functions. Implement them without using macros, so that the open coded functions can be changed later. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit 1daa4eb50fa5cd4c8f9c55452606e786fd42053b Author: Christof Schmitt Date: Wed Sep 8 14:39:52 2010 +0200 [SCSI] zfcp: Move code for managing zfcp_unit devices to new file Move the code for managing zfcp_unit devices to the new file zfcp_unit.c. This is in preparation for the change that zfcp_unit will only track the LUNs configured via unit_add, other data will be moved from zfcp_unit to the new struct zfcp_scsi_dev. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit 57c237731b92fadc7d44824276313ec330b1989b Author: Christof Schmitt Date: Wed Sep 8 14:39:51 2010 +0200 [SCSI] zfcp: Add zfcp private struct as SCSI device driver data Add a new data structure zfcp_scsi_dev that holds zfcp private data for each SCSI device. Use scsi_transport_reserve_device to let the SCSI midlayer automatically allocate this with each SCSI device. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley commit d99e5f488ae28d9dfccc84435f4fd29bd1fe1b9b Author: Brian King Date: Thu Sep 9 16:20:42 2010 -0500 [SCSI] ibmvfc: Log link up/down events By default, ibmvfc does not log any async events in order to avoid flooding the log with them. Improve on this by logging by default events that are not likely to flood the log, such as link up/down. Having these events in the log will improve the ability to debug issues with ibmvfc. Signed-off-by: Brian King Signed-off-by: James Bottomley commit e6a4202aa920a25db76f0e02dabe133179293ec0 Author: Shyam Sundar Date: Tue Sep 7 20:55:32 2010 -0700 [SCSI] qla2xxx: ROM lock recovery if fw hangs while holding the lock. Signed-off-by: Giridhar Malavali Signed-off-by: James Bottomley commit 6de76cfc7db8844bc26ab9a60b20f50ad7851833 Author: Thomas Gleixner Date: Tue Sep 7 14:32:47 2010 +0000 [SCSI] aacraid: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Cc: aacraid@adaptec.com Signed-off-by: James Bottomley commit 9b906779568f009b53254a15b283b53ae4570b93 Author: Nicholas Bellinger Date: Mon Sep 6 17:24:28 2010 -0700 [SCSI] scsi_debug: Convert to use root_device_register() and root_device_unregister() This patch updates the scsi_debug virtual LLD to use root_device_register() and root_device_unregister() from include/linux/device.h instead of device_register() and device_unregister() respectively within scsi_debug_init() and scsi_debug_exit() This simply involved converting the static struct device pseudo_primary into a pointer that is setup by the call to root_device_register(). This patch also contains the correct IS_ERR() conditional check of root_device_register() from within scsi_debug_init(). Thanks to Richard Sharpe and Dmitry Torokhov for their help with this item. Signed-off-by: Nicholas A. Bellinger Acked-by: Douglas Gilbert Signed-off-by: James Bottomley commit 26e34e9e15aa48e9375ea4e97bc4234ad995b7c8 Author: Dan Carpenter Date: Thu Sep 16 20:13:47 2010 +0200 ALSA: usb/mixer: remove bogus cast "uinfo->value.enumerated.item" is an unsigned int. If it's negative when we do the comparison: if ((int)uinfo->value.enumerated.item >= cval->max) then we would read past the end of the array on the next line. I also changed the strcpy() to strlcpy() out of paranoia. Signed-off-by: Dan Carpenter Signed-off-by: Takashi Iwai commit 03a6cddbb81a9de87b40b1d528397a160269264e Author: Joe Perches Date: Mon Sep 13 21:23:57 2010 -0700 staging: Use static const char * const where possible Signed-off-by: Joe Perches Signed-off-by: Greg Kroah-Hartman commit a09eae8550c135a70dda507b5757aac1341b9b44 Author: Charles Clément Date: Fri Sep 10 13:48:05 2010 +0200 Staging: vt665x: remove unused DEF definition Signed-off-by: Charles Clément Signed-off-by: Greg Kroah-Hartman commit dfb7ef7d84fa45270b0138dbe6ab4316b03cc724 Author: Pavan Savoy Date: Fri Sep 10 15:58:55 2010 -0400 staging: ti-st: fix kim platform device id Platform devices tend to have id as -1 when only 1 device exist and a value >=0 when multiple devices exist, since we plan to store all these platform devices if multiple exist, there was a requirement to have id to be >=0. The patch fixes this problem. Signed-off-by: Pavan Savoy Signed-off-by: Greg Kroah-Hartman commit 48c51a8cf484c8d569f97050bbac493c5bc79c2f Author: Andy Shevchenko Date: Wed Sep 15 12:47:18 2010 +0300 staging: brcm80211: use string native library Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 3fb4e3d1ffc4f3ba0188ed326a22dc50bf424df6 Author: Andy Shevchenko Date: Wed Sep 15 12:47:17 2010 +0300 staging: brcm80211: use native ctype library Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 008443def34db1dcc8016763587a288254ea5735 Author: Luis R. Rodriguez Date: Thu Sep 16 15:12:36 2010 -0400 ath9k: fix regression which disabled ps on ath9k The patch titled "ath9k: Add new file init.c" shuffled some code around but in dong so for some reason also removed the revision check for disablign power save. Add this revision check again so we can get power save re-enabled again by default on cards newer than AR5416 and AR5418. $ git describe --contains 556242049cc3992d0ee625e9f15c4b00ea4baac8 v2.6.34-rc1~233^2~49^2~343 This patch has fixes for stable kernels [2.6.34+]. Cc: stable@kernel.org Cc: Paul Stewart Cc: Amod Bodas Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 3fac6dfdcd2b893c22b20a03dd1bf1af8b627c4b Author: Senthil Balasubramanian Date: Thu Sep 16 15:12:35 2010 -0400 ath9k: fix regression which prevents chip sleep after CAB data The patch: commit 293dc5dfdbcc16cde06e40a688394cc8ab083e48 Author: Gabor Juhos Date: Fri Jun 19 12:17:48 2009 +0200 ath9k: remove ath_rx_ps_back_to_sleep helper This helper only clears the SC_OP_WAIT_FOR_{BEACON,CAB} flags. Remove it and clear these flags directly in the approptiate places instead. Changes-licensed-under: ISC Signed-off-by: Gabor Juhos Signed-off-by: John W. Linville introduced a regression which forgot to lift the beacon flag after we received all broadcast and multicast data. This meant we never went to sleep consuming about ~650mW on idle. This pretty much broke power save completely. This patch has fixes for stable kernels [2.6.32+]. Cc: stable@kernel.org Cc: Paul Stewart Cc: Sameer Nanda Cc: Gabor Juhos Cc: Amod Bodas Signed-off-by: Senthil Balasubramanian Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit f01a067d9e4598c71e3c9ee3a84859d2e8af4f8e Author: Luis R. Rodriguez Date: Thu Sep 16 15:12:34 2010 -0400 mac80211: send last 3/5 probe requests as unicast Some buggy APs do not respond to unicast probe requests or send unicast probe requests very delayed so in the worst case we should try to send broadcast probe requests, otherwise we can get disconnected from these APs. Even if drivers do not have filters to disregard probe responses from foreign APs mac80211 will only process probe responses from our associated AP for re-arming connection monitoring. We need to do this since the beacon monitor does not push back the connection monitor by design so even if we are getting beacons from these type of APs our connection monitor currently relies heavily on the way the probe requests are received on the AP. An example of an AP affected by this is the Nexus One, but this has also been observed with random APs. We can probably optimize this later by using null funcs instead of probe requests. For more details refer to: http://code.google.com/p/chromium-os/issues/detail?id=5715 This patch has fixes for stable kernels [2.6.35+]. Cc: stable@kernel.org Cc: Paul Stewart Cc: Amod Bodas Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 3bc3c0d748402e8c1f31b8569f5924d25d7b8e30 Author: Luis R. Rodriguez Date: Thu Sep 16 15:12:33 2010 -0400 mac80211: disable beacon monitor while going offchannel The beacon monitor should be disabled when going off channel to prevent spurious warnings and triggering connection deterioration work such as sending probe requests. Re-enable the beacon monitor once we come back to the home channel. This patch has fixes for stable kernels [2.6.34+]. Cc: stable@kernel.org Cc: Paul Stewart Cc: Amod Bodas Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit d3a910a8e4e846b9a767d35483f4dc7c6de7af82 Author: Luis R. Rodriguez Date: Thu Sep 16 15:12:32 2010 -0400 mac80211: make the beacon monitor available externally This will be used by other components next. The beacon monitor was added as of 2.6.34 so these fixes are applicable only to kernels >= 2.6.34. Cc: stable@kernel.org Cc: Paul Stewart Cc: Amod Bodas Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 4730d5977f3e12b828d354f7752cffd94bdf39e5 Author: Luis R. Rodriguez Date: Thu Sep 16 15:12:31 2010 -0400 mac80211: reset connection idle when going offchannel When we go offchannel mac80211 currently leaves alive the connection idle monitor. This should be instead postponed until we come back to our home channel, otherwise by the time we get back to the home channel we could be triggering unecesary probe requests. For APs that do not respond to unicast probe requests (Nexus One is a simple example) this means we essentially get disconnected after the probes fails. This patch has stable fixes for kernels [2.6.35+] Cc: stable@kernel.org Cc: Paul Stewart Cc: Amod Bodas Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 0c699c3a75d4e8d0d2c317f83048d8fd3ffe692a Author: Luis R. Rodriguez Date: Thu Sep 16 15:12:30 2010 -0400 mac80211: reset probe send counter upon connection timer reset Upon beacon loss we send probe requests after 30 seconds of idle time and we wait for each probe response 1/2 second. We send a total of 3 probe requests before giving up on the AP. In the case that we reset the connection idle monitor we should reset the probe requests count to 0. Right now this won't help in any way but the next patch will. This patch has fixes for stable kernel [2.6.35+]. Cc: stable@kernel.org Cc: Paul Stewart Cc: Amod Bodas Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit be099e82e9cf6d5d65d044e9ef6fc8bee3c7a113 Author: Luis R. Rodriguez Date: Thu Sep 16 15:12:29 2010 -0400 mac80211: add helper for reseting the connection monitor This will be used in another place later. The connection monitor was added as of 2.6.35 so these fixes will be applicable to >= 2.6.35. Cc: stable@kernel.org Cc: Paul Stewart Cc: Amod Bodas Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 48a6a468198aadb54bc5d3fdd065364d43ff5197 Author: Luis R. Rodriguez Date: Thu Sep 16 15:12:28 2010 -0400 ath9k: fix enabling ANI / tx monitor after bg scan ath9k's entire logic with SC_OP_SCANNING is incorrect due to the way mac80211 currently implements the scan complete callback and we handle it in ath9k. This patch removes the flag completely in preference for the SC_OP_OFFCHANNEL which is really what we wanted. The scanning flag was used to ensure we reset ANI to the old values when we go back to the home channel, but if we are offchannel we use some defaults. The flag was also used to re-enable the TX monitor. Without this patch we simply never re-enabled ANI and the TX monitor after going offchannel. This means that after one background scan we are prone to noise issues and if we had a TX hang we would not recover. To get this to work properly we must enable ANI after we have configured the beacon timers, otherwise hardware acts really oddly. This patch has stable fixes which apply down to [2.6.36+], there *may* be a to fix this on older kernels but requires a bit of work since this patch relies on the new mac80211 flag IEEE80211_CONF_OFFCHANNEL which was introduced as of 2.6.36. Cc: stable@kernel.org Cc: Paul Stewart Cc: Amod Bodas Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 52b8ac92496e03d6b5619204d7f3bae6ce6eae45 Author: Luis R. Rodriguez Date: Thu Sep 16 15:12:27 2010 -0400 ath9k: fix regression on beacon loss after bgscan When we return to the home channel we were never reseting our beacon timers, this was casued by the fact that the scanning flag was still on even after we returned to our home channel. There are also other reasons why we would get a reset and if we are not off channel we always need to resynch our beacon timers, because a reset will clear them. This bug is a regression introduced on 2.6.36. The order of the changes are as follows: 5ee08656 - Sat Jul 31 - ath9k: prevent calibration during off-channel activity a0daa0e7 - Tue Jul 27 - Revert "mac80211: fix sw scan bracketing" 543708be - Fri Jun 18 - mac80211: fix sw scan bracketing mcgrof@tux ~/linux-2.6-allstable (git::master)$ git describe \ --contains 5ee0865615f65f84e6ee9174771a6716c29e08e1 v2.6.36-rc1~43^2~34^2~22 mcgrof@tux ~/linux-2.6-allstable (git::master)$ git describe \ --contains a0daa0e7592ada797d6835f11529097aabc27ad2 v2.6.36-rc1~571^2~64^2~13 mcgrof@tux ~/linux-2.6-allstable (git::master)$ git describe \ --contains 543708be320d7df692d24b349ca01a947b340764 v2.6.36-rc1~571^2~107^2~187 So 5ee08656 would have worked if a0daa0e7 was not committed but it was so this means 5ee08656 was broken since it assumed that when we were in the channel change routine the scan flag would be lifted. As it turns out the scan flag will be set when we are already on the home channel. For more details refer to: http://code.google.com/p/chromium-os/issues/detail?id=5715 These issues will need to be considered for our solution on reshifting the scan complete callback location on mac80211 on current development kernel work. This patch has stable fixes which apply down to [2.6.36+] Cc: stable@kernel.org Cc: Paul Stewart Cc: Amod Bodas Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 8ab2cd09fecc8819bbaee2d0fd8f3a092d866ce3 Author: Luis R. Rodriguez Date: Thu Sep 16 15:12:26 2010 -0400 ath9k: fix power save race conditions ath9k has a race on putting the chip into network sleep and having registers read from hardware. The race occurs because although ath9k_ps_restore() locks its own callers it makes use of some variables which get altered in the driver at different code paths. The variables are the ps_enabled and ps_flags. This is easily reprodicible in large network environments when roaming with the wpa_supplicant simple bgscan. You'd get some 0xdeadbeef read out on certain registers such as: ath: timeout (100000 us) on reg 0x806c: 0xdeadbeef & 0x01f00000 != 0x00000000 ath: RX failed to go idle in 10 ms RXSM=0xdeadbeef ath: timeout (100000 us) on reg 0x7000: 0xdeadbeef & 0x00000003 != 0x00000000 ath: Chip reset failed The fix is to protect the ath9k_config(hw, IEEE80211_CONF_CHANGE_PS) calls with a spin_lock_irqsave() which will disable contendors for these variables from interrupt context, timers, re-entry from mac80211 on the same callback, and most importantly from ath9k_ps_restore() which is the only call which will put the device into network sleep. There are quite a few threads and bug reports on these a few of them are: https://bugs.launchpad.net/ubuntu/karmic/+source/linux/+bug/407040 http://code.google.com/p/chromium-os/issues/detail?id=5709 http://code.google.com/p/chromium-os/issues/detail?id=5943 Stable fixes apply to [2.6.32+] Cc: stable@kernel.org Cc: Paul Stewart Cc: Amod Bodas Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville commit 0f529e98498ff1a8bb264958b5fe7c0aa308d5dc Author: Rajkumar Manoharan Date: Thu Sep 16 19:56:55 2010 +0530 ath9k_htc: Fix register read through bulk pipe To optimize register read/write operations, the HTC firmwares were patched to change EP3 and EP4 pipe types from Interrupt to Bulk. So register writes are submitted as bulk urbs, but register reads are not. Also changing the register read endpoint pipe as bulk type when URBs are filled improves the register reads considerably which results in reduced scan time and CPU utilization. Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit 2ca27bcff7127da1aa7dd39cd2a6f7cb187e327f Author: Johannes Berg Date: Thu Sep 16 14:58:23 2010 +0200 mac80211: add p2p device type support When a driver advertises p2p device support, mac80211 will handle it, but internally it will rewrite the interface type to STA/AP rather than P2P-STA/GO since otherwise a lot of paths need to be touched that are otherwise identical. A p2p boolean tells drivers whether or not a given interface will be used for p2p or not. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 074ac8df9f93f2a35a356d92fd7f16cd846f0a03 Author: Johannes Berg Date: Thu Sep 16 14:58:22 2010 +0200 cfg80211/nl80211: introduce p2p device types This adds P2P-STA and P2P-GO as device types so we can distinguish between those and normal STA or AP (respectively) type interfaces. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit f799a301abf77b87133d624164d28dc2b521e99d Author: Rajkumar Manoharan Date: Thu Sep 16 11:40:06 2010 +0530 ath9k_hw: remove warning in ath9k_hw_def_get_num_ant_config This patch fixes following warning drivers/net/wireless/ath/ath9k/eeprom_def.c: In function 'ath9k_hw_def_get_num_ant_config' drivers/net/wireless/ath/ath9k/eeprom_def.c:1425:47: warning: comparison between 'enum ath9k_hal_freq_band' and 'enum ieee80211_band' Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit 65a602dd536ce45814a118322a393b956ea797fb Author: John W. Linville Date: Wed Sep 15 15:40:12 2010 -0400 libertas: correct sparse warnings CHECK drivers/net/wireless/libertas/cfg.c drivers/net/wireless/libertas/cfg.c:493:19: warning: cast to restricted __le16 CHECK drivers/net/wireless/libertas/mesh.c drivers/net/wireless/libertas/mesh.c:577:16: warning: incorrect type in assignment (different base types) drivers/net/wireless/libertas/mesh.c:577:16: expected restricted __le32 [addressable] [assigned] [usertype] id drivers/net/wireless/libertas/mesh.c:577:16: got bool Signed-off-by: John W. Linville commit 9bad82b8ae0e96483507e09463d8520bcfa78cc3 Author: John W. Linville Date: Wed Sep 15 15:26:13 2010 -0400 ath9k: make ath_ant_div_conf_fast_divbias static CHECK drivers/net/wireless/ath/ath9k/recv.c drivers/net/wireless/ath/ath9k/recv.c:1341:6: warning: symbol 'ath_ant_div_conf_fast_divbias' was not declared. Should it be static? Signed-off-by: John W. Linville commit 20c956dfbeec823082054954b2443e736455418b Author: John W. Linville Date: Wed Sep 15 15:16:22 2010 -0400 iwlwifi: fix sparse warning about wrong enum for band parameter drivers/net/wireless/iwlwifi/iwl-scan.c:386:27: warning: mixing different enum types drivers/net/wireless/iwlwifi/iwl-scan.c:386:27: int enum nl80211_band versus drivers/net/wireless/iwlwifi/iwl-scan.c:386:27: int enum ieee80211_band drivers/net/wireless/iwlwifi/iwl-scan.c:435:57: warning: mixing different enum types drivers/net/wireless/iwlwifi/iwl-scan.c:435:57: int enum ieee80211_band versus drivers/net/wireless/iwlwifi/iwl-scan.c:435:57: int enum nl80211_band drivers/net/wireless/iwlwifi/iwl-scan.c:474:53: warning: mixing different enum types drivers/net/wireless/iwlwifi/iwl-scan.c:474:53: int enum ieee80211_band versus drivers/net/wireless/iwlwifi/iwl-scan.c:474:53: int enum nl80211_band drivers/net/wireless/iwlwifi/iwl-scan.c:588:72: warning: mixing different enum types drivers/net/wireless/iwlwifi/iwl-scan.c:588:72: int enum ieee80211_band versus drivers/net/wireless/iwlwifi/iwl-scan.c:588:72: int enum nl80211_band Signed-off-by: John W. Linville commit 2d2080c3c1d52e186166afc3efe5067291e618bf Author: Johannes Berg Date: Wed Sep 15 15:13:13 2010 +0200 mac80211: set running state earlier When an interface is brought up, the recent changes to allow changing type-while-up only set the running bit after everything was done. This broke a number of things, including idle calculation for monitor interfaces, and it also broke WDS station insertion (although nobody noticed yet). Thus, change the code to set the running bit earlier, but keep it after the driver's add_interface was called because otherwise drivers may iterate over interfaces they haven't fully set up yet. Reported-by: Rajkumar Manoharan Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 46a5ebaf02d69e26ee0f47a0b8d2d9bc619240d4 Author: Johannes Berg Date: Wed Sep 15 13:28:15 2010 +0200 cfg80211/mac80211: use lockdep_assert_held Instead of using a WARN_ON(!mutex_is_locked()) use lockdep_assert_held() which compiles away completely when lockdep isn't enabled, and also is a more accurate assertion since it checks that the current thread is holding the mutex. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit f5521b13880f4f4f612e1d20dd4f565122d16e04 Author: Johannes Berg Date: Tue Sep 14 22:06:53 2010 +0200 mac80211: use correct station flags lock This code is modifying the station flags, and as such should hold the flags lock so it can do so atomically vs. other flags modifications and readers. This issue was introduced when this code was added in eccb8e8f, as it used the wrong lock (thus not fixing the race that was previously documented in a comment.) Cc: stable@kernel.org [2.6.31+] Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 3905751243fd84340e027672d2f603e9009d490e Author: Ben Greear Date: Tue Sep 14 12:46:04 2010 -0700 ath9k: Print rxfilter in debugfs. Print raw and decoded rxfilter in debufs 'wiphy' file. Also, move variable-length printouts to bottom of file to make bounds checking easier. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit cfda669519241fccd5aa66c5a12bdae3dd04d5cd Author: Ben Greear Date: Tue Sep 14 12:00:22 2010 -0700 ath9k: calcrxfilter should take multiple VIFs into account. When there is more than one VIF, listen for all beacons and ensure ATH9K_RX_FILTER_MCAST_BCAST_ALL is set. Signed-off-by: Ben Greear Signed-off-by: John W. Linville commit a7b47b9bb257051d4097f7d6c4e62c90c520b0c5 Author: Agustin March Date: Thu Sep 16 15:12:03 2010 -0300 staging: usbip: resolved a space in a comment Removed a space in a comments lines at #459 Signed-off-by: Agustin March Signed-off-by: Greg Kroah-Hartman commit 3760c621fd2c0cf4185c3e2a0817c3e95d9cff48 Author: Joe Perches Date: Sat Sep 11 22:10:57 2010 -0700 staging: msm: Remove pr_ uses of KERN_ Signed-off-by: Joe Perches Signed-off-by: Greg Kroah-Hartman commit a871869245d79ab8d8ee465139144c7cb89e1854 Author: Al Cho Date: Thu Sep 16 11:51:48 2010 +0800 staging: keucr: fix keucr lost disconnect keucr lost the disconnect, so keucr crash when plug-in and then plug-out SD-card quickly. unmark the part of usb disconnect Signed-off-by: Al Cho Signed-off-by: Greg Kroah-Hartman commit b411f12174af8ccea513bd1cc2ea9f80875fb648 Author: Clelia V. Korol Date: Thu Sep 16 15:00:19 2010 -0300 staging: vt6656: Fixed indentation with spaces Fixed the last 5 lines, indented with spaces, replacing spaces with tabs. Signed-off-by: Clelia V. Korol Signed-off-by: Greg Kroah-Hartman commit c3aca01be6c5f8c48b34bfc0eb11ac2a0cbe0403 Author: Ema Cuevas Date: Thu Sep 16 15:06:38 2010 -0300 staging: vt6656: removed dummy errors like extra spaces As reported by checkpatch. Signed-off-by: Ema Cuevas Signed-off-by: Greg Kroah-Hartman commit cd74ea33e39a3c680d8f56fb1730db6dad8d5933 Author: matias Date: Thu Sep 16 15:11:28 2010 -0300 staging: vt6656: delete some parenthesis I remove parenthesis for a return variable, and also delete a space and tab the code line Signed-off-by: matias Signed-off-by: Greg Kroah-Hartman commit 357bcdfb45da793b7e5b39ce349bb2f7df08bcc2 Author: Emanuel Mariano Ravera Date: Thu Sep 16 15:11:41 2010 -0300 staging: vt6656: Space Added after definition of Variable MSG_LEVEL_INFO Added an space after the definition of the variable MSG_LEVEL_INFO on line 43 Signed-off-by: Emanuel Mariano Ravera Signed-off-by: Greg Kroah-Hartman commit b168ae4d4b5686203849ae41cfdb1f77f9522c4b Author: Diego H. Iglesias Date: Thu Sep 16 15:14:18 2010 -0300 staging: vt6656: removed not required parentheses. Removed not required parentheses in return statements. Signed-off-by: Diego H. Iglesias Signed-off-by: Greg Kroah-Hartman commit 2503a26554c7e73c544fc97f47c1d41faa88bd07 Author: Vasiliy Kulikov Date: Sun Sep 12 22:56:35 2010 +0400 staging: comedi: fix signess bug ai_count and ao_counter are unsigned, check for < 0 doesn't make sense. Cast them to int. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit cae16a1742ad3cc19f15e78b821b94448e330ad9 Author: Vasiliy Kulikov Date: Sun Sep 12 22:56:51 2010 +0400 staging: crystalhd: fix signed bug chd_dec_major is unsigned, so check chd_dec_major < 0 doesn't make sense. Since it is used as signed, declare it as int. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit 3850a8ae43a1d93cda1f9a9132d41b98d825f6a3 Author: Vasiliy Kulikov Date: Sun Sep 12 22:56:57 2010 +0400 staging: solo6010: fix signess bug video_nr is unsigned, so check video_nr >= 0 doesn't make sense. The only "negative" value may be -1, so explicitly check for it. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman commit 2427924cb02c4886ec298094d18d15eb511ebc14 Author: Randy Dunlap Date: Sat Sep 11 16:00:12 2010 -0700 staging: ST_BT depends on RFKILL Fix kconfig unmet dependency warning: warning: (ST_BT && STAGING && !STAGING_EXCLUDE_BUILD && BT) selects TI_ST which has unmet direct dependencies (RFKILL) Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit 5fe1f1edb916aa4f573563449ceccd1b468aedda Author: Randy Dunlap Date: Tue Sep 14 15:39:50 2010 -0700 staging/bcm: fix build for CONFIG_PM not enabled Handle build case of CONFIG_PM not being enabled. drivers/staging/bcm/InterfaceInit.c:280: error: 'struct usb_device' has no member named 'autosuspend_delay' Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit 3e8acee461f3bdcec0a0a5cbf2886710a21a6662 Author: Randy Dunlap Date: Tue Sep 14 15:39:58 2010 -0700 staging/bcm: fix printk format warnings Fix lots of printk format warnings in bcm. Here is a sample of them: drivers/staging/bcm/CmHost.c:1955: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'long unsigned int' drivers/staging/bcm/CmHost.c:1955: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int' drivers/staging/bcm/CmHost.c:1955: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'long unsigned int' drivers/staging/bcm/LeakyBucket.c:85: warning: format '%d' expects type 'int', but argument 4 has type 'long int' drivers/staging/bcm/LeakyBucket.c:85: warning: format '%d' expects type 'int', but argument 3 has type 'long int' drivers/staging/bcm/LeakyBucket.c:85: warning: format '%d' expects type 'int', but argument 4 has type 'long int' Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman commit e23f773ee481aac96814aa9a4dbb0a7a4e0e9a7a Author: Randy Dunlap Date: Tue Sep 14 15:41:41 2010 -0700 staging/keucr: fix build when CONFIG_PM is not enabled keucr driver has a build error when CONFIG_PM is not enabled, so fix that. drivers/staging/keucr/usb.c:42: error: 'struct us_data' has no member named 'suspend_resume_hook' drivers/staging/keucr/usb.c:43: error: 'struct us_data' has no member named 'suspend_resume_hook' drivers/staging/keucr/usb.c:64: error: 'struct us_data' has no member named 'suspend_resume_hook' drivers/staging/keucr/usb.c:65: error: 'struct us_data' has no member named 'suspend_resume_hook' Signed-off-by: Randy Dunlap Cc: Al Cho Signed-off-by: Greg Kroah-Hartman commit 73115300353c7a48022c2f6260a4a9002393a784 Author: Randy Dunlap Date: Tue Sep 14 15:41:48 2010 -0700 staging/keucr: update TODO list and ask question about it Update keucr TODO with additional work items. Signed-off-by: Randy Dunlap Cc: Al Cho Signed-off-by: Greg Kroah-Hartman commit fa1ae16c97d25bb57ed9e1971b9e814da6a290bd Author: Andy Shevchenko Date: Sat Sep 11 17:17:05 2010 +0300 staging: ath6kl: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit d225eef71c0dccdcbf31016820029d835a13b9e3 Author: Andy Shevchenko Date: Sat Sep 11 17:17:08 2010 +0300 staging: octeon: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 28dc55bc9a6c1ab2a80ee2daa935be4598e0a6f6 Author: Andy Shevchenko Date: Sat Sep 11 17:17:09 2010 +0300 staging: otus: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit ada543b76ae89ce29f87c3f9854b11d07b692f08 Author: Andy Shevchenko Date: Sat Sep 11 17:17:10 2010 +0300 staging: rt2870: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 0ce53f3d153ca0bbec99e1980a6617f192ef69a9 Author: Andy Shevchenko Date: Sat Sep 11 17:17:11 2010 +0300 staging: rtl8712: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit ff5cb20b7b3a58122207e14f23f508d2e3b4b25d Author: Andy Shevchenko Date: Sat Sep 11 17:17:07 2010 +0300 staging: cxt1e1: use '%pMF' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 3c02dc22a2559f1eab7cb261d106bab9c5de7938 Author: Andy Shevchenko Date: Sat Sep 11 17:17:12 2010 +0300 staging: vt6655: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit ce3d824031d28fbb9d6110e22f560f0344f639d3 Author: Andy Shevchenko Date: Sat Sep 11 17:17:13 2010 +0300 staging: wlags49_h2: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit aa4d282cba3b358bab1507895910d872f8fa7baf Author: Andy Shevchenko Date: Sat Sep 11 17:17:04 2010 +0300 staging: rt2860: change plain format of mac address to %pM in *printf() There are many locations where MAC or BSSID is printed. The plain format is used in such places. *printf() in kernel recognizes %pM, %pMF and %pm format parameters to print out 6-byte array as MAC address. This patch changes plain format to custom %pM which is widely used in kernel. Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman commit 040e539e8e8d5585e1c3d7d15fa7215d3a691258 Author: Bruno Randolf Date: Wed Sep 8 16:05:04 2010 +0900 ath9k: Use common ath key management functions Use key management functions which have been moved to ath/key.c and remove ath9k copies of these functions and other now unused definitions. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 781f3136ff4cdd2b33149f2295fefa21f77b1c56 Author: Bruno Randolf Date: Wed Sep 8 16:04:59 2010 +0900 ath5k: Use common crypt capabilities flags Replace ah_aes_support and ah_combined_mic with common ath_crypt_caps ATH_CRYPT_CAP_CIPHER_AESCCM and ATH_CRYPT_CAP_MIC_COMBINED. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 117675d06ad2dd16fcf466669ba9700a8d589ea3 Author: Bruno Randolf Date: Wed Sep 8 16:04:54 2010 +0900 ath/ath9k: Replace common->splitmic with a flag Replace common->splitmic with ATH_CRYPT_CAP_MIC_COMBINED flag. splitmic has to be used when the ATH_CRYPT_CAP_MIC_COMBINED capability flag is not set. Signed-off-by: Bruno Randolf Acked-by: Bob Copeland Signed-off-by: John W. Linville commit d8878f83cf1cc0061e8b3bcf7dbd589410a51039 Author: Bruno Randolf Date: Wed Sep 8 16:04:49 2010 +0900 ath5k: Remove old ath5k key handling functions Remove the old ath5k key handling functions, since we now use the key management in ath common. Signed-off-by: Bruno Randolf Acked-by: Bob Copeland Signed-off-by: John W. Linville commit e0f8c2a9b879e1e65d588a40a3c88db69a7d6956 Author: Bruno Randolf Date: Wed Sep 8 16:04:43 2010 +0900 ath5k: Use common ath key management functions Use common ath key management functions in ath5k. This fixes problems with HW encryption in AP mode, which was broken in the ath5k implementation. Before (with the ath5k implementation) only one client could connect to the AP using HW encryption and WPA. When a second client connected, the first client was not able to send/receive any more packets. Because of the problems with HW encryption, software encryption was always used in AP mode, which resulted in a high CPU load (and/or low thruput) on embedded devices. Instead of trying to fix the implementation in ath5k it makes more sense to share the code with ath9k. This also enables HW encryption for AP mode again. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 1bba5b7329e15555dab90071b24ca84d0afcc635 Author: Bruno Randolf Date: Wed Sep 8 16:04:38 2010 +0900 ath: Copy key cache management functions from ath9k to ath Copied the key cache management functions from ath9k (common.c and hw.c) to ath/key.c so we can use them from ath5k, later. Minor changes have been made: - renamed ath9k_* to ath_* - replaced ah->caps.keycache_size with common->keymax - removed ATH9K_IS_MIC_ENABLED since it is always true. - the AR_PCU_MIC_NEW_LOC_ENA flag is replaced with (splitmic == 0). Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 34a1305137f484ee1806df5a00b9d8ee8d4ef758 Author: Bruno Randolf Date: Wed Sep 8 16:04:33 2010 +0900 ath: Copy cryptographic capability flags into ath This will be used later in this patch series. Signed-off-by: Bruno Randolf Signed-off-by: John W. Linville commit 9c376639297d3dd82d40e54c9cdca8da9dfc22f1 Author: Joe Perches Date: Fri Aug 20 15:13:59 2010 -0700 include/net/cfg80211.h: wiphy_ messages use dev_printk The output becomes: [ 41.261941] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' Signed-off-by: Joe Perches Signed-off-by: John W. Linville commit dd3932eddf428571762596e17b65f5dc92ca361b Author: Christoph Hellwig Date: Thu Sep 16 20:51:46 2010 +0200 block: remove BLKDEV_IFL_WAIT All the blkdev_issue_* helpers can only sanely be used for synchronous caller. To issue cache flushes or barriers asynchronously the caller needs to set up a bio by itself with a completion callback to move the asynchronous state machine ahead. So drop the BLKDEV_IFL_WAIT flag that is always specified when calling blkdev_issue_* and also remove the now unused flags argument to blkdev_issue_flush and blkdev_issue_zeroout. For blkdev_issue_discard we need to keep it for the secure discard flag, which gains a more descriptive name and loses the bitops vs flag confusion. Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe commit 01ea50638bc04ca5259f5711fcdedefcdde1cf43 Author: Signed-off-by: Jan Kara Date: Thu Sep 16 20:36:36 2010 +0200 block: Fix race during disk initialization When a new disk is being discovered, add_disk() first ties the bdev to gendisk (via register_disk()->blkdev_get()) and only after that calls bdi_register_bdev(). Because register_disk() also creates disk's kobject, it can happen that userspace manages to open and modify the device's data (or inode) before its BDI is properly initialized leading to a warning in __mark_inode_dirty(). Fix the problem by registering BDI early enough. This patch addresses https://bugzilla.kernel.org/show_bug.cgi?id=16312 Cc: stable@kernel.org Reported-by: Larry Finger Signed-off-by: Jan Kara Signed-off-by: Jens Axboe commit b23909695c33f53df5f1d16696b1aa5b874c1904 Author: Changli Gao Date: Thu Sep 16 19:55:03 2010 +0200 netfilter: nf_conntrack: fix the hash random initializing race nf_conntrack_alloc() isn't called with nf_conntrack_lock locked, so hash random initializing code maybe executed more than once on different CPUs. Signed-off-by: Changli Gao Signed-off-by: Patrick McHardy commit ed0b6d7581b54455062f09ccac123814e70cd02f Author: Changli Gao Date: Thu Sep 16 19:47:51 2010 +0200 netfilter: nf_nat: no IP_NAT_RANGE_MAP_IPS flags when alloc_null_binding() When alloc_null_binding(), no IP_NAT_RNAGE_MAP_IPS in flags means no IP address translation is needed. It isn't necessary to specify the address explicitly. Signed-off-by: Changli Gao Signed-off-by: Patrick McHardy commit 99ad3c53b36a056a472927de9c79eda231ecc6fe Author: Changli Gao Date: Thu Sep 16 19:45:19 2010 +0200 netfilter: nf_nat_core: don't check if the tuple is used if there is no other choice Eliminate nf_nat_used_tuple() to save some CPU cycles when there is no other choice. Signed-off-by: Changli Gao Signed-off-by: Patrick McHardy commit 70a851667dbd7aa3f7be9609d6580ca9861230b3 Author: Changli Gao Date: Thu Sep 16 19:37:30 2010 +0200 netfilter: use NFPROTO_IPV4 instead of AF_INET The field family of xt_target should be NFPROTO_IPV4, though NFPROTO_IPV4 and AF_INET are the same. Signed-off-by: Changli Gao Signed-off-by: Patrick McHardy commit 30ea098fc000bb05081a1999269658f1a88af36a Author: Takashi Iwai Date: Thu Sep 16 18:47:56 2010 +0200 ALSA: hda - Fix input-pin setup for Realtek codecs Through the transition of autocfg to individual inputs array, I forgot to rewrite the argument passed to alc_set_input_pin(). This resulted in wrongly setup input pins. Fixed now. Signed-off-by: Takashi Iwai commit 5855fb8076e784a657bc2441cd29f166c7c1ea8c Author: Takashi Iwai Date: Thu Sep 16 18:24:02 2010 +0200 ALSA: hda - Fix initialization of secondary headphone and speaker The secondary or later headphones or speakers aren't initialized preoprly for some codecs. Signed-off-by: Takashi Iwai commit 31915ab4cbf507aadab40847cf9989da5e88b090 Author: Heiko Carstens Date: Thu Sep 16 14:42:25 2010 +0200 sched: Remove branch hints within context_switch() With 710390d9 "sched: Optimize branch hint in context_switch()" the branch hint logic within context_switch() got inversed. In fact the hints "if (likely(!mm))" and "if (likely(!prev->mm))" mean that it is likely that the previous and next task are kernel threads. That assumption is certainly counter intuitive, but Tim has shown that at least with his workload this is true. Nevertheless the truth is: it depends on the current workload. So just remove the annotations which also improves readability. Reported-by: Tim Blechmann Signed-off-by: Heiko Carstens Cc: Peter Zijlstra Cc: Mike Galbraith LKML-Reference: <20100916124225.GA2209@osiris.boeblingen.de.ibm.com> Signed-off-by: Ingo Molnar commit 4c62ed9b554aa32180a5d697acc7ab8f774b549f Author: Kuninori Morimoto Date: Thu Sep 16 13:07:06 2010 +0900 ASoC: da7210: code clean up Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 0ce75aa4fe845a8dbbf949cb31e15c06a503b860 Author: Kuninori Morimoto Date: Thu Sep 16 13:06:40 2010 +0900 ASoC: ak4642: code clean up Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 19c7ac27a1e6a37f5fb5810ad8ac780c62a204c4 Author: Mark Brown Date: Wed Sep 15 18:22:40 2010 +0100 ASoC: Add platform listing to debugfs List registered platforms in debugfs to improve debugability of machine drivers. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit f320878032be5c755509583c8a24b57d2ee50b20 Author: Mark Brown Date: Wed Sep 15 18:19:07 2010 +0100 ASoC: Add DAI list to debugfs Allow the user to inspect the list of registered DAIs at runtime to improve diagnostics for machine driver setup. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit c3c5a19a50866869996cc219aed2021acf091d6e Author: Mark Brown Date: Wed Sep 15 18:15:14 2010 +0100 ASoC: Add debugfs listing of registered CODECs Help with diagnostics for machine driver setup by listing all the registered CODECs in debugfs. Signed-off-by: Mark Brown Acked-by: Liam Girdwood commit 1ec5584e3edf9c4bf2c88c846534d19cf986ba11 Author: Arnd Bergmann Date: Sun Aug 15 21:50:52 2010 +0200 libfs: use generic_file_llseek for simple_attr Simple attribute files need to be seekable to allow resetting the file for another read. Signed-off-by: Arnd Bergmann commit a0572d93c13d28cc25b2c286ec9378eeb4ddd46c Author: Arnd Bergmann Date: Sun Aug 15 18:32:42 2010 +0200 mac80211: disallow seeks in minstrel debug code No need for seek here, so let's just use nonseekable_open. Signed-off-by: Arnd Bergmann commit d9d2e9d5c9eead1f73f92f5fc03424dab90b6c95 Author: Arnd Bergmann Date: Sun Aug 15 18:51:56 2010 +0200 lirc: make chardev nonseekable There does not seem to be a need for lirc to allow seeking on the file descriptor, so let's just disallow this before users start relying on it. Signed-off-by: Arnd Bergmann commit aadbd4360911d7166dc04c5a4e5520b2c7914c73 Author: Arnd Bergmann Date: Tue Jul 6 23:11:07 2010 +0200 viotape: use noop_llseek Some applications try to seek on tape devices and fail if they return an error. Since we want to change the default llseek action to no_llseek, viotape needs to be changed to use noop_llseek explicitly. Signed-off-by: Arnd Bergmann commit cb3b9cf818070df1bf592b71275bcf99d8edefcb Author: Arnd Bergmann Date: Tue Jul 6 23:03:55 2010 +0200 raw: use explicit llseek file operations The raw_fops may need to seek, so there should be an explicit reference to default_llseek. raw_ctl_fops does not contain a read or write method, so we use noop_llseek to ignore seeking requests without an error. Signed-off-by: Arnd Bergmann commit 275bd41a6da179b4493171fa65eeeb2a9e47b316 Author: Arnd Bergmann Date: Tue Jul 6 22:54:51 2010 +0200 ibmasmfs: use generic_file_llseek The default for llseek will change to no_llseek, so ibmasmfs needs to add explicit .llseek assignments. Since we're dealing with regular files from a VFS perspective, use generic_file_llseek. Signed-off-by: Arnd Bergmann commit fe3b79dfdc34e562b8378fa958a503a2d5b077ff Author: Arnd Bergmann Date: Tue Jul 6 22:40:19 2010 +0200 spufs: use llseek in all file operations The default for llseek is changing, so we need explicit operations everywhere. Signed-off-by: Arnd Bergmann Cc: Jeremy Kerr Cc: linuxppc-dev@ozlabs.org commit c0b0aca0e0e8c479c43c1e126cddc5fc82b2803a Author: Arnd Bergmann Date: Tue Jul 6 19:16:33 2010 +0200 arm/omap: use generic_file_llseek in iommu_debug In future kernels, debugfs files need to specify the llseek operation explicitly to allow seeking. This sets the llseek operation in the omap iommu debugfs files to generic_file_llseek, which is appropriate for files using simple_read_from_buffer. Signed-off-by: Arnd Bergmann Cc: Tony Lindgren Cc: linux-omap@vger.kernel.org commit 05271ec424d526968d75b4dd9860f8078bcff0a6 Author: Arnd Bergmann Date: Tue Jul 6 19:10:26 2010 +0200 lkdtm: use generic_file_llseek in debugfs When the default llseek behavior gets changed to not allowing seek, all file operations that rely on the current behaviour need to use an explicit .llseek operation. The files that lkdtm uses in debugfs are regular files and they get read using simple_read_from_buffer, so generic_file_llseek is the right operation. Signed-off-by: Arnd Bergmann commit 2b18ab36cf7e956fb5b5ee12847e94fc66d496f4 Author: Arnd Bergmann Date: Tue Jul 6 19:05:31 2010 +0200 net/wireless: use generic_file_llseek in debugfs The default llseek operation is changing from default_llseek to no_llseek, so all code relying on the current behaviour needs to make that explicit. The wireless driver infrastructure and some of the drivers make use of generated debugfs files, so they cannot be converted by our script that automatically determines the right operation. All these files use debugfs and they typically rely on simple_read_from_buffer, so the best llseek operation here is generic_file_llseek. Signed-off-by: Arnd Bergmann Cc: "John W. Linville" Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org commit dc880abef75e7c62c9048171f5112500f36a9244 Author: Arnd Bergmann Date: Tue Jul 6 18:54:47 2010 +0200 drm: use noop_llseek The drm device drivers currently allow seeking on the character device but never care about the actual file position. When we change the default llseek operation to be no_llseek, calling llseek on a drm device would return an error condition, which is an API change. Explicitly setting noop_llseek lets us keep the current API. Signed-off-by: Arnd Bergmann Cc: David Airlie Cc: dri-devel@lists.freedesktop.org commit 5d8e3451d172441ac9f4aa1d0ff8706412bc7deb Author: Kuninori Morimoto Date: Wed Sep 15 06:38:07 2010 +0000 ARM: mach-shmobile: modify wrong array size of div6_reparent_clks Signed-off-by: Kuninori Morimoto Reviewed-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 4437ecdc7190302ed02fb1467c116aff29c325b2 Author: Peter Ujfalusi Date: Thu Sep 16 10:26:54 2010 +0300 ALSA: core: Allow card id change to the same string When user want to change the card id to the same string on the card via /sys/class/sound/cardX/id, do not report error. Instead return with success without doing anything. Signed-off-by: Peter Ujfalusi Signed-off-by: Takashi Iwai commit 0238a0d8c3846f5c1f9db0dabe504481751e58e8 Author: Paul Mundt Date: Thu Sep 16 17:16:31 2010 +0900 usb: Fix up r8a66597-hcd section mismatches. The _remove() routine is flagged __init_or_module, despite only being used in a __devexit context. As the rest of the driver is already balanced out with __devinit, switch to __devexit and __devexit_p() wrapping. Signed-off-by: Paul Mundt commit 25ab998e2eff46d2e6ede80c9fc02a349fa005a3 Author: Paul Mundt Date: Thu Sep 16 17:14:40 2010 +0900 mfd: Fix up section mismatches in SH SDHI. The current probe/remove definitions are split between __init and __devexit, make them consistent by switching to __devinit. Signed-off-by: Paul Mundt commit d71415e88447f31ec63026e69b64a7e99465b7f4 Author: Arnd Bergmann Date: Tue Sep 14 19:35:00 2010 +0000 sh: kill big kernel lock The only BKL user in arch/sh protects a single bit, so we can trivially replace it with test_and_set_bit. Signed-off-by: Arnd Bergmann Cc: Paul Mundt Cc: linux-sh@vger.kernel.org Signed-off-by: Paul Mundt commit dd210503b77ae04adfdb25ca45536c4f7e33edb1 Author: Guennadi Liakhovetski Date: Tue Sep 14 14:48:54 2010 +0000 fbdev: sh_mobile_lcdc: reconfigure the framebuffer, when free Currently the sh_mobile_lcdc driver only reconfigures the hardware interface, when a new monitor is plugged in. This patch adds support for dynamic framebuffer reconfiguration, when no user is holding the framebuffer device node open. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 7c996361ef0d02ef8c1435902c909d14195adcdc Author: Yinghai Lu Date: Thu Sep 16 00:20:36 2010 -0700 arm, memblock: Fix the sparsemem build Stephen Rothwell reported this build failure: arch/arm/mm/init.c: In function 'arm_memory_present': arch/arm/mm/init.c:260: warning: ISO C90 forbids mixed declarations and code Caused by commit 719c1514f2 ("memblock/arm: Use new accessors") which forgot a closing brace on a new for_each_memblock() in arm_memory_present(). Reported-by: Stephen Rothwell Signed-off-by: Yinghai Lu Cc: Peter Zijlstra Cc: Benjamin Herrenschmidt Cc: Russell King LKML-Reference: <4C91C544.5050907@kernel.org> Signed-off-by: Ingo Molnar commit 2786c4e5e54802c34297e55050fef3e862a27b3f Author: Vivek Goyal Date: Wed Sep 15 17:06:38 2010 -0400 blkio: Documentation Update o Documentation update Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 8e89d13f4ede2467629a971618537430fafaaea3 Author: Vivek Goyal Date: Wed Sep 15 17:06:37 2010 -0400 blkio: Implementation of IOPS limit logic o core logic of implementing IOPS throttling. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 7702e8f45b0a3bb262b9366c60beb5445758d94c Author: Vivek Goyal Date: Wed Sep 15 17:06:36 2010 -0400 blk-cgroup: cgroup changes for IOPS limit support o cgroup changes for IOPS throttling rules. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit e43473b7f223ec866f7db273697e76c337c390f9 Author: Vivek Goyal Date: Wed Sep 15 17:06:35 2010 -0400 blkio: Core implementation of throttle policy o Actual implementation of throttling policy in block layer. Currently it implements READ and WRITE bytes per second throttling logic. IOPS throttling comes in later patches. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 4c9eefa16c6f124ffcc736cb719b24ea27f85017 Author: Vivek Goyal Date: Wed Sep 15 17:06:34 2010 -0400 blk-cgroup: Introduce cgroup changes for throttling policy o cgroup chagnes for throttle policy. o Introduces READ and WRITE bytes per second throttling rules. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 062a644d6121d5e2f51c0b2ca0cbc5155ebf845b Author: Vivek Goyal Date: Wed Sep 15 17:06:33 2010 -0400 blk-cgroup: Prepare the base for supporting more than one IO control policies o This patch prepares the base for introducing new IO control policies. Currently all the code is written knowing there is only one policy and that is proportional bandwidth. Creating infrastructure for newer policies to come in. o Also there were many functions which were generated using macro. It was very confusing. Got rid of those. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit af41d7bd9b685ab4e8f930627874ba4f4728e128 Author: Vivek Goyal Date: Wed Sep 15 17:06:32 2010 -0400 blk-cgroup: Kill the header printed at the start of blkio.weight_device file o Kill extra "dev weight" header which is printed when somebody reads blkio.weight_device file. This really seems to be out of convention. No other blkio files are printing any header at the start of file. I think it is ok to just print values and how to interpret values should be part of documentation. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe commit 38b6f45a97bbb8536cc7d095b577f580bd4d643e Author: Jens Axboe Date: Thu Sep 16 08:33:54 2010 +0200 core: match_dev_by_uuid() should not be marked __init It is also called outside the scope of init functions. Stephen reports: WARNING: init/mounts.o(.text+0x21a): Section mismatch in reference from the function name_to_dev_t() to the function .init.text:match_dev_by_uuid() The function name_to_dev_t() references the function __init match_dev_by_uuid(). This is often because name_to_dev_t lacks a __init annotation or the annotation of match_dev_by_uuid is wrong. Reported-by: Stephen Rothwell Signed-off-by: Jens Axboe commit 8786fb70ccb36c7cff64680bb80c46d3a09d44db Author: Jens Axboe Date: Thu Sep 16 08:27:34 2010 +0200 aic7xxx_old: removed unused 'req' variable After the patch "block: remove spurious uses of REQ_HARDBARRIER", we no longer use 'req' in aic7xxx_buildscb(). Kill it. Reported-by: Stephen Rothwell Signed-off-by: Jens Axboe commit 2610a25406087ef797f4187e7f82dd04335056c7 Author: Namhyung Kim Date: Thu Sep 16 12:55:57 2010 +0900 sg: fix a warning in blk_rq_aligned() call 2nd argument of blk_rq_aligned() has changed to 'unsigned long' by the previous commit 'block: fix an address space warning in blk-map.c'. That commit neglected to update a user of that function. Signed-off-by: Namhyung Kim Signed-off-by: Jens Axboe commit f5854fad395b93071292bff27c0121b6e32215e0 Author: Dmitry Torokhov Date: Wed Sep 15 19:36:56 2010 -0700 Input: hid-input - allow mapping unknown usages Currently HID layer only allows to remap keycodes for known usages, and responds with -EINVAL when user tries to map new usage code. This precludes us form relying on udev/keymap for establishing correct mappings and forces us to write dummy HID drivers responsible only for setting up keymaps. Let's allow remapping not only usages that have been set up as keys (usage->type == EV_KEY) but also yet-unmapped usages (usage->type == 0). Acked-by: Jarod Wilson Acked-by: Jiri Kosina Signed-off-by: Dmitry Torokhov commit 1f7930c55e1c1a2b6d5793a1002b31590356558c Author: Dmitry Torokhov Date: Wed Sep 15 19:36:34 2010 -0700 Input: ati_remote2 - switch to using new keycode interface Switch the code to use new style of getkeycode and setkeycode methods to allow retrieving and setting keycodes not only by their scancodes but also by index. Acked-by: Ville Syrjälä Tested-by: Jarod Wilson Tested-by: Ville Syrjälä Signed-off-by: Dmitry Torokhov commit 1a4e34e67c6de2385d9d493e69c0f6fce886b14d Author: Takashi Iwai Date: Thu Sep 16 07:42:34 2010 +0200 ALSA: usb-audio - Fix an unused-variable compile warning Used only when CONFIG_SND_DEBUG=y sound/usb/mixer.c: In function 'get_min_max': sound/usb/mixer.c:762: warning: unused variable 'chip' Reported-by: Andrew Morton Signed-off-by: Takashi Iwai commit 3b119f662d9054d734e3c74d662e7de6d7b35687 Author: Takashi Iwai Date: Wed Sep 15 15:53:50 2010 +0200 ALSA: hda - Add quirk for Acer laptop with CX20585 codec Its pin configuration is compatible with ideapad. Signed-off-by: Takashi Iwai commit b686453543fd56332e8730a2abd7bf5bca756149 Author: Takashi Iwai Date: Wed Sep 15 10:17:26 2010 +0200 ALSA: hda - Reduce pci id list for Intel with class id Most of Intel controllers work as generic HD-audio without quirks, and it'll be hopefully so in future. Let's mark pci id with the PCI_CLASS_MULTIMEDIA_HD_AUDIO for Intel so that the driver will work with any new control chips in future. Signed-off-by: Takashi Iwai commit f2e5731dfd3ba08b023d0626d36ccf78f54ab5e7 Author: Takashi Iwai Date: Wed Sep 15 10:07:08 2010 +0200 ALSA: hda - Preliminary support for new Conexant audio codecs This patch adds the preliminary support for new Conexant audio codecs with 14f1:5097, 14f1:5098, 14f1:50a1, 14f1:50a2, 14f1:50ab, 14f1:50ac, 14f1:50b8 and 14f1:50b9. Unlike other Conexant parsers, this is designed to be mostly automatic, parsing from BIOS pin configurations. Signed-off-by: Takashi Iwai commit c91925db4925ba0d145478f02c093369196936e9 Merge: 977ddd6 3894335 Author: Takashi Iwai Date: Thu Sep 16 07:33:21 2010 +0200 Merge branch 'fix/hda' into topic/hda commit 977ddd6b2e63716cfefe669bbdb30ec0bcea1fe4 Author: Kailang Yang Date: Wed Sep 15 10:02:29 2010 +0200 ALSA: hda - Set up COEFs for ALC269 to avoid click noises at power-saving For avoiding the click noises at power-saving, set some COEF values for ALC269* codecs. Signed-off-by: Kailang Yang Signed-off-by: Takashi Iwai commit 16c3ea785fe4a383c6675dfe7316f3c815755bdd Author: Brandon Philips Date: Wed Sep 15 09:24:24 2010 +0000 net: enable GRO by default for vlan devices Currently vlan devices don't have GRO by default as none of the Ethernet drivers add NETIF_F_GRO to their vlan_features. As GRO is a software feature add GRO to dev->vlan_features in register_netdevice() and let vlan_dev_init() take care that it gets enabled only when dev->features has NETIF_F_GRO too. Signed-off-by: Brandon Philips Acked-by: Eric Dumazet Signed-off-by: David S. Miller commit b1cbd5f980863eb97f687baba95850c334c83a47 Author: Breno Leitao Date: Wed Sep 15 17:54:22 2010 +0000 ehea: Remove a silly return This patch removes the unconditional return in the end of the function check_sqs() Signed-off-by: Breno Leitao Signed-off-by: David S. Miller commit 1953925ea61cd1a77828deddc61d000303dbbb97 Author: stephen hemminger Date: Wed Sep 15 17:22:17 2010 +0000 sky2: enable GRO by default The driver has supported GRO for a while, but it was not enabled by default. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit 95ae6b228f814fc0528d0506ee9f18ac333d6851 Author: Eric Dumazet Date: Wed Sep 15 04:04:31 2010 +0000 ipv4: ip_ptr cleanups dev->ip_ptr is protected by rtnl and rcu. Yet some places dont use appropriate primitives and/or locking rules. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 9e0064a5456fd75fd7c70f6f3692c7f732f91a65 Author: David S. Miller Date: Wed Sep 15 21:34:41 2010 -0700 phonet: Fix build warning. net/phonet/socket.c: In function ‘pn_res_seq_show’: net/phonet/socket.c:726: warning: format ‘%02X’ expects type ‘unsigned int’, but argument 3 has type ‘long int’ Signed-off-by: David S. Miller commit 274a517ec13b3b47047b97a2e7c912138c9806e0 Author: Rémi Denis-Courmont Date: Wed Sep 15 12:30:15 2010 +0000 Phonet: resource routing documentation Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller commit 507215f8d04f9e61f38c975e61d93bcafd30815f Author: Rémi Denis-Courmont Date: Wed Sep 15 12:30:14 2010 +0000 Phonet: list subscribed resources via proc_fs Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller commit b6a563b2af4ec5b0363cf89869ba234c0e2cd3da Author: Rémi Denis-Courmont Date: Wed Sep 15 12:30:13 2010 +0000 Phonet: look up the resource routing table when forwarding Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller commit 7417fa83c1a8b75a03bd9b9b358999f38e771eab Author: Rémi Denis-Courmont Date: Wed Sep 15 12:30:12 2010 +0000 Phonet: hook resource routing to userspace via ioctl()'s I wish we could use something cleaner, such as bind(). But that would not work since resource subscription is orthogonal/in addition to the normal object ID allocated via bind(). This is similar to multicasting which also uses ioctl()'s. Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller commit 4e3d16ce5e82648d7f4dfd28b6cf8fe2e9a9efc3 Author: Rémi Denis-Courmont Date: Wed Sep 15 12:30:11 2010 +0000 Phonet: resource routing backend When both destination device and object are nul, Phonet routes the packet according to the resource field. In fact, this is the most common pattern when sending Phonet "request" packets. In this case, the packet is delivered to whichever endpoint (socket) has registered the resource. This adds a new table so that Linux processes can register their Phonet sockets to Phonet resources, if they have adequate privileges. (Namespace support is not implemented at the moment.) Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller commit 6482f554e2b9cbe733d63124765104f29cf0c9ad Author: Rémi Denis-Courmont Date: Wed Sep 15 12:19:53 2010 +0000 Phonet: remove dangling pipe if an endpoint is closed early Closing a pipe endpoint is not normally allowed by the Phonet pipe, other than as a side after-effect of removing the pipe between two endpoints. But there is no way to prevent Linux userspace processes from being killed or suffering from bugs, so this can still happen. We might as well forcefully close Phonet pipe endpoints then. The cellular modem supports only a few existing pipes at a time. So we really should not leak them. This change instructs the modem to destroy the pipe if either of the pipe's endpoint (Linux socket) is closed too early. Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller commit 7fedd7e5dfeb0f6bd69ee120b5c44a5e49892e47 Merge: 1a19eb7 37efb03 Author: David S. Miller Date: Wed Sep 15 20:21:48 2010 -0700 Merge branch 'dccp' of git://eden-feed.erg.abdn.ac.uk/net-next-2.6 commit 1a19eb753a591f8b39946b7fda91b25f07454835 Author: Arnd Bergmann Date: Tue Sep 14 09:35:05 2010 +0000 misdn: kill big kernel lock The use of the big kernel lock in misdn is completely bogus, so let's just remove it. Signed-off-by: Arnd Bergmann Cc: Karsten Keil Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller commit 72250d44bc76d3d7fa9253aeeb063a467e2458fa Author: Arnd Bergmann Date: Tue Sep 14 09:35:04 2010 +0000 i4l: kill big kernel lock The isdn4linux driver uses the big kernel lock only to serialize access to a few fields in its own modem_info structure. The easiest replacement is a driver-wide mutex. More fine-grained locking would be more appropriate here, but likely harder to implement. Signed-off-by: Arnd Bergmann Cc: Karsten Keil Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller commit 0a5f1d476aef43916abb2b8634ebff23ef2c05f6 Author: Arnd Bergmann Date: Tue Sep 14 10:22:36 2010 +0000 irda/irnet: use noop_llseek There may be applications trying to seek on the irnet character device, so we should use noop_llseek to avoid returning an error when the default llseek changes to no_llseek. Signed-off-by: Arnd Bergmann Cc: Samuel Ortiz Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller commit 3a43be3c328ff42327da0b141de360dc4587aab7 Author: Eric Dumazet Date: Wed Sep 15 11:35:10 2010 +0000 sit: get rid of ipip6_lock As RTNL is held while doing tunnels inserts and deletes, we can remove ipip6_lock spinlock. My initial RCU conversion was conservative and converted the rwlock to spinlock, with no RTNL requirement. Use appropriate rcu annotations and modern lockdep checks as well. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 1507850b400492fdedc3064d3b8db5e9a1c871e3 Author: Eric Dumazet Date: Wed Sep 15 11:07:53 2010 +0000 gre: get rid of ipgre_lock As RTNL is held while doing tunnels inserts and deletes, we can remove ipgre_lock spinlock. My initial RCU conversion was conservative and converted the rwlock to spinlock, with no RTNL requirement. Use appropriate rcu annotations and modern lockdep checks as well. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit b7285b7912776a4492744949c747c88d539006fa Author: Eric Dumazet Date: Wed Sep 15 11:07:24 2010 +0000 ipip: get rid of ipip_lock As RTNL is held while doing tunnels inserts and deletes, we can remove ipip_lock spinlock. My initial RCU conversion was conservative and converted the rwlock to spinlock, with no RTNL requirement. Use appropriate rcu annotations and modern lockdep checks as well. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 7dff59efbb0e8b0f81c95fd40379c0d0c757c808 Author: Eric Dumazet Date: Wed Sep 15 11:07:15 2010 +0000 net: add rtnl_dereference() We sometime want to dereference an rcu protected pointer while holding RTNL. Use a macro to hide all lockdep details. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit fa47f7e52874683a9659df2f1f143105f676dc0f Author: Suresh Siddha Date: Fri Aug 27 11:09:50 2010 -0700 x86, x2apic: Simplify apic init in SMP and UP builds Move enable_IR_x2apic() inside the default_setup_apic_routing(), and for SMP platforms, move the default_setup_apic_routing() after smp_sanity_check(). This cleans up the code that tries to avoid multiple calls to default_setup_apic_routing() when smp_sanity_check() fails (which goes through the APIC_init_uniprocessor() path). Signed-off-by: Suresh Siddha LKML-Reference: <20100827181049.173087246@sbsiddha-MOBL3.sc.intel.com> Signed-off-by: H. Peter Anvin commit 62a92f4c69cd1d9361ad8c16be1dd16e6821bc15 Author: Suresh Siddha Date: Fri Aug 27 11:09:49 2010 -0700 x86, intr-remap: Remove IRTE setup duplicate code Remove IRTE setup duplicate code with prepare_irte(). Signed-off-by: Suresh Siddha LKML-Reference: <20100827181049.095067319@sbsiddha-MOBL3.sc.intel.com> Signed-off-by: H. Peter Anvin commit 75e3cfbed6f71a8f151dc6e413b6ce3c390030cb Author: Suresh Siddha Date: Fri Aug 27 11:09:48 2010 -0700 x86, intr-remap: Set redirection hint in the IRTE Currently the redirection hint in the interrupt-remapping table entry is set to 0, which means the remapped interrupt is directed to the processors listed in the destination. So in logical flat mode in the presence of intr-remapping, this results in a single interrupt multi-casted to multiple cpu's as specified by the destination bit mask. But what we really want is to send that interrupt to one of the cpus based on the lowest priority delivery mode. Set the redirection hint in the IRTE to '1' to indicate that we want the remapped interrupt to be directed to only one of the processors listed in the destination. This fixes the issue of same interrupt getting delivered to multiple cpu's in the logical flat mode in the presence of interrupt-remapping. While there is no functional issue observed with this behavior, this will impact performance of such configurations (<=8 cpu's using logical flat mode in the presence of interrupt-remapping) Signed-off-by: Suresh Siddha LKML-Reference: <20100827181049.013051492@sbsiddha-MOBL3.sc.intel.com> Cc: Weidong Han Cc: # [v2.6.32+] Signed-off-by: H. Peter Anvin commit 93f3b86fb1bd0ad7b4a5eb1ad1fdae2b290633b7 Author: Joel Becker Date: Wed Sep 15 17:00:58 2010 -0700 ocfs2: Initialize the bktcnt variable properly, and call it bucket_count Signed-off-by: Joel Becker commit c0e1a3e80dc030cd54f06416efbf9e439bf6ecb7 Author: Joel Becker Date: Wed Sep 15 16:56:54 2010 -0700 ocfs2: Silence unused warning. When CONFIG_OCFS2_DEBUG_MASKLOG is undefined, we don't use the dentry variable in ocfs2_sync_file(). Let's just move all access to the dentry inside the logging call. Signed-off-by: Joel Becker commit e0de7c93b950b9e784894efc4b529c6958cb747a Author: Ben Hutchings Date: Tue Sep 14 09:13:08 2010 +0000 ethtool: Remove unimplemented flow specification types struct ethtool_rawip4_spec and struct ethtool_ether_spec are neither commented nor used by any driver, so remove them. Adjust padding in the user-visible unions that included these structures. Fix references to struct ethtool_rawip4_spec in ethtool_get_rx_ntuple(), which should use struct ethtool_usrip4_spec. struct ethtool_usrip4_spec cannot hold IPv6 host addresses and there is no separate structure that can, so remove ETH_RX_NFC_IP6 and the reference to it in niu. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit e035587305011432ee07f69f9738b3c7ef7f3684 Author: Ben Hutchings Date: Tue Sep 14 09:10:03 2010 +0000 ethtool: Complete kernel-doc comments for RX flow filter and hash control There are now several interfaces within the ethtool API for getting and setting RX flow filtering and hashing behaviour, most of which are poorly documented. This adds kernel-doc comments for all these interfaces, based on the existing incomplete comments and on the initial implementations. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit f833c4c181e4e948758b7b252322f50273100d30 Author: Matt Carlson Date: Wed Sep 15 09:00:01 2010 +0000 tg3: phy tmp variable roundup The tg3's phy routines define temporary variables in many locations within the same routine. This patch unifies all temporary variables into one location. Reviewed-by: Benjamin Li Reviewed-by: Michael Chan Signed-off-by: Matt Carlson Signed-off-by: David S. Miller commit a4a8bb15aed20ff74aa3ca14a4f2c0d62efd8391 Author: Matt Carlson Date: Wed Sep 15 09:00:00 2010 +0000 tg3: Dynamically allocate VPD data memory This patch eases stack pressure by dynamically allocating the memory used to temporarily store VPD data. Reviewed-by: Benjamin Li Reviewed-by: Michael Chan Signed-off-by: Matt Carlson Signed-off-by: David S. Miller commit 02e96080af2b70313f2ffc8c1b03ae2f9d8c65ac Author: Matt Carlson Date: Wed Sep 15 08:59:59 2010 +0000 tg3: Use skb_is_gso_v6() This patch converts the driver to prefer the skb_is_gso_v6() helper over the explicit inlined version. Reviewed-by: Benjamin Li Reviewed-by: Michael Chan Signed-off-by: Matt Carlson Signed-off-by: David S. Miller commit 8fea32b9555726d35b91492d17fc21c7874d36f9 Author: Matt Carlson Date: Wed Sep 15 08:59:58 2010 +0000 tg3: Move producer ring struct to tg3_napi Now that each NAPI instance has its own producer ring, it no longer makes sense to keep the producer ring structure external. This patch migrates the producer ring struct to tg3_napi and pivots the code to the new implementation. Reviewed-by: Benjamin Li Reviewed-by: Michael Chan Signed-off-by: Matt Carlson Signed-off-by: David S. Miller commit 6fd45cb814709767a1704b541aa91647b7f275cf Author: Matt Carlson Date: Wed Sep 15 08:59:57 2010 +0000 tg3: Clarify semantics of TG3_IRQ_MAX_VECS TG3_IRQ_MAX_VECS should be seen as the maximum number of vectors that any device could be expected to use. tp->irq_max represents the maximum number of vectors the current device can use. This patch clarifies the semantics of the code to match the above description. Reviewed-by: Benjamin Li Reviewed-by: Michael Chan Signed-off-by: Matt Carlson Signed-off-by: David S. Miller commit 2e9f7a7408d264f01d4477c564ef5c6b610cd10f Author: Matt Carlson Date: Wed Sep 15 08:59:56 2010 +0000 tg3: Unlock 5717 B0+ support This patch adjusts the driver to use the tg3_start_xmit_dma_bug() transmit routine for all revisions of 5717 asic rev devices and then allows the driver to attach to B0 and later devices. Reviewed-by: Benjamin Li Reviewed-by: Michael Chan Signed-off-by: Matt Carlson Signed-off-by: David S. Miller commit dc6d074457f1551f9357f773a4eda09a3d5ef150 Author: Matt Carlson Date: Wed Sep 15 08:59:55 2010 +0000 tg3: Don't send APE events for NCSI firmware NCSI firmware does not accept APE events. It relies on a "driver state" location in shared memory to tell it what the driver's current state is. This patch pivots the code to use the new driver state scheme. Reviewed-by: Benjamin Li Reviewed-by: Michael Chan Signed-off-by: Matt Carlson Signed-off-by: David S. Miller commit f0392d24485e4c144d2741a5424f069b8b5f30e7 Author: Matt Carlson Date: Wed Sep 15 08:59:54 2010 +0000 tg3: Disable TSS It was recently discovered that enabling TSS can lockup the device. This patch disables the feature until a suitable workaround can be found. Signed-off-by: Matt Carlson Signed-off-by: David S. Miller commit 41a8a7ee4a78216962f3afcea5968c04d0ab3b08 Author: Matt Carlson Date: Wed Sep 15 08:59:53 2010 +0000 tg3: Fix read DMA FIFO overruns on recent devices Earlier versions of tg3 devices had a problem where the read DMA FIFO could be overrun in certain edge conditions. The fix was to limit the number of rx BDs the hardware would fetch at a time. For later devices (5761, 5784 and later ASIC revs), there is a hardware fix that must be enabled to fix the same problem. This patch adds that hardware fix. There is a gap in the ASIC revision lineage where neither fix is applied. This is intentional as these ASIC revisions are not afflicted by the bug. Reviewed-by: Benjamin Li Reviewed-by: Michael Chan Signed-off-by: Matt Carlson Signed-off-by: David S. Miller commit 3661ca66a42e306aaf53246fb75aec1ea01be0f0 Author: Yinghai Lu Date: Wed Sep 15 13:05:29 2010 -0700 memblock: Fix section mismatch warnings Stephen found a bunch of section mismatch warnings with the new memblock changes. Use __init_memblock to replace __init in memblock.c and remove __init in memblock.h. We should not use __init in header files. Reported-by: Stephen Rothwell Tested-by: Stephen Rothwell Signed-off-by: Yinghai Lu Cc: Peter Zijlstra Cc: Benjamin Herrenschmidt LKML-Reference: <4C912709.2090201@kernel.org> Signed-off-by: Ingo Molnar commit 54066a57c584ee8ce767053116fc4943ed1168b5 Author: Arnd Bergmann Date: Mon Mar 22 20:55:11 2010 +0100 hpet: kill BKL, add compat_ioctl hpet uses the big kernel lock in its ioctl and open functions. Replace this with a private mutex to be sure. Since we're already touching the ioctl function, add the compat_ioctl version as well -- all commands except HPET_INFO are compatible and that one is easy to add. Signed-off-by: Arnd Bergmann Cc: Clemens Ladisch Cc: Bob Picco commit 609146fdb319cebce93be550938ab852f7bade90 Author: Arnd Bergmann Date: Wed Jun 2 14:28:52 2010 +0200 ipmi: autoconvert trivial BKL users to private mutex All these files use the big kernel lock in a trivial way to serialize their private file operations, typically resulting from an earlier semi-automatic pushdown from VFS. None of these drivers appears to want to lock against other code, and they all use the BKL as the top-level lock in their file operations, meaning that there is no lock-order inversion problem. Consequently, we can remove the BKL completely, replacing it with a per-file mutex in every case. Using a scripted approach means we can avoid typos. file=$1 name=$2 if grep -q lock_kernel ${file} ; then if grep -q 'include.*linux.mutex.h' ${file} ; then sed -i '/include.*/d' ${file} else sed -i 's/include.*.*$/include /g' ${file} fi sed -i ${file} \ -e "/^#include.*linux.mutex.h/,$ { 1,/^\(static\|int\|long\)/ { /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex); } }" \ -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \ -e '/[ ]*cycle_kernel_lock();/d' else sed -i -e '/include.*\/d' ${file} \ -e '/cycle_kernel_lock()/d' fi Signed-off-by: Arnd Bergmann Acked-by: Corey Minyard Cc: openipmi-developer@lists.sourceforge.net commit d851b6e04ee978b0c1b187bee682592aa72f22ea Author: Arnd Bergmann Date: Wed Jun 2 14:28:52 2010 +0200 mac: autoconvert trivial BKL users to private mutex All these files use the big kernel lock in a trivial way to serialize their private file operations, typically resulting from an earlier semi-automatic pushdown from VFS. None of these drivers appears to want to lock against other code, and they all use the BKL as the top-level lock in their file operations, meaning that there is no lock-order inversion problem. Consequently, we can remove the BKL completely, replacing it with a per-file mutex in every case. Using a scripted approach means we can avoid typos. file=$1 name=$2 if grep -q lock_kernel ${file} ; then if grep -q 'include.*linux.mutex.h' ${file} ; then sed -i '/include.*/d' ${file} else sed -i 's/include.*.*$/include /g' ${file} fi sed -i ${file} \ -e "/^#include.*linux.mutex.h/,$ { 1,/^\(static\|int\|long\)/ { /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex); } }" \ -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \ -e '/[ ]*cycle_kernel_lock();/d' else sed -i -e '/include.*\/d' ${file} \ -e '/cycle_kernel_lock()/d' fi Signed-off-by: Arnd Bergmann Cc: Benjamin Herrenschmidt Cc: linuxppc-dev@ozlabs.org commit 5aa82940b23d0c6e4083d48e387a16b8ad530a47 Author: Arnd Bergmann Date: Wed Jun 2 14:28:52 2010 +0200 mtd: autoconvert trivial BKL users to private mutex All these files use the big kernel lock in a trivial way to serialize their private file operations, typically resulting from an earlier semi-automatic pushdown from VFS. None of these drivers appears to want to lock against other code, and they all use the BKL as the top-level lock in their file operations, meaning that there is no lock-order inversion problem. Consequently, we can remove the BKL completely, replacing it with a per-file mutex in every case. Using a scripted approach means we can avoid typos. file=$1 name=$2 if grep -q lock_kernel ${file} ; then if grep -q 'include.*linux.mutex.h' ${file} ; then sed -i '/include.*/d' ${file} else sed -i 's/include.*.*$/include /g' ${file} fi sed -i ${file} \ -e "/^#include.*linux.mutex.h/,$ { 1,/^\(static\|int\|long\)/ { /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex); } }" \ -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \ -e '/[ ]*cycle_kernel_lock();/d' else sed -i -e '/include.*\/d' ${file} \ -e '/cycle_kernel_lock()/d' fi Signed-off-by: Arnd Bergmann Cc: David Woodhouse Cc: linux-mtd@lists.infradead.org commit c45d15d24eb2b49bf734e1e5e7e103befb76b19b Author: Arnd Bergmann Date: Wed Jun 2 14:28:52 2010 +0200 scsi: autoconvert trivial BKL users to private mutex All these files use the big kernel lock in a trivial way to serialize their private file operations, typically resulting from an earlier semi-automatic pushdown from VFS. None of these drivers appears to want to lock against other code, and they all use the BKL as the top-level lock in their file operations, meaning that there is no lock-order inversion problem. Consequently, we can remove the BKL completely, replacing it with a per-file mutex in every case. Using a scripted approach means we can avoid typos. file=$1 name=$2 if grep -q lock_kernel ${file} ; then if grep -q 'include.*linux.mutex.h' ${file} ; then sed -i '/include.*/d' ${file} else sed -i 's/include.*.*$/include /g' ${file} fi sed -i ${file} \ -e "/^#include.*linux.mutex.h/,$ { 1,/^\(static\|int\|long\)/ { /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex); } }" \ -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \ -e '/[ ]*cycle_kernel_lock();/d' else sed -i -e '/include.*\/d' ${file} \ -e '/cycle_kernel_lock()/d' fi Signed-off-by: Arnd Bergmann Cc: linux-scsi@vger.kernel.org Cc: "James E.J. Bottomley" commit 0abee5260babe0a12d468b485a28336551697925 Author: Changli Gao Date: Wed Sep 15 19:24:50 2010 +0200 netfilter: nf_nat: add nf_nat_csum() Add a static function nf_nat_csum() to replace the duplicate code in nf_nat_mangle_udp_packet() and __nf_nat_mangle_tcp_packet(). Signed-off-by: Changli Gao Signed-off-by: Patrick McHardy commit 373a3cf744c774478f44921c50011b896ab08f9d Author: Chris Wilson Date: Wed Sep 15 12:03:59 2010 +0100 drm/i915: call drm_encoder_init first Later initialisation of the encoder often requires that drm_encoder_init() has already been called, for instance, initialiasing the DDC buses. Yet another recent regression, as 819f3fb7 depended upon these fixes which I missed when cherry-picking. Signed-off-by: Chris Wilson commit 6d6f8b832705ca82ee8176dd87a39a1a45268af8 Author: Dimitris Papastamos Date: Wed Sep 15 15:23:20 2010 +0100 ASoC: WM8985: Initial driver The WM8985 is a low power, high quality, feature-rich stereo CODEC designed for portable multimedia applications that require low power consumption and high quality audio. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 892df7f81c31ce7f85778aa78094e8d1f19b8413 Author: Udo van den Heuvel Date: Tue Sep 14 07:15:08 2010 +0200 x86: HPET force enable for CX700 / VIA Epia LT Allow using HPET with the hpet=force command line option on VIA EPIA CX700 systems. Signed-off-by: Udo van den Heuvel Cc: Robert Hancock LKML-Reference: <4C8F04DC.5060303@xs4all.nl> Signed-off-by: Thomas Gleixner commit b5af921ec02333e943efb59aca4f56b78fc0e100 Author: Will Drewry Date: Tue Aug 31 15:47:07 2010 -0500 init: add support for root devices specified by partition UUID This is the third patch in a series which adds support for storing partition metadata, optionally, off of the hd_struct. One major use for that data is being able to resolve partition by other identities than just the index on a block device. Device enumeration varies by platform and there's a benefit to being able to use something like EFI GPT's GUIDs to determine the correct block device and partition to mount as the root. This change adds that support to root= by adding support for the following syntax: root=PARTUUID=hex-uuid Signed-off-by: Will Drewry Signed-off-by: Jens Axboe commit eec7ecfede74bb996060efefd5c157acd5794e8a Author: Will Drewry Date: Tue Aug 31 15:47:06 2010 -0500 genhd, efi: add efi partition metadata to hd_structs This change extends the partition_meta_info structure to support EFI GPT-specific metadata and ensures that data is copied in on partition scanning. Signed-off-by: Will Drewry Signed-off-by: Jens Axboe commit 6d1d8050b4bc89d0165d29b58e894aeba2564a97 Author: Will Drewry Date: Tue Aug 31 15:47:05 2010 -0500 block, partition: add partition_meta_info to hd_struct I'm reposting this patch series as v4 since there have been no additional comments, and I cleaned up one extra bit of unneeded code (in 3/3). The patches are against Linus's tree: 2bfc96a127bc1cc94d26bfaa40159966064f9c8c (2.6.36-rc3). Would this patchset be suitable for inclusion in an mm branch? This changes adds a partition_meta_info struct which itself contains a union of structures that provide partition table specific metadata. This change leaves the union empty. The subsequent patch includes an implementation for CONFIG_EFI_PARTITION-based metadata. Signed-off-by: Will Drewry Signed-off-by: Jens Axboe commit 9900daa81b9e668c28ecf568c714ee49090aa187 Author: Jarkko Nikula Date: Tue Sep 14 16:59:47 2010 +0300 ASoC: tlv320aic3x: Complete the soc-cache conversion Complete the phasing out of aic3x_read_reg_cache, aic3x_write_reg_cache, aic3x_read and aic3x_write calls. This patch uses in aic3x_read the codec->hw_read that points to a function implemented by soc-cache. Only use for aic3x_read is if wanting to read volatile bits from those registers that has both read-only and read/write bits. All other cases should use snd_soc_read. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit a84a441ba3cab4a62a8ed40fbfbc112ded50f492 Author: Jarkko Nikula Date: Tue Sep 14 14:54:48 2010 +0300 ASoC: tlv320aic3x: Switch to soc-cache helpers Continue phasing out aic3x_read_reg_cache, aic3x_write_reg_cache, aic3x_read and aic3x_write calls. This patch takes the soc-cache in use and removes aic3x_read_reg_cache and aic3x_write. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit e18eca4303c67ac58c75e72c7318e9709188f40d Author: Jarkko Nikula Date: Tue Sep 14 14:54:47 2010 +0300 ASoC: tlv320aic3x: Use snd_soc_read and snd_soc_write Start phasing out aic3x_read_reg_cache, aic3x_write_reg_cache, aic3x_read and aic3x_write calls in order to switch to soc-cache helpers. This patch replaces aic3x_read_reg_cache and aic3x_write with snd_soc_read and snd_soc_write. This is basically null-op since .read and .write in soc_codec_dev_aic3x points to aic3x_read_reg_cache and aic3x_write. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 144177991ca624841ddbd1e7edff958fc0f6d1fe Author: Namhyung Kim Date: Wed Sep 15 13:08:27 2010 +0200 block: fix an address space warning in blk-map.c Change type of 2nd parameter of blk_rq_aligned() into unsigned long and remove unnecessary casting. Now we can call it with 'uaddr' instead of 'ubuf' in __blk_rq_map_user() so that it can remove following warnings from sparse: block/blk-map.c:57:31: warning: incorrect type in argument 2 (different address spaces) block/blk-map.c:57:31: expected void *addr block/blk-map.c:57:31: got void [noderef] *ubuf However blk_rq_map_kern() needs one more local variable to handle it. Signed-off-by: Namhyung Kim Signed-off-by: Jens Axboe commit 697378972d075e1b26ed2935bf44fb828c6191f5 Author: Arnaud Patard (Rtp) Date: Thu Sep 9 14:10:33 2010 +0200 ASoC: Change my mail address Like other coworkers, I'm about leave Mandriva/Edge-It so I'm changing my mail address to use my personal one. Signed-off-by: Arnaud Patard Signed-off-by: Arnaud Patard Acked-by: Greg Kroah-Hartman Signed-off-by: Mark Brown commit c6d5cca0a0e565101e3ef8d37270f5316d7c5638 Author: Jarkko Nikula Date: Tue Sep 14 15:24:38 2010 +0300 ASoC: Remove needless codec->bias_level assignment to SND_SOC_BIAS_OFF This assignment is done by the snd_soc_register_codec so there is no need to redo it in probe function of a codec driver. Signed-off-by: Jarkko Nikula Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 37efb03fbd0935f5f85a0538c46b53be5cf40504 Author: Gerrit Renker Date: Tue Sep 14 20:21:29 2010 +0200 dccp ccid-3: Simplify and consolidate tx_parse_options This simplifies and consolidates the TX option-parsing code: 1. The Loss Intervals option is not currently used, so dead code related to this option is removed. I am aware of no plans to support the option, but if someone wants to implement it (e.g. for inter-op tests), it is better to start afresh than having to also update currently unused code. 2. The Loss Event and Receive Rate options have a lot of code in common (both are 32 bit, both have same length etc.), so this is consolidated. 3. The test against GSR is not necessary, because - on first loading CCID3, ccid_new() zeroes out all fields in the socket; - ccid3_hc_tx_packet_recv() treats 0 and ~0U equivalently, due to pinv = opt_recv->ccid3or_loss_event_rate; if (pinv == ~0U || pinv == 0) hctx->p = 0; - as a result, the sequence number field is removed from opt_recv. Signed-off-by: Gerrit Renker commit d2c726309d88df3c5568486e4b5b9e4c3150903f Author: Gerrit Renker Date: Tue Sep 14 20:18:00 2010 +0200 dccp ccid-3: remove buggy RTT-sampling history lookup This removes the RTT-sampling function tfrc_tx_hist_rtt(), since 1. it suffered from complex passing of return values (the return value both indicated successful lookup while the value doubled as RTT sample); 2. when for some odd reason the sample value equalled 0, this triggered a bug warning about "bogus Ack", due to the ambiguity of the return value; 3. on a passive host which has not sent anything the TX history is empty and thus will lead to unwanted "bogus Ack" warnings such as ccid3_hc_tx_packet_recv: server(e7b7d518): DATAACK with bogus ACK-28197148 ccid3_hc_tx_packet_recv: server(e7b7d518): DATAACK with bogus ACK-26641606. The fix is to replace the implicit encoding by performing the steps manually. Furthermore, the "bogus Ack" warning has been removed, since it can actually be triggered due to several reasons (network reordering, old packet, (3) above), hence it is not very useful. Signed-off-by: Gerrit Renker commit 20cbd3e120a0c20bebe420e1fed0e816730bb988 Author: Gerrit Renker Date: Tue Sep 14 20:16:59 2010 +0200 dccp ccid-3: A lower bound for the inter-packet scheduling algorithm This fixes a subtle bug in the calculation of the inter-packet gap and shows that t_delta, as it is currently used, is not needed. The algorithm from RFC 5348, 8.3 below continually computes a send time t_nom, which is initialised with the current time t_now; t_gran = 1E6 / HZ specifies the scheduling granularity, s the packet size, and X the sending rate: t_distance = t_nom - t_now; // in microseconds t_delta = min(t_ipi, t_gran) / 2; // `delta' parameter in microseconds if (t_distance >= t_delta) { reschedule after (t_distance / 1000) milliseconds; } else { t_ipi = s / X; // inter-packet interval in usec t_nom += t_ipi; // compute the next send time send packet now; } Problem: -------- Rescheduling requires a conversion into milliseconds (sk_reset_timer()). The highest jiffy resolution with HZ=1000 is 1 millisecond, so using a higher granularity does not make much sense here. As a consequence, values of t_distance < 1000 are truncated to 0. This issue has so far been resolved by using instead if (t_distance >= t_delta + 1000) reschedule after (t_distance / 1000) milliseconds; This is unnecessarily large, a lower bound is t_delta' = max(t_delta, 1000). And it implies a further simplification: a) when HZ >= 500, then t_delta <= t_gran/2 = 10^6/(2*HZ) <= 1000, so that t_delta' = MAX(1000, t_delta) = 1000 (constant value); b) when HZ < 500, then t_delta = 1/2*MIN(rtt, t_ipi, t_gran) <= t_gran/2, so that 1000 <= t_delta' <= t_gran/2. The maximum error of using a constant t_delta in (b) is less than half a jiffy. Fix: ---- The patch replaces t_delta with a constant, whose value depends on CONFIG_HZ, changing the above algorithm to: if (t_distance >= t_delta') reschedule after (t_distance / 1000) milliseconds; where t_delta' = 10^6/(2*HZ) if HZ < 500, and t_delta' = 1000 otherwise. Signed-off-by: Gerrit Renker commit 2f551c84563df2bf144a819993b2d729c66583ee Author: Chris Wilson Date: Wed Sep 15 10:42:50 2010 +0100 drm/i915/sdvo: Mark the status as unknown if attached with EDID One problem with devices that share the DDC bus between the VGA and DVI-I connectors is that with two devices attached we cannot know if there is truly a monitor attached to the DVI connector. In this case, it is preferrrable to mark the status as unknown, so that the user can supply the known set of modes and continue to use the output. Signed-off-by: Chris Wilson commit ff482d8317736908e1f803ef94ee5c736a3b8a3a Author: Chris Wilson Date: Wed Sep 15 10:40:38 2010 +0100 drm/i915/sdvo: Only create the analog encoder as required We only need to use the analog encoder for rare devices which share the DDC between the DVI-I and VGA connectors, so only create as needed. Signed-off-by: Chris Wilson commit 635c17c2b2b4e5cd34f5dcba19d751b4e58533c2 Author: Namhyung Kim Date: Wed Sep 15 10:04:30 2010 +0900 kprobes: Add sparse context annotations This removes following warnings when build with C=1 warning: context imbalance in 'kretprobe_hash_lock' - wrong count at exit warning: context imbalance in 'kretprobe_table_lock' - wrong count at exit warning: context imbalance in 'kretprobe_hash_unlock' - unexpected unlock warning: context imbalance in 'kretprobe_table_unlock' - unexpected unlock Signed-off-by: Namhyung Kim Acked-by: Masami Hiramatsu LKML-Reference: <1284512670-2369-6-git-send-email-namhyung@gmail.com> Signed-off-by: Ingo Molnar commit 6abded71d730322df96c5b7f4ab952ffd5a0080d Author: Namhyung Kim Date: Wed Sep 15 10:04:29 2010 +0900 kprobes: Remove __dummy_buf Remove __dummy_buf which is needed for kallsyms_lookup only. use kallsysm_lookup_size_offset instead. Signed-off-by: Namhyung Kim Acked-by: Masami Hiramatsu LKML-Reference: <1284512670-2369-5-git-send-email-namhyung@gmail.com> Signed-off-by: Ingo Molnar commit 6376b2297502e72255b7eb2893c6044ad5a7b5f4 Author: Namhyung Kim Date: Wed Sep 15 10:04:28 2010 +0900 kprobes: Make functions static Make following (internal) functions static to make sparse happier :-) * get_optimized_kprobe: only called from static functions * kretprobe_table_unlock: _lock function is static * kprobes_optinsn_template_holder: never called but holding asm code Signed-off-by: Namhyung Kim Acked-by: Masami Hiramatsu LKML-Reference: <1284512670-2369-4-git-send-email-namhyung@gmail.com> Signed-off-by: Ingo Molnar commit 05662bdb64c746079de7ac4dc4fb4caa5e8e119f Author: Namhyung Kim Date: Wed Sep 15 10:04:27 2010 +0900 kprobes: Verify jprobe entry point Verify jprobe's entry point is a function entry point using kallsyms' offset value. Signed-off-by: Namhyung Kim Acked-by: Masami Hiramatsu LKML-Reference: <1284512670-2369-3-git-send-email-namhyung@gmail.com> Signed-off-by: Ingo Molnar commit edbaadbe42b0b790618ec49d29626223529d8195 Author: Namhyung Kim Date: Wed Sep 15 10:04:26 2010 +0900 kprobes: Remove redundant address check Remove call to kernel_text_address() in register_jprobes() because it is called right after in register_kprobe(). Signed-off-by: Namhyung Kim Acked-by: Masami Hiramatsu LKML-Reference: <1284512670-2369-2-git-send-email-namhyung@gmail.com> Signed-off-by: Ingo Molnar commit 38a81da2205f94e8a2a834b51a6b99c91fc7c2e8 Author: Matt Helsley Date: Mon Sep 13 13:01:20 2010 -0700 perf events: Clean up pid passing The kernel perf event creation path shouldn't use find_task_by_vpid() because a vpid exists in a specific namespace. find_task_by_vpid() uses current's pid namespace which isn't always the correct namespace to use for the vpid in all the places perf_event_create_kernel_counter() (and thus find_get_context()) is called. The goal is to clean up pid namespace handling and prevent bugs like: https://bugzilla.kernel.org/show_bug.cgi?id=17281 Instead of using pids switch find_get_context() to use task struct pointers directly. The syscall is responsible for resolving the pid to a task struct. This moves the pid namespace resolution into the syscall much like every other syscall that takes pid parameters. Signed-off-by: Matt Helsley Signed-off-by: Peter Zijlstra Cc: Robin Green Cc: Prasad Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: Will Deacon Cc: Mahesh Salgaonkar LKML-Reference: Signed-off-by: Ingo Molnar commit 2ebd4ffb6d0cb877787b1e42be8485820158857e Author: Matt Helsley Date: Mon Sep 13 13:01:19 2010 -0700 perf events: Split out task search into helper Split out the code which searches for non-exiting tasks into its own helper. Creating this helper not only makes the code slightly more readable it prepares to move the search out of find_get_context() in a subsequent commit. Signed-off-by: Matt Helsley Signed-off-by: Peter Zijlstra Cc: Robin Green Cc: Prasad Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: Will Deacon Cc: Mahesh Salgaonkar LKML-Reference: <561205417b450b8a4bf7488374541d64b4690431.1284407762.git.matthltc@us.ibm.com> Signed-off-by: Ingo Molnar commit d958077d007d98125766d11e82da2fd6497b91d6 Author: Matt Helsley Date: Mon Sep 13 13:01:18 2010 -0700 hw breakpoints: Fix pid namespace bug Hardware breakpoints can't be registered within pid namespaces because tsk->pid is passed rather than the pid in the current namespace. (See https://bugzilla.kernel.org/show_bug.cgi?id=17281 ) This is a quick fix demonstrating the problem but is not the best method of solving the problem since passing pids internally is not the best way to avoid pid namespace bugs. Subsequent patches will show a better solution. Much thanks to Frederic Weisbecker for doing the bulk of the work finding this bug. Signed-off-by: Matt Helsley Signed-off-by: Peter Zijlstra Cc: Robin Green Cc: Prasad Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: Will Deacon Cc: Mahesh Salgaonkar LKML-Reference: Signed-off-by: Ingo Molnar commit 64a48d90149bb7007275fac13eaa4cb8d8ce12ea Author: Matt Fleming Date: Mon Sep 13 20:17:29 2010 +0100 perf, sh: Fix patch merge foul-up 3f6da390 ("perf: Rework and fix the arch CPU-hotplug hooks") introduced this breakage. sh_pmu_setup() is missing an opening curly brace. Signed-off-by: Peter Zijlstra LKML-Reference: <20100913191729.GA6440@console-pimps.org> Signed-off-by: Ingo Molnar commit 65175c07653534294257f75baa03a36edad86870 Author: Michael Cree Date: Sun Sep 12 17:37:24 2010 +1200 alpha: Fix HW performance counters to be stopped properly Also fix a few compile errors due to undefined and duplicated variables. Signed-off-by: Michael Cree Signed-off-by: Peter Zijlstra LKML-Reference: <1284269844-23251-1-git-send-email-mcree@orcon.net.nz> Signed-off-by: Ingo Molnar commit d9ca07a05ce1c42ac9717e54eaea4546a3a80978 Author: Stephane Eranian Date: Tue Sep 14 15:34:01 2010 +0200 watchdog: Avoid kernel crash when disabling watchdog In case you boot with the watchdog disabled, i.e., nowatchdog, then, if you try to disable it via /proc/sys/kernel/watchdog, you get a kernel crash. The reason is that you are trying to cancel a hrtimer which has never been initialized. This patch fixes this by skipping execution of watchdog_disable_all_cpus() when the watchdog is marked disabled from boot. Signed-off-by: Stephane Eranian Signed-off-by: Peter Zijlstra LKML-Reference: <4c8f7a23.cae9d80a.2c11.0bb4@mx.google.com> Signed-off-by: Ingo Molnar commit 3aabae7d9dfaed60effe93662f02c19bafc18537 Merge: 79e406d 57c072c Author: Ingo Molnar Date: Wed Sep 15 10:27:31 2010 +0200 Merge branch 'tip/perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core commit 1446c5fba73044a1c72153e1203b23b1820431c5 Author: Jaroslav Kysela Date: Wed Sep 15 08:01:57 2010 +0200 ALSA: snd-aloop - fix the "PCM Playback Channels" kcontrol Obvious copy-and-paste error. Signed-off-by: Jaroslav Kysela commit 21a4591794c82c1a73f9d45d6400f878648261e3 Author: andrew hendry Date: Tue Sep 14 13:32:03 2010 +0000 X.25 remove bkl in connect Connect already has socket locking. Signed-off-by: Andrew Hendry Signed-off-by: David S. Miller commit 141646ce56735cedb2336b3cd21364287f0aa4c7 Author: Andrew Hendry Date: Tue Sep 14 20:38:54 2010 -0700 X.25 remove bkl in accept Accept already has socket locking. [ Extend socket locking over TCP_LISTEN state test. -DaveM ] Signed-off-by: Andrew Hendry Signed-off-by: David S. Miller commit 90c27297a9bfb8ea11c0e3f73ad90c4c66e8501e Author: andrew hendry Date: Tue Sep 14 13:31:38 2010 +0000 X.25 remove bkl in bind Accept updates socket values in 3 lines so wrapped with lock_sock. Signed-off-by: Andrew Hendry Signed-off-by: David S. Miller commit 25aa4efe4feb4150fe613169795df505c5018f2b Author: andrew hendry Date: Tue Sep 14 13:31:16 2010 +0000 X.25 remove bkl in listen Listen updates socket values and needs lock_sock. Signed-off-by: Andrew Hendry Signed-off-by: David S. Miller commit 55b1804c678e679e1018671bd40b583eab124689 Author: Joe Perches Date: Mon Sep 13 18:24:01 2010 +0000 net/irda: Use static const char * const where possible Signed-off-by: Joe Perches Signed-off-by: David S. Miller commit 030bda0d416babd0cf34e584086f815b1c9d417c Author: Joe Perches Date: Mon Sep 13 18:23:55 2010 +0000 drivers/net/wireless: Use static const char * const where possible Signed-off-by: Joe Perches Acked-by: Ivo van Doorn Signed-off-by: David S. Miller commit 99101d3d8900dd3fc3cac44859ab8a380e1e553f Author: Joe Perches Date: Mon Sep 13 18:23:54 2010 +0000 drivers/net/pcmcia: Use static const char * const where possible Signed-off-by: Joe Perches Signed-off-by: David S. Miller commit 6fa59c9da82adcc7d63a2776969548e2b45448e0 Author: Joe Perches Date: Mon Sep 13 18:23:53 2010 +0000 drivers/net: Use static const char * const where possible Signed-off-by: Joe Perches Signed-off-by: David S. Miller commit 6f68ad7fbb421df0aa3c267768245b2e86a91f74 Author: Joe Perches Date: Mon Sep 13 18:23:52 2010 +0000 drivers/isdn: Use static const char * const where possible Signed-off-by: Joe Perches Signed-off-by: David S. Miller commit 79e406d7b00ab2b261ae32a59f266fd3b7af6f29 Author: Steven Rostedt Date: Tue Sep 14 22:19:46 2010 -0400 tracing: Remove leftover FTRACE_ENABLE/DISABLE_MCOUNT enums The enums for FTRACE_ENABLE_MCOUNT and FTRACE_DISABLE_MCOUNT were used as commands to ftrace_run_update_code(). But these commands were used by the old nasty ftrace daemon that has long been slain. This is a clean up patch to remove the references to these enums and simplify the code a little. Reported-by: Wu Zhangjin Signed-off-by: Steven Rostedt commit b304d0441a4118fadd4c3f16e4dc600c271030b5 Author: Steven Rostedt Date: Tue Sep 14 18:58:33 2010 -0400 tracing: Do not trace in irq when funcgraph-irq option is zero When the function graph tracer funcgraph-irq option is zero, disable tracing in IRQs. This makes the option have two effects. 1) When reading the trace file, do not display the functions that happen in interrupt context (when detected) 2) [*new*] When recording a trace, skip those that are detected to be in interrupt by the 'in_irq()' function Note, in_irq() is updated at irq_enter() and irq_exit(). There are still functions that are recorded by the function graph tracer that is in interrupt context but outside the irq_enter/exit() routines. Signed-off-by: Steven Rostedt commit 2bd16212b8eb86f9574e78d6605a5ba9e9aa8c4e Author: Jiri Olsa Date: Tue Sep 7 16:53:44 2010 +0200 tracing: Add funcgraph-irq option for function graph tracer. It's handy to be able to disable the irq related output and not to have to jump over each irq related code, when you have no interrest in it. The option is by default enabled, so there's no change to current behaviour. It affects only the final output, so all the irq related data stay in the ring buffer. Signed-off-by: Jiri Olsa LKML-Reference: <20100907145344.GC1912@jolsa.brq.redhat.com> Signed-off-by: Steven Rostedt commit ef6c3c6e53ba4286140ea7d582d81f08d43dc7d2 Author: David Cross Date: Fri Sep 10 16:57:56 2010 -0700 staging: west bridge: pnand hal fixes This patch includes changing some defines, necessary for compilation with the linux-next tree. Signed-off-by: David Cross Signed-off-by: Greg Kroah-Hartman commit 4c404487aa3d26bf7a7e16f8545778385e06d839 Author: David Cross Date: Fri Sep 10 16:55:53 2010 -0700 staging: west bridge: cyasgadget, remove file system / vfs calls This patch remove file system specific (fat_get_block) and vfs calls from the cyasgadget driver. The current implementation expects user space to write the file (open, seek to end, 1 byte write), followed by a call to clear the dirty pages from the the page cache. Signed-off-by: David Cross Signed-off-by: Greg Kroah-Hartman commit 72bbd9bce41276d06b6b816df21aced71b1896eb Author: David Cross Date: Fri Sep 10 16:52:56 2010 -0700 Staging: west bridge: block driver api fix This patch contains an update for cyasblkdev_queue.c which is needed for the kernel update from 2.6.35 to 2.6.36. Signed-off-by: David Cross Signed-off-by: Greg Kroah-Hartman commit 4ecea3c51b42419d6cd314b3d36c6ceaa9c204e9 Author: David Cross Date: Fri Sep 10 16:51:05 2010 -0700 Staging: west bridge: Kconfig fix This patch fixes the currently broken Kconfig for west bridge by introducing a dependency on a valid HAL Layer for the driver build. Signed-off-by: David Cross Signed-off-by: Greg Kroah-Hartman commit 8be11ffcf59e9bcb5f0a2a2b2e7b43d56c797b98 Author: Maurice Dawson Date: Fri Sep 10 20:20:42 2010 +0100 Staging: comedi: fix macro coding style issue in adl_pci9111.c This is a patch that fixes up, macros with multiple statements should be enclosed in a do - while loop, coding style issue in the adl_pci9111.c file found by the checkpatch.pl tool Signed-off-by: Maurice Dawson Signed-off-by: Greg Kroah-Hartman commit ff75f96bb0e9d4fc42efb66a6ccb7bf83ecc298f Author: Vasiliy Kulikov Date: Sun Sep 12 23:21:56 2010 +0200 Staging: batman-adv: check kmalloc() return value kmalloc() may fail, if so drop current packet. Signed-off-by: Vasiliy Kulikov Signed-off-by: Marek Lindner [sven.eckelmann@gmx.de: Removed new introduced deadlock] Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit b001f71ed1ea728814175b711602e150826d13cc Author: Marek Lindner Date: Sun Sep 12 23:21:55 2010 +0200 Staging: batman-adv: removing redundant assignment of skb->dev Signed-off-by: Marek Lindner Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 368b4f06c8809b72df9e46af90dcd9aaf5daafc3 Author: Sven Eckelmann Date: Sun Sep 12 23:21:54 2010 +0200 Staging: batman-adv: Add rcu TODO Paul E. McKenney informed us that rcu is misused by leaking pointers to rcu related elements outside read-side protected critical sections. He also recommended that it should be checked against the rcu checklist. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit f73d8b43219970ecb010f34649d22042a5723318 Author: Sven Eckelmann Date: Sun Sep 12 23:21:53 2010 +0200 Staging: batman-adv: Remove currently unused gw_* datastructures gw_list_lock, gw_list and curr_gw are currently unused members of struct bat_priv. They will be readded when gateway support is really implemented. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 09686b560ff229bc6c87489717dce118c7d2b20b Author: Linus Lüssing Date: Sun Sep 12 23:21:52 2010 +0200 Staging: batman-adv: Always synchronize rcu's on module shutdown During the module shutdown procedure in batman_exit(), a rcu callback is being scheduled (batman_exit -> hardif_remove_interfaces -> hardif_remove_interfae -> call_rcu). However, when the kernel unloads the module, the rcu callback might not have been executed yet, resulting in a "unable to handle kernel paging request" in __rcu_process_callback afterwards, causing the kernel to freeze. The synchronize_net and synchronize_rcu in mesh_free are currently called before the call_rcu in hardif_remove_interface and have no real effect on it. Therefore, we should always flush all rcu callback functions scheduled during the shutdown procedure using synchronize_net. The call to synchronize_rcu can be omitted because synchronize_net already calls it. Signed-off-by: Linus Lüssing Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman commit 6267ea655f141bfd0955910b728571fb2a4ed1df Author: Manuel Stahl Date: Thu Sep 9 17:40:11 2010 +0200 staging: iio: sca3000 convert byte order of ring buffer data Signed-off-by: Manuel Stahl Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit b68d58a84b42d6213e46948b8f4cb95b8ed0efec Author: Manuel Stahl Date: Thu Sep 9 17:40:10 2010 +0200 staging: iio: sca3000 fix sca3000_[show,store]_ring_bpse Signed-off-by: Manuel Stahl Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 3285aae1edd04ffdb6a732f7d90c44f90a7e5d8f Author: Andrew Chew Date: Wed Sep 8 22:02:17 2010 -0700 staging: iio: ak8975: Add ak8975 magnetometer sensor This is for the Asahi Kasei AK8975 3-axis magnetometer. It resides within the magnetometer section of the IIO subsystem, and implements the raw magn_x,y,z_raw attributes, as well as magn_x,y,z_scale attributes for converting to Gauss. Changed to use the magn_x,y,z_scale attributes, and made those attributes give the scale factor to conert to Gauss. Also applied more fixes from feedback. Keeping mode as an unsigned long. I'm going to add proper power management at some point anyway, which would deprecate this attribute. Signed-off-by: Andrew Chew Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman commit 7223234ee02b6ceb9ae07804133d21b9156401e4 Author: Andrew Chew Date: Wed Sep 8 22:02:16 2010 -0700 staging: iio: Change GAIN macros to SCALE. Per email exchange with Jonathan Cameron, GAIN should instead be SCALE, to be consistent with documentation. Resending, since this goes with the 2/2 patch. Signed-off-by: Andrew Chew Acked-by: Jonathan Cameron Signed-off-by: Laxman Dewangan Signed-off-by: Greg Kroah-Hartman commit 9e795a5232e1888d46e22e05677d280a1056ceea Author: Haiyang Zhang Date: Wed Sep 8 20:29:45 2010 +0000 staging: hv: Convert vmbus driver interface function pointer table to constant Convert vmbus driver interface function pointer table to constant The vmbus interface functions are assigned to a constant - vmbus_ops. Because the vmbus interface function pointer table is converted to a constant variable -- vmbus_ops, the function GetChannelInterface(), VmbusGetChannelInterface() and pointer GetChannelInterface are no longer in use. The deprecated function's work is done by the initialization of the newly added constant variable vmbus_ops. I created the new constant variable vmbus_ops and removed the deprecated function pointer GetChannelInterface in one patch. Signed-off-by: Haiyang Zhang Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman commit 5fee254098c11a52ce04e1efdc8c090caf592bfd Author: Jason Cooper Date: Tue Sep 14 09:45:51 2010 -0400 staging: brcm80211: fix remaining checkpatch errors. Remaining errors are due to the use of typedefs. They should dissappear once the typedefs get cleaned up. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 92dfc7d18a123fcf22beaf23036ba02a13416e3e Author: Jason Cooper Date: Tue Sep 14 09:45:50 2010 -0400 staging: brcm80211: fix "ERROR: trailing whitespace." Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit fd64bcc48bd1542ca361e99b6487b54ad10dc4b8 Author: Jason Cooper Date: Tue Sep 14 09:45:49 2010 -0400 staging: brcm80211: fix "ERROR: spaces required around that ..." Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 2ae3b7ea9f8e7472d26ec317ce498466b0864871 Author: Jason Cooper Date: Tue Sep 14 09:45:48 2010 -0400 staging: brcm80211: fix "ERROR: spaces prohibited around that ':' ..." Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit a0e5ccd340ccb2cc9c87771609bafa1e2491770b Author: Jason Cooper Date: Tue Sep 14 09:45:47 2010 -0400 staging: brcm80211: fix "ERROR: space required before that ..." Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 914d69d6bc5758b57f46a33699d794a364db88b9 Author: Jason Cooper Date: Tue Sep 14 09:45:46 2010 -0400 staging: brcm80211: fix "ERROR: space required after that ..." Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 0eeca2f48d5a28cc2458891294a98e46f4547c4b Author: Jason Cooper Date: Tue Sep 14 09:45:45 2010 -0400 staging: brcm80211: fix "ERROR: space required after that close brace" Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 5ebee113b66e9dfc07aa1ca45978c3a5c6bc970d Author: Jason Cooper Date: Tue Sep 14 09:45:44 2010 -0400 staging: brcm80211: fix "ERROR: space prohibited before ...close square bracket" Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 29c4275adbe15e95db54ce04a3137a6ff40c890c Author: Jason Cooper Date: Tue Sep 14 09:45:43 2010 -0400 staging: brcm80211: fix "ERROR: space prohibited after that ..." Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 198bd4d69dddb3fe78fdc251983bb49502b3b35e Author: Jason Cooper Date: Tue Sep 14 09:45:42 2010 -0400 staging: brcm80211: fix "ERROR: need consistent spacing around '*'" This patch fixes the real errors. The rest are caused by typedefs which will be fixed in a later patch. Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 39dcff3f45048df1c8bd3e3ba033e7b62328db3f Author: Jason Cooper Date: Tue Sep 14 09:45:41 2010 -0400 staging: brcm80211: fix 'ERROR: "(foo*)" should be "(foo *)"' Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit c5fe41c339180dea243443391d08f620fbf147c3 Author: Jason Cooper Date: Tue Sep 14 09:45:40 2010 -0400 staging: brcm80211: fix "ERROR: Macros w/ mult. statements ... do - while loop" Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 0d706ef4f2f17541900978b0c1cf629321f56298 Author: Jason Cooper Date: Tue Sep 14 09:45:39 2010 -0400 staging: brcm80211: fix "ERROR: Macros w/ complex values ... parenthesis" Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 7e85c72969b17eed698c3e23674f424bf345aceb Author: Jason Cooper Date: Tue Sep 14 09:45:38 2010 -0400 staging: brcm80211: fix "ERROR: do not initialise statics to 0 or NULL" Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit e4e4d21fa303f71a8289c3dd822a02cf91603502 Author: Jason Cooper Date: Tue Sep 14 09:45:37 2010 -0400 staging: brcm80211: fix "ERROR: do not initialise globals to 0 or NULL" Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 9b6562b1c302704cdefd97f2c340b695bf481d44 Author: Jason Cooper Date: Tue Sep 14 09:45:36 2010 -0400 staging: brcm80211: fix "ERROR: while should follow close brace '}'" Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit e5c4536fa4643ba15c06373f87e7a7e3080b8045 Author: Jason Cooper Date: Tue Sep 14 09:45:35 2010 -0400 staging: brcm80211: fix "ERROR: that open brace { ... prev line" Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 621458221781e3e943c56e1978614604cee3beaf Author: Jason Cooper Date: Tue Sep 14 09:45:34 2010 -0400 staging: brcm80211: fix "ERROR: trailing statements should be on next line" Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 068e8a30320e33b1f8d15df9eaef84f04258f96d Author: Jean Delvare Date: Sun Sep 12 22:45:39 2010 +0000 e1000e: Simplify MSI interrupt testing The code is quite convoluted, simplify it. This also avoids calling e1000_request_irq() without testing the value it returned, which was bad. Signed-off-by: Jean Delvare Cc: Bruce Allan Cc: Jeff Kirsher Acked-by: Jeff Kirsher Signed-off-by: David S. Miller commit 9ad0e496519d99eb2c34f01e41500a775122c744 Author: Kailang Yang Date: Tue Sep 14 23:22:00 2010 +0200 ALSA: hda - Add input jack layer support to Realtek codec Signed-off-by: Kailang Yang Signed-off-by: Takashi Iwai commit 645ef9ef1fc0ff70456495b1e21d3420b7b08541 Author: Arnd Bergmann Date: Tue Sep 14 21:53:41 2010 +0200 sound: autoconvert trivial BKL users to private mutex The usage of the BKL in the OSS sound drivers is trivial, and each of them only locks against itself, so it can be turned into per-driver mutexes. This is the script that was used for the conversion: file=$1 name=$2 if grep -q lock_kernel ${file} ; then if grep -q 'include.*linux.mutex.h' ${file} ; then sed -i '/include.*/d' ${file} else sed -i 's/include.*.*$/include /g' ${file} fi sed -i ${file} \ -e "/^#include.*linux.mutex.h/,$ { 1,/^\(static\|int\|long\)/ { /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex); } }" \ -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \ -e '/[ ]*cycle_kernel_lock();/d' else sed -i -e '/include.*\/d' ${file} \ -e '/cycle_kernel_lock()/d' fi Signed-off-by: Arnd Bergmann Signed-off-by: Takashi Iwai commit 04a344069052d94b4ea1f95d930cbfa39b4ca292 Author: Phil Carmody Date: Tue Sep 14 13:35:39 2010 -0700 [IA64] unwind - optimise linked-list searches for modules It's clear from the comment in the code about keeping the kernel's unwind table at the front of the list that some attention has been paid to access patterns. Tests on other architectures have shown that a move-to-front optimisation improves searches dramatically. Signed-off-by: Phil Carmody Signed-off-by: Tony Luck commit 747584be04bb98a856bab5cd1bfe56d341881b83 Author: Phil Carmody Date: Tue Sep 14 13:34:43 2010 -0700 [IA64] unwind: remove preprocesser noise, and correct comment The expression in the comment was mis-bracketted. There was also no need to introduce a coding-style breaking macro for a single use, so just made it a static const. Signed-off-by: Phil Carmody Signed-off-by: Tony Luck commit 78381c41776572cb642a485219c5d7651f198fbd Author: John W. Linville Date: Tue Sep 14 16:26:44 2010 -0400 wl1271: remove warnings in wl1271_sdio_set_power These were introduced in "wl1271: sdio: claim host only when doing IO" drivers/net/wireless/wl12xx/wl1271_sdio.c: In function ‘wl1271_sdio_set_power’: drivers/net/wireless/wl12xx/wl1271_sdio.c:193: warning: ‘return’ with a value, in function returning void drivers/net/wireless/wl12xx/wl1271_sdio.c:195: warning: ‘return’ with a value, in function returning void drivers/net/wireless/wl12xx/wl1271_sdio.c:186: warning: unused variable ‘func’ Signed-off-by: John W. Linville commit a2c1e3dad516618cb0fbfb1a62c36d0b0744573a Author: Johannes Berg Date: Tue Sep 14 21:34:14 2010 +0200 mac80211: match only assigned bss in sta_info_get_bss sta_info_get_bss() is used to match STA pointers for VLAN/AP interfaces, but if the same station is also added to multiple other interfaces it will erroneously match because both pointers are NULL, fix this by ignoring NULL pointers here. Reported-by: Ben Greear Signed-off-by: Johannes Berg Signed-off-by: John W. Linville commit 364734fafbba0c3133e482db78149b9a823ae7a5 Author: Felix Fietkau Date: Tue Sep 14 20:22:44 2010 +0200 ath9k_hw: remove useless hw capability flags Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 3ae74c33c4f799f6bf6d67240a94a0814a8f1944 Author: Felix Fietkau Date: Tue Sep 14 18:38:26 2010 +0200 ath9k_hw: handle rx key miss If AR_KeyMiss is set in the rx descriptor and AR_RxFrameOK is unset, the hardware could not locate a valid key during a decryption attempt. In this case, the frame must not be reported as decrypted, otherwise mac80211 sees only random garbage. Signed-off-by: Felix Fietkau Cc: stable@kernel.org Signed-off-by: John W. Linville commit 2944f45d9db851e186774df7c9cbf075f4a585c6 Author: Felix Fietkau Date: Tue Sep 14 18:37:20 2010 +0200 mac80211: add a note about iterating interfaces during add_interface() Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville commit 31a01645c0c7b46d7f74777cd2a66ddb2a22bbd9 Author: Felix Fietkau Date: Tue Sep 14 18:37:19 2010 +0200 ath9k: fix BSSID mask calculation At the time the .add_interface driver op is called, the interface has not been marked as running yet, so ieee80211_iterate_active_interfaces will not pass it to the iterator function. Because of this, the calculated BSSID mask is wrong, which breaks multi-BSS operation. Additionally, the current way of comparing all addresses against each other is pointless, as the hardware only uses the hardware MAC address and the BSSID mask for matching the destination address, so all the address array reallocation is completely unnecessary. This patch simplifies the logic by setting the initial mask bytes to 0xff and removing all bits in the iterator call that don't match the hardware MAC address. It also calls the iterator for the vif that was passed to add_interface() Signed-off-by: Felix Fietkau Tested-by: Ben Greear Signed-off-by: John W. Linville commit 4a0e8ecca4eeed38d4b3b7a317a3aaab4dd3cacd Author: Rajkumar Manoharan Date: Tue Sep 14 14:35:55 2010 +0530 ath9k_htc: Fix CPU usage issue during scan period The CPU consumption during the scan period is high, since the register write go over Interrupt endpoint. On downloading the firmware to the target, the USB descriptors are 'patched' to change the type of the endpoints from Interrupt to Bulk. With this fix, the CPU usage during a scan run comes down to acceptable levels. Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit cc0de6536e8b70d61948128a9cbf86920066c53d Author: Rajkumar Manoharan Date: Tue Sep 14 13:07:28 2010 +0530 ath9k_htc: Fix memory leak on WMI event handler ath9k_wmi_ctrl_rx is racy with ath9k_wmi_tasklet on event notification due to which the wmi_skb may be overwritten which leads to memory leak. Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit 3a160a5b5fc7d45fa2f869b23f8fcd27a4c05f8f Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:45 2010 +0200 iwlwifi: apply settings when finishing scan Even is someone else complete scanning in mac80211, apply rxon and tx power settings if gets scan complete notification from hardware. Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit 7cf24421292d92556d53630e6973b34324c94103 Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:44 2010 +0200 iwlwifi: use IWL_DEBUG_SCAN for debug scanning Replace IWL_DEBUG_{INFO,HC,RC} to IWL_DEBUG_SCAN in iwl-scan.c file. Add some more IWL_DEBUG_SCAN messages. This will allow to fully debug scanning using only IWL_DL_SCAN flag. Also start one message sentence with capital letter, since that convention in iwl-scan.c file. Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi Guy Signed-off-by: John W. Linville commit 74d81b259d6c8493f066e34c939cb6fb7d3129e5 Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:43 2010 +0200 iwlwifi: cleanup scan initiate check Remove redundant checks and use iwl_is_ready_rf(). Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit edeb78a7fa838b7fb9c2043680bd8da7cb5cb0e5 Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:42 2010 +0200 mac80211: wait for scan work complete before restarting hw This is needed to avoid warning in ieee80211_restart_hw about hardware scan in progress. Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit e7e16b90b477a07d17af37dceb2e8af1ddbd9712 Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:41 2010 +0200 iwlwifi: do not force complete scan too early Currently we force scan complete at the end of iwl_scan_cancel_timeout function. This cause race condition when we can get a new scan request from mac80211 and complete it by iwl_bg_complete from older scan. Change code to force scan complete only when really needed: device goes down, interface is removed or scan timeout occurs. Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit 6bd1758d978f917dc0804f44e3528ef1a80d9d43 Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:40 2010 +0200 iwlwifi: assure we complete scan in scan_abort and scan_check works Assure we complete scan in mac80211 when we abort scanning (scan_abort work) or scan timeout occurs (scan_check work). Currently iwl_scan_cancel_timeout() procedure force scan finish in mac80211 at the end of timeout loop, so we can use it in proper work functions. Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi Guy Signed-off-by: John W. Linville commit f5354c17dc29681c241f2774f3ef9478fb586673 Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:39 2010 +0200 iwlwifi: force scan complete after timeout If we do not get notification from hardware about scan complete, after timeout do mac80211 scan completion anyway. This assure we end scan in case of firmware hung. Patch fix one of the causes of wdev_cleanup_work warning reported at https://bugzilla.redhat.com/show_bug.cgi?id=593566 Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit 3f08e4ef807c3103ceebf7993c7463c7a90646f3 Author: Chris Wilson Date: Tue Sep 14 20:15:22 2010 +0100 agp/intel: Fix resume regression from 2d2430cf On i915 [EeePCs] something scribles over the registers during suspend and resume so we must save a copy of the PGETBL_CTL register programmed by the BIOS and restore that upon resume. Reported-by: Sitsofe Wheeler Signed-off-by: Chris Wilson commit b1c5b0f8cc16a1d22e2e521c4236a6ceca1b2983 Author: Chris Wilson Date: Tue Sep 14 19:30:13 2010 +0100 agp/intel: Remove redundant setting of gtt_mappable_entries Two calls enter, only one will leave. Signed-off-by: Chris Wilson commit 819f3fb7fe349d0e6aadbd7088529ab95fe5cd9f Author: Chris Wilson Date: Tue Sep 14 19:11:56 2010 +0100 drm/i915/sdvo: Propagate i2c error from switching DDC control bus. Signed-off-by: Chris Wilson commit 9d1a903d4ba1033b811ded8d3e5d0f01eeeaaa1d Author: Chris Wilson Date: Tue Sep 14 17:58:19 2010 +0100 drm/i915/sdvo: Tidy intel_sdvo_hdmi_sink_detect Signed-off-by: Chris Wilson commit 2b6efaa47615b29e572d7fc444565db62ca9bcf7 Author: Chris Wilson Date: Tue Sep 14 17:04:02 2010 +0100 drm/i915: Remove unused intel_ringbuffer->ring_flag This can always be re-added should somebody find a use... Signed-off-by: Chris Wilson commit 890f3359f7b84d7015104360d647ccac5f515542 Author: Chris Wilson Date: Tue Sep 14 16:46:59 2010 +0100 drm/i915/i2c: Track the parent encoder rather than just the dev The SDVO proxy i2c adapter wants to be able to use information stored in the encoder, so pass that through intel_i2c rather than iterate over all known encoders every time. Signed-off-by: Chris Wilson commit 2cf34d7b7ee99c27c1a6bdd2f91344cbfa5fef5c Author: Chris Wilson Date: Tue Sep 14 13:03:28 2010 +0100 drm/i915: Allow get_fence_reg() to be uninterruptible As we currently may need to acquire a fence register during a modeset, we need to be able to do so in an uninterruptible manner. So expose that parameter to the callers of the fence management code. Signed-off-by: Chris Wilson commit 48b956c5a89c7b100ef3b818b6ccf759ab695383 Author: Chris Wilson Date: Tue Sep 14 12:50:34 2010 +0100 drm/i915: Push pipelining of display plane flushes to the caller This ensures that we do wait upon the flushes to complete if necessary and avoid the visual tears, whilst enabling pipelined page-flips. Signed-off-by: Chris Wilson commit 02d8c14b590f583fd6e8c16fe779f845845effd9 Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:38 2010 +0200 iwlwifi: rewrite scan completion Assure (partially) we call ieee80211_scan_completed() only once when scan was requested from mac80211. Code path that first clear STATUS_SCANNING bit is responsible to call ieee80211_scan_completed(). Before the call, we check if mac80211 really request the scan. Still persist some cases when we behave wrong, that will be addressed in the next patches. Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit e693a802f06f538b711333a32a83e2732dc4773d Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:37 2010 +0200 iwlwifi: rework iwl_scan_cancel_timeout Since on timeout version of iwl_scan_cancel procedure we can sleep, do not have to schedule abort_scan work to begin and perform scanning, can do this directly. Also now, as we do not queue abort_scan from restart work anymore, we can queue abort_scan to priv->workqueue. Don't drop mutex when waiting for scan complete. Use STATUS_HW_SCAN bit to check if scanning is currently pending, because STATUS_SCANNING will be cleared only with priv->mutex taken. Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit cd44600fdd89832c0bc898189270a81be0db01cd Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:36 2010 +0200 iwlwifi: report scan completion when abort fail When we are not able to send abort command to firmware, notify mac80211 that we complete scan, as we will newer do it lately. Check for all possible errors that low level sending command procedure does not check, to assure we catch all failures cases. Patch fix one of the causes of wdev_cleanup_work warning reported at https://bugzilla.redhat.com/show_bug.cgi?id=593566 Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit d745d472afcbc6354ebfee008123894a7f37e97e Author: Stanislaw Gruszka Date: Mon Sep 13 14:46:35 2010 +0200 iwlwifi: cancel scan when down the device Always cancel scan when stooping device and scan is currently pending, we should newer have scan running after down device. To assure we start scan cancel from restart work we have to schedule abort_scan to different workqueue than priv->workqueue. Patch fix not cancel scanning when restarting firmware, what is one of the causes of wdev_cleanup_work warning (together with permanent network connection lost) reported at https://bugzilla.redhat.com/show_bug.cgi?id=593566 Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit d5926d9d6a183d109060f68c0b96ea2b33c15377 Author: Johannes Berg Date: Mon Sep 13 14:46:34 2010 +0200 iwlwifi: move scan completed flags handling Move the scan completed flags handling so that we can notify mac80211 about aborted scans with the correct status. Also queue the scan_completed work before the BT status update so that it won't see the bits still set (unless a new scan was started in which case that's fine.) Signed-off-by: Johannes Berg Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit 3eecce527c7434dfd16517ce08b49632c8a26717 Author: Johannes Berg Date: Mon Sep 13 14:46:33 2010 +0200 iwlwifi: unify scan start checks Rather than duplicating all the checks and even in case of errors accepting the scan request from mac80211, we can push the checks to the caller and in all error cases reject the scan request right away (rather than accepting and then saying it was aborted). Signed-off-by: Johannes Berg Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit b5be3efc34294cc34e305903df6a388950e8d1f3 Author: Johannes Berg Date: Mon Sep 13 14:46:32 2010 +0200 iwlwifi: remove unused conf variables There are a number of conf variables that are unused, remove them. Signed-off-by: Johannes Berg Signed-off-by: Stanislaw Gruszka Acked-by: Wey-Yi W Guy Signed-off-by: John W. Linville commit 740c1aa3b01251c3c324743f395621749b099065 Author: Steve deRosier Date: Sat Sep 11 20:01:31 2010 -0700 mac80211: Fix dangling pointer in ieee80211_xmit hdr pointer is left dangling after call to ieee80211_skb_resize. This can cause guards around mesh path selection to fail. Signed-off-by: Steve deRosier Signed-off-by: John W. Linville commit a1e567c83f541432e687142570215b75bebb1338 Author: Bill Jordan Date: Fri Sep 10 11:22:32 2010 -0400 nl80211: Uninitialized variable There is a path in nl80211_set_wiphy where result is tested but uninitialized. I am hitting this path when I attempt: sh# iw dev wlan0 set channel 10 command failed: Unknown error 1069727332 (-1069727332) Signed-off-by: William Jordan Signed-off-by: John W. Linville commit 942623166df3256821e8451273bc07737745e3cb Author: Nikitas Angelinas Date: Wed Sep 8 22:29:53 2010 +0100 net/wireless: use ARRAY_SIZE macro in radiotap.c Replace sizeof(rtap_namespace_sizes) / sizeof(rtap_namespace_sizes[0]) with ARRAY_SIZE(rtap_namespace_sizes) in net/wireless/radiotap.c Signed-off-by: Nikitas Angelinas Signed-off-by: John W. Linville commit bbce80e1101526f7a616e75a0d77b57f4062c62d Author: Nikitas Angelinas Date: Wed Sep 8 22:25:42 2010 +0100 drivers/net/wireless/ath/ath9k: use ARRAY_SIZE macro in ani.c Replace (sizeof(ofdm_level_table)/sizeof(ofdm_level_table[0]) with ARRAY_SIZE(ofdm_level_table), and (sizeof(cck_level_table)/ sizeof(cck_level_table[0]) with ARRAY_SIZE(cck_level_table) in drivers/net/wireless/ath/ath9k/ani.c Signed-off-by: Nikitas Angelinas Signed-off-by: John W. Linville commit 516c6e1f52a09fb2e7024101db3f0375f65670df Author: Fabio Rossi Date: Wed Sep 8 22:37:41 2010 +0200 ath5k: avoid unneeded calibration error messages Don't generate calibration errors messages when not needed. Signed-off-by: Fabio Rossi Acked-by: Bruno Randolf Signed-off-by: John W. Linville commit 65b7fc97473656eb35b6b58a22c7cef4a99d9e35 Author: Helmut Schaa Date: Wed Sep 8 20:57:40 2010 +0200 rt2x00: fix oops in rt2x00lib_txdone with rt61pci Fix a typo introduced in "rt2x00: Add helper function for reporting tx status" that results in an oops in rt2x00lib_txdone. Reported-by: Pavel Roskin Signed-off-by: Helmut Schaa Acked-by: Gertjan van Wingerde Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 6646505de03b2ae85de09fd3b8d383ab816a19f9 Author: Helmut Schaa Date: Wed Sep 8 20:57:10 2010 +0200 rt2x00: Enable missing interrupts in rt61pci We're handling both, the CSR_BEACON_DONE and the CSR_TWAKEUP interrupts in rt61pci. However, these interrupts are masked out by default. Fix this. Found via pure code inspection. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 93149cf87bdd511db86d709a6db7ed09f1b8ba99 Author: Helmut Schaa Date: Wed Sep 8 20:56:52 2010 +0200 rt2x00: Mask out unused interrupts in rt2800pci We don't use all available interrupts in rt2800pci. Mask out all unused interrupts to avoid waking up without having anything to do. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 0204464329c17ba6d293e1899f71223599a0e582 Author: Helmut Schaa Date: Wed Sep 8 20:56:32 2010 +0200 rt2x00: Check for specific changed flags when updating the erp config Previously rt2x00 was always updating all erp related config variables even though mac80211 might only have changed one. Hence, pass the changed flags to the config_erp driver callback so that the driver can limit the changes to the correct values. This fixes an issue in AP mode where the beacon interval is not initialized (and thus zero) but still sent to the hardware causing an interrupt storm on rt2800pci hanging the system. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 47ee3eb1359a5444efd9f529e3d28c02e8e405e7 Author: Helmut Schaa Date: Wed Sep 8 20:56:04 2010 +0200 rt2x00: Initialize AMPDU_BA_WINSIZE register Since we're not using the AMPDU_BA_WINSIZE register to force the BlockAck window size (we specify it in every TXWI) we should initialize it to 0. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 85f4d6488cba35d3bb58833edbcb28faaffdd37c Author: Lars Ericsson Date: Wed Sep 8 20:55:36 2010 +0200 rt2x00: Antenna diversity does not work in 2.6.35 The test if antenna diversity is at all enabled uses a local variable 'flags' to prepare the test condition, but uses 'ant->flags' when the test is evaluated. The effect is that the diversity evaluation will never start. I can see two solutions, use the 'flag' in the test condition or revert the local flag change. My attached patch took alternative two. Then the evaluation start but it will still not switch antenna. The problem is a code section in rt2x00lib_config_antenna (). The effect of that code section is that any change the diversity function perform will be effectively shorten and no antenna selection command issued. The attached patch will filter out any ANTENNA_SW_DIVERSITY setting but forward all other Signed-off-by: Lars Ericsson Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville commit 58d7e0f37cfc5b4f473d437024a03d874e5969a3 Author: Rajkumar Manoharan Date: Wed Sep 8 15:57:12 2010 +0530 ath9k_hw: Support fastcc for AR7010 To reduce scan time, enable fastcc for AR7010 (fastcc == fast channel change -- JWL) Signed-off-by: Rajkumar Manoharan Signed-off-by: John W. Linville commit 49063a0d0b65e40ece846a744cb10cbdf295515d Author: Ohad Ben-Cohen Date: Tue Sep 7 04:24:21 2010 +0300 wl1271: sdio: claim host only when doing IO Do not maintain a persistent sdio_claim_host state. Instead, claim host before doing IO and release host soon after. This fixes several mmc deadlock scenarios, e.g. during suspend/resume. Signed-off-by: Ohad Ben-Cohen Acked-by: Luciano Coelho Signed-off-by: John W. Linville commit 1d7e1e6b1b8ed456e7678130ad17086a5f5b3286 Author: Christian Lamparter Date: Mon Sep 6 01:10:25 2010 +0200 carl9170: Makefile, Kconfig files and MAINTAINERS Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 00c4da27a4219385cfe6a3054ddf3195c9e3c30e Author: Christian Lamparter Date: Mon Sep 6 01:09:49 2010 +0200 carl9170: firmware parser and debugfs code Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit a84fab3cbfdc427e7d366f1cc844f27b2084c26c Author: Christian Lamparter Date: Mon Sep 6 01:09:20 2010 +0200 carl9170: 802.11 rx/tx processing and usb backend Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 319da621d5c4e9bd8c34feeb200e864e87d91fe7 Author: Christian Lamparter Date: Mon Sep 6 01:08:38 2010 +0200 carl9170: PHY/RF and MAC routines Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit aae9af605a41cb3e9bbad15df72076423a22f903 Author: Christian Lamparter Date: Mon Sep 6 01:06:57 2010 +0200 carl9170: Register maps, tx/rx descriptor formats and eeprom layout Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit fe8ee9ad80b28382111f0aab01690b09982e5691 Author: Christian Lamparter Date: Mon Sep 6 00:48:55 2010 +0200 carl9170: mac80211 glue and command interface Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville commit 57c072c7113f54f9512624d6c665db6184448782 Author: Steven Rostedt Date: Tue Sep 14 11:21:11 2010 -0400 tracing: Fix reading of set_ftrace_filter across lists If we do: # cd /sys/kernel/debug # echo 'do_IRQ:traceon schedule:traceon sys_write:traceon' > \ set_ftrace_filter # cat set_ftrace_filter We get the following output: #### all functions enabled #### sys_write:traceon:unlimited schedule:traceon:unlimited do_IRQ:traceon:unlimited This outputs two lists. One is the fact that all functions are currently enabled for function tracing, the other has three probed functions, which happen to have 'traceon' as their commands. Currently, when reading the first list (functions enabled) the seq_file code will receive a "NULL" from the t_next() function causing it to exit early. This makes "read()" from userspace stop reading the code at this boarder. Although read is allowed to do this, some (broken) applications might consider this an end of file and stop early. This patch adds the start of the second list to t_next() when it finishes the first list. It is a simple change and gives the set_ftrace_filter file nicer reading ability. Signed-off-by: Steven Rostedt commit 98c4fd046f07156ca6055677e8f03d4280be16c1 Author: Steven Rostedt Date: Fri Sep 10 11:47:43 2010 -0400 tracing: Keep track of set_ftrace_filter position and allow lseek again This patch keeps track of the index within the elements of set_ftrace_filter and if the position goes backwards, it nicely resets and starts from the beginning again. This allows for lseek and pread to work properly now. Signed-off-by: Steven Rostedt commit ca8c1e5990926406708d99fe1ce2a6f5e12f9033 Author: Jason Cooper Date: Tue Sep 14 09:45:33 2010 -0400 staging: brcm80211: fix "ERROR: do not use assignment in if condition" Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 90ea22962c5160812c601a115fb7b80c60d49fad Author: Jason Cooper Date: Tue Sep 14 09:45:32 2010 -0400 staging: brcm80211: fix "ERROR: return is not a function, paren..." Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit a2627bc06580ffe1115b24a1dcce52924f157955 Author: Jason Cooper Date: Tue Sep 14 09:45:31 2010 -0400 staging: brcm80211: fix "ERROR: open brace '{' following function dec..." Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 4aeb69672d011fac5c8df671f3ca89f7987c104e Author: Steven Rostedt Date: Thu Sep 9 10:00:28 2010 -0400 tracing: Replace typecasted void pointer in set_ftrace_filter code The set_ftrace_filter uses seq_file and reads from two lists. The pointer returned by t_next() can either be of type struct dyn_ftrace or struct ftrace_func_probe. If there is a bug (there was one) the wrong pointer may be used and the reference can cause an oops. This patch makes t_next() and friends only return the iterator structure which now has a pointer of type struct dyn_ftrace and struct ftrace_func_probe. The t_show() can now test if the pointer is NULL or not and if the pointer exists, it is guaranteed to be of the correct type. Now if there's a bug, only wrong data will be shown but not an oops. Cc: Chris Wright Signed-off-by: Steven Rostedt commit 2bccfffd1538f3523847583213567e2f7ce00926 Author: Steven Rostedt Date: Thu Sep 9 08:43:22 2010 -0400 tracing: Do not reset *pos in set_ftrace_filter After the filtered functions are read, the probed functions are read from the hash in set_ftrace_filter. When the hashed probed functions are read, the *pos passed in is reset. Instead of modifying the pos given to the read function, just record the pos where the filtered functions ended and subtract from that. Signed-off-by: Steven Rostedt commit 7cc4a4c02954afcd00abe5af81a4254d33a36e14 Author: Jason Cooper Date: Tue Sep 14 09:45:30 2010 -0400 staging: brcm80211: fix 'ERROR: "foo * bar" should be "foo *bar"' Signed-off-by: Jason Cooper Signed-off-by: Greg Kroah-Hartman commit 29f6465fc8d9a3bdee8378ed1d82c8ff8364e65e Author: Henry Ptasinski Date: Sat Sep 11 09:44:09 2010 -0700 staging: brcm80211: Fix URLs for firmware files. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 8dab24ce3e90219794a9ac28d79d22e528920b06 Author: Andy Shevchenko Date: Mon Sep 13 11:40:27 2010 +0300 staging: brcm80211: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Cc: Nohee Ko Cc: linux-wireless@vger.kernel.org Signed-off-by: Greg Kroah-Hartman commit d30dc9a2f2f0a80ee1b11d3565ccd3ae83a26df4 Author: Henry Ptasinski Date: Thu Sep 9 11:53:33 2010 -0700 staging: brcm80211: Add contact info to TODO list. Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit eb4764c3007ca306663ba1367a2b3475bfcdf09e Author: Ben Hutchings Date: Fri Sep 10 01:38:18 2010 +0100 staging: brcm80211: Fix some initialisation failure paths Initialise wl_info::tasklet early so that it's safe to tasklet_kill() it in wl_free(). Remove assertions from wl_free() that may not be true in case of initialisation failure. Call wl_release_fw() in case of failure after wl_request_fw(). Don't rely on wl_firmware::fw_cnt in wl_release_fw(). Signed-off-by: Ben Hutchings Signed-off-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman commit 7b6c3a34e93aafc5dd9adc7dee87c7fa61d8bdbb Author: Andreas Schwab Date: Sat Sep 11 13:16:41 2010 +0200 ALSA: sound/ppc/powermac: remove undefined operations Modifying an object twice without an intervening sequence point is undefined. Signed-off-by: Andreas Schwab Signed-off-by: Takashi Iwai commit a254dba37c5a372fc8b44ba29509ba052d4e859d Author: Ben Hutchings Date: Sun Sep 12 02:41:47 2010 +0100 ALSA: emux: Add trivial compat ioctl handler Reported-by: Carmen Cru Signed-off-by: Ben Hutchings Signed-off-by: Takashi Iwai commit 47023ec774b6f73bb11d9f3b00b21f2bbd87e0f2 Author: Joe Perches Date: Mon Sep 13 21:24:02 2010 -0700 sound: Use static const char * const where possible Signed-off-by: Joe Perches Signed-off-by: Takashi Iwai commit f3fbba6efbab93b9850821d41a75b02286d18315 Merge: 15c5ab6 147fcf1 Author: Takashi Iwai Date: Tue Sep 14 16:15:29 2010 +0200 Merge branch 'fix/misc' into topic/misc commit 7740191cd909b75d75685fb08a5d1f54b8a9d28b Author: Mathieu Desnoyers Date: Mon Sep 13 17:47:00 2010 -0400 sched: Fix string comparison in /proc/sched_features Fix incorrect handling of the following case: INTERACTIVE INTERACTIVE_SOMETHING_ELSE The comparison only checks up to each element's length. Changelog since v1: - Embellish using some Rostedtisms. [ mingo: ^^ == smaller and cleaner ] Signed-off-by: Mathieu Desnoyers Reviewed-by: Steven Rostedt Cc: Cc: Peter Zijlstra Cc: Tony Lindgren LKML-Reference: <20100913214700.GB16118@Krystal> Signed-off-by: Ingo Molnar commit 9e76e7b8bd716413cfd722a807aa22723f3a895f Author: Chris Wilson Date: Tue Sep 14 12:12:11 2010 +0100 agp/intel: Use macro to set the count of the size array It's a fixed size array so let the compiler do the hard work of updating all the call sites. Signed-off-by: Chris Wilson commit 0bc23aad3b67ca0cd7480dec0b7652d9b8686432 Author: Chris Wilson Date: Tue Sep 14 10:22:23 2010 +0100 drm/i915: Fix regression in ba3d8d749b I pulled the wrong version of the patch from Daniel Vetter which was missing the read barriers -- and the one that was causing all the trouble was from i915_gem_object_put_fence_reg(), leading to GPU hangs on gen3. Signed-off-by: Chris Wilson commit 7213342db58adb7b8e399a00fc423951d7f75369 Author: Chris Wilson Date: Mon Sep 13 23:56:38 2010 +0100 drm/i915: Consolidate flushing the display plane Signed-off-by: Chris Wilson commit b3b079dbef06c7f775178d561a4c8e47b7447139 Author: Chris Wilson Date: Mon Sep 13 23:44:34 2010 +0100 drm/i915: Reduce hangcheck frequency By reducing the hangcheck frequency we check less often, conserving resources, and still detect a lock up quickly. On a fast machine with a slow GPU (like a Core2 paired with a 945G) it is easy for the hangcheck to misfire as we check too fast. Also once hung and if we fail to completely reset the chip, we have a nasty habit of proclaming a hang many times a second and generating a strobe-like display. Signed-off-by: Chris Wilson commit 5d75b3a2476d848a354d939d2b89c36d3394ac59 Author: Paul Mundt Date: Tue Sep 14 18:26:38 2010 +0900 Revert "sh: ecovec24: modify tsc2007 platform settings" According to Morimoto-san, this is no longer needed. Revert it. This reverts commit e0009b0a44f28227571d8cddebc5ccdae86027a6. Signed-off-by: Paul Mundt commit 51d149be0a535634b86493a4d910e3320cc984ea Author: Paul Mundt Date: Tue Sep 14 17:43:11 2010 +0900 sh: Provide a non-multiplexed sys_recvmmsg path. Now that the rest of the socket calls are provided through their own paths, do the same for sys_recvmmsg. It's unlikely we'll ever be able to kill off the socketcall path, but this at least permits userspace to gradually begin migrating. Signed-off-by: Paul Mundt commit 459ebb34bd90f1ff12725a17289b7defbc6cd655 Author: Carmelo AMOROSO Date: Wed Sep 1 01:49:29 2010 +0000 sh: Add syscall entries for non multiplexed socket calls Linux kernel already has socket syscalls that can be invoked without the multiplexing sys_socketcall wrapper. C library wrappers are ready to use them directly. It needs just to define the missing syscall numbers and provide the related entries into the syscalls table, like sh64 aleady does. Signed-off-by: Francesco Rundo Signed-off-by: Carmelo Amoroso Signed-off-by: Paul Mundt commit e0009b0a44f28227571d8cddebc5ccdae86027a6 Author: Kuninori Morimoto Date: Fri Aug 27 09:49:30 2010 +0000 sh: ecovec24: modify tsc2007 platform settings This patch modify x_plate_ohms to correct value for tsc2007 panel, and removed un-necessary ts_get_pendown_state() Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt commit 248bc0d93bde744751a05d322d85269323d3af0c Author: Matt Fleming Date: Sat Aug 21 14:49:38 2010 +0000 sh: Set CONFIG_SYSFS_DEPRECATED_V2=n As the help for the config option suggests, this option really shouldn't be set by default for any recent distribution as it changes the layout of sysfs. I spotted this while running debian when udev got very confused by the sysfs layout and failed to create some device nodes. Signed-off-by: Matt Fleming Signed-off-by: Paul Mundt commit 52d5ac0073eb5faf284574bd98a25a65053eaae0 Author: Kuninori Morimoto Date: Tue Sep 14 17:28:55 2010 +0900 ARM: mach-shmobile: ap4evb: modify touchpanel judgment condition Current touchpanel had below 2 issues - LCDD2 pin which is needed for WVGA was changed to IRQ28_123 pin on ts_get_pendown_state - GPIO pull up on ts_init was disabled by gpio_request on ts_get_pendown_state. This mean the return value from gpio_get_value is untrusted. This patch solve these issues Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt commit a91a2d06c9797c0a533a71dbeea37b2d5a60c7f5 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:42 2010 +0000 ARM: mach-shmobile: add two more video modes for HDMI Add video modes for 480p and SXGA (1280x1024). Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit afe417c0355154c8b2547619771d6053b3c0aad7 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:39 2010 +0000 fbdev: sh_mobile_hdmi: support hot-plugging of different HDMI / DVI displays With this patch hot-plugging of an HDMI or a DVI monitor can select a different video mode and reconfigure the LCDC and HDMI controllers accordingly. Due to a lack of a standard API to inform framebuffer users of a changed video mode, the framebuffer configuration is preserved regardless of a specific mode, selected for the monitor. As described in a previous patch, this leads to smaller framebuffers being displayed on larger monitors or a part of a larger framebuffer being displayed on a smaller resolution monitor. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 9289c475823b6eee1f68af2a71243d0cff126948 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:35 2010 +0000 fbdev: sh_mobile_hdmi: improve HDMI PHY parameters for high resolutions High monitor resolutions also require higher clock frequencies, current HDMI PHY parameters do not work well for resolutions higher than 720p. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 6aa966e610f918a6732a5acc102cb5e8de616cb3 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:31 2010 +0000 fbdev: sh_mobile_hdmi: cosmetic improvements Improve comments, unify function names, replace pr_debug with dev_dbg. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 1c120deb60edd4c19a2109daa98f65f2ad3b9c06 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:27 2010 +0000 fbdev: sh_mobile_lcdcfb: separate display variable data from framebuffer data This is a preparation for a patch, that shall allow displaying of a smaller framebuffer on a bigger display and of a part of a bigger framebuffer on a smaller display. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 6de9edd5bde0cdfea12e9948690e53ec669c3018 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:23 2010 +0000 fbdev: sh_mobile_hdmi: implement locking The SH-Mobile HDMI driver runs in several contexts: ISR, delayed work-queue, task context, when called from the sh_mobile_lcdc framebuffer driver. This creates ample race possibilities. Even though most these races are purely theoretical, it is better to close them. To trace fb_info validity we install a notification callback in the HDMI driver, and the only way for it to get to driver internal data is by using struct sh_mobile_lcdc_chan, therefore it had to be extracted into a separate common header. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 89712699d7bc9cc93602407e0e9bc2490b771400 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:20 2010 +0000 fbdev: sh_mobile_hdmi: enable "external" mode The SH-Mobile HDMI controller supports two configuration modes: using pre-programmed VICs and the "external" mode - specifying video parameters explicitly. The driver already contains code, necessary to configure HDMI manually, this patch actually enables it. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 6e45746c36d5ab4c3486760e45a555263a0b9fac Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:16 2010 +0000 fbdev: sh_mobile_hdmi: add initial support for modes, other than 720p To support standard video modes, other than 720p, the HDMI PHY configuration has to be adjusted and the VIC has to be sent to the display. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 71d3b0fcadf70d0de1ad334f48c9a4060209091a Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:12 2010 +0000 fbdev: sh_mobile_lcdcfb: allocate memory, sufficient for the biggest mode Now, that we add support for multiple modes to the sh_mobile_lcdcfb driver, it has to allocate memory, sufficient for the biggest of them. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit baf163749952ca5e33dd2d6a74da023e385c3a00 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:08 2010 +0000 fbdev: sh_mobile_lcdcfb: fix notifier callback return codes Notifier callbacks have to return either one of NOTIFY_* codes or a negative errno, converted to a suitable value by the notifier_from_errno() inline, if the notifier chain shall not be continued. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 44432407d9f5e4b2e56c7eccb65d98cad4bba191 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:04 2010 +0000 fbdev: sh_mobile_lcdcfb: Support multiple video modes in platform data This is a preparation for HDMI hotplug support. This patch just moves all platform defined video modes for the sh_mobile_lcdcfb driver to separate arrays and switches all users to use element 0 of that array, so, this patch doesn't introduce any functional changes and as such should not cause any regressions. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 01ac25b59f08c0bb56dd301f024eabd542205a42 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:20:00 2010 +0000 fbdev: sh_mobile_lcdcfb: minor simplifications and clean up Remove an unused variable and simplify several pointer dereferences. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 5ef6b505d9df45558402bdb823a078840a6a26c4 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:19:57 2010 +0000 fbdev: sh_mobile_lcdcfb: fix more error paths This patch fixes the following two erroneous error paths: hw_usecnt is allocated with a value of 0, therefore in an early error case, calling sh_mobile_lcdc_clk_off() will wrongly conclude, that hw_usecnt has already been incremented. Then sh_mobile_lcdc_runtime_suspend() will be called, which will access uninitialised data fields and crash the kernel. sh_mobile_lcdc_stop() can be called before framebuffer has been allocated, then ch->info is NULL and dereferencing it will Oops too. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 6ee4845270d9b1e7ea348f9e3b6347f54f986abb Author: Guennadi Liakhovetski Date: Fri Sep 3 07:19:53 2010 +0000 fbdev: sh_mobile_hdmi: simplify the EDID reading procedure The present SH-Mobile HDMI driver reads and parses the EDID block into a variable screeninfo object, but since it is still unable to dynamically reconfigure the framebuffer, it overwrites the EDID information with preset values again. This patch just uses a temporary variable to store the EDID timing information instead. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 14177a5e56904a584f3777f36b50c8d7bfde5810 Author: Guennadi Liakhovetski Date: Fri Sep 3 07:19:49 2010 +0000 fbdev: sh_mobile_lcdcfb: use fb_videomode_to_var() instead of open-coding Use the standard fb_videomode_to_var() instead of filling fb_var_screeninfo fields manually in, also remove a redundant memset(0). Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit 7923ac133b5dcdbb0cfff245d8045f1ff9694cba Author: Kuninori Morimoto Date: Fri Sep 3 05:36:43 2010 +0000 ARM: mach-shmobile: sh7372: modify INTCS table Add ignored device name by comment-out in INTCS. And MSIOF which has been forgotten is added Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt commit 53b29b4c36cdfcb3d0641edf180db7ebd53ec029 Author: Kuninori Morimoto Date: Thu Sep 2 07:20:40 2010 +0000 ARM: mach-shmobile: pfc-sh7372: modify wrong comment Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt commit f989ae5b01b065b2124f5b83fffaddda07f6a38c Author: Magnus Damm Date: Tue Aug 31 09:27:53 2010 +0000 ARM: mach-shmobile: Use evt2irq() for sh7372 DMAC Use evt2irq() for DMAC resources on sh7372. This makes the code easier to read and also allows adjusting the INTC base offset without breaking platform data. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit dd8a61a739f98c2cd2fbf811b5b659433f0023f6 Author: Magnus Damm Date: Tue Aug 31 09:22:36 2010 +0000 ARM: mach-shmobile: Extend AP4EVB LCD comments Extend dip switch comments for QHD and WVGA LCD panels on AP4EVB. Similar to the Ecovec comments. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt commit 6d6f0874490f7e7ed16408e5396f655d386edf29 Author: Kuninori Morimoto Date: Fri Aug 27 10:15:44 2010 +0000 fbdev: sh-mobile_hdmi: remove un-necessity settings Current gamut, acp, isrc1, isrc2 settings are wrong, and not necessary for now. Tested-by: Takanari Hayama Signed-off-by: Kuninori Morimoto Tested-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt commit ef7315084ede82ea55f251003a6f0088d95d9fa6 Author: Kuninori Morimoto Date: Fri Aug 27 09:49:50 2010 +0000 ARM: mach-shmobile: ap4evb: modify tsc2007 platform settings This patch modify x_plate_ohms to correct value for tsc2007, and removed un-necessary ts_get_pendown_state(). gpio_pull_up() was removed also. Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt commit 12280faea62c7e2d7124996d9342b483ac1706d3 Author: Jassi Brar Date: Fri Sep 10 16:41:05 2010 +0900 ASoC: Samsung: Debug PCM snd_soc_dai_driver registration Each of the two PCM controllers need to be registered during probe with appropriate 'name' of the dai driver. Signed-off-by: Jassi Brar Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 28927011e46844aa966971c644d821f9aab2e9f9 Author: Mark Brown Date: Mon Sep 13 10:11:14 2010 +0100 ASoC: Set more meaningful name for SMDK64xx WM8580 audio Since the SMDK64xx boards have two audio subsystems using the board name as the card name by itself isn't so user friendly as it might be. Signed-off-by: Mark Brown Acked-by: Jassi Brar Acked-by: Liam Girdwood commit 1c7fc7e547ed68e3f5eb1b056e4cf10b316335d6 Author: Kuninori Morimoto Date: Mon Sep 13 19:40:13 2010 +0900 ASoC: fsi codecs: Update card name field Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown commit 528487081aad32da85bf99802bdb7af32f4922b9 Author: Dmitry Torokhov Date: Mon Sep 13 23:53:55 2010 -0700 Input: gameport_driver - drop private pointer Nobody uses it anymore. Signed-off-by: Dmitry Torokhov commit 37b0bb112b7e3ffa5015c4305a934e861b4e2e53 Author: Dmitry Torokhov Date: Mon Sep 13 23:53:55 2010 -0700 Input: gameport_driver - mark description as const pointer Memory pointed to by the pointer should not change. Signed-off-by: Dmitry Torokhov commit 7fc49c498c18795d35864bee433caf419bd013b2 Author: Dmitry Torokhov Date: Mon Sep 13 23:53:55 2010 -0700 Input: serio_driver - drop private pointer Nobody uses it anymore. Signed-off-by: Dmitry Torokhov commit ceee42714cf382e9bb9ab71b846ad49497b29d6c Author: Dmitry Torokhov Date: Mon Sep 13 23:53:55 2010 -0700 Input: serio_driver - mark id_table and description as const Memory pointed to by these fields is not supposed to change. Signed-off-by: Dmitry Torokhov commit 53957b56d765f4602715fefb1c553f7a538b3230 Author: Dmitry Torokhov Date: Mon Sep 13 23:53:55 2010 -0700 Input: serio - do not include linux/freezer.h Commit ea486e681188d64c6a101d8d06414aef0f9f0cd3 changed kseriod thread to become not freezable so we do not need this include anymore. Signed-off-by: Dmitry Torokhov commit 8dcbdc742fec9e6c542ff9cb599d2ee620753d07 Author: San Mehat Date: Tue Sep 14 08:48:01 2010 +0200 block: block_dump: Add number of sectors to debug output Signed-off-by: San Mehat Signed-off-by: Linus Walleij Signed-off-by: Jens Axboe commit bc0ed0be10a4925efa7b81a84af53f12fbdbcb4e Author: Andy Shevchenko Date: Sun Sep 12 08:16:26 2010 +0000 uwb: use '%pM' format to print MAC address Signed-off-by: Andy Shevchenko Signed-off-by: David S. Miller commit 251415808306a19be93ec93268e2985f10d3db8b Author: Dmitry Kravkov Date: Sun Sep 12 05:48:28 2010 +0000 bnx2x: Spread rx buffers between allocated queues Default number of rx buffers will be divided equally between allocated queues. This will decrease amount of pre-allocated buffers on systems with multiple CPUs. User can override this behavior with ethtool -G. Minimum amount of rx buffers per queue set to 128. Reported-by: Eric Dumazet Signed-off-by: Dmitry Kravkov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller commit 441993da47777d961300c070fe1210600af48ad8 Author: Ondrej Zary Date: Sat Sep 11 05:40:16 2010 +0000 cx82310_eth: allow empty URBs Empty received URBs are currently counted as errors but the device sends them sometimes as part of regular traffic - so remove this check. Signed-off-by: Ondrej Zary Signed-off-by: David S. Miller commit 7dbfdc2390afc4e244817ab26d5a1b987b0c0669 Author: Ondrej Zary Date: Sat Sep 11 05:39:57 2010 +0000 cx82310_eth: check usb_string() return value for error Fix that usb_string() return value is not checked for error (negative value). Also change the ignore message a bit and lower its level to info. Signed-off-by: Ondrej Zary Signed-off-by: David S. Miller commit d81e27cf4e2a5050245f9962539292ea2c9e2206 Author: Joe Perches Date: Sat Sep 11 19:10:56 2010 +0000 drivers/net/skfp: Remove pr_ uses of KERN_ Signed-off-by: Joe Perches Signed-off-by: David S. Miller commit 70ce679be6f7fd8ff24d4b7007e2c0e430587945 Author: Andreas Schwab Date: Sat Sep 11 01:12:34 2010 +0000 net/cxgb3: remove undefined operations Modifying an object twice without an intervening sequence point is undefined. Signed-off-by: Andreas Schwab Signed-off-by: David S. Miller commit 1570475a477b46cb16b2a0dd73c06974c8d2b550 Author: Andreas Schwab Date: Sat Sep 11 01:08:58 2010 +0000 net/de4x5: remove undefined operations Modifying an object twice without an intervening sequence point is undefined. Signed-off-by: Andreas Schwab Signed-off-by: David S. Miller commit 61a21455ee27dccdd286f61aea611da5e70b47bf Author: Denis Kirjanov Date: Fri Sep 10 23:23:13 2010 +0000 sundance: Add power management hooks This patch to adds support for PM hooks into sundance driver Signed-off-by: Denis Kirjanov Signed-off-by: David S. Miller commit 83b6b1f5d13414d0cb5c4f0a567a6aec0af073bd Author: Eric Dumazet Date: Fri Sep 10 07:00:25 2010 +0000 flow: better memory management Allocate hash tables for every online cpus, not every possible ones. NUMA aware allocations. Dont use a full page on arches where PAGE_SIZE > 1024*sizeof(void *) misc: __percpu , __read_mostly, __cpuinit annotations flow_compare_t is just an "unsigned long" Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit efbc2d7cfa67a9753cd45eb7eee8c9ad10c8b74c Author: Ben Hutchings Date: Mon Sep 13 04:14:49 2010 +0000 sfc: Fix order of channel_name array dimensions Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 637bbdc5b83615ef9f45f50399d1c7f27473c713 Author: Dave Young Date: Mon Sep 13 20:19:03 2010 +0800 sched: Remove unused PF_ALIGNWARN flag PF_ALIGNWARN is not implemented and it is for 486 as the comment. It is not likely someone will implement this flag feature. So here remove this flag and leave the valuable 0x00000001 for future use. Signed-off-by: Dave Young Cc: Peter Zijlstra Cc: Linus Torvalds LKML-Reference: <20100913121903.GB22238@darkstar> Signed-off-by: Ingo Molnar commit e2e767abd85806d05a5266b3b112baaf80ee3382 Author: Chris Wilson Date: Mon Sep 13 16:53:12 2010 +0100 drm/i915: Remove redundant initialisation of crtc->pipe Signed-off-by: Chris Wilson commit e65d9305f528d4f354378690135ee8d1c60ec0a5 Author: Chris Wilson Date: Mon Sep 13 16:58:39 2010 +0100 drm/i915: Initialize intel_crtc->active Fix a regression in the previous regression fix... In order to turn off the pipes entirely upon the first modeset, we pretend that BIOS (or earlier module incarnation) left them active. The first task performed by setup_initial_configuration() is to disable all pipes and so to avoid skipping that step and so to ensure a known configuration we need to mark all the crtcs as active. Signed-off-by: Chris Wilson commit 60eab877a9581b479c6c7d7913ce8070a0ace960 Merge: c3e2f19 88d7be0 Author: Michal Marek Date: Mon Sep 13 17:20:59 2010 +0200 Merge branch 'kbuild/clean' into kbuild/kbuild commit f7abfe8b281991c66406c42c1a6c6c9ee0daa0ff Author: Chris Wilson Date: Mon Sep 13 14:19:16 2010 +0100 drm/i915: Fix an overlay regression from 7e7d76c When separating out the prepare/commit into its own separate functions we overlooked that the intel_crtc->dpms_mode was being used elsewhere to check on the actual status of the pipe. Track that bit of logic separately from the actual dpms mode, so there is no confusion should we be able to handle multiple dpms modes, nor any semantic conflict between prepare/commit and dpms. Signed-off-by: Chris Wilson commit 6b383a7f6378f193c30200435d8170f95916b5f0 Author: Chris Wilson Date: Mon Sep 13 13:54:26 2010 +0100 drm/i915: Share crtc setup and teardown between dpms and disable/enable This closes a couple of corner cases where we introduced and forgot about a couple of routines that need to be called when disabling the crtc and then re-enabling it. The code needs to be moved again so that the common bits are shared across generations. Signed-off-by: Chris Wilson commit 469917ce8717b9f8c5298bf279fa138859baab8d Author: Arnaldo Carvalho de Melo Date: Mon Sep 13 10:25:04 2010 -0300 perf ui browser: Don't use windows, slang is enough They are useless and take away precious columns and lines, so stop using windows. One more step in removing newt code, that after all is not being useful at all for the coalescing TUI model in perf. Suggested-by: Christoph Hellwig Cc: Christoph Hellwig Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: <20100822082003.GB7365@infradead.org> Signed-off-by: Arnaldo Carvalho de Melo commit 0c67b40872326a5340cab51d79a192a5fbaeb484 Author: Peter Zijlstra Date: Mon Sep 13 11:15:58 2010 +0200 perf: Fix free_event() With the context rework stuff we can actually end up freeing an event before it gets attached to a context. Reported-by: Cyrill Gorcunov Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar commit cde8e88498c8de69271fcb6d4dd974979368fa67 Author: Peter Zijlstra Date: Mon Sep 13 11:06:55 2010 +0200 perf: Sanitize the RCU logic Simplify things and simply synchronize against two RCU variants for PMU unregister -- we don't care about performance, its module unload if anything. Reported-by: Frederic Weisbecker Signed-off-by: Peter Zijlstra Cc: Paul E. McKenney LKML-Reference: Signed-off-by: Ingo Molnar commit 458452f4a9b61228cf48a4232a19c8d7d686c11b Author: Michal Marek Date: Mon Sep 13 13:41:31 2010 +0200 kconfig: Simplify Makefile for xconfig Signed-off-by: Michal Marek commit 20f4ad8a19ad01405f9d6b3110d6eb93666ae21e Author: Alexander Stein Date: Fri Sep 10 19:01:14 2010 +0200 Fix QT4 moc, cflags libs detection on dual QT3/Qt4 systems On system with QT3 and QT4 qmake in PATH may be from QT3. So we use pkg-config for proper QT4 detection. By reqesting cflags and libs for either QtCore, QtGui and QtSupport include dirs and libs get listed several times, but so we won't mis anything Signed-off-by: Alexander Stein Acked-by: Randy Dunlap Signed-off-by: Michal Marek commit aee08ed499d65f78373b716fcacefcde1ceb7ade Author: Stephen Boyd Date: Fri Sep 10 01:32:50 2010 -0700 nconfig: Fix help for choice menus When getting the help for a choice menu with a help section (for example the "Choose SLAB allocator" menu) nconfig pops up a window with nothing inside it. This is due to show_help() passing an empty string to show_scroll_win()'s 3rd argument. The option really does have help though, but it isn't a config symbol, so just add the help text for the option, and don't try to add anything else like the config option name. Signed-off-by: Stephen Boyd Acked-by: Nir Tzachar Signed-off-by: Michal Marek commit 788319d48dc2b61db732b19bb9598c062c75ec37 Author: Chris Wilson Date: Sun Sep 12 17:34:41 2010 +0100 drm/i915/lvds: Move private data to the connector from the device. Signed-off-by: Chris Wilson commit 8aadf70bd72c8f15994e68503af8f6722cd5c813 Author: Chris Wilson Date: Sun Sep 12 16:33:47 2010 +0100 drm/i915/lvds: Remove incorrect mode locking One doesn't need to hold the mode lock in order to duplicate a mode. Signed-off-by: Chris Wilson commit e9e331a8abeece1565d383510ed985945132ffe3 Author: Chris Wilson Date: Mon Sep 13 01:16:10 2010 +0100 drm/i915/lvds: Ensure panel is unlocked for Ironlake or the panel fitter Commit 77d07fd9d73ef28689737c0952dbd5d6a5017743 introduced a regression where by not waiting for the panel to be turned off, left the panel and PLL registers locked across the modeset. Thus the panel remaining blank. As pointed out by Daniel Vetter, when testing LVDS it helps to open the laptop and look at the actual panel you are purporting to test. A second issue with the patch was that in order to modify the panel fitter before gen5, the pipe and the panel must have be completely powered down. So we wait. Signed-off-by: Chris Wilson commit b0b2072df3b544f56b90173c2cde7a374c51546b Author: Stephane Eranian Date: Fri Sep 10 13:28:01 2010 +0200 perf_events: Fix BTS interrupt handling to avoid being dazed by NMI (v2) Fix a bug introduced with commit de725de and the change in the meaning of the return value of intel_pmu_handle_irq(). With the current code, when you are using the BTS, you get 'dazed by NMI' each time the BTS buffer fills up. BTS does interrupt on the PMU vector, thus NMI. You need to take this into account in the return value of the function. This version fixes initial patch which was missing changes to perf_event_intel_ds.c. Signed-off-by: Stephane Eranian Acked-by: Don Zickus Cc: peterz@infradead.org Cc: paulus@samba.org Cc: davem@davemloft.net Cc: fweisbec@gmail.com Cc: perfmon2-devel@lists.sf.net Cc: eranian@gmail.com Cc: robert.richter@amd.com LKML-Reference: <4c8a1686.aae9d80a.5aa4.5e35@mx.google.com> Signed-off-by: Ingo Molnar commit 0ea05ce7fd0c1286759933933764aacd12f6ac3a Author: David S. Miller Date: Sun Sep 12 12:06:00 2010 -0700 bna: Check for NULL before deref in bnad_cb_tx_cleanup Reported-by: Jiri Slaby Signed-off-by: David S. Miller commit 6edc3242e35f03990e362e7c115e722717f0f7a7 Author: Chris Wilson Date: Sun Sep 12 17:16:17 2010 +0100 drm/i915/bios: Prevent NULL dereference after allocation failure Signed-off-by: Chris Wilson commit b5c616a75428d85f92407e4509553f937b720630 Author: Chris Wilson Date: Thu Sep 9 19:06:13 2010 +0100 drm/i915/sdvo: Poll command status 5 times without delay on read The documentation says that an SDVO command takes a maximum of 15us to be processed by the device, and that it is sufficient to read the status byte 3 times (whilst the command is still in the PENDING state) for the driver to be confident that sufficient time has elapsed. We err on the safe side and try 5 times before giving up. The only question that remains: was the old behaviour derived by experiments with real hardware? A look into the murky history of UMS, implies that the behaviour was accidental and the current retry mechanism was solely designed to catch the status byte indicating PENDING with no reference to hardware behaviour. (commit ac9181c014638dbeb334b40b4029d0ccb2b7a0fc in xf86-video-intel) Signed-off-by: Chris Wilson commit ec5da01e23eec303dd313aa62b8ed4712c488437 Author: Chris Wilson Date: Sun Sep 12 13:34:08 2010 +0100 drm/i915: Use msleep instead of mdelay during wait_vblank_off Avoid a potentially long busy-wait if we not in the process of atomically switching to the kdb console. Signed-off-by: Chris Wilson commit c9f9ccc150e119bab6a1003e7762b024623011d8 Author: Chris Wilson Date: Sun Sep 12 13:07:25 2010 +0100 drm/i915/lvds: Remove busy wait for powering up the panel. We just assume that it will happen in a timely manner. A variant of this patch was first written and tested by Arjan van de Van. Signed-off-by: Chris Wilson commit 77d07fd9d73ef28689737c0952dbd5d6a5017743 Author: Chris Wilson Date: Sun Sep 12 12:42:35 2010 +0100 drm/i915/lvds: Remove busy wait for powering down the panel Just assume that it will turn off... Reported-by: Sitsofe Wheeler Signed-off-by: Chris Wilson commit d0ed0c32662e756e7daf85e70a5a27a9c1111331 Author: Joe Perches Date: Sat Sep 11 22:10:54 2010 -0700 x86: Remove pr_ uses of KERN_ Signed-off-by: Joe Perches Cc: Jiri Kosina LKML-Reference: Signed-off-by: Ingo Molnar commit 24dd3b58228d463254ee57c3811afea831b8a024 Author: Xing Wei Date: Sun Sep 12 00:24:17 2010 -0700 Input: hanwang - make compatible with xf86-input-wacom driver Add necessary events so that Hanwang Art Master III tablet can be handled by the stock xf86-input-wacom driver. Signed-off-by: Xing Wei Signed-off-by: Dmitry Torokhov commit 33d5f713a19b0f5cb93e0594f7206d2730cf39da Author: Chris Bagwell Date: Sun Sep 12 00:12:28 2010 -0700 Input: wacom - disable Bamboo touchpad when pen is being used Signed-off-by: Chris Bagwell Acked-by: Ping Cheng Signed-off-by: Dmitry Torokhov commit 2aaacb153689dbe9064e4db7e9d00de0edfc1fa0 Author: Chris Bagwell Date: Sun Sep 12 00:11:35 2010 -0700 Input: wacom - add support for Bamboo Pen This adds support for Pen on Bamboo Pen and Bamboo Pen&Touch devices. Touchpad is handled by previous Bamboo Touch logic. Signed-off-by: Chris Bagwell Acked-by: Ping Cheng Signed-off-by: Dmitry Torokhov commit e1d38e49ad97eec5024342e1244279b645e36688 Author: Chris Bagwell Date: Sun Sep 12 00:09:27 2010 -0700 Input: wacom - move Bamboo Touch irq to its own function This is in preparation of pen support in same irq handler. Signed-off-by: Chris Bagwell Acked-by: Ping Cheng Signed-off-by: Dmitry Torokhov commit 3dc9f40de4dddf9147b80cf15be633189a2b70f4 Author: Chris Bagwell Date: Sun Sep 12 00:08:40 2010 -0700 Input: wacom - request tablet data for Bamboo Pens Bamboo P&T need to use second form of usb_set_report() to ask to report tablet data. With previous addition of Bamboo Touch, BTN_TOOL_TRIPLETAP is now used for both TABLETPC2FG and BAMBOO_PT types. So reduced check to match type=TABLETPC2FG. This change shows redundant check for !TABLETPC2FG in else statement. Signed-off-by: Chris Bagwell Acked-by: Ping Cheng Signed-off-by: Dmitry Torokhov commit 50e781613c68f426edbbc8e5c27fcba74494eb8c Author: David S. Miller Date: Sun Sep 12 10:44:21 2010 +0800 crypto: n2_crypto - Niagara2 driver needs to depend upon CRYPTO_DES Reported-by: Dennis Gilmore Signed-off-by: David S. Miller Signed-off-by: Herbert Xu commit 6d8de74c5caa3e2ce7c9f19c1004dbc76d7c7edb Author: Justin P. Mattock Date: Sun Sep 12 10:42:47 2010 +0800 crypto: Kconfig - update broken web addresses Below is a patch to update the broken web addresses, in crypto/* that I could locate. Some are just simple typos that needed to be fixed, and some had a change in location altogether.. let me know if any of them need to be changed and such. Signed-off-by: Justin P. Mattock Signed-off-by: Herbert Xu commit b222f2673354c65e178cbcba610e7883a05f5bf3 Author: Chris Wilson Date: Sat Sep 11 21:48:25 2010 +0100 drm/i915/i2c: The bit-banging interface controls the delay, drop ours Remove our redundant udelay() as the timings are already handled by the i2c-algo-bit controller. Signed-off-by: Chris Wilson commit fe255d0028903f1132a3c1214edc91cf95b7cd98 Author: Chris Wilson Date: Sat Sep 11 21:37:48 2010 +0100 drm/i915/dp: Convert a udelay(17000) to a sleep during link-off Signed-off-by: Chris Wilson commit 5eddb70ba2b8cdbbdd563f5cb04e26fdc9b017f7 Author: Chris Wilson Date: Sat Sep 11 13:48:45 2010 +0100 drm/i915: Use macros to switch between equivalent pipe registers The purpose is to make the code much easier to read and therefore reduce the possibility for bugs. A side effect is that it also makes it much easier for the compiler, reducing the object size by 4k -- from just a few functions! Signed-off-by: Chris Wilson commit 743e015dcbb428bf8454cf7d78272b4a76dd3c4b Author: Wey-Yi Guy Date: Sat Sep 4 09:00:14 2010 -0700 iwlwifi: remove code repetition Move the duplicated code into single static function. Signed-off-by: Wey-Yi Guy commit 8f1d968721f9b3d4ff364bef0f33eb9697a6a7ee Author: Wey-Yi Guy Date: Fri Sep 3 11:42:04 2010 -0700 iwlwifi: make sure runtime calibration is enabled after association Clear the "start calib" flag only for new association, The flag will be set in post_associate function to trigger the runtime calibration. Set this flag to "0" will stop the runtime sensitivity calibration Signed-off-by: Wey-Yi Guy commit ea196fdbb982150c19854f90773cb8b9bf331049 Author: Johannes Berg Date: Fri Sep 3 06:30:55 2010 -0700 iwlwifi: fix and describe iwl_adjust_beacon_interval The iwl_adjust_beacon_interval function is a bit of black magic, so add comments to it describing what it does. Also, in the case when there's no beacon interval set, program the default into the device (instead of adjusting, which results in the max) since using the max in that case interacts badly with dual-mode/PAN parameters. Also update the PAN parameters accordingly and use the same constant as here. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit f1f270b25c6ece9ff65f7ad970850338a198d52f Author: Johannes Berg Date: Fri Sep 3 06:31:26 2010 -0700 iwlwifi: improve timing handling with dual-mode In dual-mode, a number of scenarios need to be considered, and the firmware can be very picky about them. Adjust the timing (most importantly the beacon interval) according to the different modes. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 763cc3bf5c2ae189a929fce54759c5bd94b8ba16 Author: Johannes Berg Date: Fri Sep 3 06:32:21 2010 -0700 iwlwifi: avoid sending too many commands When the PAN context is unused, there's no need to continually update it in the device. So track which contexts are active (with the special case that the WLAN context is always active ...) and only send their commands to the device when needed. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit c6abdc0dc3440b9b6ae00a59c3560ab2160c7c7d Author: Wey-Yi Guy Date: Wed Sep 1 17:10:51 2010 -0700 iwlwifi: allow configure protection mode Even driver use rts/cts protection mode for aggregation packets by default. Allow the protection mode to be configure through debugfs Signed-off-by: Wey-Yi Guy commit 2a3aeb44f555b2b51bbe58792e8ab172a69172c5 Author: Johannes Berg Date: Mon Aug 30 06:13:42 2010 -0700 iwlwifi: implement beacon interval change When the beacon interval needs to be changed, all we need to do is send updated timing to the device. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 27eafdda7714d5b189c175e71ab22c72c90ba93e Author: Johannes Berg Date: Mon Aug 30 06:12:00 2010 -0700 iwlwifi: fix PAN parameters while scanning When only the PAN side was active, we gave no time to the WLAN context, which is OK unless we are scanning, which always happens on the WLAN context. Fix this. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy commit 6e6ebf4befa75ebdf28130d0135f3ad3aadc02f8 Author: Wey-Yi Guy Date: Fri Aug 27 10:41:37 2010 -0700 iwlwifi: remember the last uCode sysassert error code When sysassert happen, uCode will report the error code, driver dump the information to dmesg. Here also remember the last error code for future reference. Signed-off-by: Wey-Yi Guy commit cf6da94acb1e158c8efe0d184ac757829fbf9632 Author: Tomas Winkler Date: Mon Aug 23 14:00:54 2010 -0700 iwlwifi: fix default LQ table in 5.2 band The default LQ is filled decreasingly using iwl_get_prev_ieee_rate from a starting rate. Since the starting rate is already the lowest one for a specific band it should be actually filled evenly with the starting rate: 1M and 6M for 5.2GHZ and 2.4GH respectively. The bug is that for for A or G-only it decreases to CCK rates which are not supported. iwl_get_prev_ieee_rate function is just not band aware. This affects broadcast station which lq table is not updated by rs algorithm G-only scenario is not treated by this patch iwl_get_prev_ieee_rate is removed completely as it is not used in other contexts Signed-off-by: Tomas Winkler Signed-off-by: Wey-Yi Guy commit 29f9e39a5518401debac71a151d0fa7eca044137 Author: Seungwhan Youn Date: Fri Sep 10 17:20:45 2010 +0900 ASoC: S3C: Fix PCM TXFIFO_DIPSTICK value This patch modify FIFO_DIPSTICK value of PCM TX FIFO to be a optimal one. Privious value (0x20) did not support 'Almost_full' of PCM FIFO for the DMA request. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 0cca9012527b77df1491f1b8422c7aae16e17ae0 Author: Seungwhan Youn Date: Fri Sep 10 17:20:00 2010 +0900 ASoC: S3C: Fix PCM RX FIFO settings When PCM capture, sound recorded abnormally because of RX FIFO threshold settings are missing. So, This patch modify PCM RX FIFO setting codes same as TX. And for DMA, if PCM RXFIFO_DIPSTICK is not '0', it doesn't effect to DMA request, because DMA refer RX_FIFO_EMPTY flag as the DMA request. Signed-off-by: Seungwhan Youn Acked-by: Jassi Brar Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 4ed765f966c8279acc6f6bc1a5dcb0424d074b40 Author: Chris Wilson Date: Sat Sep 11 10:46:47 2010 +0100 drm/i915: Tidy Ironlake watermark computation Refactor the common code into seperate functions and use the MIN(large, small) buffer calculation for self-refresh watermarks. Signed-off-by: Chris Wilson commit bed4a6734b5f56ffd240fdda755b6eb589d32482 Author: Chris Wilson Date: Sat Sep 11 10:47:47 2010 +0100 drm/i915: Fix updating FBC We need to track different state on each generation in order to detect when we need to refresh the FBC registers. Signed-off-by: Chris Wilson commit ea056c14a269be393468fe3734f6c2319eb23a3f Author: Jesse Barnes Date: Fri Sep 10 10:02:13 2010 -0700 drm/i915: enable thermal reporting for IPS Thermal reporting may not be enabled by default on some machines, so enable the appropriate bits to allow IPS to get the data it needs from the CPU thermal device. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 6946e037ee9e94a560a931fdb2e3e66964216cfe Author: Dimitris Papastamos Date: Fri Sep 10 18:24:08 2010 +0100 ASoC: Fix off-by-one bug in WM8962 register cache size configuration This is a simple off-by-one bug, the size of the register cache is incorrectly set to the maximum register index. Fix it by adding one. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 8b3016c4f4cded41d4d53da6f09f40efd6083f4f Merge: 021357a dd8849c Author: Chris Wilson Date: Sat Sep 11 09:49:58 2010 +0100 Merge branch 'drm-intel-fixes' into drm-intel-next commit 823108a056c52a83c32ca199a57566a36fad4d19 Author: Yinghai Lu Date: Sat Sep 11 00:08:42 2010 -0700 powerpc, memblock: Fix memblock API change fallout Fix memblock API change fallout in the WII code. Signed-off-by: Yinghai Lu Cc: linux-mm@kvack.org Cc: Benjamin Herrenschmidt LKML-Reference: <4C8B2AFA.2000705@kernel.org> Signed-off-by: Ingo Molnar commit da5ab11cdfdf496448e0e9cdbbc2dfe207a96c94 Author: Michal Simek Date: Sat Sep 11 00:07:06 2010 -0700 memblock, microblaze: Fix memblock API change fallout Adopt Microblaze to the memblock API changes, to fix this build failure: CC arch/microblaze/mm/init.o arch/microblaze/mm/init.c: In function 'mm_cmdline_setup': arch/microblaze/mm/init.c:236: error: 'struct memblock_type' has no member named 'region' ... Signed-off-by: Yinghai Lu Cc: linux-mm@kvack.org Cc: Stephen Rothwell Cc: Benjamin Herrenschmidt LKML-Reference: <4C8B2A9A.1040303@kernel.org> Signed-off-by: Ingo Molnar commit 2c4ee9b579d17006ad9a83f13e3ae15c142dc41e Author: Matti J. Aaltonen Date: Fri Sep 10 10:41:30 2010 +0300 ASoC: WL1273 FM Radio: Eliminate unnecessary error return value. With this change it's not a error to call wl1273_set_audio_route when the codec is active if the new routing value is the same as the current active setting. Signed-off-by: Matti J. Aaltonen Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit c23fd751dc2953263be5989ca537fdee14dee46e Author: Jarkko Nikula Date: Fri Sep 10 14:23:29 2010 +0300 ASoC: tlv320aic3x: Optimize PLL programming in aic3x_set_bias_level There is only need to enable/disable once the PLL when the bias is going between on, prepare, standby and off states. Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Liam Girdwood commit 351e5a703ad994405bd900da330823d3b4a372e0 Author: Venkatesh Pallipadi Date: Fri Sep 10 15:55:50 2010 -0700 x86, mtrr: Support mtrr lookup for range spanning across MTRR range mtrr_type_lookup [start:end] looked up the resultant MTRR type for that range, based on fixed and all variable MTRR ranges. It did check for multiple MTRR var ranges overlapping [start:end] and returned the net type. However, if the [start:end] range spanned across any var MTRR range, mtrr_type_lookup would return an error return of 0xFE. This was based on typical usage of mtrr_type_lookup in PAT mapping, where region being mapped would not normally span across MTRR ranges and also trying to keep the code simple. Mark recently reported the problem with this limitation. When there are two continguous MTRR's of type "writeback" and if there is a memory mapping over a region starting in one MTRR range and ending in another MTRR range, such mapping will fallback to "uncached" due to the above limitation. Change below adds support for such lookups spanning multiple MTRR ranges. We now have a wrapper mtrr_type_lookup that dynamically splits such a region into smaller chunks that fit within one MTRR range and does a __mtrr_type_lookup on it and combine the results later. Reported-by: Mark Langsdorf Signed-off-by: Venkatesh Pallipadi LKML-Reference: <1284159350-19841-3-git-send-email-venki@google.com> Reviewed-by: Suresh Siddha Signed-off-by: H. Peter Anvin commit a7f07cfbaa1dd5bf9e615948f280c92e7928e6f7 Author: Venkatesh Pallipadi Date: Fri Sep 10 15:55:49 2010 -0700 x86, mtrr: Refactor MTRR type overlap check code Move the MTRR type overlap check into a new function. No functional change in this patch. Just making it easier to add multiple region overlap check in the following patch. Signed-off-by: Venkatesh Pallipadi LKML-Reference: <1284159350-19841-2-git-send-email-venki@google.com> Reviewed-by: Suresh Siddha Signed-off-by: H. Peter Anvin commit 021357acc8ea85273a9882b3fe89935629f51b12 Author: Chris Wilson Date: Tue Sep 7 20:54:59 2010 +0100 drm/i915: Use the real FDI frequency for determining b/w Signed-off-by: Chris Wilson commit 8c4223bee91b771782f2ec07f2c85d81cdff3ed5 Author: Chris Wilson Date: Fri Sep 10 22:33:42 2010 +0100 drm/i915: Only call udelay() when waiting for clocks to stabilise Signed-off-by: Chris Wilson commit d5e0d2f51977fe1f7fd6ee5c1a4476b43bad8f92 Author: Chris Wilson Date: Fri Sep 10 22:33:19 2010 +0100 drm/i915: Ensure all PLL registers are flushed before a udelay() Signed-off-by: Chris Wilson commit c64e311e650921fb014af2b3c500180fc65802b9 Author: Jesse Barnes Date: Fri Sep 10 11:27:03 2010 -0700 drm/i915: set FDI RX TU size to match transmit size This allows FDI error checking to work. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit de9c27bf70964a8b257eaeb8f71f1898e9f4ac7d Author: Jesse Barnes Date: Fri Sep 10 11:22:02 2010 -0700 drm/i915: don't write TU size to N1 reg TU size is only part of the M1 and M2 regs, not the N regs. This keeps us from overwriting a reserved field. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 0e23b99d2599112a332136728e9250e688a08b0c Author: Jesse Barnes Date: Fri Sep 10 11:10:00 2010 -0700 drm/i915: split Ironlake FDI enable function Easier to read, and will pair up with a disable function. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit c98e9dcf9023e72837c1c01251f370e2358a0de6 Author: Jesse Barnes Date: Fri Sep 10 10:57:18 2010 -0700 drm/i915: enable PCH PLL, FDI training and transcoder even for eDP eDP panels require these to be set up prior to panel power sequencing, or they'll fail to power on due to an "asset not ready" check. And of course, eDP panels attached to anything other than DP_A need them enabled regardless, since they'll be driven from the CPU through FDI out to the PCH. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 7e7d76c306adb73a41d2678a42a11004df2519b7 Author: Jesse Barnes Date: Fri Sep 10 10:47:20 2010 -0700 drm/i915: use i915 and Ironlake CRTC enable/disable functions in prepare/commit This will allow us to optimize our prepare/commit paths a bit better. Signed-off-by: Jesse Barnes [ickle: minor tweak to handle the cursor across pipe resizing] Signed-off-by: Chris Wilson commit 4d12fe0b4864682d3562021cde0f32961c655d75 Author: Jesse Barnes Date: Fri Sep 10 10:46:45 2010 -0700 drm/i915: don't unlock panel regs This was just a workaround for some broken Ironlake CRTC code. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 0b8765c6e7fb6e0aaa9b9081454fb0f202852523 Author: Jesse Barnes Date: Fri Sep 10 10:31:34 2010 -0700 drm/i915: split i9xx CRTC enable/disable code So we can use it for CRTC prepare/commit. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit 6be4a6078e41a8ec511dad35d1377bc5338f97be Author: Jesse Barnes Date: Fri Sep 10 10:26:01 2010 -0700 drm/i915: split Ironlake CRTC enable/disable code This way we can also use it in CRTC prepare/commit. Also makes it easier to split out FDI and other code. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson commit e5eec34c68eab7af8fe10d070cb0c948f73a8464 Author: Dimitris Papastamos Date: Fri Sep 10 18:14:56 2010 +0100 ASoC: Fix incorrect register cache size configuration The reg_cache_size is the number of elements in the register cache, not the size of the cache itself. This is not a problem if the size of each element of the cache is 1 byte but it matters in any other case. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 9ca7f8762299bb391c11a81c844224216e925b5c Author: stephen hemminger Date: Wed Sep 8 09:16:28 2010 +0000 pkt_sched: remov unnecessary bh_disable Now that est_tree_lock is acquired with BH protection, the other call is unnecessary. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller commit a034ee3cca5726b14107f281f4bed1c0fd44472a Author: Eric Dumazet Date: Thu Sep 9 23:32:28 2010 +0000 fib: cleanups Use rcu_dereference_rtnl() helper Change hard coded constants in fib_flag_trans() 7 -> RTN_UNREACHABLE 8 -> RTN_PROHIBIT Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller commit 4642610c77b345130d6b5a08c75d23ad98601fd5 Author: Ben Hutchings Date: Fri Sep 10 06:42:33 2010 +0000 sfc: Allow changing the DMA ring sizes dynamically via ethtool This requires some reorganisation of channel setup and teardown to ensure that we can always roll-back a failed change. Based on work by Steve Hodgson Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit ecc910f520ba8f22848982ee816ad75c449b805d Author: Steve Hodgson Date: Fri Sep 10 06:42:22 2010 +0000 sfc: Make the dmaq size a run-time setting (rather than compile-time) - Allow the ring size to be specified in non power-of-two sizes (for instance to limit the amount of receive buffers). - Automatically size the event queue. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 8313aca38b3937947fffebca6e34bac8e24300c8 Author: Ben Hutchings Date: Fri Sep 10 06:41:57 2010 +0000 sfc: Allocate each channel separately, along with its RX and TX queues This will allow for reallocation of channel structures and rings. Change module parameter separate_tx_channels to be read-only, since we now require its value to be constant. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit f7d12cdcbb28207b3bdcf4affbf3935e4c015d03 Author: Ben Hutchings Date: Fri Sep 10 06:41:47 2010 +0000 sfc: Refactor channel and queue lookup and iteration In preparation for changes to the way channels and queue structures are allocated, revise the macros and functions used to look up and iterator over them. - Replace efx_for_each_tx_queue() with iteration over channels then TX queues - Replace efx_for_each_rx_queue() with iteration over channels then RX queues (with one exception, shortly to be removed) - Introduce efx_get_{channel,rx_queue,tx_queue}() functions to look up channels and queues by index - Introduce efx_channel_get_{rx,tx}_queue() functions to look up a channel's queues Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit ba1e8a35b77f3bc7d109696dbd2a7fd5af208b62 Author: Ben Hutchings Date: Fri Sep 10 06:41:36 2010 +0000 sfc: Abstract channel and index lookup for RX queues Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 58758aa505edc5b8f8393cee45b54c7485d76de5 Author: Ben Hutchings Date: Fri Sep 10 06:41:26 2010 +0000 sfc: Allocate DMA and event rings using GFP_KERNEL Currently we allocate DMA descriptor rings and event rings using pci_alloc_consistent() which selects non-blocking behaviour from the page allocator (GFP_ATOMIC). This is unnecessary, and since we currently allocate a single contiguous block for each ring (up to 32 pages!) these allocations are likely to fail if there is any significant memory pressure. Use dma_alloc_coherent() and GFP_KERNEL instead. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit e42de26249c88a00715ea686993192546d07133e Author: Ben Hutchings Date: Fri Sep 10 06:41:19 2010 +0000 sfc: Fix failure paths in efx_probe_port() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 7db8e8ec3995a1dc2bfadd8ac97e9024013db9c3 Author: Ben Hutchings Date: Fri Sep 10 06:41:12 2010 +0000 sfc: Remove declarations of functions that no longer exist Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 80485d3441fc26aff5ddb2bf44baf7a61e1909b4 Author: Ben Hutchings Date: Fri Sep 10 06:41:06 2010 +0000 sfc: Accumulate RX_NODESC_DROP count in rx_dropped, not rx_over_errors rx_over_errors appears to be intended as a count of packets that overflow a packet buffer in the NIC. Given that we implement a cut-through receive path, this should always be 0. rx_dropped appears to be the correct counter for packets dropped due to lack of host buffers. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 1cdc2cfc8af6d1045c844b9e24a7910b57232065 Author: Ben Hutchings Date: Fri Sep 10 06:41:00 2010 +0000 sfc: Use MCDI RX_BAD_FCS_PKTS count as MAC rx_bad count Calculating rx_bad as rx_packets - rx_good is unnecessary and incorrect, since rx_good does not include control frames (e.g. pause frames) and rx_packets does. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller commit 175b79f0632544d62aae72e5496c14e3e3ff2ae7 Author: Christof Schmitt Date: Fri Sep 10 20:50:40 2010 +0200 zfcp: Report scatter gather limit for DIX protection information When sending DIX integrity segments with an I/O request, the restriction for the maximum number of segments is still the same for the zfcp hardware. Report the new sg_prot_tablesize for the SCSI host, so that the number of integrity segments plus the number of data segments is not larger than the hardware limit. This results in using half of the hardware segments for integrity data and the other half for regular data. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: Jens Axboe commit 13f05c8d8e98bbdce89158bfdb2e380940695a88 Author: Martin K. Petersen Date: Fri Sep 10 20:50:10 2010 +0200 block/scsi: Provide a limit on the number of integrity segments Some controllers have a hardware limit on the number of protection information scatter-gather list segments they can handle. Introduce a max_integrity_segments limit in the block layer and provide a new scsi_host_template setting that allows HBA drivers to provide a value suitable for the hardware. Add support for honoring the integrity segment limit when merging both bios and requests. Signed-off-by: Martin K. Petersen Signed-off-by: Jens Axboe commit c8bf1336824ebd698d37b71763e1c43190f2229a Author: Martin K. Petersen Date: Fri Sep 10 20:07:38 2010 +0200 Consolidate min_not_zero We have several users of min_not_zero, each of them using their own definition. Move the define to kernel.h. Signed-off-by: Martin K. Petersen Signed-off-by: Jens Axboe commit 5e98d492406818e6a94c0ba54c61f59d40cefa4a Author: Goldwyn Rodrigues Date: Mon Jun 28 10:04:32 2010 -0500 Track negative entries v3 Track negative dentries by recording the generation number of the parent directory in d_fsdata. The generation number for the parent directory is recorded in the inode_info, which increments every time the lock on the directory is dropped. If the generation number of the parent directory and the negative dentry matches, there is no need to perform the revalidate, else a revalidate is forced. This improves performance in situations where nodes look for the same non-existent file multiple times. Thanks Mark for explaining the DLM sequence. Signed-off-by: Goldwyn Rodrigues Signed-off-by: Joel Becker commit b4d693fcc5fe99ed211addb5c6a0f8398f0b266e Author: Tao Ma Date: Mon Aug 16 16:58:21 2010 +0800 ocfs2: Cache system inodes of other slots. Durring orphan scan, if we are slot 0, and we are replaying orphan_dir:0001, the general process is that for every file in this dir: 1. we will iget orphan_dir:0001, since there is no inode for it. we will have to create an inode and read it from the disk. 2. do the normal work, such as delete_inode and remove it from the dir if it is allowed. 3. call iput orphan_dir:0001 when we are done. In this case, since we have no dcache for this inode, i_count will reach 0, and VFS will have to call clear_inode and in ocfs2_clear_inode we will checkpoint the inode which will let ocfs2_cmt and journald begin to work. 4. We loop back to 1 for the next file. So you see, actually for every deleted file, we have to read the orphan dir from the disk and checkpoint the journal. It is very time consuming and cause a lot of journal checkpoint I/O. A better solution is that we can have another reference for these inodes in ocfs2_super. So if there is no other race among nodes(which will let dlmglue to checkpoint the inode), for step 3, clear_inode won't be called and for step 1, we may only need to read the inode for the 1st time. This is a big win for us. So this patch will try to cache system inodes of other slots so that we will have one more reference for these inodes and avoid the extra inode read and journal checkpoint. Signed-off-by: Tao Ma Signed-off-by: Joel Becker commit a33f13efe05192e7a805018a2ce2b2afddd04057 Author: Joel Becker Date: Mon Aug 16 12:10:17 2010 -0700 libfs: Fix shift bug in generic_check_addressable() generic_check_addressable() erroneously shifts pages down by a block factor when it should be shifting up. To prevent overflow, we shift blocks down to pages. Signed-off-by: Joel Becker commit 3bdb8efd94a73bb137e3315cd831cbc874052b4b Author: Patrick J. LoPresti Date: Thu Jul 22 15:05:57 2010 -0700 OCFS2: Allow huge (> 16 TiB) volumes to mount The OCFS2 developers have already done all of the hard work to allow volumes larger than 16 TiB. But there is still a "sanity check" in fs/ocfs2/super.c that prevents the mounting of such volumes, even when the cluster size and journal options would allow it. This patch replaces that sanity check with a more sophisticated one to mount a huge volume provided that (a) it is addressable by the raw word/address size of the system (borrowing a test from ext4); (b) the volume is using JBD2; and (c) the JBD2_FEATURE_INCOMPAT_64BIT flag is set on the journal. I factored out the sanity check into its own function. I also moved it from ocfs2_initialize_super() down to ocfs2_check_volume(); any earlier, and the journal will not have been initialized yet. This patch is one of a pair, and it depends on the other ("JBD2: Allow feature checks before journal recovery"). I have tested this patch on small volumes, huge volumes, and huge volumes without 64-bit block support in the journal. All of them appear to work or to fail gracefully, as appropriate. Signed-off-by: Patrick LoPresti Signed-off-by: Joel Becker commit e5f4d3394a52ac351f1a479fe136d92fa5228eff Author: Peter Zijlstra Date: Fri Sep 10 17:38:06 2010 +0200 perf: Fix perf_init_event() We ought to return -ENOENT when non of the registered PMUs recognise the requested event. This fixes a boot crash that occurs if no PMU is available but the NMI watchdog tries to register an event. Reported-by: Ingo Molnar Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar commit 1113e1b504f6e8d4364c0b73c9097828067d4617 Author: Patrick J. LoPresti Date: Thu Jul 22 15:04:16 2010 -0700 JBD2: Allow feature checks before journal recovery Before we start accessing a huge (> 16 TiB) OCFS2 volume, we need to confirm that its journal supports 64-bit offsets. In particular, we need to check the journal's feature bits before recovering the journal. This is not possible with JBD2 at present, because the journal superblock (where the feature bits reside) is not loaded from disk until the journal is recovered. This patch loads the journal superblock in jbd2_journal_check_used_features() if it has not already been loaded, allowing us to check the feature bits before journal recovery. Signed-off-by: Patrick LoPresti Cc: linux-ext4@vger.kernel.org Acked-by: "Theodore Ts'o" Signed-off-by: Joel Becker commit 30ca22c70e3ef0a96ff84de69cd7e8561b416cb2 Author: Patrick J. LoPresti Date: Thu Jul 22 15:03:41 2010 -0700 ext3/ext4: Factor out disk addressability check As part of adding support for OCFS2 to mount huge volumes, we need to check that the sector_t and page cache of the system are capable of addressing the entire volume. An identical check already appears in ext3 and ext4. This patch moves the addressability check into its own function in fs/libfs.c and modifies ext3 and ext4 to invoke it. [Edited to -EINVAL instead of BUG_ON() for bad blocksize_bits -- Joel] Signed-off-by: Patrick LoPresti Cc: linux-ext4@vger.kernel.org Acked-by: Andreas Dilger Signed-off-by: Joel Becker commit 729963a1ff8d069d05dab6a024bfd59805ac622c Merge: 17ae521 6ea4843 Author: Joel Becker Date: Fri Sep 10 08:41:04 2010 -0700 Merge branch 'cow_readahead' of git://oss.oracle.com/git/tma/linux-2.6 into merge-2 commit 17ae521158d6fe89cfdd00a9990aa40d02e81391 Author: Tao Ma Date: Mon Aug 2 11:02:14 2010 +0800 ocfs2: Remove obsolete comments before ocfs2_start_trans. Signed-off-by: Tao Ma Signed-off-by: Joel Becker commit f9c57ada32ea3f2e12600cf274035fff063b2e0f Author: Tao Ma Date: Mon Aug 2 11:02:13 2010 +0800 ocfs2: Remove unused old_id in ocfs2_commit_cache. Signed-off-by: Tao Ma Signed-off-by: Joel Becker commit 4c38881f87c21ada5609a4065cb10e3e74da0d6e Author: Jan Kara Date: Thu Aug 5 20:32:46 2010 +0200 ocfs2: Remove ocfs2_sync_inode() ocfs2_sync_inode() is used only from ocfs2_sync_file(). But all data has already been written before calling ocfs2_sync_file() and ocfs2 doesn't use inode's private_list for tracking metadata buffers thus sync_mapping_buffers() is superfluous as well. Signed-off-by: Jan Kara Acked-by: Mark Fasheh Signed-off-by: Joel Becker commit 83fd9c7f65634ac440a6b9b7a63ba562f213ac60 Author: Goldwyn Rodrigues Date: Thu Jun 10 17:21:36 2010 -0500 Reorganize data elements to reduce struct sizes Thanks for the comments. I have incorportated them all. CONFIG_OCFS2_FS_STATS is enabled and CONFIG_DEBUG_LOCK_ALLOC is disabled. Statistics now look like - ocfs2_write_ctxt: 2144 - 2136 = 8 ocfs2_inode_info: 1960 - 1848 = 112 ocfs2_journal: 168 - 160 = 8 ocfs2_lock_res: 336 - 304 = 32 ocfs2_refcount_tree: 512 - 472 = 40 Signed-off-by: Goldwyn Rodrigues Signed-off-by: Joel Becker commit 95fa859a268fd7d9bae6f2d4d095e3f61100ac1b Author: Tao Ma Date: Wed Jun 9 16:48:59 2010 +0800 ocfs2: Remove obscure error handling in direct_write. In ocfs2, actually we don't allow any direct write pass i_size, see the function ocfs2_prepare_inode_for_write. So we don't need the bogus simple_setsize. Signed-off-by: Tao Ma Signed-off-by: Joel Becker commit 3c3f20c9813391ba4004764072989744395cf405 Author: Tao Ma Date: Tue Jun 1 13:58:13 2010 +0800 ocfs2: Add some trace log for orphan scan. Now orphan scan worker has no trace log, so it is very hard to tell whether it is finished or blocked. So add 2 mlog trace log so that we can tell whether the current orphan scan worker is blocked or not. It does help when I analyzed a orphan scan bug. Signed-off-by: Tao Ma Signed-off-by: Joel Becker commit ddee5cdb70e6f87de2fc696b87bd7bd184a51eb8 Author: Tristan Ye Date: Sat May 22 16:26:33 2010 +0800 Ocfs2: Add new OCFS2_IOC_INFO ioctl for ocfs2 v8. The reason why we need this ioctl is to offer the none-privileged end-user a possibility to get filesys info gathering. We use OCFS2_IOC_INFO to manipulate the new ioctl, userspace passes a structure to kernel containing an array of request pointers and request count, such as, * From userspace: struct ocfs2_info_blocksize oib = { .ib_req = { .ir_magic = OCFS2_INFO_MAGIC, .ir_code = OCFS2_INFO_BLOCKSIZE, ... } ... } struct ocfs2_info_clustersize oic = { ... } uint64_t reqs[2] = {(unsigned long)&oib, (unsigned long)&oic}; struct ocfs2_info info = { .oi_requests = reqs, .oi_count = 2, } ret = ioctl(fd, OCFS2_IOC_INFO, &info); * In kernel: Get the request pointers from *info*, then handle each request one bye one. Idea here is to make the spearated request small enough to guarantee a better backward&forward compatibility since a small piece of request would be less likely to be broken if filesys on raw disk get changed. Currently, the following 7 requests are supported per the requirement from userspace tool o2info, and I believe it will grow over time:-) OCFS2_INFO_CLUSTERSIZE OCFS2_INFO_BLOCKSIZE OCFS2_INFO_MAXSLOTS OCFS2_INFO_LABEL OCFS2_INFO_UUID OCFS2_INFO_FS_FEATURES OCFS2_INFO_JOURNAL_SIZE This ioctl is only specific to OCFS2. Signed-off-by: Tristan Ye Signed-off-by: Joel Becker commit c7bad06f1305be2cfa68ad58dc3391261162db4e Author: Axel Lin Date: Thu Sep 9 17:50:56 2010 +0800 ASoC: ad1980 - set reg_cache_default to ad1980_reg Signed-off-by: Axel Lin Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit 3056c70c4943f1838b432a61956f609035ac1b7e Author: Kuninori Morimoto Date: Thu Sep 9 16:30:18 2010 +0900 fbdev: sh_mobile_hdmi: Add select SND_SOC to Kconfig This patch solve compile error when .config doesn't have CONFIG_SND_SOC which is needed for HDMI sound. It was reported by Guennadi as follows Besides, I think, this will not link without CONFIG_SND_SOC. Reported-by: Guennadi Liakhovetski Signed-off-by: Kuninori Morimoto Reviewed-by: Guennadi Liakhovetski Acked-by: Liam Girdwood Signed-off-by: Mark Brown commit b5e31dfe069e9ddd877e277116ca2f155137a937 Author: Kuninori Morimoto Date: Thu Sep 9 11:48:30 2010 +0900 ASoC: fsi-hdmi: remove unneeded header This patch solve below report from Guennadi. But I didn't remove #include . Because it have FSI_PORT_B define which is used on this file. > +#include > +#include > +#include