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-17-2008, 03:19 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

Ron Johnson wrote:

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

On 07/17/08 09:28, Anton Liaukevich wrote:

Ron Johnson wrote:
On 07/17/08 09:05, Bob Cox wrote:

On Thu, Jul 17, 2008 at 08:45:41 -0500, Ron Johnson
(ron.l.johnson@cox.net) wrote:

On 07/17/08 06:48, Anton Liaukevich wrote:

[snip]


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

Scratch the chipset driver. It's the SATA driver. nForce2 is old
enough that it almost definitely needs sata_nv.

Is that right Ron? The OP says it's IDE. I'm using a WD2000JB IDE here
and definitely no SATA drivers.

Too true. Sorry.

Maybe IDE is behind a JMicron bridge? It needs it's own driver.

$ grep JMI /boot/config-2.6.24smp
CONFIG_BLK_DEV_JMICRON=y
CONFIG_PATA_JMICRON=y




I tried "grep JMI /boot/config-2.6.24-1-686" under root and it had
outputed:



CONFIG_BLK_DEV_JMICRON=m
# CONFIG_PATA_JMICRON is not set


That might be your problem.

Try this:
# lshw > foo
And then search foo for JM.

lshw is a small package that you might have to install.

Also, here's what my lspci shows:
$ lspci | grep IDE
00:04.0 IDE interface: nVidia Corporation MCP55 IDE (rev a1)
00:05.0 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
00:05.1 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
00:05.2 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
03:00.1 IDE interface: JMicron Technologies, Inc. JMicron
20360/20363 AHCI Controller (rev 02)


- --
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)

iEYEARECAAYFAkh/WOwACgkQS9HxQb37Xmf2pgCgtp0kmpCfcE/Py+C3a3iIg/9N
/LUAoKpNXHoRlrMmqdaiLx51K3JJKxoz
=M7ub
-----END PGP SIGNATURE-----



On my system lspci show only one string with 'IDE':
leva:/# lspci | grep 'IDE'
00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)

lshw doesn't output anything with 'JM'. Please, see full output in
attachment.


