1. 21 5月, 2010 21 次提交
    • J
      kgdb: core changes to support kdb · dcc78711
      Jason Wessel 提交于
      These are the minimum changes to the kgdb core in order to enable an
      API to connect a new front end (kdb) to the debug core.
      
      This patch introduces the dbg_kdb_mode variable controls where the
      user level I/O is routed.  It will be routed to the gdbstub (kgdb) or
      to the kdb front end which is a simple shell available over the kgdboc
      connection.
      
      You can switch back and forth between kdb or the gdb stub mode of
      operation dynamically.  From gdb stub mode you can blindly type
      "$3#33", or from the kdb mode you can enter "kgdb" to switch to the
      gdb stub.
      
      The logic in the debug core depends on kdb to look for the typical gdb
      connection sequences and return immediately with KGDB_PASS_EVENT if a
      gdb serial command sequence is detected.  That should allow a
      reasonably seamless transition between kdb -> gdb without leaving the
      kernel exception state.  The two gdb serial queries that kdb is
      responsible for detecting are the "?" and "qSupported" packets.
      
      CC: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Acked-by: NMartin Hicks <mort@sgi.com>
      dcc78711
    • J
      kdb: core for kgdb back end (2 of 2) · 67fc4e0c
      Jason Wessel 提交于
      This patch contains the hooks and instrumentation into kernel which
      live outside the kernel/debug directory, which the kdb core
      will call to run commands like lsmod, dmesg, bt etc...
      
      CC: linux-arch@vger.kernel.org
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Signed-off-by: NMartin Hicks <mort@sgi.com>
      67fc4e0c
    • J
      kdb: core for kgdb back end (1 of 2) · 5d5314d6
      Jason Wessel 提交于
      This patch contains only the kdb core.  Because the change set was
      large, it was split.  The next patch in the series includes the
      instrumentation into the core kernel which are mainly helper functions
      for kdb.
      
      This work is directly derived from kdb v4.4 found at:
      
      ftp://oss.sgi.com/projects/kdb/download/v4.4/
      
      The kdb internals have been re-organized to make them mostly platform
      independent and to connect everything to the debug core which is used by
      gdbstub (which has long been known as kgdb).
      
      The original version of kdb was 58,000 lines worth of changes to
      support x86.  From that implementation only the kdb shell, and basic
      commands for memory access, runcontrol, lsmod, and dmesg where carried
      forward.
      
      This is a generic implementation which aims to cover all the current
      architectures using the kgdb core: ppc, arm, x86, mips, sparc, sh and
      blackfin.  More archictectures can be added by implementing the
      architecture specific kgdb functions.
      
      [mort@sgi.com: Compile fix with hugepages enabled]
      [mort@sgi.com: Clean breakpoint code renaming kdba_ -> kdb_]
      [mort@sgi.com: fix new line after printing registers]
      [mort@sgi.com: Remove the concept of global vs. local breakpoints]
      [mort@sgi.com: Rework kdb_si_swapinfo to use more generic name]
      [mort@sgi.com: fix the information dump macros, remove 'arch' from the names]
      [sfr@canb.auug.org.au: include fixup to include linux/slab.h]
      
      CC: linux-arch@vger.kernel.org
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Signed-off-by: NMartin Hicks <mort@sgi.com>
      5d5314d6
    • J
      kgdb,blackfin: Add in kgdb_arch_set_pc for blackfin · e8861129
      Jason Wessel 提交于
      The new debug core api requires all architectures that use to debug
      core to implement a function to set the program counter.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Acked-by: NSonic Zhang <sonic.zhang@analog.com>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      e8861129
    • J
      kgdb,sh: update superh kgdb exception handling · 489022cc
      Jason Wessel 提交于
      Implement kgdb_arch_pc() which adjusts the pc if it needs to be
      adjusted after a software breakpoint trap.
      
      Implement kgdb_arch_set_pc() which is a new required function in the
      kgdb debug core.
      
      When processing a single step return zero in the error exception field
      so that the debug core can distinguish between a single step trap and
      a breakpoint trap generically.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Acked-by: NPaul Mundt <lethal@linux-sh.org>
      489022cc
    • J
      kgdb,sparc: Add in kgdb_arch_set_pc for sparc · c75fbb05
      Jason Wessel 提交于
      The new debug core api requires all architectures that use to debug
      core to implement a function to set the program counter.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      c75fbb05
    • J
      MAINTAINERS: update kgdb, and debug_core info · 4063eb5f
      Jason Wessel 提交于
      Update the kgdb section.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      4063eb5f
    • J
      Separate the gdbstub from the debug core · 53197fc4
      Jason Wessel 提交于
      Split the former kernel/kgdb.c into debug_core.c which contains the
      kernel debugger exception logic and to the gdbstub.c which contains
      the logic for allowing gdb to talk to the debug core.
      
      This also created a private include file called debug_core.h which
      contains all the definitions to glue the debug_core to any other
      debugger connections.
      
      CC: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      53197fc4
    • J
      Move kernel/kgdb.c to kernel/debug/debug_core.c · c4338209
      Jason Wessel 提交于
      Move kgdb.c in preparation to separate the gdbstub from the debug
      core and exception handling.
      
      CC: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      c4338209
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · a0fe3cc5
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (40 commits)
        Input: psmouse - small formatting changes to better follow coding style
        Input: synaptics - set dimensions as reported by firmware
        Input: elantech - relax signature checks
        Input: elantech - enforce common prefix on messages
        Input: wistron_btns - switch to using kmemdup()
        Input: usbtouchscreen - switch to using kmemdup()
        Input: do not force selecting i8042 on Moorestown
        Input: Documentation/sysrq.txt - update KEY_SYSRQ info
        Input: 88pm860x_onkey - remove invalid irq number assignment
        Input: i8042 - add a PNP entry to the aux device list
        Input: i8042 - add some extra PNP keyboard types
        Input: wm9712 - fix wm97xx_set_gpio() logic
        Input: add keypad driver for keys interfaced to TCA6416
        Input: remove obsolete {corgi,spitz,tosa}kbd.c
        Input: kbtab - do not advertise unsupported events
        Input: kbtab - simplify kbtab_disconnect()
        Input: kbtab - fix incorrect size parameter in usb_buffer_free
        Input: acecad - don't advertise mouse events
        Input: acecad - fix some formatting issues
        Input: acecad - simplify usb_acecad_disconnect()
        ...
      
      Trivial conflict in Documentation/feature-removal-schedule.txt
      a0fe3cc5
    • L
      Merge branch 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 · 04afb405
      Linus Torvalds 提交于
      * 'acpica' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (22 commits)
        ACPI: fix early DSDT dmi check warnings on ia64
        ACPICA: Update version to 20100428.
        ACPICA: Update/clarify some parameter names associated with acpi_handle
        ACPICA: Rename acpi_ex_system_do_suspend->acpi_ex_system_do_sleep
        ACPICA: Prevent possible allocation overrun during object copy
        ACPICA: Split large file, evgpeblk
        ACPICA: Add GPE support for dynamically loaded ACPI tables
        ACPICA: Clarify/rename some root table descriptor fields
        ACPICA: Update version to 20100331.
        ACPICA: Minimize the differences between linux GPE code and ACPICA code base
        ACPI: add boot option acpi=copy_dsdt to fix corrupt DSDT
        ACPICA: Update DSDT copy/detection.
        ACPICA: Add subsystem option to force copy of DSDT to local memory
        ACPICA: Add detection of corrupted/replaced DSDT
        ACPICA: Add write support for DataTable operation regions
        ACPICA: Fix for acpi_reallocate_root_table for incorrect root table copy
        ACPICA: Update comments/headers, no functional change
        ACPICA: Update version to 20100304
        ACPICA: Fix for possible fault in acpi_ex_release_mutex
        ACPICA: Standardize integer output for ACPICA warnings/errors
        ...
      04afb405
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 · 7f06a8b2
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (250 commits)
        ALSA: hda: Storage class should be before const qualifier
        ASoC: tpa6130a2: Remove CPVSS and HPVdd supplies
        ASoC: tpa6130a2: Define output pins with SND_SOC_DAPM_OUTPUT
        ASoC: sdp4430 - add sdp4430 pcm ops to DAI.
        ASoC: TWL6040: Enable earphone path in codec
        ASoC: SDP4430: Add support for Earphone speaker
        ASoC: SDP4430: Add sdp4430 machine driver
        ASoC: tlv320dac33: Avoid powering off while in BIAS_OFF
        ASoC: tlv320dac33: Use dev_dbg in dac33_hard_power function
        ALSA: sound/pci/asihpi: Use kzalloc
        ALSA: hdmi - dont fail on extra nodes
        ALSA: intelhdmi - add id for the CougarPoint chipset
        ALSA: intelhdmi - user friendly codec name
        ALSA: intelhdmi - add dependency on SND_DYNAMIC_MINORS
        ALSA: asihpi: incorrect range check
        ALSA: asihpi: testing the wrong variable
        ALSA: es1688: add pedantic range checks
        ARM: McBSP: Add support for omap4 in McBSP driver
        ARM: McBSP: Fix request for irq in OMAP4
        OMAP: McBSP: Add 32-bit mode support
        ...
      7f06a8b2
    • L
      Merge branch 'for-linus/i2c-2635' of git://git.fluff.org/bjdooks/linux · c3ad33c9
      Linus Torvalds 提交于
      * 'for-linus/i2c-2635' of git://git.fluff.org/bjdooks/linux: (21 commits)
        i2c-highlander: remover superflous variable
        i2c-ibm-iic: drop NO_IRQ
        i2c-cpm: drop NO_IRQ
        i2c-mpc: drop NO_IRQ
        MAINTAINERS: add i2c tree for embedded platforms
        i2c-pxa: only define 'blue_murder'-function if DEBUG is #defined
        i2c-pxa: remove unused macro
        i2c-nomadik: fix operator precedence warning
        i2c-nomadik: release region when removed
        OMAP3: I2C: Clean up Errata 1p153 handling
        OMAP2/3: I2C: Errata ID i207: Clear wrong RDR interrupt
        omap: i2c: add a timeout to the busy waiting
        omap: i2c: make errata 1.153 workaround a separate function
        i2c-omap: add mpu wake up latency constraint in i2c
        omap: i2c: Add i2c support on omap4 platform
        i2c-bfin-twi: return completion in interrupt for smbus quick transfers
        i2c-bfin-twi: remove redundant retry
        i2c-bfin-twi: fix lost interrupts at high speeds
        i2c-bfin-twi: add debug output for error status
        i2c-bfin-twi: integrate timeout timer with completion interface
        ...
      c3ad33c9
    • L
      Merge branch 'v4l_for_2.6.35' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 · fb091be0
      Linus Torvalds 提交于
      * 'v4l_for_2.6.35' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (534 commits)
        V4L/DVB (13554a): v4l: Use the video_drvdata function in drivers
        V4L/DVB: vivi and mem2mem_testdev need slab.h to build
        V4L/DVB: tm6000: bugfix image position
        V4L/DVB: IR/imon: remove dead IMON_KEY_RELEASE_OFFSET
        V4L/DVB: tm6000: README - add vbi
        V4L/DVB: Fix unlock logic at medusa_video_init
        V4L/DVB: fix dvb frontend lockup
        V4L/DVB: s2255drv: remove dead code
        V4L/DVB: s2255drv: return if vdev not found
        V4L/DVB: ov511: cleanup: remove unneeded null check
        V4L/DVB: media/mem2mem: dereferencing free memory
        V4L/DVB: media/IR: Add missing include file to rc-map.c
        V4L/DVB: dvb/stv6110x: cleanup error handling
        V4L/DVB: ngene: Add lgdt3303 and mt2131 deps to Kconfig
        V4L/DVB: ngene: start separating out DVB functions into separate file
        V4L/DVB: ngene: split out card specific code into a separate file
        V4L/DVB: ngene: split out i2c code into a separate file
        V4L/DVB: ngene: add initial support for digital side of Avermedia m780
        V4L/DVB: ngene: properly support boards where channel 0 isn't a TS input
        V4L-DVB: ngene: make sure that tuner headers are included
        ...
      fb091be0
    • L
      Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev · bd7fc2f2
      Linus Torvalds 提交于
      * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: (49 commits)
        libata-sff: separate out BMDMA qc_issue
        libata-sff: prd is BMDMA specific
        libata-sff: ata_sff_[dumb_]qc_prep are BMDMA specific
        libata-sff: separate out BMDMA EH
        libata-sff: port_task is SFF specific
        libata-sff: ap->[last_]ctl are SFF specific
        libata-sff: rename ap->ops->drain_fifo() to sff_drain_fifo()
        libata-sff: introduce ata_sff_init/exit() and ata_sff_port_init()
        libata-sff: clean up BMDMA initialization
        libata-sff: clean up inheritance in several drivers
        libata-sff: reorder SFF/BMDMA functions
        sata_inic162x: kill PORT_PRD_ADDR initialization
        libata: kill ATA_FLAG_DISABLED
        libata-sff: kill unused prototype and make ata_dev_select() static
        libata-sff: update bmdma host bus error handling
        sata_mv: remove unnecessary initialization
        sata_inic162x: inic162x is not dependent on CONFIG_ATA_SFF
        pata_sch: use ata_pci_sff_init_one()
        pata_sil680: Do our own exec_command posting
        libata: Remove excess delay in the tf_load path
        ...
      bd7fc2f2
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial · f39d01be
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (44 commits)
        vlynq: make whole Kconfig-menu dependant on architecture
        add descriptive comment for TIF_MEMDIE task flag declaration.
        EEPROM: max6875: Header file cleanup
        EEPROM: 93cx6: Header file cleanup
        EEPROM: Header file cleanup
        agp: use NULL instead of 0 when pointer is needed
        rtc-v3020: make bitfield unsigned
        PCI: make bitfield unsigned
        jbd2: use NULL instead of 0 when pointer is needed
        cciss: fix shadows sparse warning
        doc: inode uses a mutex instead of a semaphore.
        uml: i386: Avoid redefinition of NR_syscalls
        fix "seperate" typos in comments
        cocbalt_lcdfb: correct sections
        doc: Change urls for sparse
        Powerpc: wii: Fix typo in comment
        i2o: cleanup some exit paths
        Documentation/: it's -> its where appropriate
        UML: Fix compiler warning due to missing task_struct declaration
        UML: add kernel.h include to signal.c
        ...
      f39d01be
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 · 54291263
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: (29 commits)
        pcmcia: disable PCMCIA ioctl also for ARM
        drivers/staging/comedi: dev_node removal (quatech_daqp_cs)
        drivers/staging/comedi: dev_node removal (ni_mio_cs)
        drivers/staging/comedi: dev_node removal (ni_labpc_cs)
        drivers/staging/comedi: dev_node removal (ni_daq_dio24)
        drivers/staging/comedi: dev_node removal (ni_daq_700)
        drivers/staging/comedi: dev_node removal (das08_cs)
        drivers/staging/comedi: dev_node removal (cb_das16_cs)
        pata_pcmcia: get rid of extra indirection
        pcmcia: remove suspend-related comment from yenta_socket.c
        pcmcia: call pcmcia_{read,write}_cis_mem with ops_mutex held
        pcmcia: remove pcmcia_add_device_lock
        pcmcia: update gfp/slab.h includes
        pcmcia: remove unused mem_op.h
        pcmcia: do not autoadd root PCI bus resources
        pcmcia: clarify alloc_io_space, move it to resource handlers
        pcmcia: move all pcmcia_resource_ops providers into one module
        pcmcia: move high level CIS access code to separate file
        pcmcia: dev_node removal (core)
        pcmcia: dev_node removal (remaining drivers)
        ...
      54291263
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 · 46ee9645
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
        PM: PM QOS update fix
        Freezer / cgroup freezer: Update stale locking comments
        PM / platform_bus: Allow runtime PM by default
        i2c: Fix bus-level power management callbacks
        PM QOS update
        PM / Hibernate: Fix block_io.c printk warning
        PM / Hibernate: Group swap ops
        PM / Hibernate: Move the first_sector out of swsusp_write
        PM / Hibernate: Separate block_io
        PM / Hibernate: Snapshot cleanup
        FS / libfs: Implement simple_write_to_buffer
        PM / Hibernate: document open(/dev/snapshot) side effects
        PM / Runtime: Add sysfs debug files
        PM: Improve device power management document
        PM: Update device power management document
        PM: Allow runtime_suspend methods to call pm_schedule_suspend()
        PM: pm_wakeup - switch to using bool
      46ee9645
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · fa5312d9
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        workqueue: change cancel_work_sync() to clear work->data
        workqueue: warn about flush_scheduled_work()
      fa5312d9
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu · 9c688c11
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
        ia64: add sparse annotation to __ia64_per_cpu_var()
        percpu: implement kernel memory based chunk allocation
        percpu: move vmalloc based chunk management into percpu-vm.c
        percpu: misc preparations for nommu support
        percpu: reorganize chunk creation and destruction
        percpu: factor out pcpu_addr_in_first/reserved_chunk() and update per_cpu_ptr_to_phys()
      9c688c11
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband · 9d35bc1e
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
        IB/core: Use kmemdup() instead of kmalloc()+memcpy()
        IB/iser: Fix error flow in iser_create_ib_conn_res()
        IB/iser: Enhance disconnection logic for multi-pathing
        IB/iser: Remove buggy back-pointer setting
        IB/iser: Add asynchronous event handler
        MAINTAINERS: Add cxgb4 and iw_cxgb4 entries
        RDMA/cxgb3: Shrink .text with compile-time init of handlers arrays
        IPoIB: Allow disabling/enabling TSO on the fly through ethtool
        IB/mlx4: Add support for masked atomic operations
        IB/core: Add support for masked atomic operations
        RDMA/cma: Randomize local port allocation
        RDMA/nes: Make unnecessarily global functions static
        RDMA/nes: Make nesadapter->phy_lock usage consistent
        RDMA/cxgb4: Add driver for Chelsio T4 RNIC
        IB/mthca: Use the dma state API instead of pci equivalents
        RDMA/amso1100: Use the dma state API instead of pci equivalents
        RDMA/cxgb3: Don't free skbs on NET_XMIT_* indications from LLD
        RDMA/cxgb3: Use the dma state API instead of pci equivalents
        IB: Explicitly rule out llseek to avoid BKL in default_llseek()
      9d35bc1e
  2. 20 5月, 2010 19 次提交