- Jan 23, 2018
-
-
P.Y. Laligand authored
TO-562 Change-Id: I159ee8ae73d05bbf42c3e64238b16ab82e2e634f
-
Sean Klein authored
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 authored
ZX-1541 #done Change-Id: I115b59c0991f15dd312d9199583ebe583735b004
-
Sean Klein authored
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
-
Abdulla Kamar authored
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
-
Petr Hosek authored
llvm-project revision 343562fb40155031de118407e2d491e970f1bbd7. Change-Id: I77a580c0a50d8d27022afb35b4d4f72a7c890621
-
Mark Seaborn authored
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
-
Josh Conner authored
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
-
Sean Klein authored
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
-
Christopher Anderson authored
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
-
Christopher Anderson authored
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
-
Christopher Anderson authored
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
-
George Kulakowski authored
Some things, like rand.c, want to be able to xor. Change-Id: I74c56c14b429a83c4ce76aeab93f04e046eb982d
-
Abdulla Kamar authored
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
-
Mark Seaborn authored
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
-
George Kulakowski authored
Change-Id: I18a962d2cd5489cc760710be535627d865435201
-
- Jan 22, 2018
-
-
Christopher Anderson authored
- Added config_write to protocol and syscalls. - Removed zx_pci_io_* syscalls as they are unused / unimplemented. Change-Id: Ie495370c96e9fe74dbe0d6d5f58337f722ec1d35
-
Abdulla Kamar authored
Separating out this cosmetic change from an upcoming change. Change-Id: I9b2caa49a39a23e260a7c2ded36a36dce517ebff
-
Arman Uguray authored
- bt-hci.h now includes "<zircon/types.h>" - minor formatting fix Change-Id: I1543b9d6fed2189e09ecd5936e4e36fce79f7a5f
-
Mike Voydanoff authored
Change-Id: I34f2f931c678bed146081e14e3cbfd4a043f6661
-
Abdulla Kamar authored
This allows a user to hit ctrl-d and receive a stracktrace, without the need for an end marker. Change-Id: I715a506fce9876f56f5e8eb98b69e3ec52656002
-
Nick Kralevich authored
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
-
Sean Klein authored
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
-
Nick Kralevich authored
handles.md makes reference to many syscalls. Link to the syscall documentation so the reader can learn more. Change-Id: I8628659f68d0713fd2229e28dac5fc3f5043500e
-
Mark Seaborn authored
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
-
Mike Voydanoff authored
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
-
Matt Perry authored
Change-Id: I6833f1c2927ea9eecac2194b154439bbaeb96bf2
-
Adam Barth authored
This change frees up the get() method in for a zx_time_t accessor in the zx::time class. Change-Id: Ia4cdc7e3e558df5ba0cfeedb27a442abf4d6f305
-
Ankur Mittal authored
This implementation supports only supports writing to file descriptors and defaults to stdout. Change-Id: I2aaca1cb98e0f8951e1b791c40250dc503a93b3f
-
Mike Voydanoff authored
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
Refactor the aml-a113 driver so we can use it for other Amlogic platforms Change-Id: I25f7a703e7006200643ae917317df4014e255de1
-
Tim Kilbourn authored
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
-
- Jan 21, 2018
-
-
Mike Voydanoff authored
Change-Id: Ib2e61ced13c3f32ff03ce3a8d6b46afafb537042
-
Mike Voydanoff authored
Change-Id: Ic3739a7d266cd811d3ef39927c8deac50ca19284
-
- Jan 20, 2018
-
-
Travis Geiselbrecht authored
Hadn't really discovered any sort of systemic problem, but was falsely triggering in various situations. ZX-1527 #done Change-Id: I260463e977ae8433a1eedb04544f4794261e5109
-
Sean Klein authored
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
-
Mark Seaborn authored
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
-
Brian Swetland authored
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
-
Mark Seaborn authored
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
-
cpu authored
-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
-