]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] clean up devices.txt
Andrew Morton [Tue, 16 Mar 2004 23:09:29 +0000 (15:09 -0800)]
[PATCH] clean up devices.txt

From: "Cagle, John (ISS-Houston)" <john.cagle@hp.com>

Patch 1 cleans up the format by making devices.txt easily parsable.
Mainly this involved adding the word "block" after all the block major
numbers since the previous format didn't include it.

22 years ago[PATCH] hugetlb_zero_setup() race fix
Andrew Morton [Tue, 16 Mar 2004 23:09:18 +0000 (15:09 -0800)]
[PATCH] hugetlb_zero_setup() race fix

Make the handling of the hugetlb-backed shm file's name counter SMP-safe.

(What stops hugetlb_zero_setup() racing with umount?)

22 years ago[PATCH] make config_max_raw_devices work
Andrew Morton [Tue, 16 Mar 2004 23:09:08 +0000 (15:09 -0800)]
[PATCH] make config_max_raw_devices work

From: "Kenneth Chen" <kenneth.w.chen@intel.com>

Even though there is a CONFIG_MAX_RAW_DEVS option, it doesn't actually
increase the number of raw devices beyond 256 because during the char
registration, it uses the standard register_chrdev() interface which has
hard coded 256 minor in it.  Here is a patch that fix this problem by using
register_chrdev_region() and cdev_(init/add/del) functions.

22 years ago[PATCH] x86 vsyscall alignment fix
Andrew Morton [Tue, 16 Mar 2004 23:08:58 +0000 (15:08 -0800)]
[PATCH] x86 vsyscall alignment fix

From: Andy Whitcroft <andyw@uk.ibm.com>

The vsyscall implementation for ia32 provides two different vsyscall pages;
one to use int80 and the other to use sysenter.  Each includes a common
signal trailer.  The kernel requires the alignment of routines in this
trailer be consistent in both copies.  However this is not enforced at
compile time.  Failure to maintain this alignment typically leads to an
obscure SIGSEGV in init during boot.  This critical alignment requirement
is not well documented.

Below is a patch to better document the alignment requirements and to
enforce the requirement.

22 years ago[PATCH] s390: tape driver fixes.
Andrew Morton [Tue, 16 Mar 2004 23:08:48 +0000 (15:08 -0800)]
[PATCH] s390: tape driver fixes.

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

tape driver fixes:
 - Link from ccw device to class device in sysfs.
 - Cosmetic changes.
 - Add copyright statements.

22 years ago[PATCH] s390: z/VM monitor stream.
Andrew Morton [Tue, 16 Mar 2004 23:08:38 +0000 (15:08 -0800)]
[PATCH] s390: z/VM monitor stream.

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

Fix for z/VM monitor stream:
 - Add try_module_get and module_put to the [un]register functions.
 - Some code beautification.

22 years ago[PATCH] s390: dasd driver fixes.
Andrew Morton [Tue, 16 Mar 2004 23:08:29 +0000 (15:08 -0800)]
[PATCH] s390: dasd driver fixes.

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

dasd driver fixes:
 - Remove additional dasd attributes for a ccw-device if the discipline
   (=driver) gets unloaded.
 - Fix race of dasd_generic_offline against dasd_open.
 - Remove irq_exit calls from diag interrupt handler. The irq_enter/
   irq_exit is done in the external interrupt handler.

22 years ago[PATCH] s390: network driver fixes.
Andrew Morton [Tue, 16 Mar 2004 23:08:18 +0000 (15:08 -0800)]
[PATCH] s390: network driver fixes.

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

network driver fixes:
 - Use SET_NETDEV_DEV to create the link from the network device to the
   physical device. Remove link from physical to network device.
 - Remove some unnecessary casts in netiucv.
 - Add missing strings to dev_stat_names & dev_event_names.
 - Add missing preempt_disable/preempt_enable pairs in iucv.
 - Allow to change the peer username in netiucv.

22 years ago[PATCH] s390: sclp fix.
Andrew Morton [Tue, 16 Mar 2004 23:08:09 +0000 (15:08 -0800)]
[PATCH] s390: sclp fix.

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

sclp console fixes:
  - Replace irq_enter/irq_exit pair with Add local_bh_enable/local_bh_disable.

22 years ago[PATCH] s390: common i/o layer.
Andrew Morton [Tue, 16 Mar 2004 23:07:59 +0000 (15:07 -0800)]
[PATCH] s390: common i/o layer.

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

Common i/o layer fixes:
 - Improve blacklist argument parsing.
 - Fix device recognition for devices where SenseID fails.
 - Don't try to set a device online that has no driver.
 - Chain a release ccw to the unconditional reserve ccw for forced online.
 - Fix irb accumulation for pure status pending with eswf set.
 - Fix rc handling in qdio_shutdown.
 - Improve retry behavious for busy conditions on qdio.
 - Fix activity check in ccw_device_start/read_dev_chars and read_conf_data.

22 years ago[PATCH] s390: core
Andrew Morton [Tue, 16 Mar 2004 23:07:50 +0000 (15:07 -0800)]
[PATCH] s390: core

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

s390 core changes:
 - Merge 31 and 64 bit NR_CPUS config option. Default to 32 cpus.
 - Remove unused system calls from compat_linux.c.
 - Add statfs64 and fstatfs64. Reserve system call number for
   remap_file_pages.
 - Merge do_signal32 into do_signal.
 - Don't remove the per bit and the program mask from the user psw
   due to a signal.
 - Fix a problem with gdb and interrupted system calls.
 - Fix single stepping of interrupted system calls.
 - Fix compiler warnings in bitops.h.

22 years ago[PATCH] ppc64: run bitops.c through Lindent
Andrew Morton [Tue, 16 Mar 2004 23:07:38 +0000 (15:07 -0800)]
[PATCH] ppc64: run bitops.c through Lindent

From: Anton Blanchard <anton@samba.org>

bitops.c was a bit of a mess wrt formatting so run it through Lindent.  No
code changes.

22 years ago[PATCH] ppc32: Fix thinko in PCI_DMA_FOO to DMA_FOO conversion
Andrew Morton [Tue, 16 Mar 2004 23:07:29 +0000 (15:07 -0800)]
[PATCH] ppc32: Fix thinko in PCI_DMA_FOO to DMA_FOO conversion

From: Tom Rini <trini@kernel.crashing.org>

When I converted the use of PCI_DMA_foo constants to DMA_foo constants, I
forgot that it's PCI_DMA_FROMDEVICE and DMA_FROM_DEVICE.  The following
fixes that.

22 years ago[PATCH] ppc32: Update <asm-ppc/dma-mapping.h>
Andrew Morton [Tue, 16 Mar 2004 23:07:19 +0000 (15:07 -0800)]
[PATCH] ppc32: Update <asm-ppc/dma-mapping.h>

From: Tom Rini <trini@kernel.crashing.org>

include/asm-ppc/dma-mapping.h was made to be a 'real' header recently and
therefore missed out on the updates that davem did to all of the other
versions.  This updates <asm-ppc/dma-mapping.h> to match what's expected
now.

22 years ago[PATCH] ppc32: Fix PCI DMA API changes
Andrew Morton [Tue, 16 Mar 2004 23:07:10 +0000 (15:07 -0800)]
[PATCH] ppc32: Fix PCI DMA API changes

From: Tom Rini <trini@kernel.crashing.org>

When Dave Miller updated <asm-ppc/pci.h> for the _for_device and _for_cpu
portions of the PCI DMA API, he assumed that on PPC32 consistent_sync*
would also need to be changed for device or cpu.  This is not the case, so
what this does is the pci_*_for_{cpu,device} calls call
consistent_sync{,page} again.

22 years ago[PATCH] ppc32: Fix c&p error in arch/ppc/syslib/indirect_pci.c
Andrew Morton [Tue, 16 Mar 2004 23:07:00 +0000 (15:07 -0800)]
[PATCH] ppc32: Fix c&p error in arch/ppc/syslib/indirect_pci.c

From: Tom Rini <trini@kernel.crashing.org>

Fix a cut & paste error in forward porting from 2.4, we don't reference
dev->bus or dev->devfn, both are passed as arguments.

22 years agoMerge bk://gkernel.bkbits.net/misc-2.6
Linus Torvalds [Tue, 16 Mar 2004 12:54:57 +0000 (04:54 -0800)]
Merge bk://gkernel.bkbits.net/misc-2.6
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] Fix memory corruption on hyperthreaded x86-64 machines
Andi Kleen [Tue, 16 Mar 2004 12:53:43 +0000 (04:53 -0800)]
[PATCH] Fix memory corruption on hyperthreaded x86-64 machines

Fix memory corruption in the HT init on x86-64 recently introduced by me.

Fix from from Suresh B. Siddha.

22 years ago[PATCH] Make intermezzo work again
Chen Yang [Tue, 16 Mar 2004 12:53:34 +0000 (04:53 -0800)]
[PATCH] Make intermezzo work again

 - Chen Yang's fix to work with NGROUPS
 - Chen Yang's fix to handle file deletion
 - Remove TCGETS handling and return  -ENOTTY for unknown ioctl code.
 - Removed InterMezzo from BROKEN state

22 years ago[blk carmel] call del_gendisk(), if disk is 'up', at cleanup time
Jeff Garzik [Tue, 16 Mar 2004 11:02:01 +0000 (06:02 -0500)]
[blk carmel] call del_gendisk(), if disk is 'up', at cleanup time

22 years ago[PATCH] fix ppc rtas compile
Anton Blanchard [Tue, 16 Mar 2004 10:54:46 +0000 (02:54 -0800)]
[PATCH] fix ppc rtas compile

The proc_rtas_init call in procfs was removed (replaced with an
initcall) but the prototype was still hiding. Kill it.

22 years ago[PATCH] hpt366.c: DMA timeout fix for HPT374
Bartlomiej Zolnierkiewicz [Tue, 16 Mar 2004 08:47:04 +0000 (00:47 -0800)]
[PATCH] hpt366.c: DMA timeout fix for HPT374

From: Andre Hedrick <andre@linux-ide.org>

Tested on Epox 8K9A3+ and 4PCA3+ by Tomi Orava <Tomi.Orava@ncircle.nullnet.fi>.

22 years ago[PATCH] ATI IXP IDE support
Bartlomiej Zolnierkiewicz [Tue, 16 Mar 2004 08:46:50 +0000 (00:46 -0800)]
[PATCH] ATI IXP IDE support

It was tested by a few people and has been in -mm since 2.6.4-rc2-mm1.

