FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-27-2008, 07:25 PM
Florian Kulzer
 
Default DMA is turned off on my HDD

On Sun, Jul 27, 2008 at 16:57:19 +0300, Anton Liaukevich wrote:
> Florian Kulzer wrote:
>> On Wed, Jul 23, 2008 at 20:59:09 +0300, Anton Liaukevich wrote:
>>> Anton Liaukevich wrote:
>>>> In several days I discovered that DMA is turned off on my HDD (fsck
>>>> sayed it while Debian booting). Please, help me turn on DMA mode.
>>>>
>>>> My hardware:
>>>> motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
>>>> hdd: WD1200JB (ide, 120gb)
>>>> cpu: Sempron 2200 (k7)

[...]

>>> Today I upgraded my linux kernel to 2.6.25-2-686, but problem hasn't
>>> been solved yet.

[...]

> I installed hdparm long ago and it says that dma if off, moreover hdparm
> can't turn it on:
>
> leva:/home/anthony/admin# hdparm -d1 /dev/hda
>
> /dev/hda:
> setting using_dma to 1 (on)
> HDIO_SET_DMA failed: Operation not permitted
> using_dma = 0 (off)

Maybe your system is using the wrong driver.

> Trying to check if my kernel has loaded the correct modules:
>
> leva:/home/anthony/admin# lsmod | grep -E 'amd74xx|ata|ide'
> ide_pci_generic 4228 0 [permanent]
> amd74xx 8136 0 [permanent]
> ata_generic 8004 0
> libata 142288 1 ata_generic

I was expecting to see amd74xx listed here in addition to ata_generic.

> scsi_mod 138668 1 libata
> dock 10448 1 libata
> ide_cd_mod 32864 0
> cdrom 31872 1 ide_cd_mod
> ide_disk 13952 8
> ide_generic 1376 0 [permanent]

Hmm, maybe you system uses ide_generic, which would explain why it
cannot turn on DMA.

> ide_core 100312 5
> ide_pci_generic,amd74xx,ide_cd_mod,ide_disk,ide_ge neric
>
>
> Also I'm giving you output of 'lspci -nn' command:
>
> leva:/home/anthony/admin# lspci -nn

[...]

> 00:09.0 IDE interface [0101]: nVidia Corporation nForce2 IDE [10de:0065] (rev a2)

This is as expected; I checked the 2.6.25 kernel sources and this
controller should be supported.

I would be interested to see the output of

udevadm info -a --name /dev/hda

to check which drivers are used.

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-27-2008, 08:05 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

Florian Kulzer wrote:

On Sun, Jul 27, 2008 at 16:57:19 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Wed, Jul 23, 2008 at 20:59:09 +0300, Anton Liaukevich wrote:

Anton Liaukevich wrote:
In several days I discovered that DMA is turned off on my HDD (fsck
sayed it while Debian booting). Please, help me turn on DMA mode.


My hardware:
motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
hdd: WD1200JB (ide, 120gb)
cpu: Sempron 2200 (k7)


[...]

Today I upgraded my linux kernel to 2.6.25-2-686, but problem hasn't
been solved yet.


[...]

I installed hdparm long ago and it says that dma if off, moreover hdparm
can't turn it on:


leva:/home/anthony/admin# hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)


Maybe your system is using the wrong driver.


Trying to check if my kernel has loaded the correct modules:

leva:/home/anthony/admin# lsmod | grep -E 'amd74xx|ata|ide'
ide_pci_generic 4228 0 [permanent]
amd74xx 8136 0 [permanent]
ata_generic 8004 0
libata 142288 1 ata_generic


I was expecting to see amd74xx listed here in addition to ata_generic.


scsi_mod 138668 1 libata
dock 10448 1 libata
ide_cd_mod 32864 0
cdrom 31872 1 ide_cd_mod
ide_disk 13952 8
ide_generic 1376 0 [permanent]


Hmm, maybe you system uses ide_generic, which would explain why it
cannot turn on DMA.

ide_core 100312 5
ide_pci_generic,amd74xx,ide_cd_mod,ide_disk,ide_ge neric



Also I'm giving you output of 'lspci -nn' command:

leva:/home/anthony/admin# lspci -nn


[...]


00:09.0 IDE interface [0101]: nVidia Corporation nForce2 IDE [10de:0065] (rev a2)


This is as expected; I checked the 2.6.25 kernel sources and this
controller should be supported.

I would be interested to see the output of

udevadm info -a --name /dev/hda

to check which drivers are used.


[Sorry for sending to your own mail address]

I have installed 'udev' packages from Sid because 'udev' package from
Lenny hasn't 'udevadm' command (I could do that because I have mixed
etch/lenny/sid distro with Lenny as default suite).

Now I'm giving you output you are interested to see:

leva:/home/anthony# udevadm info -a --name /dev/hda

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

looking at device '/block/hda':
KERNEL=="hda"
SUBSYSTEM=="block"
DRIVER==""
ATTR{range}=="64"
ATTR{removable}=="0"
ATTR{size}=="234441648"
ATTR{capability}=="10"
ATTR{stat}==" 26867 15550 978587 590892 36637 169067
1645804 18242544 0 716028 18833136"

looking at parent device '/devices/ide0/0.0':
KERNELS=="0.0"
SUBSYSTEMS=="ide"
DRIVERS=="ide-disk"
ATTRS{media}=="disk"
ATTRS{drivename}=="hda"
ATTRS{modalias}=="ide:m-disk"
ATTRS{model}=="WDC WD1200JB-00EVA0"
ATTRS{firmware}=="15.05R15WDC WD1200JB-00EVA0"
ATTRS{serial}=="WD-WMAEK3428625"

looking at parent device '/devices/ide0':
KERNELS=="ide0"
SUBSYSTEMS==""
DRIVERS==""



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-27-2008, 08:34 PM
Ron Johnson
 
Default DMA is turned off on my HDD

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/27/08 14:25, Florian Kulzer wrote:
[snip]
>
> I would be interested to see the output of
>
> udevadm info -a --name /dev/hda
>
> to check which drivers are used.

Hey, that's cool!

- --
Ron Johnson, Jr.
Jefferson LA USA

"Kittens give Morbo gas. In lighter news, the city of New New
York is doomed."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkiM2+MACgkQS9HxQb37XmdH5ACdFM/AvVTq3is/Lau8S601QKeT
odcAoJZGcM2YPUmVKJf5frTOn6E1xt/O
=Tc4I
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-27-2008, 08:54 PM
Florian Kulzer
 
Default DMA is turned off on my HDD

On Sun, Jul 27, 2008 at 15:34:43 -0500, Ron Johnson wrote:
> On 07/27/08 14:25, Florian Kulzer wrote:
> [snip]
> >
> > I would be interested to see the output of
> >
> > udevadm info -a --name /dev/hda
> >
> > to check which drivers are used.
>
> Hey, that's cool!

I forgot: On Etch (and Lenny, until the new udev package arrives), this
should do the same:

udevinfo -a --name /dev/hda

(The legacy command still works on Sid, where /usr/bin/udevinfo is now a
symlink to /sbin/udevadm.)

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-27-2008, 09:12 PM
Florian Kulzer
 
Default DMA is turned off on my HDD

On Sun, Jul 27, 2008 at 23:05:15 +0300, Anton Liaukevich wrote:
> Florian Kulzer wrote:
>> On Sun, Jul 27, 2008 at 16:57:19 +0300, Anton Liaukevich wrote:
>>> Florian Kulzer wrote:
>>>> On Wed, Jul 23, 2008 at 20:59:09 +0300, Anton Liaukevich wrote:
>>>>> Anton Liaukevich wrote:
>>>>>> In several days I discovered that DMA is turned off on my HDD
>>>>>> (fsck sayed it while Debian booting). Please, help me turn on
>>>>>> DMA mode.
>>>>>>
>>>>>> My hardware:
>>>>>> motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
>>>>>> hdd: WD1200JB (ide, 120gb)
>>>>>> cpu: Sempron 2200 (k7)
>>
>> [...]
>>
>>>>> Today I upgraded my linux kernel to 2.6.25-2-686, but problem
>>>>> hasn't been solved yet.
>>
>> [...]
>>
>>> I installed hdparm long ago and it says that dma if off, moreover
>>> hdparm can't turn it on:
>>>
>>> leva:/home/anthony/admin# hdparm -d1 /dev/hda
>>>
>>> /dev/hda:
>>> setting using_dma to 1 (on)
>>> HDIO_SET_DMA failed: Operation not permitted
>>> using_dma = 0 (off)

