1. 03 11月, 2007 28 次提交
  2. 02 11月, 2007 8 次提交
    • V
      dm: bounce_pfn limit added · 5ec140e6
      Vasily Averin 提交于
      Device mapper uses its own bounce_pfn that may differ from one on underlying
      device. In that way dm can build incorrect requests that contain sg elements
      greater than underlying device is able to handle.
      
      This is the cause of slab corruption in i2o layer, occurred on i386 arch when
      very long direct IO requests are addressed to dm-over-i2o device.
      Signed-off-by: NVasily Averin <vvs@sw.ru>
      Cc: <stable@kernel.org>
      Cc: Alasdair G Kergon <agk@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      5ec140e6
    • J
      [SG] Get rid of __sg_mark_end() · c46f2334
      Jens Axboe 提交于
      sg_mark_end() overwrites the page_link information, but all users want
      __sg_mark_end() behaviour where we just set the end bit. That is the most
      natural way to use the sg list, since you'll fill it in and then mark the
      end point.
      
      So change sg_mark_end() to only set the termination bit. Add a sg_magic
      debug check as well, and clear a chain pointer if it is set.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      c46f2334
    • A
      cleanup asm/scatterlist.h includes · 87ae9afd
      Adrian Bunk 提交于
      Not architecture specific code should not #include <asm/scatterlist.h>.
      
      This patch therefore either replaces them with
      #include <linux/scatterlist.h> or simply removes them if they were
      unused.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      87ae9afd
    • H
      Input: inport, logibm - use KERN_INFO when reporting missing mouse · 2a0f9c4c
      Helge Deller 提交于
      Many mouse drivers are often compiled (e.g. in Linux distributions) into the
      kernel at the same time just to make sure that at least one driver will suceed
      in find it's mouse device. Nevertheless, only the inport and logitech busmouse
      mouse drivers report with KERN_ERR log level if the mouse wasn't found. They
      should use KERN_INFO instead, because it's not an error if the mouse isn't
      attached at all.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      2a0f9c4c
    • D
      Input: appletouch - idle reset logic broke older Fountains · 2a3e480d
      Dmitry Torokhov 提交于
      Fountains do not support change mode request and therefore
      should be excluded from idle reset attempts.
      
      Also:
       - do not re-submit URB when we decide that touchpad needs to be
         reinicialized
       - do not repeat size detection when reinitializing the touchpad
       - Add missing KERN_* prefixes to messages
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      Acked-by: NJohannes Berg <johannes@sipsolutions.net>
      2a3e480d
    • A
      Fix myri10ge NAPI oops & warnings · c956a240
      Andrew Gallatin 提交于
      When testing the myri10ge driver with 2.6.24-rc1, I found
      that the machine crashed under heavy load:
      
      Unable to handle kernel paging request at 0000000000100108 RIP:
        [<ffffffff803cc8dd>] net_rx_action+0x11b/0x184
      
      The address corresponds to the list_move_tail() in
      netif_rx_complete():
                           if (unlikely(work == weight))
                                   list_move_tail(&n->poll_list, list);
      
      Eventually, I traced the crashes to calling netif_rx_complete() with
      work_done == budget.  From looking at other drivers, it appears that
      one should only call netif_rx_complete() when work_done < budget.
      
      To fix it, I changed the test in myri10ge_poll() so that it refers
      to to work_done rather than looking at the rx ring status.  If
      work_done is < budget, then that implies we have no more packets to
      process. Any races will be resolved by the NIC when the write to
      irq_claim is made.
      
      In myri10ge_clean_rx_done(), if we ever exceeded our budget, it would
      report a work_done one larger than was acutally done.  This is because
      the increment was done in the conditional, so work_done would be
      incremented regardless of whether or not the test passed or failed.
      This would lead to the WARN_ON_ONCE(work > weight); warning in
      net_rx_action triggering.  I've moved the increment of work_done
      inside the loop.  Note that this would only be a problem when we had
      exceeded our budget.
      
      Signed off by: Andrew Gallatin <gallatin@myri.com>
      
      Andrew Gallatin Myricom Inc
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      c956a240
    • G
      Fix region size check in mpc5200 FEC driver · 48d58459
      Grant Likely 提交于
      Driver shouldn't complain if the register range is larger than what
      it expects.  This works around failures with some device trees.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      48d58459
    • G
      mpc5200: Fix Kconfig dependancies on MPC5200 FEC device driver · 644fdf9b
      Grant Likely 提交于
      When not building an arch/powerpc kernel, the mpc5200 FEC driver depends
      on some symbols which are not defined (BESTCOMM & BESTCOMM_FEC).
      
      This patch flips around the dependancy logic so that it cannot be
      selected unless BESTCOMM_FEC is selected first.  Kconfig stops
      complaining this way.
      
      Also, the driver only works for arch/powerpc (not arch/ppc) anyway so
      it should depend on PPC_MERGE also.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      644fdf9b
  3. 01 11月, 2007 4 次提交