22 years ago[PATCH] remove dead "hdXlun=" kernel parameter
Bartlomiej Zolnierkiewicz [Tue, 16 Mar 2004 08:46:39 +0000 (00:46 -0800)]
[PATCH] remove dead "hdXlun=" kernel parameter

22 years ago[PATCH] ide-scsi.c: fix ATAPI multi-lun support
Bartlomiej Zolnierkiewicz [Tue, 16 Mar 2004 08:46:25 +0000 (00:46 -0800)]
[PATCH] ide-scsi.c: fix ATAPI multi-lun support

ATAPI multi-lun support has been broken for a long time.

It used to be that "(drive->id->last_id & 0x7) + 1" was used as
shost->max_lun and the "hdXlun=" kernel parameter could be used to
override this value.

However it was far from optimal:
- people played with "hdXlun=" and then complained about multiple instances
  of the same device (most ATAPI drives respond to each LUN)
- probably some devices return 7 not 0 in id->last_id (=> 7 x same device)

This patch from Willem Riede <wrlk@riede.org> fixes it w/o need
for "hdXlun=" option.  It was tested by Willem on ATAPI PD/CD drive.

22 years ago[PATCH] wait_task_inactive should not return on preempt
Rusty Russell [Tue, 16 Mar 2004 08:38:36 +0000 (00:38 -0800)]
[PATCH] wait_task_inactive should not return on preempt

wait_task_inactive is now only used in two non-time-critical places: the
ptrace code to guarantee a schedule and kthread_bind so we can change
the thread CPU.  Unfortunately with preempt, the code as stands has a
race: we might return because the thread is preempted, not because it
actually reached schedule().  The ptrace code (probably) doesn't care,
but the kthread code does.

This patch simplifies the (now over-optimized) code, and does a yield()
for the preemption case.

22 years ago[blk carmel] add copyright statement and license mention
Jeff Garzik [Tue, 16 Mar 2004 07:30:29 +0000 (02:30 -0500)]
[blk carmel] add copyright statement and license mention

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.6
Greg Kroah-Hartman [Tue, 16 Mar 2004 06:57:47 +0000 (22:57 -0800)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.6
into kroah.com:/home/greg/linux/BK/usb-2.6

22 years ago[PATCH] Fix blkpg ioctl32 handling
Jeremy Katz [Tue, 16 Mar 2004 06:44:49 +0000 (22:44 -0800)]
[PATCH] Fix blkpg ioctl32 handling

Simple obvious patch so that all calls to blkpg from the non-native
environment don't get -EINVAL

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.6
Linus Torvalds [Tue, 16 Mar 2004 04:50:18 +0000 (20:50 -0800)]
Merge bk://gkernel.bkbits.net/net-drivers-2.6
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge redhat.com:/spare/repo/linux-2.5
Jeff Garzik [Tue, 16 Mar 2004 10:17:50 +0000 (05:17 -0500)]
Merge redhat.com:/spare/repo/linux-2.5
into redhat.com:/spare/repo/net-drivers-2.6

22 years ago[netdrvr natsemi] Fix RX DMA mapping
Jeff Garzik [Tue, 16 Mar 2004 10:15:18 +0000 (05:15 -0500)]
[netdrvr natsemi] Fix RX DMA mapping

RX skbs are always considered maximally sized, until actual reception
of the RX frame occurs.  So, update this driver to always map and
unmap a maximally sized skb.  This fixes this driver on several
non-x86 platforms.

22 years agoMerge bk://gkernel.bkbits.net/misc-2.6
Linus Torvalds [Tue, 16 Mar 2004 04:49:33 +0000 (20:49 -0800)]
Merge bk://gkernel.bkbits.net/misc-2.6
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge bk://gkernel.bkbits.net/libata-2.6
Linus Torvalds [Tue, 16 Mar 2004 04:48:47 +0000 (20:48 -0800)]
Merge bk://gkernel.bkbits.net/libata-2.6
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge http://jfs.bkbits.net/linux-2.5
Linus Torvalds [Tue, 16 Mar 2004 04:48:02 +0000 (20:48 -0800)]
Merge http://jfs.bkbits.net/linux-2.5
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years agoJFS: zero new log pages, etc.
Dave Kleikamp [Tue, 16 Mar 2004 08:02:51 +0000 (02:02 -0600)]
JFS: zero new log pages, etc.

22 years agoRemove bogus linux/irq.h include that fails build on ARM.
Linus Torvalds [Tue, 16 Mar 2004 04:44:45 +0000 (20:44 -0800)]
Remove bogus linux/irq.h include that fails build on ARM.

Verified to not break anything on x86 either.

22 years ago[PATCH] USB: replace kobject with kref in usb-serial core.
Greg Kroah-Hartman [Tue, 16 Mar 2004 03:28:52 +0000 (19:28 -0800)]
[PATCH] USB: replace kobject with kref in usb-serial core.

This saves some memory and is easier to understand what is happening.

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Tue, 16 Mar 2004 02:44:40 +0000 (18:44 -0800)]
Merge http://lia64.bkbits.net/to-linus-2.5
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] ia64: fix up DMA API breakage in generic build
Bjorn Helgaas [Tue, 16 Mar 2004 02:22:41 +0000 (18:22 -0800)]
[PATCH] ia64: fix up DMA API breakage in generic build

We also need the following patch to build the generic_defconfig
after the DMA API change:
    http://linux.bkbits.net:8080/linux-2.5/cset@405490e15inT3T0H2x887j9SaMkYRQ

22 years agoMerge kroah.com:/home/linux/BK/bleed-2.6
Greg Kroah-Hartman [Tue, 16 Mar 2004 02:14:07 +0000 (18:14 -0800)]
Merge kroah.com:/home/linux/BK/bleed-2.6
into kroah.com:/home/linux/BK/usb-2.6

22 years agoMerge bk://kernel.bkbits.net/vojtech/input
Linus Torvalds [Tue, 16 Mar 2004 00:07:17 +0000 (16:07 -0800)]
Merge bk://kernel.bkbits.net/vojtech/input
into ppc970.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge bk://dtor.bkbits.net/input into suse.cz:/data/bk/input
Vojtech Pavlik [Tue, 16 Mar 2004 12:31:31 +0000 (13:31 +0100)]
Merge bk://dtor.bkbits.net/input into suse.cz:/data/bk/input

22 years agoMerge suse.cz:/data/bk/linus into suse.cz:/data/bk/input
Vojtech Pavlik [Tue, 16 Mar 2004 12:10:38 +0000 (13:10 +0100)]
Merge suse.cz:/data/bk/linus into suse.cz:/data/bk/input

22 years ago[PATCH] allow random write to cdrom devices with profile 2 (removable disk)
Jens Axboe [Mon, 15 Mar 2004 23:51:27 +0000 (15:51 -0800)]
[PATCH] allow random write to cdrom devices with profile 2 (removable disk)

This patch is from Iomega, and it allows random write opens of CDROM's
that support the feature.

22 years ago[PATCH] ppc64: fix for massive OF properties
Andrew Morton [Mon, 15 Mar 2004 23:29:37 +0000 (15:29 -0800)]
[PATCH] ppc64: fix for massive OF properties

From: Anton Blanchard <anton@samba.org>

We have some versions of firmware out there that have huge OF properties.
So huge that we end up overwriting our initrd.

Place a 1MB limit and warn bitterly if its over this.  Also fix a use of
package-to-path where the variable was 64bytes but we would pass in a
length of 255.

22 years ago[PATCH] ppc64 defconfig update
Andrew Morton [Mon, 15 Mar 2004 23:29:25 +0000 (15:29 -0800)]
[PATCH] ppc64 defconfig update

From: Anton Blanchard <anton@samba.org>

ppc64 defconfig update

22 years ago[PATCH] Fix hvc console sleep in spinlock bug
Andrew Morton [Mon, 15 Mar 2004 23:29:15 +0000 (15:29 -0800)]
[PATCH] Fix hvc console sleep in spinlock bug

From: Jeremy Kerr <jk@ozlabs.org>

This patch fixes the sleep in spinlock hvc bug in hvc_write().

The code is a little longer, but protects against large amounts of memory
being kmalloc()ed by userspace, and minimises calls to copy_from_user().

22 years ago[PATCH] Clean up xmon backtrace code.
Andrew Morton [Mon, 15 Mar 2004 23:29:03 +0000 (15:29 -0800)]
[PATCH] Clean up xmon backtrace code.

From: Anton Blanchard <anton@samba.org>

Clean up xmon backtrace code, it was doing all manner of scary things.

22 years ago[PATCH] Cleanup ppc64 procfs code
Andrew Morton [Mon, 15 Mar 2004 23:28:51 +0000 (15:28 -0800)]
[PATCH] Cleanup ppc64 procfs code

From: Anton Blanchard <anton@samba.org>

Cleanup ppc64 procfs code:

- Use initcalls everywhere. This allowed us to remove the iseries proc
  callback interface.
- Kill proc_pmc.c. Most of it wasnt used (and we are planning to export the
  PMCs via sysfs). The few things left were iseries specific so they
  got moved into iSeries_proc.c.
- Kill pmc.c. We dont use those statistics and the ones that are left
  can be gained via PMCs.
- Create /proc/iSeries and /proc/ppc64 very early. This means we no
  longer have to call proc_ppc64_init in all the drivers, we can
  assume its there.
- Fix some error return cases in rtas-proc.c and rtas-flash
- Dont even try some pseries specific drivers on pmac.

22 years ago[PATCH] Add kernel version to oops.
Andrew Morton [Mon, 15 Mar 2004 23:28:37 +0000 (15:28 -0800)]
[PATCH] Add kernel version to oops.

From: Anton Blanchard <anton@samba.org>

Add kernel version to oops.

22 years ago[PATCH] Fixed NULL ptr deref in RTAS syscall ppc_rtas()
Andrew Morton [Mon, 15 Mar 2004 23:28:25 +0000 (15:28 -0800)]
[PATCH] Fixed NULL ptr deref in RTAS syscall ppc_rtas()

From: John Rose <johnrose@austin.ibm.com>

Fixed NULL ptr deref in RTAS syscall ppc_rtas()

22 years ago[PATCH] Added rtas_set_power_level()
Andrew Morton [Mon, 15 Mar 2004 23:28:13 +0000 (15:28 -0800)]
[PATCH] Added rtas_set_power_level()

From: John Rose <johnrose@austin.ibm.com>

Added rtas_set_power_level()

22 years ago[PATCH] Remove pci DMA exports
Andrew Morton [Mon, 15 Mar 2004 23:28:03 +0000 (15:28 -0800)]
[PATCH] Remove pci DMA exports

From: Anton Blanchard <anton@samba.org>

Remove pci DMA exports we now access them via inline functions that
operate on pci_dma_ops.

22 years ago[PATCH] Dont enable interrupts during interrupt processing on iseries
Andrew Morton [Mon, 15 Mar 2004 23:27:52 +0000 (15:27 -0800)]
[PATCH] Dont enable interrupts during interrupt processing on iseries

From: Stephen Rothwell <sfr@canb.auug.org.au>

Dont enable interrupts during interrupt processing on iseries

22 years ago[PATCH] Add slow path lookup in xics_get_irq
Andrew Morton [Mon, 15 Mar 2004 23:27:40 +0000 (15:27 -0800)]
[PATCH] Add slow path lookup in xics_get_irq

From: Jake Moilanen <moilanen@austin.ibm.com>

In xics_get_irq(), for a real-to-virt irq lookup, go down the
slowpath by looking through the entire virt_irq_to_real_map array
if take a miss on the radix tree.  This is possible, when an
interrupt is taken before the driver has called request_irq() (eg IDE).

22 years ago[PATCH] Export find_next_bit
Andrew Morton [Mon, 15 Mar 2004 23:27:28 +0000 (15:27 -0800)]
[PATCH] Export find_next_bit

From: Anton Blanchard <anton@samba.org>

- export find_next_bit and move the other exports here
- fix a few minor style issues

22 years ago[PATCH] update iseries default target
Andrew Morton [Mon, 15 Mar 2004 23:27:18 +0000 (15:27 -0800)]
[PATCH] update iseries default target

From: Anton Blanchard <anton@samba.org>

update iseries default target

22 years ago[PATCH] Move iSeries specific EXPORT_SYMBOLs out of ppc_ksyms.c
Andrew Morton [Mon, 15 Mar 2004 23:27:05 +0000 (15:27 -0800)]
[PATCH] Move iSeries specific EXPORT_SYMBOLs out of ppc_ksyms.c

From: Stephen Rothwell <sfr@canb.auug.org.au>

After this the only iSeries specific EXPORT_SYMBOLS in ppc_ksyms.c are
the assembler ones ...

22 years ago[PATCH] Add some functions to make vio.h consistant with pci_dma.h and dma_mapping.h
Andrew Morton [Mon, 15 Mar 2004 23:26:54 +0000 (15:26 -0800)]
[PATCH] Add some functions to make vio.h consistant with pci_dma.h and dma_mapping.h

From: Dave Boutcher <boutcher@us.ibm.com>

Add some functions to make vio.h consistant with pci_dma.h and dma_mapping.h

22 years ago[PATCH] Fix xics IRQ affinity
Andrew Morton [Mon, 15 Mar 2004 23:26:41 +0000 (15:26 -0800)]
[PATCH] Fix xics IRQ affinity

From: Anton Blanchard <anton@samba.org>

- Merge some whitespace differences with the ameslab tree
- We check for CPU_MASK_ALL in xics to send irqs to all cpus.
  In some cases CPU_MASK_ALL is smaller than the cpumask (eg
  NR_CPUS == 32 and cpumask is a long), so we mask it here to
  be consistent.

22 years ago[PATCH] Fix multiple EEH-related bugs
Andrew Morton [Mon, 15 Mar 2004 23:26:29 +0000 (15:26 -0800)]
[PATCH] Fix multiple EEH-related bugs

From: Linas Vepstas <linas@austin.ibm.com>

This patch fixes multiple EEH-related bugs:

 - Fixes the eeh_check_failure() usage in an interrupt context.
   This routine is now safe to use in an interrupt. The fix was to
   build a cache of IO addresses and check that, instead of using
   the pci routines.
 - Merges in Olof Johansson's sizeof patch when checking for failure
 - Adds EEH tests to array/string reads
 - Fixes bugs with address resolution (some i/o addresses were handled
   incorrectly, resulting in EEH errors slipping by undetected.)
 - Adds EEH support to the PCI Hotplug system (so that devices that
   get added/removed get properly registered with the EEH subsystem.)
 - Fixes improper use of /proc filesystem.
 - Adds some misc statistics.

While merging Linas' patch I also converted the proc usage to
seq_single, used per cpu variables for the stats and removed the
eeh-force-off option.

22 years ago[PATCH] Fix for hotplug of multifunction cards.
Andrew Morton [Mon, 15 Mar 2004 23:26:19 +0000 (15:26 -0800)]
[PATCH] Fix for hotplug of multifunction cards.

From: Linda Xie <lxiep@us.ibm.com>

The changes in this patch are for multifunction cards insertions/removals
and  bug fixes:

1. fix up new nodes' linux_phandle field.
2. new nodes' phb, devfn(and so on) need to be fixed even the nodes don't
have "interrupts".
3. change of_remove_node to non-recurisve func. The recursions will be done
by the caller.
4. add a new function -- of_finish_dynamic_node_interrupts()

22 years ago[PATCH] Add some missing EXPORT_SYMBOLs
Andrew Morton [Mon, 15 Mar 2004 23:26:08 +0000 (15:26 -0800)]
[PATCH] Add some missing EXPORT_SYMBOLs

From: Anton Blanchard <anton@samba.org>

Add some missing EXPORT_SYMBOLs

22 years ago[PATCH] Handle longbusy return codes in IBM VETH driver
Andrew Morton [Mon, 15 Mar 2004 23:25:57 +0000 (15:25 -0800)]
[PATCH] Handle longbusy return codes in IBM VETH driver

From: Santiago Leon <santil@us.ibm.com>

Handle longbusy return codes in IBM VETH driver

22 years ago[PATCH] Add hypervisor busy return codes
Andrew Morton [Mon, 15 Mar 2004 23:25:46 +0000 (15:25 -0800)]
[PATCH] Add hypervisor busy return codes

From: Dave Boutcher <boutcher@us.ibm.com>

Add hypervisor busy return codes

22 years ago[PATCH] Make dma API handle PCI and VIO
Andrew Morton [Mon, 15 Mar 2004 23:25:35 +0000 (15:25 -0800)]
[PATCH] Make dma API handle PCI and VIO

From: Stephen Rothwell <sfr@canb.auug.org.au>

Make dma API handle PCI and VIO

22 years ago[PATCH] Remove some unused ppc64 variables
Andrew Morton [Mon, 15 Mar 2004 23:25:22 +0000 (15:25 -0800)]
[PATCH] Remove some unused ppc64 variables

From: Anton Blanchard <anton@samba.org>

Remove some unused ppc64 variables

22 years ago[PATCH] Remove bogus sys_oldumount sign extension code
Andrew Morton [Mon, 15 Mar 2004 23:25:10 +0000 (15:25 -0800)]
[PATCH] Remove bogus sys_oldumount sign extension code

From: Anton Blanchard <anton@samba.org>

Remove bogus sys_oldumount sign extension code. We were sign extending
the flags argument which doesnt make sense.

22 years ago[PATCH] Reduce stack overflow check to 4096 bytes
Andrew Morton [Mon, 15 Mar 2004 23:24:59 +0000 (15:24 -0800)]
[PATCH] Reduce stack overflow check to 4096 bytes

From: Anton Blanchard <anton@samba.org>

Reduce stack overflow check to 4096 bytes free, we were tripping it
too much at 8192.

22 years ago[PATCH] iostats averaging fix
Andrew Morton [Mon, 15 Mar 2004 23:22:49 +0000 (15:22 -0800)]
[PATCH] iostats averaging fix

From: Rick Lindsley <ricklind@us.ibm.com>

Fix bug #2230.

I've corresponded with the submitter and he did find a real bug -- when we
were merging I/O requests we didn't always take the oldest request start
time, which would cause a couple of the calculations like wait time and
average queue size to be too small.  He found it mathematically but having
done so, I think logic and inspection makes it easy to verify.

22 years ago[PATCH] blk: statically initialise the congestion waitqueue_heads
Andrew Morton [Mon, 15 Mar 2004 23:22:38 +0000 (15:22 -0800)]
[PATCH] blk: statically initialise the congestion waitqueue_heads

On a really small memory machine (or one with a monstrous kernel memory leak)
we can end up calling blk_congestion_wait() before the waitqueue_heads are set
up.

22 years ago[PATCH] kill INIT_THREAD_SIZE
Andrew Morton [Mon, 15 Mar 2004 23:22:26 +0000 (15:22 -0800)]
[PATCH] kill INIT_THREAD_SIZE

From: Matt Mackall <mpm@selenic.com>

This piece of the THREAD_SIZE cleanup got dropped.  If you make THREAD_SIZE
> 8k, the init thread overlaps the .init section and gets smashed.  I've
gone ahead and killed INIT_THREAD_SIZE throughout as it wasn't doing much.
This also saves 4k when we use 4k stacks.  Please apply.  Couple more minor
pieces remaining.

22 years ago[PATCH] kthreads hold files open
Andrew Morton [Mon, 15 Mar 2004 23:22:15 +0000 (15:22 -0800)]
[PATCH] kthreads hold files open

keventd and friends are currently holding /dev/console open three times.
It's all inherited from init.

Steal the relevant parts of daemonize() to fix that up.

22 years ago[PATCH] slab: fix display of object length in corruption detector
Andrew Morton [Mon, 15 Mar 2004 23:22:03 +0000 (15:22 -0800)]
[PATCH] slab: fix display of object length in corruption detector

From: Manfred Spraul <manfred@colorfullife.com>

print_objinfo() dumps the first few characters of an interesting object for
debugging.  It used the wrong object len (including debug padding, instead
of just the data area), which could cause an oops if DEBUG_PAGEALLOC is
enabled.

22 years ago[PATCH] document unchecked do_munmaps in ipc/shm.c
Andrew Morton [Mon, 15 Mar 2004 23:21:52 +0000 (15:21 -0800)]
[PATCH] document unchecked do_munmaps in ipc/shm.c

From: Manfred Spraul <manfred@colorfullife.com>

There are a few unchecked do_munmap()s in the shm code.  Manfred's comment
explains why they are OK.

22 years ago[PATCH] do_write_mem() return value check
Andrew Morton [Mon, 15 Mar 2004 23:21:39 +0000 (15:21 -0800)]
[PATCH] do_write_mem() return value check

From: BlaisorBlade <blaisorblade_spam@yahoo.it>, and me

