Andrew Morton [Tue, 18 Feb 2003 13:29:10 +0000 (05:29 -0800)]
[PATCH] TTY module refcounting fix
Patch from Max Krasnyansky <maxk@qualcomm.com>
This changeset adds module refcounting for TTY line disciplines. I've sent
the patch to LKM earlier. No negative comments (actually most people didn't
seem to care). This is needed at least for Bluetooth and IrDA (Jean is ok
with the patch).
Andrew Morton [Tue, 18 Feb 2003 13:28:55 +0000 (05:28 -0800)]
[PATCH] consolidate and cleanup profiling code.
Patch from Nikita Danilov <Nikita@Namesys.COM>
this moves functions from identical per-architecture
arch/*/kernel/profile.c into generic kernel/profile.c. Also, identical
{x86,parisc,ppc64,sparc64}_profile_hook()'s are all replaced by the
single kernel/profile.c:profile_hook(), which is #defined to noop in
include/linux/profile.h if CONFIG_PROFILING is not set.
Andrew Morton [Tue, 18 Feb 2003 13:25:42 +0000 (05:25 -0800)]
[PATCH] make startup_32 kernel entry point
Patch from Andrey Panin <pazke@orbita1.ru>
This patch marks startup_32 (in head.S) as kernel entry point,
visws kernel loader uses raw elf kernel images and entry point
at stext causes jump to wrong address.
Andrew Morton [Tue, 18 Feb 2003 13:25:35 +0000 (05:25 -0800)]
[PATCH] export some functions from i8259.c
Patch from Andrey Panin <pazke@orbita1.ru>
This trivial patch exports some functions from 8259.c file.
Visws subarch needs them to handle interrupts from legacy devices
connected to PIIX4 i8259s, which are in turn connected to SGI
Cobalt APIC.
Andrew Morton [Tue, 18 Feb 2003 13:25:27 +0000 (05:25 -0800)]
[PATCH] allow SMP kernel build without io_apic.c
Patch from Andrey Panin <pazke@orbita1.ru>
I'm here again, starting another hopeless attempt to submmit
visws subarch support for 2.5. This series of patches was tested
by me and brave people from linux-visws-devel mailing list and
our beloved workstations seem to work well under 2.5.xx.
This patch moves enable_NMI_through_LVT0() function from io_apic.c
to apic.c to allow SMP kernel build without io_apic.c included.
Andrew Morton [Tue, 18 Feb 2003 13:24:57 +0000 (05:24 -0800)]
[PATCH] fix kirq for clustered apic mode
Patch from Dave Hansen <haveblue@us.ibm.com>
The new kirq patch assumes flat addressing APIC mode where apicid = (1
<< cpu). This isn't true for clustered mode.
- Change name/type of irq_balance_mask. The type of apicid seems to
be int.
- Change instance of (1<<cpu) to cpu_to_logical_apicid()
- Don't use target_cpu_mask, use min_loaded, and convert the real way
Tested on Summit, and plain SMP. Martin Bligh and I figured this out
together, and he agrees.
Andrew Morton [Tue, 18 Feb 2003 13:24:42 +0000 (05:24 -0800)]
[PATCH] export add_to_page_cache() and __pagevec_lru_add to
CIFS is using these.
Given that the readpages() address_space op is supposed to add the pages to
pagecache, it makes sense to make these functions available to modules.
I can't say that I put a lot of though into the readpages API. It was
designed as just enough functionality to be able to stuff a bunch of
readahead pages into a single BIO. The only reason I made it an a_op at all
was because we have toi enter the fs to pick up the ->get_block callback's
address.
But a couple of filesystems seem to be making use of it now. Reiser4 will
need access at the do_page_cache_readahead() level too.
Andrew Morton [Tue, 18 Feb 2003 13:24:33 +0000 (05:24 -0800)]
[PATCH] fix for uninitialized timer in drm_drv.h
Patch from Martin Josefsson <gandalf@wlug.westbo.se>
Here's a fix for an uninitialized timer in drm_drv.h, for some reason it
initilizes the timer when the device is opened, not at init. It moves
the initilization for the waitqueue to init aswell.
This gets rid of the port semaphore, and the serialization caused by
that, and replaces it with the proper reference counting logic for
the usb serial object.
[PATCH] USB: add "present" flag to usb_device structure.
This solves lots of races when drivers hold a reference to the usb_device
after the device is physically removed from the system (like when a user
has a open handle.) This now prevents any new urbs being submitted or
canceled for the device.
Ivan Kokshaysky [Tue, 18 Feb 2003 07:48:40 +0000 (23:48 -0800)]
[PATCH] numa fixes
As Jeff pointed out, reserve_bootmem() in core_irongate.c
breaks build of generic discontiguous memory kernels because
this function doesn't exist in such kernels.
Ditto free_bootmem().
Also, here's fixes for NUMA+initrd and memory info printk.
George Anzinger [Tue, 18 Feb 2003 06:41:13 +0000 (22:41 -0800)]
[PATCH] POSIX clocks & timers
This is version 23 or so of the POSIX timer code.
Internal changelog:
- Changed the signals code to match the new order of things. Also the
new xtime_lock code needed to be picked up. It made some things a lot
simpler.
- Fixed a spin lock hand off problem in locking timers (thanks
to Randy).
- Fixed nanosleep to test for out of bound nanoseconds
(thanks to Julie).
- Fixed a couple of id deallocation bugs that left old ids
laying around (hey I get this one).
- This version has a new timer id manager. Andrew Morton
suggested elimination of recursion (done) and I added code
to allow it to release unused nodes. The prior version only
released the leaf nodes. (The id manager uses radix tree
type nodes.) Also added is a reuse count so ids will not
repeat for at least 256 alloc/ free cycles.
- The changes for the new sys_call restart now allow one
restart function to handle both nanosleep and clock_nanosleep.
Saves a bit of code, nice.
- All the requested changes and Lindent too :).
- I also broke clock_nanosleep() apart much the same way
nanosleep() was with the 2.5.50-bk5 changes.
TIMER STORMS
The POSIX clocks and timers code prevents "timer storms" by
not putting repeating timers back in the timer list until
the signal is delivered for the prior expiry. Timer events
missed by this delay are accounted for in the timer overrun
count. The net result is MUCH lower system overhead while
presenting the same info to the user as would be the case if
an interrupt and timer processing were required for each
increment in the overrun count.
Alan Cox [Tue, 18 Feb 2003 03:43:37 +0000 (19:43 -0800)]
[PATCH] ide-proc - fix crash on identify
We cannot do an identify on a drive with no driver loaded. The kernel
has a ton of half backed "if no driver" cases but they dont cover all
cases and its a mess.
For now we rely on the probe time identify unless a driver is loaded. A
proper fix (an 'ide-unassigned' driver) will follow later
Alan Cox [Tue, 18 Feb 2003 03:43:22 +0000 (19:43 -0800)]
[PATCH] ide-probe updates
Fix crash with slave and no master
Fix crash with hdb=noprobe hdb=cdrom
Fix crash with pre ATA devices refusing IDENTIFY
Fix flash slave making master disappear
Add interfaces that the PPC uses to do disk spin up when the BIOS has not
Add framework to allow hdparm -d1 on a box built with IDE_DMA_ONLYDISK
Fix identify framework so we can fix the proc identify crash too