1. 13 Oct, 2009 1 commit
  2. 12 Oct, 2009 1 commit
    • Henrik Rydberg's avatar
      With the recent system-wide improvements on suspend/resume and EFI booting · 9c2e137f
      Henrik Rydberg authored
      the suspend_resume method of the bcm5974 has broken.  When waking up from
      the S3 state on the MacBookAir, the trackpad is found in a yet unknown
      state, unable to switch to the proper multitouch mode.  The result is a
      frozen touchpad, and a flood of errors of the kind
      
      bcm5974: bad trackpad package, length: 8.
      
      This patch retracts the reset_resume method altogether, falling back on
      the generic unbind/rebind functionality of the usb layer until further
      investigations can be made as how to reset the device when booting from
      efi.
      Signed-off-by: default avatarHenrik Rydberg <rydberg@euromail.se>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9c2e137f
  3. 29 Sep, 2009 1 commit
  4. 19 Sep, 2009 1 commit
  5. 02 Sep, 2009 1 commit
  6. 13 Oct, 2009 3 commits
    • Joakim Tjernlund's avatar
      The driver always ends a read with a STOP condition which breaks · 9f2e7ffc
      Joakim Tjernlund authored
      subsequent I2C reads/writes in the same transaction as these expect to do
      a repeated START(ReSTART).
      
      This will also help I2C multimaster as the bus will not be released after
      the first read, but when the whole transaction ends.
      Signed-off-by: default avatarJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9f2e7ffc
    • Alexander Strakh's avatar
      In driver ./drivers/media/video/usbvideo/quickcam_messenger.c in line 91: · 8b0a2547
      Alexander Strakh authored
        91         usb_make_path(dev, cam->input_physname, sizeof(cam->input_physname));
      
      After this line we use strncat:
      
        92         strncat(cam->input_physname, "/input0", sizeof(cam->input_physname));
      
      where sizeof(cam->input_physname) returns length of cam->input_phisname
      without length for null-symbol.  But this parameter must be - "maximum
      numbers of bytes to copy", i.e.:
      sizeof(cam->input_physname)-strlen(cam->input_physname)-1.
      
      In this case, after call to usb_make_path the similar drivers use strlcat.
      
      Like in: drivers/hid/usbhid/hid-core.c:
      1152         usb_make_path(dev, hid->phys, sizeof(hid->phys));
      1153         strlcat(hid->phys, "/input", sizeof(hid->phys));
      
      Found by Linux Driver Verification Project.
      
      Use strlcat instead of strncat.
      Signed-off-by: default avatarAlexander Strakh <strakh@ispras.ru>
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      8b0a2547
    • Alexander Strakh's avatar
      In driver ./drivers/media/video/usbvideo/konicawc.c in line 227: · bfb9b035
      Alexander Strakh authored
      227         usb_make_path(dev, cam->input_physname, sizeof(cam->input_physname));
      
      After this line we use strncat:
      
      228         strncat(cam->input_physname, "/input0", sizeof(cam->input_physname));
      
      where sizeof(cam->input_physname) returns length of cam->input_phisname
      without length for null-symbol.  But this parameter must be - "maximum
      numbers of bytes to copy", i.e.:
      sizeof(cam->input_physname)-strlen(cam->input_physname)-1.
      
      In this case, after call to usb_make_path the similar drivers use strlcat.
      
      Like in drivers/hid/usbhid/hid-core.c:
      1152         usb_make_path(dev, hid->phys, sizeof(hid->phys));
      1153         strlcat(hid->phys, "/input", sizeof(hid->phys));
      
      Found by Linux Driver Verification Project.
      
      Use strlcat instead of strncat.
      Signed-off-by: default avatarAlexander Strakh <strakh@ispras.ru>
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      bfb9b035
  7. 30 Sep, 2009 1 commit
  8. 18 Aug, 2009 1 commit
  9. 13 Oct, 2009 2 commits
    • Robert Jennings's avatar
      The Collaborative Memory Manager (CMM) module allocates individual pages · 4991cbe3
      Robert Jennings authored
      over time that are not migratable.  On a long running system this can
      severely impact the ability to find enough pages to support a hotplug
      memory remove operation.
      
      This patch adds a memory isolation notifier and a memory hotplug notifier.
      The memory isolation notifier will return the number of pages found in
      the range specified.  This is used to determine if all of the used pages
      in a pageblock are owned by the balloon (or other entities in the notifier
      chain).  The hotplug notifier will free pages in the range which is to be
      removed.  The priority of this hotplug notifier is low so that it will be
      called near last, this helps avoids removing loaned pages in operations
      that fail due to other handlers.
      
      CMM activity will be halted when hotplug remove operations are active and
      resume activity after a delay period to allow the hypervisor time to
      adjust.
      Signed-off-by: default avatarRobert Jennings <rcj@linux.vnet.ibm.com>
      Cc: Mel Gorman <mel@csn.ul.ie>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Brian King <brking@linux.vnet.ibm.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Gerald Schaefer <geralds@linux.vnet.ibm.com>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4991cbe3
    • Robert Jennings's avatar
      Memory balloon drivers can allocate a large amount of memory which is not · b141d0ae
      Robert Jennings authored
      movable but could be freed to accomodate memory hotplug remove.
      
      Prior to calling the memory hotplug notifier chain the memory in the
      pageblock is isolated.  Currently, if the migrate type is not
      MIGRATE_MOVABLE the isolation will not proceed, causing the memory removal
      for that page range to fail.
      
      Rather than failing pageblock isolation if the migrateteype is not
      MIGRATE_MOVABLE, this patch checks if all of the pages in the pageblock,
      and not on the LRU, are owned by a registered balloon driver (or other
      entity) using a notifier chain.  If all of the non-movable pages are owned
      by a balloon, they can be freed later through the memory notifier chain
      and the range can still be isolated in set_migratetype_isolate().
      Signed-off-by: default avatarRobert Jennings <rcj@linux.vnet.ibm.com>
      Cc: Mel Gorman <mel@csn.ul.ie>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Brian King <brking@linux.vnet.ibm.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Gerald Schaefer <geralds@linux.vnet.ibm.com>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      b141d0ae
  10. 19 Sep, 2009 1 commit
  11. 14 Oct, 2009 1 commit
  12. 13 Aug, 2009 1 commit
  13. 14 Oct, 2009 1 commit
  14. 24 Aug, 2009 1 commit
  15. 25 Sep, 2009 1 commit
  16. 19 Sep, 2009 1 commit
  17. 23 Sep, 2009 1 commit
  18. 25 Sep, 2009 1 commit
  19. 28 Oct, 2009 7 commits
  20. 31 Oct, 2009 1 commit
  21. 13 Oct, 2009 1 commit
  22. 12 Oct, 2009 1 commit
  23. 09 Oct, 2009 1 commit
    • Rakib Mullick's avatar
      Annote acpi_processor_add with cpuinit since it calls a cpuinit function · a7e7aa59
      Rakib Mullick authored
      acpi_processor_power_init and fixes a section mismatch warning.
      
       We were warned by the following warning:
      
       LD      drivers/acpi/processor.o
      WARNING: drivers/acpi/processor.o(.text+0x1829): Section mismatch in
      reference from the function acpi_processor_add() to the function
      .cpuinit.text:acpi_processor_power_init()
      The function acpi_processor_add() references
      the function __cpuinit acpi_processor_power_init().
      This is often because acpi_processor_add lacks a __cpuinit
      annotation or the annotation of acpi_processor_power_init is wrong.
      Signed-off-by: default avatarRakib Mullick <rakib.mullick@gmail.com>
      Cc: Len Brown <lenb@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      a7e7aa59
  24. 12 Oct, 2009 1 commit
  25. 29 Sep, 2009 2 commits
  26. 20 Aug, 2009 1 commit
  27. 25 Sep, 2009 2 commits
    • Andrew Morton's avatar
      Presently acpi-cpufreq will perform the MSR read on the first CPU in the · 13f92591
      Andrew Morton authored
      mask.  That's inefficient if that CPU differs from the current CPU. 
      Because we have to perform a cross-CPU call, but we could have run the
      rdmsr on the current CPU.
      
      So switch to using the new smp_call_function_any(), which will perform the
      call on the current CPU if that CPU is present in the mask (it is).
      
      Cc: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
      Cc: Dave Jones <davej@redhat.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Jaswinder Singh Rajput <jaswinder@kernel.org>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
      Cc: Zhao Yakui <yakui.zhao@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      13f92591
    • Rusty Russell's avatar
      Andrew points out that acpi-cpufreq uses cpumask_any, when it really · 2685e9fe
      Rusty Russell authored
      would prefer to use the same CPU if possible (to avoid an IPI).  In
      general, this seems a good idea to offer.
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Zhao Yakui <yakui.zhao@intel.com>
      Cc: Dave Jones <davej@redhat.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
      Cc: Jaswinder Singh Rajput <jaswinder@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      2685e9fe
  28. 01 Nov, 2009 1 commit
    • Andrew Morton's avatar
      arch/x86/crypto/ghash-clmulni-intel_asm.S: Assembler messages: · 4c2e09e3
      Andrew Morton authored
      arch/x86/crypto/ghash-clmulni-intel_asm.S:103: Error: no such instruction: `pshufb %xmm5,%xmm0'
      arch/x86/crypto/ghash-clmulni-intel_asm.S:105: Error: no such instruction: `pshufb %xmm5,%xmm0'
      arch/x86/crypto/ghash-clmulni-intel_asm.S:119: Error: no such instruction: `pshufb %xmm5,%xmm0'
      arch/x86/crypto/ghash-clmulni-intel_asm.S:123: Error: no such instruction: `pshufb %xmm5,%xmm6'
      arch/x86/crypto/ghash-clmulni-intel_asm.S:130: Error: no such instruction: `pshufb %xmm5,%xmm0'
      arch/x86/crypto/ghash-clmulni-intel_asm.S:143: Error: no such instruction: `pshufb %xmm5,%xmm0'
      
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: Huang Ying <ying.huang@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4c2e09e3
  29. 16 Oct, 2009 1 commit