leva
description: Desktop Computer
width: 32 bits
capabilities: smbios-2.2 dmi-2.2 smp
configuration: boot=normal chassis=desktop
*-core
description: Motherboard
product: nVidia-nForce
physical id: 2
*-firmware
description: BIOS
vendor: Phoenix Technologies, LTD
physical id: 0
version: 6.00 PG (07/29/2004)
size: 128KiB
capacity: 192KiB
capabilities: isa pci pnp apm upgrade shadowing cdboot bootselect socketedrom edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb agp ls120boot zipboot
*-cpu
description: CPU
product: AMD Sempron(tm) 2200+
vendor: Advanced Micro Devices [AMD]
physical id: 4
bus info: cpu@0
version: 6.8.1
slot: Socket A
size: 1500MHz
width: 32 bits
clock: 166MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow up ts
*-cache:0
description: L1 cache
physical id: 9
slot: Internal Cache
size: 128KiB
capacity: 128KiB
capabilities: synchronous internal write-back
*-cache:1
description: L2 cache
physical id: a
slot: External Cache
size: 256KiB
capacity: 256KiB
capabilities: synchronous external write-back
*-memory
description: System Memory
physical id: 1b
slot: System board or motherboard
size: 512MiB
capacity: 1536MiB
*-bank:0
description: DIMM
physical id: 0
slot: A0
size: 256MiB
*-bank:1
description: DIMM
physical id: 1
slot: A1
size: 256MiB
*-bank:2
description: DIMM [empty]
physical id: 2
slot: A2
*-pci
description: Host bridge
product: nForce2 IGP2
vendor: nVidia Corporation
physical id: 100
bus info: pci@0000:00:00.0
version: c1
width: 32 bits
clock: 66MHz
configuration: driver=agpgart-nvidia module=nvidia_agp
*-memory:0 UNCLAIMED
description: RAM memory
product: nForce2 Memory Controller 1
vendor: nVidia Corporation
physical id: 0.1
bus info: pci@0000:00:00.1
version: c1
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
*-memory:1 UNCLAIMED
description: RAM memory
product: nForce2 Memory Controller 4
vendor: nVidia Corporation
physical id: 0.2
bus info: pci@0000:00:00.2
version: c1
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
*-memory:2 UNCLAIMED
description: RAM memory
product: nForce2 Memory Controller 3
vendor: nVidia Corporation
physical id: 0.3
bus info: pci@0000:00:00.3
version: c1
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
*-memory:3 UNCLAIMED
description: RAM memory
product: nForce2 Memory Controller 2
vendor: nVidia Corporation
physical id: 0.4
bus info: pci@0000:00:00.4
version: c1
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
*-memory:4 UNCLAIMED
description: RAM memory
product: nForce2 Memory Controller 5
vendor: nVidia Corporation
physical id: 0.5
bus info: pci@0000:00:00.5
version: c1
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
*-isa
description: ISA bridge
product: nForce2 ISA Bridge
vendor: nVidia Corporation
physical id: 1
bus info: pci@0000:00:01.0
version: a4
width: 32 bits
clock: 66MHz
capabilities: isa ht bus_master cap_list
configuration: latency=0
*-serial
description: SMBus
product: nForce2 SMBus (MCP)
vendor: nVidia Corporation
physical id: 1.1
bus info: pci@0000:00:01.1
version: a2
width: 32 bits
clock: 66MHz
capabilities: pm cap_list
configuration: driver=nForce2_smbus latency=0 maxlatency=1 mingnt=3 module=i2c_nforce2
*-usb:0
description: USB Controller
product: nForce2 USB Controller
vendor: nVidia Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: a4
width: 32 bits
clock: 66MHz
capabilities: pm bus_master cap_list
configuration: driver=ohci_hcd latency=0 maxlatency=1 mingnt=3 module=ohci_hcd
*-usbhost
product: OHCI Host Controller
vendor: Linux 2.6.24-1-686 ohci_hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 2.06
capabilities: usb-1.10
configuration: driver=hub slots=3 speed=12.0MB/s
*-usb:1
description: USB Controller
product: nForce2 USB Controller
vendor: nVidia Corporation
physical id: 2.1
bus info: pci@0000:00:02.1
version: a4
width: 32 bits
clock: 66MHz
capabilities: pm bus_master cap_list
configuration: driver=ohci_hcd latency=0 maxlatency=1 mingnt=3 module=ohci_hcd
*-usbhost
product: OHCI Host Controller
vendor: Linux 2.6.24-1-686 ohci_hcd
physical id: 1
bus info: usb@2
logical name: usb2
version: 2.06
capabilities: usb-1.10
configuration: driver=hub slots=3 speed=12.0MB/s
*-usb:2
description: USB Controller
product: nForce2 USB Controller
vendor: nVidia Corporation
physical id: 2.2
bus info: pci@0000:00:02.2
version: a4
width: 32 bits
clock: 66MHz
capabilities: debug pm bus_master cap_list
configuration: driver=ehci_hcd latency=0 maxlatency=1 mingnt=3 module=ehci_hcd
*-usbhost
product: EHCI Host Controller
vendor: Linux 2.6.24-1-686 ehci_hcd
physical id: 1
bus info: usb@3
logical name: usb3
version: 2.06
capabilities: usb-2.00
configuration: driver=hub slots=6 speed=480.0MB/s
*-usb
description: Printer
product: Canon CAPT USB Device
vendor: Canon
physical id: 3
bus info: usb@3:3
version: 1.00
serial: 0000C168KJr8
capabilities: usb-2.00 bidirectional
configuration: driver=usblp speed=480.0MB/s
*-network DISABLED
description: Ethernet interface
product: nForce2 Ethernet Controller
vendor: nVidia Corporation
physical id: 4
bus info: pci@0000:00:04.0
logical name: eth0
version: a1
serial: 00:04:61:6d:d8:4c
capacity: 100MB/s
width: 32 bits
clock: 66MHz
capabilities: pm bus_master cap_list ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=forcedeth driverversion=0.61 latency=0 link=no maxlatency=20 mingnt=1 module=forcedeth multicast=yes port=MII
*-multimedia
description: Multimedia audio controller
product: nForce2 AC97 Audio Controler (MCP)
vendor: nVidia Corporation
physical id: 6
bus info: pci@0000:00:06.0
version: a1
width: 32 bits
clock: 66MHz
capabilities: pm bus_master cap_list
configuration: driver=Intel ICH latency=0 maxlatency=5 mingnt=2 module=snd_intel8x0
*-pci:0
description: PCI bridge
product: nForce2 External PCI Bridge
vendor: nVidia Corporation
physical id: 8
bus info: pci@0000:00:08.0
version: a3
width: 32 bits
clock: 66MHz
capabilities: pci bus_master
*-network
description: Ethernet interface
product: RTL-8139/8139C/8139C+
vendor: Realtek Semiconductor Co., Ltd.
physical id: 9
bus info: pci@0000:01:09.0
logical name: eth1
version: 10
serial: 00:50:22:39:11:b4
size: 100MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=full ip=192.168.1.2 latency=32 link=yes maxlatency=64 mingnt=32 module=8139too multicast=yes port=MII speed=100MB/s
*-ide
description: IDE interface
product: nForce2 IDE
vendor: nVidia Corporation
physical id: 9
bus info: pci@0000:00:09.0
version: a2
width: 32 bits
clock: 66MHz
capabilities: ide pm bus_master cap_list
configuration: driver=AMD_IDE latency=0 maxlatency=1 mingnt=3 module=amd74xx
*-pci:1
description: PCI bridge
product: nForce2 AGP
vendor: nVidia Corporation
physical id: 1e
bus info: pci@0000:00:1e.0
version: c1
width: 32 bits
clock: 66MHz
capabilities: pci bus_master
*-display
description: VGA compatible controller
product: NV18 [GeForce4 MX 440 AGP 8x]
vendor: nVidia Corporation
physical id: 0
bus info: pci@0000:02:00.0
version: c1
width: 32 bits
clock: 66MHz
capabilities: pm agp agp-3.0 bus_master cap_list
configuration: driver=nvidia latency=248 maxlatency=1 mingnt=5 module=nvidia
*-ide:0
description: IDE Channel 0
physical id: 0
bus info: ide@0
logical name: ide0
*-disk
description: ATA Disk
product: WDC WD1200JB-00EVA0
vendor: Western Digital
physical id: 0
bus info: ide@0.0
logical name: /dev/hda
version: 15.05R15
serial: WD-WMAEK3428625
size: 111GiB (120GB)
capacity: 111GiB (120GB)
capabilities: ata dma lba iordy smart security pm partitioned partitioned:dos
configuration: mode=udma5 signature=8942b1c6 smart=on
*-volume:0
description: Windows NTFS volume
physical id: 1
bus info: ide@0.0,1
logical name: /dev/hda1
logical name: /mnt/win
version: 3.1
serial: 46d00658-07e2-4e49-9903-f757a42e2342
size: 27GiB
capacity: 27GiB
capabilities: primary bootable ntfs initialized
configuration: clustersize=4096 created=2008-01-17 13:04:34 filesystem=ntfs label=win0 modified_by_chkdsk=true mount.fstype=ntfs mount.options=ro,uid=0,gid=0,fmask=0177,dmask=077, nls=utf8,errors=continue,mft_zone_multiplier=1 mounted_on_nt4=true resize_log_file=true state=mounted upgrade_on_mount=true
*-volume:1
description: Extended partition
physical id: 2
bus info: ide@0.0,2
logical name: /dev/hda2
size: 67GiB
capacity: 67GiB
capabilities: primary extended partitioned partitioned:extended
*-logicalvolume:0
description: HPFS/NTFS partition
physical id: 5
logical name: /dev/hda5
logical name: /mnt/winhome
capacity: 27GiB
configuration: mount.fstype=ntfs mount.options=rw,uid=0,gid=0,fmask=0177,dmask=077, nls=utf8,errors=continue,mft_zone_multiplier=1 state=mounted
*-logicalvolume:1
description: W95 FAT32 partition
physical id: 6
logical name: /dev/hda6
logical name: /mnt/buffer
capacity: 972MiB
configuration: mount.fstype=vfat mount.options=rw,fmask=0022,dmask=0022,codepage=cp 437,iocharset=iso8859-1,utf8 state=mounted
*-logicalvolume:2
description: Linux swap / Solaris partition
physical id: 7
logical name: /dev/hda7
capacity: 1427MiB
capabilities: nofs
*-logicalvolume:3
description: Linux filesystem partition
physical id: 8
logical name: /dev/hda8
logical name: /home
capacity: 37GiB
configuration: mount.fstype=ext3 mount.options=rw,data=ordered,usrquota,grpquota state=mounted
*-volume:2
description: Linux filesystem partition
physical id: 3
bus info: ide@0.0,3
logical name: /dev/hda3
logical name: /
logical name: /dev/.static/dev
version: 3.6
serial: 683f90cf-5af5-4946-b90d-c69541f15966
size: 15GiB
capacity: 15GiB
capabilities: primary journaled reiserfs initialized
configuration: filesystem=reiserfs hash=r5 mount.fstype=reiserfs mount.options=rw state=mounted
*-volume:3
description: EXT3 volume
vendor: Linux
physical id: 4
bus info: ide@0.0,4
logical name: /dev/hda4
logical name: /usr/local
version: 1.0
serial: 61cdc157-96a3-4fda-a5ac-2307dfa62b3c
size: 1945MiB
capacity: 1945MiB
capabilities: primary journaled extended_attributes large_files huge_files recover ext3 ext2 initialized
configuration: created=2008-07-02 21:57:47 filesystem=ext3 modified=2008-07-17 13:49:18 mount.fstype=ext3 mount.options=rw,data=ordered mounted=2008-07-17 13:49:18 state=mounted
*-ide:1
description: IDE Channel 0
physical id: 1
bus info: ide@1
logical name: ide1
*-cdrom
description: DVD reader
product: SONY CD-RW CRX320E
physical id: 0
bus info: ide@1.0
logical name: /dev/hdc
version: NYK4
capabilities: packet atapi cdrom removable nonmagnetic dma lba iordy audio cd-r cd-rw dvd
configuration: mode=udma2 status=nodisc
 
