On Wed, 26 Mar 2008, Linus Torvalds wrote:Actually, before we go any further, there might be a less intrusive alternative: add just a couple of flags to the resource flags field (we still have something like 8 unused bits on 32-bit), and use those to implement a generic "resource_alignment()" routine. Two flags would do it: - IORESOURCE_SIZEALIGN: size indicates alignment (regular PCI device resources) - IORESOURCE_STARTALIGN: start field is alignment (PCI bus resources during probing) and then the case of both flags zero (or both bits set) would actually be "invalid", and we would also clear the IORESOURCE_STARTALIGN flag when we actually allocate the resource (so that we don't use the "start" field as alignment incorrectly when it no longer indicates alignment). That wouldn't be totally generic, but it would have the nice property of automatically at least add sanity checking for that whole "res->start has the odd meaning of 'alignment' during probing" and remove the need for a new field, and it would allow us to have a generic "resource_alignment()" routine that just gets a resource pointer. Linus --
| Ryan Hope | reiser4 for 2.6.27-rc1 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Andrew Morton | Re: 2.6.20-rc6-mm3 |
| Pierre Ossman | Re: [RFC][PATCH] cpuidle: avoid singing capacitors |
git: | |
| Johannes Schindelin | Re: rc4 - make quick-install-doc is broken |
| Johannes Schindelin | Re: Git benchmarks at OpenOffice.org wiki |
| Shawn O. Pearce | Re: Smart fetch via HTTP? |
| Ken Pratt | pack operation is thrashing my server |
| Chris | avoid logging useless ssh brute force attempts |
| Henning Brauer | Re: httpdv6 |
| Freddy DISSAUX | Re: acer aspire one dmesg? |
| stuartv | Re: Microsoft gets the Most Secure Operating Systems award |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Stephen Pierce | SLS |
| Doug Evans | Re: Stabilizing Linux |
| Les Andrzejewski | X386/WD90C31/SUMSUNG SYNC MASTER 4 |
