1. 13 Apr, 2007 3 commits
    • Stephen Hemminger's avatar
      sky2: reliable recovery · 0fb7a0aa
      Stephen Hemminger authored
      This adds working recovery from transmit timeouts.  Previous code
      didn't do enough to truly reset chip.
      
      It is a backport of the 2.6.21 code.
      Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      0fb7a0aa
    • Thomas Gleixner's avatar
      i386: fix file_read_actor() and pipe_read() for original i386 systems · a63b596e
      Thomas Gleixner authored
      The __copy_to_user_inatomic() calls in file_read_actor() and pipe_read()
      are broken on original i386 machines, where WP-works-ok == false, as
      __copy_to_user_inatomic() on such systems calls functions which might
      sleep and/or contain cond_resched() calls inside of a kmap_atomic()
      region.
      
      The original check for WP-works-ok was in access_ok(), but got moved
      during the 2.5 series to fix a race vs. swap.
      
      Return the number of bytes to copy in the case where we are in an atomic
      region, so the non atomic code pathes in file_read_actor() and
      pipe_read() are taken.
      
      This could be optimized to avoid the kmap_atomic by moving the check for
      WP-works-ok into fault_in_pages_writeable(), but this is more intrusive
      and can be done later.
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Acked-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      a63b596e
    • Jan Beulich's avatar
      kbuild: fix dependency generation · 3dedd29b
      Jan Beulich authored
      Commit 2e3646e5 changed the way
      the split config tree is built, but failed to also adjust fixdep
      accordingly - if changing a config option from or to m, files
      referencing the respective CONFIG_..._MODULE (but not the
      corresponding CONFIG_...) didn't get rebuilt.
      
      The problem is that trisate symbol are represent with three
      different symbols:
      SYMBOL=n => no symbol defined
      SYMBOL=y => CONFIG_SYMBOL defined to '1'
      SYMBOL=m => CONFIG_SYMBOL_MODULE defined to '1'
      
      But conf_split_config do not distingush between the =y and =m case,
      so only the =y case is honoured.
      This is fixed in fixdep so when a CONFIG symbol with
      _MODULE is found we skip that part and only look
      for the CONFIG_SYMBOL version.
      Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      3dedd29b
  2. 06 Apr, 2007 37 commits