Skip to content
Snippets Groups Projects
  1. May 13, 2019
    • Todd Eisenberger's avatar
      [devhost] Fix double-free of ProxyIostate · 8a76c5da
      Todd Eisenberger authored
      The double free would occur if
      1) some thread invoked Cancel() to queue destruction of a ProxyIostate,
         and
      2) before that packet was processed, the ProxyIostate's handler ran and
         decided to destroy itself.
      
      Bug: ZX-4060
      Change-Id: I3b9c7275c4e0cd2dc3a6c6cd2d2376c947eb627a
      8a76c5da
    • Todd Eisenberger's avatar
      [devhost] Refactor to enable unit testing · 34462e7c
      Todd Eisenberger authored
      This moves the ProxyIostate and ConnectionDestroyer types into their
      own files, and feeds them async dispatchers via injection rather than
      environmental globals.
      
      Change-Id: Ifeadbed02e92a7e2a7af5346ddd253af74112abf
      34462e7c
  2. May 10, 2019
    • Zach Anderson's avatar
      Revert "[devhost] Wait for BindDriver in reply to Bind" · cccafba3
      Zach Anderson authored
      This reverts commit cf254ae8.
      
      Reason for revert: Causes vim2 to fail to pave. See: https://fuchsia.atlassian.net/browse/DNO-519
      
      Original change's description:
      > [devhost] Wait for BindDriver in reply to Bind
      > 
      > Calls to fuchsia.device.Controller/Bind should only return once the
      > operation completes, which is when
      > fuchsia.device.manager.DeviceController/BindDriver is called.
      > 
      > ZX-3991 #done
      > 
      > Change-Id: I10607640072c8f779ac1d5be79d5a2da6de6288b
      
      TBR=kulakowski@google.com,teisenbe@google.com,abdulla@google.com,brettw@google.com
      
      Change-Id: I370d03abd9fa93a70a48f86f4df171f2cf87ee12
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      cccafba3
    • Abdulla Kamar's avatar
      [devhost] Wait for BindDriver in reply to Bind · cf254ae8
      Abdulla Kamar authored
      Calls to fuchsia.device.Controller/Bind should only return once the
      operation completes, which is when
      fuchsia.device.manager.DeviceController/BindDriver is called.
      
      ZX-3991 #done
      
      Change-Id: I10607640072c8f779ac1d5be79d5a2da6de6288b
      cf254ae8
  3. May 09, 2019
    • Christopher Anderson's avatar
      [devmgr] Reduce log spew with isolated devmgrs · 9db287a4
      Christopher Anderson authored
      When devcoordinator comes online it prints an error message
      if the root resource is not available, so it is unnecessary to
      print that the resource is unavailable several tiems later on.
      
      Change-Id: I0785840b53603a4495db286c1bf3495330e4b13f
      9db287a4
    • Alex Legg's avatar
      [devfs] Deprecate opening devices as directories · d11bbe5a
      Alex Legg authored
      Devfs should no longer call DirectoryOpen on devices except when opening
      the device itself (i.e. with a path of ".").
      
      This is a small change in behavior in that when the describe flag is set
      devfs will now report ZX_ERR_NOT_FOUND when attempting to open a
      nonexistant file under a device. Previously devmgr would simply close the
      channel in this case.
      
      Also remove the DirectoryOpen handler from devmgr.
      
      Add an additional check to the devfs tests that opening a file under a
      device path (i.e. /dev/<device>/<file>) fails with ZX_ERR_NOT_FOUND
      unless the device has a child device (e.g. /dev/class/block/000).
      
      Change-Id: If7f33ac306940da7e43ae8c5b53a15d907593042
      d11bbe5a
  4. Apr 30, 2019
    • Alex Legg's avatar
      [ddk] Remove open_at device hook · 5c933238
      Alex Legg authored
      The DirectoryOpen handler will be removed along with resulting changes
      to devfs in a follow up CL.
      
      Change-Id: I37df4c6bdf2aba84575a5ab6b692b2da5f362185
      5c933238
    • Drew Fisher's avatar
      [devmgr] Add more logging around driver binding · dc0be681
      Drew Fisher authored
      We suspect that something may be causing occasional deadlock around the
      time that we attempt to bind the zxcrypt driver.  Add more logging, and
      increase verbosity in a couple places to see if we can narrow down where
      we're going awry.
      
      DNO-492 #comment
      TEST: no behavioral change, just more logging
      
      Change-Id: Ib03af33da1d67533599c80e4453ef27dc160950e
      dc0be681
  5. Apr 23, 2019
    • Marty Faltesek's avatar
      [zx] Transition zx::channel::read and zx::channel::read_etc (part 2) · e08d86f8
      Marty Faltesek authored
      Transitions callers of zx::channel::read and zx::channel::read_etc to a
      corrected argument order. The first step happened in a previous commit
      which temporarily added method names during the transition,
      zx::channel::rea2 and zx::channel::rea2_etc to reflect the new argument
      ordering.
      
      This commit renames rea2 callers back to read, and changes the class method
      definitions to the corrected order.
      
      Test: CQ.
      
      Bug: ZX-2812
      Change-Id: I1ee9067d6a3507c18674d3e60b546882fcbd81f0
      e08d86f8
  6. Apr 22, 2019
  7. Apr 17, 2019
  8. Apr 11, 2019
    • George Kulakowski's avatar
      [fbl] Migrate to std::make_unique and remove fbl::make_unique · 191d9eaa
      George Kulakowski authored
      fbl::make_unique was functionally identical to std::make_unique. There
      should be no behavior change in this CL.
      
      The bulk of this CL was prepared via the following zsh script:
      
          for f in $(git grep -l 'fbl::make_unique<') ; \
          sed -i 's/fbl::make_unique</std::make_unique</' $f
      
      Bug: ZX-3357 #comment remove make_unique
      Bug: ZX-3837 #comment remove make_unique
      Change-Id: Ic8bf489e4dbf7cb7d2d71ad95aa26018bf776e56
      191d9eaa
  9. Mar 28, 2019
  10. Mar 27, 2019
  11. Mar 26, 2019
  12. Mar 22, 2019
    • Scott Graham's avatar
      [syscalls][usb][xhci] Introduce scheduler profile to devhost · 7182c91d
      Scott Graham authored
      ... and use to remove zx_thread_set_priority() call from usb-xhci.
      
      devhost connects to scheduler.ProfileProvider, and allows drivers to
      request a profile. This is an intermediate state until we decide if/how
      we want to allow drivers to consume fidl services.
      
      ZX-3703 #comment [syscalls][usb][xhci] Introduce scheduler profile to devhost
      ZX-2914 #comment [syscalls][usb][xhci] Introduce scheduler profile to devhost
      
      Test: CQ, manual instrumentation/logging
      Change-Id: I23359f2062b77cf84e3bccef72682668817618ad
      7182c91d
  13. Mar 18, 2019
    • Todd Eisenberger's avatar
      [devcoordinator] Create composite devices in devhosts · 44fd341a
      Todd Eisenberger authored
      When all of a composite device's components are ready, the composite is
      created.  In this implementation, we always proxy components, even if
      they're in the same process.  This will be relaxed in a later patch.
      
      Issue: ZX-2648
      Change-Id: I97f5efb311ca18ec830f81158f022f230abc2d5d
      44fd341a
  14. Mar 15, 2019
  15. Mar 13, 2019
  16. Feb 28, 2019
  17. Feb 26, 2019
  18. Feb 21, 2019
    • George Kulakowski's avatar
      [devhost] Split Bind and Creation contexts · 1974dd18
      George Kulakowski authored
      This is a very small step towards a better interface for bind and
      create, internally (rather than exposing thread-local storage!).
      
      This also makes it clear that Binding, at least, does not have the RPC
      proxy case.
      
      Change-Id: I8571e655e12002794980448cbd5869b63b95c98b
      1974dd18
  19. Feb 12, 2019
  20. Jan 31, 2019
  21. Jan 29, 2019
    • Brian Bosak's avatar
      [ddk][api] Add API to get length of device metadata · 064e4d27
      Brian Bosak authored
      This patch adds a new method (device_get_metadata_size) to the DDK API, which allows
      the retrieval of the size of a given metadata key on a device.
      
      Test: runtests -t driver-test
      Change-Id: Ib2535b17e3e2b6b9bc225835d6ac27e288aadd52
      064e4d27
  22. Jan 16, 2019
    • Jocelyn Dang's avatar
      [devmgr] Pipelined open for device_add. · 9cdd6e4f
      Jocelyn Dang authored
      This allows a client to open a connection to the device
      when adding a device, instead of having to wait for the device
      appear in the filesystem and open it.
      
      If the device is added with DEVICE_ADD_MUST_ISOLATE,
      they will get connected to the proxy device instead.
      
      If the device is added with DEVICE_ADD_INVISIBLE,
      they will not be be connected until device_make_visible is called.
      
      ZX-2956 #comment
      
      TEST= I wrote a small device and proxy and verified the channel
      worked.
      
      Change-Id: I5e1eed1eedaa6be65d0f0053c4c68dee0ead3058
      9cdd6e4f
  23. Jan 02, 2019
  24. Dec 20, 2018
    • Doug Evans's avatar
      [devhost] Change default of driver.tracing.enable to 1 · 287356a3
      Doug Evans authored
      ZX-2468 #comment patch
      
      Tested: Turn on verbosity in trace_manager, then
      fx shell trace record trace --help
      and verify all devhosts are participating in the trace.
      Then boot with driver.tracing.enable=0, rerun, and verify devhosts are absent.
      
      Change-Id: I5cd56133f12331aa604e6a857ffb5fef4eb40c0e
      287356a3
  25. Dec 11, 2018
  26. Dec 10, 2018
  27. Dec 05, 2018
  28. Nov 30, 2018
    • Sean Klein's avatar
      [fs][devmgr] Avoid using inequality operators on ordinals · 127a66b1
      Sean Klein authored
      Although there is still heavy reliance on ordinals as constants
      outside generated FIDL code, this patch removes the filesystem
      dependence on relative ordering of FIDL ordinals by instead
      utilizing the "try_dispatch" family of functions.
      
      Rather than routing to the appropriate dispatch function, the FIDL
      handler will now "try_dispatch" to all possible interfaces,
      checking against ERR_NOT_SUPPORTED until something else is returned
      or the list is exhausted.
      
      This is less efficient, but acts as a workaround for FTP-20.
      
      ZX-3063 #done
      Test: CQ
      
      Change-Id: Iff1736757417e2b44765ae0083fc6d16022102fe
      127a66b1
  29. Nov 29, 2018
  30. Nov 26, 2018
Loading