Martin Whitaker
02bcec2418
Remove unnecessary volatile qualifiers from test state variables.
...
Thread safety is ensured by the barriers.
2022-02-19 12:44:14 +00:00
Martin Whitaker
e032df50d2
Minor code improvement for efficiency.
2022-02-19 11:52:42 +00:00
Martin Whitaker
e99a7aedb3
Revert to starting APs before doing the dummy runs.
...
That optimisation occasionally caused a hang if the CPU sequencing
mode was reconfigured after testing had started. It didn't make a
significant difference to the startup delay, so just drop it.
2022-02-18 20:35:36 +00:00
Martin Whitaker
cadad583d7
Eliminate the spinlock used when halting inactive CPU cores.
...
This is a more efficient implementation.
2022-02-18 20:08:24 +00:00
Martin Whitaker
807c4153c1
Add tracing for AP startup.
...
Also comment out tracing of memory window starts to reduce verbosity.
2022-02-13 20:25:58 +00:00
Martin Whitaker
efc9a9c16a
Don't attempt to start the APs when restarting after a config change.
...
Leave the APs running whilst the BSP repeats the dummy runs. This means
we need to bypass the barriers during a dummy run. The APs will wait at
the first barrier until the BSP starts the first real run.
2022-02-12 19:37:58 +00:00
Martin Whitaker
2bf1623733
Halt CPU cores that are not active in a test.
...
This saves a lot of power when performing sequential tests.
2022-02-12 19:30:14 +00:00
Martin Whitaker
93343db711
Remove redundant barrier.
2022-02-07 18:50:22 +00:00
Martin Whitaker
3028cd31f9
Increase sleep time when polling for all other APs started.
...
Also fix warning about usleep not being defined.
2022-02-05 18:07:03 +00:00
Martin Whitaker
242bd77927
Remove unwanted debug code.
2022-02-05 18:04:38 +00:00
Martin Whitaker
503aea321d
Remove redundant start_mutex.
...
The mutex is now implemented in the assembly language boot code.
2022-02-05 18:03:32 +00:00
Martin Whitaker
13efd906f1
Guard against an AP starting more than once.
2022-02-03 19:48:27 +00:00
Martin Whitaker
dcac527068
Don't make assumptions about usable memory.
...
When using a legacy BIOS, the memory regions used by the BIOS are well
defined. This is not the case when using a UEFI BIOS. So include the
stack area in the BSS so the loader knows how much memory to allocate,
and check we have space to relocate the program to either low or high
memory.
There are still some assumptions in the USB driver code that need to
be fixed.
2022-02-02 12:20:39 +00:00
Martin Whitaker
fb0f1a7fe5
Don't start APs until after dummy runs have finished.
...
This should significantly improve startup time on machines with many
cores, as the barriers become no-ops during the dummy runs.
2022-02-01 23:50:49 +00:00
Martin Whitaker
ccab9ab081
Fix operation with a subset of CPU cores enabled.
...
The last commit removed too much - there are a couple of places where
we need to use a virtual CPU number rather than a physical CPU number.
2022-02-01 15:38:06 +00:00
Martin Whitaker
16d55b7dad
Remove distinction between physical and virtual CPUs.
...
This is no longer needed, now we can display as many CPUs as we can
physically handle.
2022-01-31 22:59:14 +00:00
Martin Whitaker
4100a44b12
Properly protect the startup stack with a mutex.
...
Because we start the APs sequentially, it is unlikely they will coincide
for the brief period that they use the temporary startup stack, but we
should guard against it. This allows us to remove the mutex around the
restart of each AP when relocating, which should improve test times.
2022-01-31 21:54:24 +00:00
Martin Whitaker
17093a96f9
Optimise the AP startup code to reduce the startup delay.
2022-01-31 19:47:32 +00:00
Martin Whitaker
ab278566e4
Bypass start barriers during dummy runs.
...
This should speed up the dummy runs on distributed SMP systems.
2022-01-29 17:11:46 +00:00
Martin Whitaker
f04cb1adb6
Make spinner rotate at a constant speed.
2022-01-29 15:06:21 +00:00
Martin Whitaker
09890bf0cd
Support more than 32 CPU cores in main display.
...
Either one core is active or all enabled cores are active, so we don't
really need a separate spinner for each core.
2022-01-29 15:06:05 +00:00
Martin Whitaker
733919966d
Add support for boot command line options.
2021-12-23 14:08:02 +00:00
Martin Whitaker
8069b8724b
Initial support for native USB keyboard interface.
...
This adds support for USB keyboards connected directly to an OHCI
or XHCI controller.
2021-12-22 17:31:06 +00:00
Martin Whitaker
ec676ccab2
Add debug trace for ACPI RSDP search results.
2020-12-11 16:18:45 +00:00
Martin Whitaker
27c5fe363f
Add startup option to enable/disable SMP.
2020-12-10 13:51:39 +00:00
Martin Whitaker
452891db34
Remove now unnecessary remap before restart.
2020-05-30 11:06:15 +01:00
Martin Whitaker
e5fc5a0ed6
Fix infinite loops when testing restricted address ranges.
2020-05-29 20:04:11 +01:00
Martin Whitaker
fbd3376668
Initial commit.
2020-05-24 21:30:55 +01:00