From: Peter Stuge Date: Wed, 12 Oct 2011 19:23:09 +0200 Subject: [ath9k-devel] need help debugging/pinning down obscure freezes/hangs using AR9287 In-Reply-To: <4E95C57B.1040201@openwrt.org> References: <8E4915FC-90CA-46C6-B15D-BFFC3037BA22@gmail.com> <20111012135355.22032.qmail@stuge.se> <20111012145612.31165.qmail@stuge.se> <20111012153552.4580.qmail@stuge.se> <4E95C57B.1040201@openwrt.org> Message-ID: <20111012172309.19779.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 Felix Fietkau wrote: > If I understand the point you're trying to make here correctly, it > sounds like complete BS to me. Let me get this straight: from Luis > asking people not to refer to internal codenames of Atheros > codebases you extrapolate that detailed technical discussion on the > public lists is unwanted? No: From two years or so of participation on this list I know for a fact that detailed technical discussion on public lists does not happen. I do not claim to know why. I'm not at all sure that it is unwanted by everyone, or even by anyone. I am, however, sure that it does not happen. I think that it is valuable for others who join the list to know this, so I let them know what they might expect. > > I've understood that there's also another community, with developers, > > who do get to talk about developer level details, but the barrier of > > entry to that community is higher than simply subscribing to a > > mailing list, and approaching ath9k naively as I did it makes no > > sense to divide resources like that for a wifi driver. > > The barrier of entry is there for a reason. I find it stupid and counter-productive. I guess we can say that I disagree that the reason is valid. > Having detailed information about the inner workings of the > hardware is useless if you don't have a basic understanding of how > the driver works. The two obviously go very tightly together. The more information about both you have, the easier it is to work on either side. The more information that flows about either, the easier it is to start working on any side. Since no information flows, it takes lots of effort to start working anywhere. Negative spiral. > For many of the bugs that were fixed, you don't actually need any > kind of detailed hardware info to fix them. ath9k is by now working really well for very many users, so any bugs that do remain are particularly likely corner cases which do involve hardware, firmware, driver, with two of the above, or all three, being in some condition not yet been encountered by developers. > What ath9k needs most is people that are willing to spend enough > time reading the driver and playing with the code until they > understand the software side well enough AKA reverse engineering, which is IMO not the best open source can do. Yes the code is there, no loading the entire driver into your head is not useful for fixing bugs. And IMO fixing bugs is always useful, even if they are corner cases. > The people that I know that did spend enough time on the driver to > understand the software side also did get direct help from Atheros > and/or access to hardware documentation. I never questioned or doubted that. I find it bad that it's not communicated much by anyone before I started to, but at least with this thread that has already improved tremendously. > Unfortunately with many questions that are posted to these lists, the > effort that went into formulating the question is just a microscopic > fraction of the effort required to provide a good answer. Of course. I also do not expect a good answer to a stupid question. And I certainly do not expect a patch. I did expect interest in working with cluey people on fixing problems even without them being so cluey on ath9k yet. > Also, with many of these questions I get the impression that > providing an answer would be a complete waste of time, since it > does not appear that anything useful would come out of it. > Such questions are usually easily recognized, since they're often > one-liners like: 'What does $random_register do?' or 'What's the > purpose of $random_feature?', or even things like 'How do I enable > $random_unsupported_feature?' Sure, this is not what I'm talking about. > And even with competent users knowing Linux well, it can be quite > hard to walk them through the right steps to track down bugs, > because often it's very hard even for people with access to all > hardware docs to even identify a likely source or general area of > the bug. For a competent developer with knowledge of how hardware, firmware and driver interacts this is not very hard. But it is time consuming! What I sometimes do to help with debugging is the skill test that I mentioned. If debug info is missing, then ask for that info in a way that will show the skill level of the other person. This quickly provides an estimate of how much effort has to put into this debugging session, ie. what kind of instructions can be given for getting closer to the problem. > If such a bug can then not be reproduced internally, there is no > good way to it, and it may take some time for people to come up > with good ideas. This is also not what I'm talking about. I have no idea about internal bug hunting, I expect that it is really good and that this is what makes ath9k work great for very many users. I'm also not saying that Atheros must magically know what causes a problem without any information. > So if somebody from the community is showing *serious* effort at > fixing issues or improving ath9k and needs to know about details of > how the hardware works, there are enough people (including myself) > from inside or outside of Atheros that are usually helpful with > filling the gaps. This contradicts my impression of this list over the last two years. :\ //Peter