Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] DMA problem on Amilo M6453G
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Sat Jan 20, 2007 5:05 pm    Post subject: [solved] DMA problem on Amilo M6453G Reply with quote

Hi,

I have a problem when I try to activate the DMA of my cdrom drive:
Code:
lilorox lilo # hdparm -d1 /dev/hdc

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


This may help:
Code:
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 04)
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, fast devsel, latency 0
   Capabilities: [e0] Vendor Specific Information

00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM Express PCI Express Root Port (rev 04) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
   I/O behind bridge: 0000d000-0000dfff
   Memory behind bridge: ffd00000-ffdfffff
   Prefetchable memory behind bridge: cff00000-dfefffff
   Capabilities: [88] #0d [0000]
   Capabilities: [80] Power Management version 2
   Capabilities: [90] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
   Capabilities: [a0] Express Root Port (Slot+) IRQ 0
   Capabilities: [100] Virtual Channel
   Capabilities: [140] Unknown (5)

00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Memory at ffef8000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [50] Power Management version 2
   Capabilities: [60] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
   Capabilities: [70] Express Unknown type IRQ 0
   Capabilities: [100] Virtual Channel
   Capabilities: [130] Unknown (5)

00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
   Memory behind bridge: bfc00000-bfcfffff
   Prefetchable memory behind bridge: 00000000bfd00000-00000000bfd00000
   Capabilities: [40] Express Root Port (Slot+) IRQ 0
   Capabilities: [80] Message Signalled Interrupts: 64bit- Queue=0/0 Enable-
   Capabilities: [90] #0d [0000]
   Capabilities: [a0] Power Management version 2
   Capabilities: [100] Virtual Channel
   Capabilities: [180] Unknown (5)

00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04) (prog-if 00 [UHCI])
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, medium devsel, latency 0, IRQ 17
   I/O ports at e480 [size=32]

00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04) (prog-if 00 [UHCI])
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, medium devsel, latency 0, IRQ 18
   I/O ports at e800 [size=32]

00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04) (prog-if 00 [UHCI])
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, medium devsel, latency 0, IRQ 19
   I/O ports at e880 [size=32]

00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04) (prog-if 00 [UHCI])
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, medium devsel, latency 0, IRQ 16
   I/O ports at ec00 [size=32]

00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04) (prog-if 20 [EHCI])
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, medium devsel, latency 0, IRQ 17
   Memory at ffeffc00 (32-bit, non-prefetchable) [size=1K]
   Capabilities: [50] Power Management version 2
   Capabilities: [58] Debug port

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4) (prog-if 01 [Subtractive decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
   I/O behind bridge: 0000c000-0000cfff
   Memory behind bridge: ffc00000-ffcfffff
   Capabilities: [50] #0d [0000]

00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, medium devsel, latency 0

00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04) (prog-if 80 [Master])
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 18
   I/O ports at <unassigned>
   I/O ports at <unassigned>
   I/O ports at <unassigned>
   I/O ports at <unassigned>
   I/O ports at ffa0 [size=16]
   Capabilities: [70] Power Management version 2

00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: medium devsel, IRQ 18
   I/O ports at 0400 [size=32]

01:03.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
   Subsystem: Intel Corporation Unknown device 2702
   Flags: bus master, medium devsel, latency 64, IRQ 20
   Memory at ffcfe000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: [dc] Power Management version 2

01:0a.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link) (prog-if 10 [OHCI])
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, medium devsel, latency 64, IRQ 19
   Memory at ffcff000 (32-bit, non-prefetchable) [size=2K]
   Memory at ffcf8000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: [44] Power Management version 2

01:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, medium devsel, latency 64, IRQ 18
   I/O ports at c800 [size=256]
   Memory at ffcffc00 (32-bit, non-prefetchable) [size=256]
   Capabilities: [50] Power Management version 2

03:00.0 VGA compatible controller: ATI Technologies Inc M24 [Radeon Mobility X600] (prog-if 00 [VGA])
   Subsystem: Fujitsu Siemens Computer GmbH Unknown device 1094
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Memory at d0000000 (32-bit, prefetchable) [size=128M]
   I/O ports at d800 [size=256]
   Memory at ffdf0000 (32-bit, non-prefetchable) [size=64K]
   Expansion ROM at ffdc0000 [disabled] [size=128K]
   Capabilities: [50] Power Management version 2
   Capabilities: [58] Express Endpoint IRQ 0
   Capabilities: [80] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
   Capabilities: [100] Advanced Error Reporting


I also have some errors in my dmesg:
Quote:
@ 0x3ffd0390
ACPI: MCFG (v001 A M I OEMMCFG 0x12000501 MSFT 0x00000097) @ 0x3ffd03f0
ACPI: OEMB (v001 A M I AMI_OEM 0x12000501 MSFT 0x00000097) @ 0x3ffde040
ACPI: MCFG (v001 A M I OEMMCFG 0x12000501 MSFT 0x00000097) @ 0x3ffd47f0
ACPI: SSDT (v001 AMI0 CPU1PM 0x00000001 INTL 0x02002026) @ 0x3ffd4830
ACPI: DSDT (v001 UW____ F25_____ 0x00000000 INTL 0x02002026) @ 0x00000000
ACPI: PM-Timer IO Port: 0x808
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 6:13 APIC version 20
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 32, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode: Flat. Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:a0000000)
Detected 1866.787 MHz processor.
Built 1 zonelists. Total pages: 262096
Kernel command line: video=vesafb:mtrr,ywrap root=/dev/sda4 quiet pci=routeirq
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1034500k/1048384k available (2900k kernel code, 13260k reserved, 902k data, 192k init, 130880k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 3734.93 BogoMIPS (lpj=1867467)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: afe9fbff 00000000 00000000 00000000 00000180 00000000 00000000
CPU: After vendor identify, caps: afe9fbff 00000000 00000000 00000000 00000180 00000000 00000000
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 2048K
CPU: After all inits, caps: afe9fbff 00000000 00000000 00000040 00000180 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Compat vDSO mapped to ffffe000.
CPU: Intel(R) Pentium(R) M processor 1.86GHz stepping 08
Checking 'hlt' instruction... OK.
ACPI: Core revision 20060707
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
NET: Registered protocol family 16
ACPI: bus type pci registered
ACPI: 2 duplicate MCFG table ignored.
PCI: Using MMCONFIG
Setting up standard PCI resources
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
PCI quirk: region 0800-087f claimed by ICH6 ACPI/GPIO/TCO
PCI quirk: region 0480-04bf claimed by ICH6 GPIO
PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.2
Boot video device is 0000:03:00.0
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
ACPI: Embedded Controller [EC0] (gpe 24) interrupt mode.
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P3._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs *3 4 5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 *7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 10 *11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 12 devices
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: Routing PCI interrupts for all devices because "pci=routeirq" specified
ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 17
ACPI: PCI Interrupt 0000:00:1d.1[ b] -> GSI 19 (level, low) -> IRQ 18
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 19
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 23 (level, low) -> IRQ 17
ACPI: PCI Interrupt 0000:00:1f.2[ b] -> GSI 19 (level, low) -> IRQ 18
ACPI: PCI Interrupt 0000:00:1f.3[ B] -> GSI 19 (level, low) -> IRQ 18
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI Interrupt 0000:01:03.0[A] -> GSI 21 (level, low) -> IRQ 20
ACPI: PCI Interrupt 0000:01:0a.0[A] -> GSI 18 (level, low) -> IRQ 19
ACPI: PCI Interrupt 0000:01:0c.0[A] -> GSI 19 (level, low) -> IRQ 18
PCI: Cannot allocate resource region 7 of bridge 0000:00:1c.0
PCI: Bridge: 0000:00:01.0
IO window: d000-dfff
MEM window: ffd00000-ffdfffff
PREFETCH window: cff00000-dfefffff
PCI: Bridge: 0000:00:1c.0
IO window: disabled.
MEM window: bfc00000-bfcfffff
PREFETCH window: bfd00000-bfdfffff
PCI: Bridge: 0000:00:1e.0
IO window: c000-cfff
MEM window: ffc00000-ffcfffff
PREFETCH window: disabled.
ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:01.0 to 64
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:1c.0 to 64
PCI: Setting latency timer of device 0000:00:1e.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
Machine check exception polling timer started.
audit: initializing netlink socket (disabled)
audit(1169314009.451:1): initialized
highmem bounce pool size: 64 pages
NTFS driver 2.1.27 [Flags: R/O].
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: Setting latency timer of device 0000:00:01.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:01.0:pcie00]
Allocate Port Service[0000:00:01.0:pcie03]
PCI: Setting latency timer of device 0000:00:1c.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:1c.0:pcie00]
Allocate Port Service[0000:00:1c.0:pcie02]
Allocate Port Service[0000:00:1c.0:pcie03]
Real Time Clock Driver v1.12ac
vesafb: unrecognized option mtrr
vesafb: ATI Technologies Inc., C24 , 01.00 (OEM: ATI MOBILITY RADEON X600 )
vesafb: VBE version: 2.0
vesafb: protected mode interface info at c000:569d
vesafb: pmi: set display start = c00c570b, set palette = c00c5745
vesafb: pmi: ports = d810 d816 d854 d838 d83c d85c d800 d804 d8b0 d8b2 d8b4
vesafb: no monitor limits have been set
vesafb: scrolling: ywrap using protected mode interface, yres_virtual=6144
vesafb: VBE state buffer size cannot be determined (eax: 0x0)
Console: switching to colour frame buffer device 128x96
vesafb: framebuffer at 0xd0000000, mapped to 0xf8880000, using 6144k, total 32704k
fb0: VESA VGA frame buffer device
ACPI: AC Adapter [AC0] (on-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Power Button (CM) [PWRB]
ACPI Error (utglobal-0125): Unknown exception code: 0xFFFFFFFE [20060707]
ACPI Exception (acpi_video-1544): UNKNOWN_STATUS_CODE, Cant attach device [20060707]

ACPI: Video Device [PEG] (multi-head: yes rom: no post: no)
ACPI: CPU0 (power states: C1[C1] C2[C2])
ACPI: Processor [CPU1] (supports 8 throttling states)
ACPI: Thermal Zone [THRM] (31 C)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
i8042.c: Detected active multiplexing controller, rev 1.0.
serio: i8042 AUX0 port at 0x60,0x64 irq 12
serio: i8042 AUX1 port at 0x60,0x64 irq 12
serio: i8042 AUX2 port at 0x60,0x64 irq 12
serio: i8042 AUX3 port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe

Probing IDE interface ide1...
input: AT Translated Set 2 keyboard as /class/input/input0
Synaptics Touchpad, model: 1, fw: 5.10, id: 0x258eb1, caps: 0xa04713/0x0
input: SynPS/2 Synaptics TouchPad as /class/input/input1
hdc: _NEC DVD+/-RW ND-6650A, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
libata version 2.00 loaded.
ata_piix 0000:00:1f.2: version 2.00
ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 18
ata: 0x170 IDE port busy
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xFFA0 irq 14
scsi0 : ata_piix
ata1.00: ATA-7, max UDMA/100, 156301488 sectors: LBA48 NCQ (depth 0/32)
ata1.00: ata1: dev 0 multi count 16
ata1.00: configured for UDMA/100
Vendor: ATA Model: FUJITSU MHV2080B Rev: 0000
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
usbmon: debugfs is not available
ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 23 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: debug port 1
PCI: cache line size of 32 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: irq 17, io mem 0xffeffc00
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.0: irq 17, io base 0x0000e480
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1d.1: irq 18, io base 0x0000e800
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:00:1d.2 to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1d.2: irq 19, io base 0x0000e880
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:1d.3 to 64
uhci_hcd 0000:00:1d.3: UHCI Host Controller
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.3: irq 16, io base 0x0000ec00
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:1b.0 to 64
hda_codec: Unknown model for ALC880, trying auto-probe from BIOS...
ALSA device list:
#0: HDA Intel at 0xffef8000 irq 16
oprofile: using NMI interrupt.
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
Using IPI Shortcut mode
ACPI: (supports S0 S3 S4 S5)
Time: tsc clocksource has been installed.
Time: acpi_pm clocksource has been installed.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 192k freed
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected an Intel 915GM Chipset.
agpgart: AGP aperture is 256M @ 0x0
ieee80211_crypt: registered algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, 1.2.15
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
8139too Fast Ethernet driver 0.9.27
ACPI: PCI Interrupt 0000:01:0c.0[A] -> GSI 19 (level, low) -> IRQ 18
eth0: RealTek RTL8139 at 0xf882ac00, 00:03:0d:36:b9:49, IRQ 18
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
ipw2200: no version for "ieee80211_wx_get_encodeext" found: kernel tainted.
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.0mq
ipw2200: Copyright(c) 2003-2006 Intel Corporation
ACPI: PCI Interrupt 0000:01:03.0[A] -> GSI 21 (level, low) -> IRQ 20
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: Radio Frequency Kill Switch is On:
Kill switch must be turned off for wireless networking to work.
ipw2200: Detected geography ZZR (14 802.11bg channels, 0 802.11a channels)
EXT3 FS on sda4, internal journal
[drm] Initialized drm 1.0.1 20051102
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[drm] Initialized radeon 1.25.0 20060524 on minor 0
NTFS volume version 3.1.
Adding 506036k swap on /dev/sda3. Priority:-1 extents:1 across:506036k
eth0: link up, 100Mbps, half-duplex, lpa 0x40A1
mtrr: 0xd0000000,0x8000000 overlaps existing 0xd0000000,0x2000000
mtrr: 0xd0000000,0x8000000 overlaps existing 0xd0000000,0x2000000
mtrr: 0xd0000000,0x8000000 overlaps existing 0xd0000000,0x2000000
[drm] Setting GART location based on new memory map
[drm] Loading R300 Microcode
[drm] writeback test succeeded in 1 usecs
eth0: no IPv6 routers present
[drm] Loading R300 Microcode


Yerk! This is a very long post but could anyone help me please?
(It is really annoying to copy data from a cd @2MB/s :s)


Last edited by LiLoRoX on Tue Mar 13, 2007 5:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
Keruskerfuerst
Veteran
Veteran


Joined: 01 Feb 2006
Posts: 1748

PostPosted: Sat Jan 20, 2007 6:25 pm    Post subject: Reply with quote

Try to use

hdparm -i /dev/hdc.
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Sat Jan 20, 2007 6:26 pm    Post subject: Reply with quote

Here is what it says:
Code:
lilorox lilo # hdparm -i /dev/hdc

/dev/hdc:

 Model=_NEC DVD+/-RW ND-6650A, FwRev=1.42, SerialNo=
 Config={ Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=0kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 *udma2
 AdvancedPM=no

 * signifies the current active mode
Back to top
View user's profile Send private message
Keruskerfuerst
Veteran
Veteran


Joined: 01 Feb 2006
Posts: 1748

PostPosted: Sat Jan 20, 2007 6:28 pm    Post subject: Reply with quote

Quote:
UDMA modes: udma0 udma1 *udma2


UDMA2 mode is active. (=data transfer rate of max. 66MB/s)

P.S.: just verify the settings in the kernel: right chipset driver and DMA settings for the drives.
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Sat Jan 20, 2007 6:58 pm    Post subject: Reply with quote

The kernel options are fine but the performance are really bad :(

Is there any reason for the "HDIO_SET_DMA failed: Operation not permitted" and a DMA apparently still to off ?
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Sat Jan 20, 2007 7:00 pm    Post subject: Reply with quote

This is the result of the hdparm test:

Code:
lilorox lilo # hdparm -tT /dev/hdc

/dev/hdc:
 Timing cached reads:   3292 MB in  2.00 seconds = 1646.84 MB/sec
BLKFLSBUF failed: Function not implemented
 Timing buffered disk reads:   10 MB in  4.13 seconds =   2.42 MB/sec
BLKFLSBUF failed: Function not implemented
Back to top
View user's profile Send private message
Keruskerfuerst
Veteran
Veteran


Joined: 01 Feb 2006
Posts: 1748

PostPosted: Sat Jan 20, 2007 8:32 pm    Post subject: Reply with quote

Code:
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0: I/O resource 0x1F0-0x1F7 not free.


This indicates a problem; i have no solution for that.
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Sat Jan 20, 2007 8:34 pm    Post subject: Reply with quote

That's what I thought.

Thanks anyway ;)
Back to top
View user's profile Send private message
Sixtease
n00b
n00b


Joined: 31 Oct 2004
Posts: 13
Location: Prague, Czech Republic

PostPosted: Tue Jan 23, 2007 1:25 am    Post subject: Reply with quote

Hi.
I experience the same problem with my Asus F3F AP110 laptop. cdrecord complains there's no DMA and writing DVDs is slow. (cdrecord said that average speed was 1.4 the last time I looked). Any fresh ideas?

# dmesg | grep -iC 3 '\<ide'
Boot video device is 0000:00:02.0
PCI quirk: region 0800-087f claimed by ICH6 ACPI/GPIO/TCO
PCI quirk: region 0480-04bf claimed by ICH6 GPIO
PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.2
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P5._PRT]
--
input: AT Translated Set 2 keyboard as /class/input/input0
ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 18 (level, low) -> IRQ 18
eth0: RealTek RTL8139 at 0xffffc20000054c00, 00:18:f3:f9:a3:0c, IRQ 18
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe
Probing IDE interface ide1...
Synaptics Touchpad, model: 1, fw: 6.1, id: 0xa3a0b3, caps: 0xa04713/0x10008
hdc: HL-DT-ST DVDRAM GSA-T10N, ATAPI CD/DVD-ROM drive
input: SynPS/2 Synaptics TouchPad as /class/input/input1
ieee1394: Host added: ID:BUS[0-00:1023] GUID[00e01800037a8fab]
ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 24X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006)
megaraid: 2.20.4.9 (Release Date: Sun Jul 16 12:27:22 EST 2006)
megasas: 00.00.03.05 Mon Oct 02 11:21:32 PDT 2006
ata_piix 0000:00:1f.2: version 2.00ac6
ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
ACPI: PCI Interrupt 0000:00:1f.2 -> GSI 19 (level, low) -> IRQ 19
[b]ata: 0x170 IDE port busy
ata: conflict with ide1

PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xFFA0 irq 14
ata2: DUMMY

---

# hdparm /dev/hdc

/dev/hdc:
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device

---

# hdparm -tT /dev/hdc

/dev/hdc:
read() failed: Input/output error
Timing buffered disk reads: read() failed: Input/output error
BLKFLSBUF failed: Function not implemented

---

# hdparm -X -d1 /dev/hdc

/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
setting xfermode to 0 (default PIO mode)
using_dma = 0 (off)

---

# hdparm -i /dev/hdc

/dev/hdc:

Model=HL-DT-ST DVDRAM GSA-T10N, FwRev=PR03, SerialNo=K0F6B7I4130
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no
Drive conforms to: ATA/ATAPI-5 T13 1321D revision 3: ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5

* signifies the current active mode

---

# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
05:01.0 FireWire (IEEE 1394): Ricoh Co Ltd Unknown device 0832
05:01.1 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
05:01.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)
05:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)

---

# uname -a
Linux horizon 2.6.19-suspend2-r1-sixtease #8 SMP PREEMPT Mon Jan 22 23:58:29 CET 2007 x86_64 Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
cybrjackle
Apprentice
Apprentice


Joined: 09 Jan 2003
Posts: 248
Location: USA

PostPosted: Sat Feb 10, 2007 3:48 pm    Post subject: Reply with quote

SATA dvd:

See what it is currently set at (hdc for example)

Code:

# dmesg |grep -i dvd
hdc: TSSTcorp DVD+/-RW TS-L632D, ATAPI CD/DVD-ROM drive
hdc: ATAPI 63X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache


Add noprobe=/dev/hdc to the end of your kernel line.

Code:

# vi /boot/grub/grub.conf


Example:

Quote:

title=Gentoo Linux 2.6.19-ck2-r4
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-2.6.19-ck2-r4 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev noprobe=/dev/hdc
initrd /boot/initramfs-genkernel-x86_64-2.6.19-ck2-r4
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Sat Feb 10, 2007 5:15 pm    Post subject: Reply with quote

This a weir result from the mesg :

Code:
lilorox lilo # dmesg |grep -i dvd
scsi 1:0:0:0: CD-ROM            _NEC     DVD+-RW ND-6650A 1.42 PQ: 0 ANSI: 5


PS: this is what I get after unchecking the "< > generic/default IDE chipset support" opton (in ATA/ATAPI/MFM/RLL support) in my kernel configuration
Maybe I should check it but this is apparently not helping... :(
Back to top
View user's profile Send private message
olger901
l33t
l33t


Joined: 17 Mar 2005
Posts: 606

PostPosted: Sat Feb 10, 2007 6:17 pm    Post subject: Reply with quote

I experienced the same problem with my notebook (a Dell Inspiron 6400). The problem is that it seems to detect your drive as a PATA drive for some odd reason, while it's in fact a SATA drive.

Solution (for the 2.6.19 kernel):
1. Go to /usr/src/linux and run make menuconfig
2. Go to Device Drivers -> IDE Support, disable EVERYTHING here!
3. Go to SATA & Experimental PATA drivers, enable the SATA driver for your device (probaly the Intel one)
4. Recompile your kernel using make && make modules_install
5. Copy over your kernel to your /boot folder (or partition).
6. Restart, do a little prair and your problem should be solved.

If you are using Gnome or KDE it should detect the drive automatically (if dbus and hal are installed and started) otherwise you should be able to access your drive through /dev/sr0
_________________
Favorite Quote: "The most profound technologies are those that disappear"
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Sat Feb 10, 2007 6:31 pm    Post subject: Reply with quote

Ok thanks I try it right now and tell you ;)
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Sat Feb 10, 2007 6:38 pm    Post subject: Reply with quote

