Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update zircon #1

Open
wants to merge 2,035 commits into
base: master
Choose a base branch
from
Open

update zircon #1

wants to merge 2,035 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jan 10, 2018

  1. [minfs] Privatize VnodeMinfs interface

    Change-Id: I1f976e1602f5c9215a1bf915013132bcd9698c5b
    Sean Klein committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    2e92932 View commit details
    Browse the repository at this point in the history
  2. [fdio] Remove unnecessary void* cast of rio callback

    Change-Id: I0149c24b3b9f0457ed4e2de4ced0faeb9c5a94c6
    Sean Klein authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    d1eeecc View commit details
    Browse the repository at this point in the history
  3. [ddktl] Add EthmacSetParam

    Step 1/5
    
    NET-9
    
    Change-Id: I7ff2f20b1a1c743f1a33ae5b6b22119656173b07
    tkilbourn authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    7756aa7 View commit details
    Browse the repository at this point in the history
  4. [ddktl] Set default for EthmacSetParam to true

    Step 3/5
    
    NET-9
    
    Change-Id: Icfc0d2ae2b1bc237f136cb9ccacea83bf39bfe1a
    tkilbourn committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    9fa397e View commit details
    Browse the repository at this point in the history
  5. [ddktl] Finish EthmacSetParam transition

    Step 5/5
    
    NET-9
    
    Change-Id: Ib2dc108feb26045f6f8e33996d666fc756648805
    tkilbourn committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    73be6e8 View commit details
    Browse the repository at this point in the history
  6. [devmgr][devfs] Send vfs remove events on device removal

    Change-Id: Ic5b672665e2695feade1f05871794a7c06e87e77
    dgstevens authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    9958b78 View commit details
    Browse the repository at this point in the history
  7. [framebuffer] Handle unbind events

    Change-Id: I05877cc081d03752335c8d078f59760b9efaa095
    dgstevens authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    5f0fde3 View commit details
    Browse the repository at this point in the history
  8. [block][nvme] minimal nvme driver

    - only supports devices with a single namespace
      (so far every m.2 ssd I have seen and Qemu comply with this)
    - does not support SYNC operations yet
    - does not do proper cache and barrier ops for arm64 yet
    
    Change-Id: I06c6674695ea3222d69fa244d82591c463a0fec2
    swetland authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    b39e680 View commit details
    Browse the repository at this point in the history
  9. [intel-i915] Add allocator to gtt

    Change-Id: I49ecd0797938b3975701ccea566d90023d7d8928
    dgstevens authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    834dc19 View commit details
    Browse the repository at this point in the history
  10. [framebuffer] Fix unbind locking

    Change-Id: I8c08878e3609114e4bfd1027803ad475b4a68b31
    dgstevens authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    866e4bc View commit details
    Browse the repository at this point in the history
  11. [block] Enqueue sub-chunked requests in parallel

    For block requests which are larger than the maximum
    transfer size, don't wait for each sub-chunk to complete
    sequentially. Instead, IotxnQueue all sub-chunks at once,
    and use a simple counter to track when they complete.
    
    Change-Id: Ia074e9f32d34fae870ba85a5e2902ac6c2858937
    Sean Klein authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    7b5b520 View commit details
    Browse the repository at this point in the history
  12. [kernel][dpc] Use separate dpc thread for each CPU

    Change-Id: Ic914253f30047db4b7d274946b05dd585e92a80c
    Mike Voydanoff authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    388b5ed View commit details
    Browse the repository at this point in the history
  13. [intel-i915] Add support for hotplugging

    Change-Id: Idbc2721499a5b18acbb395d26b63bf13d08c79a0
    dgstevens authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    6bee686 View commit details
    Browse the repository at this point in the history
  14. [dev][sdhci] remove get_dma_offset

    get_dma_offset() was a hack added to support RPI3. Remove it now
    that it's no longer a target.
    
    Change-Id: Ib79bfd330a42a6e51ceea3cb9c7d828ecf691825
    Yvonne Yip authored and CQ bot account: [email protected] committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    9f511a1 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2018

  1. [dev][usb-video] Adds ioctl for getting stream channel from usb video

    driver, and related struct definitions.
    This borrows heavily from the audio driver.
    
    Actual implementation will be in next CL.
    
    ZX-1129 #comment
    
    Change-Id: I18e84b4c91d7b67c5a5f7017f5fd86fb31216a7f
    jocelyndang authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    fdec4a4 View commit details
    Browse the repository at this point in the history
  2. [kernel][amlogic_s905] Fix implicit conversion from true to INT_RESCH…

    …EDULE
    
    Fortunately, true and INT_RESCHEDULE both have the numeric value 1, so
    this should make no difference.
    
    ZX-1490
    
    Change-Id: Ib121626fa3f94973b1f77913d432eadc77497786
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    a58d0d1 View commit details
    Browse the repository at this point in the history
  3. [async] Add async::WaitMethod, a lower-overhead version of async::Wait

    Example usage of async::Wait:
    
        class Foo {
            Foo() { wait_.set_handler(fbl::BindMember(this, &Foo::Handle)); }
            async_wait_result_t Handle(...) { ... };
            async::Wait wait_;
        };
    
    With async::WaitMethod, that becomes:
    
        class Foo {
            async_wait_result_t Handle(...) { ... };
            async::WaitMethod<Foo, &Foo::Handle> wait_{this};
        };
    
    When async::Wait is used with fbl::BindMember() like that, a single
    callback from the event loop to Foo::Handle() will involve 3 indirect
    jumps plus 1 conditional jump (which generates a lot of wrapper code):
    
     * An indirect jump to async::Wait::CallHandler().
     * An indirect jump to fbl::function's virtual operator().
     * A conditional jump to check whether &Foo::Handle is a virtual or
       non-virtual method.  (This is part of the semantics for C++ method
       pointers.)
     * An indirect jump to the Foo::Handle().
    
    In contrast, async::WaitMethod<> will do only a single indirect jump,
    and no conditional jumps.  (The conditional jump is avoided because
    the callback method &Foo::Handle is passed as a template parameter and
    it is known statically to be non-virtual.)
    
    Change-Id: Id581b39eb9939d97148529e5f3453243c72bafc0
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    9ce8d11 View commit details
    Browse the repository at this point in the history
  4. [framebuffer] Fix double locking issue

    The magma implementation of acquire_or_release_display makes a call to
    the ownership callback, which takes a lock. Change 866e4bc made sure
    that the framebuffer's parent device is never used after unbinding, and
    in doing so it moved a call to mtx_lock before calls to FB_ACQUIRE and
    FB_RELEASE, resulting in a double locking issue. Since the magma driver
    never unbinds, it isn't necessary to move the lock for that driver, and
    the framebuffer driver will go away before more GPU drivers are added.
    
    Change-Id: I1790ec476420640a7453fe6bcca0f22a9932eb40
    dgstevens committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    4acd518 View commit details
    Browse the repository at this point in the history
  5. [kernel][dpc] Move dpc code from kernel/lib/ to kernel/kernel/

    Ran clang-format on the dpc files as well
    
    Change-Id: Id333fa05b63f1758dd505cb3fd7b6d397d3b247c
    Mike Voydanoff authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    7b6cc1f View commit details
    Browse the repository at this point in the history
  6. [ddk][docs] clarify some lifecycle details around remove/unbind

    Change-Id: I2e83a566d78d8a57f9e1ac3bde892dc043ae78b4
    swetland committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    d76c50e View commit details
    Browse the repository at this point in the history
  7. [kernel] Cleanup: Refer to "timer_t" rather than "struct timer" for c…

    …onsistency
    
    ZX-1490
    
    Change-Id: I653b55552c901ad5ee43fb3ba3826b51a01038d1
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    89b0728 View commit details
    Browse the repository at this point in the history
  8. [kernel][pmm] Cleanup: Remove an unnecessary use of 'extern "C"'

    This function is not used outside its file.
    
    Change-Id: I71350f2e3c347003bb0c94e7a921f7832a703f9b
    Mark Seaborn committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    73cc120 View commit details
    Browse the repository at this point in the history
  9. [bootloader] bump version for new paver features

    Accepting all x86 image files and ignoring a subset based on system
    detection is a version worthy change.
    
    Change-Id: Ibec8bbab761e4c4c5647a8b9d9be905c70ff5f73
    James Tucker authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    afcb6d7 View commit details
    Browse the repository at this point in the history
  10. [hwreg] do not export as a shared library

    This should be used as a static library within Zircon and a source-only
    library outside of it.
    
    Do mark it for source packaging for import int Garnet and above
    
    Change-Id: If1c7b44aaaba4b1adf0dd5ba0960c7d3e3b0ded9
    swetland authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    d50f933 View commit details
    Browse the repository at this point in the history
  11. [ulib][test-utils] Export tu_wait

    Change-Id: Ie0c48f6cd559dc6587e181f940d1a5b7675fb9d8
    xdje42 authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    2765197 View commit details
    Browse the repository at this point in the history
  12. [ddk][block] new block protocol

    The plan here is that we will use a protocol more tightly aligned
    with the needs of the block IO layer (including constraints that
    make things much more consistent and less open ended than the
    more free-form iotxns did).
    
    The expectation is that the only client of this protocol will be
    the generic block mid-layer driver.
    
    The deployment plan is:
    1. Agree on the new protocol
    2. block mid-layer driver will support new protocol, if present
    3. block drivers will support new protocol
    4. once all block drivers support new protocol, we retire iotxn_queue()
    
    Change-Id: I2659fe985f1a815352db67faa3788fb3c239ea66
    swetland authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    9313908 View commit details
    Browse the repository at this point in the history
  13. [utest][exception] simplify test child process invocation

    Change-Id: I8a83f8ec4db91cd9d5074004ce6fdf7c55b47f5d
    xdje42 authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    484555d View commit details
    Browse the repository at this point in the history
  14. [hypervisor][x86] Add X2APIC support and pretend to be KVM.

    Linux doesn't support X2APIC without IRQ remapping unless it recognises
    that it's running as a guest. For now we can pretend to be KVM to
    trigger hypervisor detection.
    
    ZX-1257 #done
    
    Change-Id: I66094b65f4299c5a6a51eab8ce24f419e05d23f7
    Alex Legg authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    e6305d5 View commit details
    Browse the repository at this point in the history
  15. [ddk] Fix typo in comment

    Change-Id: I8e490d0a17af3e7e1d23527bc79421288b74f50b
    qwandor committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    0694bed View commit details
    Browse the repository at this point in the history
  16. [fdio] Use ZXRIO_ON_OPEN unsolicited requests for open

    - The zxrio_describe_t object replaces the zxrio_object_t
    with a FIDL2 compatible format.
    - Flip the usage of ZX_FS_FLAG_PIPELINE to be implied by
    default. "ZX_FS_FLAG_DESCRIBE" may be used to request a
    description object.
    - ZXRIO_DESCRIBE can be trivially implemented using the
    description object -- it currently isn't, because there
    would be no clients through RIO.
    
    ZX-1360 #comment In Progress
    
    Change-Id: I1c7cad185af468b26c770dfd092382814a436c04
    Sean Klein authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    e00ff3e View commit details
    Browse the repository at this point in the history
  17. [tftp] Add support for BUSY response to requests

    If a server is unable to handle a request at the moment, but may
    be able to do so if the client waits, it can respond with a
    TFTP_ERR_CODE_BUSY error packet. This behavior is induced by a
    response of TFTP_ERR_SHOULD_WAIT from a file_open_read() or
    file_open_write() call.
    
    ZX-1521
    
    Change-Id: I2551407052d4a33a7e6b6eebcf45d8f4b28b9dab
    josh-conner authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    0a0eafb View commit details
    Browse the repository at this point in the history
  18. [bootserver] Allow target to delay transmission

    When using tftp, recognize that a TFTP_ERR_SHOULD_WAIT result indicates
    that we should retry transmission after a delay.
    
    ZX-1521
    
    Change-Id: I7a8bb039b8f6b39236c93d6c9ec9a9a4290e06dc
    josh-conner authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    4c11e62 View commit details
    Browse the repository at this point in the history
  19. [host][blobstore] set a reasonable open file limit

    As the tool now adds blobs concurrently, on high CPU Mac systems in
    particular, RLIMIT_NOFILE starts far too low, and we begin to fail against
    the soft limit.
    
    Change-Id: I06b1d42d0cf4e41182ca0b1652ccbad00fc7e6cf
    James Tucker authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    88cc62e View commit details
    Browse the repository at this point in the history
  20. [fidl] Rename token_definitions.h to .inc

    This is designed to be included multiple times for different X macros,
    so name it accordingly.
    
    Change-Id: I1899577dfffb828d3845bc0d6ebc4ebd0f79a179
    George Kulakowski authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    654c47e View commit details
    Browse the repository at this point in the history
  21. [ddk][wlan] Adds BSS config struct.

    Key idea is to replace SetBss(...) with
    ConfigureBss(wlan_bss_config_t), which can be used for both, AP and
    client mode.
    
    Change-Id: I3283fc57296ee5e4c80c44f158bb6435daf2d6d9
    hahnr authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    7206376 View commit details
    Browse the repository at this point in the history
  22. [fidl] Add a notion of SourceLocation, and use it in a bit of error r…

    …eporting
    
    Change-Id: Ie27a04dcd83d639ca2d4a029773c4d6bdadee1e3
    George Kulakowski authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    04b98ea View commit details
    Browse the repository at this point in the history
  23. [zx] Add zx::time and zx::duration

    These are type-safe versions of zx_time_t and zx_duration_t.
    
    Change-Id: Iabf99cb272e488a91204aa307fc015d0b65ce017
    abarth authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    e9283fa View commit details
    Browse the repository at this point in the history
  24. [syscalls][exceptions] Prepend zx_ to exception data types

    Change-Id: I801617022b98c66ecd8d3999cb72fe3783a82284
    xdje42 authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    1374668 View commit details
    Browse the repository at this point in the history
  25. [blobstore(host)] remove non-portable printf

    Change-Id: If45414abe19519a20b08b2916b052ea8cc2f9c6b
    James Tucker authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    f72900f View commit details
    Browse the repository at this point in the history
  26. [fidl][build] Fix the GN build of the fidl host tool

    This was overlooked because this build doesn't occur in zircon itself,
    but only when it rolls up into Garnet.
    
    Change-Id: I244ad653352992d8fd7f94b121a0cd0141036157
    George Kulakowski authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    9765ebe View commit details
    Browse the repository at this point in the history
  27. [runtests] Don't build output path for every test.

    This change hoists out the code for generating the part of the
    output path that is independent of the test binary's name, since
    it's unnecessary to do this every time. It also resolves the
    path to the test binary using realpath to completely eliminate
    any chance of output name collisions via relative paths (e.g.
    runtests -o /data /system/test ./system/test).
    
    Change-Id: Ibe014745944df3e836b772564dff6c36c2469728
    mknyszek authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    51ab6b2 View commit details
    Browse the repository at this point in the history
  28. [block] Larger-than-device requests should fail, not truncate

    ZX-1545 #comment In Progress
    
    Change-Id: I456c71c1b093791d1e21855849d566726a4c0544
    Sean Klein authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    2dc3df0 View commit details
    Browse the repository at this point in the history
  29. [fidl] Fix the gn build again

    The commit adding error_reporter.{cpp,h} neglected to add them to the
    BUILD.gn file.
    
    Change-Id: Ifd71505d486c3e7d798781baf393ba8a75e72500
    George Kulakowski committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    693c780 View commit details
    Browse the repository at this point in the history
  30. [ddk][phys-iter] Fix an edge case where phys_iter_next() can return t…

    …oo large a result
    
    ZX- 1540 #done
    
    Change-Id: I6fcb49d78fdc0251416fd56a9b5bcefcf40d5bf1
    Mike Voydanoff authored and CQ bot account: [email protected] committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    e6533db View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2018

  1. [dev][ethernet] Bit-twiddling for promiscuous mode

    Add bit-twiddling to turn promiscuous on and off for AX88179, AX887722b,
    Realtek 8111, and intel-ethernet drivers.
    
    Test: builds; ethernet still works.
    
    NET-9
    
    Change-Id: I3683685c8e2969096621599f92e6d01f68fed404
    cphoenix-google committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    acac33d View commit details
    Browse the repository at this point in the history
  2. [uapp][threads] Fix use-after-free bug

    zx-1553 #done
    
    Change-Id: Ief36d7195a347cbdaa1995273dbaa941438438e0
    xdje42 authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    5ff21e1 View commit details
    Browse the repository at this point in the history
  3. [netsvc] Add intermediate buffer to paver

    When paving, store incoming tftp data to a buffer so that the ethernet
    receive buffers don't fill up. This introduces an additional thread of
    execution - one to receive the eth data and one to write it out to the
    paver process.
    
    ZX-1521
    
    Change-Id: Ic2a05c195a872deed8975727ee85526072d932f9
    josh-conner authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    ebccb98 View commit details
    Browse the repository at this point in the history
  4. [arm64][hypervisor] Save/restore FPU state

    Save and restore FPU state if the guest attempted to use the FPU.
    Additionally save PAR_EL1 when doing a world-switch.
    
    Change-Id: I162dbab429a669008a43a6a7ac687615fb7d918f
    abdulla authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    ad5d5c1 View commit details
    Browse the repository at this point in the history
  5. [arm64][hypervisor] Remove superfluous ISB

    We don't need the ISB before altering FPU state.
    
    Change-Id: I678845953b470fc1b4c66cad850e4f3a12e00e88
    abdulla committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    8fae398 View commit details
    Browse the repository at this point in the history
  6. [ddk] Fix typo in comment.

    Change-Id: I4f8eb7d7d9ae0f205d1cb623856d11b8a8810b61
    qwandor committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    7036421 View commit details
    Browse the repository at this point in the history
  7. [hikey][dsi] Intial commit of DSI support for Hikey960 board

    Change-Id: Ib4fa78a634971cf49f33938153780fa01d159a03
    mpayam authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    54df7f4 View commit details
    Browse the repository at this point in the history
  8. [zircon][kernel] add exception counters

    This removes the percpu.stats related to exceptions
    and adds fine granded kernel counters accessible via
    "k counters".
    
    The arm counters are a subset of the x64 counters.
    
    Change-Id: I7d87f9309d43ea58da3cc60fd3a5da8a987672b1
    cpu-chromium authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    bf0fcb1 View commit details
    Browse the repository at this point in the history
  9. [syscalls][ddk] Interrupt syscall improvements:

    It is now possible to wait for multiple interrupts on a single interrupt handle.
    The zx_interrupt_bind() syscall is used to bind an interrupt vector to
    an interrupt handle, allowing up to 62 interrupt vectors per handle.
    
    The zx_interrupt_get_timestamp() syscall can now be used to retrieve a
    timestamp for an interrupt.
    
    Virtual interrupts are now supported. zx_interrupt_bind() can be used to
    designate an interrupt slot as a virtual interrupt, and the virtual interrupt
    can be signaled using the zx_interrupt_signal() syscall.
    
    The zx_interrupt_complete() syscall has been removed.
    Instead, zx_interrupt_wait() now handles unmasking the interrupt
    at the right time depending on whether the interrupt is edge or level triggered.
    
    Slot ZX_INTERRUPT_SLOT_USER is reserved as a virtual interrupt, and is typically
    used with zx_interrupt_signal() to unblock interrupt threads so they can exit
    at driver shutdown or to perform periodic work.
    
    Currently PCI interrupt handles can only be bound to a single interrupt vector,
    but it is possible to bind virtual interrupts to PCI interrupt handles.
    
    ZX-1469 #done
    ZX-1471 #done
    
    Change-Id: I48c14183c1b9ecd437c8b1ce0d25326b7532e973
    Mike Voydanoff authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    038c9dc View commit details
    Browse the repository at this point in the history
  10. [devmgr][blockwatcher] remove some chatty debug prints

    Especially during tests we add/remove a lot of block devices.
    Let's be less verbose about that.
    
    Change-Id: I3a0f8f77afad6896b9d45db7c1df5f42d00595d3
    swetland authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    a7b2938 View commit details
    Browse the repository at this point in the history
  11. [netsvc] detect paver thread exits and abort tftp

    Change-Id: If009e45c7f3b90fca19f0bb2186cf13c39296a9c
    James Tucker authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    2c7112f View commit details
    Browse the repository at this point in the history
  12. [dev][usb-video] Parse payload header timestamp fields.

    ZX-1129 #comment
    
    Change-Id: I57c6a7cd26e30b7e0252a15b3684ab9d03b9b083
    jocelyndang authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    4c29fd6 View commit details
    Browse the repository at this point in the history
  13. [docs][fidl] Create FIDL markdown documents.

    These were converted from google docs automatically, then fixed up
    manually.
    
    Note these may not be up to date. kulakowski@ will work on updating them
    when he gets back from vacation.
    
    TO-321
    
    Change-Id: If974bcb00a46bfe605a1005287b7b31df717f427
    Gary Miguel authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    7f946a0 View commit details
    Browse the repository at this point in the history
  14. [dev][ethernet] Track/refcount promisc requests

    There's only one chipset, which needs to be in promisc mode if
    anyone wants it. Track who's asked for it so we know when to
    turn it on and off.
    
    Test: builds; ethernet still works; netdump -p receives more on Ax88179
    
    NET-9
    
    Change-Id: Idba2ae3d7a49768d3f664528dbd51de1c1f42117
    cphoenix-google authored and CQ bot account: [email protected] committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    9c2fcd8 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2018

  1. [netsvc] Address some paving-related bugs

    Use a refcount for freeing paver buffer so that if the paver copy
    thread ends before transmission is complete netsvc does not write
    to free'd memory.
    
    Restructure file_close/end_connection calls so that files are not
    doubly-closed.
    
    Don't mexec when the paver is still operating.
    
    ZX-1521
    
    Change-Id: I2f32a5d18cb904aadfe5bb63646b0a935ff1d54e
    josh-conner authored and CQ bot account: [email protected] committed Jan 13, 2018
    Configuration menu
    Copy the full SHA
    306e0e1 View commit details
    Browse the repository at this point in the history
  2. [fidl] Add fidl::String

    This patch starts to introduce the C++ FIDL types. These types are views
    into the underlying C types that are used by the encode and decode
    functions. For decoding, these views are ultimately on the underlying
    message buffer, similar to the C types. For encoding, the underlying C
    types are stored in a builder and manipulated through the C++ views.
    
    Change-Id: I21b8e2be687c2cfed57d395898e31e3d16bc9961
    Adam Barth authored and CQ bot account: [email protected] committed Jan 13, 2018
    Configuration menu
    Copy the full SHA
    d363cfd View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2018

  1. [block] support new block protocol (and revise it)

    If the block core device we bind to supports the new protocol:
    - support it ourselves and pass query() and queue() ops through 1:1
    - our iotxn_queue() will convert to block_queue() for read/write support
    - BlockServer::Queue() will use block_queue()
    
    Due to concerns about the 0-based length field and its possibly
    constrained sized, upgrade length to 1-based, uint32 block count.
    
    Make use of an anonymous union to make command-specific argument
    access a bit less clunky.
    
    Reject block-core devices with block sizes of <512 or non-power-of-two
    
    Fix zxcrypt test to stop trying to create impossible (block size 3)
    ramdisks, which now upset the block middle layer.
    
    Update ramdisk test to reflect stricter block alignment requirements.
    
    Change-Id: Iec0c95341d5935494253facd5074ce4227c9b83c
    swetland committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    fa2a7fb View commit details
    Browse the repository at this point in the history
  2. [nvme][block] migrate to new block protocol

    Change-Id: I30a9ec7c43a53ba4ea3b28026e1654231efde823
    swetland committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    ad47508 View commit details
    Browse the repository at this point in the history
  3. [gpt][block] support new block protocol

    If we bind to a device using the new protocol:
    - support the new protocol ourselves
    - pass block_queue() through to parent after validating
      parameters and adjusting starting block
    
    Change-Id: I7befd5c5c65f3580d15611932dc3d9f2dd463adc
    swetland committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    dc796b7 View commit details
    Browse the repository at this point in the history
  4. [mbr][block] support new block protocol

    If we bind to a device using the new protocol:
    - support the new protocol ourselves
    - pass block_queue() through to parent after validating
      parameters and adjusting starting block
    
    Change-Id: Ie2565fb3030e789ac5637b3897bceb9bc868ff9d
    swetland committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    fcec3f8 View commit details
    Browse the repository at this point in the history
  5. [block][ramdisk] convert to new block protocol

    Change-Id: I3e53dcd4449f83790675262c1249702f24ca70f4
    swetland committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    28de967 View commit details
    Browse the repository at this point in the history
  6. [fs] Allow filtering fs tests by individual filesystems

    Change-Id: I537be0e908d81a2dd621770eb0c39988667b7317
    Sean Klein authored and CQ bot account: [email protected] committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    f230ab9 View commit details
    Browse the repository at this point in the history
  7. [arm64][hypervisor] Minor cleanup of el2.S

    Change a few things to make it slightly clearer:
    * Rename el2_mexec to el2_hvc_mexec
    * Move the test for an FPU trap into el2_guest_exit (reducing
      instructions in the vector table)
    * Reorder the test for FPU state restore to be easier to read
    
    Change-Id: Id9d1861356f545a30e869ca1e4c67e0e80b5a179
    abdulla committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    d95e17b View commit details
    Browse the repository at this point in the history
  8. [arm64][hypervisor] Don't inject timer for WFI

    When we exit for a WFI, we should wait until the timer expires and the
    re-enter on the next instruction. But we should not inject a timer
    interrupt.
    
    This fixes issues with Linux guests on arm64 once they enter
    arch_cpu_idle.
    
    Change-Id: I67db6ce7fcc03800f55100f209a8b0ae85e4777a
    abdulla committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    42ec3b0 View commit details
    Browse the repository at this point in the history
  9. [dev][virtio] Move interrupt syscalls into backend

    This will make it much easier to test virtio drivers by implementing a
    testing backend that overrides these functions to avoid syscalls.
    
    Change-Id: I926fbd4434b50021d10d35d0bb831d2833efabaf
    Alex Legg authored and CQ bot account: [email protected] committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    fcd524b View commit details
    Browse the repository at this point in the history
  10. [hypervisor] Remove apic_vmo from vcpu_create_args

    Change-Id: I38c86d78a46b91e0156ee7a3a7c09253f09eb501
    NB: This will break Garnet, fix and manual roll forward to follow.
    Alex Legg committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    1882348 View commit details
    Browse the repository at this point in the history
  11. [arm64][hypervisor] Reset virtual timer on exit

    We should reset the virtual timer when we exit the guest, otherwise it
    will fire when we are in the host.
    
    Change-Id: Ia00d66f318b67d1c079b90d765a7bb7c0ac6495f
    abdulla authored and CQ bot account: [email protected] committed Jan 14, 2018
    Configuration menu
    Copy the full SHA
    6f89405 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2018

  1. [kernel][hypervisor] Handle KVM features CPUID leaf

    Zircon hypervisor disguises itself as KVM, which makes Linux kernel
    believe that kvmclock is available and try to use it (see
    kvmclock_init function in /arch/x86/kernel/kvmclock.c in the Linux
    kernel code).
    
    This CL changes CPUID handling so that it reports all KVM features
    as unsupported, at least for now.
    
    Change-Id: I081a82df9242e47d63ebd11bbb400f17c588a7e4
    Mike Krinkin committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    1396b6b View commit details
    Browse the repository at this point in the history
  2. [devmgr][fshost] cmdline option zircon.system.disable-automount

    This option prevents the fshost from mounting any filesystems
    (same as its existing behaviour when netsvc.netboot=true), which
    can be useful for running filesystem tests that create filesystems
    which the fshost might attempt to "steal."
    
    Change-Id: I5fe6582fa97186780bdd1d08b5b116eb1fab7c4f
    swetland authored and CQ bot account: [email protected] committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    dfdab65 View commit details
    Browse the repository at this point in the history
  3. [hypervisor][x86] Add VCPU packet type

    Capture START_UP IPIs and forward the instruction pointer and APIC ID to
    userland so it can bring up another VCPU.
    
    ZX-1246 #comment
    
    Change-Id: I624d87eb6031492dc7125750e28de7c4a1c1662c
    Alex Legg authored and CQ bot account: [email protected] committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    0cefa2d View commit details
    Browse the repository at this point in the history
  4. [devhost] Get topo paths for parent of instances

    An instance cannot be reopened, so prefix the path with '@' to make it
    clear that opening the returned path will not give the same instance.
    
    ZX-1019 #done
    
    Change-Id: Icc6b3cb414feb5192a3878b9d6c25a2df35f32c8
    tkilbourn authored and CQ bot account: [email protected] committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    7a7dfd6 View commit details
    Browse the repository at this point in the history
  5. [vim2] Use PERIPH_VIRT and PERIPH_PHYS constants

    Change-Id: I51bb70dccb5eb812c6151883597a0c720946fb51
    abdulla authored and CQ bot account: [email protected] committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    7d84833 View commit details
    Browse the repository at this point in the history
  6. [ulib][hypervisor] Fix arm64 Garnet build breakage

    Clang is unhappy with handle_vcpu being unused when we build Garnet.
    It's safe to not hide its use behind an #ifdef, as arm64 will not
    currently send down the relevant packet.
    
    Change-Id: I936fa150799f4962a41a4c197d16d8031ffad535
    abdulla committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    ffae629 View commit details
    Browse the repository at this point in the history
  7. [arm64] Allow virt and phys timer to be specified

    Allow both the virtual and the physical timer to be specified, with the
    physical timer only being preferred if we booted at EL2 or above.
    
    Change-Id: I32f867eb56cdc4556d3dddd69a0fef7d4302a2b6
    abdulla authored and CQ bot account: [email protected] committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    b07fbd4 View commit details
    Browse the repository at this point in the history
  8. [scripts] Add ramdisk flag to fastboot-flash

    This is so we can specify the ramdisk to use when we're building more
    than just Zircon.
    
    Change-Id: I1bec3be35378eaedca0664d1d7c4204e470cef48
    abdulla committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    8204a7e View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2018

  1. [ddk] Inline a few more functions.

    Change-Id: I5163b9a40f13d3d61cccfe9423aa3f76176b164a
    pylaligand authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    a5024c2 View commit details
    Browse the repository at this point in the history
  2. [unittest] Add ASSERT_NO_DEATH

    Add the ability to run a function and assert that it did crash in
    addition to the ability to assert that it did.  This lets me write
    tests where I have an operation which might crash (because the
    code-under-test is broken), but should not, and still terminate the
    test cleanly with a clean ASSERT log message after catching the
    exception.  Afterwards, other tests in the test case can continue to
    run even if this specific test failed.
    
    Change-Id: I7778c07cba16233252d20de1dd9c9bca9fa960a0
    johngro authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    bb60b67 View commit details
    Browse the repository at this point in the history
  3. [dev][usb-xhci] Differentiate between empty and full trb transfer rings.

    When ring->current == ring->dequeue_ptr, we would always return 255
    (empty ring), but if we enqueue really large requests, ring->current
    may loop back around and we should return 0.
    
    Change-Id: Ifeb903f032569f296cdff98881800c8e05598a28
    jocelyndang authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    c4ebc01 View commit details
    Browse the repository at this point in the history
  4. [runtests] Add commas to JSON for results between directories.

    This change fixes the emitted JSON to include commas between tests
    from different directories, which was previosuly not handled.
    
    Change-Id: I78ea84db61de98ea85dcafa3bb8d9ac4cb62de4a
    mknyszek authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    95b7b7b View commit details
    Browse the repository at this point in the history
  5. [dev][usb-video] Rest of camera interface.

    Each video frame will be stored in the data ring buffer shared
    with the client.
    
    There will also be a metadata ring buffer, which will have an
    entry for each frame.
    
    Clients will be notified when n frames are available. They can
    then lock those frames and copy the metadata / data from
    the ring buffers.
    
    ZX-1129 #comment
    
    Change-Id: I3fd3de1cee021e188c993a1d7be4accf0d14037c
    jocelyndang authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    7a2ea6c View commit details
    Browse the repository at this point in the history
  6. [kernel][dpc] Misc DPC fixes:

    - do the "in list" check inside the spinlock
    - switch back to using a single spinlock so "in list" check is actually safe
    - allow to reuse the dpc_t* object in a non-racy way
    - return ZX_ERR_ALREADY_EXISTS from dpc_queue if the dpc is already queued.
      this is necessary for using dpc with reference counting.
    
    Change-Id: I2942836d90e462bd78861eb47fe6690a967e08f8
    cpu-chromium authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    5dba1cf View commit details
    Browse the repository at this point in the history
  7. [ddk][wlan] Add ConfigureBss method 1/5

    Change-Id: I811979edd080e500c499c6d25657b6d15e2d1712
    hahnr authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    a9b91e0 View commit details
    Browse the repository at this point in the history
  8. [ulib][bitmap] Adds bitmap BUILD file

    We want to use bitmap in Garnet and need a target.
    
    Change-Id: I66844f8b2468a8ef58dcf9b7829a3a1ce255bd89
    hahnr authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    7a74e8f View commit details
    Browse the repository at this point in the history
  9. [zircon] add prefix match to kcounters

    Now it only prints the right conters in
    the prefix match or none. In the case of an
    exact match just that counter is printed
    
    Also the output formating is more consistent.
    
    Change-Id: If29a5fe60b763c057ac62056e08de2dd512acb2a
    cpu-chromium authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    323bafc View commit details
    Browse the repository at this point in the history
  10. [kernel] Remove an unneeded #include that creates an #include cycle

    dev/power.h #includes itself, which is unnecessary.
    
    I found this when looking for #include cycles.
    
    Change-Id: Ic38499cfd7fbb18776173cd5ea476fc4641d39e4
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    c4ed6b6 View commit details
    Browse the repository at this point in the history
  11. [hikey] Update UEFI build URL.

    The older link no longer resolves.
    
    Change-Id: Ida9cc1eacf3b44a81aea7edffde59ea76eb79e00
    tjdetwiler authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    2e57c54 View commit details
    Browse the repository at this point in the history
  12. Do not queue more transfers when endpoint is in paused state. We are …

    …in the midst of cancelling all the transfers. The comment in xhci_cancel_transfers talks about the same.
    
    Change-Id: I6c0bed66c33c65fb2f73d0116b0ea2e3c8c14c63
    Ruchira Ravoori authored and CQ bot account: [email protected] committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    39975c5 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2018

  1. [zircon][scripts] Make run-zircon -b work even if CWD is not //zircon/.

    Change-Id: Ib0f2d408676787299a744d68133a010270df500a
    Gary Miguel authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    f87614a View commit details
    Browse the repository at this point in the history
  2. [ddk][wlan] Implements ConfigureBss method 2/5

    Change-Id: I5efaa8f628ea28526df0ee5f29589db83d3e57d3
    hahnr committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    08cc983 View commit details
    Browse the repository at this point in the history
  3. [fidl] Add a dummy C generation ability

    This is to allow build system work to proceed in parallel with source
    generation. It will be unwound when the real thing lands.
    
    Change-Id: Ia2591c87f89101ea6a3d162fb9240b9f7e76f85d
    George Kulakowski authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    77d7338 View commit details
    Browse the repository at this point in the history
  4. [ulib][hypervisor] Make PhysMem members protected

    This is so we can modify them in PhysMemFake for testing.
    
    Change-Id: I610a3154209a2de6459c2a48d99b4b49bca899af
    abdulla authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    684818a View commit details
    Browse the repository at this point in the history
  5. [dev][ethernet] Test promisc logic

    Test: /system/test/sys/ethernet-test passes
    
    NET-9 #done
    
    Change-Id: I008c40cf457ef817b071e5c2dff72a9d9f817d57
    cphoenix-google authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    db62b73 View commit details
    Browse the repository at this point in the history
  6. [wlan][ddk] Enables ConfigureBss by default 4/5

    Change-Id: I76b00f2de3aa0c3422e56fcfc03a6964ac58e7ab
    hahnr authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    cbe0d2a View commit details
    Browse the repository at this point in the history
  7. [intel-ethernet] Fix Tx capability on i217

    All transmissions are suspended unless reserved bit 28 of TCTL
    is set. For minimum disruption, leave all TCTL reserved bits
    unchanged when writing to them.
    
    ZX-1516
    
    Change-Id: I6c43b78ec5f276822d1223cd2122ed40785636d3
    josh-conner authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    4ea4536 View commit details
    Browse the repository at this point in the history
  8. [fidl] Add BUILD.gn for fidl library

    We need to be able to build this library from Garnet to write the C++
    bindings.
    
    Change-Id: I24359f9a3f2727e15923c0303bea7bc6ded5a596
    Adam Barth authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    69564e2 View commit details
    Browse the repository at this point in the history
  9. [runtests] Clean up run_tests function.

    This change restructures runtests' code to break up the functionality of
    the run_tests function which previously did 4 different things. Now,
    the scope of run_tests is much more limited, and parts of its
    functionality is now redistributed into smaller functions and the main()
    function. This change also tries to use fewer global variables,
    repurposes the failures_t type as a more general test_t type, and adds
    more comments on new and existing functions describing their behavior
    and preconditions.
    
    IN-223 #comment
    
    Change-Id: Ia00e97dc5e98a50aeff01ff5b0ae5c2710c3ba6f
    mknyszek committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    3c4fc82 View commit details
    Browse the repository at this point in the history
  10. [hypervisor] Add additional logging for unmapped IO.

    Change-Id: Idc1b9c3ee3f18890ef9a030b5bb2d1d819267d4c
    tjdetwiler authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    e992893 View commit details
    Browse the repository at this point in the history
  11. [ulib][test-utils] Handle timeout overflow in tu_wait

    Change-Id: I4ee14ca9ff72163138a1952489fe8bbf49b8055f
    xdje42 authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    244e16f View commit details
    Browse the repository at this point in the history
  12. [runtests] Tee output of test binaries.

    This change tees the output of test binaries so that test results
    are actually printed, fixing issues with io_timeout on bots.
    
    This change also makes a few changes to use more file streams as
    opposed to file descriptors.
    
    IN-224 #done
    
    Change-Id: I03d298aa7f50352928f2c48a8dd590def344d3e6
    mknyszek authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    14cb8f5 View commit details
    Browse the repository at this point in the history
  13. [XHCI] Resolve potential deadlock when resetting an endpoint ZX-1560 …

    …#done
    
    Change-Id: I4c44b9082c2a3949ac040cc270da278b79cf8b47
    Ruchira Ravoori authored and swathi540 committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    df9b0a8 View commit details
    Browse the repository at this point in the history
  14. [x86][page_tables] Change handling of non-terminal invalidations

    This lets deriving classes choose how to handle non-terminal invalidations.
    
    Change-Id: I1d250b8d8716948c5dd25fcb4bacd8519fad8a6f
    Todd Eisenberger authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    405ff21 View commit details
    Browse the repository at this point in the history
  15. [musl]: delete syscall() function prototype

    As pointed out by jeffbrown, having a syscall() libc call in fuchsia
    makes no sense. Delete the prototype so it's a compile error if someone
    tries using it.
    
    Change-Id: Id511457e4a5f97b77488f3fb55c415ed423f3bc4
    nickkral authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    e7da706 View commit details
    Browse the repository at this point in the history
  16. [soc][aml-a113][i2c] I2C refactoring

    Refactor aml-a113 driver so we can use it for other Amlogic platform
    
    Step 1 of general Amlogic SOC refactoring
    
    Change-Id: If9a02b934db72430498e7fc12246931360482225
    Mike Voydanoff authored and CQ bot account: [email protected] committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    6e76dab View commit details
    Browse the repository at this point in the history
  17. [x86][page_tables] Move utility classes under X86PageTableBase

    Change-Id: Ic07373078cff928b05d72f42a6b522ab6f08448c
    Todd Eisenberger committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    4bbf03a View commit details
    Browse the repository at this point in the history
  18. [x86][page_tables] Make cache invalidation less error-prone

    This moves the invalidation to the point of modification
    
    Change-Id: I1ae274e7cb96c4b5a423a00870c87339c55d9a5d
    Todd Eisenberger committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    fac31f0 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2018

  1. [qemu][arm] default to 4 expected cpus on qemu-arm64

    QEMU's default number of cpus seems to be 4, but we attempt
    to initialize 8 due to the mdi configuration.
    Change-Id: I234aefc977ea30f3867690ba4f48180a17fe383d
    nvll authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    1e012ed View commit details
    Browse the repository at this point in the history
  2. [x86][page_tables] Flush caches before doing TLB invalidations

    This will avoid a race when the translation hardware does not
    participate in the cache protocol (e.g. some VT-d implementations).
    
    Change-Id: If4a6c89418db5d590b307577a0e44d16cbb912bf
    Todd Eisenberger authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    7c8abb8 View commit details
    Browse the repository at this point in the history
  3. [kernel] Fix #include cycle between arch/ops.h and arch/$ARCH/mp.h

    There was an #include loop involving these headers:
      kernel/include/arch/ops.h
      kernel/arch/x86/include/arch/arch_ops.h (or arm64 version)
      kernel/arch/x86/include/arch/x86/mp.h (or arm64 version)
    
    The cycle makes it difficult to change these headers without something
    going wrong.
    
    We can break the cycle by removing mp.h's #include of arch/ops.h:
     * Do #include <kernel/cpu.h> to get cpu_num_t.
     * Move __CPU_ALIGN out of arch/ops.h to a separate header.
    
    ZX-1490
    
    Change-Id: I7971a2e0bfa957d292e5a3bb2c6df903f5ffd14c
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    a17f89f View commit details
    Browse the repository at this point in the history
  4. [kernel][libc] Select x86 memcpy/memset implementation at boot

    This allows us to make use of ERMS on devices that support it, and
    fallback to something more performant otherwise.
    
    ZX-1395 #comment Done for kernel-mode
    ZX-1346 #comment This provides runtime selection for memcpy/memset
    
    Change-Id: I96e8ca96e17a677ffa95c59cd36682cb16f2904b
    Todd Eisenberger authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    412e446 View commit details
    Browse the repository at this point in the history
  5. [wlan][ddk] Removes ConfigureBss template 6/6

    Change-Id: If7e0fe7d80f3ced96bdd3d1d5287bd3f8dcb0e96
    hahnr committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    1226495 View commit details
    Browse the repository at this point in the history
  6. [fbl] Add a "VmoMapper" utility class.

    Add a small class which handles the process of creating a VMO of a
    given size and mapping it into the local address space, as well as
    automatically unmapping at end-of-life.
    
    Change-Id: I10fba0ae90201a414a0a49eab4c77150081bec2c
    johngro authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    98b8689 View commit details
    Browse the repository at this point in the history
  7. [kernel][exceptions] Fix panic from process freeing own eport

    The failing sequence is:
    - process holds last handle of exception port and port is bound to it
    - process exits
    - transition to DEAD state grabs state_lock_
    - closing of handles calls ExceptionPort::OnPortZeroHandles
    - ExceptionPort::OnPortZeroHandles calls
      ProcessDispatcher::ResetExceptionPort
    - ProcessDispatcher::ResetExceptionPort tries to regrab state_lock_
    
    Fix by moving the code to handle the transition to State::DEAD into
    one method (there was already some code outside of SetStateLocked
    to do stuff outside of state_lock_, namely call job_->RemoveChildProcess).
    This allows on_zero_handles to be processed outside of state_lock_.
    
    zx-1544 #done
    
    Change-Id: I985095c2896645de072e24e0e3aacbd1e3332d21
    xdje42 authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    08b0ec8 View commit details
    Browse the repository at this point in the history
  8. [dev][acpi] Do basic GPE initialization

    Enable GPEs during ACPI initialization with AcpiUpdateAllGpes. This
    does not enable GPE processing for GPEs without an associated _Lxx/_Exx
    method, and it does not handle handlers becoming available after boot.
    As part of initialization, execute all _PRW methods.
    
    Change-Id: Iaa0a7f2ecda2e5622714c8416203c33afe7a35e3
    dgstevens committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    d5fd2f3 View commit details
    Browse the repository at this point in the history
  9. [kernel][thread] Add preempt_disable state for use in interrupt handlers

    Before this change, many interrupt handlers must be careful not to
    call sched_reschedule() (which can context-switch to another thread),
    because the interrupt should be fully handled before we context
    switch.
    
    For example, timer_tick() should process all expired timers before we
    context-switch, and we want to tell the hardware that an interrupt has
    been handled (e.g. via apic_issue_eoi()) before we context-switch.
    
    There are two mechanisms for doing that:
    
     * Passing a reschedule=false argument to various functions, such as
       event_signal().
     * Returning whether a reschedule (a context-switch) is pending,
       sometimes via a bool result and sometimes via "enum handler_return"
       (INT_RESCHEDULE vs. INT_NO_RESCHEDULE).
    
    Instead of passing those values around as arguments/results, we can
    track this as per-thread state (or per-CPU state).  We do this by
    introducing thread_preempt_disable().
    
    Convert one case, thread_sleep_handler(), to use the new mechanism.
    It can now call sched_reschedule() (which would have triggered an
    assertion failure before) instead of returning INT_RESCHEDULE.
    
    Later CLs will simplify the code by converting more cases, converting
    "enum handler_return" returns to "void", removing "bool reschedule"
    arguments, etc.
    
    ZX-1490
    
    Change-Id: Ice1712f00c87f30b50717b67af4816afa4f0737c
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    c3394cd View commit details
    Browse the repository at this point in the history
  10. [kernel] Rename "canreschedule" -> "reschedule" arguments for consist…

    …ency
    
    Similarly rename "resched" -> "reschedule".
    
    This is for consistency with all of the other "bool reschedule"
    arguments.  This will make it easier to find and remove these
    arguments in later refactoring.
    
    ZX-1490
    
    Change-Id: Ia7cea768cc09a354f6d2156f02ce77b4bb1f22a3
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    5e6a147 View commit details
    Browse the repository at this point in the history
  11. [kernel][thread] Convert wait_queue_timeout_handler() to use preempt_…

    …disable
    
    Calling sched_reschedule() when arch_in_int_handler() is true is now
    allowed (see preempt_disable).  This means we can remove uses of the
    INT_RESCHEDULE return value.  We can instead call sched_reschedule()
    or pass reschedule=true to functions that take a "reschedule"
    argument.
    
    ZX-1490
    
    Change-Id: I30b4ef9a75d325f85fd984a302ff6b8751957ae1
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    1d31f9a View commit details
    Browse the repository at this point in the history
  12. [test][ethernet] Add BEGIN_TEST/END_TEST

    Test: /system/test/sys/ethernet-test passes
    
    NET-385
    
    Change-Id: I3664cac78f4996ae572c8715e17b55a61b54e71f
    cphoenix-google authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    77c2cef View commit details
    Browse the repository at this point in the history
  13. [kernel][thread] Reorder operations in thread_suspend()

    Set the signal in t->signals before we unblock the thread.
    
    This is in preparation for moving the sched_reschedule() call into
    wait_queue_unblock_thread() and/or sched_unblock().  We want to modify
    t->signals before the target thread gets to run, otherwise the thread
    suspension might fail to take effect.
    
    ZX-1490
    
    Change-Id: If14d2b791cf1d891f151acf06767b0e0db95a7df
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    7b80efb View commit details
    Browse the repository at this point in the history
  14. [x86][hypervisor] Add additional vmexit logging.

    Change-Id: I0fbc3a579fd9610521aeaa180be09f4b45492c6a
    tjdetwiler authored and CQ bot account: [email protected] committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    bba4e0d View commit details
    Browse the repository at this point in the history
  15. [docs] Document the new Zircon submit rule

    relevant: https://fuchsia-review.googlesource.com/c/zircon/+/112235
    
    INTK-104
    
    Change-Id: I82ab99df0d6cb54a90f6c03acf3b9504d45c7e99
    kendalharland committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    7ac3863 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2018

  1. [fidl] Add fidl::Message data structure

    The fidl::Message data structure holds both the byte and the handle part
    of a FIDL message and knows how to encode and decode messages in place.
    The fidl::Message also knows about the message header and its various
    fields.
    
    This CL also moves the C++-related headers into a cpp directory to make
    it easier to see which parts of the library are related to the C++
    bindings and which are useful from C.
    
    Change-Id: I7031d1b3d9a76b911f7e9de9c3f5aa33a0f700f8
    abarth authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    54d819b View commit details
    Browse the repository at this point in the history
  2. [fidl] Add MessageBuilder, which owns the message memory

    MessageBuilder is a utility class that makes it easy to build up
    messages. Clients that wish to manage memory more precisely should use
    Builder and Message separately.
    
    Change-Id: Ia2f664a5d3404bcb224bf58d473dc2edbfef2edb
    abarth authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    27f70ff View commit details
    Browse the repository at this point in the history
  3. [fdio] Refactor zxrio_handler semantics, more flexible async writeback

    Change-Id: I23379b2001dbff42fe5a338bab73afecac3d01c1
    Sean Klein authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    52dbdef View commit details
    Browse the repository at this point in the history
  4. [system][hid] model generation

    Now the hid parser finally generates the output
    model and with that a lot of detailed testing
    is done.
    
    The testing is a "bit" tedious but bit level
    testing is done for:
    - boot mouse
    - adafruit composite device (4 in 1)
    - ps3 joystick
    
    Also a usage header is introduced with hundred
    of usages, with keyboard missing because there
    is already one for that purpose that needs
    fixing.
    
    Change-Id: I7f8cadb3d36f61eb62827e6bd3de8fb8df1e7b28
    cpu-chromium authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    d488040 View commit details
    Browse the repository at this point in the history
  5. [intel-i915] Read VBT to check for ddi type

    Change-Id: Ia6daa1c0db445a719b57560793ffc690f1815bef
    dgstevens committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    38f284a View commit details
    Browse the repository at this point in the history
  6. [test][ethernet] Use header for SetParam reporting

    Test: /system/test/sys/ethernet-test passes.
    
    NET-386 #done
    
    Change-Id: Ib5e420593113d945c76b9c5001f34a0689168e0a
    cphoenix-google committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    11b9e07 View commit details
    Browse the repository at this point in the history
  7. [fvm] Fix erroneous VMO cloning offset during non-contiguous slice ac…

    …cess
    
    Additionally, regression test added to catch: sending an iotxn to a
    group of non-contiguous physically allocated slices, in the particular
    case where the iotxn is using a VMO, but not reading to the start of it.
    
    LE-388 #comment In progress
    
    Change-Id: Ia050c7d4fd8d21bce2fc789fef616b73f704a4d6
    Sean Klein authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    5aa7497 View commit details
    Browse the repository at this point in the history
  8. [utest][exceptions] Test a corner case of zx_thread_{read,write}_state()

    Add a test to check the behaviour of zx_thread_read_state() and
    zx_thread_write_state() when the target thread is paused in the
    ZX_EXCP_THREAD_STARTING state.  This case was not covered by tests
    before.
    
    Change-Id: I46adceefc2f6fa7f490bd994e03b524e26a29b15
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    2ae4a20 View commit details
    Browse the repository at this point in the history
  9. [utest][debugger-test] Fix comment to refer to correct ZX_EXCP #defin…

    …e name
    
    Change-Id: I08d5bf65333a5bacbf3855ddebf0eef89b23e267
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    b83522f View commit details
    Browse the repository at this point in the history
  10. [kernel][x86] Remove unused #define, DEFAULT_TSS

    Change-Id: I7389b01205758224c837076f4be1295637b736f2
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    d315d56 View commit details
    Browse the repository at this point in the history
  11. [kernel][thread] Add missing "inline" to thread_preempt_*() functions

    I didn't notice that I'd forgotten to add "inline" because we compile
    with -Wno-unused-function.
    
    ZX-1490
    
    Change-Id: If71d974f4442e682a242feea2a02830df54ab2a2
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    5f065da View commit details
    Browse the repository at this point in the history
  12. [kernel][x86] Factor out duplicated is_from_user() check

    This makes the code more self-documenting.
    
    Change-Id: I4efc9c4659a4fe4ccf7919ad61628b0a283e5df0
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    39ce1b0 View commit details
    Browse the repository at this point in the history
  13. [pci] Rebuild kpci to use rpc and a proxy devhost

    - pci_get_resource -> pci_get_bar
      This is used for bars now that everyone is expected to use
      pci_config_read for reading from their config.
    - Removed PCI_BAR_[0-5] constants. Now that the only valid members
      of the resource enum are bars it does not make sense to map
      PCI_BAR_X to Xu and so on. Callers to the protocol can pass the
      bar numbers directly now.
    - pci_map_resource has been renamed to pci_map_bar
    - zx_pci_get_config has been removed because it is obsolete
      now that mapping is just for bars.
    - zx_pci_get_bar has been refactored to manage the user handle
      more cleanly thanks to Roland's change.
    - Update some old code to call the pci_* protocol methods rather
      than the device ops directly.
    - Remove all privileged calls from the proxy devhost for pci
    - Remove (nearly) all uses of the root resource from the proxy devhost
    - Split kpci initialization into two disparate parts: the driver
      that binds to the root complexes and creates upper devhosts,
      and a proxy driver that creates lower/proxy devhosts for drivers
      to interact with.
    - Remove overlapping functionality in kpci and separate into two
      proper driver "files".
    - Ran clang-format on everything
    
    Change-Id: I46740e76855f5ec11b634635e88d62263bef6f9f
    nvll committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    e0aa6aa View commit details
    Browse the repository at this point in the history
  14. [ulib][test-utils] Remove TU_WAIT_TIMEOUT_SECONDS

    ... and just always wait "forever", relying on the watchdog timer
    to catch hung tests.
    
    Change-Id: I30997e2e7bd3de789c48fdc997b663e13bf0c7a8
    xdje42 authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    d356f3c View commit details
    Browse the repository at this point in the history
  15. [kernel][thread] Move sched_reschedule() calls into wait_queue_unbloc…

    …k_thread()
    
    All of the callers of wait_queue_unblock_thread() are now calling
    sched_reschedule() when the former sets local_resched.
    
    We can therefore factor out this duplication by moving the
    sched_reschedule() call into wait_queue_unblock_thread().
    
    ZX-1490
    
    Change-Id: Ia8e17d3dfd50ad12bb22b18f3cc6973bc8beefb9
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    a5c57b5 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2018

  1. [fidl] Factor MessageBuffer out of MessageBuilder

    Turns out the memory management of MessageBuffer is useful on the
    receiving side as well.
    
    Change-Id: I37d12c489c16f872e9e12afdd675043f1513aa63
    Adam Barth authored and CQ bot account: [email protected] committed Jan 20, 2018
    Configuration menu
    Copy the full SHA
    f4ca967 View commit details
    Browse the repository at this point in the history
  2. [dev][bluetooth] Introduce bt-host

    Introduced a DDK protodef and ioctl family for bt-host devices.
    
    NET-372 #done
    
    Change-Id: Icc6545b61ca5dbff7e013b5c7d3db141089260da
    armansito authored and CQ bot account: [email protected] committed Jan 20, 2018
    Configuration menu
    Copy the full SHA
    69b4f22 View commit details
    Browse the repository at this point in the history
  3. [zircon][system] update thread_start's entry

    -Update docs to better explain what are the expectations
     of the |entry| function of the syscall
    -Update C runtime to use the two args that the syscall
     now supports.
    
    Existing test suffice.
    
    Change-Id: I8d212ea2a3f9d036f8e1b30ddc91f6d2522fcdaa
    cpu-chromium authored and CQ bot account: [email protected] committed Jan 20, 2018
    Configuration menu
    Copy the full SHA
    d454a8d View commit details
    Browse the repository at this point in the history
  4. [kernel][thread] Convert IPI interrupt handler to use preempt_disable

    This removes another use of INT_RESCHEDULE.  We set preempt_disable
    instead of returning INT_RESCHEDULE.
    
    Testing: This is easily tested as long as you boot Zircon with >1 CPU.
    If this code path fails to set preempt_disable, the system will hang
    soon after boot.
    
    ZX-1490
    
    Change-Id: Iec12ebd079267ebba0bbdfd48ba0089b508a4b6d
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 20, 2018
    Configuration menu
    Copy the full SHA
    1a1bb85 View commit details
    Browse the repository at this point in the history
  5. [build] allow overriding of package sources and includes

    For most packages the default automated selection mechanism works,
    but MODULE_PACKAGE_SRCS and MODULE_PACKAGE_INCS now allows that to
    be overridden with explicit lists of sources and includes if needed.
    
    Updated async*.pkg to use this.
    
    Change-Id: I5569779b1f59710efd33015c3a54c575f089d820
    swetland authored and CQ bot account: [email protected] committed Jan 20, 2018
    Configuration menu
    Copy the full SHA
    938da16 View commit details
    Browse the repository at this point in the history
  6. [kernel][pci] Convert PciInterruptDispatcher to use preempt_disable

    Calling sched_reschedule() when arch_in_int_handler() is true is now
    allowed (see preempt_disable).  This means we can remove uses of the
    INT_RESCHEDULE return value.  We can instead call sched_reschedule()
    or pass reschedule=true to functions that take a "reschedule"
    argument.
    
    Change event_signal() to allow passing reschedule=true down to
    wait_queue_wake_one() or wait_queue_wake_all() when
    arch_in_int_handler() is true.
    
    Testing: This is easily tested because this code path gets exercised
    even under QEMU, which catches the need to remove the DEBUG_ASSERT()
    in event_signal_internal().
    
    ZX-1490
    
    Change-Id: I305196cf0266ee3e21fdb70db2d6382095bbdc8b
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 20, 2018
    Configuration menu
    Copy the full SHA
    ee36314 View commit details
    Browse the repository at this point in the history
  7. [sdmmc] Fix race condition in iotxn_queue that could result in blocke…

    …d worker
    
    Possible race condition
    
    Iotxn Thread  - Signals SDMMC_IOTXN_RECEIVED on worker_event
    Worker Thread - Wakes up, removes txn from txn_list
    Worker Thread - Does txn, loops (~line 345)
    Worker Thread - (LOCKED) Removes "NULL" from txn_list
    Worker Thread - (UNLOCKS)
    Iotxn Thread  - (LOCKED) Adds txn to txn_list
    Iotxn Thread  - (UNLOCKED) Signals SDMMC_IOTXN_RECEIVED
    Worker Thread - (UNLOCKED) Sees txn is null, clears SDMMC_IOTXN_RECEIVED
    Worker Thread - (UNLOCKED) Waits on worker_event for RECEIVED
    
    Under these conditions, an iotxn_queue can occur, but the sdmmc driver
    will not actually process it in the worker thread. Until another iotxn
    is queued, this causes the sdmmc driver to appear to hang indefinitely.
    
    ZX-1478 #done
    ZX-1572 #done
    LE-388 #done
    
    Change-Id: Ifa150853be86e8ee53fa4efca3049109e7c0dfa4
    Sean Klein authored and CQ bot account: [email protected] committed Jan 20, 2018
    Configuration menu
    Copy the full SHA
    305fb53 View commit details
    Browse the repository at this point in the history
  8. [kernel][mp] remove the missing IPI test

    Hadn't really discovered any sort of systemic problem, but was falsely triggering
    in various situations.
    
    ZX-1527 #done
    
    Change-Id: I260463e977ae8433a1eedb04544f4794261e5109
    travisg authored and CQ bot account: [email protected] committed Jan 20, 2018
    Configuration menu
    Copy the full SHA
    f4febba View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2018

  1. [kernel][psci] Support for customizing PSCI arguments for shutdown an…

    …d reset
    
    Change-Id: Ic3739a7d266cd811d3ef39927c8deac50ca19284
    Mike Voydanoff committed Jan 21, 2018
    Configuration menu
    Copy the full SHA
    777d4e6 View commit details
    Browse the repository at this point in the history
  2. [vim][vim2] Implement "dm reboot" and "dm reboot-bootloader"

    Change-Id: Ib2e61ced13c3f32ff03ce3a8d6b46afafb537042
    Mike Voydanoff committed Jan 21, 2018
    Configuration menu
    Copy the full SHA
    4cef102 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2018

  1. [ddk] Add wlanphy and wlanif protocols

    A wlanphy will represent a wlan peripheral, and a wlanif will represent
    a soft MAC interface that the generic wlan MLME driver will bind to.
    Only the phy will need ioctls.
    
    Change-Id: I9a571480143dc04564daab93774c877f17cca1d7
    tkilbourn committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    fbcb693 View commit details
    Browse the repository at this point in the history
  2. [soc][aml-a113] GPIO driver refactoring

    Refactor the aml-a113 driver so we can use it for other Amlogic platforms
    
    Change-Id: I25f7a703e7006200643ae917317df4014e255de1
    Mike Voydanoff authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    fc9d21d View commit details
    Browse the repository at this point in the history
  3. [ddk][gpio] Add gpio_set_alt_function() to the GPIO protocol

    Added plumbing to platform-bus for proxying this new call,
    but have not wired it up to any of the GPIO drivers yet.
    
    Change-Id: If512ae3bbd830e36f4c9a03de82d4c065c8527c3
    Mike Voydanoff authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    537615c View commit details
    Browse the repository at this point in the history
  4. [syslog] Initial implementation

    This implementation supports only supports writing to file descriptors
    and defaults to stdout.
    
    Change-Id: I2aaca1cb98e0f8951e1b791c40250dc503a93b3f
    ankurmittal authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    de7fbf4 View commit details
    Browse the repository at this point in the history
  5. [syscalls] Rename zx_time_get to zx_clock_get

    This change frees up the get() method in for a zx_time_t accessor in the
    zx::time class.
    
    Change-Id: Ia4cdc7e3e558df5ba0cfeedb27a442abf4d6f305
    Adam Barth authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    ec9928e View commit details
    Browse the repository at this point in the history
  6. [netstack] Support accept for new socket transport

    Change-Id: I6833f1c2927ea9eecac2194b154439bbaeb96bf2
    Matt Perry authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    aa6ca29 View commit details
    Browse the repository at this point in the history
  7. [dev][platform-bus] Replace pbus_set_interface with pbus_set_protocol

    The interface provided by the board driver to the platform bus
    only supports retrieving protocols from the board driver,
    so it is simpler to just have the board drivers set protocols
    on the platform bus driver instead.
    
    Change-Id: I2d0a04504102c4a49082b3d4eeba3cf4380dacab
    Mike Voydanoff committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    ecab9d8 View commit details
    Browse the repository at this point in the history
  8. [kernel][cbuf] Remove unused cbuf functions

    The following were unused:
    
    cbuf_read()
    cbuf_peek_etc()
    cbuf_peek_write()
    cbuf_write_etc()
    cbuf_write()
    cbuf_advance_write()
    cbuf_space_used()
    cbuf_size()
    cbuf_reset()
    
    Change-Id: If3a30177fc7af5d4a3f1b6790698b8936578a6d1
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    6666e6e View commit details
    Browse the repository at this point in the history
  9. [docs] Add syscall links to handles.md

    handles.md makes reference to many syscalls. Link to the syscall
    documentation so the reader can learn more.
    
    Change-Id: I8628659f68d0713fd2229e28dac5fc3f5043500e
    nickkral authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    100b3cc View commit details
    Browse the repository at this point in the history
  10. [blktest] Block txns must use VMO offsets which are multiples of the …

    …block size
    
    This patch will be obsolete when ZX-1541 is complete, but in the
    meantime, it prevents blktest from failing.
    
    ZX-1588 #done
    
    Change-Id: Ic9e23c6f6d6ccd66ac54720a7c53680dc5a19da2
    Sean Klein authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    e95da9e View commit details
    Browse the repository at this point in the history
  11. [musl] drop vfork

    Until there is a decision to officially support vfork, remove the
    function prototype and no-op implementation. This functionality isn't
    needed to compile fuchsia.
    
    Change-Id: I26f43ae3bdcde53ff5caabf159970042236a46d2
    nickkral authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    9ec9d3a View commit details
    Browse the repository at this point in the history
  12. [scripts] Print stacktrace at end-of-file

    This allows a user to hit ctrl-d and receive a stracktrace, without the
    need for an end marker.
    
    Change-Id: I715a506fce9876f56f5e8eb98b69e3ec52656002
    abdulla authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    6f38143 View commit details
    Browse the repository at this point in the history
  13. [dev][platform-bus] Add support for MMIO ranges that are not page ali…

    …gned
    
    Change-Id: I34f2f931c678bed146081e14e3cbfd4a043f6661
    Mike Voydanoff authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    dd4006e View commit details
    Browse the repository at this point in the history
  14. [ddk][bt-hci] Add missing include

    - bt-hci.h now includes "<zircon/types.h>"
    - minor formatting fix
    
    Change-Id: I1543b9d6fed2189e09ecd5936e4e36fce79f7a5f
    armansito authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    f8695bb View commit details
    Browse the repository at this point in the history
  15. [hypervisor] Swizzle args for functions

    Separating out this cosmetic change from an upcoming change.
    
    Change-Id: I9b2caa49a39a23e260a7c2ded36a36dce517ebff
    abdulla authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    d832f09 View commit details
    Browse the repository at this point in the history
  16. [pci] Add pci_config_write to protocol, remove pci io syscalls

    - Added config_write to protocol and syscalls.
    - Removed zx_pci_io_* syscalls as they are unused / unimplemented.
    
    Change-Id: Ie495370c96e9fe74dbe0d6d5f58337f722ec1d35
    nvll authored and CQ bot account: [email protected] committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    fdd85d5 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2018

  1. [ktrace] Use RAII mutex in ktrace

    Change-Id: I18a962d2cd5489cc760710be535627d865435201
    George Kulakowski committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    e2800c9 View commit details
    Browse the repository at this point in the history
  2. [kernel][hypervisor] Convert timer callbacks to use preempt_disable

    Calling sched_reschedule() when arch_in_int_handler() is true is now
    allowed (see preempt_disable).  This means we can remove uses of the
    INT_RESCHEDULE return value.  We can instead call sched_reschedule()
    or pass reschedule=true to functions that take a "reschedule"
    argument.
    
    ZX-1490
    
    Change-Id: I2f777296db65558c4124fc8a522932fcf174bf82
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    de92696 View commit details
    Browse the repository at this point in the history
  3. [hypervisor] Track when the guest is running

    This allows to invoke mp_reschedule in Vcpu::Interrupt only if the VCPU
    is actually running. It also simplifies the logic of Vcpu::Interrupt,
    requiring less reading of tea leaves.
    
    Change-Id: I0fd363e39838a66d53447c342ae0d399315f843f
    abdulla authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    1aae38e View commit details
    Browse the repository at this point in the history
  4. [kernel][atomic] Introduce atomic_xor

    Some things, like rand.c, want to be able to xor.
    
    Change-Id: I74c56c14b429a83c4ce76aeab93f04e046eb982d
    George Kulakowski authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    95969b4 View commit details
    Browse the repository at this point in the history
  5. [pci][virtio] Remove call to zx_mmap_device_io

    The protocol handles mapping the device IO for the proxy devhost,
    so it is not necessary for the driver to do this following get_bar
    any longer.
    
    Change-Id: I54d37e11f741707c3e6af213222fb309edb1cec9
    nvll authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    0c33432 View commit details
    Browse the repository at this point in the history
  6. [blktest] Add arg flag help and use standrd arg parsing

    blktest fails without blkdev_path being set properly, so make it clear
    to the user and add handling for -h and incorrect execution.
    
    Change-Id: Ief5e67441b62fab3f34c0cb8dcb2120148b6cd9c
    nvll authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    5fe12cd View commit details
    Browse the repository at this point in the history
  7. [pci] Remove DEBUG_ASSERT in Irq bookkeeping

    ResetCommonIrqBookkeeping is called from both LeaveLegacyIrqMode
    and LeaveMsiIrqMode. The existing assert is written to assume
    that if you have > 1 irq handlers then you have the handler table,
    and otherwise you're using the singleton. However, the singleton path
    also catches the case where this is called when you have no configured
    handlers. This path is hit if a driver tries to enter MSI mode, then
    bails out due to no backing MSI blocks being available in the platform
    driver.
    
    It appears safe to remove and refactor since all the work it does is
    safe unconditionally.
    
    ZX-1511 #in-progress
    ZX-1512 #in-progress
    
    Change-Id: I29eb70a5367df265f2b4b6ed7ecd766f06dc1441
    nvll authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    eb821b3 View commit details
    Browse the repository at this point in the history
  8. [fvm] Improve noncontiguous access test

    This test was sufficient for preventing the regression
    of LE-388 using the old block protocol, where an iotxn_clone
    would fail with invalid arguments, but with the new block protocol
    the test could pass (incorrectly) if the vmo_off was miscalculated.
    
    This path checks that the complex path of noncontiguous slice
    access is validated against contiguous slice access reads.
    This improvement prevents the regression, even with the incoming
    new block protocol.
    
    ZX-1578 #done
    
    Change-Id: I034bfe2d90307f19b6ec69659d6ce01fa5feb38e
    Sean Klein authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    1afe9ad View commit details
    Browse the repository at this point in the history
  9. [netsvc] Add timeout check to paver copy thread

    Recognize when no progress is being made in the paver buffer copy
    thread and abort, killing the paver process, instead of waiting
    forever. This allows us a more gracious exit when the tftp
    connection goes south, giving us a chance to re-establish
    communications.
    
    ZX-1521
    
    Change-Id: I7abcb315cbb04c4201c1c1c1dd04feb0bf6d5015
    josh-conner authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    46d29fc View commit details
    Browse the repository at this point in the history
  10. [kernel][cbuf] Make use of preempt_disable with cbuf_write_char()

    It is now safe to pass reschedule=true to event_signal() in the
    contexts where cbuf_write_char() is called, so change
    cbuf_write_char() to do that and remove its "bool reschedule"
    argument.  This means these code paths no longer need to return
    INT_RESCHEDULE.
    
    ZX-1490
    
    Change-Id: I00b0099211fb01c2cdc01733809dff94d20c75fd
    Mark Seaborn committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    1f4f0b2 View commit details
    Browse the repository at this point in the history
  11. [prebuilt] Roll Clang toolchain

    llvm-project revision 343562fb40155031de118407e2d491e970f1bbd7.
    
    Change-Id: I77a580c0a50d8d27022afb35b4d4f72a7c890621
    petrhosek authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    cb92fa4 View commit details
    Browse the repository at this point in the history
  12. [arm64][hypervisor] Change how we handle timers

    On every VM exit, we check whether the guest timer was set. If so, we
    setup a timer object to fire and inject an interrupt when the guest
    expected one.
    
    Previously, we would wait for a WFI before we setup a timer object,
    which would cause us to incorrect inject a timer.
    
    We also now ensure that interrupts are unmasked before we inject them.
    
    Change-Id: I1a1a2319a6d358f5a86d45ee251bafb6156a22bd
    abdulla authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    bd83d29 View commit details
    Browse the repository at this point in the history
  13. [fvm] Convert FVM driver to use the new block protocol

    Old iotxn mechanism locked behind IOTXN_LEGACY_SUPPORT.
    It is necessary to support lower-layer drivers which
    do not yet support the new protocol.
    
    ZX-1579 #done
    
    Change-Id: I8bddaf43bfc3daa5e24e0008e1e90825d3c9f206
    Sean Klein committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    2b09d6c View commit details
    Browse the repository at this point in the history
  14. [block] Convert FIFO-based block protocol to use block units, not bytes

    ZX-1541 #done
    
    Change-Id: I115b59c0991f15dd312d9199583ebe583735b004
    Sean Klein committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    eff612b View commit details
    Browse the repository at this point in the history
  15. [block] Fix intermediate error support for block transactions

    Previously, certain errors would call an "out-of-band" error
    response function if a response was requested. Unfortunately,
    in the case of a multi-message operation, if any intermediate
    messages caused an error, they would be silently dropped.
    
    This patch addresses that issue by ensuring that for ALL
    requests which have a valid txid, errors are "remembered"
    and transmitted when a response is requested.
    
    ZX-1581 #done
    
    Change-Id: Ife2f91f6f756bb8333664c6f234cf12f31cbab16
    Sean Klein committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    6762765 View commit details
    Browse the repository at this point in the history
  16. [build] Add documentation for the generation of GN build files.

    TO-562
    
    Change-Id: I159ee8ae73d05bbf42c3e64238b16ab82e2e634f
    pylaligand authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    444d49d View commit details
    Browse the repository at this point in the history
  17. [kernel][hypervisor] Remove some always-true "reschedule" args

    Remove the "bool reschedule" argument from
    hypervisor::InterruptTracker's Signal() and Interrupt() methods.
    
    ZX-1490
    
    Change-Id: Ibcbbc9b0c8b51978d29b073882727e37091e4011
    Mark Seaborn committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    9cde317 View commit details
    Browse the repository at this point in the history
  18. [kernel][pci] Remove PCIE_IRQRET_RESCHED, which is now unused

    Do the same for PCIE_IRQRET_MASK_AND_RESCHED.
    
    These are unused now that PciInterruptDispatcher has been converted to
    making use of preempt_disable (by passing reschedule=true to
    event_signal()).
    
    ZX-1490
    
    Change-Id: I68e26e6c2f16ff2273ebc9cf69a9527bd86f385c
    Mark Seaborn committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    759e817 View commit details
    Browse the repository at this point in the history
  19. [kernel][hypervisor][arm64] Remove use of INT_RESCHEDULE in timer cal…

    …lback
    
    A use of INT_RESCHEDULE reappeared after I removed it, but
    INT_RESCHEDULE should not be necessary here.
    
    Interrupt() calls two functions: Track() does not unblock any threads,
    it only sets a bit in a bitmap.  Signal() can unblock a thread, but it
    uses reschedule=true, so we don't need to return INT_RESCHEDULE as
    well.
    
    ZX-1490
    
    Change-Id: Ibf41f7074bf26bb4df15238a40225d0603b49a5c
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    869eea5 View commit details
    Browse the repository at this point in the history
  20. [fs][minfs] Unify naming scheme for block requests

    The public block interface refers to these fields
    as "vmo_offset" and "dev_offset": this patch makes
    the filesystems consistent with that naming scheme.
    
    ZX-1562 #done
    
    Change-Id: I9157b596cf56bea208854b2284b8863d38d36a58
    Sean Klein authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    bf46ab4 View commit details
    Browse the repository at this point in the history
  21. [runtests] Fix typo in failure message

    Change-Id: I6aca647b8f23d01bfc403ec6caf9e60e55a54672
    Brian Goldman authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    cfa78bf View commit details
    Browse the repository at this point in the history
  22. [netstack] Support ioctl for new socket transport

    Also fix a few issues:
    - Use proper buffer size for misc() operations.
    - Remove ZXRIO_ACCEPT and call function directly.
    
    Change-Id: I1a57f6d841b7a6685bc8cececaf1a8c594a788e8
    Matt Perry authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    4307d92 View commit details
    Browse the repository at this point in the history
  23. [kernel] Convert remaining timer callbacks to make use of preempt_dis…

    …able
    
    Remove the remaining uses of INT_RESCHEDULE in timer callbacks.
    Convert to calling thread_preempt_set_pending() or passing
    reschedule=true.
    
    Note that for threadload() in debug.c, printf() currently does not
    trigger a reschedule by itself for running debuglog.  In this CL, I am
    not changing printf() to trigger a reschedule yet, because that has
    potential to cause performance regressions.
    
    ZX-1490
    
    Change-Id: I2b5f13028fdcb1ca629ae57ac9dda86ede2505d2
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    92fc980 View commit details
    Browse the repository at this point in the history
  24. [kernel][timer] Change timer callbacks to return void

    Following recent changes, all of the timer callbacks now always return
    INT_NO_RESCHEDULE.  We can therefore remove the return values.  We can
    change the timer callbacks to return void instead of "enum
    handler_return".
    
    ZX-1490
    
    Change-Id: Idb42c52c1daec599ffb16d5862048d57f520db0f
    Mark Seaborn committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    5907e30 View commit details
    Browse the repository at this point in the history
  25. [bootloader] Ignore buffers we didn't allocate

    When the EFI network services are shared, buffers returned by
    SimpleNetworkProtocol->GetStatus may not be ones we've allocated.
    When this happens, just ignore them.
    
    ZX-1516
    
    Change-Id: I05a4b2d8766a41fbb2b88f3f4c6862b80d02d033
    josh-conner authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    c113dac View commit details
    Browse the repository at this point in the history
  26. [kernel][vm][boot] add new boot memory reservation system

    Track up to 16 reserved physical memory regions at system startup to
    help the PMM not step on its own arenas as they're initialized.
    
    Unused in this commit, next few commits will wire up the usage.
    
    Change-Id: I09564d72365177015e8c8633a6e77a91879a7169
    travisg authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    406cebc View commit details
    Browse the repository at this point in the history
  27. [kernel][platform] switch PC and ARM platform over to using the boot …

    …memory reservation system
    
    Instead of tracking reserved memory in this layer, add reserved ranges
    to the boot reserve system prior to adding arenas to the PMM. This
    should allow the pmm to allocate memory out of itself without stepping
    on reserved memory.
    
    Change-Id: I98921ccbec90bf89decd597c90b219f164aefd07
    travisg authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    08314df View commit details
    Browse the repository at this point in the history
  28. [kernel][pmm] allocate pmm page arrays out of the pmm arenas themselves

    PmmArena now allocates the large page array at the high end of the arena
    itself instead of the boot allocator. This should allow for much larger
    arenas and generally avoid issues with the boot allocator slamming into
    ramdisks and other boot time reserved memory.
    
    Uses the boot reserve list to make sure it doesn't step on anything
    existing as it finds backing memory.
    
    Change-Id: I7765863692532a44203b6da879315d2cc2957237
    travisg committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    0d8c36f View commit details
    Browse the repository at this point in the history
  29. [uapp] Support fixup of argv[0] for namespace's child process

    When running a child process under `namespace`, by default the child
    sees an argv[0] that is valid outside of the namespace, not inside. Add
    --replace-child-argv0=... to namespace's command line to support mapping
    argv[0] to a destination path or other value.
    
    US-408
    
    Change-Id: Ief0a1a0cf7ed5f1a83b0caa63247f80ee5f6dc52
    sgraham authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    2086cee View commit details
    Browse the repository at this point in the history
  30. [fdio][fs] Remove usage of private headers in public libraries

    ZX-1592 #done
    
    Change-Id: I152d4164cb0a4d5e3cf74dfe231c234a78550f0f
    Sean Klein authored and CQ bot account: [email protected] committed Jan 23, 2018
    Configuration menu
    Copy the full SHA
    de06587 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2018

  1. [utest][ramdisk] tweak the out of range ramdisk read test to work wit…

    …h page aligned vmos
    
    With vmos rounded up to the next page size, tweak the test to exceed the
    range of the target vmo by an extra block, instead of an extra byte.
    
    Change-Id: Id535a8fe500ece1fdd448f07f8ded499e438a46c
    travisg authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    401d556 View commit details
    Browse the repository at this point in the history
  2. [ulib][hypervisor][x86] Remove LocalApic

    We've moved to x2APIC, so we don't need user-space local APIC emulation.
    
    Change-Id: Ifb6f46a601d74645360ef6d77c30e277dcba4153
    abdulla authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    e728e74 View commit details
    Browse the repository at this point in the history
  3. [ethernet][usb-cdc-ecm] Reduce spew on resets

    Move a number of diagnostic logs from INFO to TRACE so that they
    don't show up in the log by default. This is consistent with the
    other USB ethernet drivers and helps avoid overwhelming the log
    with repeated spew, especially for messages related to endpoint
    resets.
    
    NET-97
    
    Change-Id: I9bb90b8e268f4bf68a382d152efdf39a8cf73a55
    josh-conner authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    af1e659 View commit details
    Browse the repository at this point in the history
  4. [hid][touch] Add support for egalax touch screen

    This adds support for this panel in single touch mode. The panel
    may support multi-touch, but this requires discovering how to
    flip the panel into that mode.
    
    Change-Id: I75c7fd27e73dec8df9d6fd924d5639dcceee8151
    cyngus84 committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    533e172 View commit details
    Browse the repository at this point in the history
  5. [kernel][pc] Move to using C++-style spinlocks for interrupts code

    Change-Id: I299595e218885f9c47f03e2c0984183e255b490b
    Todd Eisenberger authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    f83e151 View commit details
    Browse the repository at this point in the history
  6. [syscall][pci] Check for bogus IRQs in zx_pci_init

    Some devices report non-existent IRQs in their ACPI tables.  If we see
    these, patch up the IRQ assignment table to read "no IRQ", so that
    things will fail gracefully when the driver tries to configure its IRQs.
    
    ZX-1594 #done
    
    Change-Id: I72a811edc2cd111c25c175d878a72e9b0a1ba26c
    Todd Eisenberger committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    eea934c View commit details
    Browse the repository at this point in the history
  7. [fidl][docs] 'package' was renamed to 'library', so fix the docs

    Change-Id: Ibd8d8515bc2ca8f2a6de6c89e83481645529ef3e
    George Kulakowski authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    29711c6 View commit details
    Browse the repository at this point in the history
  8. [kernel][iommu] Rework Map API

    This introduces the concept of minimum contiguity, which expresses the
    IOMMU's capability for creating contiguous device-virtual addreses.
    
    This will allow implementations to more efficiently handle Map requests
    according to the guarantees they can provide.
    
    Change-Id: I0fc2f99c9435553a1277b4833a3b39059b8f57fe
    Todd Eisenberger authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    c182d15 View commit details
    Browse the repository at this point in the history
  9. [kernel][interrupt] Remove the last remaining use of INT_RESCHEDULE

    Convert InterruptEventDispatcher to make use of preempt_disable: Pass
    reschedule=true to Signal() instead of returning INT_RESCHEDULE.
    
    Testing: Pressing the power button on a NUC triggers an ACPI interrupt
    that is handled via this code path.  Disabling the poweroff() call in
    dev/bus/acpi/powerbtn.c allows verifying that.
    
    ZX-1490
    
    Change-Id: I9e13b2a2900e79d3b59750bd8bee1f815acd3bda
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    92c2ca2 View commit details
    Browse the repository at this point in the history
  10. [fidl][docs] Use a single arrow, not a double arrow, in a method decl

    Change-Id: Ia8150e9b42a788c9d5b153725b979c2ee65ec25a
    George Kulakowski committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    2f35dfd View commit details
    Browse the repository at this point in the history
  11. [virtio][gpu] Replace cnd_t with sem_t.

    Patch up some race conditions that existed using cnd_t.
    
    Change-Id: I3e9cb558a3ca695fea1c99696ba6745c82b71085
    tjdetwiler authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    6afbb0e View commit details
    Browse the repository at this point in the history
  12. [dev][usb-xhci] Move CLEAR_FEATURE(ENDPOINT_HALT) request to after

    the Reset Endpoint Command.
    
    NET-97 #comment
    
    Change-Id: Ic9d926cbc01efb31d525c2776d28f931e0dd424a
    jocelyndang authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    53d7578 View commit details
    Browse the repository at this point in the history
  13. [kernel][arm64][qemu] remove old FDT reservation, dynamically reserve…

    … based on where it actually is
    
    Change-Id: I89865ae698816fe90c906e7bc175d7203d3dd0ea
    travisg authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    b1271f7 View commit details
    Browse the repository at this point in the history
  14. [ramdisk] Remove a race-prone MAX_TXN_MESSAGES test

    The "too many ops" test attempted to:
     - Write MAX_TXN_MESSAGES to the block server (automatically appends
       "we should respond to the client" identifier on the server).
     - Write another message to the block server
     - Observe that ZX_ERR_IO occurred, because too many messages
       were enqueued (message seen after "we should respond" marker).
    
    Unfortunately, this test is racy. It's possible that the first
    group of messages completes and responds to the client (returning
    a status of ZX_OK) before the next message (attempting to prod
    ZX_ERR_IO) is even enqueued.
    
    Removing this test, since the MAX_TXN_MESSAGES limiter is being
    removed in v2 of the block midlayer anyway.
    
    ZX-1600 #done
    
    Change-Id: I0448cbd329b27cb1325d211ea350ade8cf9c5f3c
    Sean Klein authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    c7508d1 View commit details
    Browse the repository at this point in the history
  15. [kernel][arm64] print the boot EL level

    Change-Id: I157a8153c30a050588e0f797e32b45b6ff8fe1ab
    travisg authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    8e89971 View commit details
    Browse the repository at this point in the history
  16. [zx] Update callers to zx::time and zx::duration types

    The zx_time_t and zx_duration_t variants will be removed eventually.
    
    Change-Id: Icc54983edc154eee2d1258160f921c3afc212ae0
    Adam Barth authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    aa3b773 View commit details
    Browse the repository at this point in the history
  17. [dev][usb-xhci] Call usb_hci_request_queue directly in

    usb_interface_control.
    
    This helps reduce the likelihood of deadlock. This can happen if
    the client holds a lock before calling usb_control and also tries
    to acquire the lock in another request completion function.
    
    We know that our callback doesn't block so it is safe to do.
    
    NET-97 #comment
    
    Change-Id: I88024fcf2e3a344237e881de1c9ee7b6b6aee12b
    jocelyndang authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    0e37147 View commit details
    Browse the repository at this point in the history
  18. [fidl][semicolons] Parse semicolons after declarations

    Per the originally drafted FIDL2 spec, semicolons follow all
    declarations (including library and using declarations). Enough people
    have seen that document and been acclimated to it that it seems best
    to conform to that expectation.
    
    Change-Id: If2b9c75f77d564e735e26eb5b50bdf91ce940855
    George Kulakowski authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    21345f4 View commit details
    Browse the repository at this point in the history
  19. [dash] enable ctrl-c in interpreter

    Change-Id: I4f4b7ab18ab79e3b30db008d6b98f6850ad53b67
    virtigexgoogle authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    df2e3a4 View commit details
    Browse the repository at this point in the history
  20. [dev][platform-bus] Simplify support for non page aligned VMOs

    Remove the offset field from pbus_mmio_t struct and compute it
    from the base address instead.
    
    Change-Id: I12757e10bf6b7f2ff7ed1a20685c0f60c2b52735
    Mike Voydanoff authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    540668f View commit details
    Browse the repository at this point in the history
  21. [virtcon] Add support for hotplugging

    This change adds support for hotplugging to the virtcon. If multiple
    displays are connected, the virtcon will use the display which was
    attached first. The virtcon's contents and scrollback are kept when
    switching between displays, although long lines will be truncated if
    the virtcon moves to a smaller display.
    
    When no display is connected, the console continues to function
    normally, except without rendering anything. All checks for whether or
    not any gfx operations should be done are in vc-device.
    
    Change-Id: I467b9b1792f4d43803b521ec564dfe1873b85a97
    dgstevens authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    5fb6815 View commit details
    Browse the repository at this point in the history
  22. [fidl] Print out lines containing errors

    In particular, this plumbs through the ability to go from a
    SourceLocation to a line of source.
    
    Change-Id: Ice342006518dc435a737b9a6b1acb443eeecd1fb
    George Kulakowski committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    58b6bef View commit details
    Browse the repository at this point in the history
  23. [minfs] Remove decommitting code in Minfs writeback buffer

    Change-Id: Id4621584b3faa098e410032e642072db9196f23e
    Sean Klein committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    56831f0 View commit details
    Browse the repository at this point in the history
  24. [intel-i915] Add igd handling to ddi buf programming

    Change-Id: Ic897e257780f05f55cb29933951e565008b20d7c
    dgstevens authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    54a0f03 View commit details
    Browse the repository at this point in the history
  25. [utest][exceptions] Test another corner case of zx_thread_{read,write…

    …}_state()
    
    Add a test to check the behaviour of zx_thread_read_state() and
    zx_thread_write_state() when the target thread is paused in the
    ZX_EXCP_THREAD_EXITING state.
    
    An earlier change added a check for testing ZX_EXCP_THREAD_STARTING.
    This CL pulls that check out into a separate test case which also
    tests ZX_EXCP_THREAD_EXITING.
    
    Change-Id: Iff25ef8eb1a426549f43a77ca05c983845dba7ce
    Mark Seaborn committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    b092aaa View commit details
    Browse the repository at this point in the history
  26. [musl] Fix buffer-size calculation in dynamic loader.

    format_build_id_log() was being passed the library's name including the
    terminating null character, but build_id_log_size() expects, and was
    being passed, the un-terminated name length.
    
    Change-Id: I952620f9959f700d5eb4719f958134a8a1e41553
    Wez authored and CQ bot account: [email protected] committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    743b24a View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2018

  1. [dash] enable ctrl-c in interpreter (Revert)

    This reverts commit df2e3a4.
    
    Reason for revert: Causes breakages with commands run via netcmd.
    
    Original change's description:
    > [dash] enable ctrl-c in interpreter
    >
    > Change-Id: I4f4b7ab18ab79e3b30db008d6b98f6850ad53b67
    
    [email protected],[email protected],[email protected]
    
    Change-Id: I82f25fe8f25324bce4ff8cb30952bb1826066848
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    virtigexgoogle authored and Adam Barth committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    f028d62 View commit details
    Browse the repository at this point in the history
  2. [libc][docs] Start sketching some libc docs

    Change-Id: Ida0559629605bf3f058b5df90b93372132c131af
    George Kulakowski authored and CQ bot account: [email protected] committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    67cc990 View commit details
    Browse the repository at this point in the history
  3. [zx] Remove deprecated zx_time_t and zx_duration_t functions

    Change-Id: Ie23dfe1cb023a601f7bdaf6bd2685792a3b34f81
    Adam Barth committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    3d3bdfd View commit details
    Browse the repository at this point in the history
  4. [build] Remove -Wno-tautological-constant-compare

    This is no longer enabled by default for -Wall or -Wextra.
    
    Change-Id: Ic15150889ee98293ed1a91a9d5a3aaa8402037a1
    petrhosek committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    a569fe2 View commit details
    Browse the repository at this point in the history
  5. [build] Remove -fcolor-diagnostics

    Clang can now detect whether the terminal supports colors even without
    the terminfo database so this is no longer needed.
    
    Change-Id: I6d245323ae4804198db78b3ce427186a5435a6c5
    petrhosek committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    8ed3fc6 View commit details
    Browse the repository at this point in the history
  6. [syscalls] Remove zx_time_get

    All clients have moved to zx_clock_get.
    
    Change-Id: Id9559c2e672c6cb9c7090ba0c66a55b4eaed368d
    Adam Barth committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    2399362 View commit details
    Browse the repository at this point in the history
  7. [kernel][interrupts] Add assertion to every interrupt-handling function

    This is in preparation for removing the "enum handler_return" type.
    When we replace that with "void", there will be nothing in the
    function signatures to mark out these functions that are only called
    in interrupt-handling context.
    
    To make up for that, add the assertion
    "DEBUG_ASSERT(arch_in_int_handler())" at the start of every function
    that currently returns a "handler_return".
    
    ZX-1490
    
    Change-Id: I30deda7192eed9f5a5276ec6259cce78277e87ea
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    cae96ae View commit details
    Browse the repository at this point in the history
  8. [blktest] Reduce test flake

    This is the equivalent of the ramdisk flake, but for real hardware
    
    ZX-1600 #done (again)
    
    Change-Id: Ib5ccb7950e366117deb27776465c9933cafcac85
    Sean Klein authored and CQ bot account: [email protected] committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    9dc705f View commit details
    Browse the repository at this point in the history
  9. [zircon] make call test better

    More info, more error checks. Possibly
    a problem spotted.
    
    Change-Id: I9322e4855d4a4842f4bebe2aab31777647f5d821
    cpu-chromium authored and CQ bot account: [email protected] committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    e646a7b View commit details
    Browse the repository at this point in the history
  10. [kernel] Revert "[kernel][interrupts] Add assertion to every interrup…

    …t-handling function"
    
    This reverts commit cae96ae.
    
    That change caused a kernel assertion failure via the following path:
    
    sys_mmap_device_io()
    -> IoBitmap::SetIoBitmap()
    -> mp_sync_exec()
    -> mp_mbx_generic_irq()
    
    ZX-1490
    
    Change-Id: Ic2362d000be7b4e021c6942cc6d0f9550dd15649
    Mark Seaborn committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    1e35420 View commit details
    Browse the repository at this point in the history
  11. [syslog] Print global and local tags together

    As we would be sending them together to garnet logger service, it makes
    sense to print them together on stderr as garnet service will not know
    which tag is global and which is local.
    
    Change-Id: I4e514cff832acbbe84c8ed05bf243795bad39228
    ankurmittal committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    5f27a9a View commit details
    Browse the repository at this point in the history
  12. [virtio][block] convert to new block protocol

    This works with the iochk exerciser, but does not pass the minfs
    test.  However the pre-conversion version fails the minfs test the
    same way: if requests arrive fast enough there may not be enough
    ring entries for a request and the driver does not have a mechanism
    to wait until they become available.
    
    Change-Id: I0d92774efbdf1ae1caa1d7359b6a3084047e7494
    swetland authored and CQ bot account: [email protected] committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    3ffca69 View commit details
    Browse the repository at this point in the history
  13. [virtio][block] cope with temporary resource exhaustion

    Don't fail if all 32 requests are in flight or there are
    not enough free descriptor slots available.  Instead wait
    and try again as in-flight requests complete.
    
    This could probably be done more cleverly, but for now
    I avoided getting tricky.
    
    Also, access alloc/free_blk_req() and the txn_list under
    a lock, to avoid the irq thread and queueing threads
    messing with each other.
    
    Change-Id: I1d7f6e6e772c665514cddccd867520f56a3002b4
    swetland committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    2a7db0d View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2018

  1. [fidl] Fix alignment in canned fidl structs

    This change makes it clear that all fidl message objects should be
    8-byte aligned. For most types this did not matter, but for very short
    messages (for instance, with just an int32 or a handle) it could make
    a difference.
    
    Change-Id: I6fd093ef5205342f62c01719c37c492ad9c20463
    George Kulakowski authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    dc565f6 View commit details
    Browse the repository at this point in the history
  2. [fidl] Improve cpp ergonomics

    These tweaks are useful form the upper layers.
    
    Change-Id: Id3ddace84f55ce4b054bcb6844b5144380b30508
    Adam Barth committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    293e343 View commit details
    Browse the repository at this point in the history
  3. [utest] Check whether the hypervisor is supported

    Adds a check to see whether the hypervisor is supported before running
    Guest Physical Address Spaces tests on ARM64.
    
    On ARM64, we need to jump to EL2 during operation of the Guest Physical
    Address Space. If we run these tests without access to EL2, we'll fail.
    This can be seen when run under QEMU without virtualisation support.
    
    ZX-1614 #done
    
    Change-Id: I345af9c09361e64aee4cd58d07385d5228783d2d
    abdulla authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    b880191 View commit details
    Browse the repository at this point in the history
  4. [fs] Convert Sync (flush) operation to be asynchronous

    Since the "Sync" operation may block for disk to complete
    a potentially expensive operation, it is ironically a perfect
    candidate for becoming an asynchronous operation.
    
    This patch updates the VFS interface for sync to use closures,
    allowing filesystems to defer responding to the requesting
    process.
    
    ZX-1308 #done
    
    Change-Id: Ibc00c4963be79ff80504a7dafcffce6d81ccc66f
    Sean Klein authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    e054b6b View commit details
    Browse the repository at this point in the history
  5. [docs] Update advice for testing block devices

    ZX-1615 #done
    
    Change-Id: I86dc41a55bac141228ef3d5ac5fc7680c997ed93
    Sean Klein authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    863d234 View commit details
    Browse the repository at this point in the history
  6. [vm] replace replace call to paddr_to_kvaddr with paddr_to_physmap

    paddr_to_kvaddr is undefined. Replace call to this function with paddr_to_physmap so PMM_ENABLE_FREE_FILL can be enabled.
    
    Change-Id: Ia457336f598bf460df2738f14eae6b59848f5a6f
    idl3r committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    60aa5ea View commit details
    Browse the repository at this point in the history
  7. [fidl] Add Message::has_header

    We use this method to check whether an incoming message has enough bytes
    to have a FIDL header.
    
    Change-Id: Iac7a3124b25f0cea9f4af1301017d066d2108529
    abarth authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    dda208d View commit details
    Browse the repository at this point in the history
  8. [utest] Run kernel unit tests ("k ut all") from runtests

    Run the in-kernel unit tests on the bots (on the CQ etc.), via
    runtests, by adding a userland test program that does the equivalent
    of "k ut all".
    
    The kernel-side code propagates enough error results through that this
    will detect test failures such as the failure of an EXPECT_EQ(), and
    of course it will detect kernel panics too.
    
    IN-19 #done
    
    Change-Id: I949603339df83b04201bde3ac5126c73c4f4822a
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    eabf7ce View commit details
    Browse the repository at this point in the history
  9. [fbl] Warn on not using the result of fbl::unique_ptr::release()

    Change-Id: I34d3c92d8086c85c7048038facf5a81540265f59
    George Kulakowski authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    7db08fe View commit details
    Browse the repository at this point in the history
  10. [kernel][arm64] make sure we properly account for the ramdisk physica…

    …l address when booted from zedboot
    
    Any loaders that just pass us a raw pointer to the bootimage in x0 will
    go through one of the three paths at the top of platform_early_init to
    recover the size of the ramdisk. One of the paths wasn't properly
    accounting the ramdisk physical base and length, which was causing newer
    boot reservation code to bail and stop the kernel boot.
    
    Only really zedboot and the machina hypervisor pass things this way.
    
    Restructure the code a bit to make sure the physical run of the ramdisk
    is always computed.
    
    ZX-1612 #done
    
    Change-Id: Iafd693a901ed7b6dd8dd8e5bb501961eb4eff20d
    travisg authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    a1645db View commit details
    Browse the repository at this point in the history
  11. [dev][ethernet] Add Intel I211-AT id

    Change-Id: I72750dcf64f863a139e0cd15f166817084d277c5
    tkilbourn authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    8acf43e View commit details
    Browse the repository at this point in the history
  12. [tests] Add filtering and listing tests to the harness.

    The test case or particular test name to execute can now be listed on the
    command line.
    
    Adds a --list flag that prints the test names instead of running them.
    
    Adds a --help flag that prints usage.
    
    Change-Id: Ia2356b47a9f30c727a043466f9220738749324a6
    Brett Wilson authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    ad14597 View commit details
    Browse the repository at this point in the history
  13. [fvm] Add host & target side support for compressed sparse file

    Change-Id: I2ba9350cfbc98e96de7fc0a7a253e9c560ba208b
    planders authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    5507776 View commit details
    Browse the repository at this point in the history
  14. [kernel] Remove unused file, kernel/tests/float_print_host.cpp

    Change-Id: Idc8f461db991efa9051445e0c2b94caa099b4811
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    a328ea7 View commit details
    Browse the repository at this point in the history
  15. [crypto] Improve Bytes::Increment

    This CL modifies Bytes::Increment to be incremented by a set amount
    rather than just by 1.  This is to enable better random access for
    Ciphers with a tweaked codebook mode (next CL).
    
    Change-Id: I62aec4c805f12c64b2df5f27bc8eb8346c4b99ec
    nopsledder authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    b28eb89 View commit details
    Browse the repository at this point in the history
  16. [kernel][tests] Convert sync_ipi_tests.cpp to use unittest.h framework

    This means that the tests in this file will get run on the bots (on
    the CQ, etc.).
    
    ZX-1617
    
    Change-Id: Ic25caeeff2d9754918accc97ea2fae6ce01a532c
    Mark Seaborn authored and CQ bot account: [email protected] committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    47735d2 View commit details
    Browse the repository at this point in the history