mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "iommu/arm-smmu: Use an atomic context when fastmap is set on GKI"
This commit is contained in:
commit
26050e6298
1 changed files with 7 additions and 4 deletions
|
|
@ -2645,16 +2645,19 @@ static int arm_smmu_setup_default_domain(struct device *dev,
|
|||
if (ret)
|
||||
str = "default";
|
||||
|
||||
if (!strcmp(str, "bypass"))
|
||||
if (!strcmp(str, "bypass")) {
|
||||
__arm_smmu_domain_set_attr(
|
||||
domain, DOMAIN_ATTR_S1_BYPASS, &attr);
|
||||
else if (!strcmp(str, "fastmap"))
|
||||
__arm_smmu_domain_set_attr(
|
||||
domain, DOMAIN_ATTR_FAST, &attr);
|
||||
else if (!strcmp(str, "atomic"))
|
||||
} else if (!strcmp(str, "fastmap")) {
|
||||
/* Ensure DOMAIN_ATTR_ATOMIC is set for GKI */
|
||||
__arm_smmu_domain_set_attr(
|
||||
domain, DOMAIN_ATTR_ATOMIC, &attr);
|
||||
else if (!strcmp(str, "disabled")) {
|
||||
__arm_smmu_domain_set_attr(
|
||||
domain, DOMAIN_ATTR_FAST, &attr);
|
||||
} else if (!strcmp(str, "atomic")) {
|
||||
__arm_smmu_domain_set_attr(
|
||||
domain, DOMAIN_ATTR_ATOMIC, &attr);
|
||||
} else if (!strcmp(str, "disabled")) {
|
||||
/*
|
||||
* Don't touch hw, and don't allocate irqs or other resources.
|
||||
* Ensure the context bank is set to a valid value per dynamic
|
||||
|
|
|
|||
Loading…
Reference in a new issue