]> git.neil.brown.name Git - history.git/log
history.git
22 years agoALSA CVS update - Jaroslav Kysela <perex@suse.cz>
Jaroslav Kysela [Thu, 5 Feb 2004 16:56:59 +0000 (17:56 +0100)]
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
AMD InterWave driver
Ok, InterWave STB without TEA6330T without TEA6330T also exists

22 years agoALSA CVS update - Jaroslav Kysela <perex@suse.cz>
Jaroslav Kysela [Thu, 5 Feb 2004 16:56:41 +0000 (17:56 +0100)]
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
ALSA Core
Added CONFIG_SND_BT87X dependencies

22 years agoALSA CVS update - Takashi Iwai <tiwai@suse.de>
Jaroslav Kysela [Thu, 5 Feb 2004 16:56:19 +0000 (17:56 +0100)]
ALSA CVS update - Takashi Iwai <tiwai@suse.de>
ICE1712 driver
- fixed the GPIO pins for CS8415 CS and CDTO.

22 years agoALSA CVS update - Takashi Iwai <tiwai@suse.de>
Jaroslav Kysela [Thu, 5 Feb 2004 16:56:02 +0000 (17:56 +0100)]
ALSA CVS update - Takashi Iwai <tiwai@suse.de>
VIA82xx driver
- fixed the codec valid check at reading.
- added MSI KT266 to the dxs whitelist.

22 years agoALSA CVS update - Takashi Iwai <tiwai@suse.de>
Jaroslav Kysela [Thu, 5 Feb 2004 16:55:40 +0000 (17:55 +0100)]
ALSA CVS update - Takashi Iwai <tiwai@suse.de>
FM801 driver
- fixed the build without tea575x-tuner support.

22 years agoALSA CVS update - Jaroslav Kysela <perex@suse.cz>
Jaroslav Kysela [Thu, 5 Feb 2004 16:55:20 +0000 (17:55 +0100)]
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
PCI drivers
Fixed condition for TEA575x && FM801

22 years agoALSA CVS update - Jaroslav Kysela <perex@suse.cz>
Jaroslav Kysela [Thu, 5 Feb 2004 16:55:00 +0000 (17:55 +0100)]
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
TEA575x tuner
TEA575x code is now 2.6 videodev compatible

22 years agoALSA CVS update - Jaroslav Kysela <perex@suse.cz>
Jaroslav Kysela [Thu, 5 Feb 2004 16:54:42 +0000 (17:54 +0100)]
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
Documentation,PCI drivers,BT87x driver
Moved bt87x driver from alsa-driver to alsa-kernel

22 years agoALSA CVS update - Jaroslav Kysela <perex@suse.cz>
Jaroslav Kysela [Thu, 5 Feb 2004 16:54:23 +0000 (17:54 +0100)]
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
Serial BUS drivers,TEA575x tuner,PCI drivers,FM801 driver
Added module for TEA575x radio tuners used in cheap FM801 based soundcards from Media Forte.

22 years agoALSA CVS update - Jaroslav Kysela <perex@suse.cz>
Jaroslav Kysela [Thu, 5 Feb 2004 15:03:30 +0000 (16:03 +0100)]
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
ALSA Core
Cosmetic change

22 years agoALSA CVS update - Jaroslav Kysela <perex@suse.cz>
Jaroslav Kysela [Thu, 5 Feb 2004 15:02:53 +0000 (16:02 +0100)]
ALSA CVS update - Jaroslav Kysela <perex@suse.cz>
VIA82xx driver
Removed duplicated code

22 years agoMerge suse.cz:/home/perex/bk/linux-sound/linux-2.5
Jaroslav Kysela [Thu, 5 Feb 2004 12:02:39 +0000 (13:02 +0100)]
Merge suse.cz:/home/perex/bk/linux-sound/linux-2.5
into suse.cz:/home/perex/bk/linux-sound/linux-sound

22 years ago[PATCH] use cramfs as an initrd
James Bottomley [Wed, 4 Feb 2004 05:51:43 +0000 (21:51 -0800)]
[PATCH] use cramfs as an initrd

Now that Al Viro fixed cramfs, it works beautifully as an initrd
filesystem.

So finally plumb it in.

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Wed, 4 Feb 2004 04:40:58 +0000 (20:40 -0800)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years ago[SPARC64}: Fix ultra-III and later support of new-style SILO booting.
David S. Miller [Wed, 4 Feb 2004 03:33:43 +0000 (19:33 -0800)]
[SPARC64}: Fix ultra-III and later support of new-style SILO booting.

22 years ago[PATCH] H8/300 support update (3/3): bitops
Yoshinori Sato [Wed, 4 Feb 2004 03:24:21 +0000 (19:24 -0800)]
[PATCH] H8/300 support update (3/3): bitops

o Cleanup reduced and faster code

22 years ago[PATCH] H8/300 support update (2/3): compiler warnings
Yoshinori Sato [Wed, 4 Feb 2004 03:24:09 +0000 (19:24 -0800)]
[PATCH] H8/300 support update (2/3): compiler warnings

o gcc-3.4 warning fix.

22 years ago[PATCH] H8/300 support update (1/3): obsolete header
Yoshinori Sato [Wed, 4 Feb 2004 03:23:57 +0000 (19:23 -0800)]
[PATCH] H8/300 support update (1/3): obsolete header

o Deleted obsolute header include

22 years agoMerge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
Linus Torvalds [Wed, 4 Feb 2004 03:20:10 +0000 (19:20 -0800)]
Merge bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Wed, 4 Feb 2004 03:16:43 +0000 (19:16 -0800)]
Merge bk://gkernel.bkbits.net/net-drivers-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] Fix block device inode list corruptions
Stephen C. Tweedie [Wed, 4 Feb 2004 02:57:45 +0000 (18:57 -0800)]
[PATCH] Fix block device inode list corruptions

I've been chasing a weird SELinux bug which shows up mostly when doing
installs of a dev-* rpm (ie. creating and overwriting lots of block
device inodes), but which I've also seen when doing mkinitrd.

It turned out not to be an SELinux problem at all, but a core VFS
S_ISBLK bug.  It seems that SELinux simply widens the race window.

The code at fault is fs/fs-writeback.c:__mark_inode_dirty():

/*
 * Only add valid (hashed) inodes to the superblock's
 * dirty list.  Add blockdev inodes as well.
 */
if (!S_ISBLK(inode->i_mode)) {
if (hlist_unhashed(&inode->i_hash))
goto out;
if (inode->i_state & (I_FREEING|I_CLEAR))
goto out;
}

