From 246e62b38e2472d06912b3dc7916e0316a8c16be Mon Sep 17 00:00:00 2001 From: Johnny Liu Date: Wed, 31 Jan 2024 22:24:27 +0000 Subject: [PATCH] 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 Change-Id: Ie4b5cfad6593bd058860ee3be467d6a2384f1b5d Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3067369 Reviewed-by: Rajkumar Kasirajan GVS: Gerrit_Virtual_Submit --- drivers/video/tegra/host/nvdla/nvdla.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/video/tegra/host/nvdla/nvdla.c b/drivers/video/tegra/host/nvdla/nvdla.c index 4d57fdb3..29a2ba42 100644 --- a/drivers/video/tegra/host/nvdla/nvdla.c +++ b/drivers/video/tegra/host/nvdla/nvdla.c @@ -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: