1. 04 Apr, 2003 10 commits
    • Greg Kroah-Hartman's avatar
    • David Brownell's avatar
      [PATCH] USB: set_configuration() missed some state · f20c266a
      David Brownell authored
      I noticed that the usb_set_configuration() code was leaving
      endpoints halted ... likely not a problem just now since that
      routine can't be used safely except during enumeration, but
      better to fix this than not.
      f20c266a
    • David Brownell's avatar
      [PATCH] USB: kerneldoc for usbfs · b2d7ebeb
      David Brownell authored
      So far as I know, "usbfs" was never documented ... so
      here's a patch with some text I've had sitting around,
      merging it into the other USB kerneldoc.
      
      It should be accurate, down to the warnings about why
      not to use several of the calls, though cross-review
      with the code would be good too.  A notable omission
      is any details on the async APIs.
      b2d7ebeb
    • David Brownell's avatar
      [PATCH] USB usbnet: dynamic config, cdc-ether, net1080 · eca765b0
      David Brownell authored
      This patch:
      
         - Makes "usbnet" pay attention to device descriptors in
           the most common cases; there's less need to embed device
           hardware details.  This lets it work with high speed
           devices, and should help interop with the newer ARM/PXA
           kernels "usb-eth" (same vid/pid, but different endpoints).
      
         - Adds some new CDC Ethernet support, which is partly enabled:
           the Zaurus SL-5500 code uses it, with the current FRAMING_Z
           flag overriding normal CDC framing on-the-wire.  (Most of
           the other "minidrivers" use CDC framing, except Net1080
           and GeneSys.)
      
         - Merges a patch from Johannes to recover from some net1080
           framing errors by flushing the fifos ... the chip gets into
           a wierd mode, this makes the link more robust.  (Thanks!)
      
         - Gets rid of a family of cpu/logfile saturating loops that
           could show up in early stages of disconnect processing,
           while we're getting rx/tx errors continuously since khubd
           hasn't tried to disconnect() us yet.  (Pathological case,
           with lots of logging enabled: khubd never gets scheduled!)
      
         - Uses deeper queues at high speed, so the host controllers
           can stay busy transferring packets even when IRQs get held
           off for several milliseconds.  That pipelining gives better
           throughput too -- 4x more with one device, says TTCP.
      
      With the possible exception of multicast support, this code
      should be a fine replacement to "cdc-ether" ... certainly
      its faster for high speed devices.  Some later patch should
      likely do a switch-over.  (Which would  also resolve a Zaurus
      hotplugging bug:  "cdc-ether" doesn't blacklist it.)
      eca765b0
    • Petko Manolov's avatar
      [PATCH] USB: pegasus link status fix · 22a8591b
      Petko Manolov authored
        fixed up the link status detection
      22a8591b
    • Art Haas's avatar
      [PATCH] USB: C99 initializers for drivers/usb files · de37adec
      Art Haas authored
      Here are two patches that convert the files to use C99 initializers. The
      patches are against current BK.
      de37adec
    • Paul Mackerras's avatar
      [PATCH] USB: small fix to pegasus.c · 938c0a85
      Paul Mackerras authored
      Using cpu_to_le16p on a __u8 variable is wrong, and gives a compile
      warning on PPC.  It's better to use cpu_to_le16 in this case.  Here is
      a patch to fix it.  Please apply.
      938c0a85
    • Oliver Neukum's avatar
      [PATCH] USB: removing unnecessary calls to usb_set_configuration · d5e58ea5
      Oliver Neukum authored
        - remove unnecessary calls to usb_set_configuration
      d5e58ea5
    • Oliver Neukum's avatar
      [PATCH] USB: locking reset/probe · b0af79be
      Oliver Neukum authored
        - mutual exclusion between reset() and probe()
      b0af79be
    • Greg Kroah-Hartman's avatar
      Merge gregkh@kernel.bkbits.net:/home/gregkh/linux/linus-2.5 · 7ac1d67a
      Greg Kroah-Hartman authored
      into kroah.com:/home/greg/linux/BK/gregkh-2.5
      7ac1d67a
  2. 03 Apr, 2003 30 commits
    • Neil Brown's avatar
      [PATCH] md: Add some new lines to diagnostic printks. · 2c12e127
      Neil Brown authored
      Stops <6> appearing in middles of line and improves output.
      2c12e127
    • Neil Brown's avatar
    • Neil Brown's avatar
      becf91fc
    • David S. Miller's avatar
      Merge nuts.ninka.net:/home/davem/src/BK/sparcwork-2.5 · bd4efa73
      David S. Miller authored
      into nuts.ninka.net:/home/davem/src/BK/sparc-2.5
      bd4efa73
    • David S. Miller's avatar
    • David S. Miller's avatar
      [SPARC64]: Fix trap stack allocations so gcc-3.x builds work. · 11bef0bb
      David S. Miller authored
      1) Use PTREGS_OFF consistently
      2) Define it to allocate STACKFRAME_SZ instead of REGWIN_SZ
      3) Kill off REGWIN_SZ, replace with sizeof(struct reg_window).
      11bef0bb
    • David S. Miller's avatar
    • David S. Miller's avatar
      54f05dc4
    • Ben Collins's avatar
      [SPARC64]: Fix boot target deps. · afa82d46
      Ben Collins authored
      afa82d46
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/davem/sparc-2.5 · 513230c4
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      513230c4
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/davem/net-2.5 · 5148292f
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      5148292f
    • David S. Miller's avatar
      [SPARC64]: Update defconfig. · 588a4b4c
      David S. Miller authored
      588a4b4c
    • David S. Miller's avatar
    • Andrew Morton's avatar
      [PATCH] ext3 journal commit I/O error fix · 68569684
      Andrew Morton authored
      From: Hua Zhong <hzhong@cisco.com>
      
      The current ext3 totally ignores I/O errors that happened during a
      journal_force_commit time, causing user space to falsely believe it has
      succeeded, which actually did not.
      
      This patch  checks IO error during  journal_commit_transaction. and aborts
      the journal when there is I/O error.
      
      Originally I thought about reporting the error without doing aborting the
      journal, but it probably needs a new flag. Aborting the journal seems to be
      the easy way to  signal "hey sth is wrong..".
      68569684
    • Andrew Morton's avatar
      [PATCH] ext3: create a slab cache for transaction handles · c20fb5f1
      Andrew Morton authored
      ext3 allocates and frees at least one handle structure for each system call.
      kmalloc and kfree are apparent in the profiles.
      
      Adding a slab cache for these objects takes the overhead for a write() from
      1.63 microseconds down to 1.56.
      c20fb5f1
    • Andrew Morton's avatar
      [PATCH] ext3_commit_write speedup · 9aabee2e
      Andrew Morton authored
      For an appending write, ext3_commit_write() will call the expensive
      ext3_mark_inode_dirty() twice.  Once in generic_commit_write()'s extension of
      i_size and once in ext3_commit_write() itself where i_disksize is updated.
      
      But by updating i_disksize _before_ calling generic_commit_write() these can
      be piggybacked.
      
      The patch takes the overhead of a write() from 1.96 microseconds down to
      1.63.
      9aabee2e
    • Andrew Morton's avatar
      [PATCH] ext3_mark_inode_dirty() speedup · f0f46afd
      Andrew Morton authored
      ext3_mark_inode_dirty() (and several other callers) use the
      ext3_reserve_inode_write() and ext3_mark_ioc_dirty() pair for journalling an
      inode's backing block.
      
      Because ext3_reserve_inode_write() gets journalling access to the block there
      is no need for ext3_mark_iloc_dirty() to do it as well.
      
      This change reduces the overhead of a write() from 2.7 microseconds to 1.95
      on a 2.7G P4.
      f0f46afd
    • Andrew Morton's avatar
      [PATCH] Fix jbd assert failure on IO error. · 7ba93ca7
      Andrew Morton authored
      From: Stephen Tweedie <sct@redhat.com>
      
      The buffer_uptodate flag gets cleared on IO failure, and this can panic jbd
      when it tries to write such a buffer.  Relax the panic to be just a warning.
      7ba93ca7
    • Andrew Morton's avatar
      [PATCH] Add less-severe assert-failure form for ext3. · bdf6c6a6
      Andrew Morton authored
      From: Stephen Tweedie <sct@redhat.com>
      
      Add a new form of assert failure in ext3 which allows us to flag events which
      are *usually* bugs, but which can be legally triggered in the presence of IO
      failures.  Don't panic the kernel on such errors unless we've defined
      #JBD_PARANOID_IOFAIL, which will normally be set only for testing purposes.
      bdf6c6a6
    • Andrew Morton's avatar
      [PATCH] remove dparent_lock · 723c6e83
      Andrew Morton authored
      The big SMP machines are seeing quite some contention in dnotify_parent()
      (via vfs_write).  This function is hammering the global dparent_lock.
      
      However we don't actually need a global dparent_lock for pinning down
      dentry->d_parent.  We can use dentry->d_lock for this.  That is already being
      held across d_move.
      
      This patch speeds up SDET on the 16-way by 5% and wipes dnotify_parent() off
      the profiles.
      
      It also uninlines dnofity_parent().
      
      It also uses spin_lock(), which is faster than read_lock().
      
      I'm not sure that we need to take both the source and target dentry's d_lock
      in d_move.
      
      The patch also does lots of s/__inline__/inline/ in dcache.h
      723c6e83
    • Andrew Morton's avatar
      [PATCH] real_lookup race fix · 1b8910cf
      Andrew Morton authored
      From: Maneesh Soni <maneesh@in.ibm.com>
      
      Here is a patch to use seqlock for real_lookup race with d_lookup as suggested
      by Linus. The race condition can result in duplicate dentry when d_lookup
      fails due concurrent d_move in some unrelated directory.
      
      Apart from real_lookup, lookup_hash()->cached_lookup() can also fail due
      to same reason. So, for that I am doing the d_lookup again.
      
      Now we have __d_lookup (called from do_lookup() during pathwalk) and
      d_lookup which uses seqlock to protect againt rename race.
      
      dcachebench numbers (lower is better) don't have much difference on a 4-way
      PIII xeon SMP box.
      
      base-2565
      Average usec/iteration  19059.4
      Standard Deviation      503.07
      
      base-2565 + seq_lock
      Average usec/iteration  18843.2
      Standard Deviation      450.57
      1b8910cf
    • Andrew Morton's avatar
      [PATCH] exp_parent locking fixes · ec1d26ec
      Andrew Morton authored
      From: Neil Brown and myself.
      
      Don't do dput() inside read_lock().  It can sleep.
      ec1d26ec
    • Andrew Morton's avatar
      [PATCH] umsdos fixes · ca88b8e8
      Andrew Morton authored
      From: Andries.Brouwer@cwi.nl
      
      Make sure structs used by umsdos ioctls do not change size when the size of
      dev_t is changed.
      ca88b8e8
    • Andrew Morton's avatar
      [PATCH] Fix devfs' partition handling · 7ceef18f
      Andrew Morton authored
      From: Andre Landwehr <andre.landwehr@gmx.net>
      
      with / on an IDE harddisk the disks partitions do not appear in
      devfs, only the disc device. This is due to rescan_partitions
      being called twice and deleting but not re-creating the entries
      during the second call.
      
      hch has acked this.
      7ceef18f
    • Andrew Morton's avatar
      [PATCH] add vt console scrollback ioctl · 8a8e9c88
      Andrew Morton authored
      From: Samuel Thibault <Samuel.Thibault@ens-lyon.fr>
      
      There is no way for a braille device driven by brltty (userland root-owned
      daemon) to scrollback the virtual console, the only way is to use the pc
      keyboard.  A very simple TIOCLINUX ioctl meets this need (tested).
      
      Also add a command for bringing the last console to the top, as keyboard.c's
      lastcons() does when pressing alt - down arrow.
      8a8e9c88
    • Andrew Morton's avatar
      [PATCH] sync dirty pages in fadvise(FADV_DONTNEED) · 3bc17e74
      Andrew Morton authored
      This changes the fadvise(FADV_DONTNEED) operation to start async writeout of
      any dirty pages in the file.
      
      The thinking is that if the application doesn't want to use those pages in
      the future, we may as well get IO underway against them so they can be freed
      up on the next call to fadvise().
      
      The POSIX spec does not go into any detail as to whether this is the right or
      wrong behaviour.
      
      This provides a nice way for applications whihc are writing streaming data
      (the main users of fadvise) to keep the amount of dirty pagecache under
      control without having to resort to system-wide VM tuning.
      
      It also provides an "async fsync()".  If the application passes in a length
      of zero, fadvise will start async writeout of the pages, but will not
      invalidate any of the file's pagecache.
      3bc17e74
    • Andrew Morton's avatar
      [PATCH] Additional 3c980 device support · 89ef9495
      Andrew Morton authored
      From: "J.A. Magallon" <jamagallon@able.es>
      
      Adds support for a couple of 3c980 variants which are in pci.ids, but not in
      the driver.
      89ef9495
    • Andrew Morton's avatar
      [PATCH] aic7xxx timer deletion fix · 93bd249f
      Andrew Morton authored
      From: Zwane Mwaikambo <zwane@linuxpower.ca>
      
      ahc_linux_free_device() needs to use del_timer_sync().  slab corruption has
      been observed due to the timer handler running after the containing object
      was freed.
      93bd249f
    • Andrew Morton's avatar
      [PATCH] misc fixes · 98c20bf4
      Andrew Morton authored
      - Fix warning in sound/pci/cs46xx/cs46xx_lib.c (Martin Bligh)
      
      - pte_file() comment fix (Pete Zaitcev)
      
      - _PAGE_FILE comment clarifications
      
      - copy_to_user() check in do_proc_readlink()
      98c20bf4
    • Andrew Morton's avatar
      [PATCH] struct stat - support larger dev_t · e95b2065
      Andrew Morton authored
      From: Andries.Brouwer@cwi.nl
      
      Below a patch that changes struct stat for a number of
      architectures. Maintainers, please watch carefully.
      
      Struct stat is used to transfer information from kernel
      to user space on a stat() system call.
      It has fields st_dev, st_rdev.
      
      The size of these fields is in principle unrelated to
      the size of a dev_t in user space or the size of a
      dev_t or kdev_t in kernel space.
      
      It is just the "capacity" of the channel.
      The actual amount of useful information is the minimum
      of the four sizes (kernel dev_t, kernel kdev_t,
      user dev_t, width of stat st_dev, st_rdev fields).
      
      The goal of this patch is to make sure that the stat() and stat64()
      system calls transmit at least 32 and 64 bits, respectively.
      This is achieved by using the padding that was present already.
      We fail when no padding was present, or when the padding is on
      the wrong side (after the field, while the machine is big-endian).
      
      alpha:	stat: uses unsigned int, 32 bits
      arm:	stat: uses unsigned short - bad.
      	The padding is on one side, which means that this can
      	be made into unsigned long only on little endian systems.
      	FIXED - unless __ARMEB__.
      	stat64: used unsigned short - FIXED, now unsigned long long.
      cris:	stat: used unsigned short - FIXED, now unsigned long
      	stat64: used unsigned short - FIXED, now unsigned long long.
      i386:	stat: used unsigned short - FIXED, now unsigned long
      	stat64: used unsigned short - FIXED, now unsigned long long.
      ia64:	stat: uses unsigned long, 64 bits
      m68k:	stat: used unsigned short - bad, but this cannot be fixed
      	since m68k is big-endian, and the available padding is on
      	the wrong side. NOT FIXED.
      	stat64: used unsigned short - FIXED, now unsigned long long.
      mips:	stat: uses dev_t which is unsigned int, 32 bits
      	stat64: used unsigned long, 32 bits. NOT FIXED.
      	(There is padding on one side, so this can be fixed if __MIPSEL__.)
      mips64:	stat: uses dev_t which is unsigned int, 32 bits
      parisc:	stat: uses dev_t, 32 bits
      	stat64: uses unsigned long long, 64 bits
      ppc:	stat: uses dev_t which is unsigned int, 32 bits
      	stat64: unsigned long long, 64 bits
      ppc64:	stat: uses dev_t which is unsigned long, 64 bits
      	stat64: uses unsigned long, 64 bits
      sparc:	stat: uses unsigned short, no padding. NOT FIXED.
      	stat64: used unsigned short - FIXED, now unsigned long long.
      sparc64:stat: uses dev_t which is unsigned int, 32 bits
      	stat64: used unsigned short - FIXED, now unsigned long long.
      s390:	stat: used unsigned short, big-endian, padding on the wrong side,
      	NOT FIXED.
      	stat64: used unsigned short - FIXED, now unsigned long long.
      s390x:	stat: uses unsigned long, 64 bits
      sh:	stat: used unsigned short, but padding maybe on wrong side.
      	NOT FIXED.
      	stat64: used unsigned short - FIXED, now unsigned long long.
      v850:	stat: used __kernel_dev_t.
      	BUG: NEVER use __kernel types in a user space interface.
      	Replaced the types. FIXED - now unsigned int - 32 bits.
      	stat64: FIXED - now unsigned long long - 64 bits.
      x86_64:	stat: uses unsigned long, 64 bits
      
      So, on most architectures we achieve the aim of 32 bits for stat,
      64 bits for stat64. On all architectures we achieve at least
      16 bits for stat, 32 bits for stat64.
      e95b2065