Bug 16152 - Lagging sound while closing/opening lid.
Summary: Lagging sound while closing/opening lid.
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - Intel) (show other bugs)
Hardware: i386 Linux
: P1 normal
Assignee: drivers_video-dri-intel@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 19:46 UTC by San
Modified: 2010-12-19 13:07 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.32.11+drm33.2-eeepc-1v1.0.4
Subsystem:
Regression: No
Bisected commit-id:


Attachments
cat /proc/version (140 bytes, application/octet-stream)
2010-06-07 19:50 UTC, San
Details
cat /proc/modules (641 bytes, application/octet-stream)
2010-06-07 19:51 UTC, San
Details
cat /proc/iomem (1.48 KB, application/octet-stream)
2010-06-07 19:51 UTC, San
Details
cat /proc/ioports (1.03 KB, application/octet-stream)
2010-06-07 19:52 UTC, San
Details
sudo lspci -vvv (18.94 KB, application/octet-stream)
2010-06-07 19:53 UTC, San
Details
My config file (54.79 KB, application/octet-stream)
2010-06-07 20:00 UTC, San
Details
cat /proc/cpuinfo (538 bytes, application/octet-stream)
2010-06-07 20:08 UTC, San
Details

Description San 2010-06-07 19:46:29 UTC
Hi!

It is my first bug report so i ask you for being pacient. Sorry, by the way, for my pour english.

I am trying to compile my own kernel since one from Ubuntu is not good enought for me. One of the main problems was lagging sound while closing the lid.

Now i found what causes the problem: DRM_I915_KMS (or DRM_KMS_HELPER)

Tried to add some debugging codes to kernel but did not found any useful informations in logs.

Do not know what to do to report anything useful...

Give me two minutes to add attachements.

Regards!
Comment 1 San 2010-06-07 19:50:08 UTC
Created attachment 26688 [details]
cat /proc/version
Comment 2 San 2010-06-07 19:51:32 UTC
Created attachment 26689 [details]
cat /proc/modules
Comment 3 San 2010-06-07 19:51:55 UTC
Created attachment 26690 [details]
cat /proc/iomem
Comment 4 Andrew Morton 2010-06-07 19:52:21 UTC
Thanks, I'll reassign this to DRI.
Comment 5 San 2010-06-07 19:52:58 UTC
Created attachment 26691 [details]
cat /proc/ioports
Comment 6 San 2010-06-07 19:53:27 UTC
Created attachment 26692 [details]
sudo lspci -vvv
Comment 7 San 2010-06-07 20:00:30 UTC
Created attachment 26693 [details]
My config file

Not sure if it is needed, but... 
It will be kernel's config used for test purposes.
Comment 8 San 2010-06-07 20:08:39 UTC
Created attachment 26694 [details]
cat /proc/cpuinfo
Comment 9 San 2010-06-07 21:18:57 UTC
I suggest changing 'Component' to 'Video (DRI - Intel)', since it is Intel's GMA915
Comment 10 Jesse Barnes 2010-07-23 20:18:22 UTC
Does this still occur in 2.6.35-rc6?  We do try to set modes when we receive lid switch events, and that can take awhile which might lead to audio underruns...
Comment 11 San 2010-07-24 11:30:02 UTC
It works just fine now!
Many tahnks.
Comment 12 San 2010-08-31 14:37:41 UTC
Hi!

I decided to find Ubuntu's kernel after 35rc6.

"san@eeepc:~$ uname -a
Linux eeepc 2.6.36-020636rc1-generic #201008171306 SMP Tue Aug 17 14:16:28 UTC 2010 i686 GNU/Linux"

and got same problem with lagging suond. same with 36rc3.

Regards.
Comment 13 San 2010-08-31 19:41:51 UTC
Well, i tried linux-image-2.6.35-020635rc6-generic_2.6.35-020635rc6_i386.deb
from http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.35-rc6-maverick/ too and have my problem again too.
Comment 14 Chris Wilson 2010-09-12 16:22:32 UTC
In git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel.git drm-intel-next there are a few patches to remove various busy-waits whilst disabling the panel, these fixed the sound issues for one reporter.
Comment 15 San 2010-09-14 00:23:02 UTC
did:

#git clone git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel.git
copied generic kernel config, oldconfig, some menuconfig and got lagging sound.
Comment 16 San 2010-09-14 07:32:25 UTC
did the smae with my own config file - it does work, no lagging.
bit confused.
Comment 17 Chris Wilson 2010-09-29 10:15:56 UTC
The generic config would not enable KMS by default - I presume in that case you were using the userspace modesetting but do have KMS in your own config.
Comment 18 Chris Wilson 2010-12-16 13:44:03 UTC
The busy-waits in LVDS modesetting were removed, no more lag or audio underruns.
Comment 19 San 2010-12-17 12:29:13 UTC
in which one release?
Comment 20 Chris Wilson 2010-12-17 12:35:33 UTC
Merged in the 2.6.37 window.
Comment 21 San 2010-12-19 13:07:01 UTC
Many thanks, it does work fine!

Note You need to log in before you can comment on or make changes to this bug.