Old 07-17-2008, 04:07 PM
Pavlos Parissis
 
Default DMA is turned off on my HDD

On Thu, 17 Jul 2008 18:14:05 +0300
Anton Liaukevich <anthonyl@uvaga.by> wrote:

[snip]
> >>
> >
> > As Ron has written you may face a problem with the driver which is being
> > used by the kernel for managing this disk.
> > Try the following to see which driver is being used.
> >
> > readlink /sys/block/hda/device/driver
> >
> >
> > Cheers,
> > Pavlos
> >
> >
> >
> >
>
> "readlink /sys/block/hda/device/driver" outputs:
> ../../../bus/ide/drivers/ide-disk

Since Boc Cox has the same HDD , he can tell us a bit more about what driver is needed.

Cheers,
Pavlos


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 04:19 PM
Bob Cox
 
Default DMA is turned off on my HDD

On Thu, Jul 17, 2008 at 14:48:22 +0300, Anton Liaukevich (anthonyl@uvaga.by) wrote:

[snip]

> I had scanned my hdd with native WD scanner and hadn't detected any
> error. Memory scan (memtest86+) also hadn't detected any error.
> Moreover, Windows XP on another partition of this hdd working normally
> and HDD Health program on it (for S.M.A.R.T viewing) don't predict
> T.E.C. in the near future. Also after previous installation of Debian
> lenny my hdd was working fast.