Hmm I didn't try yet, but my drive is an IDE drive it's sure :s

See http://www.de.nec.de/productdetail.php?id=1239
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Sat Feb 10, 2007 7:11 pm    Post subject: Reply with quote

Well that does not help actually :(

That's what dmesg says:
Code:
ata_piix 0000:00:1f.2: version 2.00ac6
ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xFFA0 irq 14
ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xFFA8 irq 15
scsi0 : ata_piix
ata1.00: ATA-7, max UDMA/100, 156301488 sectors: LBA48 NCQ (depth 0/32)
ata1.00: ata1: dev 0 multi count 16
ata1.00: configured for UDMA/100
scsi1 : ata_piix
ata2.00: ATAPI, max UDMA/33
ata2.00: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      FUJITSU MHV2080B 0000 PQ: 0 ANSI: 5
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
scsi 1:0:0:0: CD-ROM            _NEC     DVD+-RW ND-6650A 1.42 PQ: 0 ANSI: 5
scsi 1:0:0:0: Attached scsi generic sg1 type 5
Back to top
View user's profile Send private message
cybrjackle
Apprentice
Apprentice


Joined: 09 Jan 2003
Posts: 248
Location: USA

PostPosted: Mon Feb 12, 2007 2:19 am    Post subject: Reply with quote

Here is what I did that works fine on my laptop (sata dvd)

Kernel:

Completely removed ata from it.

Code:

Device Drivers --->
ATA/ATAPI/MFM/RLL support --->
< > ATA/ATAPI/MFM/RLL support


Added the following to grub: noprobe=/dev/hdc libata.atapi_enabled=1

Code:

title=Gentoo Linux 2.6.19-ck2-r4
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-2.6.19-ck2-r4 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev noprobe=/dev/hdc libata.atapi_enabled=1
initrd /boot/initramfs-genkernel-x86_64-2.6.19-ck2-r4


DVD's are playing fine.

oh, and my dvd is dmesg now shows scsi
Code:

# dmesg |grep -i dvd
scsi 1:0:0:0: CD-ROM            TSSTcorp DVD+-RW TS-L632D DE03 PQ: 0 ANSI: 5


In VLC the dvd drive shows up as /dev/sr0

ciao,
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Mon Feb 12, 2007 11:53 am    Post subject: Reply with quote

Do you have good perfs and do you get error message with hdparm (the not implemented message or stuf like that)?
Back to top
View user's profile Send private message
cybrjackle
Apprentice
Apprentice


Joined: 09 Jan 2003
Posts: 248
Location: USA

PostPosted: Mon Feb 12, 2007 4:12 pm    Post subject: Reply with quote

LiLoRoX wrote:
Do you have good perfs and do you get error message with hdparm (the not implemented message or stuf like that)?


I don't believe hdparm works on it because that is for PATA, check out sdparm.
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Tue Feb 13, 2007 2:12 pm    Post subject: Reply with quote

Hmmm don't know but first sdparm doesn't seem to allow you to run tests and then my drive is not SATA at all.
Back to top
View user's profile Send private message
cfriedt
n00b
n00b


Joined: 12 Sep 2003
Posts: 56
Location: Montréal, Québec

PostPosted: Sat Feb 17, 2007 1:45 pm    Post subject: PLEASE PATCH GENTOO-SOURCES-2.6.19 for ICH6_5 Reply with quote

I believe that I've experienced the exact same problem. It's actually a missing definition in ther kernel, which should have been added in <2.6.16.

Here's a couple of tests you can do to see if it's the same issue:

1) see if you get the same results with this command:

