public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Unaligned data transfers?
@ 2010-06-04 12:37 Tor Krill
  2010-06-04 15:44 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Tor Krill @ 2010-06-04 12:37 UTC (permalink / raw)
  To: u-boot

Hi, 

I have a question regarding (disk) transfers. For example Sata read and
write takes an unspecified address which very well could be an unaligned
byte address.

Many DMA-controllers though require 16 or 32bit alignments for
transfers.

Is it safe to assume that the address is correct or bail out with an
error message if source/destinaton address isn't correctly aligned for
the underlaying HW?

/Tor

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

* [U-Boot] Unaligned data transfers?
  2010-06-04 12:37 [U-Boot] Unaligned data transfers? Tor Krill
@ 2010-06-04 15:44 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2010-06-04 15:44 UTC (permalink / raw)
  To: u-boot

Dear Tor Krill,

In message <1275655059.2450.78.camel@tor-desktop> you wrote:
> 
> Is it safe to assume that the address is correct or bail out with an
> error message if source/destinaton address isn't correctly aligned for
> the underlaying HW?

No, you are supposed to know what you are doing and provide addresses
that are valid.

Like Perl, U-Boot gives you enough rope to hang yourself.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A quarrel is quickly settled when deserted by one party; there is  no
battle unless there be two.                                  - Seneca

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

end of thread, other threads:[~2010-06-04 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-04 12:37 [U-Boot] Unaligned data transfers? Tor Krill
2010-06-04 15:44 ` Wolfgang Denk

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