When you are running Windows XP, is DMA definitely enabled then?

--
Bob Cox. Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 06:38 PM
Bob Cox
 
Default DMA is turned off on my HDD

On Thu, Jul 17, 2008 at 20:03:00 +0300, Anton Liaukevich (anthonyl@uvaga.by) wrote:

> Bob Cox wrote:
>> On Thu, Jul 17, 2008 at 14:48:22 +0300, Anton Liaukevich
>> (anthonyl@uvaga.by) wrote:
>>
>> [snip]
>>
>>> I had scanned my hdd with native WD scanner and hadn't detected any
>>> error. Memory scan (memtest86+) also hadn't detected any error.
>>> Moreover, Windows XP on another partition of this hdd working
>>> normally and HDD Health program on it (for S.M.A.R.T viewing) don't
>>> predict T.E.C. in the near future. Also after previous installation
>>> of Debian lenny my hdd was working fast.
>>
>> When you are running Windows XP, is DMA definitely enabled then?
>>
> I has run Windows XP and has been convinced of DMA to be enabled. My hdd
> WD1200JB-00EVA0 was running at UDMA5 (ATA100) and cdrom Sony CRX320E at
> UDMA2 (ATA33).

[ PLEASE reply to the list and not directly to me. Thank you ]

Ok well if you are sure about this then at least we know it is not a
hardware (jumpers, cable, connectors) problem.

With my WD IDE drive:

bob@trantor:~$ dmesg | grep -i dma
DMA 0 -> 4096
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 4064 pages, LIFO batch:0
atp870u: use 32bit DMA mask.
NFORCE2: 0000:00:09.0 (rev a2) UDMA133 controller
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdcMA, hddMA
hda: UDMA/100 mode selected
hdc: UDMA/66 mode selected
hdd: UDMA/66 mode selected
parport0: PC-style at 0x378 (0x778), irq 7, dma 3
[PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]


bob@trantor:~$ readlink /sys/block/hda/device/driver
../../../../../bus/ide/drivers/ide-disk

bob@trantor:~$ lsmod | grep ^ide
ide_cd 36224 0
ide_disk 15648 8
ide_core 108292 4 ide_cd,ide_disk,amd74xx,generic

Not sure if any of that is of help, but perhaps you could show us the
output of dmesg | grep -i dma

--
Bob Cox. Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/


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

Bob Cox wrote:
On Thu, Jul 17, 2008 at 20:03:00 +0300, Anton Liaukevich (anthonyl@uvaga.by) wrote:


Bob Cox wrote:
On Thu, Jul 17, 2008 at 14:48:22 +0300, Anton Liaukevich
(anthonyl@uvaga.by) wrote:


[snip]

I had scanned my hdd with native WD scanner and hadn't detected any
error. Memory scan (memtest86+) also hadn't detected any error.
Moreover, Windows XP on another partition of this hdd working
normally and HDD Health program on it (for S.M.A.R.T viewing) don't
predict T.E.C. in the near future. Also after previous installation
of Debian lenny my hdd was working fast.

When you are running Windows XP, is DMA definitely enabled then?

I has run Windows XP and has been convinced of DMA to be enabled. My hdd
WD1200JB-00EVA0 was running at UDMA5 (ATA100) and cdrom Sony CRX320E at
UDMA2 (ATA33).


[ PLEASE reply to the list and not directly to me. Thank you ]

Ok well if you are sure about this then at least we know it is not a
hardware (jumpers, cable, connectors) problem.

With my WD IDE drive:

bob@trantor:~$ dmesg | grep -i dma
DMA 0 -> 4096
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 4064 pages, LIFO batch:0
atp870u: use 32bit DMA mask.
NFORCE2: 0000:00:09.0 (rev a2) UDMA133 controller
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdcMA, hddMA
hda: UDMA/100 mode selected
hdc: UDMA/66 mode selected
hdd: UDMA/66 mode selected
parport0: PC-style at 0x378 (0x778), irq 7, dma 3
[PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]


bob@trantor:~$ readlink /sys/block/hda/device/driver
../../../../../bus/ide/drivers/ide-disk

bob@trantor:~$ lsmod | grep ^ide
ide_cd 36224 0
ide_disk 15648 8
ide_core 108292 4 ide_cd,ide_disk,amd74xx,generic

Not sure if any of that is of help, but perhaps you could show us the
output of dmesg | grep -i dma


Now I am simply showing you output of commands suggested me by Bob Cox.

anthony@leva:~$ dmesg | grep -i dma
DMA 0 -> 4096
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 4064 pages, LIFO batch:0
NFORCE2: 0000:00:09.0 (rev a2) UDMA133 controller
parport0: PC-style at 0x378 (0x778), irq 7, dma 3
[PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]


anthony@leva:~$ readlink /sys/block/hda/device/driver
../../../bus/ide/drivers/ide-disk

anthony@leva:~$ lsmod | grep ^ide
ide_cd 36224 0
ide_disk 15648 8
ide_generic 1280 0 [permanent]
ide_core 108292 5 generic,amd74xx,ide_cd,ide_disk,ide_generic


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

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)

My software:
Debian lenny
kernel: linux 2.6.24-1-686
bootloader: grub 0.97-41


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


I'm giving you some lines about DMA from '/var/log/syslog' file.
Perhaps, this will help you to solve my problem:


Jul 23 19:19:08 leva kernel: [ 0.000000] Zone PFN ranges:
Jul 23 19:19:08 leva kernel: [ 0.000000] DMA 0 -> 4096
Jul 23 19:19:08 leva kernel: [ 0.000000] Normal 4096 -> 131056
Jul 23 19:19:08 leva kernel: [ 0.000000] HighMem 131056 -> 131056
...
Jul 23 19:19:08 leva kernel: [ 0.000000] On node 0 totalpages: 131056
Jul 23 19:19:08 leva kernel: [ 0.000000] DMA zone: 32 pages used
for memmap

Jul 23 19:19:08 leva kernel: [ 0.000000] DMA zone: 0 pages reserved
Jul 23 19:19:08 leva kernel: [ 0.000000] DMA zone: 4064 pages, LIFO
batch:0

...
Jul 23 19:19:08 leva kernel: [ 1.641566] Uniform Multi-Platform E-IDE
driver
Jul 23 19:19:08 leva kernel: [ 1.641645] ide: Assuming 33MHz system
bus speed for PIO modes; override with idebus=xx

Jul 23 19:19:08 leva kernel: [ 1.642286] Probing IDE interface ide0...
Jul 23 19:19:08 leva kernel: [ 2.057740] hda: WDC WD1200JB-00EVA0,
ATA DISK drive

Jul 23 19:19:08 leva kernel: [ 2.729277] Probing IDE interface ide1...
Jul 23 19:19:08 leva kernel: [ 3.592048] hdc: SONY CD-RW CRX320E,
ATAPI CD/DVD-ROM drive
Jul 23 19:19:08 leva kernel: [ 4.263546] ide0 at 0x1f0-0x1f7,0x3f6 on
irq 14
Jul 23 19:19:08 leva kernel: [ 4.263546] ide1 at 0x170-0x177,0x376 on
irq 15

...
Jul 23 19:19:08 leva kernel: [ 5.859859] NFORCE2: 0000:00:09.0 (rev
a2) UDMA133 controller
Jul 23 19:19:08 leva kernel: [ 5.859938] NFORCE2: IDE controller
(0x10de:0x0065 rev 0xa2) at PCI slot 0000:00:09.0
Jul 23 19:19:08 leva kernel: [ 5.860054] NFORCE2: not 100% native
mode: will probe irqs later
Jul 23 19:19:08 leva kernel: [ 5.860129] NFORCE2: BIOS didn't set
cable bits correctly. Enabling workaround.
Jul 23 19:19:08 leva kernel: [ 5.860224] NFORCE2: port 0x01f0 already
claimed by ide0
Jul 23 19:19:08 leva kernel: [ 5.860296] NFORCE2: port 0x0170 already
claimed by ide1


Excuse me if I gave you something not very useful because I'm novice at
Debian.



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

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)
>>
>> My software:
>> Debian lenny
>> kernel: linux 2.6.24-1-686
>> bootloader: grub 0.97-41
>>
>>
> Today I upgraded my linux kernel to 2.6.25-2-686, but problem hasn't
> been solved yet.
>
> I'm giving you some lines about DMA from '/var/log/syslog' file.
> Perhaps, this will help you to solve my problem:

[...]

> Jul 23 19:19:08 leva kernel: [ 1.641566] Uniform Multi-Platform E-IDE
> driver
> Jul 23 19:19:08 leva kernel: [ 1.641645] ide: Assuming 33MHz system
> bus speed for PIO modes; override with idebus=xx
> Jul 23 19:19:08 leva kernel: [ 1.642286] Probing IDE interface ide0...
> Jul 23 19:19:08 leva kernel: [ 2.057740] hda: WDC WD1200JB-00EVA0,
> ATA DISK drive
> Jul 23 19:19:08 leva kernel: [ 2.729277] Probing IDE interface ide1...
> Jul 23 19:19:08 leva kernel: [ 3.592048] hdc: SONY CD-RW CRX320E,
> ATAPI CD/DVD-ROM drive
> Jul 23 19:19:08 leva kernel: [ 4.263546] ide0 at 0x1f0-0x1f7,0x3f6 on
> irq 14
> Jul 23 19:19:08 leva kernel: [ 4.263546] ide1 at 0x170-0x177,0x376 on
> irq 15
> ...
> Jul 23 19:19:08 leva kernel: [ 5.859859] NFORCE2: 0000:00:09.0 (rev
> a2) UDMA133 controller
> Jul 23 19:19:08 leva kernel: [ 5.859938] NFORCE2: IDE controller
> (0x10de:0x0065 rev 0xa2) at PCI slot 0000:00:09.0

This is important information: the vendorID (10de NVIDIA) and the
deviceID (0065 NVIDIA_NFORCE2_IDE). You will get the same information by
running "lspci -nn" on the command line; it will be listed as
"[10de:0065]". This IDE controller seems to be supported by the amd74xx
driver in kernel 2.6.25 (according to the Debian driver check page at
http://kmuto.jp/debian/hcl/).

> Jul 23 19:19:08 leva kernel: [ 5.860054] NFORCE2: not 100% native
> mode: will probe irqs later
> Jul 23 19:19:08 leva kernel: [ 5.860129] NFORCE2: BIOS didn't set
> cable bits correctly. Enabling workaround.
> Jul 23 19:19:08 leva kernel: [ 5.860224] NFORCE2: port 0x01f0 already
> claimed by ide0
> Jul 23 19:19:08 leva kernel: [ 5.860296] NFORCE2: port 0x0170 already
> claimed by ide1

The first thing to check is if your kernel loaded the correct modules;
please post the output of this command:

lsmod | grep -E 'amd74xx|ata|ide'

Also, install the "hdparm" package if you don't have it already and run
"hdparm /dev/hda" as root. What response do you get? You can also try to
turn on DMA yourself with "hdparm -d1 /dev/hda"; maybe you will receive
a helpful error message.

--
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, 12:15 AM
Chris Bannister
 
Default DMA is turned off on my HDD

On Wed, Jul 23, 2008 at 08:59:09PM +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)
>>
>> My software:
>> Debian lenny
>> kernel: linux 2.6.24-1-686
>> bootloader: grub 0.97-41
>>
>>
> Today I upgraded my linux kernel to 2.6.25-2-686, but problem hasn't
> been solved yet.

All I can suggest is:

In the file /boot/grub/menu.lst, edit the line:
# kopt=root=/dev/hda1 ro

to read:
# kopt=root=/dev/hda1 dma=on ro

of course make sure that "/dev/hda1" is correct for your setup. If you
only have one HDD installed then it probably is already correct.

Then run update-grub

Install hdparm:
aptitude install hdparm

reboot

then run:
hdparm /dev/hda

and see if dma is turned on, e.g:

root@box:~# hdparm /dev/hda
[..]
using_dma = 1 (on)
[..]

If instead, it outputs "using_dma = 0 (off)" then I'm sorry, but I
am unable to help further. You may want to run the hdparm command BEFORE
you edit your menu.lst to ensure that the dma is actually off and you
are not being deceived in some way. :-)

--
Chris.
======
"One, with God, is always a majority, but many a martyr has been burned
at the stake while the votes were being counted." -- Thomas B. Reed


--
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, 01:36 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

Chris Bannister wrote:

On Wed, Jul 23, 2008 at 08:59:09PM +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)

My software:
Debian lenny
kernel: linux 2.6.24-1-686
bootloader: grub 0.97-41


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


All I can suggest is:

In the file /boot/grub/menu.lst, edit the line:
# kopt=root=/dev/hda1 ro

to read:
# kopt=root=/dev/hda1 dma=on ro

of course make sure that "/dev/hda1" is correct for your setup. If you
only have one HDD installed then it probably is already correct.

Then run update-grub

Install hdparm:
aptitude install hdparm

reboot

then run:
hdparm /dev/hda

and see if dma is turned on, e.g:

root@box:~# hdparm /dev/hda
[..]
using_dma = 1 (on)
[..]

If instead, it outputs "using_dma = 0 (off)" then I'm sorry, but I
am unable to help further. You may want to run the hdparm command BEFORE
you edit your menu.lst to ensure that the dma is actually off and you
are not being deceived in some way. :-)


[Sorry, I have at first sent message to your address]

I have changed /boot/grub/menu.lst as you said:

# kopt=root=UUID=683f90cf-5af5-4946-b90d-c69541f15966 dma=on ro

Now, after update-grub command, all my boot stanzas have 'dma=on'
options. For example:

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 dma=on ro
initrd /boot/initrd.img-2.6.25-2-686
savedefault

Unfortunately, DMA hasn't turned on after system reboot (I has checked
it using hdparm).

Additionally, I give you full menu.lst file in attachment.

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default saved

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
password --md5 $1$kLE2a$kaeh1q3GPQC38zBZB3IG7.

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=683f90cf-5af5-4946-b90d-c69541f15966 dma=on ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=true

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=true

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=true

## ## End Default Options ##

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 dma=on ro
initrd /boot/initrd.img-2.6.25-2-686
savedefault

title Debian GNU/Linux, kernel 2.6.25-2-686 (single-user mode)
lock
root (hd0,2)
kernel /boot/vmlinuz-2.6.25-2-686 root=UUID=683f90cf-5af5-4946-b90d-c69541f15966 dma=on ro single
initrd /boot/initrd.img-2.6.25-2-686
savedefault

