Commit graph

4114 commits

Author SHA1 Message Date
bunnie
6811e23f20 remove unused/outdated artifacts 2022-09-26 11:26:03 +08:00
bunnie
b6afff7f14 bump lock file 2022-09-26 11:13:04 +08:00
bunnie
147d55bdf8 bump xous-rs version 2022-09-26 11:08:22 +08:00
bunnie
195bf26585 update release notes 2022-09-25 02:05:51 +08:00
bunnie
b82271d721 update release notes 2022-09-25 02:05:14 +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
72859d18dd fix UX update issue on FIDO adding records.
maybe need to also chase this down in the password add new area too?

need to check.
2022-09-23 00:37:15 +08:00
bunnie
278570d8d3 progress on issue #223
This adds the abort flow to the U2F approvals. Needs more testing.
2022-09-23 00:27:14 +08:00
bunnie
13402b99b9 fix #224
was a logic bug where the database name was not updated while
doing some refactoring previously
2022-09-22 22:05:57 +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
8fe4c50373 improve error reproting on #206 2022-09-20 23:24:42 +08:00
bunnie
ba45fc2685 fix validator issue on hotp count 2022-09-20 23:13:18 +08:00
bunnie
9225cbaba3 resolve issue #206 by adding check for existing basis 2022-09-20 23:06:22 +08:00
bunnie
ef65d1aa9f Merge branch 'wlan-mgr' into main 2022-09-20 19:38:24 +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
d561e07beb bump release notes 2022-09-20 15:54:43 +08:00
bunnie
851604f471 add translations and minor fixes to workflow 2022-09-20 01:51:40 +08:00
bunnie
22a440f75f Add HOTP initial count feature; try to fix HOTP panic
- HOTP now prompts for an initial count
- Found a code path where improperly formatted HOTP field can
lead to a 0-value being passed to a totp generator
- Added guardrails around the TOTP generator so it can't divide by 0:
it issues a warning instead.
2022-09-19 23:44:45 +08:00
bunnie
d21bd5c935 Merge branch 'main' into wlan-mgr 2022-09-19 17:50:35 +08:00
bunnie
e5f988c938 bump ring-xous ref
forgot to absorb this patch into xous-core!
2022-09-19 17:49:03 +08:00
Gianguido Sorà
63757a3f91 Merge branch 'main' into gsora/wlan-manager 2022-09-19 11:41:35 +02:00
bunnie
796256cfb0 make usb_update.py appear only once in the tree 2022-09-19 12:44:55 +08:00
bunnie
47ce1e3149 add version history for TOTP records 2022-09-18 21:53:35 +08: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
546527f3a6 update release notes 2022-09-17 21:26:50 +08:00
bunnie
d1cda8f669 add hotp support
hotp is merged as a "minor" feature off of totp. In other words,
the default mode is totp, but one can specify a totp record
to be an hotp record and it will behave as an hotp record.

We re-use the "step_seconds" field to specify the count parameter.
There is no separate initial count / count field -- the two are
tracked in a single u64 that is stored in the "step_seconds" field
of what would be a totp record.

This also revs the TOTP record to v2. This *should* not break
anything:

- v1 records deserialize as totp records into v2 (which is correct,
as there are no hotp in v1)
- when a v1 record is saved to disk, it is stored in v2 format
- v1 records that are not edited stay as v1
2022-09-17 00:39:47 +08:00
bunnie
fad3aa6ec0 fix fido readback from test vectors made in hosted mode 2022-09-17 00:39:19 +08:00
bunnie
1766611bb6 bump release notes 2022-09-16 17:00:44 +08:00
bunnie
3b7a5b914b
Merge pull request #219 from betrusted-io/perflog
Perflog
2022-09-15 23:37:20 -07:00
Sean Cross
853ad5a69a
Merge pull request #217 from betrusted-io/v2p
add virt_to_phys syscall
2022-09-16 00:41:18 -04:00
bunnie
228ff9b75e omit the page table file 2022-09-16 01:53:46 +08:00
bunnie
5461a70be1 add some generated data for later review 2022-09-16 01:52:06 +08:00
bunnie
46a2d8609f add perflib modules
this library can be re-used across multiple scenarios that require
performance profiling
2022-09-16 01:48:59 +08:00
bunnie
3a893213ff update the generated images to the latest data 2022-09-16 01:47:30 +08:00
bunnie
e12f651ac4 update analysis framework to use the binary files output by the latest changes 2022-09-16 01:47:02 +08:00
bunnie
b60ad06134 add a clone function for AtomicCsr
this is useful for the performance profiling framework
where we want to stick the allocatde CSRs into structures that
help manage things.
2022-09-16 01:46:15 +08:00
bunnie
e1781bfcbe add ct profiling to the workspace 2022-09-16 01:45:49 +08:00
bunnie
48269651e8 add continuous-time profiling of AES blocks to the net command 2022-09-16 01:45:32 +08:00
bunnie
91eb81000a add some breadcrumbs 2022-09-16 01:45:15 +08:00
bunnie
3e79e3e430 add ability to read out data based on a list of virtual sectors
This adds the `--dump` command, which requires a file that is
a copy/paste of a generated virtual to physical table. An example
of this log would look like this:

```
INFO:shellchat::cmds::net_cmd: V|P 6000d000 40799000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 6000e000 4079a000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 6000f000 4079b000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60010000 4079c000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60011000 4079d000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60012000 4079e000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60013000 4079f000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60014000 407a0000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60015000 407a1000 (services\shellchat\src\cmds\net_cmd.rs:770)
```

and so forth. The script can parse this raw log to create the necessary
page table mappings to read a large region of virtual memory and save
it as a contiguous chunk in a file.
2022-09-16 01:39:49 +08:00
bunnie
7dbc1f60b0 add xtask tweaks for performance counter variants (perf-image target) 2022-09-16 01:39:22 +08:00
bunnie
6537661aa5 add performance monitoring variants of the SoC 2022-09-16 01:37:29 +08:00
bunnie
5112c395f9 commit a snapshot before refactoring perflib components 2022-09-16 01:25:18 +08:00
bunnie
57673052bf pass the v2p dependency onto xous-rs when it's activated in the kernel 2022-09-15 19:17:00 +08:00