]> git.hungrycats.org Git - linux/log
linux
22 years agoAdd pread/pwrite support bits to match the lseek bit.
Linus Torvalds [Sat, 7 Aug 2004 09:08:23 +0000 (02:08 -0700)]
Add pread/pwrite support bits to match the lseek bit.

This also removes the ESPIPE logic from pipes and seq_files,
since the VFS layer now supports it.

22 years ago[PATCH] ppc32: add PPC4xx DMA engine library
Matt Porter [Sat, 7 Aug 2004 08:02:35 +0000 (01:02 -0700)]
[PATCH] ppc32: add PPC4xx DMA engine library

Adds a cleaned up version of the PPC4xx DMA engine library.  Converted to
new DCR access method and DMA API.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: remove pci-dma.c
Matt Porter [Sat, 7 Aug 2004 07:58:35 +0000 (00:58 -0700)]
[PATCH] ppc32: remove pci-dma.c

Remove pci-dma.c.  It is cruft left over from the DMA API changes.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: fix ebony uart clock
Geoffrey LEVAND [Sat, 7 Aug 2004 07:58:23 +0000 (00:58 -0700)]
[PATCH] ppc32: fix ebony uart clock

This patch corrects the Ebony board's uart clock value to the rate of the
external Epson SG-615P clock source.  Now good to 115Kbps.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> for CELF
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: clean up PPC44x mmu_mapin_ram()
Matt Porter [Sat, 7 Aug 2004 07:58:12 +0000 (00:58 -0700)]
[PATCH] ppc32: clean up PPC44x mmu_mapin_ram()

Remove some old cruft in the kernel lowmem mapping code and save some
memory in the process.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: suppress unused var warning in get_irq_server()
Dave Hansen [Sat, 7 Aug 2004 07:58:01 +0000 (00:58 -0700)]
[PATCH] ppc64: suppress unused var warning in get_irq_server()

When normal IRQ balancing is used, the following warnings appear:

