]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] dm: stripe width fix
Andrew Morton [Fri, 12 Mar 2004 00:14:23 +0000 (16:14 -0800)]
[PATCH] dm: stripe width fix

dm-stripe.c: The stripe width must be at least the page size.

22 years ago[PATCH] dm: list targets cmd
Andrew Morton [Fri, 12 Mar 2004 00:14:14 +0000 (16:14 -0800)]
[PATCH] dm: list targets cmd

From: Joe Thornber <thornber@redhat.com>

List targets ioctl.  [Patrick Caulfield]

22 years ago[PATCH] dm: default queue limits
Andrew Morton [Fri, 12 Mar 2004 00:14:02 +0000 (16:14 -0800)]
[PATCH] dm: default queue limits

From: Joe Thornber <thornber@redhat.com>

Fill in missing queue limitations when table is complete instead of enforcing
the "default" limits on every dm device.  Problem noticed by Mike Christie.

[Christophe Saout]

22 years ago[PATCH] dm: list_for_each_entry audit
Andrew Morton [Fri, 12 Mar 2004 00:13:51 +0000 (16:13 -0800)]
[PATCH] dm: list_for_each_entry audit

From: Joe Thornber <thornber@redhat.com>

Audit for list_for_each_*entry*

22 years ago[PATCH] dm: endio method
Andrew Morton [Fri, 12 Mar 2004 00:13:40 +0000 (16:13 -0800)]
[PATCH] dm: endio method

From: Joe Thornber <thornber@redhat.com>

Add an endio method to targets.  This method is allowed to request another
shot at failed ios (think multipath).  Context can be passed between the map
method and the endio method.

22 years ago[PATCH] Allow X86_MCE_NONFATAL to be a module
Andrew Morton [Fri, 12 Mar 2004 00:13:26 +0000 (16:13 -0800)]
[PATCH] Allow X86_MCE_NONFATAL to be a module

From: Herbert Xu <herbert@gondor.apana.org.au>

By allowing X86_MCE_NONFATAL to be a module, it can be included in
distribution kernels without upsetting those with strange hardware.

22 years ago[PATCH] i386 very early memory detection cleanup patch
Andrew Morton [Fri, 12 Mar 2004 00:13:16 +0000 (16:13 -0800)]
[PATCH] i386 very early memory detection cleanup patch

From: "H. Peter Anvin" <hpa@zytor.com>

This patch cleans up the very early memory setup on the i386 platform.  In
particular, it removes the hard-coded 8 MB limit completely by dynamically
creating the early-boot pagetables rather than having them hard coded.

While I was at it, I changed head.S so that it always sets up a local GDT;
this means among other things that SMP and VISWS are no longer special
cases, and is conceptually cleaner to boot.  The VISWS people have
confirmed it works on VISWS.

It also uses a separate entrypoint for non-boot processors since this is
completely kernel-internal anyway.  This eliminates the need to set %bx on
boot.  (If you think this is a bad idea I can eliminate this change; it
just seemed cleaner to me to do it this way.)

Additionally, zero bss with rep;stosl rather that rep;stosb.

22 years ago[PATCH] genrtc: cleanups
Andrew Morton [Fri, 12 Mar 2004 00:13:07 +0000 (16:13 -0800)]
[PATCH] genrtc: cleanups

From: "Randy.Dunlap" <rddunlap@osdl.org>

From: Luiz Fernando Capitulino <lcapitulino@prefeitura.sp.gov.br>

remove ifdef/endif in rtc_generic_init().
use returned error code;

22 years ago[PATCH] remove __io_virt_debug
Andrew Morton [Fri, 12 Mar 2004 00:12:57 +0000 (16:12 -0800)]
[PATCH] remove __io_virt_debug

From: Brian Gerst <bgerst@didntduck.org>

Drivers should all be converted to use ioremap() or isa_*() by now.

22 years ago[PATCH] teach /proc/kmsg about O_NONBLOCK
Andrew Morton [Fri, 12 Mar 2004 00:12:47 +0000 (16:12 -0800)]
[PATCH] teach /proc/kmsg about O_NONBLOCK

If there's nothing available and the file is O_NONBLOCK, return -EAGAIN.

This is a bit grubby - really we should push the file* down into do_syslog()
and handle it inside the spinlock.

22 years ago[PATCH] time interpolator fix
Andrew Morton [Fri, 12 Mar 2004 00:12:38 +0000 (16:12 -0800)]
[PATCH] time interpolator fix

From: john stultz <johnstul@us.ibm.com>

In developing the ia64-cyclone patch, which implements a cyclone based time
interpolator, I found the following bug which could cause time
inconsistencies.

In update_wall_time_one_tick(), which is called each timer interrupt, we
call time_interpolator_update(delta_nsec) where delta_nsec is approximately
NSEC_PER_SEC/HZ.  This directly correlates with the changes to xtime which
occurs in update_wall_time_one_tick().

However in update_wall_time(), on a second overflow, we again call
time_interpolator_update(NSEC_PER_SEC).  However while the components of
xtime are being changed, the overall value of xtime does not (nsec is
decremented NSEC_PER_SEC and sec is incremented).  Thus this call to
time_interpolator_update is incorrect.

This patch removes the incorrect call to time_interpolator_update and was
found to resolve the time inconsistencies I had seen while developing the
ia64-cyclone patch.

22 years ago[PATCH] fb_console_init fix
Andrew Morton [Fri, 12 Mar 2004 00:12:26 +0000 (16:12 -0800)]
[PATCH] fb_console_init fix

