remove 2.2 support?
testing and fixing 2.2 support was a real pain at the end of the 2.7.0 cycle. It also adds a lot of cruft in the drivers and adds to patch misery.
What do you think of removing 2.2 support and making 2.7.0 the last 2.2-compatible release? For reference, we dropped 2.0 support in release 2.5.0, March 2000.
mds
Quoted 6 lines
testing and fixing 2.2 support was a real pain at the end of the 2.7.0 cycle. It also adds a lot of cruft in the drivers and adds to patch misery. What do you think of removing 2.2 support and making 2.7.0 the last 2.2-compatible release? For reference, we dropped 2.0 support in release 2.5.0, March 2000. mds
Though dropping support is something serious and I don't especially like it, I think you're right. However, I'd prefer that we drop support only on a .0 release. That way, there's still a possibility to release a fix if something appears to go wrong. So, we'd better release the next version as 2.8.0 if it doesn't support kernels 2.2, which will let us have a 2.7.1 someday if the 2.7.0 release is to be known has having any serious problem.
Any objection?
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines
(...) I'm trying
to imagine why people might be using 2.2.x kernels still (...)
I'm still using some, guess for what? Testing lm_sensors before release ;))
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
I don't think 2.2 support is very critical at this point. I'm trying to imagine why people might be using 2.2.x kernels still, and I think it might be likely that they are running 2.2.x on older hardware with older installs. In that case, keeping support for bleeding edge hardware drivers going for those kernels is not nessesary (if they are bothering to even keep things patched up).
Like what Jean suggests and Mark implies, let's call it 2.8.0 when we do it.
Phil
Quoted 20 lines · Jean Delvare
Quoted 7 lines
testing and fixing 2.2 support was a real pain at the end of the 2.7.0 cycle. It also adds a lot of cruft in the drivers and adds to patch misery. What do you think of removing 2.2 support and making 2.7.0 the last 2.2-compatible release? For reference, we dropped 2.0 support in release 2.5.0, March 2000. mds
Though dropping support is something serious and I don't especially like it, I think you're right. However, I'd prefer that we drop support only on a .0 release. That way, there's still a possibility to release a fix if something appears to go wrong. So, we'd better release the next version as 2.8.0 if it doesn't support kernels 2.2, which will let us have a 2.7.1 someday if the 2.7.0 release is to be known has having any serious problem.
Any objection?
OK, it's unanimous.
Let's wait until mid-January to see if any critical problems appear in 2.7.0 (it appears that the sensors segfaults are caused by old libraries in /usr/lib, I put a note on the home page, we'll see... there may be a libc 2.3 problem as well, not sure yet).
In about 2 weeks I'll send out another message, and then we can remove the 2.2 support, and the next release will be 2.8.0.
Quoted 7 lines · Jean Delvare
Quoted 2 lines
(...) I'm trying
to imagine why people might be using 2.2.x kernels still (...)I'm still using some, guess for what? Testing
lm_sensorsbefore release ;))
Due to the recent discussions re: kernel 2.5.54, and the lack of any critical problems with 2.7.0, I declare the two weeks over in record time :)
If you intend to do any of the 2.4 cleanup you may wish to let people know.
I'll start by backporting the drivers from 2.5.54 back to CVS.
Remember, don't do any refcount changes yet as that will break 2.4 compatibility.
Quoted 21 lines · Mark Studebaker
OK, it's unanimous.
Let's wait until mid-January to see if any critical problems appear in 2.7.0 (it appears that the sensors segfaults are caused by old libraries in
/usr/lib, I put a note on the home page, we'll see... there may be a libc 2.3 problem as well, not sure yet).In about 2 weeks I'll send out another message, and then we can remove the 2.2 support, and the next release will be 2.8.0.
Quoted 8 lines · Jean Delvare
Quoted 2 lines
(...) I'm trying
to imagine why people might be using 2.2.x kernels still (...)I'm still using some, guess for what? Testing
lm_sensorsbefore release ;))
Thanks Ky?sti
for the 2.4 cleanup.
We have a vote from Ky?sti for branching.
Albert suggested the same thing to me in an email.
Pavel suggested abandoning CVS and doing everything in Linus' tree.
I'm really reluctant to branch but it may be the only realistic way to do it unless somebody volunteers to do patches manually (and perpetually).
I guess we would do the 2.4 cleanup on the sensors side, then release 2.8.0, then branch?
Comments/opinions please...
Quoted 19 lines · Ky?sti M?lkki
Quoted 6 lines · Mark Studebaker
Due to the recent discussions re: kernel 2.5.54, and the lack of any critical problems with 2.7.0, I declare the two weeks over in record time :)
If you intend to do any of the 2.4 cleanup you may wish to let people know.
Okay. I have i2c tree under inspection, removing any < 2.4 #ifdefs. I understand you gave a green light for these commits?
Once done with that, I would like to branch in CVS for 2.5 development, and trace back changes from Linus's tree.
Also, i2c headers could use a cleanup there.
I think you are right that there is no reason to release before branching. We do need to test and then tag before branching.
I'll try and test your i2c changes soon.
I think also there is no reason to branch both i2c and sensors at the same time. sensors will obviously take longer.
I suppose we would release 2.5 code as 3.0.0
and 2.4 code as 2.8.0?
I read up on CVS branching a little bit. I guess you are propsing that 2.5 becomes HEAD and 2.4 becomes something else. Then you use -r branchname to pick a branch.
Phil, really need to hear opinions from you on this.
mds
Quoted 26 lines · Ky?sti M?lkki
Quoted 6 lines · Mark Studebaker
We have a vote from Ky?sti for branching.
Albert suggested the same thing to me in an email.
Pavel suggested abandoning CVS and doing everything in Linus' tree.I'm really reluctant to branch but it may be the only realistic way to do it unless somebody volunteers to do patches manually (and perpetually).
There was still a choice of what to branch. Choosing wisely, we can limit commits between branches to one direction.
I suggest we have main branch for 2.5 development,
- Some day 2.5 results become main anyway.
- Patches to 2.4 are not likely to touch kernel interfaces -> merging 2.4->2.5 painless
- Patches to 2.5 are likely to touch kernel interfaces only -> little to none merges 2.5->2.4I see no reason to release 2.8.0 immediately. Just tag CVS before we branch, then do 2.4<->2.5 cleanup and de release once there is something new to offer.
(Sorry to chime in kinda late on this, but I'm trying to digest it.)
Humm, I guess we are touching on three issues in regard to the CVS, 2.4.x releases, and 2.5.x kernel sync ups:
- having some support for 2.4.x kernels, at least until 2.6.0 is released.
- submitting and receiving sync patches (Linus') to a rolling 2.5.x base
- continued easy development/maintenance (including alpha and beta quality stuff)
We should keep CVS, just for the sake of an already easy, established development platform. I think we agree with that.
I don't like the idea of branching because it means there is more to worry about, *but* it may not be avoidable (at least for a while). Having 2.5 be HEAD and a secondary branch for 2.4.x kernels (which will go dormant eventually) is a good idea. Is there a reason to branch i2c as well, or can we simply freeze the 2.4.x kernel version of it for simplicity? (if it helps)
What we are left with is how to deal with alpha or beta stuff which is written against HEAD but is not worthy/safe enough to submit in a patch to Linus. It should be obvious and deliberate enough to safely keep questionable code in a place (or way?) which won't accidentially make it into the kernel before it's time. In any case, I want to keep it easy, still, to have drivers which will be broken at any point to make the barrier to entry of new drivers (bus and chip) low. Does this make sense?
Removing some stuff to make the project easier to maintain is a good idea (as we already decided about the 2.2 kernel stuff). I wonder how long we will still need stuff like mkpatch, too? If we can solve the long-term development problems by removing legacy utils, it could be helpful to make less to worry about.
Phil
Quoted 52 lines · Mark Studebaker
I think you are right that there is no reason to release before branching.
We do need to test and then tag before branching. I'll try and test your i2c changes soon.I think also there is no reason to branch both i2c and sensors at the same time. sensors will obviously take longer.
I suppose we would release 2.5 code as 3.0.0
and 2.4 code as 2.8.0?I read up on CVS branching a little bit. I guess you are propsing that 2.5 becomes HEAD and 2.4 becomes something else. Then you use -r branchname to pick a branch.
Phil, really need to hear opinions from you on this.
mds
Quoted 28 lines · Ky?sti M?lkki
Quoted 7 lines · Mark Studebaker
We have a vote from Ky?sti for branching.
Albert suggested the same thing to me in an email.
Pavel suggested abandoning CVS and doing everything in Linus' tree.I'm really reluctant to branch but it may be the only realistic way to do it
unless somebody volunteers to do patches manually (and perpetually).There was still a choice of what to branch. Choosing wisely, we can limit commits between branches to one direction.
I suggest we have main branch for 2.5 development,
- Some day 2.5 results become main anyway.
- Patches to 2.4 are not likely to touch kernel interfaces -> merging 2.4->2.5 painless
- Patches to 2.5 are likely to touch kernel interfaces only -> little to none merges 2.5->2.4I see no reason to release 2.8.0 immediately. Just tag CVS before we branch, then do 2.4<->2.5 cleanup and de release once there is something new to offer.
so, tell me if this is a good plan, or if this is what you said... (sorry if I am still a little confused...)
You are going to submit i2c changes (including refcount changes), based on lk2-4, for inclusion in 2.4.21?
And then our i2c 2.8.0 release would be only for kernels 2.4.21+. Our i2c 3.0.0 release (from HEAD) would be only for kernels 2.5.54+. And our 2.7.0 release would be the last for kernels 2.2 - 2.4.20.
If and only if we wanted to make another i2c release that was compatible for kernels 2 4.9 - 2.4.20 (hopefullly not) would we branch again, at the tag POST-2-4-9-KERNELS, and generate a release from that branch.
For sensors we would do something similar, following your instructions below...
mds
Quoted 80 lines · Ky?sti M?lkki
Quoted 6 lines · Philip Edelbrock
(Sorry to chime in kinda late on this, but I'm trying to digest it.)
Humm, I guess we are touching on three issues in regard to the CVS, 2.4.x releases, and 2.5.x kernel sync ups:
- having some support for 2.4.x kernels, at least until 2.6.0 is released.
As I wrote to log, we used 2.2 style module counting in 2.4. As 2.4 and 2.5 have only little difference there, this is not a strong argument to branch for 2.4.
Quoted 1 line
- submitting and receiving sync patches (Linus') to a rolling 2.5.x base
This is strong argument for branch, module refcounting and other patches went past the CVS to 2.5. And 2.5 did not have the latest of CVS before this happened so merging was not that painless.
Quoted 2 lines
- continued easy development/maintenance (including alpha and beta quality stuff)
See above. It is possible to branch a single file for very beta stuff one wishes to distribute for testing.
Quoted 9 lines
We should keep CVS, just for the sake of an already easy, established development platform. I think we agree with that.
I don't like the idea of branching because it means there is more to worry about, *but* it may not be avoidable (at least for a while). Having 2.5 be HEAD and a secondary branch for 2.4.x kernels (which will go dormant eventually) is a good idea. Is there a reason to branch i2c as well, or can we simply freeze the 2.4.x kernel version of it for simplicity? (if it helps)
Expect some changes to i2c api during 2.5 cycle, once they are in, port them back to 2.4. After that, we could consider merging 2.4 back to main.
Quoted 8 lines
What we are left with is how to deal with alpha or beta stuff which is written against HEAD but is not worthy/safe enough to submit in a patch to Linus. It should be obvious and deliberate enough to safely keep questionable code in a place (or way?) which won't accidentially make it into the kernel before it's time. In any case, I want to keep it easy, still, to have drivers which will be broken at any point to make the barrier to entry of new drivers (bus and chip) low. Does this make sense?
Quoted 5 lines
Removing some stuff to make the project easier to maintain is a good idea (as we already decided about the 2.2 kernel stuff). I wonder how long we will still need stuff like mkpatch, too? If we can solve the long-term development problems by removing legacy utils, it could be helpful to make less to worry about.
We still need mkpatch -like utility to fix include files. As is today, some drivers are not patched.
As for sensors compatibility, due the changes in module refcounting for 2.4, compile with lk2-4 will not work. Use POST-2-4-9-KERNELS instead.
To fix this, in sensors CVS I would do:
- cvs up
- tag LAST-PRE-2-4-X-KERNEL
- drop < 2-4-X support
- tag POST-2-4-X-KERNEL
- tag LAST-PRE-2-8-0-I2C
- fix module refcounting to use .owner
- tag POST-2-8-0-I2C
- consider PCI changes 2.4<->2.5, branch if necessary
Quoted 52 lines · Ky?sti M?lkki
Quoted 5 lines · Mark Studebaker
so, tell me if this is a good plan, or if this is what you said... (sorry if I am still a little confused...)
You are going to submit i2c changes (including refcount changes), based on lk2-4, for inclusion in 2.4.21?
Yes, or actually I hope the one who has been maintaining patches so far to 2.4 would comment on this. Albert?
Quoted 3 lines
And then our i2c 2.8.0 release would be only for kernels 2.4.21+. Our i2c 3.0.0 release (from HEAD) would be only for kernels 2.5.54+. And our 2.7.0 release would be the last for kernels 2.2 - 2.4.20.
The code from lk2-4 should work and compile with 2.4.9 too. The original 2.4.9's i2c drivers (video4linux) will fail to compile, or needs patch like the ones for 2.4.20 and 2.4.21-pre3 I posted.
Quoted 1 line
From HEAD, I would only support the latest of 2.5. We can use tags like
lk2-5-90 to note this is i2c as of 2.5.90, I see no point of supporting all of 2.5.54+ from HEAD, until 2.6 comes around.
Quoted 3 lines
If and only if we wanted to make another i2c release that was compatible for kernels 2 4.9 - 2.4.20 (hopefullly not) would we branch again, at the tag POST-2-4-9-KERNELS, and generate a release from that branch.
Either that to use inc/dec_use refcounting, or create incremental patches to modify 2.4 tree i2c drivers for .owner.
Quoted 2 lines
For sensors we would do something similar, following your instructions below...
I reworked it a bit:
Quoted 7 lines
Quoted 7 lines
- cvs up
- tag LAST-PRE-2-4-X-KERNEL
- tag LAST-PRE-2-8-0-I2C
- drop < 2-4-X support
- fix module refcounting to use .owner
- tag POST-2-8-0-I2C
- consider PCI changes 2.4<->2.5, branch if necessaryLooking at amd756 ported back from 2.5, the PCI changes are apparently in 2.4 too. There may not be need to branch sensors at all, as the dependency is to the .owner refcounting that applies to both 2.4 and 2.5 trees if our i2c lk2-4 is accepted.
The tag LAST-PRE-2-4-X-KERNEL is to branch if we find severe problems we need to fix for 2.2 kernels. Hopefully not.
Quoted 7 lines
I have got sensors .owner changes in my working directory. While at it, I have changed drivers to use module_init/exit, have removed a lot of #ifdef MODULE everywhere. And just generally break it.
--
Ky?sti M?lkki
[email protected]
I could put my $0.02 in, but Linus will not accept patches from me anymore. My belief is the changes you are making would make him happy and give him faith that the drivers have very good support. I was screwing this up.
I would hope that any created patch could be reviewed and tested by sensors people before submitting.
BTW Linus only accepts 2.5 [email protected] and Marcello accepts 2.4 [email protected] Albert
Signature · 2 lines
Albert Cranford Deerfield Beach FL USA [email protected]
Quoted 6 lines · Mark Studebaker
Due to the recent discussions re: kernel 2.5.54, and the lack of any critical problems with 2.7.0, I declare the two weeks over in record time :)
If you intend to do any of the 2.4 cleanup you may wish to let people know.
Okay. I have i2c tree under inspection, removing any < 2.4 #ifdefs. I understand you gave a green light for these commits?
Once done with that, I would like to branch in CVS for 2.5 development, and trace back changes from Linus's tree.
Also, i2c headers could use a cleanup there.
Signature · 2 lines
Ky?sti M?lkki [email protected]
Quoted 6 lines · Mark Studebaker
We have a vote from Ky?sti for branching.
Albert suggested the same thing to me in an email.
Pavel suggested abandoning CVS and doing everything in Linus' tree.I'm really reluctant to branch but it may be the only realistic way to do it unless somebody volunteers to do patches manually (and perpetually)
For 2.5 branch in CVS, I would use tags like lk2-5-53 to match it with Linus's releases. And not bother with any KERNEL_VERSION there, if one wants 2.5 she/he, will use the latest anyway.
Quoted 2 lines
I guess we would do the 2.4 cleanup on the sensors side, then release 2.8.0, then branch?
Tag CVS before cleanup commit, I used LATEST-PRE-2.4.9-KERNEL for i2c.
Signature · 2 lines
Ky?sti M?lkki [email protected]
Quoted 6 lines · Mark Studebaker
We have a vote from Ky?sti for branching.
Albert suggested the same thing to me in an email.
Pavel suggested abandoning CVS and doing everything in Linus' tree.I'm really reluctant to branch but it may be the only realistic way to do it unless somebody volunteers to do patches manually (and perpetually).
There was still a choice of what to branch. Choosing wisely, we can limit commits between branches to one direction.
I suggest we have main branch for 2.5 development,
- Some day 2.5 results become main anyway.
- Patches to 2.4 are not likely to touch kernel interfaces -> merging 2.4->2.5 painless
- Patches to 2.5 are likely to touch kernel interfaces only -> little to none merges 2.5->2.4
I see no reason to release 2.8.0 immediately. Just tag CVS before we branch, then do 2.4<->2.5 cleanup and de release once there is something new to offer.
Signature · 2 lines
Ky?sti M?lkki [email protected]
I have i2c now in sync with 2.5.54, waiting for branch.
The same thing as sensors.h suffered happened to i2c-dev.h, userland exports were removed. So I left that part unpathced.
There are some bits worth of porting back to 2.4:
- check_region vs. request_region
- MINOR() vs minor() for /dev
- /dev with devfs
Signature · 2 lines
Ky?sti M?lkki [email protected]
Quoted 6 lines · Philip Edelbrock
(Sorry to chime in kinda late on this, but I'm trying to digest it.)
Humm, I guess we are touching on three issues in regard to the CVS, 2.4.x releases, and 2.5.x kernel sync ups:
- having some support for 2.4.x kernels, at least until 2.6.0 is released.
As I wrote to log, we used 2.2 style module counting in 2.4. As 2.4 and 2.5 have only little difference there, this is not a strong argument to branch for 2.4.
Quoted 1 line
- submitting and receiving sync patches (Linus') to a rolling 2.5.x base
This is strong argument for branch, module refcounting and other patches went past the CVS to 2.5. And 2.5 did not have the latest of CVS before this happened so merging was not that painless.
Quoted 2 lines
- continued easy development/maintenance (including alpha and beta quality stuff)
See above. It is possible to branch a single file for very beta stuff one wishes to distribute for testing.
Quoted 9 lines
We should keep CVS, just for the sake of an already easy, established development platform. I think we agree with that.
I don't like the idea of branching because it means there is more to worry about, *but* it may not be avoidable (at least for a while). Having 2.5 be HEAD and a secondary branch for 2.4.x kernels (which will go dormant eventually) is a good idea. Is there a reason to branch i2c as well, or can we simply freeze the 2.4.x kernel version of it for simplicity? (if it helps)
Expect some changes to i2c api during 2.5 cycle, once they are in, port them back to 2.4. After that, we could consider merging 2.4 back to main.
Quoted 8 lines
What we are left with is how to deal with alpha or beta stuff which is written against HEAD but is not worthy/safe enough to submit in a patch to Linus. It should be obvious and deliberate enough to safely keep questionable code in a place (or way?) which won't accidentially make it into the kernel before it's time. In any case, I want to keep it easy, still, to have drivers which will be broken at any point to make the barrier to entry of new drivers (bus and chip) low. Does this make sense?
Quoted 5 lines
Removing some stuff to make the project easier to maintain is a good idea (as we already decided about the 2.2 kernel stuff). I wonder how long we will still need stuff like mkpatch, too? If we can solve the long-term development problems by removing legacy utils, it could be helpful to make less to worry about.
We still need mkpatch -like utility to fix include files. As is today, some drivers are not patched.
As for sensors compatibility, due the changes in module refcounting for 2.4, compile with lk2-4 will not work. Use POST-2-4-9-KERNELS instead.
To fix this, in sensors CVS I would do:
- cvs up
- tag LAST-PRE-2-4-X-KERNEL
- drop < 2-4-X support
- tag POST-2-4-X-KERNEL
- tag LAST-PRE-2-8-0-I2C
- fix module refcounting to use .owner
- tag POST-2-8-0-I2C
- consider PCI changes 2.4<->2.5, branch if necessary
Signature · 2 lines
Ky?sti M?lkki [email protected]
Quoted 5 lines · Mark Studebaker
so, tell me if this is a good plan, or if this is what you said... (sorry if I am still a little confused...)
You are going to submit i2c changes (including refcount changes), based on lk2-4, for inclusion in 2.4.21?
Yes, or actually I hope the one who has been maintaining patches so far to 2.4 would comment on this. Albert?
Quoted 3 lines
And then our i2c 2.8.0 release would be only for kernels 2.4.21+. Our i2c 3.0.0 release (from HEAD) would be only for kernels 2.5.54+. And our 2.7.0 release would be the last for kernels 2.2 - 2.4.20.
The code from lk2-4 should work and compile with 2.4.9 too. The original 2.4.9's i2c drivers (video4linux) will fail to compile, or needs patch like the ones for 2.4.20 and 2.4.21-pre3 I posted.
From HEAD, I would only support the latest of 2.5. We can use tags like lk2-5-90 to note this is i2c as of 2.5.90, I see no point of supporting all of 2.5.54+ from HEAD, until 2.6 comes around.
Quoted 3 lines
If and only if we wanted to make another i2c release that was compatible for kernels 2 4.9 - 2.4.20 (hopefullly not) would we branch again, at the tag POST-2-4-9-KERNELS, and generate a release from that branch.
Either that to use inc/dec_use refcounting, or create incremental patches to modify 2.4 tree i2c drivers for .owner.
Quoted 2 lines
For sensors we would do something similar, following your instructions below...
I reworked it a bit:
Quoted 7 lines
Quoted 7 lines
- cvs up
- tag LAST-PRE-2-4-X-KERNEL
- tag LAST-PRE-2-8-0-I2C
- drop < 2-4-X support
- fix module refcounting to use .owner
- tag POST-2-8-0-I2C
- consider PCI changes 2.4<->2.5, branch if necessary
Looking at amd756 ported back from 2.5, the PCI changes are apparently in 2.4 too. There may not be need to branch sensors at all, as the dependency is to the .owner refcounting that applies to both 2.4 and 2.5 trees if our i2c lk2-4 is accepted.
The tag LAST-PRE-2-4-X-KERNEL is to branch if we find severe problems we need to fix for 2.2 kernels. Hopefully not.
I have got sensors .owner changes in my working directory. While at it, I have changed drivers to use module_init/exit, have removed a lot of #ifdef MODULE everywhere. And just generally break it.
Signature · 2 lines
Ky?sti M?lkki [email protected]