arch/ppc64/kernel/xics.c: In function `get_irq_server':
arch/ppc64/kernel/xics.c:242: warning: unused variable `cpumask'
arch/ppc64/kernel/xics.c:243: warning: unused variable `tmp'

Simply move the variables inside the #ifdef

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: move SPINLINE out of global menu
Dave Hansen [Sat, 7 Aug 2004 07:57:50 +0000 (00:57 -0700)]
[PATCH] ppc64: move SPINLINE out of global menu

This somehow ended up out in the global Kconfig menu.  Move it back inside
debugging where it belongs.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: suppress 'store_purr' unused warning
Anton Blanchard [Sat, 7 Aug 2004 07:57:38 +0000 (00:57 -0700)]
[PATCH] ppc64: suppress 'store_purr' unused warning

Some new sysfs macros declare a store_purr() function that never gets used,
which makes a compiler warning happen.  Suppress the warning with the used
attribute.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: fix chrp_progress mismerge
Anton Blanchard [Sat, 7 Aug 2004 07:57:27 +0000 (00:57 -0700)]
[PATCH] ppc64: fix chrp_progress mismerge

Due to a mismerge, some code in chrp_progress appears twice. While here,
clean up some formatting issues.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: set SMT thread priority to medium for all exceptions
Anton Blanchard [Sat, 7 Aug 2004 07:57:15 +0000 (00:57 -0700)]
[PATCH] ppc64: set SMT thread priority to medium for all exceptions

We need to set the thread priority to medium when entering all exceptions.
We may have been executing in low priority (eg the idle loop), but
definitely do not want to remain in that priority for the duration of the
exception (eg a device interrupt).

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: avoid speculative execution after rfid
Anton Blanchard [Sat, 7 Aug 2004 07:57:04 +0000 (00:57 -0700)]
[PATCH] ppc64: avoid speculative execution after rfid

Due to speculative execution, a CPU may execute some instructions after the
rfid.  This makes profiles confusing, since profiling ticks could end up in
those instructions following the rfid that are never executed.

Add a branch to self after each rfid to avoid this.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: fix PCI allocation warning
Anton Blanchard [Sat, 7 Aug 2004 07:56:54 +0000 (00:56 -0700)]
[PATCH] ppc64: fix PCI allocation warning

Print the correct domain when a PCI resource allocation fails.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: various XICS fixes
Anton Blanchard [Sat, 7 Aug 2004 07:56:42 +0000 (00:56 -0700)]
[PATCH] ppc64: various XICS fixes

- Remove unused includes.
- Be consistent about printing irq numbers, avoid a mix of decimal and
  hexadecimal.
- Remove prototypes from xics.c, they should be in xics.h.
- Remove infinite loop on failure, and instead use panic. Panic has a chance to
  log the error message on the LED panel and reboot the box, a while(1) loop
  does not.
- xics isnt compiled for iseries any more, so no need for the
  CONFIG_PPC_PSERIES hack.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: 32-bit ptrace geteventmsg fix
John Engel [Sat, 7 Aug 2004 07:56:31 +0000 (00:56 -0700)]
[PATCH] ppc64: 32-bit ptrace geteventmsg fix

Here's a fix for the 32-bit PTRACE_GETEVENTMSG ptrace call that handles the
passing of a 32-bit user address.  Please apply, thanks.

Signed-off-by: John Engel <jhe@us.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: pci_dn cleanups
Paul Mackerras [Sat, 7 Aug 2004 07:56:22 +0000 (00:56 -0700)]
[PATCH] ppc64: pci_dn cleanups

This patch just cleans up arch/ppc64/kernel/pci_dn.c a bit, including:
- remove it from the iSeries build completely
- small changes to Makefile
- remove the "post" parameter from traverse_pci_devices as
  noone used it
- make traverse_all_pci_devices static
- remove CONFIG_PPC_PSERIES tests as we no longer build for iSeries
- some reformatting (closer to "standard")
- remove some of pointer casts

This has been built (with default config) on pSeries and pmac and built and
run on iSeries.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: fix free_irq()
Andrey Panin [Sat, 7 Aug 2004 07:56:10 +0000 (00:56 -0700)]
[PATCH] ppc64: fix free_irq()

Fix ppc64 free_irq.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: qeth performance.
Thomas Spatzier [Sat, 7 Aug 2004 07:55:59 +0000 (00:55 -0700)]
[PATCH] s390: qeth performance.

qeth network driver performance improvements. The ping time on the
HiperSockets interface drops from 250 usecs to 50 usecs and the 1 bytes
request/response test improves from 70000 to 110000 transactions.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: zfcp host adapater.
Martin Schwidefsky [Sat, 7 Aug 2004 07:55:48 +0000 (00:55 -0700)]
[PATCH] s390: zfcp host adapater.

From: Heiko Carstens <heiko.carstens@de.ibm.com>
From: Andreas Herrmann <aherrman@de.ibm.com>

zfcp host adapater change:
 - Fix call to close_physical_port to prevent devices going offline
   after error recovery.
 - Fix return value of sysfs port_remove attribute store function.
 - Replace reboot notifier with device driver shutdown function.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: ctc driver changes.
Peter Tiedemann [Sat, 7 Aug 2004 07:55:36 +0000 (00:55 -0700)]
[PATCH] s390: ctc driver changes.

Prefix debug feature variables with ctc to avoid name space problems.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: msleep vs. schedule_timeout.
Nishanth Aravamudan [Sat, 7 Aug 2004 07:55:25 +0000 (00:55 -0700)]
[PATCH] s390: msleep vs. schedule_timeout.

Use msleep() instead of schedule_timeout() to guarantee the task
delays for the desired time.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: common i/o layer changes.
Cornelia Huck [Sat, 7 Aug 2004 07:55:13 +0000 (00:55 -0700)]
[PATCH] s390: common i/o layer changes.

common i/o layer changes:
 - Set state of a disconnected device to offline before calling
   ccw_device_online, otherwise the device doesn't come up again.
 - Check for channel end when trying to find out if basic sense
   was successful.
 - Fix error handling in new_channel_path.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: core changes.
Martin Schwidefsky [Sat, 7 Aug 2004 07:55:02 +0000 (00:55 -0700)]
[PATCH] s390: core changes.

From: Martin Schwidefsky <schwidefsky@de.ibm.com>

s390 core changes:
 - Add 32 bit compat code for ptrace requests PTRACE_GETEVENTMSG,
   PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
 - Make non-smp kernel compile.
 - Regenerate default configuration.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: gcc-3.3 macro parenthesization fix for memcpy.S
William Lee Irwin III [Sat, 7 Aug 2004 07:54:50 +0000 (00:54 -0700)]
[PATCH] sparc32: gcc-3.3 macro parenthesization fix for memcpy.S

From: Art Haas <ahaas@airmail.net>

The 1.3->1.4 changes to the arch/sparc/lib/copy_user.S file added parenthesis
to a number of macros within that file.  The BK changlog associated with this
change indicate the change was to make the file work with gcc-3.3.

When looking at the changes made, I see that similar macros exist in memcpy.S
as well, so would a patch adding parens to that file be worthwhile?  Also,
just what was the problem with gcc-3.3 that was resolved by adding the
parenthesis?  Macro mis-expansion I'm guessing.

Signed-off-by: Art Haas <ahaas@airmail.net>
Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: make CONFIG_SMP depend on CONFIG_BROKEN
William Lee Irwin III [Sat, 7 Aug 2004 07:54:39 +0000 (00:54 -0700)]
[PATCH] sparc32: make CONFIG_SMP depend on CONFIG_BROKEN

SMP support is in need of a great deal of work to port it from 2.2 and 2.4.
Add a dependency on BROKEN in the Kconfig to warn the unwary.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: sun4 does not support SMP
William Lee Irwin III [Sat, 7 Aug 2004 07:54:27 +0000 (00:54 -0700)]
[PATCH] sparc32: sun4 does not support SMP

The sun4 port does not support SMP.  Disable it via Kconfig.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: remove unused variable in dvma.c
William Lee Irwin III [Sat, 7 Aug 2004 07:54:16 +0000 (00:54 -0700)]
[PATCH] sparc32: remove unused variable in dvma.c

This variable is unused and causes noisy compiles.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: define cache_decay_ticks
William Lee Irwin III [Sat, 7 Aug 2004 07:54:05 +0000 (00:54 -0700)]
[PATCH] sparc32: define cache_decay_ticks

cache_decay_ticks needs to be defined in order for the kernel to link.  This
placeholder is inaccurate, however, other, more grave SMP issues need to be
addressed first.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: remove references to start_secondary()
William Lee Irwin III [Sat, 7 Aug 2004 07:53:53 +0000 (00:53 -0700)]
[PATCH] sparc32: remove references to start_secondary()

Remove leftover references to now-unused start_secondary()

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: reinstate smp_reschedule_irq()
William Lee Irwin III [Sat, 7 Aug 2004 07:53:42 +0000 (00:53 -0700)]
[PATCH] sparc32: reinstate smp_reschedule_irq()

smp_reschedule_irq() mysteriously vanished sometime after 2.4.  This patch
reinstates it so that the kernel will link properly and so cpus will set
TIF_NEED_RESCHED when it's asked of them.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: smp_processor_id() BITFIXUP fixes
William Lee Irwin III [Sat, 7 Aug 2004 07:53:33 +0000 (00:53 -0700)]
[PATCH] sparc32: smp_processor_id() BITFIXUP fixes

The SMP initialization functions try to do btfixups on the wrong symbols for
smp_processor_id(), which is now implemented in terms of
current_thread_info()->cpu.  hard_smp_processor_id() etc.  are now in use
where smp_processor_id() was once used.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: sun4d cpu_present_map is a cpumask_t
William Lee Irwin III [Sat, 7 Aug 2004 07:53:21 +0000 (00:53 -0700)]
[PATCH] sparc32: sun4d cpu_present_map is a cpumask_t

cpu_present_map is a cpumask_t.  Sweep arch/sparc/kernel/sun4d_smp.c so that
it is treated as such.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: sparc32 init_idle()
William Lee Irwin III [Sat, 7 Aug 2004 07:53:10 +0000 (00:53 -0700)]
[PATCH] sparc32: sparc32 init_idle()

An analysis of the code determined that AP initialization called init_idle()
no less than three times, 2 out of the three with incorrect numbers of
arguments.  This patch removes the superfluous calls.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] sparc32: turbosparc flush warnings
William Lee Irwin III [Sat, 7 Aug 2004 07:52:59 +0000 (00:52 -0700)]
[PATCH] sparc32: turbosparc flush warnings

FLUSH_BEGIN() is a nop at the moment, so the mm variable for its argument
trips a warning.  Pass vma->vm_mm directly instead.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] jbd: journal_head unmapping race fix
Andrew Morton [Sat, 7 Aug 2004 07:52:47 +0000 (00:52 -0700)]
[PATCH] jbd: journal_head unmapping race fix

Fix a race identified by Chris Mason <mason@suse.com>

journal_unmap_buffer -> __dispose_buffers has the j_list_lock and the
jbd_lock_bh_state held.

journal_get_write_access calls journal_put_journal_head, which takes
jbd_lock_bh_journal_head(bh) and doesn't seem to have any other locks held.

Since journal_unmap_buffers trusts the buffer_jbd bit to see if we need to
call __dispose_buffer, and nobody seems to test buffer_jbd after taking
jbd_lock_bh_journal_head.  The kernel dereferences a null jh pointer in
__journal_remove_journal_head.

The patch fixes this by using journal_grab_journal_head() in
journal_unmap_buffer().  It ensures that we either grab and pin the
journal_head if the bh has one, or we bale out if the bh doesn't have a
journal_head.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Restore PPP filtering
Paul Mackerras [Sat, 7 Aug 2004 07:52:36 +0000 (00:52 -0700)]
[PATCH] Restore PPP filtering

Karsten Keil's patch entitled "[ISDN]: Fix kernel PPP/IPPP active/passiv
filter code" that went in back in April was an attempt to solve a real
problem - namely that the libpcap maintainers have removed useful
functionality that pppd was using - but his fix broke existing pppd
binaries and IMO didn't end up actually solving the problem.

This patch reverts the change to ppp_generic.c so that existing pppd
binaries work again.  I am going to have to work out a proper fix, which
may involve further changes to ppp_generic.c, but I will make sure existing
pppd binaries still work.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kbuild: Remove LANG preset in top-level Makefile
Sam Ravnborg [Sat, 7 Aug 2004 07:52:25 +0000 (00:52 -0700)]
[PATCH] kbuild: Remove LANG preset in top-level Makefile

In the top-level Makefile a number of locale related environment
variables were preset to give a small speed up when building the kernel.

Unfortunately this had the bad sideeffect that the variable
CFLAGS_vmlinux.lds.o lost the exported vaule in some setups (obviously
not mine).  This smells like a make issue - but the best solution is
simply to drop presetting the locale related variables.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoAdd infrastructure for the VFS layer to mark files seekable.
Linus Torvalds [Sat, 7 Aug 2004 05:12:52 +0000 (22:12 -0700)]
Add infrastructure for the VFS layer to mark files seekable.

We use a FMODE_LSEEK flag to match the existing read/write
bits. This allows us to check for seekability on a VFS level
for lseek/pread/pwrite, and cleans things up.

Update some sites that used the numeric constants to use
the symbolic values instead.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-serial
Linus Torvalds [Fri, 6 Aug 2004 09:14:40 +0000 (02:14 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-serial
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[SERIAL] replace schedule_timeout() with msleep()
Russell King [Fri, 6 Aug 2004 18:38:15 +0000 (19:38 +0100)]
[SERIAL] replace schedule_timeout() with msleep()

Patch from: Nishanth Aravamudan

Use msleep() instead of schedule_timeout() to
guarantee the task delays for the desired time.

Signed-off-by: Nishanth Aravamudan
Signed-off-by: Russell King
22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Fri, 6 Aug 2004 09:06:02 +0000 (02:06 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM] Remove unnecessary CONFIG_CPU_32 preprocessor conditional.
Russell King [Fri, 6 Aug 2004 23:10:36 +0000 (00:10 +0100)]
[ARM] Remove unnecessary CONFIG_CPU_32 preprocessor conditional.

We're only 32-bit ARMs, so testing this symbol in 32-bit only code
is unnecessary.

22 years ago[FB] replace schedule_timeout() with msleep()
Russell King [Fri, 6 Aug 2004 18:55:39 +0000 (19:55 +0100)]
[FB] replace schedule_timeout() with msleep()

Patch from: Nishanth Aravamudan

Use msleep() instead of schedule_timeout() to
guarantee the task delays for the desired time.

Signed-off-by: Nishanth Aravamudan
Signed-off-by: Russell King
22 years ago[ARM PATCH] 1990/1: S3C2410 - fix mis-spelled time initialisation calls
Ben Dooks [Fri, 6 Aug 2004 16:08:24 +0000 (17:08 +0100)]
[ARM PATCH] 1990/1: S3C2410 - fix mis-spelled time initialisation calls

Patch from Ben Dooks

Fixed mis-spelled time initialisation calls and
a bad prototype in the time header

Fixes for patch 1962/1

22 years ago[ARM PATCH] 1989/1: S3C2410 - rename owner of VR1000 board and update help
Ben Dooks [Fri, 6 Aug 2004 15:33:46 +0000 (16:33 +0100)]
[ARM PATCH] 1989/1: S3C2410 - rename owner of VR1000 board and update help

Patch from Ben Dooks

Rename to Thorcom, and added extra lines to help

22 years ago[ARM PATCH] 1988/1: S3C2410 - defconfig update to include all boards
Ben Dooks [Fri, 6 Aug 2004 15:28:22 +0000 (16:28 +0100)]
[ARM PATCH] 1988/1: S3C2410 - defconfig update to include all boards

Patch from Ben Dooks

Updated default configuration file to include all the
boards possible with this architecture

22 years ago[ARM PATCH] 1986/1: bootpImage/ARM: add ability to run from non-zero address
Kevin Hilman [Fri, 6 Aug 2004 15:20:34 +0000 (16:20 +0100)]
[ARM PATCH] 1986/1: bootpImage/ARM: add ability to run from non-zero address

Patch from Kevin Hilman

The following patch allows the bootpImage to be loaded and executed
from a non-zero address.  On OMAP platforms for example, the physical
address for SDRAM is 0x10000000 and not zero.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Fri, 6 Aug 2004 08:59:55 +0000 (01:59 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[NET]: Move sndmsg_page destruction back into TCP for now.
David S. Miller [Fri, 6 Aug 2004 08:21:39 +0000 (01:21 -0700)]
[NET]: Move sndmsg_page destruction back into TCP for now.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PATCH] ppc32: Fix building of certain CPU types
Tom Rini [Fri, 6 Aug 2004 08:13:07 +0000 (01:13 -0700)]
[PATCH] ppc32: Fix building of certain CPU types

The following corrects how we pass CPU flags to gas.  Previous, AFLAGS
was incorrectly assumed to be pased directly to $(AS), which is not the
case.

Concept ack'd by Sam Ravnborg.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove ppc32 proc_rtas.c
Paul Mackerras [Fri, 6 Aug 2004 08:12:56 +0000 (01:12 -0700)]
[PATCH] Remove ppc32 proc_rtas.c

This patch removes proc_rtas.c and error_log.[ch] from
arch/ppc/platforms.  It turns out that the code in error_log.[ch] is
completely unused, and the code in proc_rtas.c is buggy, almost
impossible to understand, and rarely used.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Re-implemented i586 asm AES
James Morris [Fri, 6 Aug 2004 02:46:07 +0000 (19:46 -0700)]
[PATCH] Re-implemented i586 asm AES

This code is a rework of the original Gladman AES code, and does not
include any supposed BSD licensed work by Jari Ruusu.

Linus converted the Intel asm to Gas format, and made some minor
alterations.

Fruhwirth's glue module has also been retained, although I rebased the
table generation and key scheduling back to Gladman's code.  I've tested
this code with some standard FIPS test vectors, and large FTP transfers
over IPSec (both locally and over the wire to a system running the
generic AES implementation).

Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMake the new simple_read_from_buffer() take a const src
Linus Torvalds [Thu, 5 Aug 2004 16:11:00 +0000 (09:11 -0700)]
Make the new simple_read_from_buffer() take a const src
buffer without complaints.

22 years ago[PATCH] Fix ppc htab seq_file conversion
Alexander Viro [Thu, 5 Aug 2004 15:36:28 +0000 (08:36 -0700)]
[PATCH] Fix ppc htab seq_file conversion

*grrrrrrrr*

Wrong diff sent.  Sorry - normally the tree I'm working in is cp -rl'ed
from the -current, but right now it's a big mess.

This is the incremental fix.

22 years ago[PATCH] ppc: seq_file conversion for ppc_htab
Alexander Viro [Thu, 5 Aug 2004 14:13:56 +0000 (07:13 -0700)]
[PATCH] ppc: seq_file conversion for ppc_htab

This converts the 32-bit ppc htab code to use the seq_file interfaces.

Less code means fewer bugs..

22 years ago[PATCH] ppc64: Fix rtas file mess
Alexander Viro [Thu, 5 Aug 2004 13:37:01 +0000 (06:37 -0700)]
[PATCH] ppc64: Fix rtas file mess

This does the seq_file conversion + annotation + cleanup + race fixes
for arch/ppc64/kernel/rtas-proc.c.

How the fuck did that file manage to get anywhere near the tree, anyway?
Take a look at guy's "implementation" of sprintf(buf, "%04d", num), for
example:

<vomit>
/* construct the sensor number like 0003 */
/* fill with zeros */
n = sprintf(tmp, "%d", s.token);
len = strlen(tmp);
while (strlen(tmp) < 4)
n += sprintf (tmp+n, "0");

/* invert the string */
while (tmp[i]) {
if (i<len)
tmp2[4-len+i] = tmp[i];
else
tmp2[3-i] = tmp[i];
i++;
}
tmp2[4] = '\0';
</vomit>

And it's full of that level of lusing ;-/

22 years agoFix shrink_dcache_anon() LRU list accesses.
Linus Torvalds [Thu, 5 Aug 2004 13:30:40 +0000 (06:30 -0700)]
Fix shrink_dcache_anon() LRU list accesses.

It would potentially remove dentries from the LRU list
without re-initializing the d_lru fields, causing later
accesses to that dentry to do bad things to the LRU list.

22 years ago[PATCH] ppc32: Fix 'mktree' on 64bit hosts
Tom Rini [Thu, 5 Aug 2004 11:18:41 +0000 (04:18 -0700)]
[PATCH] ppc32: Fix 'mktree' on 64bit hosts

The following patch changes some 'unsigned long's into 'uint32_t's in
mktree (a program that runs on the host to frob the kernel image for
some firmwares).  Without it, the program is not correct when run
on/compiled on a 64bit host.

Signed-off-by: Dan Zink <dan.zink@hp.com>
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] imm.c oops fix
Alexander Viro [Thu, 5 Aug 2004 10:56:22 +0000 (03:56 -0700)]
[PATCH] imm.c oops fix

Fix bug #3125:

This should fix the problem; however, we will need to repeat that for all
PIO SCSI drivers (another immediate victim is ppa.c).

We should start looking for sane solution; I _really_ don't like the kludge
with using ->slave_alloc() for fixups after scsi_alloc_queue().

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge http://lia64.bkbits.net/to-base-2.6
Linus Torvalds [Thu, 5 Aug 2004 10:55:09 +0000 (03:55 -0700)]
Merge http://lia64.bkbits.net/to-base-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years agoMerge bk://linux-mtd.bkbits.net/mtd-2.6
Linus Torvalds [Thu, 5 Aug 2004 10:54:08 +0000 (03:54 -0700)]
Merge bk://linux-mtd.bkbits.net/mtd-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PATCH] fix /proc printing of TASK_DEAD state
Roland McGrath [Thu, 5 Aug 2004 10:43:51 +0000 (03:43 -0700)]
[PATCH] fix /proc printing of TASK_DEAD state

I just stumbled across this patch that's been sitting in my tree for ages.

I thought I'd sent this in before.  It's a trivial fix for the printing
of task state in /proc and sysrq dumps and such, so that TASK_DEAD shows
up correctly.  This state is pretty much only ever there to be seen when
there are exit/reaping bugs, but it's not like that hasn't come up.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Thu, 5 Aug 2004 10:41:46 +0000 (03:41 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM PATCH] 1974/1: add INITTIME macro to collie machine structure
John Lenz [Thu, 5 Aug 2004 22:48:18 +0000 (23:48 +0100)]
[ARM PATCH] 1974/1: add INITTIME macro to collie machine structure

Patch from John Lenz

Add INITTIME macro to collie machine structure.

22 years ago[ARM PATCH] 1972/1: IPAQ H1940 - fix serial clock base
Ben Dooks [Thu, 5 Aug 2004 22:43:43 +0000 (23:43 +0100)]
[ARM PATCH] 1972/1: IPAQ H1940 - fix serial clock base

Patch from Ben Dooks

Fixed clock base for the H1940

thanks to Gerald Schneider <gerald@gerald-online.de>
for fixing this.

22 years ago[ARM PATCH] 1971/1: BAST - default configuraiton update
Ben Dooks [Thu, 5 Aug 2004 22:39:15 +0000 (23:39 +0100)]
[ARM PATCH] 1971/1: BAST - default configuraiton update

Patch from Ben Dooks

Patch for default configuration

22 years ago[ARM PATCH] 1968/1: S3C2410 - GPIO updates and access functions
Ben Dooks [Thu, 5 Aug 2004 22:33:54 +0000 (23:33 +0100)]
[ARM PATCH] 1968/1: S3C2410 - GPIO updates and access functions

Patch from Ben Dooks

Added more definitions for GPIO registers

New functions for modifying pin configuration and
bit-status (see include/asm-arm/arch-s3c2410/hardware.h)

22 years ago[ARM PATCH] 1966/1: S3C2410 - Fix for serial driver compile error
Ben Dooks [Thu, 5 Aug 2004 22:28:33 +0000 (23:28 +0100)]
[ARM PATCH] 1966/1: S3C2410 - Fix for serial driver compile error

Patch from Ben Dooks

Remove compile error with gcc-3.4 and empty part of case statememnt

22 years ago[ARM PATCH] 1965/1: gas only generates the c and f field bits for the "msr [cs]psr...
Catalin Marinas [Thu, 5 Aug 2004 22:03:23 +0000 (23:03 +0100)]
[ARM PATCH] 1965/1: gas only generates the c and f field bits for the "msr [cs]psr, rN" instruction

Patch from Catalin Marinas

Gas translates the "msr [cs]psr, rN" instruction to "msr [cs]psr_cf, rN". This may cause problems on the ARMv6 architecture where the A and E bits can leak into the SVC mode from the USR mode via the exception handlers. The reverse can happen when returning to user mode. The patch adds _cxsf to all the msr instruction without the field specifier.

22 years ago[ARM PATCH] 1964/1: Wrong cache block operations checking
Catalin Marinas [Thu, 5 Aug 2004 21:51:47 +0000 (22:51 +0100)]
[ARM PATCH] 1964/1: Wrong cache block operations checking

Patch from Catalin Marinas

The "err" is rotated in the blockops_check() function and all the error bits are cleared, the subsequent conditions being always true.

22 years ago[PATCH] simple_read_buffer() helper function
Alexander Viro [Thu, 5 Aug 2004 10:39:48 +0000 (03:39 -0700)]
[PATCH] simple_read_buffer() helper function

A number of drivers or special virtual devices really just want their
"read()" function to populate user space from some internal buffer.

This adds such a helper function - "simple_read_from_buffer()" - and
converts several ->read() instances to use it.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] multipath readahead fix
Jens Axboe [Thu, 5 Aug 2004 05:13:29 +0000 (22:13 -0700)]
[PATCH] multipath readahead fix

For requests marked read-ahead, it can legitimately fail without it being a
path problem.  So don't fail a path just because this happens (can be the
atomic request allocation going nuts, for instance), or all paths will
quickly go away.

Cc: <neilb@cse.unsw.edu.au>
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] md multipathing fixes
Heiko Carstens [Thu, 5 Aug 2004 05:05:56 +0000 (22:05 -0700)]
[PATCH] md multipathing fixes

I tried to get multipathing failover running and failed. It seems to be
that there are two bugs in multipath.c :

- If a path/request fails mp_bh->path doesn't get updated to the new
  path.  Thus multipath_end_request will access a NULL pointer if a
  redirected request returns.

- After fixing this I experienced several other errors.  First of all in
  bio->bi_flags the BIO_UPTODATE flag is not set when redirecting a
  request.

  Causing the md driver to think that every redirected request failed
  when it returns.  Since that alone didn't fix the problems, I simply
  copied the master_bio again and it looks like everything seems to work.

Cc: <neilb@cse.unsw.edu.au>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Drop asm i586 AES code.
James Morris [Thu, 5 Aug 2004 05:05:44 +0000 (22:05 -0700)]
[PATCH] Drop asm i586 AES code.

This patch reverts the i586 AES module.  A new one should be ready soon.

Signed-off-by: James Morris <jmorris@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge shinybook.infradead.org:/home/dwmw2/bk/linus-2.5
David Woodhouse [Thu, 5 Aug 2004 04:53:26 +0000 (00:53 -0400)]
Merge shinybook.infradead.org:/home/dwmw2/bk/linus-2.5
into shinybook.infradead.org:/home/dwmw2/bk/mtd-2.6

22 years agogeneric_defconfig update. I just ran 'make oldconfig' against the existing
Jesse Barnes [Wed, 4 Aug 2004 19:54:18 +0000 (19:54 +0000)]
generic_defconfig update.  I just ran 'make oldconfig' against the existing
one and turned on a few new options (some of which Altix needs).

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agoUsing CONFIG_IA64_HP_ZX1 on an sx1000 system setup w/ multiple NUMA
Alex Williamson [Wed, 4 Aug 2004 18:26:09 +0000 (18:26 +0000)]
Using CONFIG_IA64_HP_ZX1 on an sx1000 system setup w/ multiple NUMA
nodes (configured for cell local memory) currently crashes because
MAX_NUMNODES defaults to 1.  The patch below sets up things to make this
work.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agoProvide comand line keyword "nomca" to turn off mca processing in kernel.
Tony Luck [Wed, 4 Aug 2004 18:10:14 +0000 (18:10 +0000)]
Provide comand line keyword "nomca" to turn off mca processing in kernel.
Initial patch by Jesse Barnes, fixed by Ken Chen, rescued from
obscurity by Sourav Sen.

Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agoSet up CMC/CPE polling *before* enabling CMCI/CPEI interrupts to avoid
Hidetoshi Seto [Wed, 4 Aug 2004 17:55:40 +0000 (17:55 +0000)]
Set up CMC/CPE polling *before* enabling CMCI/CPEI interrupts to avoid
situation where a flood of errors prevents boot.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agoCset exclude: davem@nuts.davemloft.net|ChangeSet|20040804202342|60209
David S. Miller [Wed, 4 Aug 2004 09:18:09 +0000 (02:18 -0700)]
Cset exclude: davem@nuts.davemloft.net|ChangeSet|20040804202342|60209

22 years ago[PKT_SCHED]: Move sch_atm over to qdisc_priv().
David S. Miller [Wed, 4 Aug 2004 06:58:33 +0000 (23:58 -0700)]
[PKT_SCHED]: Move sch_atm over to qdisc_priv().

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Cache align qdisc data.
Stephen Hemminger [Wed, 4 Aug 2004 06:40:06 +0000 (23:40 -0700)]
[PKT_SCHED]: Cache align qdisc data.

This patch has qdisc code use the same interface as the
netdevice code to cache align the object private data.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Fix q_idx calculation in tc_dump_qdisc.
Patrick McHardy [Wed, 4 Aug 2004 06:31:56 +0000 (23:31 -0700)]
[PKT_SCHED]: Fix q_idx calculation in tc_dump_qdisc.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Use double-linked list for dev->qdisc_list
Patrick McHardy [Wed, 4 Aug 2004 06:30:46 +0000 (23:30 -0700)]
[PKT_SCHED]: Use double-linked list for dev->qdisc_list

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[IPV4/6]: NULL out sk_sndmsg_{page,off} in flush_pending_frames not append_data.
David S. Miller [Wed, 4 Aug 2004 06:23:42 +0000 (23:23 -0700)]
[IPV4/6]: NULL out sk_sndmsg_{page,off} in flush_pending_frames not append_data.

Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[BRIDGE]: rmmod device while bridge is down fails
Stephen Hemminger [Wed, 4 Aug 2004 02:47:01 +0000 (19:47 -0700)]
[BRIDGE]: rmmod device while bridge is down fails

The changes to bridge notifier to handle link state changes introduced
a bug. The case of device unregistering while bridge is down was no
longer being handled. Add comment so maintainer doesn't forget.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Remove useless noop_qdisc assignments in destroy functions
Patrick McHardy [Wed, 4 Aug 2004 02:35:27 +0000 (19:35 -0700)]
[PKT_SCHED]: Remove useless noop_qdisc assignments in destroy functions

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: remove unneccessary checks for qdisc->dev
Patrick McHardy [Wed, 4 Aug 2004 02:33:23 +0000 (19:33 -0700)]
[PKT_SCHED]: remove unneccessary checks for qdisc->dev

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Refcount qdisc->dev for __qdisc_destroy rcu-callback
Patrick McHardy [Wed, 4 Aug 2004 02:24:45 +0000 (19:24 -0700)]
[PKT_SCHED]: Refcount qdisc->dev for __qdisc_destroy rcu-callback

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years ago[PKT_SCHED]: Fix locking in __qdisc_destroy rcu-callback
Patrick McHardy [Wed, 4 Aug 2004 02:23:36 +0000 (19:23 -0700)]
[PKT_SCHED]: Fix locking in __qdisc_destroy rcu-callback

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agosgi_io_init.c:
Jesse Barnes [Tue, 3 Aug 2004 23:46:56 +0000 (23:46 +0000)]
sgi_io_init.c:
  Mark per_hub_init as __init and remove an unnecessary extern declaration of it
  in sgi_io_init.c.  This has the effect of killing a warning in the compile of
  that file.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agosba_iommu.c:
Bjorn Helgaas [Tue, 3 Aug 2004 23:27:28 +0000 (23:27 +0000)]
sba_iommu.c:
  REO/Grande defect AR2305 can cause TLB fetch timeouts if entries
  are purged while in use.  Round up IOVA allocations to power-of-two
  boundaries to prevent this.  This is originally due to Alex Williamson.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agocyclone.h, cyclone.c, acpi.c, Kconfig:
Bjorn Helgaas [Tue, 3 Aug 2004 23:21:13 +0000 (23:21 +0000)]
cyclone.h, cyclone.c, acpi.c, Kconfig:
  Make cyclone_setup() take no args, rather than an ignored "char *"
  and return void.  Fix typos and whitespace.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agomachvec.h:
Bjorn Helgaas [Tue, 3 Aug 2004 23:09:49 +0000 (23:09 +0000)]
machvec.h:
irq.c:
  Fix IRQ type in platform irq_to_vector functions.  Should be
  "unsigned int", but some places were "u8".

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Tue, 3 Aug 2004 11:12:02 +0000 (04:12 -0700)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[PKT_SCHED]: netem limit not returned correctly
Stephen Hemminger [Tue, 3 Aug 2004 07:13:23 +0000 (00:13 -0700)]
[PKT_SCHED]: netem limit not returned correctly

Minor leftover from earlier code.  Netem scheduler is not reporting
correct limit (ie for 'tc qdisc ls') because it is returning devices limit
not it's own.

Should apply to 2.4 as well (with fuzz)

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
22 years agoLinux 2.6.8-rc3 v2.6.8-rc3
Linus Torvalds [Tue, 3 Aug 2004 07:11:41 +0000 (00:11 -0700)]
Linux 2.6.8-rc3

22 years ago[PATCH] ppc64: Start the FCU in therm_pm72.c
Benjamin Herrenschmidt [Tue, 3 Aug 2004 03:42:46 +0000 (20:42 -0700)]
[PATCH] ppc64: Start the FCU in therm_pm72.c

Some G5 recent powermacs start with the fan control unit (FCU) disabled,
by the firmware, causing the thermal control driver to break. We have to
enable it before starting the feedback loops that set the fan speeds.
This patch adds the code to start the FCU.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: Fix problem with spurrious edge interrupts on old
Benjamin Herrenschmidt [Mon, 2 Aug 2004 17:50:08 +0000 (10:50 -0700)]
[PATCH] ppc32: Fix problem with spurrious edge interrupts on old

On old powermacs, it's possible that we get a stale edge interrupt when
doing request_irq(), that typically happens with the DBDMA controller
interrupts when the device was used by the firmware for booting.

I just tracked down a nasty memory corruption problem where that was
causing the bmac driver to try to process packets before the driver
internal data structures were properly initialized.

While I agree that the driver should (and will) be made more robust to
such things, Paulus and I decided that it makes little sense to keep
track of an "old" edge interrupt that happens before a driver does
request_irq.  (On those powermacs, those are only the DBDMA interrupts
anyway, and none of the DBDMA users will care).

This patch implements a "startup" handler for the old Apple PIC that
will "ack" pending edge interrupts before unmasking, thus preventing
those stale interrupts to be delivered.

It also "fixes" the ppc32 irq core to call the startup() callback when
available instead of just calling enable().

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] bio_copy_user() cleanups and fixes
Jens Axboe [Mon, 2 Aug 2004 16:29:20 +0000 (09:29 -0700)]
[PATCH] bio_copy_user() cleanups and fixes

blk_rq_map_user() is a bit of a hack currently, since it drops back to
kmalloc() if bio_map_user() fails.  This is unfortunate since it means we
do no real segment or size checking (and the request segment counts contain
crap, already found one bug in a scsi lld).  It's also pretty nasty for >
PAGE_SIZE requests, as we attempt to do higher order page allocations.
Even worse still, ide-cd will drop back to PIO for non-sg/bio requests.
All in all, very suboptimal.

This patch adds bio_copy_user() which simply sets up a bio with kernel
pages and copies data as needed for reads and writes.  It also changes
bio_map_user() to return an error pointer like bio_copy_user(), so we can
return something sane to the user instead of always -ENOMEM.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Mon, 2 Aug 2004 12:53:58 +0000 (05:53 -0700)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux