msm: kgsl: Read global_pt property from IOMMU node
Enable global pagetable if global_pt property is set. Change-Id: I8038e352110b617befc90dbae9258d3787a72fac Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
This commit is contained in:
parent
1d1c751feb
commit
c83d9856c5
|
@ -34,6 +34,8 @@ Optional properties:
|
|||
- qcom,iommu-pmu-event-classes: List of event classes supported.
|
||||
- Bus scaling properties: See msm_bus.txt
|
||||
- qcom,cb-base-offset: context bank 0's base address from global base address
|
||||
- qcom,global_pt : A boolean specifying if global pagetable should be used.
|
||||
When not set we use per process pagetables for GPU.
|
||||
|
||||
- List of sub nodes, one for each of the translation context banks supported.
|
||||
Each sub node has the following required properties:
|
||||
|
|
|
@ -879,6 +879,9 @@ static int adreno_of_get_iommu(struct platform_device *pdev,
|
|||
data->regstart = reg_val[0];
|
||||
data->regsize = reg_val[1];
|
||||
|
||||
if (of_property_read_bool(node, "qcom,global_pt"))
|
||||
data->features |= KGSL_MMU_GLOBAL_PAGETABLE;
|
||||
|
||||
data->iommu_ctx_count = 0;
|
||||
|
||||
for_each_child_of_node(node, child)
|
||||
|
|
Loading…
Reference in New Issue