22 Apr, 2008

1 commit


19 Apr, 2008

5 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.26: (1090 commits)
    [NET]: Fix and allocate less memory for ->priv'less netdevices
    [IPV6]: Fix dangling references on error in fib6_add().
    [NETLABEL]: Fix NULL deref in netlbl_unlabel_staticlist_gen() if ifindex not found
    [PKT_SCHED]: Fix datalen check in tcf_simp_init().
    [INET]: Uninline the __inet_inherit_port call.
    [INET]: Drop the inet_inherit_port() call.
    SCTP: Initialize partial_bytes_acked to 0, when all of the data is acked.
    [netdrvr] forcedeth: internal simplifications; changelog removal
    phylib: factor out get_phy_id from within get_phy_device
    PHY: add BCM5464 support to broadcom PHY driver
    cxgb3: Fix __must_check warning with dev_dbg.
    tc35815: Statistics cleanup
    natsemi: fix MMIO for PPC 44x platforms
    [TIPC]: Cleanup of TIPC reference table code
    [TIPC]: Optimized initialization of TIPC reference table
    [TIPC]: Remove inlining of reference table locking routines
    e1000: convert uint16_t style integers to u16
    ixgb: convert uint16_t style integers to u16
    sb1000.c: make const arrays static
    sb1000.c: stop inlining largish static functions
    ...

    Linus Torvalds
     
  • do not return a -EINVAL when mmap()-ing PCI holes.

    Signed-off-by: Ingo Molnar
    Acked-by: Venkatesh Pallipadi
    Acked-by: Suresh Siddha
    Acked-by: H. Peter Anvin
    Acked-by: Thomas Gleixner
    Acked-by: Arjan van de Ven

    Ingo Molnar
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (137 commits)
    [SCSI] iscsi: bidi support for iscsi_tcp
    [SCSI] iscsi: bidi support at the generic libiscsi level
    [SCSI] iscsi: extended cdb support
    [SCSI] zfcp: Fix error handling for blocked unit for send FCP command
    [SCSI] zfcp: Remove zfcp_erp_wait from slave destory handler to fix deadlock
    [SCSI] zfcp: fix 31 bit compile warnings
    [SCSI] bsg: no need to set BSG_F_BLOCK bit in bsg_complete_all_commands
    [SCSI] bsg: remove minor in struct bsg_device
    [SCSI] bsg: use better helper list functions
    [SCSI] bsg: replace kobject_get with blk_get_queue
    [SCSI] bsg: takes a ref to struct device in fops->open
    [SCSI] qla1280: remove version check
    [SCSI] libsas: fix endianness bug in sas_ata
    [SCSI] zfcp: fix compiler warning caused by poking inside new semaphore (linux-next)
    [SCSI] aacraid: Do not describe check_reset parameter with its value
    [SCSI] aacraid: Fix down_interruptible() to check the return value
    [SCSI] sun3_scsi_vme: add MODULE_LICENSE
    [SCSI] st: rename flush_write_buffer()
    [SCSI] tgt: use KMEM_CACHE macro
    [SCSI] initio: fix big endian problems for auto request sense
    ...

    Linus Torvalds
     
  • TF_MASK is no longer defined, use X86_EFLAGS_TF.

    Signed-off-by: Harvey Harrison
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: (27 commits)
    [IA64] kdump: Add crash_save_vmcoreinfo for INIT
    [IA64] Fix NUMA configuration issue
    [IA64] Itanium Spec updates
    [IA64] Untangle sync_icache_dcache() page size determination
    [IA64] arch/ia64/kernel/: use time_* macros
    [IA64] remove redundant display of free swap space in show_mem()
    [IA64] make IOMMU respect the segment boundary limits
    [IA64] kprobes: kprobe-booster for ia64
    [IA64] fix getpid and set_tid_address fast system calls for pid namespaces
    [IA64] Replace explicit jiffies tests with time_* macros.
    [IA64] use goto to jump out do/while_each_thread
    [IA64] Fix unlock ordering in smp_callin
    [IA64] pgd_offset() constfication.
    [IA64] kdump: crash.c coding style fix
    [IA64] kdump: add kdump_on_fatal_mca
    [IA64] Minimize per_cpu reservations.
    [IA64] Correct pernodesize calculation.
    [IA64] Kernel parameter for max number of concurrent global TLB purges
    [IA64] Multiple outstanding ptc.g instruction support
    [IA64] Implement smp_call_function_mask for ia64
    ...

    Linus Torvalds
     

