27 Jul, 2007

6 commits


26 Jul, 2007

17 commits


25 Jul, 2007

15 commits

  • As it was a synonym for (CONFIG_ACPI && CONFIG_X86),
    the ifdefs for it were more clutter than they were worth.

    For ia64, just add a few stubs in anticipation of future
    S3 or S4 support.

    Signed-off-by: Len Brown

    Len Brown
     
  • * 'for_paulus' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc: (25 commits)
    [POWERPC] 85xx: Added needed MPC85xx PCI device IDs
    [POWERPC] Add Freescale PCI VENDOR ID and 8641 device IDs
    [POWERPC] 85xxCDS: MPC8548 DTS cleanup.
    [POWERPC] 85xxCDS: Misc 8548 PCI Corrections.
    [POWERPC] 85xxCDS: Delay 8259 cascade hookup.
    [POWERPC] 85xxCDS: Make sure restart resets the PCI bus.
    [POWERPC] 85xxCDS: Allow 8259 cascade to share an MPIC interrupt line.
    [POWERPC] FSL: Add support for PCI-X controllers
    [POWERPC] Make sure virtual P2P bridge registers are setup on PCIe PHB
    [POWERPC] Provide ability to setup P2P bridge registers from struct resource
    [POWERPC] Add basic PCI/PCI Express support for 8544DS board
    [POWERPC] Make endianess of cfg_addr for indirect pci ops runtime
    [POWERPC] Removed setup_indirect_pci_nomap
    [POWERPC] 85xx: Add quirk to ignore bogus FPGA on CDS
    [POWERPC] 85xx: Added 8568 PCIe support
    [POWERPC] Fixup resources on pci_bus for PCIe PHB when no device is connected
    [POWERPC] Add basic PCI node for mpc8568mds board
    [POWERPC] Use Freescale pci/pcie common code for 85xx boards
    [POWERPC] Update PCI nodes in the 83xx/85xx boards device tree
    [POWERPC] Add 8548 CDS PCI express controller node and PCI-X device node
    ...

    Linus Torvalds
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] Fix marge error due to conflict in arch/mips/kernel/head.S
    [MIPS] ARC: Remove unused arch/mips/arc/console.c
    [MIPS] SNI: sniprom
    [MIPS] Jazz: remove unneeded reset functions
    [MIPS] Whitespace cleanup.
    [MIPS] Make resources for ds1742 "static __initdata"
    [MIPS] Replace __attribute_used__ with __used
    [MIPS] Jazz: Remove unused arch/mips/jazz/io.c
    [MIPS] Mark prom_free_prom_memory as __init_refok
    [MIPS] MIPSsim: Fix cflags

    Linus Torvalds
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC64]: Mark most of initial bootup asm as .text.init.ref_ok
    [SPARC32]: Fix bug in sparc optimized memset.
    [SPARC64]: Update defconfig.
    [SPARC]: Add missing NOTES section.
    [SPARC32]: missing exports
    [SPARC32]: Deal with rtc/sun_mostek_rtc conflict.

    Linus Torvalds
     
  • We can't mark the whole thing init because there are dependencies
    in bootloaders that assume that _start, or whatever the image
    entry value, is 2 instructions before the "HdrS" signature.

    In fact, TILO assumes this entry is always at 0x4000, yikes!

    Also, right after the bootloader info area there are OBP strings and
    values that get used later in the boot process, and those are not all
    provably .init yet.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Sparc optimized memset (arch/sparc/lib/memset.S) does not fill last
    byte of the memory area, if area size is less than 8 bytes and start
    address is not word (4-bytes) aligned.

    Here is code chunk where bug located:
    /* %o0 - memory address, %o1 - size, %g3 - value */
    8:
    add %o0, 1, %o0
    subcc %o1, 1, %o1
    bne,a 8b
    stb %g3, [%o0 - 1]

    This code should write byte every loop iteration, but last time delay
    instruction stb is not executed because branch instruction sets
    "annul" bit.

    Patch replaces bne,a by bne instruction.

    Error can be reproduced by simple kernel module:

    --------------------
    #include
    #include
    #include
    #include
    #include

    static void do_memset(void **p, int size)
    {
    memset(p, 0x00, size);
    }

    static int __init memset_test_init(void)
    {
    char fooc[8];
    int *fooi;
    memset(fooc, 0xba, sizeof(fooc));

    do_memset((void**)(fooc + 3), 1);

    fooi = (int*) fooc;
    printk("%08X %08X\n", fooi[0], fooi[1]);

    return -1;
    }

    static void __exit memset_test_cleanup(void)
    {
    return;
    }

    module_init(memset_test_init);
    module_exit(memset_test_cleanup);

    MODULE_LICENSE("GPL");
    EXPORT_NO_SYMBOLS;
    --------------------

    Signed-off-by: Alexander Shmelev
    Signed-off-by: David S. Miller

    Alexander Shmelev
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • This fixes boot failures when the build-id LD option is
    actually used, because without it we end up with multiple
    PT_LOAD sections which the SILO boot loader cannot handle.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: Al Viro
    Signed-off-by: David S. Miller

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: David S. Miller

    Al Viro
     
  • * 'request-queue-t' of git://git.kernel.dk/linux-2.6-block:
    [BLOCK] Add request_queue_t and mark it deprecated
    [BLOCK] Get rid of request_queue_t typedef

    Linus Torvalds
     
  • spufs.h now has two enums for the sched_flags leading to identical
    values for SPU_SCHED_WAS_ACTIVE and SPU_SCHED_NOTIFY_ACTIVE. Merge
    them into a single enum as they were in the IBM development tree.

    Signed-off-by: Christoph Hellwig
    Acked-by: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • 2.6.23-rc1 turned up another batch of references from non-__init code to
    __init code. In most cases, these were missing __init annotations. In one
    case (os_drop_memory), the annotation was present but wrong.

    init_maps is __init, but for some reason was being very careful about the
    mechanism by which it allocated memory, checking whether it was OK to use
    kmalloc (at this point in the boot, it definitely isn't) and using either
    alloc_bootmem_low_pages or kmalloc/vmalloc. So, the kmalloc/vmalloc code is
    removed.

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • Restructure do_aio thanks to commments from Ulrich and Al.

    Uli started this by seeing that UML's initialization of a struct iocb
    initialized fields that it shouldn't.

    Al followed up by adding the following cleanups:
    eliminating a variable by just using an anonymous structure in
    its place.
    hoisting a duplicated line out of the switch.
    simplifying the error checking at the end.

    I added a severity to the printk.

    Signed-off-by: Jeff Dike
    Cc: Al Viro
    Cc: Ulrich Drepper
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • In 2.6.23-rc1, i386 fiddled its string support such that UML started getting
    undefined references from modules. The UML asm/string.h was including the
    i386 string.h, which defined __HAVE_ARCH_STR*, but the corresponding
    implementations weren't being pulled in.

    This is fixed by adding arch/i386/lib/string.h to the list of host
    architecture files to be pulled in to UML.

    A complication is that the libc exports file assumed that the generic strlen
    and strstr weren't in use (i.e. __HAVE_ARCH_STR is defined), then they aren't
    exported. This is untrue for strlen, which is exported in either case, so
    this logic is not needed.

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

24 Jul, 2007

2 commits