27 Oct, 2011

22 commits


25 Oct, 2011

9 commits

  • Currently part_efi.c allocates buffers for the gpt_header, the
    legacy_mbr, and the pte (partition table entry) that may be
    incorrectly aligned for DMA operations.

    This patch uses ALLOC_CACHE_ALIGN_BUFFER for the stack allocated
    buffers and memalign to replace the malloc of the pte.

    Signed-off-by: Anton Staaf
    Cc: Lukasz Majewski
    Cc: Mike Frysinger
    Cc: Albert ARIBAUD
    Acked-by: Mike Frysinger

    Anton staaf
     
  • Currently the mmc_change_freq and mmc_startup functions allocates
    buffers on the stack that are passed down to the MMC device driver.
    These buffers could be unaligned to the L1 dcache line size. This
    causes problems when using DMA and with caches enabled.

    This patch correctly cache alignes the buffers used for reading the
    ext_csd data from an MMC device.

    Signed-off-by: Anton Staaf
    Cc: Lukasz Majewski
    Cc: Mike Frysinger
    Cc: Albert ARIBAUD

    Anton staaf
     
  • Currently, if a device read request is done that does not begin or end
    on a sector boundary a stack allocated bounce buffer is used to perform
    the read, and then just the part of the sector that is needed is copied
    into the users buffer. This stack allocation can mean that the bounce
    buffer will not be aligned to the dcache line size. This is a problem
    when caches are enabled because unaligned cache invalidates are not
    safe.

    This patch uses ALLOC_CACHE_ALIGN_BUFFER to create a stack allocated
    cache line size aligned bounce buffer.

    Signed-off-by: Anton Staaf
    Cc: Lukasz Majewski
    Cc: Mike Frysinger
    Cc: Dave Liu
    Cc: Andy Fleming
    Cc: Albert ARIBAUD

    Change-Id: I32e1594d90ef039137bb219b0f7ced55768744ff
    Acked-by: Mike Frysinger

    Anton staaf
     
  • Currently the sd_change_freq function allocates two buffers on the
    stack that it passes down to the MMC device driver. These buffers
    could be unaligned to the L1 dcache line size. This causes problems
    when using DMA and with caches enabled.

    This patch correctly cache alignes the buffers used for reading the
    scr register and switch status values from an MMC device.

    Change-Id: Ifa8414f572ef907681bd2d5ff3950285a215357d
    Signed-off-by: Anton Staaf
    Cc: Lukasz Majewski
    Cc: Mike Frysinger
    Cc: Albert ARIBAUD
    Acked-by: Mike Frysinger

    Anton staaf
     
  • Signed-off-by: Anton Staaf
    Cc: Tom Warren
    Cc: Simon Glass
    Cc: Mike Frysinger
    Cc: Albert ARIBAUD

    Change-Id: I5c4bcfc0bfe59158ff249fe3be6640eec6d3cc76
    Acked-by: Mike Frysinger

    Anton staaf
     
  • This macro is used to allocate cache line size aligned stack
    buffers for use with DMA hardware.

    Signed-off-by: Anton Staaf
    Cc: Lukasz Majewski
    Cc: Kyungmin Park
    Cc: Mike Frysinger
    Cc: Aneesh V
    Cc: Albert ARIBAUD
    Cc: Wolfgang Denk

    Anton staaf
     
  • This reverts commit a2da616311151ecfab8b8fcc510686fc3c0c9a21.
    THis was applied by accident - a more recent version of this change
    was already present, see commit
    9400f8f 2011-10-05 22:03:11 +0200 km_arm: enable POST for these boards

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • Commit dc8bbea removed a local variable that is used in most ARM boards.

    Since we want to avoid an 'unused variable' warning with later compilers,
    and the #ifdef logic of whether this variable is required is bit painful,
    this declares the variable local to the block of code that needs it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Commit 1272592 introduced a warning since the variable 's' is no longer
    always used, depending on the CONFIG options.

    Signed-off-by: Simon Glass

    Simon Glass
     

24 Oct, 2011

9 commits