1. 14 4月, 2018 1 次提交
  2. 04 4月, 2018 2 次提交
    • P
      efi_loader: initialize device path on alloc · eab2dc37
      Patrick Wildt 提交于
      Since the backing memory for a new device path can contain stale
      data we have to make sure that we zero the buffer.  Otherwise some
      code paths that don't set all fields in a structure backed by this
      device path might contain unwanted stale data.
      Signed-off-by: NPatrick Wildt <patrick@blueri.se>
      Reviewed-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      eab2dc37
    • A
      efi_loader: Fix network DP with DM_ETH · f9cfad1a
      Alexander Graf 提交于
      When CONFIG_DM_ETH is set, we assemble the device path properly with a
      full device hierarchy. Our helper function dp_fill() even put the MAC
      node itself in it for us.
      
      However, for non-DM compatibility we also have code in that added the
      MAC node manually. That code now runs on top of the existing MAC node:
      
        Handle 0x3db2f6b0
          /HardwareVendor(e61d73b9-a384-4acc-aeab-82e828f3628b)[0: ]
          /USBClass(0,0,9,0,0)/USBClass(424,9514,9,0,2)/MacAddr(b8:27:eb:e1:81:47,1)
          /MacAddr(b8:27:eb:e1:81:47,57)/EndEntire
      
      We obviously don't need the additional node and in fact, grub chokes on
      it and fails to match the DP against the ethernet device node. So this
      patch moves the additional MAC node into the non-DM code path:
      
        Handle 0x3db3fde0
          /HardwareVendor(e61d73b9-a384-4acc-aeab-82e828f3628b)[0: ]
          /USBClass(0,0,9,0,0)/USBClass(424,9514,9,0,2)/MacAddr(b8:27:eb:e1:81:47,1)
          /EndEntire
      
      While at it, we also mark the non-DM MAC node as ethernet.
      
      Fixes: b66c60dd ("efi_loader: add device-path utils")
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      f9cfad1a
  3. 28 2月, 2018 1 次提交
  4. 23 1月, 2018 6 次提交
  5. 17 12月, 2017 4 次提交
  6. 01 12月, 2017 3 次提交
  7. 12 10月, 2017 1 次提交
  8. 20 9月, 2017 1 次提交
    • R
      efi_loader: add device-path utils · b66c60dd
      Rob Clark 提交于
      Helpers to construct device-paths from devices, partitions, files, and
      for parsing and manipulating device-paths.
      
      For non-legacy devices, this will use u-boot's device-model to construct
      device-paths which include bus hierarchy to construct device-paths.  For
      legacy devices we still fake it, but slightly more convincingly.
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      b66c60dd