Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sysctl on Pinebook never finishes



[ 46451.878690] sun8icrypto0: no free channels
Then, sysctl -a works. PR?

Should be fixed in sun8i_crypto.c 1.31.

For the record: this is not related to entropy.  This was just a bug
in a driver.  The driver happens to be the driver for the crypto
engine via the hw.sun8icrypto0.rng sysctl knob which draws from the
HWRNG.

The crypto engine's HWRNG is used for kernel entropy, but the sysctl
is for reading from the crypto engine's HWRNG directly to study it.
The bug affected all crypto engine operations -- the same bug would
have affected any use of opencrypto(9) or /dev/crypto, e.g.  for
IPsec, to do crypto operations using the same channels as the HWRNG.

It is a coincidence that it started failing immediately with the
message you saw after you added entropy -- there are only eight
channels in the crypto engine, and the bug meant that tasks would
never complete on any channel, so it only takes eight attempts for new
attempts to start failing immediately with no free channels.

Very interesting :)

Yes, with an updated kernel, sysctl and tincd work. Setting CPU frequency doesn't, but that's a separate issue.

Thanks very much!
John


Home | Main Index | Thread Index | Old Index