Skip to content
Snippets Groups Projects
  1. Feb 02, 2016
  2. Feb 01, 2016
    • Masahiro Yamada's avatar
      mailmap: fix Ricardo's entry · cc8db8b9
      Masahiro Yamada authored
      
      Commit df48b234 (".mailmap: Add all the mail alias for Ricardo
      Ribalda") assigned two different proper names for the email address
      "ricardo.ribalda@uam.es".  This is a completely wrong usage as the
      mailmap feature exists for coalescing together commits by the same
      person whose name is sometimes spelled differently.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      cc8db8b9
    • Clemens Gruber's avatar
      mmc: add missing prototype for mmc_get_env_dev · aa844fe1
      Clemens Gruber authored
      
      This is a follow-up patch to e92029c0 and adds a prototype for
      the weak mmc_get_env_dev function.
      
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Stephen Warren <swarren@nvidia.com>
      
      Signed-off-by: default avatarClemens Gruber <clemens.gruber@pqgruber.com>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
      aa844fe1
    • Stephen Warren's avatar
      malloc: work around some memalign fragmentation issues · 4f144a41
      Stephen Warren authored
      
      Use of memalign can trigger fragmentation issues such as:
      
      // Internally, this needs to find a free block quite bit larger than s.
      // Once the free region is found, any unaligned "padding" immediately
      // before and after the block is marked free, so that the allocation
      // takes only s bytes (plus malloc header overhead).
      p = memalign(a, s);
      // If there's little fragmentation so far, this allocation is likely
      // located immediately after p.
      p2 = malloc(x);
      free(p);
      // In theory, this should return the same value for p. However, the hole
      // left by the free() call is only s in size (plus malloc header overhead)
      // whereas memalign searches for a larger block in order to guarantee it
      // can adjust the returned pointer to the alignment requirements. Hence,
      // the pointer returned, if any, won't be p. If there's little or no space
      // left after p2, this allocation will fail.
      p = memalign(a, s);
      
      In practice, this issue occurs when running the "dfu" command repeatedly
      on NVIDIA Tegra boards, since DFU allocates a large 32M data buffer, and
      then initializes the USB controller. If this is the first time USB has
      been used in the U-Boot session, this causes a probe of the USB driver,
      which causes various allocations, including a strdup() of a GPIO name
      when requesting the VBUS GPIO. When DFU is torn down, the USB driver
      is left probed, and hence its memory is left allocated. If "dfu" is
      executed again, allocation of the 32M data buffer fails as described
      above.
      
      In practice, there is a memory hole exactly large enough to hold the 32M
      data buffer than DFU needs. However, memalign() can't know that in a
      general way. Given that, it's particularly annoying that the allocation
      fails!
      
      The issue is that memalign() tries to allocate something larger to
      guarantee the ability to align the returned pointer. This patch modifies
      memalign() so that if the "general case" over-sized allocation fails,
      another allocation is attempted, of the exact size the user desired. If
      that allocation just happens to be aligned in the way the user wants,
      (and in the case described above, it will be, since the free memory
      region is located where a previous identical allocation was located),
      the pointer can be returned.
      
      This patch is somewhat related to 806bd245 "dfu: don't keep
      freeing/reallocating". That patch worked around the issue by removing
      repeated free/memalign within a single execution of "dfu". However,
      the same technique can't be applied across multiple invocations, since
      there's no reason to keep the DFU buffer allocated while DFU isn't
      running. This patch addresses the root-cause a bit more directly.
      
      This problem highlights some of the disadvantages of dynamic allocation
      and deferred probing of devices.
      
      This patch isn't checkpatch-clean, since it conforms to the existing
      coding style in dlmalloc.c, which is different to the rest of U-Boot.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Acked-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      4f144a41
    • Roger Meier's avatar
      .travis.yml: rework according to new travis-ci infra · 050c7569
      Roger Meier authored
      
      - install using addons.apt
      - remove MAKEALL
      - split mpc85xx boards
      - remove TEST_CONFIG_CMD, just info
      - fetch mips toolchain via buildman
      - remove --list-error-boards param
      - conditional script
      - use TOOLCHAIN instead of INSTALL_TOOLCHAIN
      - add aarch64
      - enable notifications via email
      
      Signed-off-by: default avatarRoger Meier <r.meier@siemens.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: Andreas Färber <afaerber@suse.de>
      Tested-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Acked-by: default avatarHeiko Schocher <hs@denx.de>
      050c7569
    • Ashish kumar's avatar
      7711cc0a
    • Tom Rini's avatar
      d2427caf
    • Ashish kumar's avatar
      armv8: ls2080a: Implement workaround for core errata 829520, 833471 · 2ea3a448
      Ashish kumar authored
      
      829520: Code bounded by indirect conditional branch might corrupt
      instruction stream.
      Workaround: Set CPUACTLR_EL1[4] = 1'b1 to disable the Indirect
      Predictor.
      
      833471: VMSR FPSCR functional failure or deadlock.
      Workaround: Set CPUACTLR[38] to 1, which forces FPSCR write flush.
      
      Signed-off-by: default avatarAshish Kumar <Ashish.Kumar@nxp.com>
      Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
      2ea3a448
    • Purna Chandra Mandal's avatar
      board: Enable ethernet, tftpboot support to pic32mzdask board. · 7d514a74
      Purna Chandra Mandal authored
      
      This adds ethernet, TFTP support for PIC32MZ[DA] Starter Kit. Also
      custom environment variables/scripts are added to help boot from network.
      
      Signed-off-by: default avatarPurna Chandra Mandal <purna.mandal@microchip.com>
      7d514a74
    • Purna Chandra Mandal's avatar
      drivers: net: Add ethernet driver for Microchip PIC32. · 23e7578c
      Purna Chandra Mandal authored
      
      This driver implements MAC and MII layer of the ethernet controller.
      Network data transfer is handled by controller internal DMA engine.
      Ethernet controller is configurable through device-tree file.
      
      Signed-off-by: default avatarPurna Chandra Mandal <purna.mandal@microchip.com>
      23e7578c
Loading