linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Albert Lee <albertcc@tw.ibm.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Jeff Garzik <jgarzik@pobox.com>, Tejun Heo <htejun@gmail.com>,
	mlord@pobox.com, uchang@tw.ibm.com, forrest.zhao@intel.com,
	linux-ide@vger.kernel.org
Subject: Re: [PATCH 05/17] libata: implement PCI init helpers for new LLD init model
Date: Thu, 10 Aug 2006 15:12:39 +0800	[thread overview]
Message-ID: <44DADC67.5060707@tw.ibm.com> (raw)
In-Reply-To: <1155121214.5729.153.camel@localhost.localdomain>

Alan Cox wrote:
> Ar Mer, 2006-08-09 am 02:41 -0400, ysgrifennodd Jeff Garzik:
> 
>>ata_generic, ISA, VLB, and embedded controllers that use libata are not 
>>PCI.  libata-bmdma can drive older non-PCI controllers.
>>
>>Its a bit confusing because "PCI IDE" is often used to refer to the 
>>legacy IDE shadow register interface.  I started to use "bmdma" to 
>>describe the interface, but it drives Alan crazy :)
> 
> 
> Properly we have
> 
> 	ST506		(register layout for PIO)
> 	BMDMA		(register layout for dma area/sg tables) [SFF]
> 	SFF		(full SFF - BAR4, PCI BMDMA)
> 	ADMA		(also in SFF)
> 	AHCI
> 
> 	+ various weird vendor stuff
> 
> 

The first time libata-"bmdma".c was seen, it looked strange to me, too.

I remember the WD1003/ST-506 adapter on my old i386 PC, which was later replaced by
an "AT-Bus" IDE controller. The IDE controller is register level compatible
to the WD1003 ST-506 adapter, with the same legacy PIO address and irq 14.
(IDE had to be register-level compatible with the old WD1003 interface,
because the Int 13h code for the WD1003 is in the main PC/AT BIOS, not on the adapter.)

At about the 486 VL-bus days, an additional "secondary" port was added, with irq 15.
In those old 286/386/486 days, the IDE adapters were PIO only.

The BM-DMA came at about the time of the Intel Pentium/PCI-bus, with the new BM-DMA registers. 

When libata-bmdma.c is seperated out from libata-core.c, I was wondering why the
BM-DMA PRD table management codes such as ata_sg_setup() are left in libata-core.c,
while the old WD1003/ST-506 like logic ata_tf_load(), ata_exec_command() and ata_check_status()
are moved to the libata-bmdma.c.

Jeff explained the traditional WD1003 ST-506 registers can be viewed as subset of BM-DMA,
but I still feel strange to call the old WD1003-like IDE controllers on my 386/486 as "BM-DMA"...

--
albert



  reply	other threads:[~2006-08-10  7:13 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-07  3:03 [PATCHSET] libata: implement new initialization model w/ iomap support Tejun Heo
2006-08-07  3:04 ` [PATCH 06/17] libata: reimplement ata_pci_init_one() using new init helpers Tejun Heo
2006-08-07  3:04 ` [PATCH 02/17] libata: implement ata_host_set_detach() and ata_host_set_free() Tejun Heo
2006-08-09  4:59   ` Jeff Garzik
2006-08-07  3:04 ` [PATCH 01/17] libata: implement ata_host_set_start/stop() Tejun Heo
2006-08-09  4:57   ` Jeff Garzik
2006-08-07  3:04 ` [PATCH 03/17] libata: separate out ata_host_set_alloc() and ata_host_set_attach() Tejun Heo
2006-08-09  5:00   ` Jeff Garzik
2006-08-07  3:04 ` [PATCH 04/17] libata: implement several LLD init helpers Tejun Heo
2006-08-09  5:01   ` Jeff Garzik
2006-08-09  5:08     ` Tejun Heo
2006-08-07  3:04 ` [PATCH 05/17] libata: implement PCI init helpers for new LLD init model Tejun Heo
2006-08-09  5:11   ` Jeff Garzik
2006-08-09  5:52     ` Tejun Heo
2006-08-09  6:41       ` Jeff Garzik
2006-08-09 11:00         ` Alan Cox
2006-08-10  7:12           ` Albert Lee [this message]
2006-08-10  7:27             ` Jeff Garzik
2006-08-10 12:36               ` Alan Cox
2006-08-10 12:22                 ` Tejun Heo
2006-08-09 12:54         ` Mark Lord
2006-08-09 11:02     ` Alan Cox
2006-08-09 11:13       ` Tejun Heo
2006-08-07  3:04 ` [PATCH 10/17] libata: kill old init helpers Tejun Heo
2006-08-07  3:04 ` [PATCH 09/17] libata: use remove_one() for deinit instead of ->host_stop() Tejun Heo
2006-08-07  3:04 ` [PATCH 08/17] libata: update ata_pci_remove_one() using new PCI init helpers Tejun Heo
2006-08-07  3:04 ` [PATCH 11/17] libata: kill unused ->host_stop() operation and related functions Tejun Heo
2006-08-07  3:04 ` [PATCH 12/17] libata: use LLD name where possible Tejun Heo
2006-08-07  3:04 ` [PATCH 13/17] libata: move ->irq_handler from port_ops to port_info Tejun Heo
2006-08-07  3:04 ` [PATCH 15/17] libata: make ata_pci_acquire_resources() handle iomap Tejun Heo
2006-08-07  3:04 ` [PATCH 14/17] libata: make ata_host_set_alloc() take care of hpriv alloc/free Tejun Heo
2006-08-07  3:04 ` [PATCH 17/17] libata: kill unused ATA_FLAG_MMIO Tejun Heo
2006-08-07  3:08 ` [git-patches] libata: implement new initialization model w/ iomap support Tejun Heo

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=44DADC67.5060707@tw.ibm.com \
    --to=albertcc@tw.ibm.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=albertl@mail.com \
    --cc=forrest.zhao@intel.com \
    --cc=htejun@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=mlord@pobox.com \
    --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).