From: Jeremy Linton <jeremy.linton@arm.com>
To: jiang.liu@linux.intel.com,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
Tomasz Nowicki <tomasz.nowicki@linaro.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
G Gregory <graeme.gregory@linaro.org>
Subject: [Patch v7 4/7] PCI/ACPI add interface to acpi_pci
Date: Fri, 6 Nov 2015 11:50:40 -0600 [thread overview]
Message-ID: <563CE870.3040901@arm.com> (raw)
Hello,
I just took a quick look at the discussion about the DwordIO ACPI
translation, and I have a couple comments (I don't have the whole thread
available for some reason..).
First, the "secondary bus" referenced in the ACPI specification is the
processor side, rather than the PCI device side. So the minimum/max base
address are the MMIO mapped addresses. To get the actual IO address the
translation must be subtracted. This means AFAIK that the qemu table is
wrong in two ways for ARM64.
So that said, I will reference the juno DwordIo resource which I
recently added to the EDK.
DWordIo ( // IO window
ResourceProducer,
MinFixed,
MaxFixed,
PosDecode,
EntireRange,
0x00000000, // Granularity
0x5f800000, // Min Base Address
0x5fffffff, // Max Base Address
0x5f800000, // Translate
0x00800000 // Length
)
Which after reading the specification, I realized should be setting the
translation type to TypeTranslation. But that really doesn't matter for
ARM64 because ARM64 doesn't have a processor accessible IO address
range. AKA the TranslationType controls whether the processor is doing
an IN/OUT/etc to access the range or actual MMIO read/writes. Since on
ARM64 the only choice is MMIO, this field should be ignored, the only
behavior difference should possibly be a warning if someone leaves it
set to static.
Put another way, the setting of the TranslationType doesn't change the
way the "translation" is computed, only how its accessed. AKA it doesn't
affect the math..
next reply other threads:[~2015-11-06 17:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 17:50 Jeremy Linton [this message]
2015-11-06 18:55 ` [Patch v7 4/7] PCI/ACPI add interface to acpi_pci Lorenzo Pieralisi
2015-11-06 20:44 ` Jeremy Linton
2015-11-08 12:40 ` Jiang Liu
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=563CE870.3040901@arm.com \
--to=jeremy.linton@arm.com \
--cc=graeme.gregory@linaro.org \
--cc=jiang.liu@linux.intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=tomasz.nowicki@linaro.org \
/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).