David S. Miller [Thu, 3 Apr 2003 05:34:27 +0000 (21:34 -0800)]
[SPARC64]: Fix trap stack allocations so gcc-3.x builds work.
1) Use PTREGS_OFF consistently
2) Define it to allocate STACKFRAME_SZ instead of REGWIN_SZ
3) Kill off REGWIN_SZ, replace with sizeof(struct reg_window).
Fix naming confusion: number of symbol kallsyms is "num_kallsyms",
while number of symbols is "num_syms". It used to be "num_syms" and
"num_ksyms" respectively (ie the "k" was the wrong way around).
The previous naming was not just confusing, it had caused one actual
bug (ie the normal symbol code had used "num_syms", which was wrong
in the old confusing naming scheme).
Dave Jones [Tue, 1 Apr 2003 13:03:30 +0000 (05:03 -0800)]
[PATCH] fix up newer x86 cpuinfo flags.
According to Intel document 24161823.pdf[*] page 18, 'tm2' is misdefined.
Its bit 7 not, bit 8. Also add the missing 'EST' (Enhanced Speedstep Technology)
bit, and use the correct Intel terminology for the context ID bit.
Randy Dunlap [Tue, 1 Apr 2003 12:54:02 +0000 (04:54 -0800)]
[PATCH] reduce stack usage in cdrom/optcd.c
This changes/fixes the optcd.c stack reduction patch from last week.
Alan and Jens objected to the kmalloc() in cdromread(), suggesting that
the read buffer should be allocated one time and held onto, so this
patch does that.
Paul Mackerras [Tue, 1 Apr 2003 12:53:32 +0000 (04:53 -0800)]
[PATCH] update adb driver
This updates the ADB (Apple desktop bus) driver used on macs and
powermacs. The main change, from Ben Herrenschmidt, is that handlers
are called without a lock held now. It also adds a way for userland to
obtain some information about individual ADB devices from the driver.
Rusty Russell [Tue, 1 Apr 2003 12:42:38 +0000 (04:42 -0800)]
[PATCH] Subdivide PCI class for aliases
The previous handling of PCI class masks was too primitive: the
class field is not "all or nothing" but has base class, subclass
and interface fields. This patch changes the alias form from:
pci:vNdNsvNsdNcN to pci:vNdNsvNsdNbcNscNiN.
Rusty Russell [Tue, 1 Apr 2003 12:42:30 +0000 (04:42 -0800)]
[PATCH] Extable list removal
This removes the extable list, and the struct exception_table, in
favour of just iterating through the modules. Now all iteration is
within kernel/module.c, this is a fairly trivial cleanup.
Rusty Russell [Tue, 1 Apr 2003 12:42:22 +0000 (04:42 -0800)]
[PATCH] Symbol list removal
This removes the symbol list, and the concept of kernel symbol groups,
in favour of just iterating through the modules. Now all iteration is
within kernel/module.c, this is a fairly trivial cleanup.
Rusty Russell [Tue, 1 Apr 2003 11:47:14 +0000 (03:47 -0800)]
[PATCH] rio_linux.c misc_register patch
From: Chris Wilson <chris@qwirx.com>
This function did check misc_register's return code, but made no effort to
clean up if it failed, leaving a large amount of potential crud lying
around. I moved the registration to the start of the function, so that the
cleanup is trivial, and made sure the device gets unregistered in the
cases where it would not have been registered at all before.
Douglas Gilbert [Mon, 31 Mar 2003 08:52:21 +0000 (02:52 -0600)]
scsi_debug version 1.69 for lk 2.5.66
As people are using scsi_debug to simulate a large
number of disks to play with the dev_t expansion,
some problems have come to light.
Changelog:
- change num_devs to num_tgts
so now the user can independently modify the
number of hosts (add_host), the number of targets
per host (num_tgts) and the number of luns per
target (max_luns)
- num_tgts sets scsi_host::max_id after allowance is
made for the initiator's target id
- max_luns default changed to 1 and it is sysfs
writeable
- REPORT LUN response cleaned up. Could now possibly
generate a response indicatimg there were up to
16,384 logical units available
- clean up sense buffer generation
David S. Miller [Mon, 31 Mar 2003 07:23:31 +0000 (23:23 -0800)]
[SOFTIRQ]: Define local_softirq_pending, use it in softirq.c
Platforms, such as IA64, have a per-cpu mapping for local cpu
data. When we killed off asm/softirq.h, we removed the usage
of local_softirq_pending IA64 was using. By defining a generic
version we can put the optimization back.
David S. Miller [Mon, 31 Mar 2003 06:32:13 +0000 (22:32 -0800)]
[SOFTIRQ]: Move softirq implementation to common area, add debug check.
1) Every arch implemented local_bh_foo identically, move to
linux/interrupt.h
2) Kill all asm/softirq.h references
3) Kill asm/softirq.h itself
4) Move local_bh_disable() out of line to kernel/softirq.c
5) Add BUG check on irqs_disabled() to local_bh_disable()
This just reformats the goto labels to a more accepted style. Now to
do some more reformatting after ages and then make it aware of the
new modules infrastructure, i.e. kill MOD_{INC,DEC}_USE_COUNT, then
rinse and repeat it with LLC, Appletalk, etc.
Jens Axboe [Mon, 31 Mar 2003 01:52:42 +0000 (17:52 -0800)]
[PATCH] scsi queueing weirdness
The queueing logic in scsi_lib looks really odd right now.
- Defers calling elv_next_request() until we actually think we can queue
something. Always want to do that, request will have been marked
REQ_STARTED after this, so block layer cannot touch it or merge to it.
- Kill the queue empty check. If elv_next_request() returned a req,
there's one to queue.