29 Jul, 2007

4 commits

  • A non-periodic clock_event_device and the "jiffies" clock don't mix well:
    tick_handle_periodic() can go into an infinite loop.

    Currently lguest guests use the jiffies clock when the TSC is
    unusable. Instead, make the Host write the current time into the lguest
    page on every interrupt. This doesn't cost much but is more precise
    and at least as accurate as the jiffies clock. It also gets rid of
    the GET_WALLCLOCK hypercall.

    Also, delay setting sched_clock until our clock is set up, otherwise
    the early printk timestamps can go backwards (not harmful, just ugly).

    Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Jason Yeh sent his crashing .config: bzImages made with
    CONFIG_RELOCATABLE=y put the relocs where the BSS is expected, and we
    crash with unusual results such as:

    lguest: unhandled trap 14 at 0xc0122ae1 (0xa9)

    Relying on BSS being zero was merely laziness on my part, and
    unfortunately, lguest doesn't go through the normal startup path (which
    does this in asm).

    Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
    [S390] Fix sclp_vt220 error handling.
    [S390] cio: Reorganize initialization.
    [S390] cio: Make CIO_* macros safe if dbfs are not available.
    [S390] cio: Clean up messages.
    [S390] Fix IRQ tracing.
    [S390] vmur: fix diag14_read.
    [S390] Wire up sys_fallocate.
    [S390] add types.h include to s390_ext.h
    [S390] cio: Remove deprecated rdc/rcd.
    [S390] Get rid of new section mismatch warnings.
    [S390] sclp: kill unused SCLP config option.
    [S390] cio: Remove remains of _ccw_device_get_device_number().
    [S390] cio: css_sch_device_register() can be made static.
    [S390] Improve __smp_call_function_map.
    [S390] Convert to smp_call_function_single.

    Linus Torvalds
     
  • * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/cooloney/blackfin-2.6:
    Input Serio: Blackfin doesnt support I8042 - make sure it doesnt get selected
    Blackfin arch: add BF54x I2C/TWI TWI0 driver support
    Blackfin On-Chip RTC driver update for supporting BF54x
    Blackfin Ethernet MAC driver: fix bug Report returned -ENOMEM upwards (in case L1/uncached memory alloc fails)
    Blackfin arch: add error message when IRQ no available
    Blackfin arch: Initialize the exception vectors early in the boot process
    Blackfin arch: fix a compiling warning about dma-mapping
    Blackfin arch: switch to using proper defines this time THREAD_SIZE and PAGE_SIZE instead of just PAGE_SIZE everywhere
    Blackfin arch: fix bug which unaligns the init thread's stack and causes the current macro to fail.
    Blackfin arch: Load P0 before storing through it
    Blackfin arch: fix KGDB bug, dont forget last parameter.
    Blackfin arch: add selections for BF544 and BF542
    Blackfin arch: use bfin_read_SWRST() now that BF561 provides it
    Blackfin arch: setup aliases for some core Core A MMRs

    Linus Torvalds
     

27 Jul, 2007

36 commits

  • Also convert to slab_is_available() as an indicator if
    get_zeroed_page() will work or not.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • - Localize more of the init calls in init_channel_subsystem().
    - Print a warning if init_channel_subsystem() failed.

    Signed-off-by: Cornelia Huck
    Signed-off-by: Martin Schwidefsky

    Cornelia Huck
     
  • Signed-off-by: Cornelia Huck
    Signed-off-by: Martin Schwidefsky

    Cornelia Huck
     
  • - Remove unneeded messages.
    - Move some messages into the debug feature.
    - Use dev_* where appropriate.
    - Use "cio: " prefix consistently.

    Signed-off-by: Cornelia Huck
    Signed-off-by: Martin Schwidefsky

    Cornelia Huck
     
  • Record length of spool file must be only stored in 1st SPLINK record

    Signed-off-by: Frank Munzert
    Signed-off-by: Martin Schwidefsky

    Frank Munzert
     
  • http://marc.info/?l=linux-kernel&m=118481061928246&w=2 seems to
    indicate disfavour of "deprecated", so let's just kill it now.

    Signed-off-by: Cornelia Huck
    Signed-off-by: Martin Schwidefsky

    Cornelia Huck
     
  • Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • sclp is always compiled in.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • Signed-off-by: Cornelia Huck
    Signed-off-by: Martin Schwidefsky

    Cornelia Huck
     
  • Signed-off-by: Cornelia Huck
    Signed-off-by: Martin Schwidefsky

    Cornelia Huck
     
  • Signed-off-by: Dave Airlie

    Alan Hourihane
     
  • Fix some missing places to check with device id info, which
    should probe the device gart correctly.

    Signed-off-by: Wang Zhenyu
    Signed-off-by: Dave Airlie

    Zhenyu Wang
     
  • AGP should not need to lock pages. They are not protecting any race
    because there is no lock_page calls, only SetPageLocked.

    This is causing hangs with d00806b183152af6d24f46f0c33f14162ca1262a.

    Signed-off-by: Nick Piggin
    Signed-off-by: Dave Airlie

    Nick Piggin
     
  • Hi,

    Coverity spotted a "use after free" bug in
    drivers/char/agp/ati-agp.c::ati_create_gatt_pages().

    The same one that was in
    drivers/char/agp/amd-k7-agp.c::amd_create_gatt_pages()

    The problem is this:
    If "entry = kzalloc(sizeof(struct ati_page_map), GFP_KERNEL);"
    fails, then there's a loop in the function to free all entries
    allocated so far and break out of the allocation loop. That in itself
    is pretty sane, but then the (now freed) 'tables' is assigned to
    ati_generic_private.gatt_pages and 'retval' is set to -ENOMEM which
    causes ati_free_gatt_pages(); to be called at the end of the function.
    The problem with this is that ati_free_gatt_pages() will then loop
    'ati_generic_private.num_tables' times and try to free each entry in
    tables[] - this is bad since tables has already been freed and
    furthermore it will call kfree(tables) at the end - a double free.

    This patch removes the freeing loop in ati_create_gatt_pages() and
    instead relies entirely on the call to ati_free_gatt_pages() to free
    everything we allocated in case of an error. It also sets
    ati_generic_private.num_tables to the actual number of entries
    allocated instead of just using the value passed in from the caller -
    this ensures that ati_free_gatt_pages() will only attempt to free
    stuff that was actually allocated.

    Note: I'm in no way intimate with this code and I have no way to
    actually test this patch (besides compile test it), so while I've
    tried to be careful in reading the code and make sure the patch
    does the right thing an ACK from someone who actually knows the
    code in-depth would be very much appreciated.

    Signed-off-by: Jesper Juhl
    Signed-off-by: Dave Airlie

    Jesper Juhl
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
    drivers/mmc/core/: make 3 functions static
    mmc: add missing printk levels
    mmc: remove redundant debug information from sdhci and wbsd
    mmc: proper debugging output in core
    mmc: be more verbose about card insertions/removal
    mmc: Don't hold lock when releasing an added card
    mmc: add a might_sleep() to mmc_claim_host()
    mmc: update kerneldoc
    mmc: update header file paths
    sdhci: add support to ENE-CB714
    mmc: check error bits before command completion

    Linus Torvalds
     
  • It's a totally independent decision for the user whether he wants
    suspend and/or hibernation support, and ACPI shouldn't care.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Commit bd804eba1c8597cbb7cd5a5f9fe886aae16a079a ("PM: Introduce
    pm_power_off_prepare") caused problems in the poweroff path, as reported by
    YOSHIFUJI Hideaki / 吉藤英明.

    Generally, sysdev_shutdown() should be called after the ACPI preparation for
    powering the system off. To make it happen, we can separate sysdev_shutdown()
    from device_shutdown() and call it directly wherever necessary.

    Signed-off-by: Rafael J. Wysocki
    Tested-by: YOSHIFUJI Hideaki / 吉藤英明
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • These are manual fixups after running Lindent. No functional change.

    Signed-off-by: Bjorn Helgaas
    Cc: Len Brown
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Run Lindent on all PNP source files.

    Produced by:

    $ quilt new pnp-lindent
    $ find drivers/pnp -name \*.[ch] | xargs quilt add
    $ quilt add include/linux/{pnp.h,pnpbios.h}
    $ scripts/Lindent drivers/pnp/*.c drivers/pnp/*/*.c include/linux/pnp*.h
    $ quilt refresh --sort

    Signed-off-by: Bjorn Helgaas
    Cc: Len Brown
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Change INT0 trigger mode from edge-sense mode to level-sense mode,
    in order to fix the following timeout error:
    'NETDEV WATCHDOG: eth0: transmit timed out'.

    This patch is required only for the Mappi platform.

    Signed-off-by: Hirokazu Takata
    Cc: Hitoshi Yamamoto
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hirokazu Takata
     
  • Fix link errors below by selecting FW_LOADER
    LD .tmp_vmlinux1
    drivers/built-in.o: In function `cyz_load_fw':
    drivers/char/cyclades.c:4908: undefined reference to `request_firmware'
    drivers/char/cyclades.c:4979: undefined reference to `release_firmware'

    Cc:
    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Fixed 'depends on PPC_PASEMI' in EDAC Kconfig. Module PASEMI depends ONLY on
    the PASEMI on PPC.

    Was previously enabled for ALL PPC

    Cc: Alan Cox
    Cc: Egor N. Martovetsky
    Signed-off-by: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • This patch fixes sysfs exit code for the EDAC PCI device in a similiar manner
    and the previous fixes for EDAC_MC and EDAC_DEVICE.

    It removes the old (and incorrect) completion model and uses reference counts
    on per instance kobjects and on the edac core module.

    This pattern was applied to the edac_mc and edac_device code, but the EDAC PCI
    code was missed. In addition, this fixes a system hang after a low level
    driver was unloaded. (A cleanup function was called twice, which really
    screwed things up)

    Cc: Greg KH
    Cc: Alan Cox
    Signed-off-by: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • This fixes a deadlock that could occur on a 'setup' and 'teardown' sequence of
    the workq for a edac_mc control structure instance. A similiar fix was
    previously implemented for the edac_device code.

    In addition, the edac_mc device code there was missing code to allow the workq
    period valu to be altered via sysfs control.

    This patch adds that fix on the code, and allows for the changing of the
    period value as well.

    Cc: Alan Cox
    Signed-off-by: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Doug Thompson
     
  • chipsfb.c shouldn't use PM_SUSPEND_MEM in there, but PM_EVENT_SUSPEND.

    Cc: Cedric Le Goater
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • This patch fixes an obvious use-after-free spotted by the Coverity checker.

    Signed-off-by: Adrian Bunk
    Acked-by: Jeremy Fitzhardinge
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • drivers/edac/edac_stub.c:15:22: asm/edac.h: No such file or directory

    was it even supposed to work?

    Cc: Douglas Thompson
    Cc: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • ia64:

    drivers/i2c/chips/ds1682.c: In function `ds1682_show':
    drivers/i2c/chips/ds1682.c:78: warning: long long unsigned int format, long unsigned int arg (arg 3)
    drivers/i2c/chips/ds1682.c:78: warning: long long unsigned int format, long unsigned int arg (arg 3)

    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Alphabetic reordering of the drivers in the rtc subsys makefile.

    (akpm: merge this asap! Makefiles are the source of many patch conflicts..)

    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • Documentation: The FIXMEs

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Switcher

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Host

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Launcher

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Drivers

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • Documentation: The Guest

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • The netfilter code had very good documentation: the Netfilter Hacking HOWTO.
    Noone ever read it.

    So this time I'm trying something different, using a bit of Knuthiness.

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell