mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
Merge "msm: kgsl: Disable stall on fault for GMU context bank"
This commit is contained in:
commit
e41274f413
1 changed files with 9 additions and 0 deletions
|
|
@ -2614,6 +2614,7 @@ static int a6xx_gmu_iommu_cb_probe(struct a6xx_gmu_device *gmu,
|
|||
struct device_node *node = of_get_child_by_name(parent, ctx->name);
|
||||
struct platform_device *pdev;
|
||||
int ret;
|
||||
int no_stall = 1;
|
||||
|
||||
if (!node)
|
||||
return -ENODEV;
|
||||
|
|
@ -2636,6 +2637,14 @@ static int a6xx_gmu_iommu_cb_probe(struct a6xx_gmu_device *gmu,
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
/*
|
||||
* Disable stall on fault for the GMU context bank.
|
||||
* This sets SCTLR.CFCFG = 0.
|
||||
* Also note that, the smmu driver sets SCTLR.HUPCF = 0 by default.
|
||||
*/
|
||||
iommu_domain_set_attr(ctx->domain,
|
||||
DOMAIN_ATTR_FAULT_MODEL_NO_STALL, &no_stall);
|
||||
|
||||
ret = iommu_attach_device(ctx->domain, &pdev->dev);
|
||||
if (!ret) {
|
||||
iommu_set_fault_handler(ctx->domain, handler, ctx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue