Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/47658 )
Change subject: commonlib/region: Allow multiple windows for xlate_region_dev
......................................................................
Patch Set 12: Code-Review+1
(1 comment)
https://review.coreboot.org/c/coreboot/+/47658/12/src/soc/intel/apollolake/m...
File src/soc/intel/apollolake/mmap_boot.c:
https://review.coreboot.org/c/coreboot/+/47658/12/src/soc/intel/apollolake/m...
PS12, Line 85: map = rdev_mmap(&real_dev.rdev, region_offset(&cbfs_region), region_sz(&cbfs_region));
: if (map)
: rdev_munmap(&real_dev.rdev, map);
if I understand this part right, wouldn't
```
if (!region_overlap(&real_dev.rdev, &cbfs_region))
printk(error);
```
work to avoid the unnecessary mmap op ? I guess mmap for x86 boot media is a noop for now so it's not a big deal.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/47658
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id5b21ffca2c8d6a9dfc37a878429aed4a8301651
Gerrit-Change-Number: 47658
Gerrit-PatchSet: 12
Gerrit-Owner: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Andrey Petrov
andrey.petrov@gmail.com
Gerrit-Reviewer: Duncan Laurie
dlaurie@chromium.org
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Srinidhi N Kaushik
srinidhi.n.kaushik@intel.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Sat, 05 Dec 2020 21:57:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment