David Mosberger [Thu, 25 Mar 2004 03:53:10 +0000 (19:53 -0800)]
ia64: Improve layout of cpuinfo_ia64
Stephane made some measurements on the access-pattern of the cpuinfo_ia64
members and based on those results, this patch reorganizes the structure
for better cache-line sharing.
Bjorn Helgaas [Wed, 24 Mar 2004 06:01:20 +0000 (22:01 -0800)]
[PATCH] ia64: fix name conflict with handle_exception()
I tried to build usb/gadget/file_storage.c (CONFIG_USB_FILE_STORAGE=y),
but it uses "handle_exception()" for its own purposes, which conflicts
with the ia64 definition. ia64 only uses handle_exception() within
arch code, so it seems like we ought to rename it to be ia64-specific.
done_with_exception() looks similar, so I renamed it as well, although
there's no actual conflict.
Paul Mackerras [Tue, 23 Mar 2004 23:27:03 +0000 (15:27 -0800)]
[PATCH] fix ppc32 sys_swapcontext
This fixes a bug in the swapcontext system call on ppc32.
On ppc32, the system call entry only saves the volatile registers,
except in the case of a few system calls (e.g. fork) which need all the
registers saved. Swapcontext needs all the registers but we weren't
saving them all. So fixes that.
Paul Mackerras [Tue, 23 Mar 2004 23:26:51 +0000 (15:26 -0800)]
[PATCH] Threaded core dumps for PPC32
At the moment, ppc32 kernels will oops if a threaded program tries to
dump core. We call dump_fpu with a NULL regs pointer, which it tries
to dereference.
This fixes the issue by implementing the hooks used in doing threaded
core dumps properly.
In the long story of "BenH can't get a simple fix right the first time",
please add this one to pmac_zilog, and now people should enjoy really
working sleep again on pmac laptops ...
If the serial port was closed, we could use an uninitialized "pwr_delay"
and pass that to schedule_timeout().
Mark Goodwin [Tue, 23 Mar 2004 09:14:03 +0000 (01:14 -0800)]
[PATCH] ia64: deprecate SN2 linkstatd
This patch against 2.6.5-rc2 affects the SGI/SN platform only. It deprecates
a kernel daemon for our interconnect traffic statistics which has been
replaced by a userland tool.
Alex Williamson [Tue, 23 Mar 2004 08:56:33 +0000 (00:56 -0800)]
[PATCH] ia64: lost sx1000 naming in sba_iommu
Mainly cosmetic, but Bjorn noticed I got a little over zealous in
cleaning out the sx1000 specific init routines in sba_iommu. This adds
back in the ID->name mapping so it doesn't show up as "Unknown".
Jesse Barnes [Tue, 23 Mar 2004 08:55:38 +0000 (00:55 -0800)]
[PATCH] ia64: quiet sn_serial driver
Bjorn pointed out that the sn console driver will spew printks if
compiled in even if no hardware is present. In addition to fixing
that, I took the opportunity to cleanup/correct a few other printks in
that driver.
Andrew Morton [Mon, 22 Mar 2004 23:25:38 +0000 (15:25 -0800)]
[PATCH] fbcon font cloning fix
From: Petr Baudis <pasky@ucw.cz>
This patch fixes a bug which I hit when migrating from 2.4. Basically,
when I do setfont during the system boot, the then-spawned ttys do not
retain the new font but fall back to the default one.
I've tracked that down to a clearly bogus test in fbcon_set_display(),
because vc->vc_font.width is not set at that time yet (no font has been
loaded for the new vc). But even if it would (or this was meant to test
against tmp->vc_font.width), it would mean only *HUGE* fonts would be
retained. And even if there were *two* bugs there and it was supposed to
be less-than there, I couldn't make a sense of the test.
Andrew Morton [Mon, 22 Mar 2004 23:25:24 +0000 (15:25 -0800)]
[PATCH] Work around compiler error in proc_misc.c
From: Alan Stern <stern@rowland.harvard.edu>
A change which was recently applied to fs/proc/proc_misc.c included a comment
about splitting a seq_printf into two pieces to work around a bug in
gcc-2.95.3. Unfortunately gcc-2.96 still chokes on the statements. The
patch below makes it work better and tidies the code up a bit.
Andrew Morton [Mon, 22 Mar 2004 23:24:24 +0000 (15:24 -0800)]
[PATCH] sh: sh-specific framebuffer updates
From: Paul Mundt <lethal@linux-sh.org>
This includes sh-specific framebuffer updates, including updates to hitfb and
pvr2fb, as well as adding sh to the pgprot_writecombine() users in fb_mmap().
Andrew Morton [Mon, 22 Mar 2004 23:24:11 +0000 (15:24 -0800)]
[PATCH] sh: hugetlb support
From: Paul Mundt <lethal@linux-sh.org>
This implements hugetlb support for SH-4. SH-4 supports 1k/4k/64k/1MB pages,
since we're only interested in the 64k/1MB sizes, this is what we support.
The sh hugetlbpage code borrows heavily off of the sparc64 port, which works
fine for these cases at this point in time.
Andrew Morton [Mon, 22 Mar 2004 23:23:22 +0000 (15:23 -0800)]
[PATCH] sh: port sh-sci driver to the new API
From: Paul Mundt <lethal@linux-sh.org>
This ports the sh-sci driver to the new API. sh and h8 both use this. The
intention is to leave the drivers/char sh-sci in place for a short period of
time until all the h8 people are on the new driver (sh no longer uses the
drivers/char version).
Andrew Morton [Mon, 22 Mar 2004 23:23:07 +0000 (15:23 -0800)]
[PATCH] sh: update defconfigs
From: Paul Mundt <lethal@linux-sh.org>
This patch updates the sh defconfigs to use the board_defconfig format
instead of the defconfig-board format that sh was using before. Since Sam
Ravnborg already added the automated archhelp stuff that sh was using to the
top-level Makefile, the sh version can be killed off.
Andrew Morton [Mon, 22 Mar 2004 23:22:11 +0000 (15:22 -0800)]
[PATCH] ppc64: iSeries virtual cd fix
From: Stephen Rothwell <sfr@canb.auug.org.au>
This patch stops an oops caused by certain ioctls being performed on the
virtual cdrom. In particular, the eject and tray close operations were
affected.
Andrew Morton [Mon, 22 Mar 2004 23:21:59 +0000 (15:21 -0800)]
[PATCH] ppc32: fix build with CONFIG_MODVERSIONS
From: Paul Mackerras <paulus@samba.org>
Olaf Hering <olh@suse.de>
This adds __kcrctab to the discard list for the link script for the boot
wrapper, and is needed if you compile with CONFIG_MODVERSIONS.
With this patch applied, we need to update makefile dependencies. Otherwise
the bootfiles will remain untouched because they do not depend on the changed
linker script.
Andrew Morton [Mon, 22 Mar 2004 09:55:33 +0000 (01:55 -0800)]
[PATCH] fix device open return values
The recent conversion of the open-of-a-nonexistent-blockdev return value from
ENXO to ENODEV was wrong. We should have converted the chardev code to
return -ENXIO too.
Wim Van Sebroeck [Sun, 21 Mar 2004 21:33:23 +0000 (22:33 +0100)]
[WATCHDOG] v2.6.5-rc2 pcwd.c-patch1
Version 1.14 of pcwd.c - Changes that were made are:
* Extract the start code in a seperate function (pcwd_start)
* Extract the stop code in a seperate function (pcwd_stop)
* Extract the get_temperature code in a seperate function (pcwd_get_temperature)
* Make /dev/watchdog and /dev/temperature to different misc devices with their own fops
* Small clean-up's
James Morris [Sun, 21 Mar 2004 14:38:44 +0000 (06:38 -0800)]
[CRYPTO]: Add Michael MIC algorithm.
From Jouni Malinen <jkmaline@cc.hut.fi>
Added Michael MIC keyed digest for TKIP (IEEE 802.11i/WPA). This algorithm
is quite weak due to the requirements for compatibility with old legacy
wireless LAN hardware that does not have much CPU power. Consequently, this
should not really be used with anything else than TKIP.
Michael MIC is calculated over the payload of the IEEE 802.11 header which
makes it easier to add TKIP support for old wireless LAN cards. An additional
authenticated data area is used (but not send separately) to authenticate
source and destination addresses.
James Morris [Sun, 21 Mar 2004 14:36:22 +0000 (06:36 -0800)]
[CRYPTO]: Add setkey operation for digests.
From Jouni Malinen <jkmaline@cc.hut.fi>
Added support for using keyed digest with an optional dit_setkey handler.
This does not change the behavior of the existing digest algorithms, but
allows new ones to add setkey handler that can be used to initialize the
algorithm with a key or seed. setkey is to be called after init, but before
any of the update call(s).
Wim Van Sebroeck [Sun, 21 Mar 2004 12:28:25 +0000 (13:28 +0100)]
[WATCHDOG] v2.6.5-rc2 softdog.c-patch
Version 0.07 of softdog.c - Changes that were made are:
* Extract the start/keepalive code in a seperate function (softdog_keepalive)
* Extract the stop code in a seperate function (softdog_stop)
* Add notifier support
* Extract softdog_set_heartbeat code to seperate subroutine
* Small clean-up's
Linus Torvalds [Sun, 21 Mar 2004 12:26:39 +0000 (04:26 -0800)]
Remove stale legacy ISDN files.
From Armin Schindler <armin@melware.de>:
"These files were added in the first place for the compat
driver to the legacy isdn4linux module. Since the Eicon
driver now uses CAPI only, these files are obsolete."
Wim Van Sebroeck [Sun, 21 Mar 2004 12:22:23 +0000 (13:22 +0100)]
[WATCHDOG] v2.6.5-rc2 wdt_pci.c-patch
Version 0.10 of wdt_pci.c - Changes that were made are:
* Extract the start code in a seperate function (wdtpci_start)
* Extract the stop code in a seperate function (wdtpci_stop)
* Convert wdtpci_ping so that it return an int value (0=succes).
* Extract the get_temperature code in a seperate function (wdtpci_get_temperature)
* Make /dev/watchdog and /dev/temperature to different misc devices with their own fops.
* Reorganize init and exit functions
* Make heartbeat (the emulated heartbeat) a module parameter
* Rewrite status flag code so that we could add a new tachometer module parameter
+ make clear distinction between PCI-WDT500 and PCI-WDT501.
* Small clean-up's
Wim Van Sebroeck [Sun, 21 Mar 2004 12:18:43 +0000 (13:18 +0100)]
[WATCHDOG] v2.6.5-rc2 wdt.c-patch
Version 0.10 of wdt.c - Changes that were made are:
* Extract the start code in a seperate function (wdt_start)
* Extract the stop code in a seperate function (wdt_stop)
* Convert wdt_ping so that it return an int value (0=succes).
* Extract the get_temperature code in a seperate function (wdt_get_temperature)
* Make /dev/watchdog and /dev/temperature to different misc devices with their own fops.
* Reorganize init and exit functions
* Make heartbeat (the emulated heartbeat) a module parameter
* Rewrite status flag code so that we could add a new tachometer module parameter
* Small clean-up's
Peter Osterlund [Sun, 21 Mar 2004 07:23:11 +0000 (23:23 -0800)]
[PATCH] Revert UDF inode semaphore locking
For some reason I don't understand, the last UDF filesystem update makes
the UDF deadlock when I write a bunch of mp3 files to a CDRW using the
packet writing patch. Both "cp" and pdflush get stuck in __down.
Reverting the semaphore changes makes the problem go away. Use the
kernel lock again, until whatever recursive offender gets fixed.
(The offensive recursion seems to be: write() takes the inode semaphore,
causes memory pressure, and then trying to write back the inode or dirty
data to disk tries to get the semaphore again and deadlocks.)
[SPARC32]: Support memory starting at physical address other than 0
From: Stefan Holst <mail@s-holst.de>
Allow physical memory to start at almost arbitrary addresses. LEON
needs it, so do SPARCstation 10/20 without slot 0 populated. Although
Sun do not support this configuration, at least some such systems can
boot with this patch.
Physical memory starting at or above 0xF4000000 is not supported.
Andrew Morton [Sun, 21 Mar 2004 00:38:26 +0000 (16:38 -0800)]
[PATCH] make inflate use less stack space with gcc3.5
From: Matt Mackall <mpm@selenic.com>
Quick fix to work around gcc3.5's automatic inline and broken stack
requirements calculation. Without this, I see stack overflows at boot
with 4k stacks.
Andrew Morton [Sun, 21 Mar 2004 00:37:44 +0000 (16:37 -0800)]
[PATCH] kbuild ordering fix
From: Sam Ravnborg <sam@ravnborg.org>
In the i386 case we need to generate asm-offset.h, before starting building
the kernel tree. Building asm-offset.h causes us to use one of the
shorthands in the top-level makefile, namely the one for .s files. The one
that allows us to do: make some/dir/file.s
And this shorthand happens to have a dependency to scripts, therefore I did
not see this problem on i386. But David hit it with sparc64, because there
is no asm-offset.h file. No parallel stuff involved here, just an ordinary
error.
Andi Kleen [Sun, 21 Mar 2004 04:17:28 +0000 (23:17 -0500)]
[PATCH] Hack mptfusion to work on >4GB machines
fusion needs several separately allocated coherent regions and
requires that they all be in the same 4GB segment. Obviously this may
fail. The hack is to force the coherent_dma_mask to 0xffffffff thus
ensuring that all the allocations occur within the first 4GB. This
hack breaks Altix entirely.