From: Albert Lee <albertcc@tw.ibm.com>
To: Tejun Heo <htejun@gmail.com>, Jeff Garzik <jgarzik@pobox.com>
Cc: Greg KH <greg@kroah.com>,
linux-ide@vger.kernel.org, Gary Hade <garyhade@us.ibm.com>,
Doug Maxey <dwm@enoyolf.org>, Unicorn Chang <uchang@tw.ibm.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: Re: long boot delay for SATA cdrom on current 2.6.17-git
Date: Tue, 11 Jul 2006 10:30:01 +0800 [thread overview]
Message-ID: <44B30D29.5090805@tw.ibm.com> (raw)
In-Reply-To: <44AFCCFD.8050708@gmail.com>
Tejun Heo wrote:
> Greg KH wrote:
>
>> Sure, here's the logs for when I boot 2.6.17 with your patch:
>
> [--snip--]
>
>> [4294672.044000] ata_piix 0000:00:1f.2: version 1.05
>> [4294672.044000] ata_piix 0000:00:1f.2: MAP [ P0 P2 XX XX ]
>> [4294672.048000] ata_piix 0000:00:1f.2: invalid MAP value 0
>> [4294672.052000] ata_pci_init_one: ENTER
>> [4294672.055000] ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level,
>> low) -> IRQ 18
>> [4294672.059000] PCI: Setting latency timer of device 0000:00:1f.2 to 64
>> [4294672.059000] ata_device_add: ENTER
>> [4294672.063000] ata_host_add: ENTER
>> [4294672.067000] ata_port_start: prd alloc, virt f7e55000, dma 37e55000
>> [4294672.070000] ata1: SATA max UDMA/133 cmd 0x1498 ctl 0x140E bmdma
>> 0x1480 irq 18
>> [4294672.074000] ata_host_add: ENTER
>> [4294672.078000] ata_port_start: prd alloc, virt f7cfb000, dma 37cfb000
>> [4294672.081000] ata2: SATA max UDMA/133 cmd 0x1490 ctl 0x140A bmdma
>> 0x1488 irq 18
>> [4294672.085000] ata_device_add: probe begin
>> [4294672.089000] ata_device_add: ata1: bus probe begin
>> [4294672.093000] piix_sata_probe: ata1: ENTER, pcs=0x11 base=0
>> [4294672.198000] piix_sata_probe: ata1: LEAVE, pcs=0x11 present_mask=0x1
>> [4294672.201000] ata_std_softreset: ENTER ata1
>> [4294672.205000] ata_std_softreset: about to softreset, devmask=3
>> [4294672.209000] ata_bus_softreset: ata1: bus reset via SRST
>> [4294672.364000] ata_dev_classify: found ATAPI device by sig
>> [4294672.367000] ata_dev_classify: found ATAPI device by sig
>> [4294672.371000] ata_std_softreset: EXIT, classes[0]=3 [1]=3
>> [4294672.375000] ata_std_postreset: ENTER
>> [4294672.378000] ata_std_postreset: EXIT
>> [4294672.382000] ata_dev_read_id: ENTER, host 1, dev 0
>> [4294672.537000] ata_exec_command_pio: ata1: cmd 0xA1
>> [4294672.543000] ata_pio_sector: data read
>> [4294672.546000] ata_dev_configure: ENTER, host 1, dev 0
>> [4294672.550000] ata1: dev 0 cfg 49:0f00 82:0000 83:0000 84:0000
>> 85:0000 86:0000 87:0000 88:0407
>> [4294672.550000] ata_dump_id: 49==0x0f00 53==0x0006 63==0x0007
>> 64==0x0003 75==0x0000 [4294672.553000] ata_dump_id: 80==0x0078
>> 81==0x0000 82==0x0000 83==0x0000 84==0x0000 [4294672.557000]
>> ata_dump_id: 88==0x0407 93==0x4000
>> [4294672.560000] ata1: dev 0 ATAPI, max UDMA/33
>> [4294672.563000] ata1(0): applying bridge limits
>> [4294672.566000] ata_dev_configure: EXIT, drv_stat = 0x50
>> [4294672.569000] ata_dev_read_id: ENTER, host 1, dev 1
>> [4294672.723000] ata_exec_command_pio: ata1: cmd 0xA1
>> [4294672.726000] ata1: PIO error
>> [4294672.729000] ata1: dev 1 failed to IDENTIFY (I/O error)
>
>
> Ah.. I see. IRQ-driven PIO times out while polling PIO detects it right
> away.
>
> Thanks. I'll push the fix to Jeff.
>
Dear all,
Hope this phantom slave device patch for ICHx to be in the 2.6.18-rcX soon.
(Otherwise the problem imposes a long boot time when testing 2.6.18-rcX on
a Intel box.)
For those hardware without the Intel-specific PCS, the phantom slave
is still a problem. Currently no good solution about how to tell a
phantom slave from a real device. (Some phantom slave device can pass
our current PATA device presence check.)
Can we do the IDENTIFY by polling at this moment?
Polling doesn't fix the phantom slave device problem, but polling
can detect the phantom device quickly than using irq-pio and wait for
timeout.
--
albert
prev parent reply other threads:[~2006-07-11 2:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-30 2:53 long boot delay for SATA cdrom on current 2.6.17-git Greg KH
2006-06-30 4:49 ` Tejun Heo
2006-06-30 5:10 ` Greg KH
2006-06-30 5:20 ` Greg KH
2006-06-30 5:26 ` Tejun Heo
2006-06-30 22:10 ` Greg KH
2006-07-08 15:19 ` Tejun Heo
2006-07-11 2:30 ` Albert Lee [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44B30D29.5090805@tw.ibm.com \
--to=albertcc@tw.ibm.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=albertl@mail.com \
--cc=dwm@enoyolf.org \
--cc=garyhade@us.ibm.com \
--cc=greg@kroah.com \
--cc=htejun@gmail.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=uchang@tw.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).