Skip to content
  1. Apr 05, 2011
  2. Apr 04, 2011
    • Linus Torvalds's avatar
      tty: fix endless work loop when the buffer fills up · a5660b41
      Linus Torvalds authored
      Commit f23eb2b2 ('tty: stop using "delayed_work" in the tty layer')
      ended up causing hung machines on UP with no preemption, because the
      work routine to flip the buffer data to the ldisc would endlessly re-arm
      itself if the destination buffer had filled up.
      
      With the delayed work, that only caused a timer-driving polling of the
      tty state every timer tick, but without the delay we just ended up with
      basically a busy loop instead.
      
      Stop the insane polling, and instead make the code that opens up the
      receive room re-schedule the buffer flip work.  That's what we should
      have been doing anyway.
      
      This same "poll for tty room" issue is almost certainly also the cause
      of excessive kworker activity when idle reported by Dave Jones, who also
      reported "flush_to_ldisc executing 2500 times a second" back in Nov 2010:
      
        http://lkml.org/lkml/2010/11/30/592
      
      
      
      which is that silly flushing done every timer tick.  Wasting both power
      and CPU for no good reason.
      
      Reported-and-tested-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
      Reported-and-tested-by: default avatarSitsofe Wheeler <sitsofe@yahoo.com>
      Cc: Greg KH <gregkh@suse.de>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Dave Jones <davej@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a5660b41
    • Randy Dunlap's avatar
      usb/serial: fix function args warnings, dropping *filp · 4acfaf82
      Randy Dunlap authored
      
      
      Fix build warnings caused by removal of *filp arg in struct
      usb_serial_driver.
      
      These changes were missed somehow in commits 00a0d0d6 ("tty: remove
      filp from the USB tty ioctls") and 60b33c13 ("tiocmget: kill off
      the passing of the struct file")
      
        drivers/usb/serial/mct_u232.c:159: warning: initialization from incompatible pointer type
        drivers/usb/serial/opticon.c:627: warning: initialization from incompatible pointer type
      
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Alan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4acfaf82
    • Major Lee's avatar
      rtc-mrst: Fix section types · b3b896c7
      Major Lee authored
      
      
      Fix the following section mismatch warning.
      
        WARNING: drivers/rtc/built-in.o(.data+0xa0): Section mismatch in reference from the variable vrtc_mrst_platform_driver to the function .init.text:vrtc_mrst_platform_probe()
        The variable vrtc_mrst_platform_driver references the function __init vrtc_mrst_platform_probe()
        If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable:
          *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      Signed-off-by: default avatarMajor Lee <major_lee@wistron.com>
      Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b3b896c7
    • Kumar Gala's avatar
      edac/mpc85xx: Limit setting/clearing of HID1[RFXE] to e500v1/v2 cores · a94d7b35
      Kumar Gala authored
      
      
      Only the e500v1/v2 cores have HID1[RXFE] so we should attempt to set or
      clear this register bit on them.  Otherwise we get crashes like:
      
      NIP: c0579f84 LR: c006d550 CTR: c0579f84
      REGS: ef857ec0 TRAP: 0700   Not tainted  (2.6.38.2-00072-gf15ba3c)
      MSR: 00021002 <ME,CE>  CR: 22044022  XER: 00000000
      TASK = ef8559c0[1] 'swapper' THREAD: ef856000 CPU: 0
      GPR00: c006d538 ef857f70 ef8559c0 00000000 00000004 00000000 00000000 00000000
      GPR08: c0590000 c30170a8 00000000 c30170a8 00000001 0fffe000 00000000 00000000
      GPR16: 00000000 7ffa0e60 00000000 00000000 7ffb0bd8 7ff3b844 c05be000 00000000
      GPR24: 00000000 00000000 c05c28b0 c0579fac 00000000 00029002 00000000 c0579f84
      NIP [c0579f84] mpc85xx_mc_clear_rfxe+0x0/0x28
      LR [c006d550] on_each_cpu+0x34/0x50
      Call Trace:
      [ef857f70] [c006d538] on_each_cpu+0x1c/0x50 (unreliable)
      [ef857f90] [c057a070] mpc85xx_mc_init+0xc4/0xdc
      [ef857fa0] [c0001cd4] do_one_initcall+0x34/0x1a8
      [ef857fd0] [c055d9d8] kernel_init+0x17c/0x218
      [ef857ff0] [c000cda4] kernel_thread+0x4c/0x68
      Instruction dump:
      40be0018 3c60c052 3863c70c 4be9baad 3be0ffed 4bd7c99d 80010014 7fe3fb78
      83e1000c 38210010 7c0803a6 4e800020 <7c11faa6> 54290024 81290008
      3d60c06e
      Oops: Exception in kernel mode, sig: 4 [#2]
      ---[ end trace 49ff3b8f93efde1a ]---
      
      Also use the HID1_RFXE define rather than a magic number.
      
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      a94d7b35
    • Mariusz Kozlowski's avatar
      mlx4: fix kfree on error path in new_steering_entry() · a14b289d
      Mariusz Kozlowski authored
      
      
      On error path kfree() should get pointer to memory allocated by
      kmalloc() not the address of variable holding it (which is on stack).
      
      Signed-off-by: default avatarMariusz Kozlowski <mk@lab.zgora.pl>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a14b289d
    • Alex Deucher's avatar
      drm/radeon/kms: pageflipping cleanup for avivo+ · fb9674bd
      Alex Deucher authored
      
      
      Avoid touching the flip setup regs while
      acceleration is running.  Set them at modeset
      rather than during pageflip.  Touching these
      regs while acceleration is active caused hangs
      on pre-avivo chips.  These chips do not seem
      to be affected, but better safe than sorry,
      plus it avoids repeatedly reprogramming the
      regs every flip.
      
      Signed-off-by: default avatarAlex Deucher <alexdeucher@gmail.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      fb9674bd
    • Alex Deucher's avatar
  3. Apr 03, 2011
  4. Apr 02, 2011
    • Guan Xuetao's avatar
      unicore32 framebuffer fix: get videomemory by __get_free_pages() and make it floatable · 6b794743
      Guan Xuetao authored
      
      
      1. get videomemory by __get_free_pages() in fb-puv3.c
      2. remove resource reservation for old fixed UNIGFX_MMAP & UVC_MMAP space
      3. remove unused macros: PKUNTIY_UNIGFX_MMAP_BASE, PKUNITY_UNIGFX_MMAP_SIZE,
      	PKUNITY_UVC_MMAP_BASE, PKUNITY_UVC_MMAP_SIZE and KUSER_UNIGFX_BASE
      4. remove unused header linux/vmalloc.h in fb-puv3.h
      
      Signed-off-by: default avatarGuan Xuetao <gxt@mprc.pku.edu.cn>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      6b794743
    • Arnd Bergmann's avatar
      usbnet: use eth%d name for known ethernet devices · c261344d
      Arnd Bergmann authored
      
      
      The documentation for the USB ethernet devices suggests that
      only some devices are supposed to use usb0 as the network interface
      name instead of eth0. The logic used there, and documented in
      Kconfig for CDC is that eth0 will be used when the mac address
      is a globally assigned one, but usb0 is used for the locally
      managed range that is typically used on point-to-point links.
      
      Unfortunately, this has caused a lot of pain on the smsc95xx
      device that is used on the popular pandaboard without an
      EEPROM to store the MAC address, which causes the driver to
      call random_ether_address().
      
      Obviously, there should be a proper MAC addressed assigned to
      the device, and discussions are ongoing about how to solve
      this, but this patch at least makes sure that the default
      interface naming gets a little saner and matches what the
      user can expect based on the documentation, including for
      new devices.
      
      The approach taken here is to flag whether a device might be a
      point-to-point link with the new FLAG_POINTTOPOINT setting in
      the usbnet driver_info. A driver can set both FLAG_POINTTOPOINT
      and FLAG_ETHER if it is not sure (e.g. cdc_ether), or just one
      of the two.  The usbnet framework only looks at the MAC address
      for device naming if both flags are set, otherwise it trusts the
      flag.
      
      Signed-off-by: default avatarArnd Bergmann <arnd.bergmann@linaro.org>
      Tested-by: default avatarAndy Green <andy.green@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c261344d
    • FUJITA Tomonori's avatar
      starfire: clean up dma_addr_t size test · 1591cb60
      FUJITA Tomonori authored
      
      
      Now we have CONFIG_ARCH_DMA_ADDR_T_64BIT. We can fix the hacky
      dma_addr_t size test cleanly.
      
      Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1591cb60
  5. Apr 01, 2011
  6. Mar 31, 2011
  7. Mar 30, 2011
Loading