Skip to content
Snippets Groups Projects
  1. Apr 09, 2020
  2. Mar 31, 2020
  3. Mar 28, 2020
  4. Mar 17, 2020
    • Atish Patra's avatar
      cmd: bootefi: Parse reserved-memory node from DT · 7be64b88
      Atish Patra authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      Currently, bootefi only parses memory reservation block to setup
      EFI reserved memory mappings. However, it doesn't parse the
      reserved-memory[1] device tree node that also can contain the
      reserved memory regions.
      
      Add capability to parse reserved-memory node and update the EFI memory
      mappings accordingly.
      
      1. <U-Boot source>/doc/device-tree-bindings/reserved-memory/reserved-memory.txt]
      
      Signed-off-by: default avatarAtish Patra <atish.patra@wdc.com>
      
      Fix an endless loop.
      
      The /reserved-memory node may have children without reg property. Remove
      a superfluous debug statement.
      
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      7be64b88
    • Heinrich Schuchardt's avatar
      cmd: map addresses to sysmem in efidebug memmap · a415d61e
      Heinrich Schuchardt authored
      
      Addresses in the sandbox's device tree are in the sandbox's virtual address
      space. If we want to compare memory reservations in the device-tree with
      the output of 'efidebug memmap', we need to convert back to this address
      space.
      
      Adjust the output of the 'efidebug memmap' command.
      
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      a415d61e
    • Heinrich Schuchardt's avatar
      efi_loader: create reservations after ft_board_setup · fef907b2
      Heinrich Schuchardt authored
      
      Some memory reservations are made in ft_board_setup(). Ensure that we
      create reserved memory map entries after ft_board_setup().
      
      The downside of this patch is that if bootefi is called multiple times with
      an devicetree argument superfluous reservations for the old copies of the
      device tree will exist. But that is still better than missing a reservation.
      
      Deleting the superfluous reservations is not possible because reservations
      in the memory map are rounded to page size and may be coallesced.
      
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      fef907b2
  5. Mar 13, 2020
  6. Mar 11, 2020
  7. Mar 03, 2020
  8. Feb 28, 2020
  9. Feb 26, 2020
  10. Feb 19, 2020
  11. Feb 09, 2020
  12. Feb 07, 2020
  13. Feb 06, 2020
  14. Feb 04, 2020
  15. Jan 30, 2020
    • Tom Rini's avatar
      cmd/gpt: Address error cases during gpt rename more correctly · 5749faa3
      Tom Rini authored
      
      New analysis by the tool has shown that we have some cases where we
      weren't handling the error exit condition correctly.  When we ran into
      the ENOMEM case we wouldn't exit the function and thus incorrect things
      could happen.  Rework the unwinding such that we don't need a helper
      function now and free what we may have allocated.
      
      Fixes: 18030d04 ("GPT: fix memory leaks identified by Coverity")
      Reported-by: Coverity (CID: 275475, 275476)
      Cc: Alison Chaiken <alison@she-devel.com>
      Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      Cc: Jordy <jordy@simplyhacker.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      5749faa3
  16. Jan 28, 2020
    • Martin Fuzzey's avatar
      pmic: allow dump command for non contiguous register maps · b852cca8
      Martin Fuzzey authored and Tom Rini's avatar Tom Rini committed
      
      Some PMICs (such as the DA9063) have non-contiguous register maps.
      Attempting to read the non implemented registers returns an error
      rather than a dummy value which causes 'pmic dump' to terminate
      prematurely.
      
      Fix this by allowing the PMIC driver to return -ENODATA for such
      registers, which will then be displayed as '--' by pmic dump.
      
      Use a single error code rather than any error code so that
      we can distinguish between a hardware failure reading the PMIC
      and a non implemented register known to the driver.
      
      Signed-off-by: default avatarMartin Fuzzey <martin.fuzzey@flowbird.group>
      b852cca8
    • Peng Ma's avatar
      cmd: sata: Add block unbind device function · 2d7818d0
      Peng Ma authored and Tom Rini's avatar Tom Rini committed
      
      If we didn't unbind the sata from block device, the same devices would
      be added after sata remove,
      This patch is to resolve this issue as below:
      
      => sata info
      SATA#0:
      	(3.0 Gbps)
      SATA#1:
      	(3.0 Gbps)
      Device 0: Model: INTEL SSDSA2BW300G3D Firm: 4PC10362 Ser#: BTPR247005PY30
                  Type: Hard Disk
                  Supports 48-bit addressing
                  Capacity: 286168.1 MB = 279.4 GB (586072368 x 512)
      Device 1: Model: INTEL SSDSA2BW300G3D Firm: 4PC10362 Ser#: BTPR247005VX30
                  Type: Hard Disk
                  Supports 48-bit addressing
                  Capacity: 286168.1 MB = 279.4 GB (586072368 x 512)
      => sata stop
      => sata info
      SATA#0:
      	(3.0 Gbps)
      SATA#1:
      	(3.0 Gbps)
      Device 0: Model: INTEL SSDSA2BW300G3D Firm: 4PC10362 Ser#: BTPR247005PY300
                  Type: Hard Disk
                  Supports 48-bit addressing
                  Capacity: 286168.1 MB = 279.4 GB (586072368 x 512)
      Device 1: Model: INTEL SSDSA2BW300G3D Firm: 4PC10362 Ser#: BTPR247005VX300
                  Type: Hard Disk
                  Supports 48-bit addressing
                  Capacity: 286168.1 MB = 279.4 GB (586072368 x 512)
      Device 2: Model: INTEL SSDSA2BW300G3D Firm: 4PC10362 Ser#: BTPR247005PY300
                  Type: Hard Disk
                  Supports 48-bit addressing
                  Capacity: 286168.1 MB = 279.4 GB (586072368 x 512)
      Device 3: Model: INTEL SSDSA2BW300G3D Firm: 4PC10362 Ser#: BTPR247005VX300
                  Type: Hard Disk
                  Supports 48-bit addressing
                  Capacity: 286168.1 MB = 279.4 GB (586072368 x 512)
      
      Signed-off-by: default avatarPeng Ma <peng.ma@nxp.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      2d7818d0
  17. Jan 27, 2020
  18. Jan 24, 2020
  19. Jan 23, 2020
Loading