1. 16 Mar, 2004 3 commits
  2. 15 Mar, 2004 37 commits
    • Jens Axboe's avatar
      [PATCH] allow random write to cdrom devices with profile 2 (removable disk) · 1b2ed5b7
      Jens Axboe authored
      This patch is from Iomega, and it allows random write opens of CDROM's
      that support the feature.
      1b2ed5b7
    • Andrew Morton's avatar
      [PATCH] ppc64: fix for massive OF properties · 48a6c2a9
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      We have some versions of firmware out there that have huge OF properties.
      So huge that we end up overwriting our initrd.
      
      Place a 1MB limit and warn bitterly if its over this.  Also fix a use of
      package-to-path where the variable was 64bytes but we would pass in a
      length of 255.
      48a6c2a9
    • Andrew Morton's avatar
      [PATCH] ppc64 defconfig update · 3680d636
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      ppc64 defconfig update
      3680d636
    • Andrew Morton's avatar
      [PATCH] Fix hvc console sleep in spinlock bug · c7e74ca2
      Andrew Morton authored
      From: Jeremy Kerr <jk@ozlabs.org>
      
      This patch fixes the sleep in spinlock hvc bug in hvc_write().
      
      The code is a little longer, but protects against large amounts of memory
      being kmalloc()ed by userspace, and minimises calls to copy_from_user().
      c7e74ca2
    • Andrew Morton's avatar
      [PATCH] Clean up xmon backtrace code. · 824315d9
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Clean up xmon backtrace code, it was doing all manner of scary things.
      824315d9
    • Andrew Morton's avatar
      [PATCH] Cleanup ppc64 procfs code · 30ffc51d
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Cleanup ppc64 procfs code:
      
      - Use initcalls everywhere. This allowed us to remove the iseries proc
        callback interface.
      - Kill proc_pmc.c. Most of it wasnt used (and we are planning to export the
        PMCs via sysfs). The few things left were iseries specific so they
        got moved into iSeries_proc.c.
      - Kill pmc.c. We dont use those statistics and the ones that are left
        can be gained via PMCs.
      - Create /proc/iSeries and /proc/ppc64 very early. This means we no
        longer have to call proc_ppc64_init in all the drivers, we can
        assume its there.
      - Fix some error return cases in rtas-proc.c and rtas-flash
      - Dont even try some pseries specific drivers on pmac.
      30ffc51d
    • Andrew Morton's avatar
      [PATCH] Add kernel version to oops. · 7836b827
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Add kernel version to oops.
      7836b827
    • Andrew Morton's avatar
      [PATCH] Fixed NULL ptr deref in RTAS syscall ppc_rtas() · 98102bc1
      Andrew Morton authored
      From: John Rose <johnrose@austin.ibm.com>
      
      Fixed NULL ptr deref in RTAS syscall ppc_rtas()
      98102bc1
    • Andrew Morton's avatar
      [PATCH] Added rtas_set_power_level() · e1297b96
      Andrew Morton authored
      From: John Rose <johnrose@austin.ibm.com>
      
      Added rtas_set_power_level()
      e1297b96
    • Andrew Morton's avatar
      [PATCH] Remove pci DMA exports · 323a26b1
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Remove pci DMA exports we now access them via inline functions that
      operate on pci_dma_ops.
      323a26b1
    • Andrew Morton's avatar
      [PATCH] Dont enable interrupts during interrupt processing on iseries · fb9166c9
      Andrew Morton authored
      From: Stephen Rothwell <sfr@canb.auug.org.au>
      
      Dont enable interrupts during interrupt processing on iseries
      fb9166c9
    • Andrew Morton's avatar
      [PATCH] Add slow path lookup in xics_get_irq · 6906cc82
      Andrew Morton authored
      From: Jake Moilanen <moilanen@austin.ibm.com>
      
      In xics_get_irq(), for a real-to-virt irq lookup, go down the
      slowpath by looking through the entire virt_irq_to_real_map array
      if take a miss on the radix tree.  This is possible, when an
      interrupt is taken before the driver has called request_irq() (eg IDE).
      6906cc82
    • Andrew Morton's avatar
      [PATCH] Export find_next_bit · 93524205
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      - export find_next_bit and move the other exports here
      - fix a few minor style issues
      93524205
    • Andrew Morton's avatar
      [PATCH] update iseries default target · b509e700
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      update iseries default target
      b509e700
    • Andrew Morton's avatar
      [PATCH] Move iSeries specific EXPORT_SYMBOLs out of ppc_ksyms.c · 4a280fe5
      Andrew Morton authored
      From: Stephen Rothwell <sfr@canb.auug.org.au>
      
      After this the only iSeries specific EXPORT_SYMBOLS in ppc_ksyms.c are
      the assembler ones ...
      4a280fe5
    • Andrew Morton's avatar
      [PATCH] Add some functions to make vio.h consistant with pci_dma.h and dma_mapping.h · 41052e9a
      Andrew Morton authored
      From: Dave Boutcher <boutcher@us.ibm.com>
      
      Add some functions to make vio.h consistant with pci_dma.h and dma_mapping.h
      41052e9a
    • Andrew Morton's avatar
      [PATCH] Fix xics IRQ affinity · eecd3bdb
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      - Merge some whitespace differences with the ameslab tree
      - We check for CPU_MASK_ALL in xics to send irqs to all cpus.
        In some cases CPU_MASK_ALL is smaller than the cpumask (eg
        NR_CPUS == 32 and cpumask is a long), so we mask it here to
        be consistent.
      eecd3bdb
    • Andrew Morton's avatar
      [PATCH] Fix multiple EEH-related bugs · 09cce79c
      Andrew Morton authored
      From: Linas Vepstas <linas@austin.ibm.com>
      
      This patch fixes multiple EEH-related bugs:
      
       - Fixes the eeh_check_failure() usage in an interrupt context.
         This routine is now safe to use in an interrupt. The fix was to
         build a cache of IO addresses and check that, instead of using
         the pci routines.
       - Merges in Olof Johansson's sizeof patch when checking for failure
       - Adds EEH tests to array/string reads
       - Fixes bugs with address resolution (some i/o addresses were handled
         incorrectly, resulting in EEH errors slipping by undetected.)
       - Adds EEH support to the PCI Hotplug system (so that devices that
         get added/removed get properly registered with the EEH subsystem.)
       - Fixes improper use of /proc filesystem.
       - Adds some misc statistics.
      
      While merging Linas' patch I also converted the proc usage to
      seq_single, used per cpu variables for the stats and removed the
      eeh-force-off option.
      09cce79c
    • Andrew Morton's avatar
      [PATCH] Fix for hotplug of multifunction cards. · 0e1311b1
      Andrew Morton authored
      From: Linda Xie <lxiep@us.ibm.com>
      
      The changes in this patch are for multifunction cards insertions/removals
      and  bug fixes:
      
      1. fix up new nodes' linux_phandle field.
      2. new nodes' phb, devfn(and so on) need to be fixed even the nodes don't
      	have "interrupts".
      3. change of_remove_node to non-recurisve func. The recursions will be done
      	by the caller.
      4. add a new function -- of_finish_dynamic_node_interrupts()
      0e1311b1
    • Andrew Morton's avatar
      [PATCH] Add some missing EXPORT_SYMBOLs · 9fe46cd9
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Add some missing EXPORT_SYMBOLs
      9fe46cd9
    • Andrew Morton's avatar
      [PATCH] Handle longbusy return codes in IBM VETH driver · b97e2088
      Andrew Morton authored
      From: Santiago Leon <santil@us.ibm.com>
      
      Handle longbusy return codes in IBM VETH driver
      b97e2088
    • Andrew Morton's avatar
      [PATCH] Add hypervisor busy return codes · 927078c6
      Andrew Morton authored
      From: Dave Boutcher <boutcher@us.ibm.com>
      
      Add hypervisor busy return codes
      927078c6
    • Andrew Morton's avatar
      [PATCH] Make dma API handle PCI and VIO · 13bb3995
      Andrew Morton authored
      From: Stephen Rothwell <sfr@canb.auug.org.au>
      
      Make dma API handle PCI and VIO
      13bb3995
    • Andrew Morton's avatar
      [PATCH] Remove some unused ppc64 variables · 5c803b43
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Remove some unused ppc64 variables
      5c803b43
    • Andrew Morton's avatar
      [PATCH] Remove bogus sys_oldumount sign extension code · be523044
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Remove bogus sys_oldumount sign extension code. We were sign extending
      the flags argument which doesnt make sense.
      be523044
    • Andrew Morton's avatar
      [PATCH] Reduce stack overflow check to 4096 bytes · 63477af1
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Reduce stack overflow check to 4096 bytes free, we were tripping it
      too much at 8192.
      63477af1
    • Andrew Morton's avatar
      [PATCH] iostats averaging fix · 14c781b8
      Andrew Morton authored
      From: Rick Lindsley <ricklind@us.ibm.com>
      
      Fix bug #2230.
      
      I've corresponded with the submitter and he did find a real bug -- when we
      were merging I/O requests we didn't always take the oldest request start
      time, which would cause a couple of the calculations like wait time and
      average queue size to be too small.  He found it mathematically but having
      done so, I think logic and inspection makes it easy to verify.
      14c781b8
    • Andrew Morton's avatar
      [PATCH] blk: statically initialise the congestion waitqueue_heads · 01003a6e
      Andrew Morton authored
      On a really small memory machine (or one with a monstrous kernel memory leak)
      we can end up calling blk_congestion_wait() before the waitqueue_heads are set
      up.
      01003a6e
    • Andrew Morton's avatar
      [PATCH] kill INIT_THREAD_SIZE · aae898de
      Andrew Morton authored
      From: Matt Mackall <mpm@selenic.com>
      
      This piece of the THREAD_SIZE cleanup got dropped.  If you make THREAD_SIZE
      > 8k, the init thread overlaps the .init section and gets smashed.  I've
      gone ahead and killed INIT_THREAD_SIZE throughout as it wasn't doing much.
      This also saves 4k when we use 4k stacks.  Please apply.  Couple more minor
      pieces remaining.
      aae898de
    • Andrew Morton's avatar
      [PATCH] kthreads hold files open · cd74e1dc
      Andrew Morton authored
      keventd and friends are currently holding /dev/console open three times.
      It's all inherited from init.
      
      Steal the relevant parts of daemonize() to fix that up.
      cd74e1dc
    • Andrew Morton's avatar
      [PATCH] slab: fix display of object length in corruption detector · dac10907
      Andrew Morton authored
      From: Manfred Spraul <manfred@colorfullife.com>
      
      print_objinfo() dumps the first few characters of an interesting object for
      debugging.  It used the wrong object len (including debug padding, instead
      of just the data area), which could cause an oops if DEBUG_PAGEALLOC is
      enabled.
      dac10907
    • Andrew Morton's avatar
      [PATCH] document unchecked do_munmaps in ipc/shm.c · 5c5fbdbe
      Andrew Morton authored
      From: Manfred Spraul <manfred@colorfullife.com>
      
      There are a few unchecked do_munmap()s in the shm code.  Manfred's comment
      explains why they are OK.
      5c5fbdbe
    • Andrew Morton's avatar
      [PATCH] do_write_mem() return value check · 055a54db
      Andrew Morton authored
      From: BlaisorBlade <blaisorblade_spam@yahoo.it>, and me
      
      - remove unused `file *' arg from do_write_mem()
      
      - Add checking for copy_from_user() failures in do_write_mem()
      
      - Return correct value from kmem writes() when a fault is encountered.  A
        write()-style syscall's return values are:
      
         0 when nothing was written and there was no error (someone tried to
         write zero bytes)
      
         >0: the number of bytes copied, whether or not there was an error.
         Userspace detects errors by noting that the write() return value is less
         than was requested.
      
         <0: there was an error and no bytes were copied
      055a54db
    • Andrew Morton's avatar
      [PATCH] resierfs: AIO support · f581e4e5
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      reiserfs can safely use the generic fs aio functions.
      f581e4e5
    • Andrew Morton's avatar
      [PATCH] reiserfs: atomicity fix · 3cde9135
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      reiserfs_file_write() can use stale metadata after a schedule.
      
      Two reiserfs_file_write bugs, where items can change during a schedule.
      3cde9135
    • Andrew Morton's avatar
      [PATCH] reiserfs: fix transaction sizes · 134ab3f5
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      Make sure reiserfs uses a reasonable number when restarting long unbounded
      transactions (creating holes or deleting files).
      
      Without this patch, the number of blocks requested grows with each
      transaction restart, until it hits MAX_BATCH_COUNT and starts forcing
      commits with every new transaction.
      
      Oleg Drokin tracked this bug down
      134ab3f5
    • Andrew Morton's avatar
      [PATCH] reiserfs: search_by_key fix · df773a2c
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      Fix a bug in reiserfs search_by_key call, where it might not properly
      detect a change in tree height during a schedule.  Originally from
      vs@namesys.com
      df773a2c