title Debian GNU/Linux, kernel 2.6.24-1-686
lock
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-1-686 root=UUID=683f90cf-5af5-4946-b90d-c69541f15966 dma=on ro
initrd /boot/initrd.img-2.6.24-1-686
savedefault

title Debian GNU/Linux, kernel 2.6.24-1-686 (single-user mode)
lock
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-1-686 root=UUID=683f90cf-5af5-4946-b90d-c69541f15966 dma=on ro single
initrd /boot/initrd.img-2.6.24-1-686
savedefault

title Debian GNU/Linux, kernel 2.6.24-1-486
lock
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-1-486 root=UUID=683f90cf-5af5-4946-b90d-c69541f15966 dma=on ro
initrd /boot/initrd.img-2.6.24-1-486
savedefault

title Debian GNU/Linux, kernel 2.6.24-1-486 (single-user mode)
lock
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-1-486 root=UUID=683f90cf-5af5-4946-b90d-c69541f15966 dma=on ro single
initrd /boot/initrd.img-2.6.24-1-486
savedefault

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
 
Old 07-27-2008, 01:57 PM
Anton Liaukevich
 
Default DMA is turned off on my HDD

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)

My software:
Debian lenny
kernel: linux 2.6.24-1-686
bootloader: grub 0.97-41


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



This is important information: the vendorID (10de NVIDIA) and the

deviceID (0065 NVIDIA_NFORCE2_IDE). You will get the same information by
running "lspci -nn" on the command line; it will be listed as
"[10de:0065]". This IDE controller seems to be supported by the amd74xx
driver in kernel 2.6.25 (according to the Debian driver check page at
http://kmuto.jp/debian/hcl/).

The first thing to check is if your kernel loaded the correct modules;
please post the output of this command:

lsmod | grep -E 'amd74xx|ata|ide'

Also, install the "hdparm" package if you don't have it already and run
"hdparm /dev/hda" as root. What response do you get? You can also try to
turn on DMA yourself with "hdparm -d1 /dev/hda"; maybe you will receive
a helpful error message.

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)


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
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]
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:00.0 Host bridge [0600]: nVidia Corporation nForce2 IGP2 [10de:01e0]
(rev c1)
00:00.1 RAM memory [0500]: nVidia Corporation nForce2 Memory Controller
1 [10de:01eb] (rev c1)
00:00.2 RAM memory [0500]: nVidia Corporation nForce2 Memory Controller
4 [10de:01ee] (rev c1)
00:00.3 RAM memory [0500]: nVidia Corporation nForce2 Memory Controller
3 [10de:01ed] (rev c1)
00:00.4 RAM memory [0500]: nVidia Corporation nForce2 Memory Controller
2 [10de:01ec] (rev c1)
00:00.5 RAM memory [0500]: nVidia Corporation nForce2 Memory Controller
5 [10de:01ef] (rev c1)
00:01.0 ISA bridge [0601]: nVidia Corporation nForce2 ISA Bridge
[10de:0060] (rev a4)
00:01.1 SMBus [0c05]: nVidia Corporation nForce2 SMBus (MCP) [10de:0064]
(rev a2)
00:02.0 USB Controller [0c03]: nVidia Corporation nForce2 USB Controller
[10de:0067] (rev a4)
00:02.1 USB Controller [0c03]: nVidia Corporation nForce2 USB Controller
[10de:0067] (rev a4)
00:02.2 USB Controller [0c03]: nVidia Corporation nForce2 USB Controller
[10de:0068] (rev a4)
00:04.0 Ethernet controller [0200]: nVidia Corporation nForce2 Ethernet
Controller [10de:0066] (rev a1)
00:06.0 Multimedia audio controller [0401]: nVidia Corporation nForce2
AC97 Audio Controler (MCP) [10de:006a] (rev a1)
00:08.0 PCI bridge [0604]: nVidia Corporation nForce2 External PCI
Bridge [10de:006c] (rev a3)
00:09.0 IDE interface [0101]: nVidia Corporation nForce2 IDE [10de:0065]
(rev a2)
00:1e.0 PCI bridge [0604]: nVidia Corporation nForce2 AGP [10de:01e8]
(rev c1)
01:09.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ [10ec:8139] (rev 10)
02:00.0 VGA compatible controller [0300]: nVidia Corporation NV18
[GeForce4 MX 440 AGP 8x] [10de:0181] (rev c1)



--
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 01:28 PM.

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