From: James Simmons <jsimmons@infradead.org>

This patch fixes fb_console_init from being called twice.  I still need to
fix set_con2fb but this helps but this is still important to get in.

22 years ago[PATCH] read-only support for UFS2
Andrew Morton [Fri, 12 Mar 2004 00:12:15 +0000 (16:12 -0800)]
[PATCH] read-only support for UFS2

From: Niraj Kumar <niraj17@iitbombay.org>

This patch adds read-only support for ufs2 (used in FreeBSD 5.x) variant of
ufs filesystem.  For filesystem specific tools, see
http://ufs-linux.sourceforge.com .

22 years ago[PATCH] adaptive lazy readahead
Andrew Morton [Fri, 12 Mar 2004 00:12:05 +0000 (16:12 -0800)]
[PATCH] adaptive lazy readahead

From: Suparna Bhattacharya <suparna@in.ibm.com>

From: Ram Pai <linuxram@us.ibm.com>

Pipelined readahead behaviour is suitable for sequential reads, but not for
large random reads (typical of database workloads), where lazy readahead
provides a big performance boost.

One option (suggested by Andrew Morton) would be to have the application
pass hints to turn off readahead by setting the readahead window to zero
using posix_fadvise64(POSIX_FADV_RANDOM), and to special-case that in
do_generic_mapping_read to completely bypass the readahead logic and
instead read in all the pages needed directly.

This was the idea I started with.  But then I thought, we can do a still
better job ?  How about adapting the readahead algorithm to lazy-read or
non-lazy-read based on the past i/o patterns ?

The overall idea is to keep track of average number of contiguous pages
accessed in a file.  If the average at any given time is above ra->pages
the pattern is sequential.  If not the pattern is random.  If pattern is
sequential do non-lazy-readahead( read as soon as the first page in the
active window is touched) else do lazy-readahead.

I have studied the behaviour of this patch using my user-level simulator.
It adapts pretty well.

Note from Suparna: This appears to bring streaming AIO read performance for
large (64KB) random AIO reads back to sane values (since the lazy readahead
backout in the mainline).

22 years ago[PATCH] readdir() cleanups
Andrew Morton [Fri, 12 Mar 2004 00:11:54 +0000 (16:11 -0800)]
[PATCH] readdir() cleanups

From: <viro@parcelfarce.linux.theplanet.co.uk>

cramfs and freevxfs explicitly mark themselves readonly (as other r/o fs
do).

afs marked noatime (ACKed by maintainer)

filesystems that do not do update_atime() in their ->readdir() had been
explicitly marked nodiratime.  NOTE: cifs, coda and ncpfs almost certainly
need full noatime as we currently have in nfs and afs.

update_atime() call shifted to callers of ->readdir() and out of
->readdir() instances.  Bugs caught:

  dcache_readdir() updated atime only if it reached EOF.

  bfs_readdir() - ditto.

  qnx4_readdir() - ditto.

22 years ago[PATCH] Clean up sys_ioperm stubs
Andrew Morton [Fri, 12 Mar 2004 00:11:41 +0000 (16:11 -0800)]
[PATCH] Clean up sys_ioperm stubs

From: Brian Gerst <bgerst@didntduck.org>

Remove stubs for sys_ioperm for non-x86 arches, using sys_ni_syscall
instead where applicable.  Support for sys_ioperm is unconditionally no for
non-x86 arches.

22 years ago[PATCH] ppc64: fix initialisation of NUMA arrays
Andrew Morton [Fri, 12 Mar 2004 00:11:31 +0000 (16:11 -0800)]
[PATCH] ppc64: fix initialisation of NUMA arrays

From: Anton Blanchard <anton@samba.org>

We were hitting problems on machines with cpu_possible != cpu_online when
NUMA was enabled.  The debug checks would trip during scheduler init
because we iterate through all possible cpus whereas we only set up NUMA
information for online cpus.

Longer term we should have a cpu_up hook which sets up its NUMA information
but for now we initalise all possible cpus and memory to node 0.

22 years ago[PATCH] print kernel version in oops messages
Andrew Morton [Fri, 12 Mar 2004 00:11:20 +0000 (16:11 -0800)]
[PATCH] print kernel version in oops messages

From: Arjan van de Ven <arjanv@redhat.com>

Unfortunatly a large portion of the oops reports lack the basic
information about what kernel version the oops is for; it's trivial to just
print this in the oops as well to improve the usefulness of bugreports...

22 years ago[PATCH] ppc32: Fix G5 config space access lockup
Benjamin Herrenschmidt [Thu, 11 Mar 2004 23:58:24 +0000 (15:58 -0800)]
[PATCH] ppc32: Fix G5 config space access lockup

Fix a typo in the code that prevents lockup on config space access
to sleeping devices on ppc32/G5. Please apply.

22 years ago[PATCH] fix ppc64 in kernel syscalls
Anton Blanchard [Thu, 11 Mar 2004 23:57:24 +0000 (15:57 -0800)]
[PATCH] fix ppc64 in kernel syscalls

Thanks to some great debugging work by Olaf Hering and Marcus Meissner
it has been noticed that the current ppc64 syscall code is corrupting
4 bytes past errno. Why we even bothered to set errno beats me, its
unusable in the kernel.

Since we had to reinstate the inline syscall code we can go back to
using it for those few syscalls that we call. Especially now with
Randy's syscall prototype cleanup we should be calling them directly
but we can do that sometime later.

22 years ago[PATCH] CDROMREADAUDIO dma support
Jens Axboe [Thu, 11 Mar 2004 23:56:51 +0000 (15:56 -0800)]
[PATCH] CDROMREADAUDIO dma support

This small patch builds on top of the blk_rq_map_user() patch just sent,
and enables us to easily support DMA for CDROMREADAUDIO cdda extraction.
It's quite amazing how much cool stuff you can with the new block layer
:-)

Patch has intelligent fall back from multi frame dma to single frame
dma, and further to old-style pio ripping in case of hardware problems.

22 years ago[PATCH] user data -> request mapping
Jens Axboe [Thu, 11 Mar 2004 23:56:40 +0000 (15:56 -0800)]
[PATCH] user data -> request mapping

This patch allows you to map a request with user data for io, similarly
to what you can do with bio_map_user() already to a bio. However, this
goes one step further and populates the request so the user only has to
fill in the cdb (almost) and put it on the queue for execution. Patch
converts sg_io() to use it, next patch I'll send adapts cdrom layer to
use it for zero copy cdda dma extraction.

22 years ago[PATCH] fix PPC64 iSeries virtual console devices
Stephen Rothwell [Thu, 11 Mar 2004 23:56:29 +0000 (15:56 -0800)]
[PATCH] fix PPC64 iSeries virtual console devices

While playing with udev, I discovered that the virtual console
devices on iSeries had there minor numbers off by one i.e. /dev/tty1
was minor 2!

This fixes it.

22 years ago[PATCH] Fix a 64bit bug in kobject module request
Andi Kleen [Wed, 10 Mar 2004 13:02:29 +0000 (05:02 -0800)]
[PATCH] Fix a 64bit bug in kobject module request

From Takashi Iwai

kobj_lookup had a 64bit bug, which caused the request of a unknown
character device to burn CPU instead of failing quickly.

22 years ago[PATCH] x86-64 merge for 2.6.4
Andi Kleen [Wed, 10 Mar 2004 13:02:19 +0000 (05:02 -0800)]
[PATCH] x86-64 merge for 2.6.4

The biggest new feature is fixed 32bit vsyscall (SYSCALL+SYSENTER)
support, mostly from Jakub Jelinek.  This increases 32bit syscall
performance greatly (latency halved and better).  The SYSENTER for Intel
support required some infrastructure changes, but seems to work now too.

The 64bit vsyscall vtime() just references xtime.tv_sec now.  This
should make it a lot faster too.

A fix for some Intel IA32e systems.  Also a few long standing bugs in
NMI like exception handlers were fixed.

And a lot of other bug fixes.

Full changeLog:
 - Clean up 32bit address room limit handling, fix 3gb personality
 - Move memcpy_{from,to}io export to ksyms.c file. This seems to work
   around a toolchain bug (Andreas Gruenbacher)
 - Update defconfig
 - ACPI merges from i386 (SBF should work now, acpi=strict)
 - Implement mmconfig support based on i386 code (untested)
 - Fix i386/x86-64 pci source file sharing
 - Implement ptrace access for 32bit vsyscall page
 - Always initialize all 32bit SYSENTER/SYSCALL MSRs.
 - Export run time cache line size to generic kernel
 - Remove explicit CPUID in ia32 syscall code
 - Fill in most of boot_cpu_data early
 - Remove unused PER_LINUX32 setup
 - Fix syscall trace in fast 32bit calls (Suresh B. Siddha)
 - Tighten first line of the oops again.
 - Set up ptrace registers correctly for debug,ss,double fault exceptions
 - Fix 64bit bug in sys_time64
 - Optimize time syscall/vsyscall to only read xtime
 - Fix csum_partial_copy_nocheck
 - Remove last traces of FPU emulation
 - Check properly for rescheduling in exceptions with own stack
 - Harden exception stack entries (#SS,#NMI,#MC,#DF,#DB) against bogus GS
 - Use an exception stack for machine checks
 - Handle TIF_SINGLESTEP properly in kernel exit
 - Add exception stack for debug handler
 - Disable X86_HT for Opteron optimized builds because it pulls in ACPI_BOOT
 - Fix CONFIG_ACPI_BOOT compilation without CONFIG_ACPI
 - Fix eflags handling in SYSENTER path (Jakub Jelinek)
 - Use atomic counter for enable/disable_hlt
 - Support 32bit SYSENTER vsyscall too (Jakub Jelinek)
 - Don't redefine Dprintk
 - Change some cpu/apic id arrays to char
 - Support arbitary cpu<->apicid in hard_smp_processor_id (Surresh B Sidda)
 - Move K8 erratum #100 workaround into slow path of page fault handler.
 - Fix 32bit cdrom direct access ioctls (Jens Axboe)
 - Enable 32bit vsyscalls by default
 - Fix 32bit vsyscalls (Jakub Jelinek)

22 years ago[PATCH] G5 temperature control update
Benjamin Herrenschmidt [Wed, 10 Mar 2004 12:10:29 +0000 (04:10 -0800)]
[PATCH] G5 temperature control update

This makes the temperature control code more robust, putting less
pressure on i2c, and work around occasional misconfiguration of the ADC
chips leading to incorrect temperature readings.

22 years agoLinux 2.6.4 v2.6.4
Linus Torvalds [Wed, 10 Mar 2004 10:52:41 +0000 (02:52 -0800)]
Linux 2.6.4

22 years ago[PATCH] Fix lockup accessing config space on G5
Benjamin Herrenschmidt [Wed, 10 Mar 2004 10:07:03 +0000 (02:07 -0800)]
[PATCH] Fix lockup accessing config space on G5

This patch fixes the code that workaround lockups when accessing
the config space of devices on K2 when they are shut down. The
code was there but in the wrong place ;) And a typo prevented the
ohci1394 version of it from working.

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Wed, 10 Mar 2004 09:57:59 +0000 (01:57 -0800)]
Merge bk://gkernel.bkbits.net/net-drivers-2.5
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] pcnet32.c oops
Don Fry [Wed, 10 Mar 2004 15:32:25 +0000 (10:32 -0500)]
[PATCH] pcnet32.c oops

When adding an additional device, a variable which has been removed
is accessed.  Adding the first device or a 4-port card works.
Adding a second device was not done in PCI hot plug testing.  Now
tested on IA32.

22 years agoMake bad_page() print out the page address.
Linus Torvalds [Wed, 10 Mar 2004 09:11:46 +0000 (01:11 -0800)]
Make bad_page() print out the page address.

The bug turned out to be memory corruption by DMA, and
the corrupted address made it that much more obvious.

22 years ago[PATCH] Proper OHCI unlink fix.
David Brownell [Wed, 10 Mar 2004 08:42:49 +0000 (00:42 -0800)]
[PATCH] Proper OHCI unlink fix.

Getting some blood sugar made the real fix for that become
obvious! This replaces the preceding TEMPORARY hack.

Only unlink EDs that aren't already being unlinked!

Duh.

22 years ago[PATCH] USB: fix OHCI list corruption
David Brownell [Wed, 10 Mar 2004 07:31:03 +0000 (23:31 -0800)]
[PATCH] USB: fix OHCI list corruption

Fix some OHCI TD list corruption issues:

    - Don't rewrite HC registers holding ED pointers until the HC
      had a good chance to finish using them.

    - Don't ever modify ed->hwTailP

Adds text describing the different ED states.

Adds TEMPORARY hack that may make a "rm_list becomes circular" bug
continuable.

22 years agoRevert 8259 timer ack workaround
Linus Torvalds [Wed, 10 Mar 2004 07:12:33 +0000 (23:12 -0800)]
Revert 8259 timer ack workaround

This patch was trying to work around buggy SMM bios but causes problems
by not deasserting NMI irq line (reported by Thomas Schlicht) for some
integrated local apic.

This patch was written originally as an optimization (with the side
effect to fix those bugged bios) but was never applied to 2.4 tree.

The rational was: fix your bios instead.

Cset exclude: akpm@osdl.org|ChangeSet|20040219045328|16041

22 years ago[PATCH] tty oops fix
Andrew Morton [Wed, 10 Mar 2004 02:15:22 +0000 (18:15 -0800)]
[PATCH] tty oops fix

From: William Lee Irwin III <wli@holomorphy.com>

Remember to invalidate the task->tty of threads, otherwise prod_pid_stat()
later stumbles over the dangling pointers and crashes.

22 years agoMake bad_page() print out information about who triggered it.
Linus Torvalds [Wed, 10 Mar 2004 01:32:40 +0000 (17:32 -0800)]
Make bad_page() print out information about who triggered it.

The condition still seems to happen on ppc64.

22 years agoRemove 'const' from min/max, to avoid gcc warning about double usage.
Linus Torvalds [Wed, 10 Mar 2004 00:45:53 +0000 (16:45 -0800)]
Remove 'const' from min/max, to avoid gcc warning about double usage.

22 years ago[PATCH] ncpfs fails to correctly retry requests on timeout
Petr Vandrovec [Tue, 9 Mar 2004 23:58:42 +0000 (15:58 -0800)]
[PATCH] ncpfs fails to correctly retry requests on timeout

sock_sendmsg() modifies iovec passed to it - it sets all length members of
iovec array to zero on success transmission (and even on failed if it
fails after iovec copy, but...) and advances pointers to point at the end
of buffers used. This has an unfortunate effect that ncpfs's retry on
failure does not work for IPX/UDP connections - kernel refused to do anything
because length from iovec was 0 while length passed to sock_sendmsg() was
correct.

This simple fix gets rid of a problem by creating temporary iovec copy, which can
sock_sendmsg destroy if it has such wish.

22 years ago[PATCH] bttv input update
Gerd Knorr [Tue, 9 Mar 2004 23:58:32 +0000 (15:58 -0800)]
[PATCH] bttv input update

This adds infrared remote support for a few more bt878-based TV cards.

22 years ago[PATCH] set request fastfail bit correctly
Jens Axboe [Tue, 9 Mar 2004 23:58:22 +0000 (15:58 -0800)]
[PATCH] set request fastfail bit correctly

From Mike Christie <michaelc@cs.wisc.edu>

The first three bio and request flags are no longer identical.  The bio
barrier and rw flags are getting set in __make_request and get_request
respectively, and failfast is getting left out.

This sets the request's failfast flag in __make_request when the bio's
flag is set.

22 years ago[PATCH] ppc64 POWER3 segment table fix
Anton Blanchard [Tue, 9 Mar 2004 23:58:13 +0000 (15:58 -0800)]
[PATCH] ppc64 POWER3 segment table fix

The ppc64 fix last week (enforcing permissions on the kernel when
accessing userspace pages) uncovered a bug on POWER3/RS64. We werent
zeroing the segment table entry before overwriting it and it was possible
for the ks bit to be set on a kernel segment.

The VSID mask was also changed to match reality (we only use 13 bits).

22 years agoMerge bk://are.twiddle.net/axp-2.6
Linus Torvalds [Tue, 9 Mar 2004 23:44:05 +0000 (15:44 -0800)]
Merge bk://are.twiddle.net/axp-2.6
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years ago[ALPHA] Add stat64 syscalls.
Richard Henderson [Tue, 9 Mar 2004 13:05:04 +0000 (05:05 -0800)]
[ALPHA] Add stat64 syscalls.

22 years ago[PATCH] ppc64: Let OF initialize all displays in the system
Benjamin Herrenschmidt [Tue, 9 Mar 2004 12:14:48 +0000 (04:14 -0800)]
[PATCH] ppc64: Let OF initialize all displays in the system

This patch reworks the early boot calls to OF to initialize displays.

All present displays are now initialized in reverse order so the
OF console stays on the first one. Initializing them all is necessary
for dual head configurations as we need OF driver to properly setup
the secondary TMDS of the video card, XFree isn't able to do that
currently

22 years ago[PATCH] ppc64: Fix occasional crash at boot in OF interface
Benjamin Herrenschmidt [Tue, 9 Mar 2004 12:14:38 +0000 (04:14 -0800)]
[PATCH] ppc64: Fix occasional crash at boot in OF interface

The assembly code used to callback into Open Firmware client
interface in 32 bits mode used to backup the stack pointer in
the SPRG2 register.

That upsets Apple's implementation of Open Firmware significantly
and maybe others, causing them to crash in _some_ operations,
apparently the trigger is to cause a segment or hash table
fault, typically happens when letting that code initialize the
second display.

This patch fixes it, along with other cleanups of that asm code,
it did unnecessary register restores and backing up the stack
pointer is actually useless anyway.

22 years ago[PATCH] Fix PCI<->OF matching on G5 AGP bus
Benjamin Herrenschmidt [Tue, 9 Mar 2004 10:55:34 +0000 (02:55 -0800)]
[PATCH] Fix PCI<->OF matching on G5 AGP bus

Strangely, I though I fixed that a long time ago, but it was still
broken in the current tree...

Drivers like radeonfb fail to find the OF device matching a given PCI
device on the G5 AGP bus because of some bus renumbering tricks.  This
patch fixes the problem by fixing the bus numbers in the OF node.  This
corrects radeonfb and other drivers looking for EDID / PLL datas in the
OF node.

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Tue, 9 Mar 2004 09:03:55 +0000 (01:03 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years agoMake sure to include syscalls.h to get proper prototypes.
Linus Torvalds [Tue, 9 Mar 2004 09:03:28 +0000 (01:03 -0800)]
Make sure to include syscalls.h to get proper prototypes.

Especially with REGPARM these things actually matter.

22 years agoLinux 2.6.4-rc3 v2.6.4-rc3
Linus Torvalds [Tue, 9 Mar 2004 07:55:49 +0000 (23:55 -0800)]
Linux 2.6.4-rc3

22 years ago[PATCH] pmac_zilog 2/2 : Fix various bugs
Benjamin Herrenschmidt [Tue, 9 Mar 2004 07:47:33 +0000 (23:47 -0800)]
[PATCH] pmac_zilog 2/2 : Fix various bugs

This fixes possible lockups in pmac_zilog when beeing flooded with
incoming data (not that other serial drivers share the same race, I told
Russel about it already).  It also fixes some SCC initialization
problems, add some PM callback, and fix the irda setup code.

22 years ago[PATCH] pmac_zillog 1/2 : Cosmetic only, change "up" to "uap" to avoid collision
Benjamin Herrenschmidt [Tue, 9 Mar 2004 07:47:23 +0000 (23:47 -0800)]
[PATCH] pmac_zillog 1/2 : Cosmetic only, change "up" to "uap" to avoid collision

This does cosmetic changes the pmac_zilog, changing the use of "up" as
an identifier in favor "uap" to avoid collision with semaphores, use
proper debug macros, and a few other cosmetic bits.

22 years ago[PATCH] Print function names during do_initcall debugging
Andrew Morton [Tue, 9 Mar 2004 07:47:12 +0000 (23:47 -0800)]
[PATCH] Print function names during do_initcall debugging

From Jan-Benedict Glaw <jbglaw@lug-owl.de>

22 years ago[IPV6]: Do not report {multi,any}cast in inet6_dump_ifaddr().
Olaf Kirch [Tue, 9 Mar 2004 07:26:52 +0000 (23:26 -0800)]
[IPV6]: Do not report {multi,any}cast in inet6_dump_ifaddr().

22 years ago[IPV4/IPV6]: Add missing kmalloc failure checks.
Krishna Kumar [Tue, 9 Mar 2004 07:24:55 +0000 (23:24 -0800)]
[IPV4/IPV6]: Add missing kmalloc failure checks.

22 years ago[IRDA]: Move last of irsyms.c to irmod.c
Jean Tourrilhes [Tue, 9 Mar 2004 05:40:15 +0000 (21:40 -0800)]
[IRDA]: Move last of irsyms.c to irmod.c

Original patch from Stephen Hemminger

Move last bits of code out of irsyms and onto irmod.c where
initialization happens.

Move irda_debug parameter out of irsyms.c into irmod.c
and make it a new style module parameter.

22 years ago[IRDA]: Move irda_param related exports out of irsyms.
Stephen Hemminger [Tue, 9 Mar 2004 05:37:29 +0000 (21:37 -0800)]
[IRDA]: Move irda_param related exports out of irsyms.

22 years ago[IRDA]: Move qos related exports out of irsyms.
Stephen Hemminger [Tue, 9 Mar 2004 05:36:57 +0000 (21:36 -0800)]
[IRDA]: Move qos related exports out of irsyms.

22 years ago[IRDA]: Make irda_get_mtt et al. inline and not defines for better type checking.
Stephen Hemminger [Tue, 9 Mar 2004 05:36:28 +0000 (21:36 -0800)]
[IRDA]: Make irda_get_mtt et al. inline and not defines for better type checking.

irda_device_setup can now be static, only called from alloc_irdadev.

22 years ago[IRDA]: More irlap exports out of irsyms.
Stephen Hemminger [Tue, 9 Mar 2004 05:35:32 +0000 (21:35 -0800)]
[IRDA]: More irlap exports out of irsyms.

22 years ago[IRDA]: Make irda_start_timer inline rather than exporting.
Stephen Hemminger [Tue, 9 Mar 2004 05:35:04 +0000 (21:35 -0800)]
[IRDA]: Make irda_start_timer inline rather than exporting.

22 years ago[IRDA]: Move crc16 exports out of irsyms.
Stephen Hemminger [Tue, 9 Mar 2004 05:34:28 +0000 (21:34 -0800)]
[IRDA]: Move crc16 exports out of irsyms.

Also, make type __u16 rather than unsigned short to
match input parameter.

22 years ago[IRDA]: Move async_wrap function exports out of irsyms.
Stephen Hemminger [Tue, 9 Mar 2004 05:33:26 +0000 (21:33 -0800)]
[IRDA]: Move async_wrap function exports out of irsyms.

22 years ago[IRDA]: Move irlmp routines out of irsyms.
Stephen Hemminger [Tue, 9 Mar 2004 05:32:46 +0000 (21:32 -0800)]
[IRDA]: Move irlmp routines out of irsyms.

Also, make get_{saddr,daddr} inline and rename
lmp_reasons to irlmp_reasons.

22 years ago[IRDA]: Move iriap routines out of irsyms, rename missing to irias_missing.
Stephen Hemminger [Tue, 9 Mar 2004 05:32:00 +0000 (21:32 -0800)]
[IRDA]: Move iriap routines out of irsyms, rename missing to irias_missing.

22 years ago[IRDA]: Move irttp exports out of irsyms.
Stephen Hemminger [Tue, 9 Mar 2004 05:31:15 +0000 (21:31 -0800)]
[IRDA]: Move irttp exports out of irsyms.

22 years ago[IRDA]: Move hashbin exports out of irsyms and into irqueue.
Stephen Hemminger [Tue, 9 Mar 2004 05:30:46 +0000 (21:30 -0800)]
[IRDA]: Move hashbin exports out of irsyms and into irqueue.

22 years ago[IRDA]: Flush irtty symbols that were exported but never used.
Jean Tourrilhes [Tue, 9 Mar 2004 05:30:09 +0000 (21:30 -0800)]
[IRDA]: Flush irtty symbols that were exported but never used.

22 years ago[IRDA]: Move proc_irda export out of irsyms.c into irproc.c
Stephen Hemminger [Tue, 9 Mar 2004 05:25:54 +0000 (21:25 -0800)]
[IRDA]: Move proc_irda export out of irsyms.c into irproc.c

22 years ago[PATCH] R128 DRI limits checking.
Dave Jones [Tue, 9 Mar 2004 01:09:21 +0000 (17:09 -0800)]
[PATCH] R128 DRI limits checking.

This got fixed in 2.4, but somehow got missed in 2.6.

22 years agoMerge.
Richard Henderson [Mon, 8 Mar 2004 16:23:58 +0000 (08:23 -0800)]
Merge.

22 years ago[PATCH] Clean up hotplug slab some more
Rusty Russell [Mon, 8 Mar 2004 14:49:26 +0000 (06:49 -0800)]
[PATCH] Clean up hotplug slab some more

This is a cleaner fix for the previous bogon fix.

22 years agoFix bogon in slab hotplug cleanup from Rusty.
Linus Torvalds [Mon, 8 Mar 2004 14:20:06 +0000 (06:20 -0800)]
Fix bogon in slab hotplug cleanup from Rusty.

22 years ago[PATCH] minor slab cleanups for hotplug CPUs
Rusty Russell [Mon, 8 Mar 2004 14:06:22 +0000 (06:06 -0800)]
[PATCH] minor slab cleanups for hotplug CPUs

- Move free_block prototype, and ac_entry and ac_data functions up in file.

- Use list_for_each_entry in cpuup_callback.

- Remove unneccessary g_cpucache_up in cpuup_callback.

- Make reap_timer_func take CPU number as data, and check if that is
  offline before rescheduing (noop without CONFIG_HOTPLUG_CPU).

22 years ago[PATCH] remove sparc64's num_possible_cpus()
Rusty Russell [Mon, 8 Mar 2004 14:06:12 +0000 (06:06 -0800)]
[PATCH] remove sparc64's num_possible_cpus()

Levent Serinol <levent.serinol@mynet.com> found that the hotplug cpu
patch broke Sparc64.  I introduced a num_possible_cpus(), which
Sparc64 already has.  Remove the Sparc64 one.

I also removed Sparc64's cpu_online() macro: it's in linux/cpumask.h
already.

22 years ago[PATCH] minor cleanups for hotplug CPUs
Rusty Russell [Mon, 8 Mar 2004 14:06:03 +0000 (06:06 -0800)]
[PATCH] minor cleanups for hotplug CPUs

Note that without CONFIG_HOTPLUG_CPU, online cpus == possible cpus, so
substitutions are a noop.

- Changes show_stat to print out stats for every possible cpu, not
  just online CPUs.

- Allocate mem in stat_open on possible, not online_cpus.

- Add conventient macros to cpu.h: especially cpu_is_offline() for
  testing if a cpu is still online.

- Add a num_possible_cpus() similar to num_online_cpus(), and define
  cpu_possible_mask for UP.

- Allow printk on down cpus once system is running.

- Mask cpumask with possible, not online cpus, for sys_getaffinity().

22 years ago[PATCH] introduce __drain_pages() to take a CPU number
Rusty Russell [Mon, 8 Mar 2004 14:05:53 +0000 (06:05 -0800)]
[PATCH] introduce __drain_pages() to take a CPU number

Extracts core of drain_pages() for hotcpu use.  Trivial.

Hotplug CPU needs to drain pages on a downed CPU (usually it's the
current cpu).  Introduce "__drain_pages", make the CPU an argument,
and expose it if CONFIG_HOTPLUG_CPU as well as CONFIG_PM.

22 years agoMerge bk://kernel.bkbits.net/jgarzik/via-crypto-2.5
Linus Torvalds [Mon, 8 Mar 2004 13:26:26 +0000 (05:26 -0800)]
Merge bk://kernel.bkbits.net/jgarzik/via-crypto-2.5
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge redhat.com:/spare/repo/linux-2.5
Jeff Garzik [Mon, 8 Mar 2004 18:52:07 +0000 (13:52 -0500)]
Merge redhat.com:/spare/repo/linux-2.5
into redhat.com:/spare/repo/via-crypto-2.5

22 years agoMerge bk://gkernel.bkbits.net/libata-2.5
Linus Torvalds [Mon, 8 Mar 2004 13:25:45 +0000 (05:25 -0800)]
Merge bk://gkernel.bkbits.net/libata-2.5
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years ago[libata sata_promise] provide proper SCSI completion function
Jeff Garzik [Mon, 8 Mar 2004 17:33:25 +0000 (12:33 -0500)]
[libata sata_promise] provide proper SCSI completion function

Promise driver uses a custom error handling function, so we need
the fix that was applied to the libata core:  the SCSI error
handling thread requires that we complete commands using a special
completion function, since the normal one doesn't work inside
the error handling thread.

22 years ago[libata ata_piix] Make sure annoying BIOSen don't disable our interrupts
Jeff Garzik [Mon, 8 Mar 2004 17:23:20 +0000 (12:23 -0500)]
[libata ata_piix] Make sure annoying BIOSen don't disable our interrupts

22 years ago[libata] Include linux/suspend.h
Jeff Garzik [Mon, 8 Mar 2004 17:06:54 +0000 (12:06 -0500)]
[libata] Include linux/suspend.h

22 years ago[PATCH] sata vs suspend-to-ram
Arjan van de Ven [Mon, 8 Mar 2004 16:56:57 +0000 (11:56 -0500)]
[PATCH] sata vs suspend-to-ram

The following patch is a very crude one to at least not make sata block
suspend-to-ram entirely. Probably you want more powermanagement handling as
well... but it's a start

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Mon, 8 Mar 2004 13:25:02 +0000 (05:25 -0800)]
Merge bk://gkernel.bkbits.net/net-drivers-2.5
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] pcnet32 transmit hang fix
Don Fry [Mon, 8 Mar 2004 16:23:53 +0000 (11:23 -0500)]
[PATCH] pcnet32 transmit hang fix

