Commit graph

633 commits

Author SHA1 Message Date
bunnie
1b5d4bd79b push of spinor changes to validate l2cache 2021-07-05 00:08:58 +08:00
bunnie
47c1a98d13 fix the aesthetics of the suspend screen 2021-07-03 21:46:58 +08:00
bunnie
00be94d913 devboot mode support 2021-07-03 21:08:39 +08:00
bunnie
3f08dcccee increase the susres timeout to be less aggressive
now that we have auto-clock throttling, fast SR cycles are not
as critical to power saving. They are more a mechanism to be
invoked based on user command, not automatically, and thus it's
not as critical to shut things down ungracefully if the CPU is
heavily loaded.
2021-06-30 19:05:20 +08:00
bunnie
674faa46d9 button up after debugging the ed25519 issue 2021-06-29 23:46:15 +08:00
bunnie
d00717bc17 try to make a simpler example 2021-06-29 01:35:03 +08:00
bunnie
c880eda822 commit renode changes 2021-06-29 00:51:52 +08:00
bunnie
0bad1ad755 isolate a potential compiler bug 2021-06-29 00:10:46 +08:00
bunnie
8da62390ad add RFC7748 test vectors for diffie hellman 2021-06-28 19:01:22 +08:00
bunnie
e01676d563 move the montgomery multiply code into the engine server
this saves a fairly substantial amount of time marshalling
re-used bits of microcode around on the benchmarks.
2021-06-28 18:41:34 +08:00
bunnie
ee87fd35a8 add hw acceleration for the affine transform on curve25519 2021-06-28 04:43:56 +08:00
bunnie
89b3875bfc commit before working on acceleration code 2021-06-28 02:33:32 +08:00
bunnie
4a3258f6bd Merge branch 'bunnie-dev' into main 2021-06-28 01:33:42 +08:00
bunnie
0563bfb8ad remove local paths so we can push to CI 2021-06-28 01:32:17 +08:00
bunnie
e2ada8f8fe attempt to fix up some build system warts 2021-06-28 01:31:43 +08:00
bunnie
7dfa77de11 Merge branch 'bunnie-dev' into main 2021-06-27 03:19:50 +08:00
bunnie
906882be71 un-break hosted mode 2021-06-27 03:19:22 +08:00
bunnie
5ab0c0b426 commit a version that should be able to build in CI now 2021-06-27 03:14:50 +08:00
bunnie
e39c2200cd fix up the build system warts & integration with dalek crates
we are at least now only requiring users to use our patched
curve25519-dalek crate, which now builds cleanly in both
xous and std environments, but the higher-level crates can be
directly used from crates.io
2021-06-27 03:07:39 +08:00
bunnie
6efdb7e0db stash a version with XousEngine25519 traits in case we want it back later 2021-06-27 00:31:15 +08:00
bunnie
9ebd181694 engine25519 core services now working 2021-06-25 19:35:31 +08:00
bunnie
1d9b474a6d add in a missing redraw command 2021-06-25 09:09:42 +08:00
bunnie
1d274e4d7c engine passs tests, but still some issues with power management 2021-06-25 04:40:06 +08:00
bunnie
6825e2e7e8 reset the i2c machine every new transaction 2021-06-25 03:41:42 +08:00
bunnie
f7874aab94 add in a missing redraw command 2021-06-25 03:38:54 +08:00
bunnie
75dca6bd4c checkin for a rollback to sanity check some things 2021-06-25 02:09:42 +08:00
Sean Cross
a99839ecd6 xous: mark MemoryRange fields as private
Mark the private fields in a `MemoryRange` struct as being private. This
allows us to perform operations on the memory range armed with the
knowledge that the entire range is valid and unaliased.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-06-24 17:41:16 +08:00
bunnie
afa55055ea add serial console mux setting 2021-06-24 13:52:44 +08:00
bunnie
3b0a4f2bf4 clean up some obvious bugs
stuff doesn't crash but also doesn't work
2021-06-24 03:38:32 +08:00
bunnie
ae25142acb engine25519 doesn't crash on boot, at least.
ManagedMemory structure for susres has some issues with large
blocks, so use "heap-allocated" structures
2021-06-24 03:17:32 +08:00
bunnie
16ec932286 refactor to sync/async apis split 2021-06-23 19:12:43 +08:00
bunnie
5d21ef0c76 beginnings of the curve25519 accelerator engine core driver
the engine-25519 server just takes microcode jobs and runs them
on the curve25519 accelerator engine.

all the fancy crypto stuff comes from other crates, which will
be filled in later.
2021-06-22 01:48:51 +08:00
bunnie
e8dc10977a clarify trng hosted mode messages, reduce noise 2021-06-21 22:21:40 +08:00
bunnie
96959bfe0d add version reporting to boot log 2021-06-21 22:18:39 +08:00
bunnie
7ea45b8e5b fix bias in deface lines 2021-06-21 00:54:18 +08:00
bunnie
58f0c8626f build a skeleton for engine25519 2021-06-20 18:42:37 +08:00
bunnie
e9499586f1 right. status loop was a mess.
classic code rot resulting from adding stuff that was never designed
to be in part of what was originally just a test loop to show
uptime.

cleaned it up, idle CPU load drops from 8% -> 2-3%.
2021-06-20 01:55:57 +08:00
bunnie
f4fbe84b78 improve redraw performance on menu
it helps to actually redraw the menu instead of relying
upon status updates to redo the Ux.
2021-06-20 00:44:59 +08:00
bunnie
c0d4cbe81d make the menu object more generic; demo with emoji selection 2021-06-19 04:44:21 +08:00
bunnie
b5630b74ce update documentation 2021-06-19 01:36:35 +08:00
bunnie
2b5ba61552 add some useful messages on boot for the hosted mode users 2021-06-19 01:05:42 +08:00
bunnie
69a22adee9 menus basically working 2021-06-19 00:25:18 +08:00
bunnie
aa967a5a17 quiet up hosted mode build warnings 2021-06-18 22:37:08 +08:00
bunnie
769c90764c menu Ux is now nominally doing something menu-like 2021-06-18 19:35:03 +08:00
bunnie
65cc8dd90c defacement first-pass seems working 2021-06-18 17:40:00 +08:00
bunnie
0f937037e4 just getting to the point of implementing defacement
menu now pops up. does nothing, but we can at least
change contexts for the Ux into a different Ux theme.
2021-06-18 16:20:56 +08:00
bunnie
62c9737bbc tenuous addition of a menu object
things don't crash, but...haven't really validated if they work, either!
2021-06-18 04:10:41 +08:00
bunnie
3664ff6718 clean up keyboard event handling so the GAM is the gateway server
this allows the GAM to handle authentication for listening requests.
2021-06-17 01:12:25 +08:00
bunnie
4b1495a8ef change cargo xtask run to something that fails 2021-06-16 17:51:02 +08:00
bunnie
03bcf18348 clean up enum-based dispatch for Layouts, pulling in enum_dispatch crate. 2021-06-16 17:41:47 +08:00