Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-31-2006, 08:22 PM
|
#1
|
Member
Registered: Mar 2005
Distribution: Gentoo
Posts: 184
Rep:
|
Alsa backtrace?
Every time I play an audio file using the current version of Alsa, I get a weird static sound at the end of the file. I also get this output in the terminal:
Code:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35e20)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35e40)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35e60)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35e80)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35ea0)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35ec0)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35ee0)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35f00)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35f20)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35f40)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35f60)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35f80)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35fa0)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35fc0)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Bad page state at free_hot_cold_page (in process 'aplay', page c10
35fe0)
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: flags:0x80000414 mapping:00000000 mapcount:0 count:0
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Backtrace:
Message from syslogd@lappy at Wed Feb 1 20:12:44 2006 ...
lappy kernel: Trying to fix it up, but a reboot is needed
I am running Slackware 10.2 with kernel 2.6.15.1.
|
|
|
01-31-2006, 09:06 PM
|
#2
|
Member
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761
Rep:
|
IIRC, there's a patch for Alsa with 2.6.15 floating about somewhere on the Alsa mailing lists (bad_page_state is a 2.6.15 problem, it also affects other things such as ATi's proprietary video drivers).
Apply this patch to Alsa and then rebuild.
Code:
--- alsa-driver-1.0.10/alsa-kernel/core/memalloc.c 2005-10-31 13:11:53.000000000 +0000
+++ /usr/src/linux-2.6.15/sound/core/memalloc.c 2006-01-03 03:21:10.000000000 +0000
@@ -197,6 +197,7 @@
snd_assert(size > 0, return NULL);
snd_assert(gfp_flags != 0, return NULL);
+ gfp_flags |= __GFP_COMP; /* compound page lets parts be mapped */
pg = get_order(size);
if ((res = (void *) __get_free_pages(gfp_flags, pg)) != NULL) {
mark_pages(virt_to_page(res), pg);
@@ -241,6 +242,7 @@
snd_assert(dma != NULL, return NULL);
pg = get_order(size);
gfp_flags = GFP_KERNEL
+ | __GFP_COMP /* compound page lets parts be mapped */
| __GFP_NORETRY /* don't trigger OOM-killer */
| __GFP_NOWARN; /* no stack trace print - this call is non-critical */
res = dma_alloc_coherent(dev, PAGE_SIZE << pg, dma, gfp_flags);
|
|
|
01-31-2006, 09:12 PM
|
#3
|
Member
Registered: Mar 2005
Distribution: Gentoo
Posts: 184
Original Poster
Rep:
|
This will be my first time to apply a patch to anything. How do I do it? Just open up that file and change the lines, or is there a special command?
|
|
|
01-31-2006, 10:02 PM
|
#4
|
Member
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365
Rep:
|
Quote:
Originally Posted by hosler
This will be my first time to apply a patch to anything. How do I do it? Just open up that file and change the lines, or is there a special command?
|
Extract the alsa driver tarball. Copy the above into a text file and name it whatever you want, like alsa.patch or something. Next make sure that the patch file is in the same root directory as the driver directory and type in the following from a terminal:
patch -p0 < alsa.patch
If you are in a directory where you have rw permissions (like your home directory) you won't need to be root to do this. After you apply the patch just cd over to the alsa driver directory and do the ./configure (with whatever "switches" you need) and make. After you run make, su to root and then do make install.
HTH,
MMYoung
|
|
|
02-01-2006, 06:48 PM
|
#5
|
Member
Registered: Mar 2005
Distribution: Gentoo
Posts: 184
Original Poster
Rep:
|
How can I delete alsa, alsa libs, and all that alsa stuff? I want to do a fresh install of alsa when I do this.
|
|
|
02-01-2006, 07:39 PM
|
#6
|
Member
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365
Rep:
|
Quote:
Originally Posted by hosler
How can I delete alsa, alsa libs, and all that alsa stuff? I want to do a fresh install of alsa when I do this.
|
Just look for the packages you have installed:
dir /var/log/packages/alsa*
Then as root:
removepkg name-of-package
Just don't remove the alsa-driver- whatever_2.4.xx package. That's the drivers for the stock kernel. All you will need to remove will be the alsa-lib, alsa-utils and alsa-oss packages.
Also, my understanding of the 2.6.15 kernel and Slackware is you might have to replace some standard Slackware packages. IIRC, hotplug has been depreciated in favor of udev and it requires udev >= 071 (I think). You might want to check out THIS web site before you go any further. Personally I'm waiting before I upgrade till other folks sort through some of the initial problems before I switch to the 2.6.15 kernel branch.
HTH,
MMYoung
|
|
|
02-01-2006, 07:52 PM
|
#7
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
I'm running the 2.6.15, udev 64. alsa is running fine, everything is OK. 99% of the 'issues' with 2.6.15 are directly related to a sloppy compile.
|
|
|
02-01-2006, 08:32 PM
|
#8
|
Member
Registered: Mar 2005
Distribution: Gentoo
Posts: 184
Original Poster
Rep:
|
Code:
root@lappy:/usr/src# patch -p0 < alsa.patch
patching file alsa-driver-1.0.10/alsa-kernel/core/memalloc.c
patch: **** malformed patch at line 10: */
|
|
|
02-06-2006, 09:11 PM
|
#9
|
Member
Registered: Mar 2005
Distribution: Gentoo
Posts: 184
Original Poster
Rep:
|
Could anyone hook me up with the alsa patch for the 2.6.15.2 kernel? I googled all day and tried many patches, but non of them worked. All these kernel errors are getting really annoying.
|
|
|
02-07-2006, 12:23 AM
|
#10
|
Member
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365
Rep:
|
Have you tried the latest 11rc3 release from ALSA. I noticed on the Changes page a few entries about the 2.6.15 kernel.
Later,
MMYoung
|
|
|
All times are GMT -5. The time now is 07:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|