21 Oct, 2006

22 commits

  • I wrote a patch to avoid redundant memory hot-add call at boot time. This
    was cause of strange fail message of memory hotplug like "ACPI: add_memory
    failed". Memory is recognized by early boot code with EFI/E820.

    But, if DSDT describes memory devices for them, then hot-add code is called
    for already recognized memory, and it shows fail messages with -EEXIST.
    So, sys admin will misunderstand this message as something wrong by it.

    This patch avoids them by preventing redundant hot-add call until
    completion of driver initialization.

    [akpm@osdl.org: cleanups]
    Signed-off-by: Yasunori Goto
    Cc: "Brown, Len"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yasunori Goto
     
  • I suppose this message seems quite useless except debugging. It just shows
    "Hotplug Mem Device". System admin can't know anything by this message.
    So, I would like to change it to KERN_DEBUG.

    Signed-off-by: Yasunori Goto
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yasunori Goto
     
  • Signed-off-by: Borislav Petkov
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Borislav Petkov
     
  • Re-add the set_irq_chip_and_handler() prototype, it's still widely used.

    Signed-off-by: Ingo Molnar
    Cc: Olaf Hering
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • This patch breaks C-state discovery on my IBM IntelliStation Z30 because
    the return value of acpi_processor_get_power_info_fadt is not assigned to
    "result" in the case that acpi_processor_get_power_info_cst returns
    -ENODEV. Thus, if ACPI provides C-state data via the FADT and not _CST (as
    is the case on this machine), we incorrectly exit the function with -ENODEV
    after reading the FADT. The attached patch sets the value of result so
    that we don't exit early.

    Signed-off-by: Darrick J. Wong
    Acked-by: "Pallipadi, Venkatesh"
    Acked-by: "Brown, Len"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Darrick J. Wong
     
  • Fix typo (repeated) in serial Kconfig.

    Signed-off-by: Randy Dunlap
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • When enabling the mmapper driver I got warnings because this "const"
    miscdevice structure is passed to function as non-const pointer; unlike struct
    tty_operations, however, I verified that misc_{de,}register _do_ modify their
    parameter, so this const attribute must be removed.

    Since the purpose of the change was to guarantee that no lock was needed, add
    a comment to prove this differently.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Cc: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • Silence useless warning about undefined symbol in Kconfig.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Cc: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • Freeing the stack is left uselessly to the caller of run_helper in some cases
    - this is taken from run_helper_thread, but here it is useless, so no caller
    needs it and the only place where this happens has a potential leak - in case
    of error neither run_helper() nor xterm_open() call free_stack(). At this
    point passing a pointer is not needed - the stack pointer should be passed
    directly, but this change is not done here.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Cc: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • This should make sure that, for UML, host's configuration files are not
    considered, which avoids various pains to the user. Our dependency are such
    that the obtained Kconfig will be valid and will lead to successful
    compilation - however they cannot prevent an user from disabling any boot
    device, and if an option is not set in the read .config (say
    /boot/config-XXX), with make menuconfig ARCH=um, it is not set. This always
    disables UBD and all console I/O channels, which leads to non-working UML
    kernels, so this bothers users - especially now, since it will happen on
    almost every machine (/boot/config-`uname -r` exists almost on every machine).
    It can be workarounded with make defconfig ARCH=um, but it is non-obvious and
    can be avoided, so please _do_ merge this patch.

    Given the existence of options, it could be interesting to implement
    (additionally) "option required" - with it, Kconfig will refuse reading a
    .config file (from wherever it comes) if the given option is not set. With
    this, one could mark with it the option characteristic of the given
    architecture (it was an old proposal of Roman Zippel, when I pointed out our
    problem):

    config UML
    option required
    default y

    However this should be further discussed:
    *) for x86, it must support constructs like:

    ==arch/i386/Kconfig==
    config 64BIT
    option required
    default n
    where Kconfig must require that CONFIG_64BIT is disabled or not present in the
    read .config.

    *) do we want to do such checks only for the starting defconfig or also for
    .config? Which leads to:
    *) I may want to port a x86_64 .config to x86 and viceversa, or even among more
    different archs. Should that be allowed, and in which measure (the user may
    force skipping the check for a .config or it is only given a warning by
    default)?

    Cc: Roman Zippel
    Cc:
    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Cc: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • CONFIG_MODE_TT does not work there, the UML_ prefixed version must be used -
    this causes a link-time failure when CONFIG_MODE_TT is enabled (i.e. always
    here, never by Jeff).

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Cc: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • Fix coding conventions violations is arch/um/os-Linux/helper.c.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Cc: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • user.h is too generic a header name. I've split out allocation routines from
    it.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Cc: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • I happened to notice that this code is a leftover and it should be removed -
    since there are sporadical efforts to revive the PPC port doing such cleanups
    is not useless.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Cc: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • Fix cut'n'paste typo - &a and &b are used in other examples, in this one
    the doc uses &u and &v.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Acked-by: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • arch/um/sys-x86_64/ptrace.c:20:1: warning: "SC_SS" redefined
    In file included from arch/um/include/sysdep/ptrace.h:18,
    from include/asm/ptrace-generic.h:12,
    from include/asm/ptrace.h:15,
    from arch/um/sys-x86_64/ptrace.c:8:
    arch/um/include/sysdep/sc.h:38:1: warning: this is the location of the previous definition
    arch/um/sys-x86_64/ptrace.c: In function 'putreg':
    arch/um/sys-x86_64/ptrace.c:63: warning: implicit declaration of function 'SC_FS_BASE'
    arch/um/sys-x86_64/ptrace.c:63: error: invalid lvalue in unary '&'
    arch/um/sys-x86_64/ptrace.c:63: warning: implicit declaration of function 'SC_GS_BASE'
    arch/um/sys-x86_64/ptrace.c:63: error: invalid lvalue in unary '&'
    arch/um/sys-x86_64/ptrace.c: In function 'getreg':
    arch/um/sys-x86_64/ptrace.c:101: error: invalid lvalue in unary '&'
    arch/um/sys-x86_64/ptrace.c:101: error: invalid lvalue in unary '&'

    I'd have to say that the fix for this, for now, is this:

    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • contains the constants for personality(2) but also
    some defintions that are useless or even harmful in userspace such as the
    personality() macro.

    Signed-off-by: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ralf Baechle
     
  • Separate out the concept of "queue congestion" from "backing-dev congestion".
    Congestion is a backing-dev concept, not a queue concept.

    The blk_* congestion functions are retained, as wrappers around the core
    backing-dev congestion functions.

    This proper layering is needed so that NFS can cleanly use the congestion
    functions, and so that CONFIG_BLOCK=n actually links.

    Cc: "Thomas Maier"
    Cc: "Jens Axboe"
    Cc: Trond Myklebust
    Cc: David Howells
    Cc: Peter Osterlund
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Export the clear_queue_congested() and set_queue_congested() functions
    located in ll_rw_blk.c

    The functions are renamed to blk_clear_queue_congested() and
    blk_set_queue_congested().

    (needed in the pktcdvd driver's bio write congestion control)

    Signed-off-by: Thomas Maier
    Cc: Peter Osterlund
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Maier
     
  • Use the special_file() macro to check whether an inode is special instead of
    open-coding it.

    Acked-by: Mike Halcrow
    Cc: Phillip Hellewell
    Signed-off-by: Pekka Enberg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pekka Enberg
     
  • When direct-io falls back to buffered write, it will just leave the dirty data
    floating about in pagecache, pending regular writeback.

    But normal direct-io semantics are that IO is synchronous, and that it leaves
    no pagecache behind.

    So change the fallback-to-buffered-write code to sync the file region and to
    then strip away the pagecache, just as a regular direct-io write would do.

    Acked-by: Jeff Moyer
    Cc: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Moyer
     
  • When rebooting with netconsole over e100, the driver shutdown code would
    deadlock with netpoll. Reduce shutdown code to a bare minimum while retaining
    WoL and suspend functionality.

    Signed-off-by: Auke Kok
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Auke Kok
     

19 Oct, 2006

18 commits

  • * 'ubuntu-updates' of master.kernel.org:/pub/scm/linux/kernel/git/bcollins/ubuntu-2.6:
    [pci_ids] Add Quicknet XJ vendor/device ID's.
    [valkyriefb] Ifdef for when CONFIG_NVRAM isn't enabled.
    [platinumfb] Ifdef for when CONFIG_NVRAM isn't enabled.
    [igafb] Add pci dev table for module auto loading.
    [controlfb] Ifdef for when CONFIG_NVRAM isn't enabled.
    [hid-core] TurboX Keyboard needs NOGET quirk.
    [ixj] Add pci dev table for module auto loading.
    [initio] Add pci dev table for module auto loading.
    [fdomain] Add pci dev table for module auto loading.
    [BusLogic] Add pci dev table for auto module loading.
    [mv643xx] Add pci device table for auto module loading.
    [alim7101] Add pci dev table for auto module loading.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/hwmon-2.6:
    hwmon: Fix debug messages in w83781d
    hwmon: Let w83781d and lm78 load again
    w83627ehf: Fix the detection of fan5
    k8temp: Documentation update
    smsc47m1: List the SMSC LPC47M112 as supported
    hwmon: Fix documentation typos
    adm9240: Update Grant Coady's email address
    w83791d: Fix unchecked return status

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/aoe-2.6:
    aoe: fix sysfs_create_file warnings
    aoe: revert printk macros
    aoe: update driver version
    aoe: remove sysfs comment
    aoe: use bio->bi_idx
    aoe: module parameter for device timeout
    aoe: zero copy write 2 of 2
    aoe: improve retransmission heuristics
    aoe: jumbo frame support 2 of 2
    aoe: clean up printks via macros
    aoe: jumbo frame support 1 of 2
    aoe: zero copy write 1 of 2
    aoe: remove unused NARGS enum
    aoe: update copyright date
    aoe: eliminate isbusy message

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6: (22 commits)
    PCI Hotplug: move pci_hotplug.h to include/linux/
    change pci hotplug subsystem maintainer to Kristen
    PCI: optionally sort device lists breadth-first
    cpcihp_generic: prevent loading without "bridge" parameter
    pci: Additional search functions
    PCI: quirks: switch quirks code offender to use pci_get API
    PCI: Update MSI-HOWTO.txt according to pci_msi_supported()
    PCI: Improve pci_msi_supported() comments
    PCI hotplug: ioremap balanced with iounmap
    shpchp: remove unnecessary cmd_busy member from struct controller
    shpchp: fix command completion check
    pci: Stamp out pci_find_* usage in fakephp
    PCI: fix pcie_portdrv_restore_config undefined without CONFIG_PM error
    Fix DMA resource allocation in ACPIPnP
    PCI: Turn pci_fixup_video into generic for embedded VGA
    PCI: add ICH7/8 ACPI/GPIO io resource quirks
    PCI: pcie-check-and-return-bus_register-errors fix
    PCI: VIA IRQ quirk behaviour change
    pciehp: Remove unnecessary check in pciehp_ctrl.c
    pciehp - add missing locking
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6:
    driver core: kmalloc() failure check in driver_probe_device
    Driver core: bus: remove indentation level
    Driver core: Don't ignore error returns from probing
    Driver core: Don't leak 'old_class_name' in drivers/base/core.c::device_rename()
    driver core fixes: sysfs_create_group() retval in topology.c
    driver core fixes: device_create_file() retval check in dmapool.c
    driver core fixes: device_add() cleanup on error
    driver core fixes: bus_add_device() cleanup on error
    driver core fixes: bus_add_attrs() retval check
    driver core fixes: sysfs_create_link() retval check in class.c
    sysfs: update obsolete comment in sysfs_update_file
    sysfs: remove duplicated dput in sysfs_update_file
    HOWTO: bug report addition
    Fix dev_printk() is now GPL-only
    Driver core: plug device probe memory leak
    Documentation: feature-removal-schedule typo

    Linus Torvalds
     
  • * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
    [S390] update default configuration
    [S390] cio: update documentation.
    [S390] dasd: clean up timer.
    [S390] Fix pte type checking.
    [S390] monwriter find header logic.
    [S390] cio: sch_no -> schid.sch_no conversion.
    [S390] Wire up epoll_pwait syscall.
    [S390] cio: invalid device operational notification
    [S390] fix vmlinux link when CONFIG_SYSIPC=n

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
    [IA64] Count resched interrupts
    [IA64] remove unused acpi_kbd_controller_present, acpi_legacy_devices
    [IA64] update sn2_defconfig
    [IA64] reformat pal.S to fit in 80 columns, fix typos
    [IA64] remove unused PAL_CALL_IC_OFF
    [IA64] - Allow IPIs in timer loop
    [IA64] move ioremap/ioremap_nocache under __KERNEL__
    [IA64] perfmon fix for global IRQ fix

    Linus Torvalds
     
  • Fix debug messages in w83781d at detection time. We can't use dev_dbg()
    on an i2c client's device before calling i2c_attach_client() on that
    client.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • Let the w83781d and lm78 hardware monitoring drivers load even when
    no chip was detected at the ISA address. There can still be supported
    chips connected to an I2C bus or SMBus.

    This fixes bug #7293.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • Fix the detection of fan5 and preserve the bit between the
    register writes, because the bit is write only.

    Signed-off-by: Rudolf Marek
    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Rudolf Marek
     
  • Update the documentation for the k8temp driver.

    Signed-off-by: Rudolf Marek
    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Rudolf Marek
     
  • The SMSC LPC47M112 Super-I/O chip appears to be compatible with the
    LPC47M10x and LPC47M13x as far as hardware monitoring is concerned.
    The device ID is even the same, so it's really only a documentation
    update.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • Fix typos in hardware monitoring documentation.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • Replace a bouncing email that I cannot recover from Mr Google.

    Signed-off-by: Grant Coady
    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Grant Coady
     
  • Replace all unchecked calls to device_create_file with a single group
    declaration, and one call to sysfs_create_group, and check that one
    return status. Also remove the files on device detach.

    Signed-off-by: Jim Cromie
    Signed-off by: Charles Spirakis
    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jim Cromie
     
  • Moved the attributes into a group, making the compiler be quiet about
    ignoring the return value of the file create calls. This also also
    fixed a bug when removing the files, which were not symlinks.

    Cc: "Ed L. Cashin"
    Cc: Alan Cox
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This patch addresses the concern that the aoe driver should
    not introduce unecessary conventions that must be learned by
    the reader. It reverts patch 6.

    Signed-off-by: "Ed L. Cashin"
    Acked-by: Alan Cox
    Signed-off-by: Greg Kroah-Hartman

    Ed L. Cashin
     
  • Update aoe driver version number to 32.

    Signed-off-by: "Ed L. Cashin"
    Acked-by: Alan Cox
    Signed-off-by: Greg Kroah-Hartman

    Ed L. Cashin