Currently we determine gather filter enabled status based on the
chipid which is hacky. This patch reworks gather filter enabled flag
so that the gather filter flag is stored inside host1x structure.
Change-Id: I5aa52e1101c3c000e29a3583f5755d68d4f0de67
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/668750
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
int nvhost_gather_filter_enabled(struct nvhost_syncpt *sp)
{
- enum tegra_chipid cid = tegra_get_chipid();
-
- if (cid == TEGRA_CHIPID_TEGRA12 || cid == TEGRA_CHIPID_TEGRA13 ||
- cid == TEGRA_CHIPID_TEGRA21)
- return 1;
- return 0;
+ struct nvhost_master *host = syncpt_to_dev(sp);
+ struct nvhost_device_data *pdata = platform_get_drvdata(host->dev);
+ return pdata->gather_filter_enabled;
}
static int alloc_syncpts_per_apps(struct nvhost_syncpt *sp)
.private_data = &host1x04_info,
.finalize_poweron = nvhost_host1x_finalize_poweron,
.prepare_poweroff = nvhost_host1x_prepare_poweroff,
- .gather_filter_enabled = false,
+ .gather_filter_enabled = true,
};
.finalize_poweron = nvhost_host1x_finalize_poweron,
.prepare_poweroff = nvhost_host1x_prepare_poweroff,
.bond_out_id = BOND_OUT_HOST1X,
+ .gather_filter_enabled = true,
};
#ifdef CONFIG_TEGRA_GRHOST_ISP