The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Re: question about SATA and IDE DVD/CD drives.
       [not found] <Pine.LNX.4.44.0407021745400.2190-100000@einstein.homenet>
@ 2004-07-02 17:02 ` Jeff Garzik
  2004-07-02 17:30   ` Tigran Aivazian
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2004-07-02 17:02 UTC (permalink / raw)
  To: Tigran Aivazian; +Cc: linux-ide, Bartlomiej Zolnierkiewicz, cova, Linux Kernel

Tigran Aivazian wrote:
> On Fri, 2 Jul 2004, Jeff Garzik wrote:
> 
>>Enable CONFIG_IDE, and disable CONFIG_BLK_DEV_IDE_SATA, and that will 
>>fix things I bet.
> 
> 
> Tried this as well on the latest snapshot (2.6.7-bk9) and it failed as 
> well. Namely, SATA disk works fine but IDE subsystem doesn't see the DVD 
> drive.
> 
> Are you sure that I only need to enable CONFIG_IDE and not some of the
> other IDE options (disk, cdrom, chipset-specific etc)?

Sorry, I was summarizing...  you definitely need a "personality" driver 
such as the ide-cdrom driver in order to make use of your DVD drive.

Really, though, I need to get off my butt and finish ATAPI in libata. 
Then, libata can drive PATA devices and we can get rid of all these 
headaches with combined mode being split between two drivers.

I'm going to be doing some libata hacking this weekend, looking 
particularly at a regression not caused by ACPI (hi Fabio).  I'll see if 
I can finish up ATAPI at that time.

	Jeff



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: question about SATA and IDE DVD/CD drives.
  2004-07-02 17:02 ` question about SATA and IDE DVD/CD drives Jeff Garzik
@ 2004-07-02 17:30   ` Tigran Aivazian
  2004-07-02 18:35     ` Tigran Aivazian
  0 siblings, 1 reply; 3+ messages in thread
From: Tigran Aivazian @ 2004-07-02 17:30 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-ide, Bartlomiej Zolnierkiewicz, cova, Linux Kernel

On Fri, 2 Jul 2004, Jeff Garzik wrote:
> Tigran Aivazian wrote:
> > On Fri, 2 Jul 2004, Jeff Garzik wrote:
> > 
> >>Enable CONFIG_IDE, and disable CONFIG_BLK_DEV_IDE_SATA, and that will 
> >>fix things I bet.
> > 
> > 
> > Tried this as well on the latest snapshot (2.6.7-bk9) and it failed as 
> > well. Namely, SATA disk works fine but IDE subsystem doesn't see the DVD 
> > drive.
> > 
> > Are you sure that I only need to enable CONFIG_IDE and not some of the
> > other IDE options (disk, cdrom, chipset-specific etc)?
> 
> Sorry, I was summarizing...  you definitely need a "personality" driver 
> such as the ide-cdrom driver in order to make use of your DVD drive.

Tried it as well, namely:

CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_IDE_SATA is not set
CONFIG_BLK_DEV_IDECD=y
CONFIG_SCSI_SATA=y
CONFIG_SCSI_ATA_PIIX=y

and still the same result, i.e. SATA takes the disk but IDE only says 
this:

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx

and DVD drive is still not seen.

I also tried enabling CONFIG_IDE_GENERIC but then it (IDE) reserves both 
io ranges and so SATA doesn't work (i.e. ata_piix probe fails with error 
-16).

I also tried not enabling CONFIG_IDE_GENERIC but instead enable PCI:

CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_IDEDMA=y

Same result as the first one, i.e. SATA disk is OK but IDE DVD is not.

(btw there is a bug whereby one cannot disable CONFIG_SCSI_QLA2XXX for 
some reason)

I also tried passing ide0=noprobe to the IDE driver to make it leave ide0 
alone. Didn't work either, namely IDE took over both ide0 and ide1 and 
SATA failed to register both io regions.

So I still have a dilemma of either having a slow hdd or not being able to 
access DVD. 

Kind regards
Tigran

PS. Btw, I still get oops on cat /proc/iomem:

Unable to handle kernel paging request at ffffffff00000000 RIP: 
<ffffffff801cf084>{strnlen+13}
PML4 103027 PGD 0 
Oops: 0000 [1] SMP 
CPU 0 
Modules linked in: iptable_filter ip_tables
Pid: 2190, comm: cat Not tainted 2.6.7-bk9
RIP: 0010:[<ffffffff801cf084>] <ffffffff801cf084>{strnlen+13}
RSP: 0018:0000010028cbbd60  EFLAGS: 00010297
RAX: ffffffff00000000 RBX: 0000010023a00014 RCX: 000000000000000a
RDX: 0000010028cbbeb8 RSI: fffffffffffffffe RDI: ffffffff00000000
RBP: 0000000000000000 R08: 00000000fffffffe R09: 0000000000000004
R10: 00000000ffffffff R11: 0000000000000000 R12: 0000010023a00fff
R13: ffffffff00000000 R14: 00000000ffffffff R15: 0000010028cbbdc8
FS:  0000002a958624c0(0000) GS:ffffffff803fc600(0000) 
knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: ffffffff00000000 CR3: 0000000000101000 CR4: 00000000000006e0
Process cat (pid: 2190, threadinfo 0000010028cba000, task 
000001003ec95450)
Stack: ffffffff801cf9c1 0000010000000001 fffffffffffffff4 0000000000001000 
       0000010023a00000 ffffffff802c018d 0000010002395400 0000010000002000 
       0000000000002000 0000000000000400 
Call Trace:<ffffffff801cf9c1>{vsnprintf+752} 
<ffffffff80183aa1>{seq_printf+165} 
       <ffffffff80174944>{link_path_walk+2374} 
<ffffffff80173b04>{permission+38} 
       <ffffffff80170198>{cp_new_stat+233} <ffffffff80135a66>{r_show+113} 
       <ffffffff80183592>{seq_read+273} <ffffffff80167673>{vfs_read+201} 
       <ffffffff801678c4>{sys_read+73} <ffffffff8010e9d2>{system_call+126} 
       

Code: 80 3f 00 74 13 48 83 ee 01 48 83 c0 01 48 83 fe ff 74 05 80 
RIP <ffffffff801cf084>{strnlen+13} RSP <0000010028cbbd60>
CR2: ffffffff00000000



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: question about SATA and IDE DVD/CD drives.
  2004-07-02 17:30   ` Tigran Aivazian
@ 2004-07-02 18:35     ` Tigran Aivazian
  0 siblings, 0 replies; 3+ messages in thread
From: Tigran Aivazian @ 2004-07-02 18:35 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-ide, Bartlomiej Zolnierkiewicz, cova, Linux Kernel

Hi Jeff,

After I gave up fiddling with "ideX=???" options, an alternative
possibility just occurred to me, looking at this dmesg output from libata:

ata_piix version 1.02
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
ata1: dev 0 cfg 49:2f00 82:346b 83:7d01 84:4003 85:3469 86:3c01 87:4003 88:207f
ata1: dev 0 ATA, max UDMA/133, 234441648 sectors: lba48
ata1: dev 0 configured for UDMA/133
scsi0 : ata_piix
  Vendor: ATA       Model: ST3120026AS       Rev: 3.05
  Type:   Direct-Access                      ANSI SCSI revision: 05
ata2: SATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xFFA8 irq 15
ata2: dev 0 cfg 49:0b00 82:0210 83:1000 84:0000 85:0000 86:0000 87:0000 88:0407
ata2: dev 0 ATAPI, max UDMA/33
ata2: dev 0 configured for UDMA/33
scsi1 : ata_piix
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0

wouldn't it be nice if I could specify somehow to skip the "ata2" instance
and leave the 0x170/0x376 resource to be allocated by IDE, which would be
compiled as a module? Or, once probed and allocated (but not in use) I
could tell the driver to "release" a particular instance and free all
resources? I think this is not possible with the current infrastructure
and, seeing you want to get rid of this conflict altogether, it is
unlikely you would be interested in adding such support, right?

Kind regards
Tigran


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-07-02 18:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.44.0407021745400.2190-100000@einstein.homenet>
2004-07-02 17:02 ` question about SATA and IDE DVD/CD drives Jeff Garzik
2004-07-02 17:30   ` Tigran Aivazian
2004-07-02 18:35     ` Tigran Aivazian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox