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

Commit b4223cf1 authored by Liam Mark's avatar Liam Mark Committed by Patrick Daly
Browse files

iommu/io-pgtable: Allow page table coherency to be set



Currently the coherency of an iommu's page table is
dictated by the coherency of the iommu device.

Support being able to configure iommu page tables as
being coherent or not.

Change-Id: I00e536ce52b90ed78452cbf086496c325084f7ae
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 425d03d5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -78,12 +78,16 @@ struct io_pgtable_cfg {
	 * IO_PGTABLE_QUIRK_QCOM_USE_UPSTREAM_HINT: Override the attributes
	 *	set in TCR for the page table walker. Use attributes specified
	 *	by the upstream hw instead.
	 *
	 * IO_PGTABLE_QUIRK_PAGE_TABLE_COHERENT: Set the page table as
	 *	coherent.
	 */
	#define IO_PGTABLE_QUIRK_ARM_NS		BIT(0)
	#define IO_PGTABLE_QUIRK_NO_PERMS	BIT(1)
	#define IO_PGTABLE_QUIRK_TLBI_ON_MAP	BIT(2)
	#define IO_PGTABLE_QUIRK_ARM_MTK_4GB	BIT(3)
	#define IO_PGTABLE_QUIRK_QCOM_USE_UPSTREAM_HINT	BIT(4)
	#define IO_PGTABLE_QUIRK_PAGE_TABLE_COHERENT BIT(5)
	unsigned long			quirks;
	unsigned long			pgsize_bitmap;
	unsigned int			ias;