The pcnet32 driver will hang after a few frames (<30) with the 79C971
(and probably the 79C972 though I don't have the hardware to prove it).
By interrupting slightly more frequently the hang will not occur.

22 years ago[PATCH] Fix hp100 EISA probing
Marc Zyngier [Mon, 8 Mar 2004 16:23:45 +0000 (11:23 -0500)]
[PATCH] Fix hp100 EISA probing

>>>>> "Pawel" == Pawel Sokolowski <falcon@muflon.linux.pl> writes:

Pawel> This machine has RAM BIOS booted from floppy. I ran it and EISA
Pawel> configure utility to check this once more. Card is enabled and not
Pawel> locked. I added eisa_bus.enable_dev=2 parameter but it didn't help much.
Pawel> I'm getting:

Pawel> EISA: Probing bus 0 at eisa0
Pawel> EISA: Mainboard HWPC061 detected.
Pawel> EISA: slot 2 : HWP1940 detected (forced enabled).
Pawel> EISA: Detected 1 card.

Pawel> I added this final entry you mailed but nothing changed. Still - module
Pawel> loads and unloads cleanly and without any warnings on 2.6.4-rc1. But
Pawel> does nothing - not a single line in logs/dmesg after it's loaded. Card
Pawel> does not work after modprobe, I can't get interface up.

Ok, found it.

It really looks like the new EISA probing code in hp100 never got
tested, since a precious offset has disappeared during the rewriting
process.

Please note that you still need to enable the device by hand, since
your BIOS (or maybe the EISA CFG file, since I'm seeing the exact same
problem on a Compaq machine here) doesn't properly enable the card.

Here is what I'm getting on my test system :

EISA: Probing bus 0 at 0000:00:0f.0
EISA: Mainboard CPQ0541 detected.
EISA: slot 1 : DEC4250 detected.
EISA: slot 2 : UNB0048 detected.
EISA: slot 3 : HWP1940 detected (forced enabled).
hp100: Using (slow) programmed i/o mode.
hp100: at 0x3c38, IRQ 3, EISA bus, 128k SRAM (rx/tx 75%).
hp100: Adapter is attached to 10Mb/s network (10baseT).
EISA: slot 4 : NVL0701 detected.

22 years ago[PATCH] make module code use stop_machine.c
Rusty Russell [Mon, 8 Mar 2004 09:12:54 +0000 (01:12 -0800)]
[PATCH] make module code use stop_machine.c

Now we've moved the bogolock code out to stop_machine.c and
generalized it a little, use it in module.c and delete the duplicate
code there.

22 years ago[PATCH] stop_machine_run: Move Bogolock Code Out of module.c
Rusty Russell [Mon, 8 Mar 2004 09:12:45 +0000 (01:12 -0800)]
[PATCH] stop_machine_run: Move Bogolock Code Out of module.c

The "bogolock" code was introduced in module.c, as a way of freezing
the machine when we wanted to remove a module.  This patch moves it
out to stop_machine.c and stop_machine.h.

Since the code changes affinity and proirity, it's impolite to hijack
the current context, so we use a kthread.  This means we have to pass
the function rather than implement "stop_machine()" and
"restart_machine()".

22 years agoMerge bk://kernel.bkbits.net/davem/sparc-2.6
Linus Torvalds [Mon, 8 Mar 2004 08:07:55 +0000 (00:07 -0800)]
Merge bk://kernel.bkbits.net/davem/sparc-2.6
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge bk://kernel.bkbits.net/davem/net-2.6
Linus Torvalds [Mon, 8 Mar 2004 07:49:20 +0000 (23:49 -0800)]
Merge bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Mon, 8 Mar 2004 07:41:45 +0000 (23:41 -0800)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years agoMerge http://jfs.bkbits.net/linux-2.5
Linus Torvalds [Mon, 8 Mar 2004 07:29:40 +0000 (23:29 -0800)]
Merge http://jfs.bkbits.net/linux-2.5
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge jfs@jfs.bkbits.net:linux-2.5
Dave Kleikamp [Mon, 8 Mar 2004 10:54:41 +0000 (04:54 -0600)]
Merge jfs@jfs.bkbits.net:linux-2.5
into austin.ibm.com:/shaggy/bk/jfs-2.5

22 years agoJFS: Add lots of missing statics and remove dead code
Dave Kleikamp [Mon, 8 Mar 2004 09:55:54 +0000 (03:55 -0600)]
JFS: Add lots of missing statics and remove dead code

Submitted by Christoph Hellwig

22 years agoJFS: Avoid incrementing i_count on file create
Dave Kleikamp [Mon, 8 Mar 2004 08:40:34 +0000 (02:40 -0600)]
JFS: Avoid incrementing i_count on file create

Committing a transaction creating a file required insuring that the
inode stayed in cache until the journal was written to.  i_count was
being incremented until the transaction was complete.

However, incrementing i_count caused fcntl(S_SETLEASE) to fail.  I
reworked the transaction code so that the inode does not have to
stay in-memory while the transaction is being committed.

Thanks to Steve French for figuring out why setlease was failing.

22 years agoJFS: warn users of inaccessible file names
Dave Kleikamp [Mon, 8 Mar 2004 07:24:03 +0000 (01:24 -0600)]
JFS: warn users of inaccessible file names

When no iocharset is specified, the default action is to trivially
map each byte into the low order of the 16-bit unicode character.
If an existing name exists that has a non-zero high order byte, the
file will be inaccessible without remounting with iocharset set to
a charset that supports the character.

This patch will cause a warning to be issued to the syslog (no more
than five times) suggesting that the volume be mounted with
iocharset=utf8 in order to access the file.

22 years ago[ALPHA] Fix gcc 3.4 build problems.
Richard Henderson [Mon, 8 Mar 2004 06:58:28 +0000 (22:58 -0800)]
[ALPHA] Fix gcc 3.4 build problems.

22 years ago[PATCH] gcc-3.5 io_apic.c build fix
Andrew Morton [Mon, 8 Mar 2004 06:42:46 +0000 (22:42 -0800)]
[PATCH] gcc-3.5 io_apic.c build fix

From: Valdis.Kletnieks@vt.edu

The send_IPI_self() in smp.c was fixed but the one in io_apic.c was not.

22 years ago[PATCH] vma corruption fix
Andrew Morton [Mon, 8 Mar 2004 06:42:37 +0000 (22:42 -0800)]
[PATCH] vma corruption fix

From: Hugh Dickins <hugh@veritas.com>

Fixes bugzilla #2219

fork's dup_mmap leaves child mm_rb as copied from parent mm while doing all
the copy_page_ranges, and then calls build_mmap_rb without holding
page_table_lock.

try_to_unmap_one's find_vma (holding page_table_lock not mmap_sem) coming
on another cpu may cause mm mayhem.  It may leave the child's mmap_cache
pointing to a vma of the parent mm.

When the parent exits and the child faults, quite what happens rather
depends on what junk then inhabits vm_page_prot, which gets set in the page
table, with page_add_rmap adding the ptep, but junk pte likely to fail the
tests for page_remove_rmap.

Eventually the child exits, the page table is freed and try_to_unmap_one
oopses on null ptep_to_mm (but in a kernel with rss limiting, usually
page_referenced hits the null ptep_to_mm first).

This took me days and days to unravel!  Big thanks to Matthieu for
reporting it with a good test case.

22 years ago[PATCH] update filemap_flush() comments
Andrew Morton [Mon, 8 Mar 2004 06:42:27 +0000 (22:42 -0800)]
[PATCH] update filemap_flush() comments

It provides a best-effort, minimum-latency "get all the writeout
underway" function.