RE: HZ != 1000 causes problem with serial device shown by git-bisect
From: Greg Lee
Date: Tue Mar 28 2006 - 08:43:36 EST
> I may be misreading Greg's concern, but I got the feeling that he's worried
> that 2.6.16 isn't *really* fixed, but that something is just papering over the
> driver's innate displeasure with HZ==250 (and thus it's likely that in .17 or
> .18 or whenever, some *other* patch will make it re-manifest).
To be clear, I am virtually locked into a 2.6.14.2 kernel since that is what has been
qualified for use in the product. I am "permitted" to patch the kernel with specifically
justified bug fixes. If these patches are too broad (a judgment call by a group of
engineer's) then we have to re-qualify the kernel selection which is the (long) process
that I am trying to avoid. I performed a git bisect between 2.6.12.6 and 2.6.13 and found
the problem is first noticed when the commit that allows HZ==250 is made. Support for
this change is pretty wide ranging --- a lot of use of msleep() instead of busy loops,
etc.
I did try the brute force approach, diffed the two kernels (800,000 line diff) and then
looked for any changes related to HZ (diff -Naur kernel1 kernel2 | egrep ^-.*HZ) and then
studied the code that was changed to see if I thought it might be related to this problem.
Given my limited understanding of the kernel code I was really just hoping to get lucky.
That did not prove out which is not surprising since it did not test the cases where the
code did not change and HZ is used and the code is not friendly to HZ != 1000. This
pretty much leaves me at a dead end with this approach.
Then we decided, what the heck, we'll try the latest kernel (2.6.16) just to see if it is
fixed and voila, it is. Jumping back one revision to 2.6.15.6 showed that the problem
existed again, so I decided to git-bisect those two versions (I'm down to 9 more
iterations) and then see if the change in those two versions yield any insight into the
core problem. I'm not very hopeful though since this commit is in the path between
2.6.15.6 and 2.6.16):
commit 33f0f88f1c51ae5c2d593d26960c760ea154c2e2
Author: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Date: Mon Jan 9 20:54:13 2006 -0800
[PATCH] TTY layer buffering revamp
The API and code have been through various bits of initial review by
serial driver people but they definitely need to live somewhere for a
while so the unconverted drivers can get knocked into shape, existing
drivers that have been updated can be better tuned and bugs whacked out.
So, any recommendations for a better approach?
(please cc replies)
Greg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/