Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30991 )
Change subject: intel/apollolake: Add fixed resources for VTd to system resources
......................................................................
Patch Set 6:
(1 comment)
https://review.coreboot.org/#/c/30991/6/src/soc/intel/apollolake/systemagent...
File src/soc/intel/apollolake/systemagent.c:
https://review.coreboot.org/#/c/30991/6/src/soc/intel/apollolake/systemagent...
PS6, Line 53: (MCHBAR32(GFXVTBAR) & VTBAR_MASK) / KiB,
Yes, and we have just an "unsigned long" to pass to the mmio_resource(). […]
We are lucky here as the most significant 24 bits are defined to be
read-only zero. So when reading the 64-bit value, you'll actually
have only 40 bits, and minus 10 makes only 30 bits after converting
to KiB.
In case APL supports reading 64-bit values, this could be as simple
as changing 32 to 64 in this line (given a proper definition of
VTBAR_MASK).
--
To view, visit
https://review.coreboot.org/c/coreboot/+/30991
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If96fc1c93746e3c7f510e5b3095ea3090e1b8807
Gerrit-Change-Number: 30991
Gerrit-PatchSet: 6
Gerrit-Owner: Werner Zeh
werner.zeh@siemens.com
Gerrit-Reviewer: Alex Thiessen
alex.thiessen.de+coreboot@gmail.com
Gerrit-Reviewer: Mario Scheithauer
mario.scheithauer@siemens.com
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Werner Zeh
werner.zeh@siemens.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Comment-Date: Fri, 25 Jan 2019 14:50:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Werner Zeh
werner.zeh@siemens.com
Comment-In-Reply-To: Nico Huber
nico.h@gmx.de
Gerrit-MessageType: comment