The "I_FREEING|I_CLEAR" condition was added after the ISBLK/unhashed
tests were already in the source, but I can't see any reason why we'd
want the I_FREEING test not to apply to block devices.  And indeed, this
results in all sorts of inode list corruptions.  Simply moving the
I_FREEING|I_CLEAR test out of the protection of the S_ISBLK() condition
fixes things entirely.

The existing 2.6 kernel will reliably fail on me in about 2 seconds once
"rpm -Uvh --force dev*.rpm" starts its actual installation of the new
inodes.  With the patch below I can't reproduce it at all.

22 years ago[PATCH] Fix ptrace in the vsyscall dso area
Andrew Morton [Wed, 4 Feb 2004 02:54:15 +0000 (18:54 -0800)]
[PATCH] Fix ptrace in the vsyscall dso area

From: Roland McGrath <roland@redhat.com>

The #include is the part of this patch that matters, so the #ifdef below
works.

The rest of the patch removes gratuitous duplication due to some strange
aversion to concision in the presence of #ifdef, the kind that is all too
common, utterly pointless, and error prone.

22 years ago[PATCH] Altix update: pci_bus_cvlink.c fixes
Andrew Morton [Wed, 4 Feb 2004 02:54:06 +0000 (18:54 -0800)]
[PATCH] Altix update: pci_bus_cvlink.c fixes

From: Pat Gefre <pfg@sgi.com>

rch/ia64/sn/io/machvec/pci_bus_cvlink.c
    Some pretty-print mods
    Use pin instead of slot for dma_flush init

22 years ago[PATCH] Altix update: pci_bus_cvlink.c fixes
Andrew Morton [Wed, 4 Feb 2004 02:53:57 +0000 (18:53 -0800)]
[PATCH] Altix update: pci_bus_cvlink.c fixes

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/io/machvec/pci_bus_cvlink.c
    Couple of checks for kmalloc <= 0 were fixed
    Some __init and static fixes

22 years ago[PATCH] Altix update: irq fixes
Andrew Morton [Wed, 4 Feb 2004 02:53:48 +0000 (18:53 -0800)]
[PATCH] Altix update: irq fixes

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/kernel/irq.c
    Need to get the cpu from the passed in pcibr struct
    Made the interrupt list static and gave it a better name - credit jes
    Some lindent'isms
    Took out some code that isn't used ..... yet

22 years ago[PATCH] Altix update: remove pcibr_intr_func()
Andrew Morton [Wed, 4 Feb 2004 02:53:39 +0000 (18:53 -0800)]
[PATCH] Altix update: remove pcibr_intr_func()

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/io/sn2/pcibr/pcibr_intr.c
    Kill pcibr_intr_func()

22 years ago[PATCH] Altix update: VGA, keyboard, other changes
Andrew Morton [Wed, 4 Feb 2004 02:53:30 +0000 (18:53 -0800)]
[PATCH] Altix update: VGA, keyboard, other changes

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/kernel/setup.c

    If generic enabled legacy VGA or kbd - disable them
    Slightly different check for work arounds and only do it once
    If there is no klconfig info and we are in the simulator - ignore it
    Update the pxm_to_nasid() routine. It failed for SP configurations and some
    SMP configurations where M-bricks used pxm numbers lower that the first
    c-brick.
    If we don't find the cpu for pxm, search the memblks for it.

22 years ago[PATCH] Altix update: early_probe_for_widget() improvement
Andrew Morton [Wed, 4 Feb 2004 02:53:22 +0000 (18:53 -0800)]
[PATCH] Altix update: early_probe_for_widget() improvement

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/io/sn2/ml_iograph.c
    Better code for early_probe_for_widget()

22 years ago[PATCH] Altix update: pcibr_invalidate_ate check
Andrew Morton [Wed, 4 Feb 2004 02:53:13 +0000 (18:53 -0800)]
[PATCH] Altix update: pcibr_invalidate_ate check

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/io/sn2/pcibr/pcibr_ate.c
    check for pcibr_invalidate_ate 0 used for debugging

22 years ago[PATCH] Altix update: io changes
Andrew Morton [Wed, 4 Feb 2004 02:53:04 +0000 (18:53 -0800)]
[PATCH] Altix update: io changes

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/io/platform_init/sgi_io_init.c
   use numionodes instead of numnodes

arch/ia64/sn/io/sn2/klconflib.c
    find_lboard changes - generalized a number of the interface funcs

arch/ia64/sn/io/sn2/klgraph.c
    call the more general find_lboard funcs

arch/ia64/sn/io/sn2/ml_iograph.c
    call the more general lboard funcs

arch/ia64/sn/io/sn2/module.c
    lboard changes
    mod for headless/memless nodes

arch/ia64/sn/io/sn2/pcibr/pcibr_dvr.c
    isIO9 mod

arch/ia64/sn/kernel/setup.c
    headless/memless mod

include/asm-ia64/sn/klconfig.h
    generalized find_lboard funs

22 years ago[PATCH] Altix update: add MINIMAL_ATE_FLAG
Andrew Morton [Wed, 4 Feb 2004 02:52:55 +0000 (18:52 -0800)]
[PATCH] Altix update: add MINIMAL_ATE_FLAG

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/io/machvec/pci_dma.c
    Add MINIMAL_ATE_FLAGS() macro usage

include/asm-ia64/sn/pci/pcibr.h
    Add MINIMAL_ATE_FLAG() macro

22 years ago[PATCH] Altix update: misc changes
Andrew Morton [Wed, 4 Feb 2004 02:52:46 +0000 (18:52 -0800)]
[PATCH] Altix update: misc changes

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/io/sn2/pcibr/pcibr_dvr.c
    extern for pcibr_rrb_alloc_more()

include/asm-ia64/sn/pci/pcibr_private.h
    more unsigned to unsigned int

22 years ago[PATCH] Altix update: small cleanups
Andrew Morton [Wed, 4 Feb 2004 02:52:37 +0000 (18:52 -0800)]
[PATCH] Altix update: small cleanups

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/io/io.c@1.12
    misc code cleanup
    no parens on returns
    remove __psunsigned_t

arch/ia64/sn/io/sn2/ml_iograph.c@1.18
    no parens on returns

arch/ia64/sn/io/sn2/pcibr/pcibr_dvr.c@1.25
    no parens on returns
    use -errno

arch/ia64/sn/io/sn2/pcibr/pcibr_hints.c@1.8
    no parens on returns

arch/ia64/sn/io/sn2/pcibr/pcibr_intr.c@1.15
    no parens on returns
    unsigned to unsigned int

