Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7039e197 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

iommu: io-pgtable-fast: Fix IOMMU configuration usage in self-tests



When the fastmap selftests are running, a half-baked configuration
structure is allocated on the stack for the sole purpose of exercising
the mapping and unmapping paths. This leads to issues, as the
implementation of av8l_clean_range() assumes that the configuration
structure is well-defined (i.e. the device pointer is meaningful,
and can be used for applying cache-maintenance, and is contained in an
iopgtable structure). To avoid this, change av8l_clean_range() so that
it no longer assumes that the configuration structure is contained in an
iopgtable structure, as well as update the coherency settings used for
the selftests, so that cache-maintenance is not performed. It is
pointless to perform cache-mainteance for the tests, as no device
access occurs.

Change-Id: I428b893132e57184eb9f97d656ed2357489bb230
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent 154900b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment