public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Tiger Liu(BJ-RD)" <tigerliu@zhaoxin.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: [edk2-devel] [edk2] question about : DmaBufferAlignment in CPU Arch driver
Date: Fri, 22 Nov 2019 03:28:02 +0000	[thread overview]
Message-ID: <a82c00a5f74346c8a581bb70b572f757@zhaoxin.com> (raw)

Dear All:
I have a question about DmaBufferAlignment in CPU Arch driver.

Based on PI Spec:
......
This is typically the size of the largest data cache line in the platform.
This value can be determined by looking at the data cache line sizes of all the caches present in the platform, and returning the largest.
This is used by the root bridge I/O abstraction protocols to guarantee that no two DMA buffers ever share the same cache line.
The value in this field is a constant that must not be modified after the CPU Architectural Protocol is installed. All consumers must treat this as a read-only field.

But, I study Kabylake sample code, it uses UefiCpuPkg/CpuDxe/CpuDxe.inf,
And it declares  4 (DmaBufferAlignment).

For x86 cpu, the cache line size is usually 64 bytes.

Why not set 64 in CPU Arch protocol interface struct?

Thanks


保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

                 reply	other threads:[~2019-11-22  3:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-list 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=a82c00a5f74346c8a581bb70b572f757@zhaoxin.com \
    --to=devel@edk2.groups.io \
    /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