]> git.hungrycats.org Git - linux/log
linux
23 years ago[PATCH] JFS cleanup v2.5.6-pre2
Dave Kleikamp [Thu, 28 Feb 2002 05:22:51 +0000 (21:22 -0800)]
[PATCH] JFS cleanup

  Cleanup - remove version and changelog.
  These don't belong in Linus' kernel.

23 years agoMerge
Linus Torvalds [Thu, 28 Feb 2002 05:18:04 +0000 (21:18 -0800)]
Merge

23 years agodefconfig changes, /bin/sh boottime fallback fix
Linus Torvalds [Thu, 28 Feb 2002 05:02:01 +0000 (21:02 -0800)]
defconfig changes, /bin/sh boottime fallback fix

23 years agoFix off-by-one error reported by Anton Lavrentiev: we no
Linus Torvalds [Thu, 28 Feb 2002 04:45:11 +0000 (20:45 -0800)]
Fix off-by-one error reported by Anton Lavrentiev: we no
longer count the idle thread in "nr_threads", so we should
not discount it when returning sysinfo() information.

23 years ago[PATCH] update my credits entry
Gerd Knorr [Thu, 28 Feb 2002 04:34:36 +0000 (20:34 -0800)]
[PATCH] update my credits entry

This patch updates my entries in CREDITS + MAINTAINERS.

23 years agoMerge http://linuxusb.bkbits.net/linus-2.5
Linus Torvalds [Thu, 28 Feb 2002 04:32:10 +0000 (20:32 -0800)]
Merge http://linuxusb.bkbits.net/linus-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoMerge
Linus Torvalds [Thu, 28 Feb 2002 04:27:20 +0000 (20:27 -0800)]
Merge

23 years agoMissing parts of 2.5.6-pre1 JFFS2 merge.
David Woodhouse [Thu, 28 Feb 2002 18:52:30 +0000 (18:52 +0000)]
Missing parts of 2.5.6-pre1 JFFS2 merge.

23 years ago[PATCH] conversion to vfs_stat() for PPC64
Alexander Viro [Thu, 28 Feb 2002 04:24:15 +0000 (20:24 -0800)]
[PATCH] conversion to vfs_stat() for PPC64

* stat() variants on ppc64 converted to use of vfs_stat() and its ilk.
* missing LFS checks added.

23 years ago[PATCH] (7/7) kdev_t removals
Alexander Viro [Thu, 28 Feb 2002 04:24:05 +0000 (20:24 -0800)]
[PATCH] (7/7) kdev_t removals

* minor cleanup in jffs (passing superblock instead of ->[si]_dev).

23 years ago[PATCH] (6/7) kdev_t removals
Alexander Viro [Thu, 28 Feb 2002 04:24:00 +0000 (20:24 -0800)]
[PATCH] (6/7) kdev_t removals

* in intermezzo a bunch of places where we are comparing ->s_dev
  are replaced with comparing pointers to superblocks.

23 years ago[PATCH] (5/7) kdev_t removals
Alexander Viro [Thu, 28 Feb 2002 04:23:55 +0000 (20:23 -0800)]
[PATCH] (5/7) kdev_t removals

* in reiserfs: a new caller of getblk() converted to sb_getblk() +
  a bunch of places converted to use of ->s_id.

23 years ago[PATCH] (4/7) kdev_t removals
Alexander Viro [Thu, 28 Feb 2002 04:23:49 +0000 (20:23 -0800)]
[PATCH] (4/7) kdev_t removals

* write_some_buffers(), write_unlocked_buffers(), wait_for_buffers(),
  wait_for_locked_buffers() and wait_for_some_buffers() converted
  from kdev_t to struct block_device *.

23 years ago[PATCH] (3/7) kdev_t removals
Alexander Viro [Thu, 28 Feb 2002 04:23:44 +0000 (20:23 -0800)]
[PATCH] (3/7) kdev_t removals

* sync_buffers() split in two functions (sync_buffers() and
  sync_all_buffers()).  Callers of sync_buffers(NODEV) are
  using the latter, those who actually pass a device - the former.
* sync_buffers() switched from kdev_t to struct block_device *.

23 years ago[PATCH] (2/7) kdev_t removals
Alexander Viro [Thu, 28 Feb 2002 04:23:39 +0000 (20:23 -0800)]
[PATCH] (2/7) kdev_t removals

* all remaining callers of sync_inodes() and sync_supers() pass
  NODEV as an argument, so we can make them void(void).  Dead
  code removed.

23 years ago[PATCH] (1/7) kdev_t removals
Alexander Viro [Thu, 28 Feb 2002 04:23:33 +0000 (20:23 -0800)]
[PATCH] (1/7) kdev_t removals