[...]

>>> 00:09.0 IDE interface [0101]: nVidia Corporation nForce2 IDE [10de:0065] (rev a2)

> I have installed 'udev' packages from Sid because 'udev' package from
> Lenny hasn't 'udevadm' command (I could do that because I have mixed
> etch/lenny/sid distro with Lenny as default suite).

Ah yes, it still seems to be "udevinfo -a --name /dev/hda" with Lenny's
udev.

> Now I'm giving you output you are interested to see:
>
> leva:/home/anthony# udevadm info -a --name /dev/hda

[...]

> looking at device '/block/hda':
> KERNEL=="hda"
> SUBSYSTEM=="block"
> DRIVER==""
> ATTR{range}=="64"
> ATTR{removable}=="0"
> ATTR{size}=="234441648"
> ATTR{capability}=="10"
> ATTR{stat}==" 26867 15550 978587 590892 36637 169067
> 1645804 18242544 0 716028 18833136"
>
> looking at parent device '/devices/ide0/0.0':
> KERNELS=="0.0"
> SUBSYSTEMS=="ide"
> DRIVERS=="ide-disk"
> ATTRS{media}=="disk"
> ATTRS{drivename}=="hda"
> ATTRS{modalias}=="ide:m-disk"
> ATTRS{model}=="WDC WD1200JB-00EVA0"
> ATTRS{firmware}=="15.05R15WDC WD1200JB-00EVA0"
> ATTRS{serial}=="WD-WMAEK3428625"
>
> looking at parent device '/devices/ide0':
> KERNELS=="ide0"
> SUBSYSTEMS==""
> DRIVERS==""

The output should not stop here, it should go on "upward" to the IDE
controller. Also, I had expected to see something like
'/devices/pci0000:00/0000:00:09.0/devices/ide0' instead of just
'/devices/ide0'. It looks like the controller chipset is not recognized
properly, and the amd74xx driver is not used.

Hopefully there will be an error message somewhere that clears this up a
little. Try to reboot and then run:

dmesg | grep grep -Ei 'ata|ide|amd74xx'

Furthermore, there could be relevant messages very early in the boot
process; you might have to use ScrollLock plus pen and paper to catch
them (or set up logging to a serial console).

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-28-2008, 02:48 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

Florian Kulzer wrote:

On Sun, Jul 27, 2008 at 23:05:15 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Sun, Jul 27, 2008 at 16:57:19 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Wed, Jul 23, 2008 at 20:59:09 +0300, Anton Liaukevich wrote:

Anton Liaukevich wrote:
In several days I discovered that DMA is turned off on my HDD
(fsck sayed it while Debian booting). Please, help me turn on
DMA mode.


My hardware:
motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
hdd: WD1200JB (ide, 120gb)
cpu: Sempron 2200 (k7)

[...]

Today I upgraded my linux kernel to 2.6.25-2-686, but problem
hasn't been solved yet.

[...]

I installed hdparm long ago and it says that dma if off, moreover
hdparm can't turn it on:


leva:/home/anthony/admin# hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)


[...]

Hopefully there will be an error message somewhere that clears this up a
little. Try to reboot and then run:

dmesg | grep grep -Ei 'ata|ide|amd74xx'

Furthermore, there could be relevant messages very early in the boot
process; you might have to use ScrollLock plus pen and paper to catch
them (or set up logging to a serial console).

I have tried command "dmesg | grep -Ei 'ata|ide|amd74xx'", suggested by
you (after rebooting and logging in console (nor kdm that I use usually)).

Please read output in the attachment. Thank you for help.
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
[ 0.000000] Nvidia board detected. Ignoring ACPI timer override.
[ 0.000000] If you got timer trouble try acpi_use_timer_override
[ 0.000000] ACPI: BIOS IRQ0 pin2 override ignored.
[ 0.000000] ACPI: IRQ9 used by override.
[ 0.004000] Memory: 509384k/524224k available (1753k kernel code, 14196k reserved, 728k data, 252k init, 0k highmem)
[ 0.004000] .data : 0xc02b649a - 0xc036c640 ( 728 kB)
[ 0.340286] ACPI: PCI Interrupt Link [LIDE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
[ 1.173383] pci 0000:02:00.0: Boot video device
[ 1.642452] Uniform Multi-Platform E-IDE driver
[ 1.642530] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[ 1.643173] Probing IDE interface ide0...
[ 2.058474] hda: WDC WD1200JB-00EVA0, ATA DISK drive
[ 2.730008] Probing IDE interface ide1...
[ 3.592777] hdc: SONY CD-RW CRX320E, ATAPI CD/DVD-ROM drive
[ 4.264276] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[ 4.264276] ide1 at 0x170-0x177,0x376 on irq 15
[ 13.612015] hdc: ATAPI 52X DVD-ROM CD-R/RW drive, 2048kB Cache
[ 14.218581] libata version 3.00 loaded.
[ 14.737649] eth1: Identified 8139 chip type 'RTL-8100B/8139D'
[ 14.740018] NFORCE2: IDE controller (0x10de:0x0065 rev 0xa2) at PCI slot 0000:00:09.0
[ 14.740306] NFORCE2: port 0x01f0 already claimed by ide0
[ 14.740378] NFORCE2: port 0x0170 already claimed by ide1
[ 16.348551] ReiserFS: hda3: using ordered data mode
[ 37.049754] EXT3-fs: mounted filesystem with ordered data mode.
[ 37.342833] EXT3-fs: mounted filesystem with ordered data mode.
 
Old 07-28-2008, 05:10 PM
Florian Kulzer
 
Default DMA is turned off on my HDD

On Mon, Jul 28, 2008 at 17:48:42 +0300, Anton Liaukevich wrote:
> Florian Kulzer wrote:
>> On Sun, Jul 27, 2008 at 23:05:15 +0300, Anton Liaukevich wrote:
>>> Florian Kulzer wrote:
>>>> On Sun, Jul 27, 2008 at 16:57:19 +0300, Anton Liaukevich wrote:
>>>>> Florian Kulzer wrote:
>>>>>> On Wed, Jul 23, 2008 at 20:59:09 +0300, Anton Liaukevich wrote:
>>>>>>> Anton Liaukevich wrote:
>>>>>>>> In several days I discovered that DMA is turned off on my
>>>>>>>> HDD (fsck sayed it while Debian booting). Please, help me
>>>>>>>> turn on DMA mode.
>>>>>>>>
>>>>>>>> My hardware:
>>>>>>>> motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
>>>>>>>> hdd: WD1200JB (ide, 120gb)
>>>>>>>> cpu: Sempron 2200 (k7)
>>>> [...]
>>>>
>>>>>>> Today I upgraded my linux kernel to 2.6.25-2-686, but problem
>>>>>>> hasn't been solved yet.
>>>> [...]
>>>>
>>>>> I installed hdparm long ago and it says that dma if off, moreover
>>>>> hdparm can't turn it on:
>>>>>
>>>>> leva:/home/anthony/admin# hdparm -d1 /dev/hda
>>>>>
>>>>> /dev/hda:
>>>>> setting using_dma to 1 (on)
>>>>> HDIO_SET_DMA failed: Operation not permitted
>>>>> using_dma = 0 (off)
>>
>> [...]
>>
>> Hopefully there will be an error message somewhere that clears this up a
>> little. Try to reboot and then run:
>>
>> dmesg | grep grep -Ei 'ata|ide|amd74xx'
>>
>> Furthermore, there could be relevant messages very early in the boot
>> process; you might have to use ScrollLock plus pen and paper to catch
>> them (or set up logging to a serial console).
>>
> I have tried command "dmesg | grep -Ei 'ata|ide|amd74xx'", suggested by
> you (after rebooting and logging in console (nor kdm that I use
> usually)).
> Please read output in the attachment. Thank you for help.

[...]

> [ 1.642452] Uniform Multi-Platform E-IDE driver

OK, that seems to come from ide_core.

> [ 1.642530] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
> [ 1.643173] Probing IDE interface ide0...
> [ 2.058474] hda: WDC WD1200JB-00EVA0, ATA DISK drive
> [ 2.730008] Probing IDE interface ide1...
> [ 3.592777] hdc: SONY CD-RW CRX320E, ATAPI CD/DVD-ROM drive
> [ 4.264276] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> [ 4.264276] ide1 at 0x170-0x177,0x376 on irq 15
> [ 13.612015] hdc: ATAPI 52X DVD-ROM CD-R/RW drive, 2048kB Cache

Some driver (ide_generic?) takes control of the devices before libata is
loaded. Check the output of "cat /proc/interrupts" to see which module
has IRQs 14 and 15.

> [ 14.218581] libata version 3.00 loaded.
> [ 14.740018] NFORCE2: IDE controller (0x10de:0x0065 rev 0xa2) at PCI slot 0000:00:09.0
> [ 14.740306] NFORCE2: port 0x01f0 already claimed by ide0
> [ 14.740378] NFORCE2: port 0x0170 already claimed by ide1

The nforce2 driver cannot take ove rthe devices => no DMA.

I can think of a few more things to try, but I don't know how "safe"
they are:

- put amd74xx as the first non-comment line into /etc/modules

- boot with "blacklist=ide_generic" appended to the kernel command line

- likewise, try "libata.dma=3" at boot (may be dangerous)

- check the kernel documentation for "libata.force=..." (can be really
dangerous)

- check if the amd74xx module is included in your initrd:
zcat /boot/initrd.img-$(uname -r) | cpio --quiet -t | grep -E '(ide|ata|amd)[^/]*.ko'

- build your own kernel with amd74xx compiled in

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-28-2008, 09:15 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

Florian Kulzer wrote:

On Mon, Jul 28, 2008 at 17:48:42 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Sun, Jul 27, 2008 at 23:05:15 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Sun, Jul 27, 2008 at 16:57:19 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Wed, Jul 23, 2008 at 20:59:09 +0300, Anton Liaukevich wrote:

Anton Liaukevich wrote:
In several days I discovered that DMA is turned off on my
HDD (fsck sayed it while Debian booting). Please, help me
turn on DMA mode.


My hardware:
motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
hdd: WD1200JB (ide, 120gb)
cpu: Sempron 2200 (k7)

[...]



I have tried command "dmesg | grep -Ei 'ata|ide|amd74xx'", suggested by
you (after rebooting and logging in console (nor kdm that I use
usually)).

Please read output in the attachment. Thank you for help.


[...]


[ 1.642452] Uniform Multi-Platform E-IDE driver


OK, that seems to come from ide_core.


[ 1.642530] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[ 1.643173] Probing IDE interface ide0...
[ 2.058474] hda: WDC WD1200JB-00EVA0, ATA DISK drive
[ 2.730008] Probing IDE interface ide1...
[ 3.592777] hdc: SONY CD-RW CRX320E, ATAPI CD/DVD-ROM drive
[ 4.264276] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[ 4.264276] ide1 at 0x170-0x177,0x376 on irq 15
[ 13.612015] hdc: ATAPI 52X DVD-ROM CD-R/RW drive, 2048kB Cache


Some driver (ide_generic?) takes control of the devices before libata is
loaded. Check the output of "cat /proc/interrupts" to see which module
has IRQs 14 and 15.


[ 14.218581] libata version 3.00 loaded.
[ 14.740018] NFORCE2: IDE controller (0x10de:0x0065 rev 0xa2) at PCI slot 0000:00:09.0
[ 14.740306] NFORCE2: port 0x01f0 already claimed by ide0
[ 14.740378] NFORCE2: port 0x0170 already claimed by ide1


The nforce2 driver cannot take ove rthe devices => no DMA.

I can think of a few more things to try, but I don't know how "safe"
they are:

- put amd74xx as the first non-comment line into /etc/modules

- boot with "blacklist=ide_generic" appended to the kernel command line

- likewise, try "libata.dma=3" at boot (may be dangerous)

- check the kernel documentation for "libata.force=..." (can be really
dangerous)

- check if the amd74xx module is included in your initrd:
zcat /boot/initrd.img-$(uname -r) | cpio --quiet -t | grep -E '(ide|ata|amd)[^/]*.ko'

- build your own kernel with amd74xx compiled in


I'm giving you contents of '/proc/interrupts' file:

anthony@leva:~$ cat /proc/interrupts
CPU0
0: 66 IO-APIC-edge timer
1: 2570 IO-APIC-edge i8042
3: 2 IO-APIC-edge
4: 2 IO-APIC-edge
6: 5 IO-APIC-edge floppy
7: 0 IO-APIC-edge parport0
8: 2 IO-APIC-edge rtc0
9: 0 IO-APIC-fasteoi acpi
10: 0 IO-APIC-edge MPU401 UART
12: 100951 IO-APIC-edge i8042
14: 604231 IO-APIC-edge ide0
15: 20161 IO-APIC-edge ide1
17: 742 IO-APIC-fasteoi eth1
20: 0 IO-APIC-fasteoi ohci_hcd:usb2
21: 4317 IO-APIC-fasteoi ehci_hcd:usb1, NVidia nForce2
22: 0 IO-APIC-fasteoi ohci_hcd:usb3
NMI: 0 Non-maskable interrupts
LOC: 117665 Local timer interrupts
RES: 0 Rescheduling interrupts
CAL: 0 function call interrupts
TLB: 0 TLB shootdowns
TRM: 0 Thermal event interrupts
SPU: 0 Spurious interrupts
ERR: 0
MIS: 0

I'm novice in Linux and I don't know how to see which module
has IRQs 14 and 15. Commands "lsmod | grep '604231|20161'" & "ps -A |
grep '604231|20161'" output nothing. Moreover I have noticed that
numbers in the second column of 'cat /proc/interrupts' output sometimes
changes (I have been running it several times). Unfortunately, I haven't
found in man any documentation about '/proc/interrupts' file format.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-29-2008, 02:23 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

Florian Kulzer wrote:

On Mon, Jul 28, 2008 at 17:48:42 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Sun, Jul 27, 2008 at 23:05:15 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Sun, Jul 27, 2008 at 16:57:19 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Wed, Jul 23, 2008 at 20:59:09 +0300, Anton Liaukevich wrote:

Anton Liaukevich wrote:
In several days I discovered that DMA is turned off on my
HDD (fsck sayed it while Debian booting). Please, help me
turn on DMA mode.


My hardware:
motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
hdd: WD1200JB (ide, 120gb)
cpu: Sempron 2200 (k7)

[...]

Today I upgraded my linux kernel to 2.6.25-2-686, but problem
hasn't been solved yet.

[...]

I installed hdparm long ago and it says that dma if off, moreover
hdparm can't turn it on:


leva:/home/anthony/admin# hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

[...]

Hopefully there will be an error message somewhere that clears this up a
little. Try to reboot and then run:

dmesg | grep grep -Ei 'ata|ide|amd74xx'

Furthermore, there could be relevant messages very early in the boot
process; you might have to use ScrollLock plus pen and paper to catch
them (or set up logging to a serial console).

I have tried command "dmesg | grep -Ei 'ata|ide|amd74xx'", suggested by
you (after rebooting and logging in console (nor kdm that I use
usually)).

Please read output in the attachment. Thank you for help.


[...]


[ 1.642452] Uniform Multi-Platform E-IDE driver


OK, that seems to come from ide_core.


[ 1.642530] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[ 1.643173] Probing IDE interface ide0...
[ 2.058474] hda: WDC WD1200JB-00EVA0, ATA DISK drive
[ 2.730008] Probing IDE interface ide1...
[ 3.592777] hdc: SONY CD-RW CRX320E, ATAPI CD/DVD-ROM drive
[ 4.264276] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[ 4.264276] ide1 at 0x170-0x177,0x376 on irq 15
[ 13.612015] hdc: ATAPI 52X DVD-ROM CD-R/RW drive, 2048kB Cache


Some driver (ide_generic?) takes control of the devices before libata is
loaded. Check the output of "cat /proc/interrupts" to see which module
has IRQs 14 and 15.


[ 14.218581] libata version 3.00 loaded.
[ 14.740018] NFORCE2: IDE controller (0x10de:0x0065 rev 0xa2) at PCI slot 0000:00:09.0
[ 14.740306] NFORCE2: port 0x01f0 already claimed by ide0
[ 14.740378] NFORCE2: port 0x0170 already claimed by ide1


The nforce2 driver cannot take ove rthe devices => no DMA.

I can think of a few more things to try, but I don't know how "safe"
they are:

- put amd74xx as the first non-comment line into /etc/modules

- boot with "blacklist=ide_generic" appended to the kernel command line

- likewise, try "libata.dma=3" at boot (may be dangerous)

- check the kernel documentation for "libata.force=..." (can be really
dangerous)

- check if the amd74xx module is included in your initrd:
zcat /boot/initrd.img-$(uname -r) | cpio --quiet -t | grep -E '(ide|ata|amd)[^/]*.ko'

- build your own kernel with amd74xx compiled in

I have already tried first three things you had given me higher
(/etc/modules; "blacklist=ide_generic" or "libata.dma=3" in the kernel
command line). But none of them have solved me problem.


Now, my /etc/modules file looks:

anthony@leva:~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

amd74xx
loop

My main boot record (that I usually use) in /boot/grub/menu.lst looks:

title Debian GNU/Linux, kernel 2.6.25-2-686
root (hd0,2)
kernel /boot/vmlinuz-2.6.25-2-686
root=UUID=683f90cf-5af5-4946-b90d-c69541f15966 libata.dma=3 ro

initrd /boot/initrd.img-2.6.25-2-686
savedefault

Please, correct me if I have done something wrong.

amd74xx module seems to be included in my initrd:

anthony@leva:~$ zcat /boot/initrd.img-$(uname -r) | cpio --quiet -t |
grep -E '(ide|ata|amd)[^/]*.ko'

lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_sil.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_sis.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_sx4.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_svw.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_uli.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_via.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_vsc.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/pata_artop.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_mv.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_nv.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_sil24.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/ata_generic.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_promise.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/pata_sis.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_qstor.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/pata_marvell.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/ata_piix.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/sata_inic162x.ko
lib/modules/2.6.25-2-686/kernel/drivers/ata/libata.ko
lib/modules/2.6.25-2-686/kernel/drivers/ide/pci/amd74xx.ko
lib/modules/2.6.25-2-686/kernel/drivers/ide/pci/ide-pci-generic.ko
lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-core.ko
lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-pnp.ko
lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-disk.ko
lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-cd_mod.ko
lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-tape.ko
lib/modules/2.6.25-2-686/kernel/drivers/ide/legacy/ide-cs.ko
lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-generic.ko
lib/modules/2.6.25-2-686/kernel/drivers/ide/ide-floppy.ko
lib/modules/2.6.25-2-686/kernel/drivers/scsi/eata.ko
lib/modules/2.6.25-2-686/kernel/drivers/block/paride/paride.ko


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-29-2008, 02:36 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

Anton Liaukevich wrote:

Florian Kulzer wrote:

On Mon, Jul 28, 2008 at 17:48:42 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Sun, Jul 27, 2008 at 23:05:15 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Sun, Jul 27, 2008 at 16:57:19 +0300, Anton Liaukevich wrote:

Florian Kulzer wrote:

On Wed, Jul 23, 2008 at 20:59:09 +0300, Anton Liaukevich wrote:

Anton Liaukevich wrote:
In several days I discovered that DMA is turned off on my HDD
(fsck sayed it while Debian booting). Please, help me turn on
DMA mode.


My hardware:
motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
hdd: WD1200JB (ide, 120gb)
cpu: Sempron 2200 (k7)

[...]



I have tried command "dmesg | grep -Ei 'ata|ide|amd74xx'", suggested
by you (after rebooting and logging in console (nor kdm that I use
usually)).

Please read output in the attachment. Thank you for help.


[...]


[ 1.642452] Uniform Multi-Platform E-IDE driver


OK, that seems to come from ide_core.

[ 1.642530] ide: Assuming 33MHz system bus speed for PIO modes;
override with idebus=xx

[ 1.643173] Probing IDE interface ide0...
[ 2.058474] hda: WDC WD1200JB-00EVA0, ATA DISK drive
[ 2.730008] Probing IDE interface ide1...
[ 3.592777] hdc: SONY CD-RW CRX320E, ATAPI CD/DVD-ROM drive
[ 4.264276] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[ 4.264276] ide1 at 0x170-0x177,0x376 on irq 15
[ 13.612015] hdc: ATAPI 52X DVD-ROM CD-R/RW drive, 2048kB Cache


Some driver (ide_generic?) takes control of the devices before libata is
loaded. Check the output of "cat /proc/interrupts" to see which module
has IRQs 14 and 15.


[ 14.218581] libata version 3.00 loaded.
[ 14.740018] NFORCE2: IDE controller (0x10de:0x0065 rev 0xa2) at
PCI slot 0000:00:09.0

[ 14.740306] NFORCE2: port 0x01f0 already claimed by ide0
[ 14.740378] NFORCE2: port 0x0170 already claimed by ide1


The nforce2 driver cannot take ove rthe devices => no DMA.

I can think of a few more things to try, but I don't know how "safe"
they are:

- put amd74xx as the first non-comment line into /etc/modules

- boot with "blacklist=ide_generic" appended to the kernel command line

- likewise, try "libata.dma=3" at boot (may be dangerous)

- check the kernel documentation for "libata.force=..." (can be really
dangerous)

- check if the amd74xx module is included in your initrd:
zcat /boot/initrd.img-$(uname -r) | cpio --quiet -t | grep -E
'(ide|ata|amd)[^/]*.ko'


- build your own kernel with amd74xx compiled in


I'm giving you contents of '/proc/interrupts' file:

anthony@leva:~$ cat /proc/interrupts
CPU0
0: 66 IO-APIC-edge timer
1: 2570 IO-APIC-edge i8042
3: 2 IO-APIC-edge
4: 2 IO-APIC-edge
6: 5 IO-APIC-edge floppy
7: 0 IO-APIC-edge parport0
8: 2 IO-APIC-edge rtc0
9: 0 IO-APIC-fasteoi acpi
10: 0 IO-APIC-edge MPU401 UART
12: 100951 IO-APIC-edge i8042
14: 604231 IO-APIC-edge ide0
15: 20161 IO-APIC-edge ide1
17: 742 IO-APIC-fasteoi eth1
20: 0 IO-APIC-fasteoi ohci_hcd:usb2
21: 4317 IO-APIC-fasteoi ehci_hcd:usb1, NVidia nForce2
22: 0 IO-APIC-fasteoi ohci_hcd:usb3
NMI: 0 Non-maskable interrupts
LOC: 117665 Local timer interrupts
RES: 0 Rescheduling interrupts
CAL: 0 function call interrupts
TLB: 0 TLB shootdowns
TRM: 0 Thermal event interrupts
SPU: 0 Spurious interrupts
ERR: 0
MIS: 0

I'm novice in Linux and I don't know how to see which module
has IRQs 14 and 15. Commands "lsmod | grep '604231|20161'" & "ps -A |
grep '604231|20161'" output nothing. Moreover I have noticed that
numbers in the second column of 'cat /proc/interrupts' output sometimes
changes (I have been running it several times). Unfortunately, I haven't
found in man any documentation about '/proc/interrupts' file format.


After a little googling I have understand that numbers in the second
column are simply count of interrupt attached to given IRQs but I want
to know how to see which module has given IRQ.




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

Thread Tools




All times are GMT. The time now is 03:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org