1. 20 Dec, 2010 6 commits
    • David Brown's avatar
      Merge branches 'msm-core' and 'msm-mmc' into for-next · ba119204
      David Brown authored
      * msm-core: (28 commits)
        msm: initial framebuffer support
        msm: add handling for clocks tagged as CLK_MINMAX
        msm: trout: change name of pmdh_clk to mddi_clk
        msm: add CLK_MINMAX to pmdh_clk
        msm: trout: add gpio_to_irq
        msm: iommu: Use the correct memory allocation flag
        msm_serial: Remove redundant unlikely()
        msm: iommu: Miscellaneous code cleanup
        msm: iommu: Support cache-coherent memory access
        msm: iommu: Definitions for extended memory attributes
        msm: iommu: Kconfig dependency for the IOMMU API
        msm: iommu: Check if device is already attached
        msm: iommu: Kconfig item for cacheable page tables
        msm: iommu: Don't flush page tables if no devices attached
        msm: iommu: Mark functions with the right section names
        msm: iommu: Support for the 2nd GFX core's IOMMU
        msm: iommu: Revise GFX2D0 IOMMU contexts and M2V mappings
        msm: iommu: Revise GFX3D IOMMU contexts and M2V mappings
        msm: iommu: Use more consistent naming in platform data
        msm: iomap: Addresses and IRQs for 2nd GFX core IOMMU
        ...
      
      * msm-mmc: (33 commits)
        mmc: msm_sdcc: Check for only DATA_END interrupt to end a request
        mmc: msm_sdcc: Fix bug in PIO mode when data size is not word aligned
        mmc: msm_sdcc: Reset SDCC in case of data transfer errors
        mmc: msm_sdcc: Add prog done interrupt support
        mmc: msm_sdcc: Fix possible circular locking dependency warning
        msm: initial framebuffer support
        msm: add handling for clocks tagged as CLK_MINMAX
        msm: trout: change name of pmdh_clk to mddi_clk
        msm: add CLK_MINMAX to pmdh_clk
        msm: trout: add gpio_to_irq
        msm: iommu: Use the correct memory allocation flag
        msm_serial: Remove redundant unlikely()
        msm: iommu: Miscellaneous code cleanup
        msm: iommu: Support cache-coherent memory access
        msm: iommu: Definitions for extended memory attributes
        msm: iommu: Kconfig dependency for the IOMMU API
        msm: iommu: Check if device is already attached
        msm: iommu: Kconfig item for cacheable page tables
        msm: iommu: Don't flush page tables if no devices attached
        msm: iommu: Mark functions with the right section names
        ...
      ba119204
    • Sahitya Tummala's avatar
      mmc: msm_sdcc: Check for only DATA_END interrupt to end a request · 0c521ccb
      Sahitya Tummala authored
      The current code checks for both DATA_END and DATA_BLK_END bits in
      MCI_STATUS register and ends a request only if both are set at a time.
      The hardware doesn't always set DATA_BLK_END when DATA_END is set.
      But DATA_END status itself is sufficient condition from hardware that
      data transfer is done and hence, check for only DATA_END interrupt in
      software to end a request.
      Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
      Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
      0c521ccb
    • Sahitya Tummala's avatar
      mmc: msm_sdcc: Fix bug in PIO mode when data size is not word aligned · 71dd9106
      Sahitya Tummala authored
      The current code for PIO doesn't transfer whole data when data size
      is not in multiple of 4 bytes. The last few bytes are not written to
      the card resulting in no DATAEND interrupt from SDCC. This patch
      allows data transfer for non-aligned data size in PIO mode.
      Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
      Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
      71dd9106
    • Sahitya Tummala's avatar
      mmc: msm_sdcc: Reset SDCC in case of data transfer errors · b08bb35d
      Sahitya Tummala authored
      SDCC uses an asynchronous FIFOs for data synchronization (one for TX
      and one for RX).  For any error when DPSM (Data path state machine) is
      involved the transfer is terminated with the remaining data stuck inside
      FIFOs. Reset the controller in case of data errors to ensure that
      any left over data in FIFOs is flushed out and DPSM is in good state.
      
      The following problems are observed without this reset functionality -
      
      1. After the card is removed in an unsafe way (removed when there
      is an on going data transfer), the card will not be detected upon
      its next insertion.  This is because the controller wouldn't respond
      to few initialization commands.
      
      2. When an error occurs for a data transfer in non-DMA mode, sometimes
      we get spurious PIO interrupt after the request is processed.
      Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
      Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
      b08bb35d
    • Sahitya Tummala's avatar
      mmc: msm_sdcc: Add prog done interrupt support · d5137bdd
      Sahitya Tummala authored
      Enable prog done interrupt for stop command(CMD12) that is sent
      after a multi-block write(CMD25). The PROG_DONE bit is set when
      the card has finished its programming and is ready for next data.
      
      After every write request the card will be polled for ready status
      using CMD13. For a multi-block write(CMD25) before sending CMD13,
      stop command (CMD12) will be sent.  If we enable prog done interrupt
      for CMD12, then CMD13 polling can be avoided. The prog done interrupt
      means that the card is done with its programming and is ready for
      next request.
      Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
      Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
      d5137bdd
    • Sahitya Tummala's avatar
      mmc: msm_sdcc: Fix possible circular locking dependency warning · 62612cf9
      Sahitya Tummala authored
      In the context of request processing thread, data mover lock is
      acquired after the host lock.  In another context, in the completion
      handler of data mover the locks are acquired in the reverse order,
      resulting in possible circular lock dependency warning. Hence,
      schedule a tasklet to process the dma completion so as to avoid
      nested locks.
      Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
      Signed-off-by: default avatarDavid Brown <davidb@codeaurora.org>
      62612cf9
  2. 15 Dec, 2010 6 commits
  3. 09 Dec, 2010 1 commit
  4. 07 Dec, 2010 3 commits
  5. 06 Dec, 2010 10 commits
  6. 04 Dec, 2010 8 commits
    • Guy Martin's avatar
      parisc: Fix GSC PS/2 driver name for keyboard and mouse · 7bfbeae9
      Guy Martin authored
      Fix kernel warnings caused by the driver name of GSC PS/2 containing '/'.
      
      The following warnings are observed on a K410 system :
      
      [   10.700000] name 'GSC PS/2 keyboard'
      [   10.732000] ------------[ cut here ]------------
      [   10.772000] WARNING: at fs/proc/generic.c:323
      [   10.828000] Modules linked in:
      [   10.916000]
      [   10.916000]      YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
      [   10.936000] PSW: 00000000000001000000000000001111 Not tainted
      [   10.992000] r00-03  0004000f 104fe3e0 10201ea0 00000000
      [   11.060000] r04-07  4fc405c8 00000006 4fc405c8 4fc40694
      [   11.124000] r08-11  4fc40708 10438aa0 00000001 1043bfc8
      [   11.184000] r12-15  104ff2a0 104ff2a0 4fc38634 104ff2a0
      [   11.248000] r16-19  f0001570 10479af0 f000006c 1044fe50
      [   11.308000] r20-23  00000000 00000028 104cd858 00000000
      [   11.372000] r24-27  ffffffff 0000000e 1044fe10 1043bbe0
      [   11.436000] r28-31  0000002b 00000078 4fc40800 0000000d
      [   11.496000] sr00-03  00000000 00000000 00000000 00000000
      [   11.560000] sr04-07  00000000 00000000 00000000 00000000
      [   11.624000]
      [   11.688000] IASQ: 00000000 00000000 IAOQ: 10201ea0 10201ea4
      [   11.704000]  IIR: 03ffe01f    ISR: 00000000  IOR: 0000000d
      [   11.772000]  CPU:        0   CR30: 4fc40000 CR31: f01043b0
      [   11.836000]  ORIG_R28: 4fc40940
      [   11.904000]  IAOQ[0]: __xlate_proc_name+0x90/0xd0
      [   11.940000]  IAOQ[1]: __xlate_proc_name+0x94/0xd0
      [   11.996000]  RP(r2): __xlate_proc_name+0x90/0xd0
      [   12.052000] Backtrace:
      [   12.108000]  [<10257790>] vsnprintf+0x290/0x4f4
      [   12.136000]
      [   12.188000] ---[ end trace 91bf6ece17e322dd ]---
      [   12.208000] serio: GSC PS/2 keyboard port at 0x0001c000 irq 19 @ 10:12:7
      [   12.264000] name 'GSC PS/2 mouse'
      [   12.344000] ------------[ cut here ]------------
      [   12.384000] WARNING: at fs/proc/generic.c:323
      [   12.436000] Modules linked in:
      [   12.524000]
      [   12.528000]      YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
      [   12.544000] PSW: 00000000000001000000000000001111 Tainted: G        W
      [   12.600000] r00-03  0004000f 104fe3e0 10201ea0 00000000
      [   12.680000] r04-07  4fc405c8 00000006 4fc405c8 4fc40694
      [   12.740000] r08-11  4fc40708 10438aa0 00000001 1043bfc8
      [   12.804000] r12-15  104ff2a0 104ff2a0 4fc38634 104ff2a0
      [   12.868000] r16-19  f0001570 10479af0 f000006c 1044fe50
      [   12.928000] r20-23  00000000 00000025 104cd858 00000000
      [   12.992000] r24-27  ffffffff 0000000e 1044fe10 1043bbe0
      [   13.056000] r28-31  00000028 00000078 4fc40800 0000000d
      [   13.116000] sr00-03  00000000 00000000 00000000 00000000
      [   13.180000] sr04-07  00000000 00000000 00000000 00000000
      [   13.244000]
      [   13.308000] IASQ: 00000000 00000000 IAOQ: 10201ea0 10201ea4
      [   13.324000]  IIR: 03ffe01f    ISR: 00000000  IOR: 0000000d
      [   13.392000]  CPU:        0   CR30: 4fc40000 CR31: f01043b0
      [   13.456000]  ORIG_R28: 4fc40940
      [   13.524000]  IAOQ[0]: __xlate_proc_name+0x90/0xd0
      [   13.560000]  IAOQ[1]: __xlate_proc_name+0x94/0xd0
      [   13.616000]  RP(r2): __xlate_proc_name+0x90/0xd0
      [   13.672000] Backtrace:
      [   13.728000]  [<10257790>] vsnprintf+0x290/0x4f4
      [   13.756000]
      [   13.808000] ---[ end trace 91bf6ece17e322de ]---
      [   13.828000] serio: GSC PS/2 mouse port at 0x00020100 irq 19 @ 10:12:8
      Signed-off-by: default avatarGuy Martin <gmsoft@tuxicoman.be>
      Acked-by: default avatarHelge Deller <deller@gmx.de>
      Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
      7bfbeae9
    • Guy Martin's avatar
      parisc: KittyHawk LCD fix · 79a04296
      Guy Martin authored
      K class aka KittyHawk don't have LED support on their LCD. Installing
      HP-UX confirmed this. The current led_wq fills the LCD with black
      characters each time it runs.
      
      The patch prevents the led_wq workqueue and its proc entry to be
      created for KittyHawk machines.
      
      It also increase min_cmd_delay as currently, one character out of two
      is lost when a string is sent to the LCD.
      Signed-off-by: default avatarGuy Martin <gmsoft@tuxicoman.be>
      Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.c>
      79a04296
    • James Bottomley's avatar
      parisc: convert the rest of the irq handlers to simple/percpu · 51890613
      James Bottomley authored
      The generic conversion eliminates the spurious no_ack and no_end
      routines, converts all the cascaded handlers to handle_simple_irq() and
      makes iosapic use a modified handle_percpu_irq() to become the same as
      the CPU irq's.  This isn't an essential change, but it eliminates the
      mask/unmask overhead of handle_level_irq().
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
      Tested-by: default avatarHelge Deller <deller@gmx.de>
      Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
      51890613
    • James Bottomley's avatar
      parisc: fix dino/gsc interrupts · d16cd297
      James Bottomley authored
      The essential problem we're currently having is that dino (and gsc) is a
      cascaded CPU interrupt.  Under the old __do_IRQ() handler, our CPU
      interrupts basically did an ack followed by an end.  In the new scheme,
      we replaced them with level handlers which do a mask, an ack and then an
      unmask (but no end).  Instead, with the renaming of end to eoi, we
      actually want to call the percpu flow handlers, because they actually
      have all the characteristics we want.
      
      This patch does the conversion and gets my C360 booting again.
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
      Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
      d16cd297
    • Rabin Vincent's avatar
      ARM: 6523/1: iop: ensure sched_clock() is notrace · a5542a0f
      Rabin Vincent authored
      Include sched.h to ensure sched_clock() has the notrace
      annotation, and mark any functions it calls as notrace
      too.
      Include sched.h to ensure sched_clock() has the notrace
      annotation, and mark any functions it calls as notrace
      too.
      Acked-by: default avatarDan Williams <dan.j.williams@intel.com>
      Signed-off-by: default avatarRabin Vincent <rabin@rab.in>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      a5542a0f
    • Marcelo Roberto Jimenez's avatar
      ARM: 6456/1: Fix for building DEBUG with sa11xx_base.c as a module. · b9f515e3
      Marcelo Roberto Jimenez authored
      This patch fixes a compilation issue when compiling PCMCIA SA1100
      support as a module with PCMCIA_DEBUG enabled. The symbol
      soc_pcmcia_debug was not beeing exported.
      ARM: pcmcia: Fix for building DEBUG with sa11xx_base.c as a module.
      
      This patch fixes a compilation issue when compiling PCMCIA SA1100
      support as a module with PCMCIA_DEBUG enabled. The symbol
      soc_pcmcia_debug was not beeing exported.
      
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarMarcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      b9f515e3
    • Dave Martin's avatar
      ARM: 6519/1: kuser: Fix incorrect cmpxchg syscall in kuser helpers · 55afd264
      Dave Martin authored
      The existing code invokes the syscall with rubbish in r7,
      due to what looks like an incorrect literal load idiom.
      Reviewed-by: default avatarWill Deacon <will.deacon@arm.com>
      Signed-off-by: default avatarDave Martin <dave.martin@linaro.org>
      Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      55afd264
    • Tero Roponen's avatar
      slub: Fix a crash during slabinfo -v · 37d57443
      Tero Roponen authored
      Commit f7cb1933 ("SLUB: Pass active
      and inactive redzone flags instead of boolean to debug functions")
      missed two instances of check_object(). This caused a lot of warnings
      during 'slabinfo -v' finally leading to a crash:
      
        BUG ext4_xattr: Freepointer corrupt
        ...
        BUG buffer_head: Freepointer corrupt
        ...
        BUG ext4_alloc_context: Freepointer corrupt
        ...
        ...
        BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
        IP: [<ffffffff810a291f>] file_sb_list_del+0x1c/0x35
        PGD 79d78067 PUD 79e67067 PMD 0
        Oops: 0002 [#1] SMP
        last sysfs file: /sys/kernel/slab/:t-0000192/validate
      
      This patch fixes the problem by converting the two missed instances.
      Acked-by: default avatarChristoph Lameter <cl@linux.com>
      Signed-off-by: default avatarTero Roponen <tero.roponen@gmail.com>
      Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
      37d57443
  7. 03 Dec, 2010 6 commits