[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DMA disabled



Thanks a lot for responding

On 3/23/06, Florian Kulzer <florian@molphys.leidenuniv.nl> wrote:
Sumith augustine wrote:
> Hello Everybody,
>
> I am using a Sarge sys with Kernel 2.6.8-2-686 and Radi-1 (hda/hdc)
> Every day at boot time  am getting a DMA time out error for harddisk hdc,
> it  says DMA is disabled. At the same time there is no problem with the hda.
> The syslog msgs are given below.
>
> Mar 22 13:43:52 localhost kernel: hdc: ST340810A, ATA DISK drive
> Mar 22 13:43:52 localhost kernel: hdc: set_drive_speed_status: status=0xd0 {
> Busy }
> Mar 22 13:43:52 localhost kernel: ide1 at 0x170-0x177,0x376 on irq 15
> Mar 22 13:43:52 localhost kernel: hdc: max request size: 128KiB
> Mar 22 13:43:52 localhost kernel: hdc: status timeout: status=0xd0 { Busy }
> Mar 22 13:43:52 localhost kernel:
> Mar 22 13:43:52 localhost kernel: hdc: drive not ready for command
> Mar 22 13:43:52 localhost kernel: hdc: 78165360 sectors (40020 MB) w/2048KiB
> Cache, CHS=65535/16/63, UDMA(33)
> Mar 22 13:43:52 localhost kernel:  /dev/ide/host0/bus1/target0/lun0:hdc:
> status timeout: status=0xd0 { Busy }
> Mar 22 13:43:52 localhost kernel:
> Mar 22 13:43:52 localhost kernel: hdc: DMA disabled
> Mar 22 13:43:52 localhost kernel: hdd: DMA disabled
> Mar 22 13:43:52 localhost kernel: hdc: drive not ready for command
> Mar 22 13:43:52 localhost kernel: ide1: reset: success
> Mar 22 13:43:52 localhost kernel:  p1 p2 p3 p4 < p5 p6 p7 p8 p9 >
>
>  the hdparm results for hdc is
>
> /dev/hdc:
>  multcount    =  0 (off)
>  IO_support   =  0 (default 16-bit)
>  unmaskirq    =  0 (off)
>  using_dma    =  0 (off)
>  keepsettings =  0 (off)
>  readonly     =  0 (off)
>  readahead    = 256 (on)
>  geometry     = 65535/16/63, sectors = 78165360, start = 0
>
>>From this i understand that the dma is off,  Should i enable the DMA using
> "hdparm -d1 /dev/hdc or should i do somthing else ?
>
> Is it safe to use hdparm? and ll it cause any data lose?
> Or should i do somthing to solve this DMA problem?

If you want to play it safe you could boot from a Knoppix CD. Then the
HDs are mounted read-only and you can check if Knoppix manages to enable
DMA for hdc.

The errors during boot in your install seem to indicate that the system
tries to enable DMA for hdc and fails. Therefore I would expect that you
will simply get an error message if you attempt to activate it later
with hdparm. You could try this carefully in single user mode with the
drive mounted read-only.

The failure to turn on DMA during boot could be due to a missing module
in your initrd or due to modules being loaded in the wrong order. It
might even be that you have very new hardware which is not fully
supported in kernel 2.6.8. It would help if you posted the output of
"lspci" here, so that we can know the exact model and revision of your
controller.

hi Florian,
As you asked am posting the lspci output :

0000:00:00.0 Host bridge: Intel Corp. 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 01)
0000:00: 02.0 VGA compatible controller: Intel Corp. 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)
0000:00:1d.0 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
0000:00:1d.1 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
0000:00:1d.2 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
0000:00:1d.7 USB Controller: Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB 2.0 EHCI Controller (rev 01)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev 81)
0000:00:1f.0 ISA bridge: Intel Corp. 82801DB/DBL (ICH4/ICH4-L) LPC Bridge (rev 01)
0000:00:1f.1 IDE interface: Intel Corp. 82801DB/DBL (ICH4/ICH4-L) UltraATA-100 IDE Controller (rev 01)
0000:00:1f.3 SMBus: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
0000:01:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

am using this machine as a webserver in my office and at times the client users say that the webserver is very slow. It is not slow always but  ll go slow for a while. Is this due to the disabled DMA ?...
Let me tell this also am only a beginer ;-)

Thanks a lot
with regards
Sumith

Regards,
            Florian


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: