]> git.neil.brown.name Git - history.git/log
history.git
23 years agoMerge http://kernel-acme.bkbits.net:8080/oss-copy_tofrom_user-2.5
Linus Torvalds [Sat, 18 May 2002 16:20:50 +0000 (09:20 -0700)]
Merge http://kernel-acme.bkbits.net:8080/oss-copy_tofrom_user-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge kernel-acme@kernel-acme.bkbits.net:oss-copy_tofrom_user-2.5
Arnaldo Carvalho de Melo [Sun, 19 May 2002 00:04:57 +0000 (21:04 -0300)]
Merge kernel-acme@kernel-acme.bkbits.net:oss-copy_tofrom_user-2.5
into conectiva.com.br:/home/acme/bk/oss-copy_tofrom_user-2.5

23 years agodrivers/sound/*.c
Arnaldo Carvalho de Melo [Sat, 18 May 2002 23:58:25 +0000 (20:58 -0300)]
drivers/sound/*.c

- fix copy_{to,from}_user error handling (thanks to Rusty for pointing this out)

23 years agofs/intermezzo/ext_attr.c
Arnaldo Carvalho de Melo [Sat, 18 May 2002 23:02:04 +0000 (20:02 -0300)]
fs/intermezzo/ext_attr.c
fs/intermezzo/kml.c
fs/intermezzo/psdev.c

- fix copy_{to,from}_user error handling (thans to Rusty for pointing this out)

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.isdn
Linus Torvalds [Sat, 18 May 2002 15:37:40 +0000 (08:37 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.isdn
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoManual merge
Linus Torvalds [Sat, 18 May 2002 15:37:02 +0000 (08:37 -0700)]
Manual merge

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.make
Linus Torvalds [Sat, 18 May 2002 15:30:07 +0000 (08:30 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.make
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.make-next
Linus Torvalds [Sat, 18 May 2002 15:28:26 +0000 (08:28 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.make-next
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge http://kernel-acme.bkbits.net:8080/intermezzo-copy_tofrom_user-2.5
Linus Torvalds [Sat, 18 May 2002 15:26:30 +0000 (08:26 -0700)]
Merge http://kernel-acme.bkbits.net:8080/intermezzo-copy_tofrom_user-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
Kai Germaschewski [Sat, 18 May 2002 09:00:21 +0000 (04:00 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-as

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
Kai Germaschewski [Sat, 18 May 2002 06:50:05 +0000 (01:50 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.isdn

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
Kai Germaschewski [Sat, 18 May 2002 06:29:00 +0000 (01:29 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make.next

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
Kai Germaschewski [Sat, 18 May 2002 06:27:44 +0000 (01:27 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make

23 years ago[PATCH] kNFSd cleanup of nfsd_open
Christoph Hellwig [Sat, 18 May 2002 05:03:58 +0000 (22:03 -0700)]
[PATCH] kNFSd cleanup of nfsd_open

This patch makes nfsd_open use init_private_file to initilize
the file pointer the caller had allocated on stack.  In addition
a number of small cleanups:

 - format comments to be readable on 80char ANSI terminal
 - don't fop_get (and fop_put in nfsd_close), out file already
   is a reference to the inode so they can't go away.
 - don't decrement f_count on failure - it won't be checked anyway
 - don't check for filp->f_op n nfsd_close, it can't be NULL

23 years ago[PATCH] Small cleanup of nfsd export checks
Christoph Hellwig [Sat, 18 May 2002 05:03:45 +0000 (22:03 -0700)]
[PATCH] Small cleanup of nfsd export checks

Separate checks for !FS_REQUIRES_DEV and missing fsid option
and missing export operations, second check for missing export
operations and a small cleanup as side effect.

23 years ago[PATCH] Initial md/raid5 support for 2.5 (with bio)
Neil Brown [Sat, 18 May 2002 05:03:33 +0000 (22:03 -0700)]
[PATCH] Initial md/raid5 support for 2.5 (with bio)

With this patch raid5 works.  There is still some more
work to though.

- uses bio instead of buffer_head
- stripe cache is now a fixed size.
   If read requests are smaller, we read the whole block anyway
   If write reqeusts are smaller, we pre-read.
- stripe_head is now variable sized with an array of structures at
  the end.  We allocate extra space depending on how many devices
  are in the array.
  stripe_head has it's very own slab cache.
- store and use bdev for each device in array

by-passing the cache for reads is currently disabled.  I need to
think through the implications (and implementation) of allowing
large bion that are larger than the stripe cache to go directly
to the device (if it isn't failed of-course).

23 years ago[PATCH] Tidy up raid5 code
Neil Brown [Sat, 18 May 2002 05:03:19 +0000 (22:03 -0700)]
[PATCH] Tidy up raid5 code

- remove md_ prefix from some calls that used to be
  defined in md_compatability.h

- remove "raid5_" prefix from some static functions,
  in line with recent changes to raid1.c

?? should cpu_has_mmx be moved to in processor.h ?

23 years ago[PATCH] Change MD Superblock IO to go straight to submit_bio
Neil Brown [Sat, 18 May 2002 05:03:08 +0000 (22:03 -0700)]
[PATCH] Change MD Superblock IO to go straight to submit_bio

The current code hits the page cache for the block device
which requires memory allocation which can sometimes cause
a deadlock (if it blocks the raid5d thread).

This code takes the page that holds the superblock, and
passes it to submit_bh in a suitable bio wrapper.

23 years ago[PATCH] Increase snd buffer size for UDP
Neil Brown [Sat, 18 May 2002 05:02:56 +0000 (22:02 -0700)]
[PATCH] Increase snd buffer size for UDP

I under-allocated the space that RPC needs for transmit on a UDP
socket.   We need lots of space to be allowed (though we may not use
much) so that a lack of un-commited transmit space will not cause new
requests to be blocked.

23 years ago[PATCH] reiserfs bitops warnings
Chris Mason [Sat, 18 May 2002 05:00:15 +0000 (22:00 -0700)]
[PATCH] reiserfs bitops warnings

This fixes reiserfs compile warnings for a few bitops calls.

23 years ago[PATCH] reiserfs iput deadlock fix
Chris Mason [Sat, 18 May 2002 05:00:03 +0000 (22:00 -0700)]
[PATCH] reiserfs iput deadlock fix

This patch5 changes reiserfs_new_inode to end the transaction on errors
(like -ENOSPC), so that it can call iput without deadlocking against the
journal.

23 years ago[PATCH] cleanup read/write
Christoph Hellwig [Sat, 18 May 2002 04:58:06 +0000 (21:58 -0700)]
[PATCH] cleanup read/write

Currently sys_read/sys_pread and sys_write/sys_pwrite basically contain
lots of duplication of the same checks/code.

This moves all that into vfs_read/vfs_write helpers that have the same
prototypes as the read/write file operations.  In addition I have
choosen to export these interfaces to module so people doing inkernel
file reading/writing can use these instead of duplicating the checks
(which is very likely to be done wrong).

23 years ago[PATCH] Thread group exit problem reappeared
Dave McCracken [Sat, 18 May 2002 04:36:41 +0000 (21:36 -0700)]
[PATCH] Thread group exit problem reappeared

A long time ago there was thread group code that at exit time tried to
reparent a task to another task in the thread group.  I discovered a major
race condition in this code, and submitted a patch that removed it.  This
patch was accepted in, I think, 2.4.12.  The code reappeared in 2.4.18 and
sometime in the 2.5 tree before 2.5.15, breaking applications that use
thread groups.

As part of chasing this down, I figured out a way to remove the race
condition while still preserving this behavior.  I've attached a patch
against 2.5.15 that fixes it.

23 years agoMerge bk://bkbits.ras.ucalgary.ca/rgooch-2.5 v2.5.16
Linus Torvalds [Fri, 17 May 2002 17:03:34 +0000 (10:03 -0700)]
Merge bk://bkbits.ras.ucalgary.ca/rgooch-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] fix scsi oops on failed sg table allocation
Jens Axboe [Fri, 17 May 2002 17:02:37 +0000 (10:02 -0700)]
[PATCH] fix scsi oops on failed sg table allocation

This patch fixes the deliberate BUG_ON() on failed sgtable allocations.
I left that in because I was too lazy to fix it at the time...

Basically make scsi_init_io() return 0 on failure (like before) but this
time allow us to recover. scsi_init_io() will end_request on a fatal
condition. So now just mark the device/host as starved if needed, and
leave the request at the front of the queue for next service.

23 years ago[PATCH] Fixed the handling of file name containing 0x05 on vfat
Hirofumi Ogawa [Fri, 17 May 2002 17:01:24 +0000 (10:01 -0700)]
[PATCH] Fixed the handling of file name containing 0x05 on vfat

This patch fixes the behavior of vfatfs when the file name contains 0x05.

23 years ago[PATCH] Micro Memory battery backed RAM card driver
Neil Brown [Fri, 17 May 2002 16:58:13 +0000 (09:58 -0700)]
[PATCH] Micro Memory battery backed RAM card driver

New driver for Micro Memory NVRAM module

This driver handles up to 16 PCI based NVRAM cards
from MicroMemory.
Each card appears like a block device, and can be partitioned
using any standard partitioning tool.  Upto 15 partitions are
supported.

This driver needs its own major device number and so allocates
one using register_blkdev.

23 years agoMerge http://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Fri, 17 May 2002 16:53:30 +0000 (09:53 -0700)]
Merge http://gkernel.bkbits.net/net-drivers-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge http://gkernel.bkbits.net/irda-2.5
Linus Torvalds [Fri, 17 May 2002 16:52:53 +0000 (09:52 -0700)]
Merge http://gkernel.bkbits.net/irda-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge http://gkernel.bkbits.net/misc-2.5
Linus Torvalds [Fri, 17 May 2002 16:52:22 +0000 (09:52 -0700)]
Merge http://gkernel.bkbits.net/misc-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[PATCH] 2.5.15 IDE 64
Martin Dalecki [Fri, 17 May 2002 16:49:53 +0000 (09:49 -0700)]
[PATCH] 2.5.15 IDE 64

Let's just get over with  this before queue handling will be targeted again...

- Implement suggestions by Russell King for improved portability and separation
   between PCI and non PCI host code.

- pdc202xxx updates from Thierry Vignaud.

- Tiny PIO fix from Tomita.

23 years ago[PATCH] 2.5.15 IDE 63
Martin Dalecki [Fri, 17 May 2002 16:48:40 +0000 (09:48 -0700)]
[PATCH] 2.5.15 IDE 63

- Propagate the queue handling changes to pmac as well.

- Move set_transfer to ide-taskfile.c this is the only place where it's used
   and it can be made static there. Same applies to ide_ata66_check().

- Move ide_auto_reduce_xfer to ide.c.

- Make ide_cmd() local to the only place where it's used. Rename it to
   drive_cmd(). Don't pass drive_cmd_intr() as parameter.

- Remove ide_next command completion type. Nobody is using it.

- Move ide_do_drive_cmd to ide-taskfile. It's used there and in sub-drivers.
   Not in ide.c. The usage inside the device type drivers is entirely bogus
   inconsistent and so on...

- Kill bogus IRQ masking code. The kernel is supposed to handle this properly.
   We should not try to work against possible bugs in the overall irq handling
   code. Wow this is increasing the systems overall responsibility by a
   significant margin.

- Remove disfunctional pdcadma code. It is only misleading to the user.

23 years ago[PATCH] 2.5.15 IDE 62a
Martin Dalecki [Fri, 17 May 2002 16:47:35 +0000 (09:47 -0700)]
[PATCH] 2.5.15 IDE 62a

- Streamline device detection reporting to always use ->slot_name.

- Apply 64 bit sector size fixes to the overall code.

- Push ->handler down to the struct ata_channel.

- Introduce channel group based locking instead of a single global lock for all
   operations. There are still some places where we have preserved the ide_lock.
   We can't lock for queues during device probe and we protect global data
   structures during device registration and unregistration in ide.c with it.

- Start replacement of serialized access to the registers of
   channels which share them with proper host chip driver specific locking.
   This affects the following host chip drivers:

   cmd640.c, rz1000, ... ?

   Seems some are setting the serialize flag just in case. So better let's do it
   gradually over time.

   Well, I still have to think whatever we really need to put channels sharing
   an IRQ line in the same locking group.

   From now on the sick concept of a hw group is gone now. We have full blown
   per channel request queues! Hopefully I will be able soon to get my hands on
   a dual Athlon machine to check how this all behaves on a multi SMP machine.

- Move the whole SUPPORT_VLB_SYNC stuff to the only place where it is used: the
   pdc4030 host chip driver.  Eliminate it from the global driver part.

- Eliminate pseudo portability macros from pdc4030. This is a host chip firmly
   based on VLB.

23 years ago[PATCH] 2.5.15 IDE 61
Martin Dalecki [Fri, 17 May 2002 16:46:39 +0000 (09:46 -0700)]
[PATCH] 2.5.15 IDE 61

- Fix typo in pdc202xx driver.

- Fix locking order in ioctl.

- Fix wrong time_after usage introduced in 60. Maybe the fact I always get is
   wrong is related to the fact that I'm using the mouse with the left hand!?

- Apply arch-clean-2 by Bartlomiej Zolnierkiewicz.

- Don't disable interrupts during ide_wait_stat(). I see no reason too.

- Push flags down from hwgroup to the ata_chaannel structure.

- Apply small fixes from Franz Sirl to make AEC6280 working properly again.

23 years ago[PATCH] clean up maximum priorities
Robert Love [Fri, 17 May 2002 16:42:53 +0000 (09:42 -0700)]
[PATCH] clean up maximum priorities

This patch further cleans up and separates the code in an effort to
allow setting (a) a larger maximum real-time priority than default and
(b) a maximum kernel RT priority that is separate than the maximum
priority exported to user-space.

23 years agoMerge bk://linuxusb.bkbits.net/linus-2.5
Linus Torvalds [Fri, 17 May 2002 16:37:36 +0000 (09:37 -0700)]
Merge bk://linuxusb.bkbits.net/linus-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoUpdate kernel version
Linus Torvalds [Fri, 17 May 2002 16:36:54 +0000 (09:36 -0700)]
Update kernel version

23 years agoCleanup munmap a lot. Fix Intel P4 TLB corruptions on SMP.
Linus Torvalds [Fri, 17 May 2002 16:34:29 +0000 (09:34 -0700)]
Cleanup munmap a lot. Fix Intel P4 TLB corruptions on SMP.

Special thanks to Intel for support and traces.

23 years agoISDN: AVM T1 ISA CAPI controller fix
Kai Germaschewski [Fri, 17 May 2002 15:23:54 +0000 (10:23 -0500)]
ISDN: AVM T1 ISA CAPI controller fix

Pass the jumpered cardnr as parameter.

23 years agoISDN: CAPI: Remove duplicate statistics
Kai Germaschewski [Fri, 17 May 2002 15:19:43 +0000 (10:19 -0500)]
ISDN: CAPI: Remove duplicate statistics

No need to maintain statistics twice.

23 years agoISDN: CAPI: Get rid of capi_signal mechanism
Kai Germaschewski [Fri, 17 May 2002 15:16:21 +0000 (10:16 -0500)]
ISDN: CAPI: Get rid of capi_signal mechanism

On arrival of a new message, kernelcapi used to call
capi20_appl::signal(), which, from the application, would call back
to capi20_get_message(). So we rather just push the message down
directly, saving this detour.

23 years agoISDN: CAPI use struct capi20_appl * in signal callback
Kai Germaschewski [Fri, 17 May 2002 15:04:23 +0000 (10:04 -0500)]
ISDN: CAPI use struct capi20_appl * in signal callback

Instead of passing an opaque handle, pass the actual struct capi20_appl,
which is now known to the applications. Applications can store
a pointer to the private data into struct capi20_appl::private.

23 years agoISDN: CAPI: Pass struct capi_appl * instead of index
Kai Germaschewski [Fri, 17 May 2002 14:56:53 +0000 (09:56 -0500)]
ISDN: CAPI: Pass struct capi_appl * instead of index

Now that we have the struct capi_appl *, let's pass this around
instead of just an index which would mean another useless lookup.

23 years agoISDN: Have the CAPI application alloc struct capi_appl
Kai Germaschewski [Fri, 17 May 2002 14:39:18 +0000 (09:39 -0500)]
ISDN: Have the CAPI application alloc struct capi_appl

Inside the kernel, we rather go the standard way than converting
to/from indices to the actual data structs all the time.

23 years agoISDN: CAPI: Remove capi_interface_user etc.
Kai Germaschewski [Fri, 17 May 2002 14:15:07 +0000 (09:15 -0500)]
ISDN: CAPI: Remove capi_interface_user etc.

It's not used anymore, registering/unregistering just happens
on a per-application basis.

23 years agoISDN: CAPI: Move the notification callback
Kai Germaschewski [Fri, 17 May 2002 14:10:53 +0000 (09:10 -0500)]
ISDN: CAPI: Move the notification callback

The callback to be notified of added/removed controllers is
logically per application.

This will be replaced by the standardized mechanism anyway, so the
temporary capi20_set_callback will fortunately vanish later.

23 years agoISDN: Export CAPI user interface directly
Kai Germaschewski [Fri, 17 May 2002 13:52:22 +0000 (08:52 -0500)]
ISDN: Export CAPI user interface directly

Why pass the callbacks via a struct when we can just call them directly?

23 years agoISDN: Remove remaining MOD_{INC,DEC}_USE_COUNT from CAPI drivers
Kai Germaschewski [Fri, 17 May 2002 13:48:06 +0000 (08:48 -0500)]
ISDN: Remove remaining MOD_{INC,DEC}_USE_COUNT from CAPI drivers

During module init, we're safe from getting unloaded, so there's no
need to fiddle with the use count.

23 years agoFix a typo in drivers/pcmcia/Makefile
Kai Germaschewski [Fri, 17 May 2002 09:06:37 +0000 (04:06 -0500)]
Fix a typo in drivers/pcmcia/Makefile

23 years ago[PATCH] USB - Host controller Config.in changes
Greg Kroah-Hartman [Fri, 17 May 2002 06:55:50 +0000 (23:55 -0700)]
[PATCH] USB - Host controller Config.in changes

- Commented out the usb-ohci driver.  This is part of the migration away from
  this driver, to the ohci-hcd driver.
- Prevented the two UHCI_HCD drivers from both being compiled into the kernel
  at the same time.

23 years ago[PATCH] USB - fix a compiler warning in the core code
Greg Kroah-Hartman [Fri, 17 May 2002 06:55:34 +0000 (23:55 -0700)]
[PATCH] USB - fix a compiler warning in the core code

This removes a compiler warning due to my previous patch.

23 years agoUSB Config.in and Makefile fixups
Greg Kroah-Hartman [Fri, 17 May 2002 02:58:38 +0000 (19:58 -0700)]
USB Config.in and Makefile fixups

fixed up the Config.in and Makefile merge due to there being 2 uhci-hcd drivers added at once.

23 years ago[PATCH] USB-UHCI-HCD
Georg Acher [Fri, 17 May 2002 02:48:54 +0000 (19:48 -0700)]
[PATCH] USB-UHCI-HCD

After maturing for more than a month, I decided that it's enough...
So here's the patch for the HCD-version of usb-uhci, I called it
usb-uhci-hcd. For me, the usual devices work (TM).

Since the internals haven't changed much, I don't expect much difference to
usb-uhci in functionality and performance.

There is one major improvement: I've added a (preliminary) watchdog, that
regularly checks whether UHCI interrupts are coming through. If they are
"missing", ie. the HC halted without saying so, the HC is "re-animated" by a
real and clean restart, which is (internally) equivalent to a module-reload.
This is especially for VIA-chips which get comatose quite easily by babble
or other incorrect transfers.

The side effect is, of course, disconnects for all connected devices, but
they re-appear after a few seconds and were dead before anyway. So keyboard
and mouse work again, which is IMO a _very_ useful thing :-)

Another point: The watchdog (currently with moderate 8 interrupts/s) detects
IRQ-problems, so the misleading "device doesn't accept new device"-message
is replaced by an immediate error.

More comments and the separation into multiple files (I've taken ohci-hcd as
an example) should make the code more concise...

A few things are still on the todo-list and will come later:
- A few watchdog modifications (fewer interrupts, better diagnostics)
- Support for module "tune"-parameters for breadth/depth search, debug etc.
- interval support for ISO
- More SMP-tests
- maybe changes for reference counting when it is clear what survives :-)

23 years agoMerge mandrakesoft.com:/home/jgarzik/vanilla/linus-2.5
Jeff Garzik [Thu, 16 May 2002 16:08:18 +0000 (12:08 -0400)]
Merge mandrakesoft.com:/home/jgarzik/vanilla/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/misc-2.5

23 years agoMerge atnf.csiro.au:/workaholix1/kernel/v2.5/linus
Richard Gooch [Thu, 16 May 2002 15:04:24 +0000 (15:04 +0000)]
Merge atnf.csiro.au:/workaholix1/kernel/v2.5/linus
into atnf.csiro.au:/workaholix1/kernel/v2.5/rgooch-2.5

23 years agoMerge mandrakesoft.com:/home/jgarzik/vanilla/linus-2.5
Jeff Garzik [Thu, 16 May 2002 14:40:40 +0000 (10:40 -0400)]
Merge mandrakesoft.com:/home/jgarzik/vanilla/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/net-drivers-2.5

23 years agoMerge mandrakesoft.com:/home/jgarzik/vanilla/linus-2.5
Jeff Garzik [Thu, 16 May 2002 14:39:48 +0000 (10:39 -0400)]
Merge mandrakesoft.com:/home/jgarzik/vanilla/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/irda-2.5

23 years agoFix phy id masking in 8139too net driver.
Jeff Garzik [Thu, 16 May 2002 11:54:37 +0000 (07:54 -0400)]
Fix phy id masking in 8139too net driver.
Noticed by Eric Bowles.

23 years agoUpdate MII generic phy driver to properly report link status.
Jeff Garzik [Thu, 16 May 2002 11:48:09 +0000 (07:48 -0400)]
Update MII generic phy driver to properly report link status.

23 years agoCosmetic cleanups, remove unused struct members from via-rhine net driver
Roger Luethi [Thu, 16 May 2002 11:26:26 +0000 (07:26 -0400)]
Cosmetic cleanups, remove unused struct members from via-rhine net driver

23 years agoChange to the USB core to retry failed devices on startup.
Greg Kroah-Hartman [Thu, 16 May 2002 08:40:19 +0000 (01:40 -0700)]
Change to the USB core to retry failed devices on startup.

Based on a patch from Georg Acher <georg@acher.org>

23 years ago[PATCH] 2.4.19-pre8 uhci.c incorrect bit operations
Johannes Erdfelt [Thu, 16 May 2002 04:50:50 +0000 (21:50 -0700)]
[PATCH] 2.4.19-pre8 uhci.c incorrect bit operations

Woops, I sent the wrong version. There was one extra line that was
required.

23 years ago[PATCH] 2.4.19-pre8 uhci.c incorrect bit operations
Johannes Erdfelt [Thu, 16 May 2002 04:50:34 +0000 (21:50 -0700)]
[PATCH] 2.4.19-pre8 uhci.c incorrect bit operations

This fixes up a couple of problems I came across while working on
uhci-hcd. There are a couple of places where shifts are used where they
shouldn't be and others where should be.

This cleans up a couple of cases and tidys it up.

The patch is relative to 2.4.19-pre8 and my other patches, but it's
alright to wait for 2.4.20. It should also be applied to 2.5.

23 years ago[PATCH] uhci-hcd for 2.5.15
Johannes Erdfelt [Thu, 16 May 2002 04:09:10 +0000 (21:09 -0700)]
[PATCH] uhci-hcd for 2.5.15

So I finally hunkered down and got uhci-hcd working. I was surprised how
easy it was to make the modifications for hcd.c.

This patch has received a moderate amount of testing so far. I've played
with various devices and haven't had any problems. I won't claim it's
bug free yet and I'll continue doing more testing.

The patch includes a small change to hcd.c to not call free_config if
the HCD doesn't implement it.

There are some other messages that get printed such as:

hcd.c: usb_hcd_pci_remove 00:10.0, count != 1

but it appears from the code that this is just a soft warning that all
of the references to the bus aren't freed yet. This isn't a bug.

Differences from usb-uhci/usb-uhci-hcd:
- Cleaner code. uhci-hcd is based off of uhci, so it maintains the same
  look and feel as well as readability.
- Faster. The tests I've run so far show that uhci-hcd is faster in
  every case than usb-uhci-hcd
- It does not have the watchdog type feature for VIA chipsets. It's
  something that is definately possible to implement, but I'd like to
  find out what Windows does first.

Differences from uhci:
- Modified to use the hcd.c framework. This removed a significant amount
  of code and nesessitated lots of little changes.
- Big endian support. I haven't been able to test it on a big endian
  machine yet, but atleast 90+% of the work should be done. Once I get
  my PowerPC working again, I'll test this and submit any appropriate
  patches. This was the biggest functional change between uhci.c.
- No more urb->next processing. Completely ripped out.
- urb->interval support for Isochronous pipes.
- A couple of bug fixes for some problems I noticed while working on the
  code. These will be submitted for uhci.c in a seperate email.

23 years agoFix up some more TLB shootdown issues.
Linus Torvalds [Wed, 15 May 2002 19:09:13 +0000 (12:09 -0700)]
Fix up some more TLB shootdown issues.

23 years agoThis improves on the page table TLB shootdown. Almost there.
Linus Torvalds [Wed, 15 May 2002 16:18:09 +0000 (09:18 -0700)]
This improves on the page table TLB shootdown. Almost there.

23 years agoFirst cut at proper TLB shootdown for page directory entries.
Linus Torvalds [Wed, 15 May 2002 10:13:39 +0000 (03:13 -0700)]
First cut at proper TLB shootdown for page directory entries.

23 years agoMinor cleanup of fs/devfs/base.c:scan_dir_for_removable().
Richard Gooch [Tue, 14 May 2002 16:30:07 +0000 (16:30 +0000)]
Minor cleanup of fs/devfs/base.c:scan_dir_for_removable().

23 years agoFix arch/alpha/boot AS rule
Kai Germaschewski [Mon, 13 May 2002 15:10:54 +0000 (10:10 -0500)]
Fix arch/alpha/boot AS rule

arch/alpha/boot does not include Rules.make, so it can't use
the assembler rule provided there ;(

23 years agox86_64: Use standard AS rule
Kai Germaschewski [Mon, 13 May 2002 15:00:44 +0000 (10:00 -0500)]
x86_64: Use standard AS rule

23 years agoMake AFLAGS_KERNEL use consistent with CFLAGS_KERNEL
Kai Germaschewski [Mon, 13 May 2002 14:57:09 +0000 (09:57 -0500)]
Make AFLAGS_KERNEL use consistent with CFLAGS_KERNEL

CFLAGS_KERNEL is automatically added to the command line for compiling
objects which will be linked into vmlinux. (As opposed to objects which
will be in modules, where MODFLAGS is added).

AFLAGS_KERNEL was not added automatically, now it is:

AFLAGS_KERNEL is now automatically added to the command line for assembling
objects which will be linked into vmlinux.

Note: this change is a no-op for all archs except IA64, since
[AC]FLAGS_KERNEL is not used there at all.

At the same time, remove two assembling rules from two arch/ia64
subdirectories which don't contain any assembler sources at all.

Also, add an @ in front of the ugly
make CFLAGS=".." AFLAGS=".." -C subdir
command, make will print its "Entering directory ..." line, so
we get that information anyway.

23 years agoIA64: Use standard AS rule
Kai Germaschewski [Mon, 13 May 2002 13:31:35 +0000 (08:31 -0500)]
IA64: Use standard AS rule

23 years agoUSB sddr55 minor patch to enable a MDSM-B reader
Greg Kroah-Hartman [Mon, 13 May 2002 08:51:10 +0000 (01:51 -0700)]
USB sddr55 minor patch to enable a MDSM-B reader

This was forgotten in the previous sddr55 patch import, and is needed
to support the MDSM-B reader devices.

Thanks to Andries.Brouwer@cwi.nl for the 2.4.x version of the patch.

23 years ago[PATCH] zlib_inflate return code fix. Again.
David Woodhouse [Mon, 13 May 2002 08:37:02 +0000 (01:37 -0700)]
[PATCH] zlib_inflate return code fix. Again.

This bug, introduced by the fix for ppp_deflate, makes zisofs unhappy
with certain input.

23 years ago[PATCH] USB device reference counting api cleanup changes
Greg Kroah-Hartman [Mon, 13 May 2002 07:52:23 +0000 (00:52 -0700)]
[PATCH] USB device reference counting api cleanup changes

This patch replaces the awkwardly named usb_inc_dev_use() and
usb_dec_dev_use() with usb_get_dev() and usb_put_dev() to match the
naming convention of the rest of the kernel's reference counted
structures.  It also does away with the special case of usb_free_dev(),
and has usb_put_dev() be the same thing (through a #define, just like
usb_free_urb() works.)

Now when the last person calls usb_put_dev() or usb_free_dev() the
structure is cleaned up.  This allows the different host controller
drivers to implement their logic differently if they want to (as they
do), and everyone can be happy and stop arguing about the "proper" way
to write their host controller drivers :)

23 years ago[PATCH] USB device reference counting fix for uhci.c and usb core
Johannes Erdfelt [Mon, 13 May 2002 07:48:22 +0000 (00:48 -0700)]
[PATCH] USB device reference counting fix for uhci.c and usb core

Earlier in the 2.5 development cycle a patch was applied that changed
the reference counting behaviour for USB devices.

There are a couple of problems with the change:
- It made the USB code more complicated as a whole with the introduction
  of an additional cleanup path for devices. Using the traditional method
  of reference counting, cleanup is handled implictly
- It reduces functionality by requiring a callback for all references to
  the device, but doesn't provide a method of providing callbacks for
  references. It relies on the hardcoded device driver ->disconnect and
  HCD ->deallocate method for callbacks

The traditional method of using reference counting supports as many
reference users as needed, without complicating it with mandatory
callbacks to cleanup references.

The change in 2.5 also only helps catch one subset of programming
problem in device drivers, the case where it decrements too many times.
That is of dubious debugging value.

So, this patch reverts the change and makes the reference counting
behave like it does in the rest of the kernel as well as how the USB
code does in 2.4.

This patch doesn't remove all of the superfluous code. Some drivers,
like usb-ohci, ohci-hcd and ehci-hcd have some code that is no longer
needed. I wanted to spend some more time with those drivers since the
changes weren't as trivial as uhci.c and usb-uhci.c.

I've tested with uhci and usb-ohci with no adverse effects.

23 years ago[PATCH] usb_submit_urb fix for broken usb devices
Greg Kroah-Hartman [Mon, 13 May 2002 07:48:05 +0000 (00:48 -0700)]
[PATCH] usb_submit_urb fix for broken usb devices

added check for wMaxPacketSize of 0, which is a messed up device, but
seems to be legal according to the USB spec.

Thanks to Johannes for figuring out the problem, and providing an
original version of this patch.

23 years ago[PATCH] usb-storage locking fixes
Manfred Spraul [Mon, 13 May 2002 07:25:19 +0000 (00:25 -0700)]
[PATCH] usb-storage locking fixes

I found several SMP and UP locking errors in usb-storage, attached is a
patch:

Changes:
* srb->result is a bitfield, several << 1 were missing.
* add scsi_lock calls around midlayer calls, release the lock before
  calling usb functions that might sleep.
* replace the queue semaphore with a queue spinlocks, queuecommand is
  called from bh context.

23 years ago[PATCH] Hotplug CPU prep
Rusty Russell [Mon, 13 May 2002 06:52:31 +0000 (23:52 -0700)]
[PATCH] Hotplug CPU prep

This changes do_fork() to return the task struct, rather than the PID.

Also changes CLONE_PID ("if my pid is 0, copy it") to CLONE_IDLETASK
("set child's pid to zero"), and disallows access to the flag from user
mode.

23 years agoFixed race when devfs lookup()/readdir() triggers partition rescanning.
Richard Gooch [Mon, 13 May 2002 05:25:16 +0000 (05:25 +0000)]
Fixed race when devfs lookup()/readdir() triggers partition rescanning.

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
Kai Germaschewski [Mon, 13 May 2002 04:46:47 +0000 (23:46 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make

23 years agoMerge atnf.csiro.au:/workaholix1/kernel/v2.5/linus
Richard Gooch [Mon, 13 May 2002 04:22:24 +0000 (04:22 +0000)]
Merge atnf.csiro.au:/workaholix1/kernel/v2.5/linus
into atnf.csiro.au:/workaholix1/kernel/v2.5/rgooch-2.5

23 years agoMerge atnf.csiro.au:/workaholix1/kernel/v2.5/linus
Richard Gooch [Sun, 12 May 2002 21:22:29 +0000 (21:22 +0000)]
Merge atnf.csiro.au:/workaholix1/kernel/v2.5/linus
into atnf.csiro.au:/workaholix1/kernel/v2.5/rgooch-2.5

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.make-as
Linus Torvalds [Sun, 12 May 2002 12:22:09 +0000 (05:22 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.make-as
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge linux-isdn@linux-isdn.bkbits.net:linux-2.5.make-as
Kai Germaschewski [Sun, 12 May 2002 15:50:12 +0000 (10:50 -0500)]
Merge linux-isdn@linux-isdn.bkbits.net:linux-2.5.make-as
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.make-as

23 years agoUse standard AS rule.
Kai Germaschewski [Sun, 12 May 2002 13:25:31 +0000 (08:25 -0500)]
Use standard AS rule.

23 years ago[PATCH] Update orinoco driver to 0.11b
David Gibson [Sun, 12 May 2002 11:48:46 +0000 (04:48 -0700)]
[PATCH] Update orinoco driver to 0.11b

This patch updates the orinoco wireless driver to 0.11b.  This fixes
several kfree()-of-bad-address bugs.

23 years agoMerge http://linux-isdn.bkbits.net/linux-2.5.isdn
Linus Torvalds [Sun, 12 May 2002 11:25:07 +0000 (04:25 -0700)]
Merge http://linux-isdn.bkbits.net/linux-2.5.isdn
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
Kai Germaschewski [Sun, 12 May 2002 11:40:35 +0000 (06:40 -0500)]
Merge tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.isdn

23 years agoMerge bk://bk.arm.linux.org.uk
Linus Torvalds [Sun, 12 May 2002 11:16:57 +0000 (04:16 -0700)]
Merge bk://bk.arm.linux.org.uk
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge flint.arm.linux.org.uk:/usr/src/linux-bk-2.5/linux-2.5
Russell King [Mon, 13 May 2002 01:37:55 +0000 (02:37 +0100)]
Merge flint.arm.linux.org.uk:/usr/src/linux-bk-2.5/linux-2.5
into flint.arm.linux.org.uk:/usr/src/linux-bk-2.5/linux-2.5-rmk

23 years ago[ARM] ADFS updates/fixes.
Russell King [Mon, 13 May 2002 01:14:57 +0000 (02:14 +0100)]
[ARM] ADFS updates/fixes.
Fixes lockup on SMP boxes, and fixes buggy map scanning code.

23 years ago2.5.14 updates - for the new memory management pfn() macros. Also,
Russell King [Mon, 13 May 2002 01:05:00 +0000 (02:05 +0100)]
2.5.14 updates - for the new memory management pfn() macros.  Also,
we fix ARM720T support - this CPU has unified writethrough caches
only, so we can't use the Harvard cache operations when copying
pages.  Also, we don't have to evict cache entries during copypage.

23 years agoRules.make: Remove special rule for $(export-objs)
Kai Germaschewski [Sun, 12 May 2002 10:54:21 +0000 (05:54 -0500)]
Rules.make: Remove special rule for $(export-objs)

We can now remove the extra rule for $(export-objs) and instead
just use

$(export-objs): export_flags := -DEXPORT_SYMTAB

to set a variable $(export_flags) for targets listed in $(export-objs)

23 years agoRules.make: check for changed command line
Kai Germaschewski [Sun, 12 May 2002 10:32:09 +0000 (05:32 -0500)]
Rules.make: check for changed command line

23 years agoRules.make: Use variables for commands
Kai Germaschewski [Sun, 12 May 2002 09:19:19 +0000 (04:19 -0500)]
Rules.make: Use variables for commands

23 years agoRules.make cleanup: introduce c_flags, a_flags
Kai Germaschewski [Sun, 12 May 2002 09:06:32 +0000 (04:06 -0500)]
Rules.make cleanup: introduce c_flags, a_flags

23 years agoSmall Rules.make cleanup
Kai Germaschewski [Sun, 12 May 2002 08:54:07 +0000 (03:54 -0500)]
Small Rules.make cleanup

Add some comments to explain the magic, use $(if), which will
be needed for other places anyway.

That means we up the make requirements to 3.78, which is a couple of
years old, so basically anybody should have it already.

23 years agoISDN: Release AVM CAPI controllers at module unload time
Kai Germaschewski [Sat, 11 May 2002 17:14:35 +0000 (12:14 -0500)]
ISDN: Release AVM CAPI controllers at module unload time

Use the standard new-style pci_driver::remove to unregister
drivers at module unload time.

PCMCIA obviously has its own way of handling removing, the ISA
drivers unregister at module unload time as well.

23 years agoISDN: Init ISA AVM CAPI drivers at module load time
Kai Germaschewski [Sat, 11 May 2002 16:39:05 +0000 (11:39 -0500)]
ISDN: Init ISA AVM CAPI drivers at module load time

Don't use a special CAPI solution to tell the drivers about
ISA cards but use module parameters, just as other drivers do.

Internally use struct pci_dev to save that data - hopefully
one day the device tree will provide a nicer way to achieve this.