Code:
 # lspci | grep "82801"
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)


2) run the hdparm tests:

Code:
 # hdparm -t -T /dev/hdc

/dev/hdc:
 Timing cached reads:   3260 MB in  2.00 seconds = 1629.28 MB/sec
 Timing buffered disk reads:  112 MB in  3.00 seconds =  37.29 MB/sec


if your timed buffered disk reads is 'low', or nowhere near as high as 37.29 MB/sec , then the following solution will work for you:

1) go into /usr/src/linux and edit /usr/src/linux/include/pci_ids.h . Look for the string "PCI_DEVICE_ID_INTEL_ICH6_2". The value right beside it should read 0x2642. Now on a line __directly__under__
insert:

#define PCI_DEVICE_ID_INTEL_ICH6_5 0x2653

2) similarly, edit drivers/ide/pci/piix.c . Look for the string "case PCI_DEVICE_ID_INTEL_ICH6_19"

a) insert this directly __above__ it:

case PCI_DEVICE_ID_INTEL_ICH6_5:

b) look for the string "case PCI_DEVICE_ID_INTEL_ICH6_19:" one more time, but further down the file, and insert the same directly __above__ it:

case PCI_DEVICE_ID_INTEL_ICH6_5:

c) look for the string "DECLARE_PIIX_DEV("ICH8M")," . Insert the following directly __below__ it:

