summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-support/rng-tools
AgeCommit message (Collapse)AuthorFilesLines
2020-09-15rng-tools: use 'hw-rng' to disable libjitterentropyPatrick Williams1-2/+15
The warrior version of rng-tools introduced an optional PACKAGECONFIG, which was enabled by default, called `libjitterentropy`. For BMC chips which have a hardware RNG, this is not a necessary feature, and causes a noticeable delay in the start of the rngd. On systems with very low IO activity we are seeing cases of what appears to be hangs. Define a machine feature which can be used to disable the PACKAGECONFIG for machines which contain a BMC chip with a hardware RNG. Aspeed has one which is supported; Nuvoton currently does not. (From meta-phosphor rev: e60e3098c981ece700a855ddc0daf2bdddf0a7da) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie4a26e6ca22fe0d7ee9470062f5b26ac733454f2 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2019-05-21rng-tools: Lower niceness of rngdWilliam A. Kennington III2-0/+19
This gives more CPU time to the daemons and requests are are more important to run in a timely matter. We can see that we reach ipmid coming up and multi-user ~20s faster on an ast2500. Before priority reduction: root@zaius:~# journalctl -u phosphor-ipmi-host -o short-monotonic -- Logs begin at Thu 2019-05-16 07:27:57 UTC, end at Thu 2019-05-16 07:31:25 UTC. -- [ 86.855857] zaius systemd[1]: Starting Phosphor Inband IPMI... [ 91.624926] zaius ipmid[1423]: JSON file not found [ 93.436815] zaius systemd[1]: Started Phosphor Inband IPMI. [ 94.615676] zaius ipmid[1423]: Loading whitelist filter [ 94.686476] zaius ipmid[1423]: Set restrictedMode = false [ 95.791197] zaius ipmid[1423]: New interface mapping root@zaius:~# journalctl -u multi-user.target -o short-monotonic -- Logs begin at Thu 2019-05-16 07:27:57 UTC, end at Thu 2019-05-16 07:31:25 UTC. -- After priority reduction: [ 106.580622] zaius systemd[1]: Reached target Multi-User System. root@zaius:~# journalctl -u phosphor-ipmi-host -o short-monotonic -- Logs begin at Thu 2019-05-16 07:38:53 UTC, end at Thu 2019-05-16 07:41:20 UTC. -- [ 70.097045] zaius systemd[1]: Starting Phosphor Inband IPMI... [ 73.578294] zaius ipmid[1423]: JSON file not found [ 75.026965] zaius systemd[1]: Started Phosphor Inband IPMI. [ 76.143958] zaius ipmid[1423]: Loading whitelist filter [ 76.301370] zaius ipmid[1423]: Set restrictedMode = false [ 76.945443] zaius ipmid[1423]: Command in process, no attention [ 77.062437] zaius ipmid[1423]: New interface mapping root@zaius:~# journalctl -u multi-user.target -o short-monotonic -- Logs begin at Thu 2019-05-16 07:38:53 UTC, end at Thu 2019-05-16 07:41:20 UTC. -- [ 83.550371] zaius systemd[1]: Reached target Multi-User System. (From meta-phosphor rev: fb85bf908cf4106e131dafdb653064cb34106992) Change-Id: Ie22e5044bb0ef2d2f893a98f657e2083a1789e26 Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-05-21rng-tools: Remove our customizationsWilliam A. Kennington III2-25/+0
The upstream rng-tools ships a systemd unit as a standard part of the package now so we don't need to define our own custom one. (From meta-phosphor rev: 2ced95119fe18b7ac75ea27df869043445734787) Change-Id: I0b9aaeb17ff85f0ccabb268e10ca48501763da66 Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-06meta-phosphor: Move layer content from common/Brad Bishop2-0/+25
Adopt a more conventional directory hierarchy. meta-phosphor is still a _long_ way from suitable for hosting on yoctoproject.org but things like this don't help. (From meta-phosphor rev: 471cfcefa74b8c7ceb704cb670e6d915cf27c63b) Change-Id: I3f106b2f6cdc6cec734be28a6090800546f362eb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>