11 Mar, 2011

5 commits


10 Mar, 2011

17 commits

  • omap_sr_probe() creates the smartreflex debug directory and its
    underlying nvalue debug directory. These directories are removed in
    omap_sr_remove().

    Basic smartreflex functionality tested on OMAP3630 Zoom3 & OMAP4430 SDP

    Signed-off-by: Anand S Sawant
    Signed-off-by: Kevin Hilman

    Anand S Sawant
     
  • * Build unconditionally as ARM for correct interoperation with
    OMAP firmware.

    * Fix an out-of-range ADR when building for ARM.

    * Remove deprecated PC-relative stores.

    * Add the required ENDPROC() directive for each ENTRY().

    * .align before data words.

    * Handle non-interworking return from v7_flush_dcache_all.

    Signed-off-by: Dave Martin
    Signed-off-by: Kevin Hilman

    Dave Martin
     
  • * Build unconditionally as ARM for correct interoperation with
    OMAP firmware.

    * Remove deprecated PC-relative stores

    * Add the required ENDPROC() directive for each ENTRY().

    * .align before data words

    Signed-off-by: Dave Martin
    Tested-by: Jean Pihet
    Signed-off-by: Kevin Hilman

    Dave Martin
     
  • For various reasons, Linux now only officially supports being built
    with tools which are new enough to understand the SMC instruction.

    Replacing the hand-encoded instructions when the mnemonic also
    allows for correct assembly in Thumb-2 (otherwise, the result is
    random data in the middle of the code).

    The Makefile already ensures that this file is built with a high
    enough gcc -march= flag (armv7-a).

    Signed-off-by: Dave Martin
    Tested-by: Santosh Shilimkar
    Tested-by: Jean Pihet
    Signed-off-by: Kevin Hilman

    Dave Martin
     
  • Code marked with ENTRY() also needs a matching ENDPROC() directive,
    in order to ensure that the type and instruction set of the
    symbol are correctly annotated.

    ENDPROC() tags the affected symbol as a function symbol, which will
    ensure that link-time fixups don't accidentally switch to the
    wrong instruction set.

    Signed-off-by: Dave Martin
    Tested-by: Santosh Shilimkar
    Acked-by: Santosh Shilimkar
    Signed-off-by: Kevin Hilman

    Dave Martin
     
  • For CONFIG_THUMB2_KERNEL, the existing definition of do_wfi() will
    insert invalid code into the instruction stream.

    Any assembler which can assemble Thumb-2 is guaranteed to accept
    the "wfi" mnemonic, so for the Thumb-2 case, just use the mnemonic.

    The ARM case is left as-is.

    Signed-off-by: Dave Martin
    Signed-off-by: Kevin Hilman

    Dave Martin
     
  • IVA device is not present in many OMAP3 variants.

    This patch ensures that initialization is tied to
    the presence of IVA on the device.

    Signed-off-by: Sanjeev Premi
    Signed-off-by: Kevin Hilman

    Sanjeev Premi
     
  • Voltage control on TWL can be done using VMODE/I2C1/I2C_SR.
    Since almost all platforms use I2C_SR on omap3, omap3_twl_init by
    default expects that OMAP's I2C_SR is plugged in to TWL's I2C
    and calls omap3_twl_set_sr_bit. On platforms where I2C_SR is not connected,
    the board files are expected to call omap3_twl_set_sr_bit(false) to
    ensure that I2C_SR path is not set for voltage control and prevent
    the default behavior of omap3_twl_init.

    Signed-off-by: Nishanth Menon
    Signed-off-by: Thara Gopinath
    Signed-off-by: Shweta Gulati
    Cc: linux-arm-kernel@lists.infradead.org
    Signed-off-by: Kevin Hilman

    Thara Gopinath
     
  • Add a description field to each idle C-state. This helps to give
    better data with PowerTop and one don't have to refer to the code
    to link what Cx means from system point of view while analysing
    PowerTop data.

    No functional change.

    Signed-off-by: Santosh Shilimkar
    Cc: Kevin Hilman
    Signed-off-by: Kevin Hilman

    Santosh Shilimkar
     
  • Remove the custom restore_control_register() and use the exported
    set_cr() instead to set the system control register(SCTRL) value.

    No functional change.

    Signed-off-by: Santosh Shilimkar
    Cc: Kevin Hilman
    Signed-off-by: Kevin Hilman

    Santosh Shilimkar
     
  • The OMAP2 and OMAP3 PM code clears clockdomain wakeup and sleep
    dependencies. This is unnecessary after commit
    6f7f63cc9adf3192e6fcac4e8bed5cc10fd924aa ("OMAP clockdomain:
    initialize clockdomain registers when the clockdomain layer starts")
    which clears these dependencies during clockdomain init.

    Signed-off-by: Paul Walmsley
    Signed-off-by: Kevin Hilman

    Paul Walmsley
     
  • Now that omap_hwmod + omap_device is used for OMAP UART device and
    driver code, we no longer need the UART physical addresses in
    omap_globals.

    Note that the #defines for the base addresses are still left in
    since they are used by DEBUG_LL and uncompress code.

    Build tested for OMAP1 (omap1_defconfig) and OMAP2+ (omap2plus_defconfig)

    Signed-off-by: Kevin Hilman

    Kevin Hilman
     
  • kzalloc() may fail, if so return -ENOMEM. Also Walter Harms suggested
    to use kasprintf() instead of kzalloc+strcpy+strcat.

    Signed-off-by: Vasiliy Kulikov
    Signed-off-by: Kevin Hilman

    Vasiliy Kulikov
     
  • OMP3630 silicon can enable higher frequencies only depending on the board
    characteristics meeting the recommended standards, and has to be selectively
    toggled.

    Beagle XM uses 3730 variant and the board design allows enabling 800MHz and
    1GHz OPPs. However, We need Smart reflex class 1.5 and ABB to enable 1GHz
    safely. For the moment, we tweak the default table to allow for 800Mhz OPP
    usage.

    Reported-by: Koen Kooi
    Tested-by: Koen Kooi

    Signed-off-by: Nishanth Menon
    Signed-off-by: Kevin Hilman

    Nishanth Menon
     
  • omap3 and omap4 opp_init should be made non-static to allow
    for platform specific opp table tweaking. making these static
    conflicts with the definition in pm.h(global) as well.
    we include pm.h as well to ensure that there are no such prototype
    conflicts with actual implementation in the future.

    Signed-off-by: Nishanth Menon
    Signed-off-by: Kevin Hilman

    Menon, Nishanth
     
  • In case in user has a OMAP3630 < ES1.2 the kernel should warn the user
    about the ERRATUM, but using pr_warn instead of WARN_ON is already
    enough, as there is nothing else the user can do besides changing the
    board.

    Signed-off-by: Ricardo Salveti de Araujo
    Signed-off-by: Kevin Hilman

    Ricardo Salveti de Araujo
     
  • Change my email to TI email address for OMAP PM maintenance.

    Signed-off-by: Kevin Hilman

    Kevin Hilman
     

08 Mar, 2011

12 commits

  • Linus Torvalds
     
  • …git/kgene/linux-samsung

    * 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
    ARM: S3C64XX: Update regulator names for debugfs compatiblity on SMDK6410
    ARM: S3C64XX: Fix build with WM1190 disabled and WM1192 enabled on SMDK6410
    ARM: S3C64XX: Reduce output of s3c64xx_dma_init1()
    ARM: S3C64XX: Tone down SDHCI debugging
    ARM: S3C64XX: Add clock for i2c1
    ARM: S3C64XX: Staticise non-exported GPIO to interrupt functions
    ARM: SAMSUNG: Include devs.h in dev-uart.c to prototype devices
    ARM: S3C64XX: Fix keypad setup to configure correct number of rows
    ARM: S3C2440: Fix usage gpio bank j pin definitions on GTA02
    ARM: S5P64X0: Fix number of GPIO lines in Bank F
    ARM: S3C2440: Select missing S3C_DEV_USB_HOST on GTA02

    Linus Torvalds
     
  • * 'fixes' of master.kernel.org:/home/rmk/linux-2.6-arm:
    davinci: cpufreq: fix section mismatch warning
    DaVinci: fix compilation warnings in
    davinci: tnetv107x: fix register indexing for GPIOs numbers > 31
    davinci: da8xx/omap-l1x: add platform device for davinci-pcm-audio
    ARM: pxa/tosa: register wm9712 codec device
    ARM: pxa: enable pxa-pcm-audio on pxa210/pxa25x platform
    ARM: pxa/colibri: don't register pxa2xx-pcmcia nodes on non-colibri platforms
    ARM: pxa/tosa: drop setting LED trigger name, as it's unsupported now
    ARM: 6762/1: Update number of VIC for S5P6442 and S5PC100
    ARM: 6761/1: Update number of VIC for S5PV210
    ARM: 6768/1: hw_breakpoint: ensure debug logic is powered up on v7 cores
    ARM: 6767/1: ptrace: fix register indexing in GETHBPREGS request
    ARM: 6765/1: remove obsolete comment from asm/mach/arch.h
    ARM: 6757/1: fix tlb.h induced linux/swap.h build failure

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc:
    mmc: sdio: Allow sdio operations in other threads during sdio_add_func()

    Linus Torvalds
     
  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm: index i shadowed in 2nd loop
    drm/nv50-nvc0: prevent multiple vm/bar flushes occuring simultanenously
    drm/nouveau: fix regression causing ttm to not be able to evict vram
    drm/i915: Rebind the buffer if its alignment constraints changes with tiling
    drm/i915: Disable GPU semaphores by default
    drm/i915: Do not overflow the MMADDR write FIFO
    Revert "drm/i915: fix corruptions on i8xx due to relaxed fencing"

    Linus Torvalds
     
  • Index i was already used in thhe first loop

    Signed-off-by: Roel Kluin
    Signed-off-by: Dave Airlie

    roel
     
  • This fixes a bug introduced by 807e8e40673d ("mmc: Fix sd/sdio/mmc
    initialization frequency retries") that prevented SDIO drivers from
    performing SDIO commands in their probe routines -- the above patch
    called mmc_claim_host() before sdio_add_func(), which causes a deadlock
    if an external SDIO driver calls sdio_claim_host().

    Fix tested on an OLPC XO-1.75 with libertas on SDIO.

    Signed-off-by: Dmitry Shmidt
    Reviewed-and-Tested-by: Chris Ball
    Signed-off-by: Chris Ball

    Dmitry Shmidt
     
  • * ickle/drm-intel-fixes:
    drm/i915: Rebind the buffer if its alignment constraints changes with tiling
    drm/i915: Disable GPU semaphores by default
    drm/i915: Do not overflow the MMADDR write FIFO
    Revert "drm/i915: fix corruptions on i8xx due to relaxed fencing"

    Dave Airlie
     
  • …/git/tmlind/linux-omap-2.6

    * 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6:
    omap: mailbox: resolve hang issue
    OMAP2+: PM: SmartReflex: fix memory leaks in Smartreflex driver
    arm: mach-omap2: smartreflex: fix another memory leak

    Linus Torvalds
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] tape: deadlock on system work queue
    [S390] keyboard: integer underflow bug
    [S390] xpram: remove __initdata attribute from module parameters

    Linus Torvalds
     
  • The per-vm mutex doesn't prevent this completely, a flush coming from the
    BAR VM could potentially happen at the same time as one for the channel
    VM. Not to mention that if/when we get per-client/channel VM, this will
    happen far more frequently.

    Signed-off-by: Ben Skeggs
    Signed-off-by: Dave Airlie

    Ben Skeggs
     
  • TTM assumes an error condition from man->func->get_node() means that
    something went horribly wrong, and causes it to bail.

    The driver is supposed to return 0, and leave mm_node == NULL to
    signal that it couldn't allocate any memory.

    Signed-off-by: Ben Skeggs
    Signed-off-by: Dave Airlie

    Ben Skeggs
     

07 Mar, 2011

4 commits

  • Early gen3 and gen2 chipset do not have the relaxed per-surface tiling
    constraints of the later chipsets, so we need to check that the GTT
    alignment is correct for the new tiling. If it is not, we need to
    rebind.

    Reported-by: Daniel Vetter
    Reviewed-by: Daniel Vetter
    Signed-off-by: Chris Wilson

    Chris Wilson
     
  • Andi Kleen narrowed his GPU hangs on his Sugar Bay (SNB desktop) rev 09
    down to the use of GPU semaphores, and we already know that they appear
    broken up to Huron River (mobile) rev 08. (I'm optimistic that disabling
    GPU semaphores is simply hiding another bug by the latency and
    side-effects of the additional device interaction it introduces...)

    However, use of semaphores is a massive performance improvement... Only
    as long as the system remains stable. Enable at your peril.

    Reported-by: Andi Kleen
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33921
    Signed-off-by: Chris Wilson

    Chris Wilson
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda - Don't set to D3 in Cirrus errata init verbs
    ALSA: hda - add new Fermi 5xx codec IDs to snd-hda
    ASoC: WM8994: Ensure late enable events are processed for the ADCs
    ASoC: WM8994: Don't disable the AIF[1|2]CLK_ENA unconditionaly
    ASoC: Fix WM9081 platform data initialisation
    ALSA: hda - Fix unable to record issue on ASUS N82JV
    ALSA: HDA: Realtek: Fixup jack detection to input subsystem

    Linus Torvalds
     
  • If a virtio-console device gets unplugged while a port is open, a
    subsequent close() call on the port accesses vqs to free up buffers.
    This can lead to a crash.

    The buffers are already freed up as a result of the call to
    unplug_ports() from virtcons_remove(). The fix is to simply not access
    vq information if port->portdev is NULL.

    Reported-by: juzhang
    CC: stable@kernel.org
    Signed-off-by: Amit Shah
    Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Amit Shah
     

06 Mar, 2011

2 commits

  • Takashi Iwai
     
  • Whilst the GT is powered down (rc6), writes to MMADDR are placed in a
    FIFO by the System Agent. This is a limited resource, only 64 entries, of
    which 20 are reserved for Display and PCH writes, and so we must take
    care not to queue up too many writes. To avoid this, there is counter
    which we can poll to ensure there are sufficient free entries in the
    fifo.

    "Issuing a write to a full FIFO is not supported; at worst it could
    result in corruption or a system hang."

    Reported-and-Tested-by: Matt Turner
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34056
    Signed-off-by: Chris Wilson

    Chris Wilson