Message ID | 200904090954.54601.rgetz@blackfin.uclinux.org |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
On Thu, 2009-04-09 at 09:54 -0400, Robin Getz wrote: > On Wed 8 Apr 2009 15:51, Matt Mackall pondered: > > On Tue, 2009-04-07 at 17:44 -0400, Robin Getz wrote: > > > Is that "Everything in general, with a few exceptions", or > > > "__Everything__"? > > > > Everything. We want every input point to better document the type of > > entropy source. > > OK - any objections to something like this? Hmm, this is a purely internal interface. Not sure if we need to bother with scheduling it. My plan was to simply get the new code in and sweep the kernel.
On Thu 9 Apr 2009 13:00, Matt Mackall pondered: > On Thu, 2009-04-09 at 09:54 -0400, Robin Getz wrote: > > On Wed 8 Apr 2009 15:51, Matt Mackall pondered: > > > On Tue, 2009-04-07 at 17:44 -0400, Robin Getz wrote: > > > > Is that "Everything in general, with a few exceptions", or > > > > "__Everything__"? > > > > > > Everything. We want every input point to better document the type of > > > entropy source. > > > > OK - any objections to something like this? > > Hmm, this is a purely internal interface. Not sure if we need to bother > with scheduling it. My plan was to simply get the new code in and sweep > the kernel. Yeah - it just stops people from putting in more places you need to change later. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
> Hmm, this is a purely internal interface. Not sure if we need to bother > with scheduling it. My plan was to simply get the new code in and sweep > the kernel. Matt, sounds like you're volunteering? :) From my understanding, the roadmap looks something like: 1. Add checkpatch warning about IRQF_SAMPLE_RANDOM 2. Add any new add_*_randomness() functions (e.g. RTC and main clocks? Serial or USB interrupts?) 3. Remove IRQF_SAMPLE_RANDOM macro (and checkpatch warning) 4. Add "pragmatic entropy accounting model"? chris -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, 2009-04-09 at 18:29 -0700, Chris Peterson wrote: > > Hmm, this is a purely internal interface. Not sure if we need to bother > > with scheduling it. My plan was to simply get the new code in and sweep > > the kernel. > > Matt, sounds like you're volunteering? :) > > >From my understanding, the roadmap looks something like: > > 1. Add checkpatch warning about IRQF_SAMPLE_RANDOM > 2. Add any new add_*_randomness() functions (e.g. RTC and main clocks? > Serial or USB interrupts?) > 3. Remove IRQF_SAMPLE_RANDOM macro (and checkpatch warning) > 4. Add "pragmatic entropy accounting model"? Yeah, I just sat down with Ted Tso this evening and hashed out a new design. More to come.
=================================================================== --- Documentation/feature-removal-schedule.txt (revision 6236) +++ Documentation/feature-removal-schedule.txt (working copy) @@ -6,6 +6,19 @@ --------------------------- +What: IRQF_SAMPLE_RANDOM +Check: IRQF_SAMPLE_RANDOM +When: July 2009 +Why: Many of IRQF_SAMPLE_RANDOM users are technically bogus as entropy + sources in the kernel's current entropy model. To resolve this, every + input point to the kernel's entropy pool needs to better document the + type of entropy source it actually is. This will be replaced with + additional add_*_randomness functions in drivers/char/random.c + +Who: Robin Getz <rgetz@blackfin.uclinux.org> & Matt Mackall <mpm@selenic.com> + +--------------------------- + Then if someone attempts to add it, and runs checkpatch, it will generate