Skip to content
Snippets Groups Projects
  1. Apr 29, 2019
    • Todd Eisenberger's avatar
      [devhost] Reduce logging output · ec50cd6c
      Todd Eisenberger authored
      This message gets output once per devhost during boot, and does not
      provide useful diagnostic information.  This moves the message to the
      SPEW level in case it is useful for debugging tracing support.
      
      Change-Id: I373d585014c9c1d7b26e52629e44476a15a68e80
      ec50cd6c
    • Zac Bowling's avatar
      [bt][avdtp] Fix typos and simplify initializers · c520a6e4
      Zac Bowling authored
      Fix comment typos and simplify struct initializers where possible.
      
      Test: fx build
            fx run-test bt-avdtp-tests
      Change-Id: I8ba1389970a9163ad886e51b12ee29604a31de70
      c520a6e4
    • Shac Ron's avatar
      [ahci] Convert to C++ · 70bddd68
      Shac Ron authored
      Only changes required to make this compile, no style changes.
      One egregious bug fixed (freeing a non-allocated member variable).
      
      Tests: qemu sata block tests pass
      Change-Id: I8dcc587ea040e15294ed275c0dc0ef7f3a64599e
      70bddd68
    • Vardhan Mudunuru's avatar
      [modular] Fix basemgr to pass config override to sessionmgr · f7a77a9a
      Vardhan Mudunuru authored
      * Re-factor ModularConfigReader to parse config file during construction, and
      expose some getters instead. Have it accept a root directory to work off
      of, which makes it more testable. (i.e., fake out a directory and pass it to
      ModuleConfigReader). Provide a factory for using the incoming namespace.
      
      * Have basemgr always pass config data to sessionmgr in its
      /config_override namespace, since appmgr enforces that /config is not
      overridable. sessionmgr uses ModularConfigReader, which prefers
      /config_override over /config when available.
      
      * Fix modular_config_xdr to parse SessionShellMapEntry -- it wasn't
      parsing session shell before.
      
      Test: modular_config_unittest tests that ModularConfigReader APIs
      parse and return basemgr config given a config directory. Tests that session
      shell URL is being parsed.
      
      Change-Id: I31c2f352a0ff5bb607e1b0a0628aaefd23affd8a
      f7a77a9a
    • Aaron Green's avatar
      [garnet][cmx] Add parsing for program/env_vars · b5a6eba8
      Aaron Green authored
      This CL adds the 'env_vars' field to 'program' in a cmx file.  This allows
      cmx files to include POSIX-style environment variables.  A subsequent CL
      will pass those along to spawned processes.
      
      Test: fx run-test cmx_unittests
      
      Change-Id: Icfba933c6e9f8de19f47aea8e94175c0f8a6214e
      b5a6eba8
    • Leo Lung's avatar
      [component_index] Add error code to interface · 1c190d5d
      Leo Lung authored
      CF-162 #comment
      
      Change-Id: I40a8f8c408caac1cc4b5e837651e1b255bb560f2
      1c190d5d
    • Braden Kell's avatar
      [fake_ddk] Make fake driver rec a weak symbol · 75e4caac
      Braden Kell authored
      This prevents a second __zircon_driver_rec__ symbol from being created
      in driver tests.
      
      Test: CQ
      Change-Id: Ib3cc11f8398feaea820981bf75ee1857699d6b40
      75e4caac
    • Vickie Cheng's avatar
      [modular][config] Remove base_shell_config.json parser · 14ae3e3b
      Vickie Cheng authored
      Products have been migrated away from using base_shell_config.json for
      session shell settings so all this code can be removed.
      
      MF-340 #comment Remove base_shell_config.json parser
      
      Change-Id: Iab624ea6e139acbb18573ce95a7ffb6e2f1c04a2
      14ae3e3b
    • Braden Kell's avatar
      [gpio][test] Add mock-gpio library · 69b1b1b2
      Braden Kell authored
      Test: Ife7555f8037c520d0e3c6b4aa050ed5bf2620612
      Change-Id: I586271c977d4478593622bb43df1feb5aa8996f4
      69b1b1b2
    • Maria Glukhova's avatar
      [catapult_converter] Mark sizeInBytes as "smaller is better". · 4141c542
      Maria Glukhova authored
      This is to allow a correct representation on the dashboard for the
      following Ledger benchmarks:
      fuchsia.ledger.put_entry / put_memory
      fuchsia.ledger.disk_space / updates
      fuchsia.ledger.disk_space / small_keys
      fuchsia.ledger.disk_space / one_commit_per_entry
      fuchsia.ledger.disk_space / entries
      fuchsia.ledger.disk_space / empty_pages
      fuchsia.ledger.disk_space / empty_ledger
      fuchsia.ledger.delete_entry / cleared_page
      
      TEST=fx run-test catapult_converter
      In addition, we will need to manually verify that the converted data is
      displayed properly on the dashboard for the benchmarks in question.
      
      LE-754
      
      Change-Id: Ifd74f6d23077023b8537a63b7ab618ceefc90bac
      4141c542
    • Roland McGrath's avatar
      [zircon][gn] Clean up default_variants list · 60cc3284
      Roland McGrath authored
      Make the preference for clang on host explicit in the first selector.
      Instead of using environment matching to get clang for efi, just rely
      on exclude_variant_tags in efi to skip over gcc and reach clang as a
      final fallback in the list.  This previously wasn't possible because
      of environment_redirect() issues, but the recent revamps to that code
      has removed those limitations.
      
      This should make sure there is a valid default available in other
      environments than efi and host that are incompatible with gcc, such as
      fuzzer environments.
      
      This uncovered a latent bug in the userboot/vdso embedding magic,
      where the kernel selecting the vDSO binary to embed and userboot
      selecting the vDSO binary to get symbols from would not always use
      the same binary.  Now they share the target that finds the binary.
      
      Bug: BLD-430
      Test: no effect on the build in variants=["gcc"] or variants=["clang"]
      Change-Id: Ida4b3b4c4e51809c887f9e598b784e932f684ebf
      60cc3284
    • Todd Eisenberger's avatar
      [devcoordinator] Fix buggy composite device behavior · 098ae102
      Todd Eisenberger authored
      If a component was a device with MUST_ISOLATE set on it, we would try to
      bind to the non-proxied side of it, which doesn't speak the device
      protocols.
      
      This is a re-landing of I64eaccec5d51997f4374d0277b040a952f681667.  The
      change was reverted due to flakiness on ASAN builds.  The flakiness was
      fixed in I7c6256d5f2a0af8922e85423ccb27330687182e6.
      
      Change-Id: I8736ff598a764ef2d70bf7792019e3a749ad1eec
      098ae102
    • Mukesh Agrawal's avatar
      [bt][l2cap] ERTM TxEngine: include request seqnum in RRPolls · 00ed1a28
      Mukesh Agrawal authored
      When sending a Receiver Ready message, we should acknowledge the
      frames that we have received. This is per the documentation for the
      "Send RR" action (see Core Spec v5.0, Volume 3, Part A, Sec
      8.6.5.6). Make it so.
      
      Bug: BT-442
      Test: bt-host-unittests
      
      Change-Id: If584f17f3f3c66585c82a4a1b947709cca503d75
      00ed1a28
    • Casey Dahlin's avatar
      [debugger] Exposed strip separation in BuildIDIndex · 3313ba0f
      Casey Dahlin authored
      Actually-stripped and separated debug symbols are, we are told, a thing
      that is coming. We need to actually be able to express this in our API.
      
      .build-id folders already have this separation. As of this patch that
      will be expressed correctly. The symbol downloader may not download both
      halves of the binary so that will have to come in another patch.
      Un-indexed folders, single files, and ids.txt are still treated as
      sources of unstripped full binaries. At least ids.txt and possibly some
      of the others mentioned are deprecated, so patches may or may not come.
      
      Change-Id: I191b76089b29eac2b83c6cf30ab1b87d8404aa14
      3313ba0f
    • Francois Rousseau's avatar
      [feedback] add log_listener_unittest · 134feb8a
      Francois Rousseau authored
      * for now we cover the basic case and when the log listener loses the connection to the logger
      * we will add tests around the timeout in another CL as this requires exposing the timeout to the caller (if we want to control the value in the tests)
      
      TESTED=`fx run-test feedback_agent_tests -t log_listener_unittest`
      
      Change-Id: Ica9e2aab50a0036224fbb89ce16b48be6da368f4
      134feb8a
    • David Stevens's avatar
      [kernel][vm] Make VmObject children always paged · 198ea835
      David Stevens authored
      Child VMOs can never be physical VMOs, and it is unlikely that there
      will ever be a type of VmObject that is neither paged nor physical.
      Given that, make VmObject children have type VmObjectPaged and move
      parent logic from VmObject to VmObjectPaged.
      
      Change-Id: Ib980dd46f5762b87dca36f26801b0f9bb2e2f682
      198ea835
    • Alex Min's avatar
      [modular] Update basemgr to pass flag to auto_login_base_shell whenever · 509d18f7
      Alex Min authored
      auto_login_to_guest build flag is set
      
      Change-Id: I416d0e99f1877d20cc12b60112b37c10a46da9f3
      509d18f7
    • Kiet Tran's avatar
      [wlan][sme] Fix GTK rotation · 367a35c2
      Kiet Tran authored
      WLAN-1110 #done
      
      This commit fixes two issues:
      
      1. Whenever there's a GTK rotation, the supplicant also pushes the
         (unchanged) PTK to the update sink. The expectation was that setting
         the same PTK again in the driver would work, but it actually causes
         the AP to subsequently ignore and then deauthenticate the client
         (behavior seen on broadcom). This commit changes wlan-rsn to no
         longer push a PTK update when there's a GTK rotation.
      2. SME incorrectly logs an error when a GTK rotation is happening.
      
      Test:
      1. fx run-test wlan-rsn-tests
      2. fx run-test wlan-sme-tests
      3. Manually verify that client remains connected to an AP that does GTK
         rotation every 10 seconds
      
      Change-Id: I78952461fe681ebdd1e785a66b1703c49229786e
      367a35c2
    • Ian McKellar's avatar
      [fidl][difl] Process declarations in order, tables support · 9c558181
      Ian McKellar authored
      This changes the tool to evaluate declarations based on the dependency
      order calculated in the frontend rather than by type. This means that if
      declaration A references declaration B then B will be evaluated before
      A.
      
      This adds some support for evaluating changes to tables and some more
      tests for types.
      
      Change-Id: Icbf5593a3847c8b05036ed3a850b4c79ce8d651c
      9c558181
    • Justin Mattson's avatar
      [fonts] Have the font service look in config data · 7d4b3e6a
      Justin Mattson authored
      Add a path for the font service to look for fonts exposed through
      the config-data package.
      
      TEST=verify text still appears "normal"
      
      SY-999 #comment
      
      Change-Id: I628f8c2ee6386d06191cdc9dda3453480c9fccbb
      7d4b3e6a
    • Zach Bush's avatar
      [cobalt/system-metrics] Switch away from EventCode enums · a4edab88
      Zach Bush authored
      They are deprecated and will soon be removed
      
      Test: No functional changes, the Enums are identical, just with different names.
      Change-Id: Ia28c87838066bced137dfeea841571e7feb42e7a
      a4edab88
    • Roland McGrath's avatar
      [musl] Move Zircon-specific code out of third_party/ulib/musl · d263137c
      Roland McGrath authored
      This code was all written from scratch for Fuchsia.
      
      Test: pure source file moves, no effect on compiled code
      Change-Id: I9fc05d520884120560e4b28709f98acfa87f96cd
      d263137c
    • Roland McGrath's avatar
      [zircon][gn] Fix logic error in environment() variant pruning · 98d6df9a
      Roland McGrath authored
      environment() prunes the variants it will define based on the
      selectors that have environment inclusion lists that exclude the
      environment being defined.  The matching logic for .environment
      must match _variant_target()'s logic, but had an || for && typo.
      
      Bug: BLD-430
      Change-Id: I9c8e35a019c88f616c31ef102df8f89dbd9cde73
      98d6df9a
    • Dale Sather's avatar
      [mdns] add v4/v6_multicast_address properties to config · a5ea7801
      Dale Sather authored
      This CL adds the ability to configure the multicast addresses that
      mdns will use for communication. This is needed temporarily to allow
      multiple mdns implementations to run side-by-side, given the current
      limitations of the network stack.
      
      Previously, the MdnsAddresses class had static methods that took a
      port parameter, and the port number was distributed through the
      object graph. This new code changes the MdnsAddresses methods into
      instance methods, the instance carrying the port number and the
      two multicast addresses. The config code initializes an instance
      of MdnsAddresses, and a reference to that instance is distributed
      through the object graph instead of the port number.
      
      TEST: fx run-test mdns_tests
      
      Change-Id: I2f877f25a9d977b5913b1b4e392031e296666aaf
      a5ea7801
    • Tim Detwiler's avatar
      [linux_runner] Remove 'kBootToContainer' flag. · 6fce5de8
      Tim Detwiler authored
      This flag was used to get a serial console into the VM to debug
      low-level boot problems. Now that we have vsh support, we can simply
      use vsh to shell into the vm.
      
      Change-Id: Ia20d1767a1d4575fe31bc76c587491a22738ec3e
      6fce5de8
    • Todd Eisenberger's avatar
      [devfs] Send watcher events to parent directory, not parent device · 07ac73a0
      Todd Eisenberger authored
      These are usually the same, but in the case of composite devices there
      is a difference.
      
      Change-Id: I7c6256d5f2a0af8922e85423ccb27330687182e6
      Bug: ZX-3971 #done
      07ac73a0
    • Taylor Cramer's avatar
      [rust][async] Move fuchsia_async::Socket to shared functions · 2a8d75ed
      Taylor Cramer authored
      Change-Id: I67bc6ff0629782cee3ad3574b4d36e279f634bdb
      2a8d75ed
    • Mukesh Agrawal's avatar
      [bt][l2cap] ERTM TxEngine: add ability to receive ACKs · 50e19d79
      Mukesh Agrawal authored
      When we receive a new acknowledgement, we should take the steps
      required by the Process-ReqSeq action (see Core Spec v5.0, Volume 3,
      Part A, Sec 8.6.5.6).
      
      We can't take all of those steps yet, because we don't have the
      necessary data structures (in particular, we're missing the
      retransmission queue). But implement what we can with what we have
      right now.
      
      While there: improve documentation of an existing field.
      
      Bug: BT-442
      Test: bt-host-unittests
      
      Change-Id: I1c966edc163442181785c063a0e361254f91b1da
      50e19d79
    • Dale Sather's avatar
      [libinet] fix IpAddress parsing · 53949947
      Dale Sather authored
      inet::IpAddress was using the posix call getaddrinfo (in local mode)
      to parse IP addresses. getaddrinfo doesn't work in fuchsia, so this
      CL replaces the call with a parser.
      
      TEST: new inet unit tests
      Change-Id: I8ef3b3c7ab8d184d14228e206531b2c19274a087
      53949947
    • Tim Detwiler's avatar
      [linux_runner] Remove command line arg parsing. · 6cca03f7
      Tim Detwiler authored
      The linux_runner is never started directly from the command line
      anymore, so these arguments are unused.
      
      Change-Id: I6ca4bea77ff467c2dd66507a47d85ba5a1884aab
      6cca03f7
    • Tim Detwiler's avatar
      [linux_runner] Replace SyncPtrs with fit::promise. · 96eb2398
      Tim Detwiler authored
      This removes the use of FIDL Sync pointers from the linux_runner, using
      fit::promises in their place. This removes a large chunk of the
      blocking logic from the linux_runner, however the gRPC components are
      still synchronous. Making these async will happen in a subsequent
      change.
      
      This change will make it simpler to add unit tests to this component
      since we won't have to work around blocking logic.
      
      Test: tiles_ctl add linux://chromium
      Change-Id: Ifbed771d8764153607d4ea483ff2c69a75835d5a
      96eb2398
    • Taylor Cramer's avatar
      [rust][async] Factor out signal checking into reusable functions · bf77b348
      Taylor Cramer authored
      Change-Id: I090f35372001e1e5fb919152ee5d66fcf7d0b0d3
      bf77b348
    • Roland McGrath's avatar
      [zircon][gn] Remove standard_fuchsia_user_configs variable · 2345e2a1
      Roland McGrath authored
      It was used in only one place and just harmed readability.
      
      Test: gn gen && ninja has nothing to do
      Change-Id: Ifd81fde4bdad3fe7c3386c93cc4f32455071baf1
      2345e2a1
    • Christopher Anderson's avatar
      [pci] Update protocol methods for Capabilities · aa333355
      Christopher Anderson authored
      - Change GetNextCapability and GetFirstCapability to return
        a status code to be more testable and consistent with the
        rest of our API and syscall patterns.
      - Make GetFirstCapability a protocol method to work with DDKTL
        better and avoid one-off methods in pci-lib
      - Update all clients of these apis.
      
      ZX-3146
      
      Change-Id: I71fd19fcf22cba784c4ecd755644a3b30c5648e2
      aa333355
    • Pascal Perez's avatar
      [fidlc] Minor test cleanup · 80c1e6a4
      Pascal Perez authored
      - Simpler library names in line with more recent tests;
      - Clearer names, and no comments (which duplicates what the test name
      conveys)
      - No _test suffix
      
      Also adding a test for unknown using, which was not covered before.
      
      Change-Id: I299acf93596f5b4d4d3907c7c0feac0228248d55
      80c1e6a4
    • Pascal Perez's avatar
      [fidl] Removing unused build dependencies · 72a01e19
      Pascal Perez authored
      and in one place, an unused header.
      
      FIDL-600 #comment
      
      Tes: build is greed
      Change-Id: I60bce1ea490e532bc5ce62104916c61d338ae7bc
      72a01e19
    • Ed Coyne's avatar
      [dmctl] Remove virtcon channel from devcoordinator. · 38a8f8cb
      Ed Coyne authored
      We have already switched to using a more direct path to create virtcons,
      this removes the old path through /dev/misc/dmctl to the devcoordinator.
      
      Issue: ZX-3403
      Test: Booted frank, virtcon still works, this change is in essence a
      no-op as nothing is using this code.
      
      Change-Id: Icb0b77984a818a56f98d5099d111878e9f88ea57
      38a8f8cb
    • Braden Kell's avatar
      [cleo][touch] Use power driver to enable VGP1 regulator · bee42c42
      Braden Kell authored
      Test: Used hid tool to verify touch screen still worked
      Test: runtests -t mt8167s_ref-test
      Change-Id: I07213a60a99c3c8f69bb4c1e4407deb5c1fbe791
      bee42c42
    • Tim Detwiler's avatar
      [vmm][virtio-net] Reduce chattiness of log message. · f73da998
      Tim Detwiler authored
      Change-Id: I92d2475bbacd155c32f5ef9c423fadb72d67c9bd
      f73da998
    • Yifei Teng's avatar
      [llcpp] [build] Change data_deps to deps · d11db8de
      Yifei Teng authored
      Apparently using data_deps in compiled_action will not trigger a
      re-execution of the tool when fidlgen_llcpp changes. Out of these
      following potential locations for the fidlgen dependency I tried:
      
      - in data_deps in executable("fidlgen_llcpp_zircon")
      - in deps in executable("fidlgen_llcpp_zircon")
      - in data_deps in the compiled_action
      - in deps in the compiled_action
      
      Only the last one will correctly trigger the execution of
      fidlgen_llcpp_zircon.
      
      Also need to put fidlgen_llcpp in the depfile of the update/validate
      actions, to indicate dependency on incremental builds.
      
      TEST: Edit a .go source file in fidlgen_llcpp and observe that
      fx build -k 0 tools/fidlgen_llcpp_zircon:update is correctly run and
      modifies the checked in bindings.
      
      Change-Id: Ie5779bc67bcc88ac1fea2fa599faea36d3a3ce7b
      d11db8de
Loading