search for: seed_delay

Displaying 7 results from an estimated 7 matches for "seed_delay".

Did you mean: read_delay
2014 Jul 14
2
[RFC PATCH 1/3] hw_random: allow RNG devices to give early randomness after a delay
...e above hunks. > +{ > + if (!(rng->flags & HWRNG_DELAY_READ_AT_INIT)) > + return get_early_randomness(rng); > + > + schedule_delayed_work(&rng->dwork, msecs_to_jiffies(500)); > +} > + Perhaps instead of rng->flags and a hardcoded delay, we could have rng->seed_delay = msecs_to_jiffies(500) in virtio-rng? Then you can just call unconditionally: schedule_delayed_work(&rng->dwork, rng->seed_delay); I think that would be a more extensible solution should other drivers show up with the same issue. thx, Jason.
2014 Jul 14
2
[RFC PATCH 1/3] hw_random: allow RNG devices to give early randomness after a delay
...e above hunks. > +{ > + if (!(rng->flags & HWRNG_DELAY_READ_AT_INIT)) > + return get_early_randomness(rng); > + > + schedule_delayed_work(&rng->dwork, msecs_to_jiffies(500)); > +} > + Perhaps instead of rng->flags and a hardcoded delay, we could have rng->seed_delay = msecs_to_jiffies(500) in virtio-rng? Then you can just call unconditionally: schedule_delayed_work(&rng->dwork, rng->seed_delay); I think that would be a more extensible solution should other drivers show up with the same issue. thx, Jason.
2014 Jul 14
0
[RFC PATCH 1/3] hw_random: allow RNG devices to give early randomness after a delay
...->flags & HWRNG_DELAY_READ_AT_INIT)) > > + return get_early_randomness(rng); > > + > > + schedule_delayed_work(&rng->dwork, msecs_to_jiffies(500)); > > +} > > + > > Perhaps instead of rng->flags and a hardcoded delay, we could have > rng->seed_delay = msecs_to_jiffies(500) in virtio-rng? Then you can > just call unconditionally: > > schedule_delayed_work(&rng->dwork, rng->seed_delay); > > I think that would be a more extensible solution should other drivers > show up with the same issue. Sounds like a good idea...
2014 Jul 18
2
[RFC PATCH 1/3] hw_random: allow RNG devices to give early randomness after a delay
...T)) > > > + return get_early_randomness(rng); > > > + > > > + schedule_delayed_work(&rng->dwork, msecs_to_jiffies(500)); > > > +} > > > + > > > > Perhaps instead of rng->flags and a hardcoded delay, we could have > > rng->seed_delay = msecs_to_jiffies(500) in virtio-rng? Then you can > > just call unconditionally: > > > > schedule_delayed_work(&rng->dwork, rng->seed_delay); BTW I didn't want to make this call unconditional -- i.e. the existing behaviour of in-line fetching of randomness for...
2014 Jul 18
2
[RFC PATCH 1/3] hw_random: allow RNG devices to give early randomness after a delay
...T)) > > > + return get_early_randomness(rng); > > > + > > > + schedule_delayed_work(&rng->dwork, msecs_to_jiffies(500)); > > > +} > > > + > > > > Perhaps instead of rng->flags and a hardcoded delay, we could have > > rng->seed_delay = msecs_to_jiffies(500) in virtio-rng? Then you can > > just call unconditionally: > > > > schedule_delayed_work(&rng->dwork, rng->seed_delay); BTW I didn't want to make this call unconditional -- i.e. the existing behaviour of in-line fetching of randomness for...
2014 Jul 14
4
[RFC PATCH 0/3] hw_random: support for delayed init randomness requests
Hello, This series introduces a way to allow devices to contribute to initial system randomness after a certain delay. Specifically, the virtio-rng device can contribute initial randomness only after a successful probe(). A delayed workqueue item is queued in the system queue to fetch this randomness if the device indicates it's capable of contributing only after a delay, via the new
2014 Jul 14
4
[RFC PATCH 0/3] hw_random: support for delayed init randomness requests
Hello, This series introduces a way to allow devices to contribute to initial system randomness after a certain delay. Specifically, the virtio-rng device can contribute initial randomness only after a successful probe(). A delayed workqueue item is queued in the system queue to fetch this randomness if the device indicates it's capable of contributing only after a delay, via the new