1. 09 Oct, 2002 40 commits
    • Dan Zink's avatar
      [PATCH] Compaq PCI Hotplug bug fix · e87de9d3
      Dan Zink authored
      Found the bug.  The following patch fixes the hot plug
      driver so that it has a fallback when there are no unused
      IRQs on a system.  At some point intialization got re-
      ordered and this was broken.
      
      I found another bug that was preventing the existing scheme from
      working.  It looks like the function "pcibios_set_irq_routing" is
      returning 1 for success, but the hot plug driver was interpreting it as
      failure.
      e87de9d3
    • Irene Zubarev's avatar
      [PATCH] IBM PCI Hotplug: small patch · dd4f25fb
      Irene Zubarev authored
      This is a small patch on top of what you sent out to the kernel
      already.  I basically uncommented out another place, where we call
      pci_hp_change_info and changed to the new method.  And also, when I sent
      you those (polling, isa, pci...) patches sometime back, I made a mistake
      when I was translating the code from the way RPM is to the way we want in
      the kernel (since in RPM we cannot have option to compile kernel).
      dd4f25fb
    • Linus Torvalds's avatar
      wd7000 indent pass, no code changes · cd509844
      Linus Torvalds authored
      indent -kr -i8 -bri0 -l255 wd7000.{c,h}
      cd509844
    • Doug Ledford's avatar
      [PATCH] compile fix for cpqfc driver · 6f720ad0
      Doug Ledford authored
      6f720ad0
    • Robert Love's avatar
      [PATCH] getpid() comment typo · 0f61ccea
      Robert Love authored
      Comment above getpid() is wrong.
      
      This patch fixes it, and expands the comment to explain why on earth
      we have getpid() returning ->tgid and not ->pid.
      0f61ccea
    • Robert Love's avatar
      [PATCH] fix preempt_count overflow with brlocks · 2a7a183f
      Robert Love authored
      Now that brlocks loop over NR_CPUS, on SMP every br_lock/br_unlock
      results in the acquire/release of 32 locks.  This incs/decs the
      preempt_count by 32.
      
      Since we only have 7 bits now for actually storing the lock depth, we
      cannot nest but 3 locks deep.  I doubt we ever acquire three brlocks
      concurrently, but it is still a concern.
      
      Attached patch disables/enables preemption explicitly once and only
      once for each lock/unlock.  This is also an optimization as it
      removes 31 incs, decs, and conditionals. :)
      
      Problem reported by Andrew Morton.
      2a7a183f
    • Alan Cox's avatar
      [PATCH] 3c501 for 2.5 · 26113ebe
      Alan Cox authored
      Not much here, just some tidying/checking. This driver can't alas use NAPI
      in 2.5. Note however it has no panics or BUG()s so appears to meet the
      carrier grade guidelines ;)
      
      - Clarified authors so I get the mail not Donald
      - Added missing MODULE_ bits
      - Moved junk into 3c501.h
      26113ebe
    • Alan Cox's avatar
      [PATCH] first pass over the in2000 · 73c8ae7c
      Alan Cox authored
      - new locking
      - new_eh
      - use ->page/->offset
      73c8ae7c
    • Linus Torvalds's avatar
      Merge bk://ldm.bkbits.net/linux-2.5-ide · ff64a6e3
      Linus Torvalds authored
      into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
      ff64a6e3
    • Patrick Mochel's avatar
      IDE: make ide_drive_remove() call driver's ->cleanup(). · ef1e58e7
      Patrick Mochel authored
      This was accidentally dropped before, but re-added now to completely mimic
      behavior of the reboot notifier IDE used to have. 
      ef1e58e7
    • Patrick Mochel's avatar
      IDE: Add generic remove() method for drives; remove reboot notifier. · 5530a5d1
      Patrick Mochel authored
        
      The remove() method is generic for all drives, and set in ide_driver_t::gen_driver.
      The call simply forwards the call to ide_driver_t::standby(). 
      
      This obviates the need for IDE reboot notifier. The core iterates over all present
      devices in device_shutdown() and unregisters each one. 
      5530a5d1
    • Patrick Mochel's avatar
      IDE: register ide driver for all ide drives; not just for disk drives. · b134c462
      Patrick Mochel authored
        
      This adds
            struct device_driver    gen_driver;
        
      to ide_driver_t, which is filled in with necessary fields when an ide
      driver calls ide_register_driver(). That then registers the driver with
      the driver model core. 
        
      As a result, this gives us the following output in driverfs:
        
      # tree -d /sys/bus/ide/drivers/
      /sys/bus/ide/drivers/
      |-- ide-cdrom
      `-- ide-disk
        
      The suspend/resume callbacks in ide-disk.c have been temporarily
      disabled until the ide core implements generic methods which forward
      the calls to the drive drivers. 
      b134c462
    • Thomas Molina's avatar
      [PATCH] missing exports · e38e1e7f
      Thomas Molina authored
      the netfilter ipt owner module still needs the following to compile
      e38e1e7f
    • Thomas Molina's avatar
      [PATCH] remove double "lock" in v_midi.h · 0bb7248b
      Thomas Molina authored
      A second instance of lock had been inadvertently added to v_midi.h
      0bb7248b
    • Patrick Mochel's avatar
      IDE: add struct device to ide_drive_t and use that for IDE drives · ca0e5f35
      Patrick Mochel authored
      ... instead of the one in struct gendisk.
      ca0e5f35
    • Martin Schwidefsky's avatar
      [PATCH] s390 update: 3270 console · 513ec1e8
      Martin Schwidefsky authored
      Fix 3270 console reboot loop. Recognize 3270 control unit type 3174.
      Fix tubfs kmallocs. Dynamically get 3270 input buffer. Get bootup colors
      right on 3270 console
      513ec1e8
    • Martin Schwidefsky's avatar
      [PATCH] s390 update: syscall tracing · 0dd3cc51
      Martin Schwidefsky authored
      Pass the system call number in grp2 to strace instead of -ENOSYS.
      0dd3cc51
    • Martin Schwidefsky's avatar
      [PATCH] s390 update: superfluous memset · b579a8f7
      Martin Schwidefsky authored
      Remove a duplicate memset. That is already done in alloc_disk.
      b579a8f7
    • Martin Schwidefsky's avatar
      [PATCH] s390 update: linker script typo · 6be2f1e5
      Martin Schwidefsky authored
      Correct typo in the vmlinux.lds.S files.
      6be2f1e5
    • Martin Schwidefsky's avatar
      [PATCH] s390 update: tasklets · 4a975df3
      Martin Schwidefsky authored
      Switch from work queues to tasklets in the 3215 and 3270 drivers.
      4a975df3
    • Martin Schwidefsky's avatar
      [PATCH] s390 update: work queues · 636efd6a
      Martin Schwidefsky authored
      Remove all tq_structs from s390 driver code.
      636efd6a
    • Martin Schwidefsky's avatar
      [PATCH] s390 update: compile fixes · fea7f50e
      Martin Schwidefsky authored
      Switch to @$(generate-asm-offsets.h) method to create the asm-offsets.h file,
      fix signal dequeueing in the 31 bit emulation code and fix includes.
      fea7f50e
    • Linus Torvalds's avatar
      Merge bk://linux-input.bkbits.net/linux-input · f355ae1c
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      f355ae1c
    • Vojtech Pavlik's avatar
      fd17b576
    • Vojtech Pavlik's avatar
      Don't try to enable extra keys on IBM/Chicony keyboards as this upsets · 6bb434ef
      Vojtech Pavlik authored
      several notebook keyboards. Until we find a better solution how to detect
      who are we talking to, we rely on the kernel command line. Use
      atkbd_set=4 to gain access to the extra keys.
      6bb434ef
    • Vojtech Pavlik's avatar
    • Vojtech Pavlik's avatar
      16c561f7
    • Vojtech Pavlik's avatar
      d3ca7378
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/davem/BK/sparc-2.5 · 77ade2a9
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      77ade2a9
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/davem/BK/net-2.5 · 9ae94219
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      9ae94219
    • Christoph Hellwig's avatar
      [PATCH] initcalls for ATM · f1556f64
      Christoph Hellwig authored
      Switch over ATM code to initcalls and reorder the makefile so
      that link order inside atm is the same.  I've also cleaned up
      the makefile a bit while at it.
      
      I didn't fix the existing compilation problems in the drivers (cli &
      friends) and the broken le/be firmware selection for the fore200e cards
      (kbuild breakage) though.
      f1556f64
    • Jens Axboe's avatar
      [PATCH] Scsi sense buffer thinko · 716041cc
      Jens Axboe authored
      Noticed by Peter Chubb.
      
      SCpnt->sense_buffer[0] has to _equal_ 0xf0 for the sense to be valid,
      not vice versa.
      716041cc
    • Andrew Morton's avatar
      [PATCH] Hardwire CONFIG_LBD to "on" for testing · d74cfca3
      Andrew Morton authored
      Make 64-bit sector_t compulsory.  Accelerated testing...
      d74cfca3
    • Andrew Morton's avatar
      [PATCH] Fix xxx_get_biosgeometry --- avoid useless 64-bit division. · 89956725
      Andrew Morton authored
      From Peter Chubb
      
      The bios geometry is almost useless, except for fdisk to try to write
      an MSDOS partition table that is vaguely compatible with one written by
      other operating systems.
      
      If the size of disc will overflow a ten-bit cylinder number, then all
      bets are off anyway.  So fake it by casting the true disc capacity to a
      smaller type (than u64), so that we avoid 64-bit division on 32-bit
      platforms.  If the disc is small enough that the number of cylinders is
      correct, then this has no effect; otherwise, the number-of-cylinders we
      report is bogus, but you can't use an MSDOS-format partition table on
      such a drive anyway --- use the EFI GPT or the LDM partitioning, which
      use 64-bit offsets internally.
      89956725
    • Andrew Morton's avatar
      [PATCH] 64-bit sector_t - remove udivdi3, use sector_div() · a2b12f37
      Andrew Morton authored
      From Peter Chubb
      
      Get rid of need for GCC _udivdi3 and _umoddi3 helper functions
       - use sector_div more aggressively.
      a2b12f37
    • Andrew Morton's avatar
      [PATCH] 64-bit sector_t - md fixes · d6b4ef83
      Andrew Morton authored
      From Peter Chubb
      
      (Yes I forgot something...  Without this patch, trying to use RAID
      without CONFIG_LBD would fail.)
      
      Fix md operation without CONFIG_LBD --- don't try to include __udivdi3
      etc.
      d6b4ef83
    • Andrew Morton's avatar
      [PATCH] 64-bit sector_t - filesystems · 763fb9a3
      Andrew Morton authored
      From Peter Chubb
      
      Filesystem migration to possibly 64-bit sector_t:
       - bmap() now takes and returns a sector_t to allow filesystems
         (e.g., JFS, XFS) that are 64-bit clean to deal with large files
       - buffer handling now 64-bit clean
      
      Enable 64-bit sector_t on IA32 and PPC.
      
      kiobufs takes sector_t array, not array of long.
      Fix blkmtd.c to deal in such an array.
      
      Miscellaneous fixes for 64-bit sector_t.
       	 - missed printk formats
      	 - ide_floppy_do_request had incorrect signature
      	 - in blkmtd.c there was a pointer used to
      	   manipulate an array to be used by kiobuf --
       	   it was unsigned long, needed to be sector_t
      763fb9a3
    • Andrew Morton's avatar
      [PATCH] 64-bit sector_t - driver changes · 6179fd18
      Andrew Morton authored
      From Peter Chubb
      
      Compaq Smart array sector_t cleanup: prepare for possible 64-bit sector_t
      
      Clean up loop device to allow huge backing files.
      
      MD transition to 64-bit sector_t.
       - Hold sizes and offsets as sector_t not int;
       - use 64-bit arithmetic if necessary to map block-in-raid to zone
         and block-in-zone
      6179fd18
    • Andrew Morton's avatar
      [PATCH] 64-bit sector_t - printk changes and sector_t cleanup · be48ef9e
      Andrew Morton authored
      From Peter Chubb
      
      printk changes: A sector_t can be either 64 or 32 bits, so cast it to a
      printable type that is at least as large as 64-bits on all platforms
      (i.e., cast to unsigned long long and use a %llu format)
      
      Transition to 64-bit sector_t: fix isofs_get_blocks by converting the
      (possibly 64-bit) arg to a long.
      
      SCSI 64-bit sector_t cleanup: capacity now stored as sector_t; make
      sure that the READ_CAPACITY command doesn't sign-extend its returned
      value; avoid 64-bit division when printing size in MB.
      
      Still to do:
       - 16-byte SCSI commands
       - Individual scsi drivers.
      be48ef9e
    • Andrew Morton's avatar
      [PATCH] 64-bit sector_t - various driver changes · 9f2f568c
      Andrew Morton authored
      peter's code works for me, and the 40-odd people who download
      the -mm patches.  Anton has tested it on ppc64 and I presume that
      Peter has tested it on ia64.  I use gcc-2.91.66 and others use
      later compilers.  I expect that any remaining problems will
      mainly be caught by the compiler.  And compiler bugs can be
      detected by turning off the option in config and seeing if things
      get better.
      
      From Peter Chubb
      
       - do_request() function takes sector_t not unsigned long as the
         block number to operate on.
       - Various casts to long where the underlying device can never get
         big enough to warrant a 64-bit sector offset.
       - Cast sector_t to unsigned long long when printing.
      9f2f568c