linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sata_sil and byte-aligned mmio
@ 2006-10-11 22:02 Kevin Hilman
  2006-10-16  3:17 ` Tejun Heo
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Hilman @ 2006-10-11 22:02 UTC (permalink / raw)
  To: Tejun Heo, jeff; +Cc: linux-ide

Tejun,

A while back you provided a patch for sata_sil to use PCI IO space since
so that it can work on hardware that doesn't support byte-aligned MMIO.

I'd like to see a fix for this pushed upstream, but IIRC, Jeff Garzik
prefers that the driver be fixed up to use 32-bit aligned MMIO instead
of making the driver use IO space.

If you can point me in the right direction, as to where the
byte-alignement assumtions are, I can fix up the driver and test it on
my hardware.

Thanks,

Kevin



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

* Re: sata_sil and byte-aligned mmio
  2006-10-11 22:02 sata_sil and byte-aligned mmio Kevin Hilman
@ 2006-10-16  3:17 ` Tejun Heo
  2006-10-16  3:19   ` Tejun Heo
  0 siblings, 1 reply; 3+ messages in thread
From: Tejun Heo @ 2006-10-16  3:17 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: jeff, linux-ide

Hello, Kevin.

Kevin Hilman wrote:
> Tejun,
> 
> A while back you provided a patch for sata_sil to use PCI IO space since
> so that it can work on hardware that doesn't support byte-aligned MMIO.
> 
> I'd like to see a fix for this pushed upstream, but IIRC, Jeff Garzik
> prefers that the driver be fixed up to use 32-bit aligned MMIO instead
> of making the driver use IO space.
> 
> If you can point me in the right direction, as to where the
> byte-alignement assumtions are, I can fix up the driver and test it on
> my hardware.

Byte-aligned IO accesses are in the default ATA operations - 
ata_tf_load/read, ata_check_status, ata_exec_command, 
ata_std_dev_select, all the bmdma ops, etc...  Basically, traditional 
ATA interface is designed to use byte-aligned registers to operate.

sil3112 family of controllers allow all those ops implemented using 
32bit ops, so you need to implement sata_sil's own methods to replace 
those standard byte-aligned ops.  I don't think it's gonna be too difficult.

Good luck. :-)

-- 
tejun

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

* Re: sata_sil and byte-aligned mmio
  2006-10-16  3:17 ` Tejun Heo
@ 2006-10-16  3:19   ` Tejun Heo
  0 siblings, 0 replies; 3+ messages in thread
From: Tejun Heo @ 2006-10-16  3:19 UTC (permalink / raw)
  Cc: jeff, linux-ide

Tejun Heo wrote:
> Hello, Kevin.
> 
> Kevin Hilman wrote:
>> Tejun,
>>
>> A while back you provided a patch for sata_sil to use PCI IO space since
>> so that it can work on hardware that doesn't support byte-aligned MMIO.
>>
>> I'd like to see a fix for this pushed upstream, but IIRC, Jeff Garzik
>> prefers that the driver be fixed up to use 32-bit aligned MMIO instead
>> of making the driver use IO space.
>>
>> If you can point me in the right direction, as to where the
>> byte-alignement assumtions are, I can fix up the driver and test it on
>> my hardware.
> 
> Byte-aligned IO accesses are in the default ATA operations - 
> ata_tf_load/read, ata_check_status, ata_exec_command, 
> ata_std_dev_select, all the bmdma ops, etc...  Basically, traditional 
> ATA interface is designed to use byte-aligned registers to operate.
> 
> sil3112 family of controllers allow all those ops implemented using 
> 32bit ops, so you need to implement sata_sil's own methods to replace 
> those standard byte-aligned ops.  I don't think it's gonna be too 
> difficult.

Oh, and just in case you don't have them already, the specs are 
available at the following URL.

http://gkernel.sourceforge.net/specs/sii/

-- 
tejun

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

end of thread, other threads:[~2006-10-16  3:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 22:02 sata_sil and byte-aligned mmio Kevin Hilman
2006-10-16  3:17 ` Tejun Heo
2006-10-16  3:19   ` Tejun Heo

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).