/srv/irclogs.ubuntu.com/2010/09/11/#ubuntu-classroom.txt

werberhttp://www.ireland.spmgame.com/partner.php?ID=26601210:21
werberhttp://www.ireland.spmgame.com/partner.php?ID=26601210:21
=== nfeldman is now known as nathan
=== nathan is now known as Guest80941
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat || Event: Ubuntu Kernel Bug Triage Summit (Maverick) - Current Session: General Introduction - Instructor: JeremyFoshee
=== JFo is now known as JeremyFoshee
=== JeremyFoshee is now known as JFo
JFoah, that's better15:04
JFoHello folks! o/15:04
JFoapologies for the delay15:04
JFoand Welcome to the first (hopefully regularly occurring) kernel triage summit15:04
JFoI'd like to cover several items in todays General session15:05
JFoinformation concerning today's summit can be found here: https://wiki.ubuntu.com/Kernel/BugTriage/Summit/Maverick15:05
JFoThis will also be the location to which I will post the links to the transcript of todays sessions15:06
JFoso, let's begin :)15:06
JFo1) Locations for information15:07
JFohttps://wiki.ubuntu.com/Kernel/15:07
JFohttps://wiki.ubuntu.com/Kernel/BugTriage15:07
JFohttps://wiki.ubuntu.com/Kernel/BugTriage/Process15:07
JFoThese are some of the more relevant locations for information we will be discussing today15:07
JFoAs always, your feedback on how these can be improved is welcome.15:07
JFoyou can send us your thoughts to kernel-team@lists.ubuntu.com15:08
JFothat way the whole team can see and respond to your feedback15:08
JFoThat list is also the best location to submit any patches you have done for inclusion in the kernel... but that is a topic for another day :-)15:08
JFoany questions so far?15:09
JFoexcellent!15:09
JFolet's continue :)15:09
JFo2) Subsystem Breakdown of bugs15:09
JFohttps://wiki.ubuntu.com/Kernel/Tagging15:09
JFoThis, as some of you may already be aware, is a new initiative for the team this cycle.15:10
JFowe are working to break out all of the kernel bugs into their particular subsystems15:10
JFoso that the team can focus on their particular expertise15:10
JFoin a more efficient manner.15:10
JFo<shadeslayer> quick question, suppose i have a question about https://wiki.ubuntu.com/Bugs/Importance, regarding the network card being under medium importance, should i wait till after the session?15:11
JFoactually, I think our final session of the day will be a Q&A session due to the instructor not being available15:11
JFobut if you are interested in knowing now shadeslayer you can ask in #ubuntu-kernel15:12
JFoshadeslayer, my pleasure :)15:12
JFoI don't currently have much of a better breakdown for the subsytems for next cyclestem tagging other than the Tagging page mentioned above, but that improvement is slated to be included in the work i15:13
JFothis is an effort to continually improve our documentation15:13
JFoI hope that some of you can help us move that effort forward wherever you feel comfortable15:14
JFoWhile I am here, I should mention that we do have some of the team available today for any off Summit topic questions you may have.15:15
JFoThey are available in the #ubuntu-kernel chanel15:15
JFoThat was actually a nice segue into my next topic15:15
JFo3) How to reach the Kernel Team15:15
JFohttps://wiki.ubuntu.com/Kernel/FAQ#How%20do%20I%20find%20the%20kernel%20team?15:15
JFoWe have created an item in our FAQ on how best to reach the team15:16
JFoas mentioned above, we have the channel we work in on Freenode15:16
JFowe have the mailing list I mentioned above for feedback15:16
JFosome of you may have seen our Ubuntu StackExchange site.15:17
JFoI don't have the link handy, but this is a new forum-type site that seems to be helping us ensure the best information gets to those of you that need it15:17
JFowe hope to continue to improve this site so that it, along with our Forums and the launchpad bugs will provide the best methods of community support to our users15:18
JFoI hope those of you interested will join in on the StackExchange community site so that it can be the best possible15:18
JFo<DrKenobi> QUESTION: do I need to know something in particular to triage kernel bugs?15:19
JFoDrKenobi, great question!15:19
JFoNo, you don't need anything other than a working knowledge of the information on the BugTriage wiki page above15:19
JFothe biggest help to us is ensuring that these bugs have the right information in them and are ready for an Engineer to look into15:20
JFothat doesn't require very much knowledge on the kernel15:20
JFoI should also mention that we have a document outlining the levels of triage15:21
JFothat may help further define this15:21
JFolet me get that link15:21
JFohttps://wiki.ubuntu.com/Kernel/TriageLevels15:22
JFothere we go15:22
JFodoes that help DrKenobi?15:23
JFoLet me move on, we can get to that some more in a few moments15:23
JFo4) Who are our upstreams and where are they?15:24
JFoAs many of you may be aware, our upstream is really Linus himself15:24
JFothere are a number of folks that work with him on the Linux kernel15:24
JFopeople who you may see occasionally commenting in bugs on Launchpad15:24
JFoTed T'so15:25
JFoGreg Kroah-Hartman15:25
JFoamong many others15:25
JFowe also have Audio upstreams and Graphics and Driver upstreams15:25
JFowe are one of the largest teams with the most upstream locations15:26
JFoThe upstream bug tracker is located here: 4) Who are our upstreams and where are they?15:27
JFosigh*15:27
JFotrying to go too fast :-)15:27
JFohttps://bugzilla.kernel.org/15:27
JFohere ^ :-)15:28
JFowhen you see a Linux task on a bug with a bugzilla number, this is where that is going most of the time15:28
JFoWe refer to those as upstream bug watches15:28
JFoMy preference is that for most bugs (if possible) we should locate and note an upstream bug that seems to be at fault15:30
JFothis is a bit involved15:30
JFoand requires a bit of searching on the bugzilla which is a bit difficult15:30
JFo<apw> QUESTION: where do upstream bug watches come from?15:30
JFoGreat Question apw :-)15:31
JFoThe upstream Bug Watch would be added to the bug by the Triager who is working on the bug15:31
JFoit could also be added by the original reporter if they took the time to look upstream for their issue15:32
JFohowever, it has been my experience that the vast majority of our bugs are difficult to track to an upstream bug15:33
JFoThis is something that I am hoping to address more fully over the next few cycles.15:33
JFo* nathan_ has quit (Remote host closed the connection)15:34
JFo<DrKenobi> jfo, yes! Thank you!15:34
JFo<charlie-tca> These references are good!15:34
JFo<JFo> DrKenobi, :)15:34
JFo<JFo> charlie-tca, thank you :)15:34
JFo<czajkowski> would it not be wise to keep the conversations in here for the logs and get the kernel folks in here rather than another channel to join and watch ?15:34
JFo* apw is in both if that helps15:34
JFo* sconklin (~sconklin@ubuntu/member/sconklin) has joined #ubuntu-classroom-chat15:34
JFo<JFo> this channel doesn't get logged to my understanding czajkowski15:34
JFo<JFo> only the classroom one I think15:34
JFo<apw> QUESTION: where do upstream bug watches come from?15:34
JFo* sconklin75 (~sconklin7@ip-64-32-163-20.atl.megapath.net) has joined #ubuntu-classroom-chat15:34
JFo* sconklin75 has quit (Changing host)15:34
=== Ursinha is now known as Guest49260
JFo* sconklin75 (~sconklin7@ubuntu/member/sconklin) has joined #ubuntu-classroom-chat15:34
JFo<charlie-tca> QUESTION: as triagers, should we be searching for those upstream bugs, or are they like trying to find duplicates in launchpad?15:34
JFo* Ursinha-afk (~ursula@canonical/launchpad/ursinha) has joined #ubuntu-classroom-chat15:34
JFowhoops15:34
JFocopy/paste fail :)15:34
JFo<charlie-tca> QUESTION: as triagers, should we be searching for those upstream bugs, or are they like trying to find duplicates in launchpad?15:34
JFocharlie-tca, Great Question!15:34
JFomy preference is that you would look for the upstream bug watch15:35
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat || Event: Ubuntu Kernel Bug Triage Summit (Maverick) - Current Session: General Introduction - Instructor: JFo
JFogiven the new policy for the kernel on duplicates located here: https://wiki.ubuntu.com/Kernel/Policies/DuplicateBugs15:35
JFowe prefer that bugs that appear to be duplicates not be marked as such to allow us to investigate hardware revisions15:36
JFoany questions on that bit?15:37
JFook, let's move on a bit15:37
JFo5) Testing images and Firmware Test Suite(FWTS)15:37
JFoThis is something that is dear to my heart and I hope it will be to yours as well15:38
JFoThe testing images came about as a desire for us to be able to test the most machines in the wild as possible with the least difficulty15:38
JFothe images for these are located here: http://kernel.ubuntu.com/~kernel-ppa/testing/15:39
JFoplease have a look at these and see if you find them useful15:39
JFoplease also let us know of any problems you encounter15:39
JFoI'd really love if these could be used during GlobalJam or your team meetings15:40
JFoI hope you find them as useful as I think you will15:41
JFoFor those of you just joining us, please ask your questions in #ubuntu-classroom-chat and preface with 'QUESTION:"15:42
JFo<diwic> QUESTION: How does the kernel-ppa testing images differ from the other testing images (e g daily-live CD:s)?15:42
JFoExcellent question diwic! :)15:42
JFoThey are built from the exact same source as the daily LiveISO15:42
JFowith several changes15:43
JFothe first is that these images won't bring you to a screen whereby you can either install or try out Ubuntu15:43
JFoit will instead, log in to the desktop from the Live Image15:43
JFoas the Ubuntu user15:43
JFoat that time a terminal window will open and begin the test suite15:44
JFoonce you complete the test suite, the results will be gathered, or if you have an internet connection, they will be transmitted to our DB15:44
JFo<charlie-tca> QUESTION: what is fwts and ktts mean in the ppa ?15:45
JFocharlie-tca, Excellent Question15:45
JFoanda great segue to the next bit of this conversation15:45
JFoFWTS stands for Firmware Test Suite15:45
JFoextra special thanks go to cking on the kernel team for this little gem15:45
JFoit is a toolset that will completely test your BIOS along with any other firmware on your system15:46
JFoI'll stop there and let sconklin discuss it a bit more in his Graphics talk15:46
JFokkts is another test suite, that if I am not mistaken is based on the fwts15:47
JFoactually, now that I look at it15:47
JFoI believe that is the test suite that we are using in the testing images15:47
JFoyep, that is exactly it15:48
JFothere are 2 unique sets of images there in the /testing directory15:48
JFoone is built with the fwts installed15:48
JFoand the other is our test suite built within terminal using bash15:48
JFoboth are very useful15:49
JFohope that helps clarify15:49
JFoAny more questions there?15:49
JFo<dgtombs> QUESTION: so both are automated tests?15:49
JFodgtombs, to my understanding, yes.15:49
JFoI have not as yet used the fwts based image15:50
JFomy own fault for not taking the time :)15:50
JFo<DrKenobi> QUESTION: so, this two images do the same?15:50
JFonot exactly the same15:50
JFobut very similar, yes15:50
ClassBotThere are are 10 minutes remaining in the current session.15:50
JFowe developed the ktts suite before the fwts was available15:51
JFoso that is the older of the two15:51
JFoIf I had to pick one to use, it would be the fwts as it is much more comprehensive15:51
JFothe ktts, is a more general, quick test if you will15:51
JFogeared more toward use by LoCos at their events15:52
JFothe fwts is directed more at Firmware and BIOS15:52
JFoDoes that clear things up or make them more murky DrKenobi? :-)15:53
JFothe last thing I will cover is the cool ability to create a USB key that will boot multiple ISO images15:54
JFoit is located here https://wiki.ubuntu.com/Kernel/Dev/MultipleISOBootUSBKey15:54
JFothanks apw15:54
JFowith this information it is possible to install and boot from a number of ISO images on a single USB key15:54
JFoI find that very exciting15:55
JFoas it enables the testing of numerous architectures and images without the need for numerous keys :-)15:55
JFowhat could be better?15:55
JFoand with that I will accept questions for the remainder :-)15:55
ClassBotThere are are 5 minutes remaining in the current session.15:55
JFoI hope all of you found this session useful15:56
JFo<apw> QUESTION: do the fwts etc images work on the multiple  ISO keys?15:56
JFoapw, yes they do15:56
JFoalso part of the reason for my excitement15:56
JFo:-)15:56
JFook, thanks everyone, we will stop a bit early for refreshment etc.15:57
JFo\o/15:57
JFo<dgtombs> QUESTION: are the kernel wiki pages open for modification by non-team members? or do you prefer discussion first?15:57
JFodgtombs, they are absolutely open to modification15:57
JFohowever15:57
JFoI would ask that you verify things you aren't sure of before you modify steps :-)15:58
JFoother than that, HackAway!15:58
=== albert231 is now known as albert23
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat || Event: Ubuntu Kernel Bug Triage Summit (Maverick) - Current Session: Graphics/KMS/DRM/X - Instructor: sconklin
sconklinAlright, we'll kick off the session on graphics16:04
sconklinI'm Steve Conklin. I'm a kernel engineer employed by Canonical. In the past I've worked on graphics bugs, although now I do stable maintenance16:05
sconklinAs has been already covered, please do not pile additional problems from different users into launchpad bugs.16:05
sconklinThe reason is that the bugs are seldom duplicates, even when the same driver is loaded. For example, there are many dozens of Intel graphics card models, and they all have different code paths in the driver.16:05
sconklinThis is important not only for the triaging steps, but later when we actually have fixes in kernels and need them tested16:05
sconklinWhen people pile onto graphics bugs with "me too" information, please ask them to open another bug. Also be very skeptical when people respond in a bug after having tested a kernel with a possible fix in it. There are often a lot of "It didn't fix it for me" responses from people who have different graphics hardware.16:05
sconklinOne thing to be aware of is that recently something called KMS has been added to the kernel.16:07
sconklinThis stands for "Kernel Mode Setting", and allows the card hardware to be set up in the kernel drivers instead of in userspace16:08
sconklinSo a very common diagnostic test is to ask people to turn off KMS by using kernel switches, but this only makes sense for Karmic+16:08
sconklinYou will also see references to "UMS" which is User Mode Setting, and is the alternative to KMS, and the "old way"16:09
sconklinAny questions so far?16:09
sconklinHere's a diagram showing some X architecture16:10
sconklinhttps://wiki.ubuntu.com/X/Architecture16:10
=== lol is now known as Guest81324
sconklinThis is a good reference16:10
sconklinDRM stands for Direct Rendering Manager16:11
sconklinIt is often difficult to know whether a problem is in the X server or in the kernel.16:11
sconklinGenerally, the X and kernel teams can sort this out if a bug is opened against either, but it's good if you learn how to tell the difference16:12
sconklinor open against both16:12
=== Ursinha-afk is now known as Ursinha
sconklinQUESTION: do we follow the same procedures to triage X as the kernel?16:13
sconklinInitially the steps are the same, until it's determines which has the bug16:13
sconklinAnd ubuntu-bug gathers a lot of the same information, so if the bug was opened using ubuntu-bug, we'll have most of what we need16:14
sconklinSome bug types are almost always kernel driver bugs -16:14
sconklinsuspend/resume bugs16:15
sconklinproblems detecting plug events (like plugging in a HDMI plug)16:15
sconklinHangs and freezes are more difficult16:15
sconklinIt's sometimes difficult to tell the difference between a kernel hang (or crash) and a graphics hang. The best way to tell is to have openssh-server installed on the system, and have the IP address recorded. If the system hangs, see if you can log in via the network. If you can, then it is a graphics hang (freeze). Here is more information about diagnosing graphics freezes: https://wiki.ubuntu.com/X/Troubleshooting/Freeze16:16
sconklinand in fact, the whole X subsystem wiki pages are really helpful:16:16
sconklinhttps://wiki.ubuntu.com/X/16:17
sconklinWorth taking some time to read them16:17
sconklinEven if you can't get in via ssh, you can try triggering disk activity by plugging in a USB device. If there is disk activity, the kernel is alive and the system is running16:18
sconklinQUESTION: Can magic keys (Alt-PrtScr-REISUB) also help to determine whether it's a kernel bug or not?16:18
sconklingood question, but I'm not sure, since you can't see what's happening.16:18
sconklinunless you can get something into the messages file and see if after reboot16:19
sconklinOne thing to be aware of is the huge number of models of graphics hardware cards.16:20
sconklinThere are many, many quirks coded into the various drivers for different cards and computer models, and even for almost identical models, the manufacturer of the computer may have connected or not connected optional hardware ports. It's impossible to be an expert in every model.16:20
sconklinThere are a few things which are very important to know early in the triage process. One is which graphics card is in use. You can generally get this from the output of lspci, which is usually included in the bug report if ubuntu-bug was used to open it. You can also often get it from /var/log/messages.16:20
sconklinThere is also good information in /var/log/Xorg.0.log, especially when dealing with resolution issues.16:21
sconklinWe strongly recommend that the hardware model of the card be in the bug title, and encourage triagers to change this as needed.16:22
sconklinThis also helps discourage "me too" entries in the bug.16:22
sconklinany questions?16:22
sconklinThe fwts (firmware test suite) may be useful for helping diagnose issues like backlight brightness keys not working16:23
sconklinQUESTION: so what exactly is the rule on dupes with graphics-related bugs? Some are obviously software/userspace issues so I assume dupes are allowed there. Is the no-dupe rule only for bugs which might be driver issues?16:24
sconklinGood question. This may not exactly be the X team's process, but I would encourage separate bugs until they re proven dups16:25
sconklinalways keep them separate, because it's very difficult to tease apart information from multiple reporters.16:26
sconklinIt's very easy to set bugs as dups if they are discovered to be so, but impossible to separate a bug into multiple different ones16:26
sconklinHonestly, as a kernel developer, I typically stop reading a bug after a few "me toos" with different hardware, because it becomes impossible to manage it16:27
sconklinIf you've opened a bug and it's become noisy, you can always open a new one, and put a note to that effect in the first bug16:28
sconklinDevelopers also pay much more attention to the original reporter, and will ignore others. So if you've piled onto a bug and the original reporter says it's fixed, then the bug is closed, and all other information in it is lost16:29
sconklinQUESTION: what do you recommend doing with a bug that has gotten spammed up with me-too's. ask everyone to re-file? try to clear it up?16:29
sconklinAsk everyone but the original reporter to.16:29
sconklinIf it's hopeless, ask the original reporter to also16:29
sconklinAnother important triage tip:16:30
sconklinWatch out for generic titles like "graphics broken" and change them as soon as you can16:30
sconklinTry to extract some information that is descriptive from the bug report, and include the hardware model number16:31
sconklinAnd also include the vendor in the hardware ID.16:31
sconklinLike "Intel 855 black screen after resume"16:32
sconklinOne fairly common problem is that people report a problem against their graphics hardware, but the driver for that hardware never got loaded16:32
sconklinThe system cal fail back to a VESA driver, giving unexpected results16:33
sconklinHere's a good wiki page about that:16:33
sconklinhttps://wiki.ubuntu.com/X/Troubleshooting/OnlyLoadsVesa16:33
sconklinSo check for that fairly early in the triage process, ESPECIALLY for resolution problems like "My system only supports 1024x768"16:34
=== yofel_ is now known as yofel
sconklinquestions?16:34
sconklinFor resolution issues, there is information under /sys/class/drm which shows all outputs available, and resolution information for each output16:36
sconklinThis is only for systems using KMS (Kernel Mode Setting)16:37
sconklinOne more thing:16:37
sconklinIn general, if someone has solved their problem by changing their Xconfig, it's not a kernel issue, except in some cases of resolution problems.16:38
sconklinIn systems with KMS, you can get additional debug information by using this in your kernel boot parameters:16:41
sconklindrm.debug=0x0416:41
sconklinThere are also kernel parameters to disable KMS, and sometimes these are a useful test, especially for Lucid drivers16:41
sconklinThese vary a bit from driver to driver16:42
sconklinadding nomodeset should be the general case, specific ones are i915.modeset=0 and radeon.modeset=016:43
sconklinAgain, this only works with KMS-enabled drivers16:43
sconklinAlso, just because a machine has Radeon graphics, you can't tell which driver should be running. It could be fglrx or nv, or nouveau, and it's worth checking into which driver has loaded16:44
sconklinQUESTION: can you disable KMS in all drivers? i seem to remember reading that one only supported KMS16:44
sconklinNo, you can't Recent drivers especially have begun to disable UMS16:45
sconklinOnly Intel no longer has UMS support from Maverick onward at the moment, but there will be more16:46
sconklinIf you disable it on intel, it will drop back to VESA, for example16:46
sconklinso again - check which driver got loaded16:46
sconklinJust a mention here that having triage help with graphics issues is very, very helpful, and your help is really appreciated16:47
sconklinIt makes things a lot easier, especially when bugs are properly classified for hardware very early16:47
sconklinIt really reduces the amount of time we spend applying fixes, and speeds up the process of getting fixes released.16:48
sconklinQUESTION: does this hinder debugging? how can a reporter gather more information if KMS isn't working but he/she can't disable it?16:48
sconklingood question. if it's failing in KMS, then what you gather in UMS isn't terribly useful16:49
sconklinSo turning on drm.debug=0x04 is something to try, as well as looking at the kernel and Xorg logs16:50
sconklinAnd if it won't boot, then you'll have to drop to older kernels, or bisect that way.16:50
sconklinOr try the latest upstream builds, especially if the problem is with a development kernel.16:51
ClassBotThere are are 10 minutes remaining in the current session.16:51
sconklinThat's about all I wanted to cover, any last questions before we take a break going into the next hour?16:51
sconklinIs there a flag somewhere to get the kernel to kprint what it's setting when?16:52
sconklinThat's what drm.debug=0x04 is for16:52
sconklinyou can also set this on the fly somewhere in /proc but it escapes me at the moment how to do this16:53
sconklinWhere is drm.debug documented?16:54
sconklinBad answer, but in the code16:54
sconklin/sys/modules/drm/parameters/debug I believe is where you can set that16:55
ClassBotThere are are 5 minutes remaining in the current session.16:55
sconklinHere's a page with some KMS debug info: https://wiki.ubuntu.com/X/KernelModeSetting16:57
sconklinThanks everyone, we'll take a break now16:57
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat || Event: Ubuntu Kernel Bug Triage Summit (Maverick) - Current Session: Audio/Pulse - Instructors: bjf, diwic
diwicHello everyone and welcome the triaging session on audio. If you have any questions, don't be afraid to ask them - please ask them in #ubuntu-classroom-chat and start your question with "QUESTION:".17:01
diwicI'm going to talk a little about the different audio symptoms and initial triaging of those17:02
diwicThe symptoms I intend to cover are:17:02
diwic* Mixer slider problems17:02
diwic* No auto-mute, or some inputs/outputs work and other don't. E g speakers work but not headphones, or external mic works but not internal mics.17:02
diwic* Sound is of bad quality17:03
diwic* Underrun problems (related to the one above)17:03
diwic* No card detected17:03
diwic* And finally, No sound at all, which can be anything of the above :-)17:03
diwicBut first have a look at the https://wiki.ubuntu.com/Audio page, there are some goodies for triagers.17:04
diwicI'm going to try to keep it updated with information relevant to the latest release. Note that there are some pages under https://help.ubuntu.com/community/Sound that are very outdated or even partially wrong.17:04
diwicQuestions so far?17:04
diwicOkay, moving on to the first symptom: Mixer problems, e g "everything under 20% is muted, and 21% on the slider blows my speaker"17:05
diwicThe most likely cause is bad dB data and/or control names in driver.17:06
diwicFirst ask the user to try the latest snapshot according to https://wiki.ubuntu.com/Audio/InstallingLinuxAlsaDriverModules17:06
diwicOh a word about that, perhaps. While other kernel subsystems ask people to test mainline kernels,17:06
diwicwe usually ask them to test the latest snapshot. We take it daily from ALSA upstream and backport them to work with Lucid and Maverick kernel.17:07
diwicFor HDA: This can sometimes be fixed by trying different models, but upstream ALSA prefers fixing the generic parser.17:08
diwicHDA, btw, is short for "Intel HD Audio", and is a very common sound chip standard which almost every new laptop and desktop has17:09
ClassBotsconklin asked: What's the "generic parser" ad what does it do?17:09
diwicFirst, this is HDA specific. The generic parser tries to trust BIOS on what physical connections a specific hardware has, whereas other models tend to hardcode this information17:11
diwicSo if no model has been coded for your driver, you are using the generic parser.17:11
ClassBotsconklin asked: and how do models fit in?17:11
diwicWell, for every codec vendor id, there is a list of models. Again, this is HDA specific.17:12
diwicThe list can be found here:17:12
diwichttp://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt17:13
diwicI'll return to a little more of the HDA stuff if there is time at the end of the session.17:13
diwicAbote the generic parser, it can be forced by setting model=auto, and can be detected through a "BIOS autoprobing" line in dmesg.17:14
diwicand with "setting model=auto" I mean to add a line to /etc/modprobe.d/alsa-base.conf17:14
diwicsaying "options snd-hda-intel model=auto".17:15
diwicYou can also try "model=toshiba", "model=3stack" or whatever you find under your section in HD-audio-Models.txt17:15
diwicAny more questions?17:16
diwicOkay, next symptom17:16
diwic* No auto-mute, i e speakers continue to sound if you plug in headphones.17:17
diwicor17:17
diwic* some inputs/outputs work and other don't. E g speakers work but not headphones, or external mic works but not internal mics.17:17
diwicBoth are related.17:18
diwicFirst a note: Headphones should only mute speakers. Line outs should never be auto-muted.17:18
diwicThat's the rule set by upstream.17:18
diwicHDA specific: This is often caused by bad BIOS config of pin NIDs. Note that these pins often irrelevant if you're not using the generic parser.17:19
diwicCan sometimes be fixed by changing models, but upstream (i e Takashi) prefers fixing the generic parser or to override the pin configs.17:20
diwicAlso try tweaking user_pin_configs. One day when I have lots of time and little to do I might write a small useful app that helps with this...for now I'll refer to http://www.kernel.org/pub/linux/kernel/people/tiwai/docs/HD-Audio.html#_hd_audio_reconfiguration17:20
diwicNote: Known issue for VIA's: the HDA driver is fooling PA into believing that you manually muted things when you plug headphones in.17:21
=== emma_ is now known as emma
diwicAny questions on that?17:21
ClassBotapw asked: by VIA do you mean the make ?17:22
diwicOkay, so VIA is a Codec vendor. HDA is made up of two parts, the controller and the codec.17:22
diwicThe controller is often built into the southbridge of the motherboard.17:23
diwicFor how to see your Codec vendor, please see https://wiki.ubuntu.com/Audio/SameHardware (scroll down a bit. You'll see an example where it says "Realtek")17:24
diwicOkay, moving on to the next symptom.17:25
diwic* Sound is of bad quality17:25
diwicHere it is important to distinguish between sounds that are either17:26
diwicA) Digital clipping/distortion, or "overdriven" sound, which usually indicate a mixer problem, or17:26
diwicB) Underrun / dropout / "crackling" sound, which indicates an underrun problem17:26
diwicSo for mixer problems, I've already covered that. For underrun problems, that's harder.17:26
diwicUnfortunately, these can be quite difficult to track down, and to be honest, I have yet to learn how to that.17:27
diwicAnyway, underruns happen when we don't supply audio data in time.17:27
diwicWith PulseAudio in the picture, this can happen either on PulseAudio's front-end or its back-end.17:28
diwicCheck if the underrun is on PA's front-end or back-end. Request a verbose log: https://wiki.ubuntu.com/PulseAudio/Log17:28
diwicAn underrun on the backend, that is, between PA and Alsa, looks like: "alsa-sink.c: Underrun!" in the log.17:29
diwicAn underrun on the front-end, that is, between the application playing audio and PA, looks like: "Underrun on 'Rhythmbox', 0 bytes in queue", and it be worth checking the client application, especially if this only happens with some clients.17:30
diwichmm..that's not the line exactly, it's something with "memblockq" as well17:30
ClassBotcharlie-tca asked: do both PCI Vendor-ID and PCI SSID have to match for a bug to be a duplicate?17:31
diwicAs a rule of thumb, yes.17:32
diwicIt's very unlikely to find the same PCI SSID from two different vendors, but I assume it's theoretically possible.17:32
diwicSo, in order to not show my lack of knowledge, I'm moving on to the next symptom without asking for questions. ;-)17:33
diwic* Card not detected17:34
diwicThere are various levels of "detection" of a card.17:34
diwic1) If card does not show up as in "AlsaDevices.txt" (on a bug report) or as a card under /proc/asound/cardX (on your computer), check dmesg for errors.17:35
diwic2) If card does show up in step 1) but does not show up in "AplayDevices.txt" (on bug report) or "aplay -l" does not show the sound card (on your computer), it might be that we lost contact with the card, or have a permission problem when accessing it.17:36
diwicfor losing contact, that shows up in dmesg, hopefully. For HDA, that shows as "switching to single_cmd mode" or something like that.17:37
diwicFor both cases above, trying the latest snapshot according to https://wiki.ubuntu.com/Audio/InstallingLinuxAlsaDriverModules might help.17:37
diwic3) If card shows up in step 1) and 2) , but is not listed in pulseaudio (use the "pacmd list-cards" command for that), it could be that the card either is busy, or was busy when PA started.17:38
diwicYou can check if somebody is currently using the card with: "sudo fuser -v /dev/snd/*"17:39
diwicIf card works for some users, but do not show up for other users when using "fast user switching", check if any user is part of the "audio" group. See https://wiki.ubuntu.com/Audio/TheAudioGroup for some background information on that.17:39
ClassBotjohng asked: Do you ever need to collect a .wav file for diagnosis?17:39
diwicWell, that's really up to you and depend on the case. If the user is complaining about bad audio quality, and can provide a sample of that, you might be able to hear whether it is an underrun or digital clipping.17:40
diwicI seldom ask for that, but sometimes I guess it could make sense.17:41
ClassBotapw asked: are these various types of failure documented with these diasgnostic tips?17:41
diwicso what I write to you here, I should probably also write on a wiki page somewhere. I have not yet done that. Does that answer your question, apw?17:42
ClassBotcharlie-tca asked: if a user is in the "audio" group, do they need to be removed from it?17:43
diwicGood question. I'm not really sure what to answer.17:43
diwicI've written an article on https://wiki.ubuntu.com/Audio/TheAudioGroup that lists the implications of doing so. If the user is aware of those and find it necessary for some other reason, I'm fine with that.17:45
diwicSo if a user complains about his mixer slider, you shouldn't jump on him complaining about being in the audio group.17:46
diwicOkay, so the last symptom.17:46
diwic* No sound at all17:47
diwicThis can be almost anything of the above.17:47
diwicFirst check the mixer levels: Given an apport-collect, go to the CardX.Amixer.values.txt, look for [off] and "2%" and the like.17:47
diwicThat only applies to relevant mixer controls though, so if a user is complaining about playback not working, there is nothing wrong with e g "Mic" being [off].17:48
diwicThe "ubuntu-bug audio" command checks for this already btw.17:48
diwicSecond, check if there is a card at all.17:49
diwicTip: If you run "ubuntu-bug audio", you'll hear two sets of test tones. If the first set of test tones are heard, the problem is likely higher up in the stack.17:49
diwicThe first set plays them directly to ALSA, whereas the second set plays them through PulseAudio.17:50
diwicOh, and in Maverick, the most common reason is that sound is currently muted on boot and needs to be turned on the normal way.17:51
ClassBotThere are are 10 minutes remaining in the current session.17:51
diwicWe're working on that.17:51
diwicQuestions?17:51
diwicIf there are any questions I've missed, let me know.17:52
diwicOtherwise we'll having a five minute break now and then it's Q&A session.17:54
apwdiwic, thanks that was a great session17:54
* diwic bows17:54
apwwe'll pick up on the hour for a general triage Q&A17:55
ClassBotThere are are 5 minutes remaining in the current session.17:55
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - https://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Questions in #ubuntu-classroom-chat || Event: Ubuntu Kernel Bug Triage Summit (Maverick) - Current Session: General Kernel Q&A - Instructors: JFo, sconklin, diwic, apw
apwOk this next session is a general Triage Question and Answer session.  If you have questions on triage or debugging the kernel, this is the place to ask.18:02
apwWith us we have a number of kernel engineers from the Ubuntu kernel team18:02
apwso ... ask away.18:02
ClassBotthe_hydra asked: personally i find it as a plus, so I just wonder....18:03
apwQUESTION: what is the reason ubuntu ships -rt enabled kernel?18:03
apwactually the -rt kernel is an ubuntu community project.  that means that members of the18:04
apwubuntu community have deemed that kernel useful enough to warrent them spending their time on it.18:04
apwthe kernel team is really only involved in sponsoring their uploads18:04
apwwe do not prevent additional kernels being made available where they have a real use18:04
ClassBotthe_hydra asked: what is the reason ubuntu ships -rt enabled kernel?18:06
apwyes indeed it is simply a packaging up of the -rt kernel from Ingo, with an ubuntu configuration and tooling18:06
ClassBotthe_hydra asked: but -rt kernel is mostly based on ingo molnar's work, I assume?18:07
apwyes indeed it is simply a packaging up of the -rt kernel from Ingo, with an ubuntu configuration and tooling18:07
apw(getting in sync now)18:07
ClassBotsconklin asked: is there anything special that should be done is there's a patch attached to a bug?18:09
apwif the attached patch has the right mime type it will automatically mark itself as a patch.  if you see a patch which is clearly a patch but not marked as such then do feel free to click the ticky18:10
apwthis will allow us to better focus on fixes which have already found18:10
apwalso if the fix is for an important bug, then it is worth making JFo aware of the patch so he can get it on the teams radar18:10
apwwe have a bunch of bugs and stuff can easily get lost in the pile18:10
ClassBotthe_hydra asked: in most shipped kernels, I find it to be configured with HZ=250 and preempt voluntary..for desktop, why not HZ=1000 and full preempt?18:11
apwthe higher the rescheduling rate the higher the overheads, both in terms of CPU and in terms of power consumption18:12
apwmost users simply do not require these settings so high.  there is a place for them but not for the common case currently18:12
ClassBotthe_hydra asked: isn't that tackled by NO_HZ?18:12
apwno although no_hz claims to prevent clocks it does not in practice complely do so, and overhead is measurable in the single digit percentage of performance18:13
apwand noticable reduction in battery life, hopefully HZ will become irelliveant over time18:13
apwin theory we should not nead one if NO_HZ worked as advertised.  yet changing it makes a difference18:14
ClassBotthe_hydra asked: i see now..how about preemp?18:14
apwthat is more about following the upstream default, the most tested combination18:15
apwwe try and stay as close to the most tested combinations in all choices at the confiiguration level18:15
ClassBotthe_hydra asked: i see...well, IMO it's really all about compromise.... i, myself, prefer to use full preempt18:16
apwyes there is always compromise in any decision.  you likely care to use the preempt kernel18:17
ClassBotdgtombs asked: what are the kernel team's on the massive backlog of kernel bugs? is there a plan of action to deal with it?18:17
apwyes we have some initiative in progress at the moment in fact18:18
apwwe have been expiring older bugs which are not being responded to for example18:18
apwwe have dropped out backlog from some 10k bugs to more like 5-6k18:18
apwand, this triage summit is another prong in that approach18:18
apwgetting good quality bugs with good information helps find bugs which we can get progressed18:18
apwwe are of course always interested in ideas from the community18:19
apwor ideas on how to help grow the triage and debug and development teams18:19
apwthe more help we have, the better our product, the happier we are18:19
apw...18:21
apwanyone have any further questions for us ?18:21
ClassBotjohng asked: Should bug descriptions be oriented around what a user sees or what the underlying problem is?18:22
apwi think in the early days there is no doubt that the symptoms are the most useful18:22
apwas we want people to find the right bug.  for myself when i knwo the real bug18:22
apwi tend to make a hybrid title which contains symptoms in the start and the real bug as the tail18:23
apwright if there are no further questions, i'm going to call it a day, and let my boys get some R&R for next week18:30
apwthanks all of those of you who attended and we hope you learned something new18:30
apwif you have feedback or suggestions please do feedback directly to the kernel-team, or if you want to do so in private direct to JFo18:31
apwthanks to everyone who contributed.  till next time.  goodbye18:31
ClassBotThere are are 10 minutes remaining in the current session.18:50
ClassBotThere are are 5 minutes remaining in the current session.18:55
=== ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - http://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi
axisysso when is the class starting?19:25
* shoonya is away: Gone to bed...20:43
=== SmartSsa_ is now known as SmartSsa

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!