* new function - fsync_bdev() (analog of fsync_dev(), but takes
  struct block_device * instead of kdev_t.  Callers of fsync_dev()
  that have struct block_device in question are using fsync_bdev()
  now.
* old code for fsync_dev(NODEV) had been moved to sys_sync().
  Other callers of fsync_dev(NODEV) are calling sys_sync() now.
* fsync_dev() became a wrapper fro fsync_bdev().
* sync_dev() (not used anywhere in the tree) is gone.
* i2oblock.c had fsync_dev() called in ->release().  Removed.
* s390/block/xparm.c was doing fsync_dev() on its devices in
  cleanup_module().  Removed.

23 years ago[PATCH] 2.5.6-pre1: parport PCI card hooks
Tim Waugh [Thu, 28 Feb 2002 04:19:34 +0000 (20:19 -0800)]
[PATCH] 2.5.6-pre1: parport PCI card hooks

This patch adds some necessary PCI card hooks.  Patch originally from
VScom IIRC.

2001-11-14  Tim Waugh  <twaugh@redhat.com> [sent 2001-11-27]

* drivers/parport/parport_pc.c,
drivers/parport/parport_serial.c: PCI card hooks.
* drivers/parport/ChangeLog: Updated.

23 years ago[PATCH] 2.5.6-pre1: parport and O_NONBLOCK
Tim Waugh [Thu, 28 Feb 2002 04:19:29 +0000 (20:19 -0800)]
[PATCH] 2.5.6-pre1: parport and O_NONBLOCK

This patch makes lp and ppdev do the Right Thing regarding O_NONBLOCK.

2002-01-04  Tim Waugh  <twaugh@redhat.com>

* include/linux/parport.h: Define a special inactivity timeout
meaning 'caller wants to use O_NONBLOCK'.
* drivers/char/lp.c: Support O_NONBLOCK properly.
* drivers/char/ppdev.c: Likewise.
* drivers/parport/parport_pc.c: Likewise.
* drivers/parport/ChangeLog: Updated.

23 years ago[PATCH] 2.5.6-pre1: shut lp up
Tim Waugh [Thu, 28 Feb 2002 04:19:24 +0000 (20:19 -0800)]
[PATCH] 2.5.6-pre1: shut lp up

This patch makes lp quieter in the common case that a printer does
_not_ speak ECP. (People have been writing to me worried that the
message means something bad.)

2002-02-26  Tim Waugh  <twaugh@redhat.com>

* drivers/char/lp.c: Be quiet.

23 years ago[PATCH] 2.5.6-pre1: parport 'writable' fix
Tim Waugh [Thu, 28 Feb 2002 04:19:19 +0000 (20:19 -0800)]
[PATCH] 2.5.6-pre1: parport 'writable' fix

This patch fixes a problem with parport that shows up when interrupts
are specified.  I sent this to Marcelo for 2.4.19-pre2 a short time
ago.

2002-02-25  Tim Waugh  <twaugh@redhat.com>

* drivers/parport/parport_pc.c: Fix a bug spotted by Mikael
Pettersson.
* drivers/parport/ChangeLog: Updated.

23 years ago[PATCH] 2.5.6-pre1 IDE clean 14
Martin Dalecki [Thu, 28 Feb 2002 04:15:37 +0000 (20:15 -0800)]
[PATCH] 2.5.6-pre1 IDE clean 14

Most importantly this patch is making ide.c use the
new automagic for module initialization lists and further
preparing the rest of the code in question here for proper
module separation. Despite this the CMOS probe has been removed
as well... *Iff*, which I don't expect, this breaks anything
it can be reintroduced easely. During this effort an actual bug
in the initialization of the main module has been uncovered as well.
a quite serious BUG has been tagged in ide-scsi.c as well, but
as far as now I just didn't get along to actually fixing it.
(The patch is big enough as it is).

Details follow:

- Kill *unused* ide_media_verbose() funciton.

- Remove the unnecessary media and supports_dma fields from
    ide_driver_t.

- Remove the global name field from ide_driver_t struct by pushing it
    down to the places where it's actually used.

- Remove the unused hwif_data field from ide_hwif_t.

- Push the supports_dsc_overlap condition up to the level where it
    belongs: disk type as well.

- Make the initialization of ide main ide.c work with the new module
    initialization auto-magic instead of calling it explicitly in
    ll_rw_block.c This prevents the ide_init() from being called twice. We
    have BTW. renamed it to ata_module_init(), since  ata is more adequate
    then ide and xxx_module_init corresponds better to the naming
    conventions used elsewhere throughout the kernel.

    This BUG was there before any ide-clean.  It was worked around by a
    magic variable preventing the second call to succeed.  We have removed
    this variable in one of the previous patches and thus uncovered it.

- Kill proc_ide_read_driver() and proc_ide_write_driver(). The drivers
    already report on syslog which drives they have taken care of.  (Or
    at least they should). In esp. the proc_ide_write_driver() was just
    too offending for me.  Beleve it or not the purpose of it was to
    *request a particular* driver for a device, by echoing some magic
    values to a magic file...
    More importantly this "back door" was getting in the way of a properly
    done modularization of the IDE stuff.

- Made some not externally used functions static or not EXPORT-ed.

- Provide the start of a proper modularization between the main module
    and drivers for particular device types. Changing the name-space
    polluting DRIVER() macro to ata_ops() showed how inconsistently the
    busy (read: module  busy!) field from ide_driver_t
    is currently used across the    different device type modules.
    This has to be fixed soon.

- Make the ide code use the similar device type ID numbers as the SCSI
    code :-).  This is just tedious, but it will help in a distant
    feature. It helps reading the code anyway.

- Mark repettitive code with /* ATA-PATTERN */ comments for later
    consolidation at places where we did came across it.

- Various comments and notes added where some explanations was missing.

23 years ago[PATCH] 2.5.6-pre1 IDE clean 13a
Martin Dalecki [Thu, 28 Feb 2002 04:15:30 +0000 (20:15 -0800)]
[PATCH] 2.5.6-pre1 IDE clean 13a

This is finally moving the ide-pci.c file into a shape where
the host chip detection lists can finally be moved to where they
belong - into the particular chipset specific files.

This is accomplished, by a rather obivous removal of macro magic,
which was just making entries to the global device type
list nonfunctional, instead of making them conditional on the
corresponding CONFIG_BLHA options.

The second thing was to add a flag field to the device recognition
list, which made it possible to compress many of the
multi || chip id conditionals go away.

The only other file affected is ide.h - here is the change in the size
of the name field, which apparently slipped through ide-clean-12...

23 years ago[PATCH] 2.5.5 IDE cleanup 12
Martin Dalecki [Thu, 28 Feb 2002 04:15:25 +0000 (20:15 -0800)]
[PATCH] 2.5.5 IDE cleanup 12

1. Add some notes to Documentation/driver-model.txt about how and
     and where to mount the driverfs.

2. Reorganize and prepare the PCI scanning code for proper device
dependant splitup. Basically tedious cleanup of macro games.

3. Use struct pci_dev name field as the name of PCI host dapaters
instead of invention ambigious IDE special names. This makes
the kernel bootup messages look a bit shifted, since those names are bit
longer, but makes up for consistance and should allow one later
to rearage things to fit into the generic PCI device initialization
mechanisms provided by the kernel.

4. Set 3. Allowed us to make the host chip specific
pci_init_xxx class functions have the proper signature of
module initializers. This will make it possible to make true
modules out of them later.

5. Make some functions in cmd64x.c static which where not used
elsewhere.

6. rename ide_special_settings to trust_pci_irq - this is reflecting
it's functionality better. And make it match the pci device vendor
as well as the device ID. It was a BUG to match only the device id!.

