video: tegra: remove icc request in system resume

When dla resumes back from system sleep, it should not send any
bandwidth request through ICC framework since it is in idle state.

In the job submit path for dla, nvhost will try to wakeup the device
through nvhost_module_busy, and the associated runtime resume callback
is called in the dla driver. This is the time dla driver should send
bandwidth request to BPMP for bandwidth allocation through ICC
framework.

Bug 4478515

Signed-off-by: Johnny Liu <johnliu@nvidia.com>
Change-Id: Ie4b5cfad6593bd058860ee3be467d6a2384f1b5d
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3067369
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Johnny Liu
2024-01-31 22:24:27 +00:00
committed by mobile promotions
parent 233a7eb320
commit 246e62b38e

View File

@@ -1419,9 +1419,6 @@ static int nvdla_module_resume(struct device *dev)
{
struct nvhost_device_data *pdata = dev_get_drvdata(dev);
struct nvdla_device *nvdla_dev = pdata->private_data;
struct clk *clk = pdata->clks[0].clk;
unsigned long rate;
u32 emc_kbps;
int err;
/* Confirm if module is in suspend state. */
@@ -1444,15 +1441,6 @@ static int nvdla_module_resume(struct device *dev)
}
}
if (nvdla_dev->icc_write) {
rate = clk_get_rate(clk);
emc_kbps = rate * NVDLA_AXI_DBB_BW_BPC / 1024;
err = icc_set_bw(nvdla_dev->icc_write, kbps_to_icc(emc_kbps), 0);
if (err)
dev_warn(&nvdla_dev->pdev->dev,
"failed to set icc_write bw: %d\n", err);
}
return 0;
fail_nvhost_module_resume: