Re: 2.0.26: sound error: cannot allocate DMA

Philippe Strauss (philou@sicel-home-1-4.urbanet.ch)
Sat, 23 Nov 1996 18:41:52 +0100 (MET)


Hannu Savolainen wrote:
>
> Hi,
>
> Does the problem occur also immediately after boot?
>
> Best regards,
>
> Hannu
> -----------------------------
> Hannu Savolainen (hannu@voxware.pp.fi, hannu@4front-tech.com)
> http://personal.eunet.fi/pp/voxware/hannu.html (my home page)
> http://www.4Front-Tech.com/oss.html (Open Sound System (OSS))
> http://personal.eunet.fi/pp/voxware (OSS Free/TASD/VoxWare)
>

Hi Hannu,

Yeap, even right after rebooting:

Welcome to Linux 2.0.26
sicel-home-1-4.urbanet.ch login: philou
Password:
Last login: Sat Nov 23 18:30:45 on tty1
Linux sicel-home-1-4.urbanet.ch 2.0.26 #2 Sat Nov 23 17:15:21 MET 1996 i586
You have new mail.
philou@sicel-home-1-4:~$ cat /dev/dsp
Sound error: Couldn't allocate DMA buffer
cat: /dev/dsp: Out of memory

My soundconf contain this:

#define CONFIG_SB
#define CONFIG_YM3812
#define CONFIG_SBDSP
#define CONFIG_UART401
#define CONFIG_SEQUENCER
#define CONFIG_AUDIO
#define CONFIG_MIDI
#define SBC_BASE 0x220
#define SBC_IRQ 5
#define SBC_DMA 1
#define SB_DMA2 6
#define SB_MPU_BASE 0x330
#define SELECTED_SOUND_OPTIONS 0x00800002

shift-Scrollock:

philou@sicel-home-1-4:~$ Mem-info:
Free pages: 21452kB
( 15*4kB 6*8kB 2*16kB 2*32kB 0*64kB 166*128kB = 21452kB)
^^^^^^
Swap cache: add 0/0, delete 54490/0, find 0/0
Free swap: 68536kB
8192 pages of RAM
5394 free pages
473 reserved pages
2398 pages shared
Buffer memory: 1156kB
Buffer heads: 1200
Buffer blocks: 1156
Buffer[0] mem: 789 buffers, 3 used (last=494), 0 locked, 0 protected, 0 dirty 0 shrd
Buffer[2] mem: 302 buffers, 22 used (last=298), 3 locked, 0 protected, 0 dirty 0 shrd
Buffer[4] mem: 43 buffers, 0 used (last=0), 0 locked, 0 protected, 43 dirty 0 shrd
Size [LAV] Free Clean Unshar Lck Lck1 Dirty Shared
512 [ 0]: 0 0 0 0 0 0 0
1024 [ 33]: 22 789 0 302 0 43 0
2048 [ 0]: 0 0 0 0 0 0 0
4096 [ 0]: 0 0 0 0 0 0 0
8192 [ 0]: 0 0 0 0 0 0 0

I will try to recompile a 2.0.25 to see the free pages behaviour.

Regards, Philippe.

-- 
Philippe Strauss, CH-1092 Belmont

Email: <philippe.strauss@urbanet.ch> Homepage: http://sicel-home-1-4.urbanet.ch