From: Peter Stuge Date: Fri, 7 Jan 2011 21:59:42 +0100 Subject: [ath9k-devel] ath9k debugging In-Reply-To: <20110107200101.GE21588@tux> References: <1294361165-15308-1-git-send-email-greearb@candelatech.com> <1294361165-15308-3-git-send-email-greearb@candelatech.com> <4D267E4D.7000608@candelatech.com> <20110107024909.GD20431@tux> <4D2685CC.7020502@candelatech.com> <20110107153607.11061.qmail@stuge.se> <20110107200101.GE21588@tux> Message-ID: <20110107205942.28405.qmail@stuge.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Luis R. Rodriguez wrote: > On Fri, Jan 07, 2011 at 07:36:07AM -0800, Peter Stuge wrote: > > This is also my impression. Since it is important for Atheros to > > have bugzilla reports rather than discussion on list > > I'm trying to tell you how you can more efficiently work with > developers on reporting issues, There may certainly be a glitch between what I expect the process to be like and what the process is actually like for Atheros, and I very much appreciate the advice on what to put where for efficient flow! Last time I had the pleasure to work on the same thing as Ben Greear was with Linux VLAN support in late 1990s. Since then I've continued to spend a lot of time in open source projects, both within and outside my own company, and in projects with individual contributors as well as with significant corporate contributors, so I certainly have expectations and assumptions about processes, when I hear that a vendor is supporting a project. Seems they may not hold for ath9k though. > I'm not singling you out but I am telling you that the energy you > spend on complaining on things not being addressed can be better > put on reporting issues more efficiently. I was sorely discouraged by the response to early reports. But let's try again! > Reporting issues on the list helps but what helps is a describin > the issue for a specific release Yes of course. > but the most difficult thing to do sometimes is to come up with a > recipe for a way to reproduce a specific issue. Without this it is > harder to debug issues. If you can come up with ways to reproduce > issues then it becomes easier for engineers to start digging. I think this is the first major glitch between our views of process. The problems I've reported have not been the kind that are easily reproducable. I've had lots of fun with other such problems for many years e.g. in coreboot (open source PC firmware) and the only thing that allows efficient progress in such cases is remote instrumentation of registers and/or device sidechannel. Forget about reproducing locally. Attempts are waste of time in my experience. I am not saying that remote debugging is fun or easy, but at least it becomes easier when skilled people are involved on both sides. > Additionally if an issue is seen that was not observed before the > reporter may also do a git bisect to try to identify the culprit > commit. Yes certainly. Very good advice in general but I don't believe it applies to my problems since I've never had a good system. > Be aware though that bisecting on wireless-testing can only be done > against the master-* tags, and not on the entire tree due to the > way John updates his tree. Good hint! Thanks! > If you see the issue on a stable kernel though you can just use > Linus' tree or the linux-2.6-allstable git tree which will have the > stable extra versioned kernels as well. As I've tried to mention, I've seen very diverse symptoms which I believe to all come from probably a few different core issues, but without assistance from someone who knows the full cross-section of software and hardware it becomes impossible to gather neccessary information for further debugging. Creating a reliable reproducible test case requires significant effort, while drilling down to an actual problem can be quick. I've done both, many times enough. > Reporting issues for stable kernels should go through the kernel > bugzilla, but can start off on the mailing list. This is fair. > ath9k-devel though is not ideal for reporting major issues and I > recommend linux-wireless to be used instead for that. This is the second major glitch between our views of process. I would expect ath9k-devel to be the natural place for discussing major issues clearly specific to ath9k hardware. But OK, I can go to linux-wireless instead if you like? (I don't understand the purpose of ath9k-devel in that case?) > If an issue is reporting for wireless-testing with a good series > of reproducible steps chances are very high it will be addressed. Forget about the reproduction. The whole point is that my errors are not so easy to reproduce, which is why I think it important to discuss primarily with those who have expert knowledge about driver and hardware. > Motivated highly technical users willing to help further get bonus > points if they go the extra mile and bisect. Third major glitch. Motivated highly technical users help pin down driver problems by working on register level, not commit level. > Furthermore, issues can be kept track on here: > > http://wireless.kernel.org/en/users/Drivers/ath9k/bugs > > This keeps track of major issues reported, and what people are > working on. --8<-- Issues being looked into These issue are currently being looked into. None. -->8-- :) > > I will try to find time for creating more and/or new bug reports > > about my problems. > > Good, the bug reports will not be necessary if the issue is not on a > stable kernel as it will just be a regression against the last stable > kernel. If the issue is seen on a So there was a problem while writing this message. Will follow up in separate message. I can only describe the symptom, but as I wrote after subscribing this list over a year ago I'm comfortable and more than happy to help with debugging on register level, and below, but I still know neither driver nor hardware and if possible I would like to not have to learn all of the driver, so I would need to be told fairly specifically what to instrument. I think someone with good knowledge of driver and hardware could give guidance very quickly. > > (But the ones I have created so far did not really receive very > > good response.) > > Try to increase the quality of your reports and I assure you that > your issues will be addressed. That's not possible, because I do not have information about what goes wrong, only symptoms. > > Note that my AR9280 is not even detected correctly on PCI now so > > I may switch back to AR5008 for that. To be clear, the AR9280 is live again, so will not switch. > > I really should try out FreeBSD too. > > Good luck with that ;) Thanks! :) I really hope to have a chance to do that at some point. But I like Linux because it has mostly worked very well for me, so time easily goes elsewhere. //Peter