You are not logged in.

#1 2007-07-13 11:41:53

grashalm
Member
Registered: 2007-07-04
Posts: 10

libata (piix) SATA hard drive and ATAPI cdrom

hi @all

first sorry for my english roll

my problem on my new notebook:

I use a custom kernel version 2.6.22.1
my harddrive is working well. it is a sata drive. The IDE interface is an Intel ICH8:

00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 03)

dmesg said:

ata_piix 0000:00:1f.2: version 2.11
ata_piix 0000:00:1f.2: MAP [ IDE IDE -- -- ]
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max UDMA/100 cmd 0x00000000000101f0 ctl 0x00000000000103f6 bmdma 0x000000000001ffa0 irq 14
ata2: SATA max UDMA/133 cmd 0x0000000000010170 ctl 0x0000000000010376 bmdma 0x000000000001ffa8 irq 15
ata1.00: ATA-7: Hitachi HTS541612J9SA00, SBDOC70P, max UDMA/100
ata1.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: configured for UDMA/100
scsi 0:0:0:0: Direct-Access     ATA      Hitachi HTS54161 SBDO PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 234441648 512-byte hardware sectors (120034 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 < sda5 sda6 sda7 > sda4
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0

all right!
now it seems that my cdrom is not a sata device. so it it an atapi, right?
if I load the ide-cd module (incl. ide-generic etc) (I have to comile it as module - otherwise ---> kernel panic) dmesg said:

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 0x3F6-0x3F6 not free.
ide0: ports already in use, skipping probe
ide1: I/O resource 0x376-0x376 not free.
ide1: ports already in use, skipping probe

so the sata driver blocks the interface.

I read that I should try a "libata.atapi_enabled=1" but now effect.
Another idea was to make a initrd and load the ide driver before the ata driver. But I don't want to use a ram disk.

is there a solution for my problem?

greets and thx

hauke

Offline

#2 2007-07-13 11:49:03

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: libata (piix) SATA hard drive and ATAPI cdrom

You need to use the scsi cdrom module if you're using the sata subsystem.
If you compile it as a module it will be called sr-mod.


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#3 2007-07-13 12:22:47

grashalm
Member
Registered: 2007-07-04
Posts: 10

Re: libata (piix) SATA hard drive and ATAPI cdrom

scsi cdrom support is allready compiled in the kernel.

Last edited by grashalm (2007-07-13 13:39:35)

Offline

#4 2007-07-13 18:39:18

quetzyg
Member
From: /home/quetzyg
Registered: 2006-08-03
Posts: 129

Re: libata (piix) SATA hard drive and ATAPI cdrom

Hi there!

I have a ICH7 chipset laptop, and a similar issue with the new 2.6.22/2.6.22.1 linuxes.
Up to version 2.6.21.6, I could have both the IDE and SATA (the new one) stacks for the atapi dvd recorder and sata hard-disk respectively, without problems.
Using the old config, on the new kernels, gave me panics at boot.
Some googling led me to this bug report, that explained why I was having panics.
Seems that the IDE has precedence over SATA on boot.

I then compiled the IDE stack as a module, but the dvd recorder was unusable (even with all modules loaded ide-generic, ide-cd, etc).
So, what I did to solve the problem, was to remove _ALL_ the IDE stack, and compile the SCSI cd-rom module.

I can now mount, unmount, and read the dvd just perfectly.
The only thing left, is the burning feature.
I use gnome baker, and when I try to burn or erase a cd-rw, it goes to 99%, and just stays there. The app freezes and has to be killed.

Any ideas?

Thanks,
Quetzy Garcia


ZzZz...

Offline

#5 2007-07-27 12:30:45

quetzyg
Member
From: /home/quetzyg
Registered: 2006-08-03
Posts: 129

Re: libata (piix) SATA hard drive and ATAPI cdrom

My burning problem seems to only happen with Gnome Baker. The CD/DVD burning feature in nautilus, works flawlessly.
To answer grashalm, compile your kernel with SCSI CD-ROM support (as a module should be OK), and you should be just fine.


ZzZz...

Offline

#6 2007-07-27 13:59:02

grashalm
Member
Registered: 2007-07-04
Posts: 10

Re: libata (piix) SATA hard drive and ATAPI cdrom

and you should be just fine.

no, is is not fine.

i have open a bug report. it seems to be a problem with the ich8 map table.

Last edited by grashalm (2007-07-27 13:59:24)

Offline

#7 2007-07-28 05:02:46

RedShift
Member
From: Belgium
Registered: 2004-07-16
Posts: 230

Re: libata (piix) SATA hard drive and ATAPI cdrom

You don't see an sr0 too? Then this sounds like a kernel upstream bug.


:?

Offline

#8 2007-07-28 12:34:10

grashalm
Member
Registered: 2007-07-04
Posts: 10

Re: libata (piix) SATA hard drive and ATAPI cdrom

no sr0.


Then this sounds like a kernel upstream bug.

what does it mean?


greets

Offline

#9 2007-08-02 05:14:19

tehuel
Member
Registered: 2006-03-24
Posts: 6

Re: libata (piix) SATA hard drive and ATAPI cdrom

First configure ahci in the bios.

Then add "ahci" to MODULES in mkinitcpio.conf and make a new image (mkinitcpio -g image)

Offline

Board footer

Powered by FluxBB