Skip to content
Snippets Groups Projects
  1. Feb 19, 2023
  2. Feb 12, 2023
    • Sjoerd Simons's avatar
      lmb: Treat a region which is a subset as equal · 0d91c882
      Sjoerd Simons authored and Tom Rini's avatar Tom Rini committed
      
      In various cases logical memory blocks are coalesced; As a result doing
      a strict check whether memory blocks are the same doesn't necessarily
      work as a previous addition of a given block might have been merged into
      a bigger block.
      
      Fix this by considering a block is already registered if it's a pure
      subset of one of the existing blocks.
      
      Signed-off-by: default avatarSjoerd Simons <sjoerd@collabora.com>
      0d91c882
  3. Feb 11, 2023
  4. Feb 10, 2023
  5. Feb 09, 2023
  6. Feb 08, 2023
  7. Feb 06, 2023
    • Sjoerd Simons's avatar
      lmb: Set correct lmb flags for EFI memory map entries · c5279ea1
      Sjoerd Simons authored and Tom Rini's avatar Tom Rini committed
      
      When adding reserved memory areas from the EFI memory map set the NOMAP
      flag when applicable. When this isn't done adding "no-map" flagged entries
      from the fdt after receiving the same from the EFI memory map fails due
      to non-matching flags.
      
      Signed-off-by: default avatarSjoerd Simons <sjoerd@collabora.com>
      c5279ea1
    • Tom Rini's avatar
      lmb: Default to not-LMB_USE_MAX_REGIONS · 007ae5d1
      Tom Rini authored
      
      The LMB code allows for picking a hard limit on the number of regions it
      can know of, or to dynamically allocate these regions. The reason for
      this choice is to allow for the compiler to perform a size optimization
      in the common case. This optimization however, is very small, ranging
      from 196 bytes to 15 bytes saved, or in some cases, being larger. Now
      that we also have more regions covered by LMB (in order to protect
      various parts of our self at run time), the default of 8 is also much
      easier to hit and leads to non-obvious error messages (which imply that
      an area is protected, not that we're out of areas to add to the list).
      
      Switch to the dynamic use as the default.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      007ae5d1
  8. Jan 27, 2023
  9. Jan 23, 2023
    • Simon Glass's avatar
      efi: Improve logging in efi_disk · 3722cc97
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      When this fails it can be time-consuming to debug. Add some debugging
      to help with this. Also try to return error codes instead of just using
      -1.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      3722cc97
    • Simon Glass's avatar
      lib: Support printing an error string · 7f331941
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      It is often useful to show an error code to give the user a clue as to
      what went wrong. When error strings are compiled into U-Boot it is
      possible to show a message as well.
      
      But at present it is not very convenient, since code must check if the
      error strings are present, then obtain the error string and use it in
      a printf() string.
      
      Add a %dE option which shows an error code along with an error string,
      if available. This makes it easy to show one or both.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      7f331941
    • Simon Glass's avatar
      lib: Add a function to split a string into substrings · 3e96ed44
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      Some environment variables provide a space-separated list of strings. It
      is easier to process these when they are broken out into an array of
      strings.
      
      Add a utility function to handle this.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      3e96ed44
  10. Jan 20, 2023
    • Tom Rini's avatar
      global: Finish CONFIG -> CFG migration · 6e7df1d1
      Tom Rini authored
      
      At this point, the remaining places where we have a symbol that is
      defined as CONFIG_... are in fairly odd locations. While as much dead
      code has been removed as possible, some of these locations are simply
      less obvious at first. In other cases, this code is used, but was
      defined in such a way as to have been missed by earlier checks.  Perform
      a rename of all such remaining symbols to be CFG_... rather than
      CONFIG_...
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      6e7df1d1
Loading