7. Make the chanell setup more tollerant for BIOS-es which don't
report IO and MEM bases properly. The code found previously there
tryed but was inconsistant.

8. Start to use proper terminology in ide-pci.c: host chip, channel,
drive instead of hwif, port, drive...

9. Enlarge the name field from ide_hwif_t to 64 bytes. It was only 6
previously and there where custom names there which where exceeding
this!!! But since we use the proper pci devce name there now instead,
we had to extend the size of this field anyway.

10. Add some explanatory comments and fix misguiding comments here and
there.

11. Kill the proc_ide_write_config and proc_ide_read_config brain
damage! Those where backdoors to the pci configuration registers on PCI
devices and IO registers on directly connected ISA ATA controllers.
They didn't discrement between them!

Access to both of them *simply* doesn't belong into an operating system,
which is supposed to abstract out the access to hardware! Did I mention
that access to both can be done from user land without an IDE special
interface! Any program which was using them (I hardly beleve there is
one) just deserves to loose. The programmer responsible for it
deserves to be fired immediately.

12. Move ide_map_xx and ide_unmap_xx tinny bio level wrappers away
from the "global" ide.h to where those are actually used and kill
trivial wrappers for otherwise generic bio_ routines. Just fighting
code obfuscation. The "rq->bio is used or is not there" brain
damage in ide-taskfile.c has to be fixed later. Possibly by killing
ide-taskfile.c alltogether, becouse this should be a driver for
users and not a driver for ATA disk disaster recovery companys...

13. Kill hwif->pci_devid and hwif->pci_venid. Just use the already
present hwif->pci_dev field instead.

14. Kill unused big switch ide_reinit_drive function. This silly
functon was switching upon every possible device driver cathegory
and calling the correspondng reinit function directly. This
idiocy was fortunately not used.

That's all... Most will be clear if one starts looking at the changes
in ide.h of course...

In contrast to the previous patches this one is actually fixing two
serious bugs.

The next direct step will be to kill the sigle place global PCI device
type recognition list from ide-pci.c by pushing the entries to where
they belong -> the host chips setup modules.

23 years ago[PATCH] 2.5.6-pre1 IDE cleanup 11
Martin Dalecki [Thu, 28 Feb 2002 04:15:18 +0000 (20:15 -0800)]
[PATCH] 2.5.6-pre1 IDE cleanup 11

1. Start of driver tree usage upon suggestion from Pavel Machek.
     This still will needs a lot of further work in the future, but
     the current code doesn't hurt anything and allowa Pavel to work
     further from the base line. In esp. natively implemented
      suspend to file requires this - which I would love to see comming
     in,since I'm quite frequently using a notebook myself.

2. Kill the _IDE_C macro, which was playing games on entierly
     unnecessary declarations inside of header files in esp ide_modes.h

3. Replace the functionally totally equal system_bus_block() and
     ide_system_bus_speed() functions with one simple global
     variable: system_bus_speed. This saves quite a significatn amount of
     code. Unfortunately this is the part, which is makeing this
     patch to appear bigger then it really is...

4. Use ide_devalidate_drive() directly instead of idedisk_revalidate().

5. Kill conditional CONFIG_KMOD as well as some other minor tweaks.

Well this isn't that much in terms of functionality,  but it took me
quite q bit of time to catch up on the patch-2.5.5.gz ;-)

23 years ago[PATCH] 2.5.6-pre1 IDE cleanup 10
Martin Dalecki [Thu, 28 Feb 2002 04:15:12 +0000 (20:15 -0800)]
[PATCH] 2.5.6-pre1 IDE cleanup 10

This is finishing the cleanup parts already started in ide-clean-9.

It kills the ide_register_module() and ide_unregister_module() as well
as associated idiosyncracies alltogether. It turns out
that this patch is actually fixing a bug which was present in the
driver before: the sub-module initialization functions where called
at least twice - which is an abundance.

Tough there is a bit of global namespace pollution caused by this
patch - but I'm aware of it and will fix it just a bit later.
(The terminology used inside the IDE code is anyway nothing common
else in the linux universum...)

The next targets will be:

1. Code obfuscation by "wrappers" around generic BIO level functions.

2. ide_hwgroup_t - which is only used to serialize multiple
discs on the same interrupt and similar. This is however a tough one.

3. There is a plenty of code waste in the chipset drivers, where there
is baroque informative code for the proc file system for static stuff,
which in fact belongs just to syslog(). In fact the default RedHat
distribution kernel is killing this gratitious abuse of the /proc
concept since a long long time...

I'm still awaiting the day of /proc/GPL, where GPL contains the
full text of it...

23 years agoShrink icache more aggressively - if we free the dentries,
Linus Torvalds [Thu, 28 Feb 2002 04:11:56 +0000 (20:11 -0800)]
Shrink icache more aggressively - if we free the dentries,
go ahead and free the inodes too, don't try to age them any
more (the aging has been done on a dentry level).

23 years agousb core:
Greg Kroah-Hartman [Wed, 27 Feb 2002 15:59:49 +0000 (07:59 -0800)]
usb core:
- removed debugging statement in usb_free_urb() that I
  accidentally left in :(

23 years agoMerge bk://linuxusb.bkbits.net/linus-2.5
Linus Torvalds [Wed, 27 Feb 2002 13:50:49 +0000 (05:50 -0800)]
Merge bk://linuxusb.bkbits.net/linus-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoMerge http://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Wed, 27 Feb 2002 13:45:06 +0000 (05:45 -0800)]
Merge http://gkernel.bkbits.net/net-drivers-2.5
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agoUpdate sisfb for recent kdev_t changes in 2.5.[01].
Bakonyi Ferenc [Wed, 27 Feb 2002 14:35:47 +0000 (09:35 -0500)]
Update sisfb for recent kdev_t changes in 2.5.[01].

23 years agoThis patch adds help texts for CONFIG_SERIAL_TX3912,
Steven Cole [Wed, 27 Feb 2002 14:20:26 +0000 (09:20 -0500)]
This patch adds help texts for CONFIG_SERIAL_TX3912,
CONFIG_SERIAL_TX3912_CONSOLE, CONFIG_AU1000_SERIAL_CONSOLE,
CONFIG_AU1000_UART, CONFIG_EUROTECH_WDT to drivers/char/Config.help.

23 years agoAdd documentation for CONFIG_FB_TRIDENT.
Steven Cole [Wed, 27 Feb 2002 14:08:40 +0000 (09:08 -0500)]
Add documentation for CONFIG_FB_TRIDENT.

23 years agoFix e1000 net driver 64-bit DMA initialization.
Christopher Leech [Wed, 27 Feb 2002 14:03:43 +0000 (09:03 -0500)]
Fix e1000 net driver 64-bit DMA initialization.

23 years agoRemove unneeded and possibly incorrect PPC-specific code
Christopher Leech [Wed, 27 Feb 2002 14:01:29 +0000 (09:01 -0500)]
Remove unneeded and possibly incorrect PPC-specific code
from e1000 net driver.

23 years agoUpdate 8139cp net driver copyright, version. Remove dead code
Jeff Garzik [Wed, 27 Feb 2002 13:59:22 +0000 (08:59 -0500)]
Update 8139cp net driver copyright, version.  Remove dead code
that accidentally crept back into driver.

23 years agoMerge mandrakesoft.com:/spare/vanilla/linus-2.5
Jeff Garzik [Wed, 27 Feb 2002 13:50:06 +0000 (08:50 -0500)]
Merge mandrakesoft.com:/spare/vanilla/linus-2.5
into mandrakesoft.com:/spare/repo/net-drivers-2.5

23 years agoMerge mandrakesoft.com:/spare/vanilla/linus-2.5
Jeff Garzik [Wed, 27 Feb 2002 13:48:28 +0000 (08:48 -0500)]
Merge mandrakesoft.com:/spare/vanilla/linus-2.5
into mandrakesoft.com:/spare/repo/misc-2.5

23 years agoAdd dev->change_mtu support, supporting non-standard MTUs (within
Jeff Garzik [Wed, 27 Feb 2002 13:13:38 +0000 (08:13 -0500)]
Add dev->change_mtu support, supporting non-standard MTUs (within
hardware limits) to the 8139cp net driver.

23 years agoMerge AMD7xx PCI compliance quirk fix from 2.4.18.
Jeff Garzik [Wed, 27 Feb 2002 09:14:02 +0000 (04:14 -0500)]
Merge AMD7xx PCI compliance quirk fix from 2.4.18.

23 years agousb serial drivers:
Greg Kroah-Hartman [Wed, 27 Feb 2002 07:25:12 +0000 (23:25 -0800)]
usb serial drivers:
- removed all usage of port->sem as the usb serial core now does this.

23 years agousb visor driver:
Greg Kroah-Hartman [Wed, 27 Feb 2002 07:24:00 +0000 (23:24 -0800)]
usb visor driver:
- reworked urb handling, getting rid of lots of code now that we have
  proper urb reference counting.
- removed port locks as the usb-serial core now does this.
- added support for the Palm m515 thanks to SilaS

23 years agousb serial core:
Greg Kroah-Hartman [Wed, 27 Feb 2002 07:21:26 +0000 (23:21 -0800)]
usb serial core:
- cleaned up some whitespace issues
- changed MOD_INC logic for the generic driver
- the port->sem lock is now taken by the serial core, not the individual
  usb-serial drivers.  This is to reduce races.

23 years agousb ipaq driver:
Ganesh Varadarajan [Wed, 27 Feb 2002 07:19:42 +0000 (23:19 -0800)]
usb ipaq driver:
   Added support for the HP Jornada.

23 years agouhci.c, speed improvements
Johannes Erdfelt [Wed, 27 Feb 2002 07:16:43 +0000 (23:16 -0800)]
uhci.c, speed improvements

Basically, the patch turns switching off FSBR into a lazy operation with
the assumption there will be another transfer shortly afterwards. This
works wonders for usb-storage for instance.

23 years agoThis is another USB API cleanup patch. It's against 2.5.5:
David Brownell [Wed, 27 Feb 2002 07:15:11 +0000 (23:15 -0800)]
This is another USB API cleanup patch.  It's against 2.5.5:

    - Moves 8 functions from usb.[hc] to hcd.[hc]
    - Also moves some data structures and types
    - Now usbdevfs and "old" HCDs #include "hcd.h"
    - Minor tweaks to the "hcd" layer (one less FIXME)
    - Minor kernel doc and comment cleanups

Basically this continues moving the HCD-only functionality
out of the way of normal USB device drivers.  Converging
"usb_bus" and "usb_hcd" (later!) will be a bit easier too.

I did basic sanity tests, there's little to break ... :)

There are still a few functions in usb.c that aren't for
general driver use.  They're mostly for enumeration,
in areas where the hub driver and HCD root hubs
need to do various kinds of magic.  It wasn't clear
how to decouple those, they can certainly wait.

23 years agoPATCH: audio driver urb allocation
David Brownell [Wed, 27 Feb 2002 07:13:10 +0000 (23:13 -0800)]
PATCH: audio driver urb allocation

This fixes a bug in the audio driver which came from an
incorrect conversion from static to dynamic URB allocation.
It's against 2.5.5

I noticed this while trying to see exactly how ISO transfers
get used.  The bug is that while originally the driver statically
allocated several structures {urb + N * iso packet descriptors},
the update forgot to allocate the ISO descriptors.

Likely not many folk noticed this on 32 bit machines, where
sizeof urb == 92, because kmalloc rounds that up to 128,
adding 36 bytes of external padding.  The ISO descriptors
took up 32 bytes of that, which "just happened" to already
have been allocated but unused.

23 years agomisc hcd cleanup
David Brownell [Wed, 27 Feb 2002 07:11:46 +0000 (23:11 -0800)]
misc hcd cleanup

This is minor cleanup; pulls #includes out of files
that aren't intended to compile by themselves.

ehci bandwidth recording

Here's a minor update to the EHCI interrupt scheduler,
recording the bandwidth used by an URB for usbfs.

23 years ago[PATCH] hid-core and hotplug
David Brownell [Wed, 27 Feb 2002 07:09:12 +0000 (23:09 -0800)]
[PATCH] hid-core and hotplug

This restores a line someone deleted, which
affects hotplugging.  Basically this restores
correct/previous behavior:  the HID driver only
matches HID devices, not every device that
ever connects.

23 years agoUSB auerswald driver:
Greg Kroah-Hartman [Wed, 27 Feb 2002 07:02:44 +0000 (23:02 -0800)]
USB auerswald driver:
- changed the minor number the auerswald driver was using, as it was found
  out that this number was already in use by another USB driver!

23 years agoAdded new IBM PCI Hotplug controller driver.
Greg Kroah-Hartman [Wed, 27 Feb 2002 06:15:44 +0000 (22:15 -0800)]
Added new IBM PCI Hotplug controller driver.

Written by Irene Zubarev, Tong Yu, Jyoti Shah, Chuck Cole, and me.

23 years agoCompaq PCI Hotplug controller driver:
Greg Kroah-Hartman [Wed, 27 Feb 2002 06:13:28 +0000 (22:13 -0800)]
Compaq PCI Hotplug controller driver:
- changed proc entry creation to use the proper parent directory variable.

23 years agoPCI Hotplug Core cleanups:
Greg Kroah-Hartman [Wed, 27 Feb 2002 06:12:18 +0000 (22:12 -0800)]
PCI Hotplug Core cleanups:
- pcihpfs cleanup, removing unneeded file operations.
- Added facility to have the files change their timestamps if the data
  within the file changes.

23 years agoMerge bk://bk.arm.linux.org.uk
Linus Torvalds [Tue, 26 Feb 2002 09:01:21 +0000 (01:01 -0800)]
Merge bk://bk.arm.linux.org.uk
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years ago[PATCH] 2.5 scsi changes : qlogicfas.c fixed (resend)
Brett Pemberton [Tue, 26 Feb 2002 08:59:04 +0000 (00:59 -0800)]
[PATCH] 2.5 scsi changes : qlogicfas.c fixed (resend)

This patch allows my qlogic pcmcia scsi card to compile again, as broken
by the recent scsi layer changes.

Despite davem's apparent suggestion that it'd be better to rewrite the
driver, i'd rather not _just_ right now :)

/ Brett Pemberton

23 years ago[PATCH] MTD update.
Dave Jones [Tue, 26 Feb 2002 08:57:50 +0000 (00:57 -0800)]
[PATCH] MTD update.

Numerous bugfixes brought forward from 2.4. I added some quick bio fixes
to mtdblock.c, which seemed to work for me whilst testing JFFS2 changes.

23 years ago[PATCH] updates.
Dave Jones [Tue, 26 Feb 2002 08:57:44 +0000 (00:57 -0800)]
[PATCH] updates.

Forward ports from 2.4, Various janitor bits, and some fixes by me to
make the thing work again in 2.5.  I munged the MTDRAM driver to work
also (seperate patch to follow), and it seems to work.

David Woodhouse gave this the once over, and approved the changes.
Complete changelog below:

o   Don't create two slabcaches with the same name.
o   Don't corrupt eraseblock lists on mount
o   Don't mark nodes obsolete during mount
o   __attribute__((packed)) on the node definitions.
o   Fix up() without down() in jffs2_readdir().
o   Fix duplicate version number usage - s/highest_version++/++highest_version/
o   Fix (i.e. implement) mtime/ctime on directories.
    maybe too busy with the bk stuff
o   Don't allow hardlinks of directories.
o   s/(mode&S_IFMT)==S_IFLNK/S_ISLNK(mode)/ et al to keep Al happy.
o   Fix for garbage-collection of holes, where we used to write nodes out
    with csize/dsize swapped. Workarounds for existing such brokenness.
o   Improve wear levelling by rotating node lists on mount, to avoid starting
     at one end of the flash every time.
o   Remember to get internal inode-semaphore on symlink operations.

23 years agoupdate version
Linus Torvalds [Tue, 26 Feb 2002 06:26:10 +0000 (22:26 -0800)]
update version

23 years ago[PATCH] PATCH 16/16: NFSD: TCP: enable NFS over TCP via config option
Neil Brown [Tue, 26 Feb 2002 06:24:06 +0000 (22:24 -0800)]
[PATCH] PATCH 16/16: NFSD: TCP: enable NFS over TCP via config option

Enable NFS over TCP via config option

23 years ago[PATCH] PATCH 15/16: NFSD: TCP: Limit number of active tcp connections to an RPC...
Neil Brown [Tue, 26 Feb 2002 06:24:00 +0000 (22:24 -0800)]
[PATCH] PATCH 15/16: NFSD: TCP: Limit number of active tcp connections to an RPC service

Limit number of active tcp connections to an RPC service

If a connection comes in and that results in number of
connections being more than 5 times the number of threads,
then we close a connection.

We randomly drop with the oldest or the newest connection.

Thus if we are flooded with connection requests, some will
get in and hopefully stay long enough to service at least one request.

23 years ago[PATCH] PATCH 14/16: NFSD: TCP: Declare max response sizes for NFS and NLM
Neil Brown [Tue, 26 Feb 2002 06:23:55 +0000 (22:23 -0800)]
[PATCH] PATCH 14/16: NFSD: TCP: Declare max response sizes for NFS and NLM

Declare response sizes for nfs/lockd requests

This allows sndbuf reservation to be more accurate.

For lockd we just say "0" for now, meaning assume the max.
This could be improved, but it isn't critical.

23 years ago[PATCH] PATCH 13/16: NFSD: TCP: Reserve space on sndbuf so we never block when writing
Neil Brown [Tue, 26 Feb 2002 06:23:49 +0000 (22:23 -0800)]
[PATCH] PATCH 13/16: NFSD: TCP: Reserve space on sndbuf so we never block when writing

Make sure there is alway adequate sndbuf space for replies.

We keep track of how much space might be needed for replies
and never dequeue a request unless there is adequate space
for a maximal reply.  We assume each request will generate a maximal
sized reply until the request is partly decoded.
Each RPC program/procedure can specify the maximum size
of a reply to the precedure (though they don't yet).

The wspace callback is used to enqueue sockets that may be waiting
for sndbuf space to become available.

As there should always be enough buffer space to the full
reply, the only reason that sock_sendmsg could block is due
to a kmalloc delay.  As this is likely to be fairly quick (and if
it isn't the server is clagged anyway) we remove the MSG_DONTWAIT
flag, but set a 30 second timeout on waiting.  If the wait
ever times out, we close the connection.  If it doesn't we can
be sure that we did a complete write.

When a request completes, we make sure that the space
used for the reply does not exceed the space reserved.  This
is an internal consistancy check.

This patchs sets the sndbuf and rcvbuf sizes for all sockets
used for rpc service.  This size if dependant on the servers bufsize (S) and
partially on the number of threads (N).

For UDP
    sndbuf == 5*S
    rcvbuf == (N+2)*S
for TCP
    sndbuf == N*S
    rcvbuf == 3*S

see code for rationale (in comments).

23 years ago[PATCH] PATCH 12/16: NFSD: TCP: Close idle TCP connections
Neil Brown [Tue, 26 Feb 2002 06:23:44 +0000 (22:23 -0800)]
[PATCH] PATCH 12/16: NFSD: TCP: Close idle TCP connections

Close idle rpc/tcp sockets

We split the list of sv_allsocks into two, one
of permanent sockets (udp, tcp listener) and one
of temporary sockets (tcp data).

Whenever we complete a successful receive on a temp socket,
it gets pushed to the end of the list.

Whenever a thread wants to do something, it first checks if
the oldest temp socket has not has a receive for 6 mintutes
(should possibly be configurable).  It so, we simulate
a close.

Finally we make sure that threads wake up every few minutes
so that if the server is completely idle, all temp
sockets will get closed.

23 years ago[PATCH] PATCH 11/16: NFSD: TCP: close bad connections
Neil Brown [Tue, 26 Feb 2002 06:23:37 +0000 (22:23 -0800)]
[PATCH] PATCH 11/16: NFSD: TCP: close bad connections

Detect and close tcp connections that we cannot work with.

If an rpc fragment that arrives on a tcp connection
is non-terminal or too large for our buffer, then we
have to close the connection.
Also, if a write fails on a tcp connection, we close
the connection.

23 years ago[PATCH] PATCH 10/16: NFSD: TCP: rationalise locking in RPC server routines
Neil Brown [Tue, 26 Feb 2002 06:23:32 +0000 (22:23 -0800)]
[PATCH] PATCH 10/16: NFSD: TCP: rationalise locking in RPC server routines

Tidy up SMP locking for svc_sock

sk_lock is not necessary and is now removed.
The only things that were happening under sk_lock but
not the more global sv_lock were testing and setting
some of the flags: sk_busy, sk_conn, sk_data etc.

These have been changed to bits in a flags word which are atomically
set and tested.

Also, by establishing some simple rules about that must
be done after setting these flags, the locking is not needed.

With this patch sk_conn and sk_data are now flags, not counts (sk_data
was already a flag for udp).  They are set if there might be
a connection or data, and only clear when we are sure there aren't
(or when we are about to check if there is).

svc_sock_accepted becomes identical to svc_sock_recieved and
so is discarded in favour of the latter.

sk_rqstp was never used and is now gone.

23 years ago[PATCH] PATCH 9/16: NFSD: RPC init tidyup
Neil Brown [Tue, 26 Feb 2002 06:23:27 +0000 (22:23 -0800)]
[PATCH] PATCH 9/16: NFSD: RPC init tidyup

Get sunrpc to use module_init properly

rpc_register_sysctl was called in several places.
Now only once.

23 years ago[PATCH] PATCH 8/16: NFSD: RPC lists tidyup
Neil Brown [Tue, 26 Feb 2002 06:23:22 +0000 (22:23 -0800)]
[PATCH] PATCH 8/16: NFSD: RPC lists tidyup

Change sunrpc to use more list.h lists

The sunrpc client code uses home-grown doubly linked
lists to group
   - idle server threads
   - pending server sockets
   - waiting rpc tasks
   - all rpc tasks.

This patch converts all of these lists to <linux/list.h> lists and
also makes the list of all server sockets for a particular server into
a list.h list instead of a single-link list.

Possibly the least obvious change is replacing RPC_INIT_WAITQ
with RPC_WAITQ and INIT_RPC_WAITQ.  These follow the model of
LIST_HEAD and INIT_LIST_HEAD defined in list.h and are needed
to initialise the list_head in the rpc_waitq properly.

23 years ago[PATCH] PATCH 7/16: NFSD: BKL removal: Discard high level BKL locking
Neil Brown [Tue, 26 Feb 2002 06:23:16 +0000 (22:23 -0800)]
[PATCH] PATCH 7/16: NFSD: BKL removal: Discard high level BKL locking

Remove last unneeded bit of BKL from knfsd

Remove BKL from nfsservctl systemcall.  All
components have their own locking.
Also remove it from the body of nfsd threads.  Keep
it for final thread destruction though.

23 years ago[PATCH] PATCH 6/16: BKL removal: Lock read-ahead cache
Neil Brown [Tue, 26 Feb 2002 06:23:11 +0000 (22:23 -0800)]
[PATCH] PATCH 6/16: BKL removal: Lock read-ahead cache

Protect read-ahead cache with SMP safe locking

As another step to removing the BKL from nfsd, this patch
protects the read-ahead cache with a spinlock.

23 years ago[PATCH] PATCH 5/16: NFSD: BKL removal: add BKL where needed in filehandle lookup
Neil Brown [Tue, 26 Feb 2002 06:23:05 +0000 (22:23 -0800)]
[PATCH] PATCH 5/16: NFSD: BKL removal: add BKL where needed in filehandle lookup

Protect dentry attachement from BKL

The process of attaching a dentry into the dcache
still needs the BKL I think.
When all the other BKL changes in the VFS settle down, I
will revisit this.  But as it is not a very frequent
operation, the BKL wont hurt.

Also add a down/up of i_sem when doing a lookup(".."),
as it is down for all other lookups.

23 years ago[PATCH] PATCH 4/16: NFSD: BKL Removal: Locking in nfssvc.c
Neil Brown [Tue, 26 Feb 2002 06:23:00 +0000 (22:23 -0800)]
[PATCH] PATCH 4/16: NFSD: BKL Removal: Locking in nfssvc.c

Tidy up locking in nfssvc - preparing for BKL removal

- nfsd_busy becomes atomic_t
- nfsd_call_lock created to protect timing of calls and stats gathering
- lock_kernel around thread creation and destruction.  It is
  sufficiently uncommon that it doesn't really need a lock of it's
  own.  It is currently under the BKL because all of the nfsservctl
  syscall is, but that is about to be removed so we preserve BKL here.

23 years ago[PATCH] PATCH 3/16: NFSD: BKL Removal: Reply Cache lock
Neil Brown [Tue, 26 Feb 2002 06:22:55 +0000 (22:22 -0800)]
[PATCH] PATCH 3/16: NFSD: BKL Removal: Reply Cache lock

Lock reply cache with SMP safety.

As a second step to removing the BKL from nfsd, this patch
protects the reply cache with a spinlock.

This patches also removed cache_initialised as it
is not longer needed (due to earlier patch).

23 years ago[PATCH] PATCH 2/16: NFSD: BKL Removal: Lock export table
Neil Brown [Tue, 26 Feb 2002 06:22:50 +0000 (22:22 -0800)]
[PATCH] PATCH 2/16: NFSD: BKL Removal: Lock export table

Change export table lock to (SMP safe) rwsemaphore

As a first step to removing the BKL from nfsd, this patch
changes the lock used for the export table to be a rwsem semaphore.
Previously it had the same functionality but depended on the BKL
for correctness.

As there is no "down_write_interruptible" this patch removes the
posibility of interrupting the write_lock request, but this should
never be needed anyway.

23 years ago[PATCH] PATCH 1/16: NFSD: Compilation Fix
Neil Brown [Tue, 26 Feb 2002 06:22:45 +0000 (22:22 -0800)]
[PATCH] PATCH 1/16: NFSD:  Compilation Fix

Fix include file so syscall compiles when NFSD not configured

23 years agoMerge penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/joystick
Linus Torvalds [Tue, 26 Feb 2002 05:27:08 +0000 (21:27 -0800)]
Merge penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/joystick
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years ago[PATCH] Input patch - joystick drivers update
Vojtech Pavlik [Tue, 26 Feb 2002 05:26:19 +0000 (21:26 -0800)]
[PATCH] Input patch - joystick drivers update

As a step in the process of updating all the linux input drivers to the
most recent version available, this patch updates all the joystick
drivers that are in the kernel tree.

Changes are mainly the input hotplug/proc support in every of the
joystick drivers, and fixing trivial bugs here and there. I can supply a
more detailed description upon request.

23 years ago[PATCH] Linux Secondary Slave IDE timings
Daniel Quinlan [Tue, 26 Feb 2002 05:22:33 +0000 (21:22 -0800)]
[PATCH] Linux Secondary Slave IDE timings

This fix is from Dave Bogdanoff <bog@transmeta.com>.

Linux incorrectly sets up IDE timings for secondary slave drives on PC
systems that use Intel PIIX Southbridges.

This will correctly shift IDE slave PCI timings for register 44h so
that:

 - secondary slave (drive1) uses bits 4-7
 - primary slave   (drive1) uses bits 0-3

(The addition of the parentheses is needed so the shift will take
place after the bitwise-or.  Without the parentheses, the shift will
incorrectly always take place before the bitwise-or.)

23 years ago[PATCH] x86_64 irqstat change
Andi Kleen [Tue, 26 Feb 2002 05:19:05 +0000 (21:19 -0800)]
[PATCH] x86_64 irqstat change

x86_64 does not have an irq_stat array. It puts the interrupt information
into its per CPU area instead, allowing more efficient access to it.
This patch allows the architecture to overwrite
the __IRQ_STAT access macro in linux/irq_cpustat.h.

It is required to make the x86_64 port compile.

-Andi

23 years ago[PATCH] x86-64 update for 2.5.5
Andi Kleen [Tue, 26 Feb 2002 05:16:06 +0000 (21:16 -0800)]
[PATCH] x86-64 update for 2.5.5

This patch makes x86-64 compile in 2.5.5 and syncs it with changes in the i386
port. It also fixes some bugs that were discovered in recent testing:
- enhance 32bit emulation and fix bugs.
- fix security hole in vmalloc handling
- Do not use lockless gettimeofday for now because it is buggy.
The patch only changes x86_64 specific files.

-Andi

23 years ago[PATCH] ALSA patch for 2.5.5 v2.5.6-pre1
Jaroslav Kysela [Tue, 26 Feb 2002 03:47:57 +0000 (19:47 -0800)]
[PATCH] ALSA patch for 2.5.5

- added support for KERN_ prefixes for snd_printk
- verbose printk (file:number) is now optional
- fixed devfs OSS device names in soundcore
- added XRUN ioctl for PCM API
- improved support for Sound Blaster Audigy
- fixed AC3 forwarding for Sound Blaster Live!
- more fixes in dependencies in Makefiles
- llseek locking fixes for sound/core/info.c
- fixed ISA DMA allocation
- added wait() callback for ac97_codec.c and VIA686 driver
- CMIPCI driver updates
- added AMD-8111 support for Intel8x0

23 years ago[PATCH] Patch - sharing RTC timer between kernel and user space (2nd)
Jaroslav Kysela [Tue, 26 Feb 2002 03:43:26 +0000 (19:43 -0800)]
[PATCH] Patch - sharing RTC timer between kernel and user space (2nd)

This patch to allow using of RTC timer inside the kernel space.  We can
use the RTC timer as timing source for ALSA sequencer. Patch by Takashi.

The patch adds these three functions and one structure to rtc.h and
rtc.c:

typedef struct rtc_task {
       void (*func)(void *private_data);
       void *private_data;
} rtc_task_t;

int rtc_register(rtc_task_t *task);
int rtc_unregister(rtc_task_t *task);
int rtc_control(rtc_task_t *t, unsigned int cmd, unsigned long arg);

Jaroslav

23 years agoDon't be so verbose about normal lack of modprobe
Linus Torvalds [Tue, 26 Feb 2002 03:43:09 +0000 (19:43 -0800)]
Don't be so verbose about normal lack of modprobe

23 years ago[PATCH] later DMI scan.
Dave Jones [Tue, 26 Feb 2002 03:36:01 +0000 (19:36 -0800)]
[PATCH] later DMI scan.

This moves the dmi scan to an earlier stage so that we can trap issues
such as the various laptops that don't like enabling APIC.
It's likely to be useful for trapping other similar early-boot problems.
Originally by Mikael Pettersson

23 years ago[PATCH] un'fix' NCR scsi driver.
Dave Jones [Tue, 26 Feb 2002 03:35:39 +0000 (19:35 -0800)]
[PATCH] un'fix' NCR scsi driver.

Linus,
 Current driver in your tree has been 'fixed' by someone without
understanding just how broken it was. Numerous fixes were done in 2.4
after the 2.5 split by Alan.

This patch reverts the damage the driver does in your tree, and brings
Alan's 2.4 bits over instead. Downside: It doesn't compile.
Upside: It doesn't pretend to work and corrupt data, and at least
is the right base for people to start fixing.

23 years ago[PATCH] Numerous address updates.
Dave Jones [Tue, 26 Feb 2002 03:35:28 +0000 (19:35 -0800)]
[PATCH] Numerous address updates.

Updated maintainers list from Ingo's last ping,
various changed email addresses in code headers.

23 years ago[PATCH] Support /dev/kmem access to vmalloc space (Marc Boucher)
Dave Jones [Tue, 26 Feb 2002 03:35:18 +0000 (19:35 -0800)]
[PATCH] Support /dev/kmem access to vmalloc space (Marc Boucher)

From 2.4.17

23 years ago[PATCH] kdev_t search/replaces.
Dave Jones [Tue, 26 Feb 2002 03:35:08 +0000 (19:35 -0800)]
[PATCH] kdev_t search/replaces.

First batch of various kdev_t related changes that have accumulated on
linux-kernel, and some that got sent directly to me after you dropped them.

Some of these need additional fixes to make them work, Some of them
even to make them compile, but this is one step forward..

I have bio-related fixes for some of these also, I'll push those seperately.

23 years agoEnable parport by default on x86
Linus Torvalds [Tue, 26 Feb 2002 03:26:59 +0000 (19:26 -0800)]
Enable parport by default on x86

23 years agoUpdate Shark machine type.
Russell King [Mon, 25 Feb 2002 23:24:10 +0000 (23:24 +0000)]
Update Shark machine type.

23 years agoAdd ARM support for Fortunet machine type.
Russell King [Mon, 25 Feb 2002 23:07:02 +0000 (23:07 +0000)]
Add ARM support for Fortunet machine type.

23 years agoAdd support for Stork machine type to ARM architecture.
Russell King [Mon, 25 Feb 2002 22:45:20 +0000 (22:45 +0000)]
Add support for Stork machine type to ARM architecture.

23 years agoAdd ARM BadgePAD4 machine support.
Russell King [Mon, 25 Feb 2002 22:36:13 +0000 (22:36 +0000)]
Add ARM BadgePAD4 machine support.

23 years agoEPXA10DB/Camelot ARM machine updates.
Russell King [Mon, 25 Feb 2002 22:25:38 +0000 (22:25 +0000)]
EPXA10DB/Camelot ARM machine updates.

23 years agoRationalise interrupt handling on ARM. With the old code, we had
Russell King [Mon, 25 Feb 2002 19:43:27 +0000 (19:43 +0000)]
Rationalise interrupt handling on ARM.  With the old code, we had
loops within loops within loops checking until each IRQ level didn't
have any more interrupts for us.  This caused both latency problems,
and locked out any chance of handling a second interrupt from down
the chain while one on that chain was already in progress.

The new structure splits out the machine specific IRQ handlers from
the Linux driver specific IRQ handlers, giving the machine specific
handlers much greater flexibility in handling the interrupt.  We
also suck the SA1100 IRQ edge selection function into the IRQ core.

23 years agoNumerous ARM build fixes, small updates and cleanups.
Russell King [Mon, 25 Feb 2002 17:22:37 +0000 (17:22 +0000)]
Numerous ARM build fixes, small updates and cleanups.

23 years agoARM preempt and scheduler fixups for 2.5.5
Russell King [Mon, 25 Feb 2002 15:41:20 +0000 (15:41 +0000)]
ARM preempt and scheduler fixups for 2.5.5

23 years agoFix nwfpe so GDB can debug user space floating point again.
Russell King [Mon, 25 Feb 2002 11:07:23 +0000 (11:07 +0000)]
Fix nwfpe so GDB can debug user space floating point again.
Patch 960/1 (Peter Teichmann):
   NWFPE patch to be more compliant to IEEE-754

1. The RND/URD instruction was handled as int_to_float(float_to_int
   (number)) which is wrong because it only works for floating point
   numbers that fit in an integer.

2. The FLT instruction was setting the rounding precision for
   extended precision calculations, which is not necessary
   (probably a historic relict) but has undesirable side effects
   on all extended precision calculations.

23 years agoClean up ARM TLB handling code; previously there was a lot of code
Russell King [Mon, 25 Feb 2002 10:24:56 +0000 (10:24 +0000)]
Clean up ARM TLB handling code; previously there was a lot of code
replication across each processor type, each handling alignment of
addresses slightly differently.  We unify this mess, and allow for
greater flexibility in the per-CPU architecture TLB handlers.

We also start to remove the ARM cache.h -> cpu_*.h -> proc-fns.h mess
making the code cleaner and easier to follow.

Documentation describing the expected behaviour of each TLB function
for the 32-bit ARM processors is also included.

23 years agoMerge master.kernel.org:/home/mingo/BK/linux-2.5/
Linus Torvalds [Mon, 25 Feb 2002 06:12:58 +0000 (22:12 -0800)]
Merge master.kernel.org:/home/mingo/BK/linux-2.5/
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux

23 years agomigration threads should sleep interruptible.
Ingo Molnar [Tue, 26 Feb 2002 00:03:19 +0000 (01:03 +0100)]
migration threads should sleep interruptible.

23 years ago[PATCH] final ->d_parent fixes
Alexander Viro [Mon, 25 Feb 2002 06:09:16 +0000 (22:09 -0800)]
[PATCH] final ->d_parent fixes

OK, here's ->d_parent stuff unrelated to printk.  Looking into printk
right now...