Commit graph

2084 commits

Author SHA1 Message Date
bunnie
de514ac66f rename packages in prep for upload to crates.io 2022-10-03 00:24:45 +08:00
bunnie
29ce54635b actually, make hosted the default implementation for crates.io 2022-10-03 00:03:10 +08:00
bunnie
88b059c560 add a default impl so packaging doesn't barf 2022-10-03 00:02:27 +08:00
bunnie
c0b6738b69 prep log server for upload to crates.io 2022-10-02 23:59:34 +08:00
bunnie
33940aceb2 remove false dependency 2022-10-02 21:46:24 +08:00
bunnie
b1c3a70f35 cleanup bitrot in usb-test 2022-10-02 14:51:02 +08:00
bunnie
4e40ae6c5d move from target selectors to feature selectors for back-ends
This will allow for e.g. xous on riscv32-imac but not a precursor
target, for example: by using feature selectors we get to have
a bigger range of targets that we support, such as for implementations
that haven't been upstreamed or have official target-triples.

The downsides are:

- patch override libraries don't absorb feature flags. so, for
example, the AES crate that is used to patch other crates won't
be aware of the target features without modifying the referencing
crates.

- features are normally meant to be additive, but target features
are mutually exclusive. The mutex is enforced by a check in
utralib that throws a panic on build if two targets are accidentally
selected at the same time.
2022-10-02 02:56:44 +08:00
bunnie
fb29c9b2c1 refactor utra target line to use explicit feature targets
still need to rework the crate feature selection
2022-10-02 02:20:03 +08:00
bunnie
884e19b9de clean up an error 2022-09-28 01:35:19 +08:00
bunnie
4f2506f009 some housekeeping; remove bit-rotted test targets
these targets are so old they would need to be completely
re-written to be relevant, so just cull them.
2022-09-27 17:50:32 +08:00
bunnie
ecab0ba045 fix default-features in services 2022-09-27 02:44:46 +08:00
bunnie
d667d7e1f5 bump xous-ipc version 2022-09-27 01:14:43 +08:00
bunnie
f188e0f866 re-bump xous-ipc to 0.9.9 2022-09-26 16:50:38 +08:00
bunnie
507ab42836 downgrade xous-ipc to 0.9.7 until i have permissions to push a new version 2022-09-26 16:11:26 +08:00
bunnie
3579dfdd17 update xous-ipc and xous versions 2022-09-26 16:07:35 +08:00
bunnie
d10683d29f contemplating splitting log-server itself into a crate, just to see what happens... 2022-09-26 14:58:05 +08:00
bunnie
114d60bc53 migrate logserver API to external package 2022-09-26 14:06:46 +08:00
bunnie
6811e23f20 remove unused/outdated artifacts 2022-09-26 11:26:03 +08:00
bunnie
85279566f0 fix #77
This adds some UX feedback in the edge case that a suspend could not
happen due to a blocking sever, e.g. a sha512 hash pending or
a SPINOR flash write/erase pending.

The UI will tell the user to retry again; usually the ops in
a normally functioning system for hashes or SPI are very short,
so we could almost just retry automatically but I think for now
I want to see if this edge case actually happens.
2022-09-24 02:40:11 +08:00
bunnie
d3daca9c5e migrate suspend/resume to the private server
this seems to resolve an issue where the time server fails to
suspend due to contention for the llio block.
2022-09-24 01:26:17 +08:00
bunnie
6cf5135a7d fix #129
just strip out the unused code.
2022-09-23 03:01:18 +08:00
bunnie
9a712e643f fix hosted mode 2022-09-22 16:42:41 +08:00
bunnie
7b040f5c34 Close issue #71 (wait_event() for SHA512 block)
I was this many years old when I learned that:

- If you put a `let` inside a block and then pass it outside
the block, it definitely gets a different address. This was causing
KP's in the interrupt handler routine because I was using a block
to mark off the configuration feature and then passing the handle
to the data structure outside the block; instead of just aliasing
the handle over as I assumed it actually makes a copy in a new
address location. This made debugging really hard until I figured
that out, the solution was to put #cfg directives on every line
related to the feature instead of grouping them together into a
block and using a single #cfg directive.