18 Apr, 2008

26 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (58 commits)
    ide: remove ide_init_default_irq() macro
    ide: move default IDE ports setup to ide_generic host driver
    ide: remove obsoleted "idex=noprobe" kernel parameter (take 2)
    ide: remove needless hwif->irq check from ide_hwif_configure()
    ide: init hwif->{io_ports,irq} explicitly in legacy VLB host drivers
    ide: limit legacy VLB host drivers to alpha, x86 and mips
    cmd640: init hwif->{io_ports,irq} explicitly
    cmd640: cleanup setup_device_ptrs()
    ide: add ide-4drives host driver (take 3)
    ide: remove ppc ifdef from init_ide_data()
    ide: remove ide_default_io_ctl() macro
    ide: remove CONFIG_IDE_ARCH_OBSOLETE_INIT
    ide: add CONFIG_IDE_ARCH_OBSOLETE_DEFAULTS (take 2)
    ppc/pmac: remove no longer needed IDE quirk
    ppc: don't include
    ppc: remove ppc_ide_md
    ppc/pplus: remove ppc_ide_md.ide_init_hwif hook
    ppc/sandpoint: remove ppc_ide_md hooks
    ppc/lopec: remove ppc_ide_md hooks
    ppc/mpc8xx: remove ppc_ide_md hooks
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-kgdb:
    kgdb: always use icache flush for sw breakpoints
    kgdb: fix SMP NMI kgdb_handle_exception exit race
    kgdb: documentation fixes
    kgdb: allow static kgdbts boot configuration
    kgdb: add documentation
    kgdb: Kconfig fix
    kgdb: add kgdb internal test suite
    kgdb: fix several kgdb regressions
    kgdb: kgdboc pl011 I/O module
    kgdb: fix optional arch functions and probe_kernel_*
    kgdb: add x86 HW breakpoints
    kgdb: print breakpoint removed on exception
    kgdb: clocksource watchdog
    kgdb: fix NMI hangs
    kgdb: fix kgdboc dynamic module configuration
    kgdb: document parameters
    x86: kgdb support
    consoles: polling support, kgdboc
    kgdb: core
    uaccess: add probe_kernel_write()

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86: (613 commits)
    x86: standalone trampoline code
    x86: move suspend wakeup code to C
    x86: coding style fixes to arch/x86/kernel/acpi/sleep.c
    x86: setup_trampoline() - fix section mismatch warning
    x86: section mismatch fixes, #1
    x86: fix paranoia about using BIOS quickboot mechanism.
    x86: print out buggy mptable
    x86: use cpu_online()
    x86: use cpumask_of_cpu()
    x86: remove unnecessary tmp local variable
    x86: remove unnecessary memset()
    x86: use ioapic_read_entry() and ioapic_write_entry()
    x86: avoid redundant loop in io_apic_level_ack_pending()
    x86: remove superfluous initialisation in boot code.
    x86: merge mpparse_{32,64}.c
    x86: unify mp_register_gsi
    x86: unify mp_config_acpi_legacy_irqs
    x86: unify mp_register_ioapic
    x86: unify uniq_io_apic_id
    x86: unify smp_scan_config
    ...

    Linus Torvalds
     
  • * 'semaphore' of git://git.kernel.org/pub/scm/linux/kernel/git/willy/misc:
    Remove DEBUG_SEMAPHORE from Kconfig
    Improve semaphore documentation
    Simplify semaphore implementation
    Add down_timeout and change ACPI to use it
    Introduce down_killable()
    Generic semaphore implementation
    Add semaphore.h to kernel_lock.c
    Fix quota.h includes

    Linus Torvalds
     
  • David S. Miller
     
  • IDE PMAC host driver and all IDE PCI host drivers use pci_enable_device()
    nowadays so the following quirk in pmac_pcibios_after_init() can be removed.

    Cc: Benjamin Herrenschmidt
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Cc: Benjamin Herrenschmidt
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add special cases for pplus and prep to ide_default_{irq,io_base}()
    (+ FIXMEs about the need to use IDE platform host driver instead).

    * Remove no longer needed ppc_ide_md and struct ide_machdep_calls.

    * Then remove include from:
    - arch/powerpc/kernel/setup_32.c
    - arch/ppc/kernel/ppc_ksyms.c
    - arch/ppc/kernel/setup.c
    - arch/ppc/platforms/pplus.c
    - arch/ppc/platforms/prep_setup.c

    There should be no functional changes caused by this patch.

    Cc: Benjamin Herrenschmidt
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Call ide_init_default_irq() for pplus in init_ide_data().

    * Remove no longer needed pplus_ide_init_hwif_ports().

    There should be no functional changes caused by this patch.

    Cc: Benjamin Herrenschmidt
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add IDE_HFLAG_FORCE_LEGACY_IRQS host flag for Motorola-Sandpoint platform
    to sl82c105 host driver.

    * Disable ide_generic host driver in arch/ppc/configs/sandpoint_defconfig
    and enable sl82c105 one.

    * Remove ppc_ide_md hooks from arch/ppc/platforms/sandpoint.c - no need for
    them (sl82c105 host driver takes care of all this setup).

    * Then remove no longer needed include.

    * Also update arch/ppc/platforms/sandpoint.h.

    Unfortunately (unlike lopec's case) sl82c105 host driver was not enabled
    in defconfing so there is a funcionality change.

    [ Not a big deal since sl82c105 is superior over ide_generic. ]

    Cc: Benjamin Herrenschmidt
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add IDE_HFLAG_FORCE_LEGACY_IRQS host flag for Motorola-LoPEC platform
    to sl82c105 host driver.

    * Remove ppc_ide_md hooks from arch/ppc/platforms/lopec.c - no need for
    them (sl82c105 host driver takes care of all this setup).

    * Then remove no longer needed include.

    Looking at arch/ppc/configs/lopec_defconfig:

    ...
    CONFIG_IDE_GENERIC=y
    CONFIG_BLK_DEV_IDEPCI=y
    # CONFIG_IDEPCI_SHARE_IRQ is not set
    # CONFIG_BLK_DEV_OFFBOARD is not set
    CONFIG_BLK_DEV_GENERIC=y
    # CONFIG_BLK_DEV_OPTI621 is not set
    CONFIG_BLK_DEV_SL82C105=y
    ...

    there should be no functional changes unless somebody preferred to disable
    sl82c105 host driver and use only ide_generic one (but why would anybody
    want to do such thing :-).

    PS It seems that lopec_defconfig hasn't been updated for ages but if somebody
    is going to do it please look into disabling IDE_GENERIC and BLK_DEV_GENERIC
    config options. Thanks.

    Cc: Benjamin Herrenschmidt
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Initialize IDE ports in mpc8xx_ide_probe().

    * Remove m8xx_ide_init() and ppc_ide_md hooks - no need for them
    (IDE mpc8xx host driver takes care of all this setup).

    * Remove needless 'if (irq)' and 'if (data_port >= MAX_HWIFS)' checks
    from m8xx_ide_init_hwif_ports().

    * Remove 'ctrl_port' and 'irq' arguments from m8xx_ide_init_hwif_ports().

    * Rename m8xx_ide_init_hwif_ports() to m8xx_ide_init_ports().

    * Add __init tag to m8xx_ide_init_ports().

    This patch fixes hwif->irq always being overriden to 0 (== auto-probe, is
    this even working on PPC?) because of ide_init_default_irq() call in ide.c.

    There should be no other functional changes.

    Cc: Benjamin Herrenschmidt
    Acked-by: Vitaly Bordug
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * Add pmac_ide_init_ports() helper and use it instead of
    pmac_ide_init_hwif_ports().

    * Remove ppc_ide_md hooks - no need for them
    (IDE pmac host driver takes care of all this setup).

    * Then remove no longer needed include
    from arch/powerpc/platforms/powermac/pmac.h.

    Cc: Benjamin Herrenschmidt
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • There are no "default" IDE ports on PPC4xx so ppc4xx_ide_init_hwif_ports() is
    unnecessary, remove it. Also remove no longer needed include.

    There should be no functional changes caused by this patch.

    Cc: Josh Boyer
    Cc: Matt Porter
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Also remove now not needed include.

    Cc: Benjamin Herrenschmidt
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • kgdb core fixes:
    - Check to see that mm->mmap_cache is not null before calling
    flush_cache_range(), else on arch=ARM it will cause a fatal
    fault.

    - Breakpoints should only be restored if they are in the BP_ACTIVE
    state.

    - Fix a typo in comments to "kgdb_register_io_module"

    x86 kgdb fixes:
    - Fix the x86 arch handler such that on a kill or detach that the
    appropriate cleanup on the single stepping flags gets run.

    - Add in the DIE_NMIWATCHDOG call for x86_64

    - Touch the nmi watchdog before returning the system to normal
    operation after performing any kind of kgdb operation, else
    the possibility exists to trigger the watchdog.

    Signed-off-by: Jason Wessel
    Signed-off-by: Ingo Molnar

    Jason Wessel
     
  • Add HW breakpoints into the arch specific portion of x86 kgdb. In the
    current x86 kernel.org kernels HW breakpoints are changed out in lazy
    fashion because there is no infrastructure around changing them when
    changing to a kernel task or entering the kernel mode via a system
    call. This lazy approach means that if a user process uses HW
    breakpoints the kgdb will loose out. This is an acceptable trade off
    because the developer debugging the kernel is assumed to know what is
    going on system wide and would be aware of this trade off.

    There is a minor bug fix to the kgdb core so as to correctly call the
    hw breakpoint functions with a valid value from the enum.

    There is also a minor change to the x86_64 startup code when using
    early HW breakpoints. When the debugger is connected, the cpu startup
    code must not zero out the HW breakpoint registers or you cannot hit
    the breakpoints you are interested in, in the first place.

    Signed-off-by: Jason Wessel
    Signed-off-by: Ingo Molnar

    Jason Wessel
     
  • This patch fixes the hang regression with kgdb when the NMI interrupt
    comes in while the master core is returning from an exception.

    Adjust the NMI logic such that KGDB will not stop NMI exceptions from
    occurring by in general returning NOTIFY_DONE. It is not possible to
    distinguish the debug NMI sync vs the normal NMI apic interrupt so
    kgdb needs to catch the unknown NMI if it the debugger was previously
    active on one of the cpus.

    Signed-off-by: Jason Wessel
    Signed-off-by: Ingo Molnar

    Jason Wessel
     
  • simplified and streamlined kgdb support on x86, both 32-bit and 64-bit,
    based on patch from:

    Subject: kgdb: core-lite
    From: Jason Wessel

    [ and countless other authors - see the patch for details. ]

    Signed-off-by: Ingo Molnar
    Signed-off-by: Jason Wessel
    Signed-off-by: Jan Kiszka
    Reviewed-by: Thomas Gleixner

    Ingo Molnar
     
  • Conflicts:

    arch/ia64/kernel/mca.c

    Tony Luck
     
  • Conflicts:

    arch/ia64/mm/tlb.c

    Tony Luck
     
  • Tony Luck
     
  • Tony Luck
     
  • Tony Luck
     
  • Tony Luck
     
  • Tony Luck
     

17 Apr, 2008

8 commits

  • move the trampoline setup code out of smpboot.c - UP kernels can have
    suspend support too.

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • Move wakeup code to .c, so that video mode setting code can be shared
    between boot and wakeup. Remove nasty assembly code in 64-bit case by
    re-using trampoline code. Stack setup was fixed to clear high 16bits
    of %esp, maybe that fixes some machines.

    .c code sharing and morse code was done H. Peter Anvin, Sam Ravnborg
    reviewed kbuild related stuff, and it seems okay to him. Rafael did
    some cleanups.

    [rjw:
    * Made the patch stop breaking compilation on x86-32
    * Added arch/x86/kernel/acpi/sleep.h
    * Got rid of compiler warnings in arch/x86/kernel/acpi/sleep.c
    * Fixed 32-bit compilation on x86-64 systems
    * Added include/asm-x86/trampoline.h and fixed the non-SMP
    compilation on 64-bit x86
    * Removed arch/x86/kernel/acpi/sleep_32.c which was not used
    * Fixed some breakage caused by the integration of smpboot.c done
    under us in the meantime]

    Signed-off-by: Pavel Machek
    Signed-off-by: H. Peter Anvin
    Reviewed-by: Sam Ravnborg
    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Ingo Molnar

    Pavel Machek
     
  • Signed-off-by: Paolo Ciarrocchi
    Signed-off-by: Ingo Molnar

    Paolo Ciarrocchi
     
  • this patch fixes section mismatch warnings (on x86_64 host) in setup_trampoline(),
    which was referencing __initdata variables trampoline_data and trampoline_end.

    Warning messages:
    WARNING: arch/x86/kernel/built-in.o(.cpuinit.text+0x2b6a): Section mismatch in reference from the function setup_trampoline()
    to the variable .init.data:trampoline_data
    The function __cpuinit setup_trampoline() references
    a variable __initdata trampoline_data.
    If trampoline_data is only used by setup_trampoline then
    annotate trampoline_data with a matching annotation.

    WARNING: arch/x86/kernel/built-in.o(.cpuinit.text+0x2b71): Section mismatch in reference from the function setup_trampoline()
    to the variable .init.data:trampoline_end
    The function __cpuinit setup_trampoline() references
    a variable __initdata trampoline_end.
    If trampoline_end is only used by setup_trampoline then
    annotate trampoline_end with a matching annotation.

    Signed-off-by: Ingo Molnar

    Jacek Luczak
     
  • This patch fixes mismatch warnings in smp_checks() (in arch/x86/kernel/smpboot.c):

    WARNING: arch/x86/kernel/built-in.o(.text+0x11922): Section mismatch in reference from the function smp_checks()
    to the variable .cpuinit.data:smp_b_stepping
    The function smp_checks() references
    the variable __cpuinitdata smp_b_stepping.
    This is often because smp_checks lacks a __cpuinitdata
    annotation or the annotation of smp_b_stepping is wrong.

    Signed-off-by: Jacek Luczak
    Signed-off-by: Ingo Molnar

    Jacek Luczak
     
  • > > Make sure that we clear the "shutdown status flag" in the CMOS
    > > register after each CPU is brought up. This fixes a problem where the
    > > "shutdown status flag" may remain set when a CPU is brought up after
    > > booting.
    >
    > btw., what problem does this result in, exactly?

    The shutdown status flag set to "0xA", corresponds to "JMP double word
    request without INT init".

    This JMP at reboot time is at an unintended location. And results in
    Triple faults in our case.
    Though this error at reboot can be safely ignored in a VM environment,
    am not sure what the effect would be on a physical system. May be it
    will result in a triple fault and an eventual hardware reset thus
    masking this BUG in the kernel.

    This fix just makes sure that we reset that status flag after
    initialization is done.

    Fix paranoia about using BIOS quickboot mechanism.

    Make sure that we clear the "shutdown status flag" in the CMOS register
    after each CPU is brought up. This fixes a problem where the "shutdown
    status flag" may remain set when a CPU is brought up after booting.

    Signed-off-by: Alok N Kataria
    Signed-off-by: Dan Arai
    Signed-off-by: Ingo Molnar

    Alok Kataria
     
  • print out buggy mptable, instead of skipping it quietly

    Signed-off-by: Yinghai Lu
    Signed-off-by: Ingo Molnar

    Yinghai Lu
     
  • Signed-off-by: Akinobu Mita
    Signed-off-by: Ingo Molnar

    Akinobu Mita