linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Q] What about PCI mmio access alignment?
@ 2017-05-25 10:12 Du, Changbin
  2017-05-27 15:32 ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Du, Changbin @ 2017-05-25 10:12 UTC (permalink / raw)
  To: linux-pci; +Cc: changbin.du, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

Hi, guys,
I have a basic quesion about the alignment when access PCI bar mmio space. Is
the address accessed must be DW aligned and count must be DW aligned?

As far as I know, The address field of TLB ignore lower 2 bits and the unit of
length field also is DW. So does it mean above question is Yes? Else will CPU
handle unaligned access for mmio space?

I want to know wether below access illegal or not:
  - readb(bar0)
  - readb(bar0 + 1)
  - readl(bar0)

Thanks,
Changbin Du

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

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

end of thread, other threads:[~2017-05-28 10:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-25 10:12 [Q] What about PCI mmio access alignment? Du, Changbin
2017-05-27 15:32 ` Andy Shevchenko
2017-05-28 10:54   ` Du, Changbin

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