- event_wait() takes longer than 2us to execute. However, the
sha512 computation is done in 2us. So, by the time we checked
if we should wait and called event_wait(), the interrupt that
would wake us up from event_wait would have already happened.
This race condition is what broke event_wait() in the first place.

We now just use a spin loop without even a yield(); as the yield
would take longer to execute than waiting for the hash function
to finalize.
2022-09-22 15:06:54 +08:00
bunnie
d6b8310495 fix a typo
man that would have been a hard bug to track down.
2022-09-22 01:27:10 +08:00
bunnie
9225cbaba3 resolve issue #206 by adding check for existing basis 2022-09-20 23:06:22 +08:00
bunnie
035bdaf986 complete wifi on/off interface
fully integrates wifi on and off commands. measured standby power
when wifi is off is "immeasurable" (0 mA), so probably < 1-2mA.

fix ui transitions so that the off request is respected, through
sleep/resume cycles as well.
2022-09-20 19:36:55 +08:00
bunnie
ec8a16f3d7 touch up some UI interactions 2022-09-20 15:54:48 +08:00
bunnie
851604f471 add translations and minor fixes to workflow 2022-09-20 01:51:40 +08:00
Gianguido Sorà
63757a3f91 Merge branch 'main' into gsora/wlan-manager 2022-09-19 11:41:35 +02:00
bunnie
ca5820cac9 add debugging note on SoC update path for hitting the paperclip reset 2022-09-18 13:46:34 +08:00
bunnie
b9dbabc198 fix kernel config for shellchat
somehow, on windows builds, this doesn't break; but when building
under linux, the kernel config difference matters. Now that I
know how to pass features down, let's do it right.
2022-09-18 00:20:43 +08:00
bunnie
48269651e8 add continuous-time profiling of AES blocks to the net command 2022-09-16 01:45:32 +08:00
bunnie
5112c395f9 commit a snapshot before refactoring perflib components 2022-09-16 01:25:18 +08:00
Gianguido Sorà
f63d69debc Merge branch 'main' into gsora/wlan-manager 2022-09-12 13:04:38 +02:00
bunnie
4e36b43649 remove "perfcounter" default for mainline build 2022-09-11 19:20:34 +08:00
bunnie
2b3000a3f5 add routines to access ring-xous aes implementation to characterize CT operation 2022-09-11 19:14:08 +08:00
bunnie
beed2ceab8 add performance counter to measure AES runtimes
this simple test does a walking 1's across AES256 key space to
see if there are gross bit-dependent execution timing problems
2022-09-11 07:46:41 +08:00
bunnie
8969485ccc fix errors that came when turning off the tls feature 2022-08-25 16:08:53 +08:00
bunnie
f5f4498b25 remove tls from default config 2022-08-25 15:27:30 +08:00
bunnie
3de588ccef revise the ws test to use a more reliable server 2022-08-25 15:26:33 +08:00
bunnie
ad155358f3 remove tls from the main config -- don't need to test that anymore in CI 2022-08-25 05:22:59 +08:00
bunnie
16f7c5b234 fix URL to a working server 2022-08-25 05:22:43 +08:00
bunnie
28434f0873 clean up a warning for now
need to find..a service...to connect to. or something like
that. maybe we just have to start a websocket server somewhere
for testing.
2022-08-25 05:06:15 +08:00
bunnie
ea55d23e67 some initial websocket mucking about 2022-08-25 05:04:37 +08:00
bunnie
8eda1e59c4 check in a version with TLS on by default to push CI 2022-08-20 00:59:46 +08:00
bunnie
25d1d0144a cleanup hosted mode build and carve TLS target out 2022-08-20 00:47:28 +08:00
bunnie
950b0e909a configure out TLS by default 2022-08-20 00:38:50 +08:00
bunnie
59a3bc0370 cleanup patches 2022-08-20 00:38:21 +08:00
bunnie
a5aee2b0d5 patches for debug 2022-08-16 17:54:36 +08:00
bunnie
a05ab47d10 add some test code to exercise TLS to break the linking 2022-08-13 21:23:35 +08:00