arch/ia64/sn/io/sn2/pcibr/pcibr_rrb.c@1.13
    no parens on returns
    use -errno

arch/ia64/sn/io/sn2/pcibr/pcibr_slot.c@1.18
    no parens on returns
    use -errno

arch/ia64/sn/io/sn2/pciio.c@1.14
    oom handling
    removed ASSERT and funcs not needed

arch/ia64/sn/io/sn2/pic.c@1.13
    use -errno

arch/ia64/sn/io/sn2/shuberror.c@1.12
    add delay.h

arch/ia64/sn/io/sn2/xbow.c@1.10
    include file clean up

arch/ia64/sn/io/sn2/xtalk.c@1.9
    misc code cleanup
    no parens on returns

arch/ia64/sn/io/xswitch.c@1.11
    misc code cleanup

arch/ia64/sn/kernel/bte.c@1.5
    include file clean up

arch/ia64/sn/kernel/mca.c@1.8
    include file clean up

arch/ia64/sn/kernel/probe.c@1.5
    include file clean up

arch/ia64/sn/kernel/sn2/prominfo_proc.c@1.3
    include file clean up

arch/ia64/sn/kernel/sn2/sn2_smp.c@1.9
    include file clean up

arch/ia64/sn/kernel/sn2/sn_proc_fs.c@1.4
    include file clean up

drivers/char/sn_serial.c@1.3
    include file clean up

include/asm-ia64/sn/addrs.h@1.8
    include file clean up
    remove __psunsigned_t

include/asm-ia64/sn/alenlist.h@1.8
    unsigned to unsigned int

include/asm-ia64/sn/arch.h@1.7
    include file clean up

include/asm-ia64/sn/bte.h@1.6
    include file clean up

include/asm-ia64/sn/clksupport.h@1.8
    include file clean up

include/asm-ia64/sn/driver.h@1.5
    remove __psunsigned_t

include/asm-ia64/sn/hcl.h@1.13
    include file clean up

include/asm-ia64/sn/hcl_util.h@1.7
    include file clean up

include/asm-ia64/sn/hwgfs.h@1.5
    include file clean up

include/asm-ia64/sn/iograph.h@1.9
    include file clean up

include/asm-ia64/sn/klconfig.h@1.14
    remove __psunsigned_t

include/asm-ia64/sn/kldir.h@1.5
    remove __psunsigned_t
    include file clean up

include/asm-ia64/sn/module.h@1.12
    include file clean up

include/asm-ia64/sn/nodepda.h@1.14
    include file clean up

include/asm-ia64/sn/pci/bridge.h@1.13
    uchar_t to unsigned char

include/asm-ia64/sn/pci/pcibr_private.h@1.20
    move PVnnnnnn's

include/asm-ia64/sn/pci/pciio.h@1.14
    unsigned to unsigned int

include/asm-ia64/sn/pci/pciio_private.h@1.10
    unsigned to unsigned int

include/asm-ia64/sn/pda.h@1.9
    include file clean up

include/asm-ia64/sn/pio.h@1.7
    include file clean up
    ulong to unsigned long

include/asm-ia64/sn/sgi.h@1.11
    include file clean up
    move PVnnnnnn's to here

include/asm-ia64/sn/sn2/arch.h@1.6
    include file clean up

include/asm-ia64/sn/sn2/sn_private.h@1.12
    include file clean up
    remove __psunsigned_t

include/asm-ia64/sn/sn_cpuid.h@1.8
    include file clean up

include/asm-ia64/sn/sn_private.h@1.6
    include file clean up

include/asm-ia64/sn/types.h@1.6
    include file clean up
    remove __psunsigned_t

include/asm-ia64/sn/vector.h@1.6
    include file clean up

include/asm-ia64/sn/xtalk/xbow.h@1.9
    include file clean up
    misc code cleanup

include/asm-ia64/sn/xtalk/xtalk.h@1.12
    unsigned to unsigned int

include/asm-ia64/sn/xtalk/xwidget.h@1.8
    unsigned to unsigned int

22 years ago[PATCH] Altix update: various, mainly cleanups
Andrew Morton [Wed, 4 Feb 2004 02:52:26 +0000 (18:52 -0800)]
[PATCH] Altix update: various, mainly cleanups

From: Pat Gefre <pfg@sgi.com>

arch/ia64/sn/io/machvec/pci_bus_cvlink.c
    Changes for new pcireg_ interfaces
    pcibr reorg
    Some code cleanup/reorg

arch/ia64/sn/io/machvec/pci_dma.c
    IS_PCIA64() not needed

arch/ia64/sn/io/sn2/ml_iograph.c
    new pcireg_ interface

arch/ia64/sn/io/sn2/pcibr/pcibr_ate.c
    code reorg/clean up

arch/ia64/sn/io/sn2/pcibr/pcibr_config.c
    code reorg/cleanup

arch/ia64/sn/io/sn2/pcibr/pcibr_dvr.c
    reorg/cleanup

arch/ia64/sn/io/sn2/pcibr/pcibr_error.c
    reorg/cleanup

arch/ia64/sn/io/sn2/pcibr/pcibr_intr.c
    reorg/cleanup

arch/ia64/sn/io/sn2/pcibr/pcibr_reg.c
    Fixed the interface to these functions - one call/data type

arch/ia64/sn/io/sn2/pcibr/pcibr_rrb.c
    reorg/cleanup

arch/ia64/sn/io/sn2/pcibr/pcibr_slot.c
    reorg/cleanup

arch/ia64/sn/io/sn2/pciio.c
    removed unused functions

arch/ia64/sn/io/sn2/pic.c
    reorg/cleanup

arch/ia64/sn/kernel/irq.c
    IS_PIC_SOFT not needed
    mod for new pcireg_ interfaces

include/asm-ia64/sn/module.h
    nodes/geoid[] -> MAX_SLABS

include/asm-ia64/sn/pci/bridge.h
    IS_[X]BRIDGE not needed

include/asm-ia64/sn/pci/pci_bus_cvlink.h
    SET_PCIA64 and IS_PCIA64 not needed
    isa64, dma_buf_sync, xbow_buf_sync gone

include/asm-ia64/sn/pci/pcibr.h
    mostly cleanup
    some reorg mods

include/asm-ia64/sn/pci/pcibr_private.h
    some reorg code
    protos for new pcireg_ interfaces

include/asm-ia64/sn/pci/pciio.h
    cleanup

include/asm-ia64/sn/pci/pic.h
    cleanup

include/asm-ia64/sn/sn2/intr.h
    changed IA64_SN2_FIRST_DEVICE_VECTOR and IA64_SN2_LAST_DEVICE_VECTOR

22 years ago[PATCH] Fix x86-64 boot problem
Andrew Morton [Wed, 4 Feb 2004 02:52:16 +0000 (18:52 -0800)]
[PATCH] Fix x86-64 boot problem

From: Andi Kleen <ak@muc.de>

Fix a bug introduced with the last merge that prevented booting with
CONFIG_DEBUG_INFO on on x86-64.  It would corrupt registers in interrupts.
This has hit a few people, so I would consider it as a critical fix.

22 years ago[PATCH] fix memory leak while coredumping
Andrew Morton [Wed, 4 Feb 2004 02:52:07 +0000 (18:52 -0800)]
[PATCH] fix memory leak while coredumping

From: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>

This patch fixes a memory leak that happens when a core file hits the
process's resource limit.

22 years ago[PATCH] SElinux compile fix
Andrew Morton [Wed, 4 Feb 2004 02:51:58 +0000 (18:51 -0800)]
[PATCH] SElinux compile fix

From: Geert Uytterhoeven <geert@linux-m68k.org>

Spinlock code needs <linux/sched.h>

22 years ago[PATCH] DVB compile fix
Andrew Morton [Wed, 4 Feb 2004 02:51:49 +0000 (18:51 -0800)]
[PATCH] DVB compile fix

From: Geert Uytterhoeven <geert@linux-m68k.org>

Never include <asm/delay.h> directly

22 years ago[PATCH] Hisax compile fix
Andrew Morton [Wed, 4 Feb 2004 02:51:40 +0000 (18:51 -0800)]
[PATCH] Hisax compile fix

From: Geert Uytterhoeven <geert@linux-m68k.org>

Never include <asm/delay.h> directly

22 years ago[PATCH] Specialix compile fix
Andrew Morton [Wed, 4 Feb 2004 02:51:31 +0000 (18:51 -0800)]
[PATCH] Specialix compile fix

From: Geert Uytterhoeven <geert@linux-m68k.org>

Compile fix: add missing #include <linux/init.h>

22 years ago[PATCH] Moxa serial compile fixes
Andrew Morton [Wed, 4 Feb 2004 02:51:22 +0000 (18:51 -0800)]
[PATCH] Moxa serial compile fixes

From: Geert Uytterhoeven <geert@linux-m68k.org>

Compile fixes for the Moxa serial drivers:

- Add missing #include <linux/init.h>

- Kill warning if CONFIG_PCI is not set

22 years ago[PATCH] istallion compile fix
Andrew Morton [Wed, 4 Feb 2004 02:51:13 +0000 (18:51 -0800)]
[PATCH] istallion compile fix

From: Geert Uytterhoeven <geert@linux-m68k.org>

Fix compilation if CONFIG_PCI is not set

22 years ago[PATCH] fix compilation warnings in neofb.c
Andrew Morton [Wed, 4 Feb 2004 02:51:04 +0000 (18:51 -0800)]
[PATCH] fix compilation warnings in neofb.c

From: Junio C Hamano <junkio@cox.net>

Compiling neofb.c without MTRR results in two "unused variable" warnings.

22 years ago[PATCH] ppp: try harder to allocate the deflate buffer
Andrew Morton [Wed, 4 Feb 2004 02:50:55 +0000 (18:50 -0800)]
[PATCH] ppp: try harder to allocate the deflate buffer

We're using a 4-order allocation in there and it can fail.  Change it to just
keep reclaiming memory until something gives.

22 years ago[PATCH] Remove the unused kmalloc_percpu_init()
Andrew Morton [Wed, 4 Feb 2004 02:50:46 +0000 (18:50 -0800)]
[PATCH] Remove the unused kmalloc_percpu_init()

From: Martin Hicks <mort@wildopensource.com>

This patch removes kmalloc_percpu_init() from include/linux/percpu.h

It is unused and doesn't seem to be required.

22 years ago[PATCH] missing export of cpu_2_node
Andrew Morton [Wed, 4 Feb 2004 02:50:37 +0000 (18:50 -0800)]
[PATCH] missing export of cpu_2_node

From: Patrick Mansfield <patmans@us.ibm.com>

On NUMAQ, any module which calls __alloc_pages() needs cpu_2_node() (via
cpu_to_node()).

This patch exports cpu_2_node.

22 years ago[PATCH] Remove uneeded dentry assignment
Andrew Morton [Wed, 4 Feb 2004 02:50:28 +0000 (18:50 -0800)]
[PATCH] Remove uneeded dentry assignment

From: James Morris <jmorris@redhat.com>

It seems to me that this dentry assignment in open_namei is not needed per
the patch below.  On this path, dentry is not referenced.

22 years ago[PATCH] CDROMREADAUDIO frames
Andrew Morton [Wed, 4 Feb 2004 02:50:19 +0000 (18:50 -0800)]
[PATCH] CDROMREADAUDIO frames

From: Jens Axboe <axboe@suse.de>

2.6 imposes a 64 frame limit where 2.4 does not (just relies on kmalloc()
failing and limiting frames from that).  That breaks at least on guys app.
With MSF adressing, it's much simpler to be able to ask for a full second
at the time, so I think we should just allow that.  So bump the limit from
64 to CD_FRAMES (which is 75).

22 years ago[PATCH] PCI Scan all functions
Andrew Morton [Wed, 4 Feb 2004 02:50:09 +0000 (18:50 -0800)]
[PATCH] PCI Scan all functions

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

On a ppc64 logically partitioned system, there can be a setup where function
0 of a PCI-PCI bridge is assigned to one partition and (for example) function
2 is assigned to a second partition.  On the second partition, it would
appear that function 0 does not exist, but function 2 does.  If all the
functions are not scanned, everything under function 2 would not be detected.

This patch allows devices that don't respond to function 0, but do respond to
other functions to be marked with a quirk and have all of their functions
scanned.

22 years ago[PATCH] Move cpu_vm_mask to be closer to mmu_context_t in struct mm
Andrew Morton [Wed, 4 Feb 2004 02:49:59 +0000 (18:49 -0800)]
[PATCH] Move cpu_vm_mask to be closer to mmu_context_t in struct mm

From: Jack Steiner <steiner@sgi.com>

The cpu_vm_mask use to be close to the mmu_context_t field in the mm
struct.  Recently some large members were added between "cpu_vm_mask" and
"context".  I suspect that was an oversight.

Here is a patch that puts the fields close together.  This makes it likely
that both fields are in the same cache line.  Since both fields are likely
to be updated at the same time, this may improve performance.

22 years ago[PATCH] Lindent fixed to match reality
Andrew Morton [Wed, 4 Feb 2004 02:49:50 +0000 (18:49 -0800)]
[PATCH] Lindent fixed to match reality

From: Matt Mackall <mpm@selenic.com>

I've been fiddling with cleaning up some old code here and suggest the
following to make Lindent match actual practice more closely. This does:

a) (no -psl)

void *foo(void)
{

 instead of

void *
foo(void) {

b) (no -bs) "sizeof(foo)" rather than "sizeof (foo)"

c) (-ncs) "(void *)foo" rather than "(void *) foo"

22 years ago[PATCH] enable fast symbol lookup via an inverted index in cscope
Andrew Morton [Wed, 4 Feb 2004 02:49:41 +0000 (18:49 -0800)]
[PATCH] enable fast symbol lookup via an inverted index in cscope

From: Louis Zhuang <louis_zhuang@linux.co.intel.com>

enable  fast  symbol lookup via an inverted index.

22 years ago[PATCH] as-iosched.txt update
Andrew Morton [Wed, 4 Feb 2004 02:49:32 +0000 (18:49 -0800)]
[PATCH] as-iosched.txt update

From: Dave Olien <dmo@osdl.org>

acked by npiggin.

22 years ago[PATCH] shrink_list(): check PageSwapCache() after add_to_swap()
Andrew Morton [Wed, 4 Feb 2004 02:49:23 +0000 (18:49 -0800)]
[PATCH] shrink_list(): check PageSwapCache() after add_to_swap()

From: Nikita Danilov <Nikita@Namesys.COM>

shrink_list() checks PageSwapCache() before calling add_to_swap(), this
means that anonymous page that is going to be added to the swap right
now these checks return false and:

 (*) it will be unaccounted for in nr_mapped, and

 (*) it won't be written to the swap if gfp_flags include __GFP_IO but
     not __GFP_FS.

(Both will happen only on the next round of scanning.)

Patch below just moves may_enter_fs initialization down. I am not sure
about (*nr_mapped) increase though.

22 years ago[PATCH] Use address hint in mmap for search
Andrew Morton [Wed, 4 Feb 2004 02:49:14 +0000 (18:49 -0800)]
[PATCH] Use address hint in mmap for search

From: Andi Kleen <ak@suse.de>

When the user gave an address hint in mmap use it as starting point for the
search for !MAP_FIXED.

Currently it is only checked directly and when already used the free area
cache is used as starting point.  With this change you can use mmap(4096,
....) to e.g.  get the lowest free address in your address space, which is
sometimes useful.  For example on x86-64 glibc wants to preferably allocate
thread local data in the first 4GB but use higher addresses when this is
not possible.

This can be a bit more costly in CPU time because it may have to skip over
more VMAs, but gives better semantics for most cases.  Most programs pass
NULL as hint anyways so it won't make any difference for them.

I did it for the generic mmap and for x86-64 for now.  Also minor white
space fixes for x86-64.

22 years ago[PATCH] rate limit nr_free_pages
Andrew Morton [Wed, 4 Feb 2004 02:49:05 +0000 (18:49 -0800)]
[PATCH] rate limit nr_free_pages

From: Jes Sorensen <jes@trained-monkey.org>

nr_free_pages() is expensive, especially on large SMP machines.  The patch
changes the memory overcommit code so that it only calls nr_free_pages() is
we're about to fail the allocation attempt.

22 years ago[PATCH] ide-cd mo write protect
Andrew Morton [Wed, 4 Feb 2004 02:48:56 +0000 (18:48 -0800)]
[PATCH] ide-cd mo write protect

From: Jens Axboe <axboe@suse.de>

It's from Pascal Schmidt and adds write protect handling to ide-cd along
with support for non-2kb block sizes.

22 years ago[PATCH] proc_check_root() locking fix
Andrew Morton [Wed, 4 Feb 2004 02:48:48 +0000 (18:48 -0800)]
[PATCH] proc_check_root() locking fix

From: Maneesh Soni <maneesh@in.ibm.com>

The patch fixes locking in proc_check_root().  It brings is_subdir() call
under vfsmount_lock.  Holding vfsmount_lock will ensure mnt_mountpoint
dentry is intact and the dentry does not go away while it is being checked
in is_subdir().

22 years ago[PATCH] is_subdir locking fix
Andrew Morton [Wed, 4 Feb 2004 02:48:39 +0000 (18:48 -0800)]
[PATCH] is_subdir locking fix

From: Maneesh Soni <maneesh@in.ibm.com>

o The following patch fixes is_subdir() races with d_move. Due to concurrent
  d_move, in is_subdir() we can end up accessing freed d_parent pointer in
  case of pre-emptible kernel. To avoid this we can use rcu_read_lock() and
  rcu_read_unlock().

o This also fixes the seqlock uses in is_subdir() as we need to restart the
  the inner loop with the origianl new_dentry passed to the routine in case
  of any rename occured while we are traversing d_parent links.

22 years ago[PATCH] ac97 OSS driver removal fix
Andrew Morton [Wed, 4 Feb 2004 02:48:30 +0000 (18:48 -0800)]
[PATCH] ac97 OSS driver removal fix

From: Andrew Zabolotny <zap@homelink.ru>

ac97_unregister_driver() is nulling out the ->driver field for all codecs.
It should only null the codecs which are using this driver.

22 years ago[PATCH] u_int32_t causes cross-compile problems
Andrew Morton [Wed, 4 Feb 2004 02:48:21 +0000 (18:48 -0800)]
[PATCH] u_int32_t causes cross-compile problems

From: Pratik Solanki <pratik.solanki@timesys.com>

I came across this C standards issue while cross-compiling the Linux kernel
with gcc on Solaris.  The file gen_crc32table.c uses the non-standard type
u_int32_t.  It's possible that the host machine's sys/types.h does not
define u_int32_t.  The attached patch replaces u_int32_t with the POSIX
standard uint32_t and includes POSIX inttypes.h instead of sys/types.h.

22 years ago[PATCH] fix menuconfig choice item help display
Andrew Morton [Wed, 4 Feb 2004 02:48:12 +0000 (18:48 -0800)]
[PATCH] fix menuconfig choice item help display

From: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Anders Gustafsson <andersg@0x63.nu>
      Roman Zippel <zippel@linux-m68k.org>

This patch fixes menuconfig so it can display help text for individual
choice group config entries.

Previously it would only display the help text attached to the "choice"
item.  There was no way to display the help attached to individual config
entries inside the choice group.  Typically, the "choice" item has no help
text, and all the useful help is attached to the individual entries, so
this was a bit of a problem.

22 years ago[PATCH] /proc/stat:btime fix
Andrew Morton [Wed, 4 Feb 2004 02:48:03 +0000 (18:48 -0800)]
[PATCH] /proc/stat:btime fix

From: George Anzinger <george@mvista.com>,
      Petri Kaukasoina <kaukasoi@elektroni.ee.tut.fi>

btime in /proc/stat does not stay constant but decreases at a rate of 15
secs/day, because we're assuming that HZ is exactly 100.  Use the correct
adjustments to fix that up.

22 years ago[PATCH] Fine tune the time conversion to eliminate conversion errors.
Andrew Morton [Wed, 4 Feb 2004 02:47:54 +0000 (18:47 -0800)]
[PATCH] Fine tune the time conversion to eliminate conversion errors.

From: George Anzinger <george@mvista.com>

The time conversion code is erroring on the side of a bit too small.  The
attached patch forces any error to be on the high side.  The current code will
convert 1 nanosecond to zero jiffies (standard says that should be 1).  It also
is around 1 nanosecond late on each roll to the next jiffie.

I have done some error checks with this patch applied and get the following
errors in PPB ( Parts Per Billion):

HZ     nano sec conversion     microsecond conversion
1000    315                      45
1024    227                      40
100     28                       317

In all cases the error is on the high side, which means that the final shift
will, most likely, eliminate the error bits.

22 years ago[PATCH] UFS: honour `silent' parameter.
Andrew Morton [Wed, 4 Feb 2004 02:47:44 +0000 (18:47 -0800)]
[PATCH] UFS: honour `silent' parameter.

From: GOTO Masanori <gotom@debian.or.jp>

Teach ufs_fill_super() to honour the `silent' parameter.

22 years ago[PATCH] try reiserfs before other filesystems
Andrew Morton [Wed, 4 Feb 2004 02:47:35 +0000 (18:47 -0800)]
[PATCH] try reiserfs before other filesystems

reiserfs places its superblock in weird places which can result in false
positives and various printks when other filesystems probe a resierfs
filesystem.

22 years ago[PATCH] namei.c: take vfsmount_lock
Andrew Morton [Wed, 4 Feb 2004 02:47:27 +0000 (18:47 -0800)]
[PATCH] namei.c: take vfsmount_lock

From: Mike Waychison <Michael.Waychison@Sun.COM>

The attached patch ensures that we grab vfsmount_lock when grabbing a
reference to mnt_parent in follow_up and follow_dotdot.

We also don't need to access ->mnt_parent in follow_mount and
__follow_down to mntput because we already the parent pointer on the stack.

22 years ago[PATCH] __d_path needs vfsmount_lock
Andrew Morton [Wed, 4 Feb 2004 02:47:18 +0000 (18:47 -0800)]
[PATCH] __d_path needs vfsmount_lock

From: Mike Waychison <Michael.Waychison@Sun.COM>

- protect vfsmount->mnt_parent by taking vfsmount_lock in __d_path

22 years ago[PATCH] [janitor] vga16fb: add missing iounmap()
Andrew Morton [Wed, 4 Feb 2004 02:47:09 +0000 (18:47 -0800)]
[PATCH] [janitor] vga16fb: add missing iounmap()

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

Patch inserts missing iounmap() on error.

22 years ago[PATCH] janitor: vgastate: cleanup iounmap() usage
Andrew Morton [Wed, 4 Feb 2004 02:47:00 +0000 (18:47 -0800)]
[PATCH] janitor: vgastate: cleanup iounmap() usage

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

From: Leann Ogasawara <ogasawara@osdl.org>

Patch inserts missing iounmap's on error and also removes unnecessary
iounmap's.

22 years ago[PATCH] copy_namespace ENOMEM fix
Andrew Morton [Wed, 4 Feb 2004 02:46:51 +0000 (18:46 -0800)]
[PATCH] copy_namespace ENOMEM fix

From: Marcus Alanen <maalanen@ra.abo.fi>

The copy_tree() function can return NULL, so this checks for it.

22 years ago[PATCH] oprofile, typo in alpha driver
Andrew Morton [Wed, 4 Feb 2004 02:46:42 +0000 (18:46 -0800)]
[PATCH] oprofile, typo in alpha driver

From: Philippe Elie <phil.el@wanadoo.fr>

Unless I miss something this look like a typo, one user reported to get
error from the daemon: 'Unknown event for counter 1' (alpha ev6) and the
behavior was better but not completly sane after trying this patch: he get
spurious event for counter 1 when enabling only counter 0 but rarely now.
No alpha box to test this.

22 years ago[PATCH] oprofile per-cpu buffer overrun
Andrew Morton [Wed, 4 Feb 2004 02:46:33 +0000 (18:46 -0800)]
[PATCH] oprofile per-cpu buffer overrun

From: Philippe Elie <phil.el@wanadoo.fr>

In a ring buffer controlled by a read and write positions we can't use
buffer_size but only buffer_size - 1 entry, the last free entry act as a
guard to avoid write pos overrun.  This bug was hidden because the writer,
oprofile_add_sample(), request one more entry than really needed.

22 years ago[PATCH] console cleanup
Andrew Morton [Wed, 4 Feb 2004 02:46:26 +0000 (18:46 -0800)]
[PATCH] console cleanup

From: Sam Ravnborg <sam@ravnborg.org>,
      Ben Collins <bcollins@debian.org>

Fix up the console makefiles and logo generation.

1) To make output look like the rest of the kernel build.

2) To avoid make utilising chained rules, and therefore issuing a 'rm
   drivers/video/logo/linux_logo.c ...' during the build.

I have previously submitted a few patches for logo/Makefile, but this is the
first one that actually address the problems I have seen in a proper way.

And no, I did not like such a simple thing to look that complicated, the
other option was to list too many files or to use other types of kbuild/make
magic.

22 years ago[PATCH] janitor: sound/oss: use C99 inits.
Andrew Morton [Wed, 4 Feb 2004 02:46:18 +0000 (18:46 -0800)]
[PATCH] janitor: sound/oss: use C99 inits.

From: "Randy.Dunlap" <rddunlap@osdl.org>,
      "Maciej Soltysiak" <solt@dns.toxicfilms.tv>

C99 initializers for linux/sound.

22 years ago[PATCH] janitor: dz: verify_area() removal
Andrew Morton [Wed, 4 Feb 2004 02:46:09 +0000 (18:46 -0800)]
[PATCH] janitor: dz: verify_area() removal

From: "Randy.Dunlap" <rddunlap@osdl.org>,
      Domen Puncer <domen@coderock.org>

22 years ago[PATCH] janitor: change a few SYSRQ to MAGIC_SYSRQ
Andrew Morton [Wed, 4 Feb 2004 02:46:00 +0000 (18:46 -0800)]
[PATCH] janitor: change a few SYSRQ to MAGIC_SYSRQ

From: "Randy.Dunlap" <rddunlap@osdl.org>,
      Domen Puncer <domen@coderock.org>

Noone tested that code to see if it really works?

22 years ago[PATCH] futex: remove redundant test
Andrew Morton [Wed, 4 Feb 2004 02:45:51 +0000 (18:45 -0800)]
[PATCH] futex: remove redundant test

From: Jamie Lokier <jamie@shareable.org>

One of the tests in unqueue_me() is redundant.  If we acquire the spinlock,
the futex must be queued.

22 years ago[PATCH] Zero last byte of mount option page.
Andrew Morton [Wed, 4 Feb 2004 02:45:42 +0000 (18:45 -0800)]
[PATCH] Zero last byte of mount option page.

From: James Morris <jmorris@redhat.com>

Here's a patch which zeroes the last byte of the mount option data copied
from userspace during mount(2).

For filesystems which parse mount options as strings (the majority), lack
of a zero terminator could cause the page to be overrun.  The source code
comments specify that the maximum size of the mount data is PAGE_SIZE-1, so
this patch will not affect any valid binary-formatted mount data.

22 years ago[PATCH] posix_timers fixes
Andrew Morton [Wed, 4 Feb 2004 02:45:33 +0000 (18:45 -0800)]
[PATCH] posix_timers fixes

From: George Anzinger <george@mvista.com>

- Removes C++ comment in favor of C style.

- Removes the special treatment for MIPS SIGEV values.  We only require
  (and error if this fails) that the SIGEV_THREAD_ID value not share bits
  with the other SIGEV values.  Note that mips has yet to define this value
  so when they do...

- Corrects the check for the signal range to be from 1 to SIGRTMAX
  inclusive.

- Adds a check to verify that kmem_cache_alloc() actually returned a timer,
  error if not.

- Fixes a bug in timer_gettime() where the incorrect value was returned if
  a signal was pending on the timer OR the timer was a SIGEV_NONE timer.

22 years ago[PATCH] Better "Losing Ticks" Error Message
Andrew Morton [Wed, 4 Feb 2004 02:45:24 +0000 (18:45 -0800)]
[PATCH] Better "Losing Ticks" Error Message

From: timothy parkinson <t@timothyparkinson.com>

Seems like a lot of people see the below error message, but aren't quite
sure why it happens or how to fix it.  I sure didn't.  Here's my attempt at
remedying that.

22 years ago[PATCH] Clean up raid6 kbuild output
Andrew Morton [Wed, 4 Feb 2004 02:45:15 +0000 (18:45 -0800)]
[PATCH] Clean up raid6 kbuild output

From: Sam Ravnborg <sam@ravnborg.org>

During raid6 compilation with KBUILD_VERBOSE unset we see invokations of
perl commands which should not have been displayed.

22 years ago[PATCH] Remove memblks from the kernel
Andrew Morton [Wed, 4 Feb 2004 02:45:06 +0000 (18:45 -0800)]
[PATCH] Remove memblks from the kernel

From: "Martin J. Bligh" <mbligh@aracnet.com>

This patch removes memblks from the kernel ...  we don't use them, and the
NUMA API that was planning to use them when they were originally designed
isn't going to use them anymore.  They're just unnecessary added complexity
now ...  time for them to go.

There's a slight complication in that ia64 uses something with a similar
name for part of its memory layout, but Jes Sorensen kindly untangled them
from each other for us.  The patch with his modifications is below.  Jes
tested it on ia64, and I testbuilt it with every config in my arsenal.

22 years ago[PATCH] remove SIIG combo cards PCI ids from parport_pc
Andrew Morton [Wed, 4 Feb 2004 02:44:56 +0000 (18:44 -0800)]
[PATCH] remove SIIG combo cards PCI ids from parport_pc

From: Andrey Panin <pazke@donpac.ru>

support for SIIG made serial/parallel conbo cards was moved to
parport_serial driver some months ago, but their PCI ids still remain in
parport_pc PCI device table.  Attached patch removes them.

22 years ago[PATCH] /proc/paritions: omit removable media
Andrew Morton [Wed, 4 Feb 2004 02:44:47 +0000 (18:44 -0800)]
[PATCH] /proc/paritions: omit removable media

From: Neil Brown <neilb@cse.unsw.edu.au>

If programs like mount use /proc/partitions to find filesystems based on
labels, then surely we want md devices in there as they often contain
filesystems.

If the problem is that mount-by-label takes forever with removable media
then surely the "right" approch is the following patch, and then actually
set this flag on the "floppy.c" device.  (It is already set for ide-floppy
and sd devices).

22 years ago[PATCH] md: Change the way the name of an md device is printed in error messages.
Andrew Morton [Wed, 4 Feb 2004 02:44:38 +0000 (18:44 -0800)]
[PATCH] md: Change the way the name of an md device is printed in error messages.

From: NeilBrown <neilb@cse.unsw.edu.au>

Instead of using ("md%d", mdidx(mddev)), we now use ("%s", mdname(mddev))
where mdname is the disk_name field in the associated gendisk structure.
This allows future flexability in naming.

22 years ago[PATCH] md: Collect device IO statistics for MD personalities.
Andrew Morton [Wed, 4 Feb 2004 02:44:29 +0000 (18:44 -0800)]
[PATCH] md: Collect device IO statistics for MD personalities.

From: NeilBrown <neilb@cse.unsw.edu.au>

Update {read,write}{s,_sectors} on each request to an MD array.

22 years ago[PATCH] md: Fixes to make debuging output nicer.
Andrew Morton [Wed, 4 Feb 2004 02:44:20 +0000 (18:44 -0800)]
[PATCH] md: Fixes to make debuging output nicer.

From: NeilBrown <neilb@cse.unsw.edu.au>

This patch thanks to Paul Clements <Paul.Clements@SteelEye.com> and only has
effect if md is compiled with #define DEBUG 1

22 years ago[PATCH] md: Move the test in preferred_minor to where it is used.
Andrew Morton [Wed, 4 Feb 2004 02:44:11 +0000 (18:44 -0800)]
[PATCH] md: Move the test in preferred_minor to where it is used.

From: NeilBrown <neilb@cse.unsw.edu.au>

A RAID superblock can indicate which minor number the array should be
assembled under.  As this is only meaningful when doing auto-start, we move
the test for it being in the valid range to the place where auto-start
happens.  When an array is started any other way, it doesn't matter what
value is here.

22 years ago[PATCH] remove_suid() fix
Andrew Morton [Wed, 4 Feb 2004 02:44:02 +0000 (18:44 -0800)]
[PATCH] remove_suid() fix

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

bernhard_heibler@gmx.de has discovered that NFS is very slow when writing to
a file which has execute permissions.  See

http://bugme.osdl.org/show_bug.cgi?id=1936

This patch fixes remove_suid() to not try to modify the inode mode on every
write to such a file.

22 years ago[PATCH] Fix deep stack usage in ncpfs
Andrew Morton [Wed, 4 Feb 2004 02:43:53 +0000 (18:43 -0800)]
[PATCH] Fix deep stack usage in ncpfs

From: Petr Vandrovec <vandrove@vc.cvut.cz>

Arjan van de Ven pointed out to me there are no checks on name component
lengths in ncpfs, so potentially 4KB regions could be allocated on stack,
leading to the user controlled stack overflow.

It was using variable-sized arrays, so this snuck past the static
stack-usage checking tools.

As NCP is limited to 255 bytes on components, we can simple limit these
local variables to 256 bytes, and after this stack usage looks more
acceptable.  Length checking occurs inside ncp_vol2io, during
iocharset->codepage conversion.

As a side effect support for multibyte codepages now works as it should,
instead of returning -EINVAL whenever filename in 'codepage' encoding was
longer than in 'iocharset'.

Other part fixes typo where atime change updated ctime and not atime field.

22 years ago[PATCH] deprecate the raw driver
Andrew Morton [Wed, 4 Feb 2004 02:43:44 +0000 (18:43 -0800)]
[PATCH] deprecate the raw driver

Fat chance, but we should try.

22 years ago[PATCH] initialise cpu_vm_mask in init_mm
Andrew Morton [Wed, 4 Feb 2004 02:43:35 +0000 (18:43 -0800)]
[PATCH] initialise cpu_vm_mask in init_mm

From: Anton Blanchard <anton@samba.org>

Some architectures use cpu_vm_mask to optimise TLB flushes.  On ppc64 we
are now using a common flush infrastructure that handles both userspace and
kernelspace (vmalloc) pages.  In order to avoid triggering this
optimisation we need to mark the init mm as having scheduled on all cpus.

Things currently work by luck (we check for the cpu only having run on the
local cpu, and the field is initialised to 0), but it would be safer to
initialise it CPU_MASK_ALL.

22 years ago[PATCH] osst.c: suppress page allocation failure warnings
Andrew Morton [Wed, 4 Feb 2004 02:43:27 +0000 (18:43 -0800)]
[PATCH] osst.c: suppress page allocation failure warnings

This driver is trying an order-9 allocation and if that fails, order 8, etc.
Crufty, but we do expect failures, so suppress the warnings.

22 years ago[PATCH] remove valid_addr_bitmap
Andrew Morton [Wed, 4 Feb 2004 02:43:18 +0000 (18:43 -0800)]
[PATCH] remove valid_addr_bitmap

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

->valid_addr_bitmap is initialized nowhere.  Any kern_addr_valid() testing
it returns 0 unconditionally.

This patch converts kern_addr_valid() implementations using it to return 0
as per the above and removes it from structures and zone initialization.
Untested (not even compiletested), though a similar patch also nuking
d_validate() was in use in -wli for several months.

22 years ago[PATCH] console: support for > 127 chars
Andrew Morton [Wed, 4 Feb 2004 02:43:09 +0000 (18:43 -0800)]
[PATCH] console: support for > 127 chars

From: Nigel Cunningham <ncunningham@users.sourceforge.net>

Change the console code to support up to 256 (maybe 255?) columns.

22 years ago[PATCH] fix blockdev --getro for sr, sd, ide-floppy
Andrew Morton [Wed, 4 Feb 2004 02:43:00 +0000 (18:43 -0800)]
[PATCH] fix blockdev --getro for sr, sd, ide-floppy

From: John McKell <mckellj@iomega.com>

This 2.6.1 patch works by setting gendisk->policy to the correct value
during initialization as the various drivers decide whether or not the disk
is writeable.  This patch persuades "blockdev --getro ..." to correctly
report the read-only state of a newly inserted disk.  This patch applies to
sr.c, sd.c and ide-floppy.c.  ide-cd.c already has this functionality built
into it.

Using an Iomega Zip drive as the test case...

Without the patch, I always see:

$ sudo blockdev --getro /dev/sda
0
$

That's only correct for writeable disks though.  Only when the patch
is applied do I see a write-protected disk described correctly:

$ sudo blockdev --getro /dev/sda
1
$

22 years ago[PATCH] ppc32: Set HZ to 1000 on ppc32
Andrew Morton [Wed, 4 Feb 2004 02:42:51 +0000 (18:42 -0800)]
[PATCH] ppc32: Set HZ to 1000 on ppc32

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

This patch has been in my tree for monthes and Paulus agrees that it should
be made generic, so here we go, PPC32 is now proud to run at 1000HZ :)

22 years ago[PATCH] Make naming of parititions in sysfs match /proc/partitions.
Andrew Morton [Wed, 4 Feb 2004 02:42:42 +0000 (18:42 -0800)]
[PATCH] Make naming of parititions in sysfs match /proc/partitions.

From: Neil Brown <neilb@cse.unsw.edu.au>

In fs/partitions/check.c  there are two pieces of code that add a
partition number to a block-device name:

  - the 'disk_name' function
  - a snprintf in add_partitions.

'disk_name' inserts a 'p' before the partition number if the device
name ends with a digit.  The snprintf in add_partitions doesn't.

This patch rectifies this anomoly so that names in sysfs can be
parsed more reliably.

This has been extensively discussed.  It will probably break the external
`iostat' tool.  But only for disks whose name ends in a digit, which appears
to be only DAC960.

22 years ago[PATCH] missing `console_driver' with CONFIG_VT && !CONFIG_VT_CONSOLE
Andrew Morton [Wed, 4 Feb 2004 02:42:35 +0000 (18:42 -0800)]
[PATCH] missing `console_driver' with CONFIG_VT && !CONFIG_VT_CONSOLE

From: Jun Sun <jsun@mvista.com>

'console_driver' is defined only when CONFIG_VT_CONSOLE is set.  However it
is used by vty_init() which is outside the scope of CONFIG_VT_CONSOLE.