- remove unused `file *' arg from do_write_mem()

- Add checking for copy_from_user() failures in do_write_mem()

- Return correct value from kmem writes() when a fault is encountered.  A
  write()-style syscall's return values are:

   0 when nothing was written and there was no error (someone tried to
   write zero bytes)

   >0: the number of bytes copied, whether or not there was an error.
   Userspace detects errors by noting that the write() return value is less
   than was requested.

   <0: there was an error and no bytes were copied

22 years ago[PATCH] resierfs: AIO support
Andrew Morton [Mon, 15 Mar 2004 23:21:28 +0000 (15:21 -0800)]
[PATCH] resierfs: AIO support

From: Chris Mason <mason@suse.com>

reiserfs can safely use the generic fs aio functions.

22 years ago[PATCH] reiserfs: atomicity fix
Andrew Morton [Mon, 15 Mar 2004 23:21:18 +0000 (15:21 -0800)]
[PATCH] reiserfs: atomicity fix

From: Chris Mason <mason@suse.com>

reiserfs_file_write() can use stale metadata after a schedule.

Two reiserfs_file_write bugs, where items can change during a schedule.

22 years ago[PATCH] reiserfs: fix transaction sizes
Andrew Morton [Mon, 15 Mar 2004 23:21:05 +0000 (15:21 -0800)]
[PATCH] reiserfs: fix transaction sizes

From: Chris Mason <mason@suse.com>

Make sure reiserfs uses a reasonable number when restarting long unbounded
transactions (creating holes or deleting files).

Without this patch, the number of blocks requested grows with each
transaction restart, until it hits MAX_BATCH_COUNT and starts forcing
commits with every new transaction.

Oleg Drokin tracked this bug down

22 years ago[PATCH] reiserfs: search_by_key fix
Andrew Morton [Mon, 15 Mar 2004 23:20:54 +0000 (15:20 -0800)]
[PATCH] reiserfs: search_by_key fix

From: Chris Mason <mason@suse.com>

Fix a bug in reiserfs search_by_key call, where it might not properly
detect a change in tree height during a schedule.  Originally from
vs@namesys.com

22 years ago[PATCH] resierfs: scheduling latency improvements
Andrew Morton [Mon, 15 Mar 2004 23:20:41 +0000 (15:20 -0800)]
[PATCH] resierfs: scheduling latency improvements

From: Chris Mason <mason@suse.com>

Add conditional schedules to reiserfs to help lower latencies.  Bits of
this orginated long ago in code akpm sent me.

22 years ago[PATCH] reiserfs: fix null pointer deref
Andrew Morton [Mon, 15 Mar 2004 23:20:29 +0000 (15:20 -0800)]
[PATCH] reiserfs: fix null pointer deref

From: Chris Mason <mason@suse.com>

From: Jeff Mahoney <jeffm@suse.de>

fsstress manages to setup a sequence of events that allow an attempt to
perform direct-io on a tail.  bh_result->b_page == NULL, which causes the
PageLocked and PageWriteback checks to perform a NULL deref, causing the
oops.

22 years ago[PATCH] kernel-doc build fix
Andrew Morton [Mon, 15 Mar 2004 23:20:17 +0000 (15:20 -0800)]
[PATCH] kernel-doc build fix

From: Michael Still <mikal@stillhq.com>

This is needed to get any of the SGML documentation to build with 2.6.4.

22 years ago[PATCH] fbdev: character drawing enhancement.
Andrew Morton [Mon, 15 Mar 2004 23:20:05 +0000 (15:20 -0800)]
[PATCH] fbdev: character drawing enhancement.

From: James Simmons <jsimmons@infradead.org>

This patch merges two of the drawing functions.  The patch uses aligned
transfers when possible even on displays where the characters are not byte
align.  Tested on my my laptop for 12 bit width fonts and 8 bit wide fonts.
It works very nicely.

22 years ago[PATCH] page_referenced() simplification
Andrew Morton [Mon, 15 Mar 2004 23:19:52 +0000 (15:19 -0800)]
[PATCH] page_referenced() simplification

There's no point in calling mark_page_accessed() here.  The page is never on
the LRU so all mark_page_accessed() will do is to set PG_referenced, which we
immediately clear again.

22 years ago[PATCH] flush_workqueue(): detect excessive nesting
Andrew Morton [Mon, 15 Mar 2004 23:19:41 +0000 (15:19 -0800)]
[PATCH] flush_workqueue(): detect excessive nesting

Add a debug check for workqueues nested more than three deep via the
direct-run-workqueue() path.

22 years ago[PATCH] flush_scheduled_work() deadlock fix
Andrew Morton [Mon, 15 Mar 2004 23:19:29 +0000 (15:19 -0800)]
[PATCH] flush_scheduled_work() deadlock fix

Because keventd is a resource which is shared between unrelated parts of the
kernel it is possible for one person's workqueue handler to accidentally call
another person's flush_scheduled_work().  thockin managed it by calling
mntput() from a workqueue handler.  It deadlocks.

It's simple enough to fix: teach flush_scheduled_work() to go direct when it
discovers that the calling thread is the one which should be running the
work.

Note that this can cause recursion.  The depth of that recursion is equal to
the number of currently-queued works which themselves want to call
flush_scheduled_work().  If this ever exceeds three I'll eat my hat.

22 years ago[PATCH] selinux: fix compute_av bug
Andrew Morton [Mon, 15 Mar 2004 23:19:18 +0000 (15:19 -0800)]
[PATCH] selinux: fix compute_av bug

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch fixes a bug in the SELinux compute_av code; the current code
yields the right access computation but can cause unnecessary (but
harmless) processing to occur when transition permission wasn't granted in
the first place by the TE configuration.  Thanks to Chad Hanson of TCS for
reporting the bug.

22 years ago[PATCH] kbuild: fix modpost when used with O=
Andrew Morton [Mon, 15 Mar 2004 23:19:07 +0000 (15:19 -0800)]
[PATCH] kbuild: fix modpost when used with O=

From: Sam Ravnborg <sam@ravnborg.org>

modpost or to be more specific sumversion.c was not behaving correct when
used with O= and MODULE_VERSION was used.  Previously it failed to use
local .h when calculation the md-sum in case of a O= build.

The following patch introduces the following:

- A generic get_next_line()

- Check that the topmost part of the directory matches

- Using strrch when checking for file with suffix .o

- Use NOFAIL for allocations in sumversion

- Avoid memory leak in new_module

The generic get_next_line will pay off when Andreas implmentation of
storing symbol addresses in a seperate file is introduced.

22 years ago[PATCH] fix modular fb drivers
Andrew Morton [Mon, 15 Mar 2004 23:18:55 +0000 (15:18 -0800)]
[PATCH] fix modular fb drivers

From: Arnd Bergmann <arnd@arndb.de>

The recent "fbdev: monitor detection fixes" patch broke modular frame
buffer drivers.

22 years ago[PATCH] move PCIBIOS access help text
Andrew Morton [Mon, 15 Mar 2004 23:18:45 +0000 (15:18 -0800)]
[PATCH] move PCIBIOS access help text

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

Moves PCI BIOS Access Mode help text to its top level instead of under
PCI_GOBIOS (which is only 1 of 4 possible choices).

22 years ago[PATCH] drivers_cdrom_cdu31c.c check_region() fix
Andrew Morton [Mon, 15 Mar 2004 23:18:33 +0000 (15:18 -0800)]
[PATCH] drivers_cdrom_cdu31c.c check_region() fix

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

check_region() fixes.

22 years ago[PATCH] add warning to DocBook/Makefile
Andrew Morton [Mon, 15 Mar 2004 23:18:22 +0000 (15:18 -0800)]
[PATCH] add warning to DocBook/Makefile

From: Trivial Patch Monkey <trivial@rustcorp.com.au>

From:  maximilian attems <janitor@sternwelten.at>

Print something friendlier than:

/bin/sh: fig2dev: command not found
make[1]: *** [Documentation/DocBook/parport-share.eps] Error 127
make: *** [pdfdocs] Error 2

22 years ago[PATCH] Fix comment in drivers/block/genhd.c
Andrew Morton [Mon, 15 Mar 2004 23:18:09 +0000 (15:18 -0800)]
[PATCH] Fix comment in drivers/block/genhd.c

From: Trivial Patch Monkey <trivial@rustcorp.com.au>

From:  a.othieno@bluewin.ch (Arthur Othieno)

add_gendisk() was replaced with add_disk(), but the comment suggests
otherwise.  Breaks `make *docs'.

22 years ago[PATCH] minor credits updates
Andrew Morton [Mon, 15 Mar 2004 23:17:58 +0000 (15:17 -0800)]
[PATCH] minor credits updates

From: Trivial Patch Monkey <trivial@rustcorp.com.au>

From:  andersen@codepoet.org

I've moved...  This patch updates my contact info.

22 years ago[PATCH] chardev module aliases
Andrew Morton [Mon, 15 Mar 2004 23:17:48 +0000 (15:17 -0800)]
[PATCH] chardev module aliases

From: Trivial Patch Monkey <trivial@rustcorp.com.au>

From: Steve Youngs <sryoungs@bigpond.net.au> Add module aliases for 21285,
amba, anakin, clps711x, mux, and sa1100 serial drivers.

22 years ago[PATCH] Fix scripts/ver_linux
Andrew Morton [Mon, 15 Mar 2004 23:17:35 +0000 (15:17 -0800)]
[PATCH] Fix scripts/ver_linux

From: Trivial Patch Monkey <trivial@rustcorp.com.au>

From:  Thomas Molina <tmolina@cablespeed.com>

ver_linux hasn't displayed binutils version right for some time.  This patch
corrects that and preserves the old behaviour as well, as suggested by Rusty.

22 years ago[PATCH] fix for kallsyms module symbol resolution problem
Andrew Morton [Mon, 15 Mar 2004 23:17:23 +0000 (15:17 -0800)]
[PATCH] fix for kallsyms module symbol resolution problem

From:  Rusty Russell <rusty@rustcorp.com.au>

Fix a problem with kallsyms being unable to look up symbols which are in
modules.

add_kallsyms should be above module_finalize, which means you can just use
the mod->symtab and mod->strtab members.

22 years ago[PATCH] filemap.c comment fix
Andrew Morton [Mon, 15 Mar 2004 23:17:12 +0000 (15:17 -0800)]
[PATCH] filemap.c comment fix

From: Trivial Patch Monkey <trivial@rustcorp.com.au>

From:  Carl Spalletta <ioanamitu@yahoo.com>