/* 25 */ DECLARE_PIIX_DEV("ICH6M"),

d) look for the string "PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_6, PCI_ANY_ID", insert the following directly __below__ it:

{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_5, PCI_ANY_ID, PCI_ANY_I
D, 0, 0, 25},



That should do it. Now just re-compile your kernel and perform the same hdparm test above, and you should have something along the lines of 25-38 MB/sec with DMA.


I really wish the gentoo-sources people would push this patch upstream, because I've been patching all of the kernels i've had since 2.6.16 with this (to have dma, sound, etc enabled.). Otherwise, disk reads happen ad something like 2MB per second, and it's completely dreadful. Today I just checked out gentoo-sources-2.6.19-r5 and was shocked that this patch hasn't been applied yet by anybody! wow!

~/Chris
Back to top
View user's profile Send private message
cfriedt
n00b
n00b


Joined: 12 Sep 2003
Posts: 56
Location: Montréal, Québec

PostPosted: Sat Feb 17, 2007 2:04 pm    Post subject: Reply with quote

I originally read this patch here:

http://marc.theaimsgroup.com/?l=linux-ide&m=114317385718285&w=2
Back to top
View user's profile Send private message
LiLoRoX
n00b
n00b


Joined: 20 Jan 2007
Posts: 39
Location: Roanne (FR)

PostPosted: Sun Feb 18, 2007 4:45 pm    Post subject: Reply with quote

I tried your solution and even though I have the same hardware, I got a kernel panic :s (kernel 2.6.19-gentoo-r5)

Code:
lilorox lilo # lspci | grep 82801
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
Back to top
View user's profile Send private message
cfriedt
n00b
n00b


Joined: 12 Sep 2003
Posts: 56
Location: Montréal, Québec

PostPosted: Tue Feb 20, 2007 8:56 am    Post subject: Reply with quote

The best thing to do is post the kernel panic (or at least write down the last few relevent lines) so that we can help debug everything.

Also, it's a very wise idea to always back up the bzImage from your previous kernel. If you're using grub, then as soon as grub comes up with a menu, you can hit up/down to prevent it from automatically loading, and then 'e' to edit the 'exec' command.

Just specify your backup kernel's name instead of the new one.

I'm interested to see where the bug falls during the linux boot process.

Also, maybe post your machine make & model.

Check out the original patch available at

http://marc.theaimsgroup.com/?l=linux-ide&m=114317385718285&w=2

It has line number references and a bit more 'context' so you may see a place where your patch wasn't correct.

I have been using this patch for a year without any problems whatsoever, on a 'Eurocom M560A', which in my opinion is a total piece of garbage, but it runs.

~/Chris
Back to top
View user's profile Send private message
cfriedt
n00b
n00b


Joined: 12 Sep 2003
Posts: 56
Location: Montréal, Québec

PostPosted: Tue Feb 20, 2007 9:04 am    Post subject: Reply with quote

I just realized that I should probably also add my kernel exec line:

here it is:

kernel /bzImage pci=assign-busses root=/dev/hdc6 quiet CONSOLE=/dev/tty1

The pci=assign-busses was necessary to have sound working with ALSA (OSS?), do not ask my why
Back to top
View user's profile Send private message
menschmeier
l33t
l33t


Joined: 15 Dec 2004
Posts: 727

PostPosted: Tue Feb 27, 2007 8:59 am    Post subject: Reply with quote

Hi,

I think I had the same problem. The solution was simple.

You should disable everything under ATA/ATAPI/MFM/RLL in your kernel config. Your optical device will be /dev/sr0 or so. You have to enable the SATA and SCSI stuff. (SATA device support -AHCI SATA support -Intel PIIX/ICH SATA support - Intel PATA MPIIX support )

Test it, but do not believe in hdparm in this point. Forget about UDMA on SATA. Try to copy a big file from dvd to hd. This shows a good improvement in my case. High transfer rate, low i/o waits, no freeze when accessing the dvd.

Give it a shot.

menschmeier
_________________
Please notice the back of this message.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum