Dave Jones [Fri, 31 May 2002 03:48:17 +0000 (20:48 -0700)]
[PATCH] hd.c compilation fix.
TIMEOUT_VALUE was killed from blk.h and moved to drivers that need it (like this one)
DEVICE_REQUEST is also dead, so we init the queue with the driver request handler
Dave Jones [Fri, 31 May 2002 03:43:28 +0000 (20:43 -0700)]
[PATCH] i386 mmx copying bug.
Odd, this is the missing half of the recent fix where we prefetched
too far. Not sure how this bit got dropped. Without it, we still prefetch
past the end of a range of memory.
Also small compiler hint microoptimisations
Stephen Rothwell [Fri, 31 May 2002 03:36:47 +0000 (20:36 -0700)]
[PATCH] missing bit from signal patches
The following should allow the affected architectures to build in
2.5.19 as currently there will be two definitions of
copy_siginfo_to_user and if an architecture defines its own
siginfo_t it MUST define copy_siginfo().
Martin Dalecki [Fri, 31 May 2002 03:24:07 +0000 (20:24 -0700)]
[PATCH] 2.5.19 IDE 76
- Since Bartek has released finally an entierly user space based setup
monitoring utility, we can finally remove the nonfunctional PROC code from
the host chip drivers. We have preserved it thus far only for documentation
purposes.
- Use generic bus master DMA setup code. There is nothing wrong with it.
- Make the ide-scsi code actually just allow for one device id per scsi host,
since we are registering a host per device right now. This prevents the
repetitive device recognition. Well registering an SCSI host of every single
disk out there isn't the proper thing to do. I will deal with that later
after my visual perception recovers again from already looking too long at
the SCSI code :-).
- Deal properly with host specific data mapping. (Could be that solves some
problems with the driver, which where in reality kernel data corruptions.)
Patrick Mochel [Thu, 30 May 2002 06:09:12 +0000 (23:09 -0700)]
driverfs: Remove default 'status' file: it had no useful read information, the commands it supported were minimal and probably broken and the comments were wrong.
Patrick Mochel [Thu, 30 May 2002 02:08:50 +0000 (19:08 -0700)]
driverfs update:
- Suggestion from Andrew Morton: use set_page_dirty instead of SetPageDirty and move to commit_write, since it's not dirty yet in prepare_write
- Make we dput on file and directory removal to counter the lookup_hash when we create them
Matthew Dharm [Wed, 29 May 2002 17:53:30 +0000 (10:53 -0700)]
[PATCH] USB storage: Dead code, more abort cleanups, and detached device fix
Here's a patch which does three things:
(1) It removes some dead code.
(2) It moves more code to using the new state machine
(3) It fixes a long standing bug relating to the sense data for a detached
device.
Russell King [Thu, 30 May 2002 01:16:58 +0000 (02:16 +0100)]
[ARM] Remove hard coded per-architecture memory, ramdisk and initrd
We have a fair number of command line options which can be used
to pass information about the target to the kernel. We also provide
a default command line which the kernel will use in absence of one
provided by the boot loader. We pass the hard coded options via the
command line now.
Russell King [Wed, 29 May 2002 17:21:22 +0000 (18:21 +0100)]
[ARM] Remove an extraneous load from atomic ops
atomic.h was generating some extra loads that aren't required. In
addition, it was needlessly performing various tests inside the
atomic region. This change fixes both these issues.
Russell King [Wed, 29 May 2002 17:06:54 +0000 (18:06 +0100)]
[ARM] Context switch improvements
- We don't need to save the CPSR.
- Rearrange thread_info members so we can pull the fields out of
thread_info more efficiently.
- Allocate a couple of extra words for CPU specific context saving
(eg, for Xscale ACC registers)
- Always leave 8 bytes free at the top of the kernel stack. This
prevents the stack becoming completely empty when do_exit() is
called from an exiting nfsd() thread, and causing the wrong
pointer to be returned from current_thread_info()
Added the patch from Russell King <rmk@arm.linux.org.uk> that splits
the usb-ohci driver into two pieces, enabling the sa1111 hardware to
work with the driver.
I also added some changes to get the usb-ohci-pci.o module to build
and run properly.
Tom Rini [Wed, 29 May 2002 08:52:28 +0000 (01:52 -0700)]
[PATCH] Missing include in drivers/base/bus.c and drivers/pci/pci-driver.c
drivers/base/bus.c and drivers/pci/pci-driver.c both have functions
which are marked with __init, but didn't include <linux/init.h> directly.
The following fixes that (and allows 2.5.19 to compile on PPC32).
Andy Grover [Wed, 29 May 2002 08:41:56 +0000 (01:41 -0700)]
ACPI PCI IRQ Improvements:
We now can boot without MPS and PIRQ!
ACPI finds IO APICs, Local apics (CPUS), interrupt source overrides,
the works. (Paul Diefenbaugh) Mucho thanks to Dominik Brodowski and
the whole acpi-devel gang.
(Note, I think this conflicts slightly with Pavel's code in i386/kernel/acpi.c
but I'd like to get this applied, and then I'm working with Pavel to hopefully
get the ACPI and swsusp stuff working properly.)
Petr Vandrovec [Wed, 29 May 2002 08:34:15 +0000 (01:34 -0700)]
[PATCH] de4x5 does not compile in 2.5.19 due to bus_type conflict
de4x5.c used struct bus_type for its internal bookkeeping. It should
be proably converted to struct device, but as I prefer
Jeff's tulip driver, and I have no knowledge about EISA support,
I only changed the structure name to make thing compile.
Dave Kleikamp [Wed, 29 May 2002 11:03:17 +0000 (06:03 -0500)]
JFS: misc stuff for 2.5
o make JFS_SBI an inline instead of a macros, as the other filesystems do
o ditto for isReadOnly
o move initialization of sb into the common part of lmLogOpen
Dave Kleikamp [Wed, 29 May 2002 10:58:08 +0000 (05:58 -0500)]
JFS: metapage changes
This patch is a first preparation of using the bdev mapping instead
of the JFS-private device mapping/inode for 2.4.1x/2.5:
* add metapages to ->mp_list of the inode passed to __get_metapage
instead of mp->mapping->host. Do this outside of add_to_hash,
and only do it for metapages that aren't mapped absolutely.
RATIONALE: when using the bdev mapping, the absoloute inode won't
have the JFS-private inode info. It is save because we never
traverse the mp_list of the direct inodes.
* use a goto to unify two error handling pathes in __get_metapage.
Patrick Mochel [Wed, 29 May 2002 03:37:43 +0000 (20:37 -0700)]
PCI Update:
- Change pci_match_device to pci_bus_bind, which becomes bind callback of pci_bus_type
- Remove explicit driver binding; let the device core handle it
Martin Dalecki [Wed, 29 May 2002 03:22:20 +0000 (20:22 -0700)]
[PATCH] 2.5.18 IDE 75
- Comment out config_chipset_for_pio from hpt366 driver. It seems to hang on it
and many people consistently reported that this may be necessary.
Well apparently this host chip is forced to be in DMA read mode anyway
and we where undoing this there.
- Apply small cosmetics to pdc202xx.c driver by Thierry Vignaud.
His change log entries follow:
- factorize constants with PDC_CLOCK and UDMA_SPEED_FLAG macros and
the init_high_16() static inline functions, thus removing floating
constants in code
- remove unused variables and pci space read
- kill useless code in pdc202xx_udma_irq_status() resulting in
removing unused variable: the code does lots of tests to check what
value to return but just always return the same exact value in all
code paths!
this also saves a few cpu & pci bus cyles by removing a useless read
in pci space
- simplify #if/#else resulting in code duplication
- make init_pdc202xx clearer
- remove duplicated initializations in config_drive_xfer_rate() and
simplify code paths
- Kill unused init_speed member from ata_device struct. Spotted by
M.H.VanLeeuwen.
Patrick Mochel [Wed, 29 May 2002 03:01:51 +0000 (20:01 -0700)]
Device Model: Implement centralized device/driver binding
- on device registration, all drivers of bus are iterated over
- bus's bind callback is called to match device to driver
- if successful, driver's probe callback is called
- on device removal, driver's remove callback is called
- on driver registration, list of devices is iterated over (and same thing happens)
Patrick Mochel [Wed, 29 May 2002 02:51:08 +0000 (19:51 -0700)]
Device Model: Add helpers bus_for_each_dev and bus_for_each_drv
- iterators for accessing bus's lists of devices and drivers
- does locking on bus for each list access
- does reference counting on objects as it grabs and releases them
- calls callback for each object in list