pva: Remove unused legacy nvhost functions

The functions nvhost_debug_dump_device() and
nvhost_module_remove_client() are a no-op and were initially
added to ensure that the PVA driver worked with both the legacy nvhost
driver and upstream host1x driver. Now the legacy nvhost driver is
deprecated remove these functions.

Bug 4475969

Change-Id: I1c1444b7b6578117f42200259174e2f60a464db3
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3092468
Reviewed-by: Pekka Jylha Ollila <pjylhaollila@nvidia.com>
Tested-by: Pekka Jylha Ollila <pjylhaollila@nvidia.com>
This commit is contained in:
Jon Hunter
2024-03-08 12:38:00 +00:00
committed by Pekka Jylha Ollila
parent 615ba15a30
commit 16df0a48d5
4 changed files with 0 additions and 11 deletions

View File

@@ -869,8 +869,6 @@ int pva_aisr_handler(void *arg)
nvpva_warn(&pva->pdev->dev, "PVA AISR received");
recover = false;
/* Dump nvhost state to show the pending jobs */
nvhost_debug_dump_device(pdev);
status5 = pva->version_config->read_mailbox(pdev, PVA_MBOX_AISR);
if (status5 & PVA_AISR_INT_PENDING) {

View File

@@ -16,10 +16,6 @@ static void pva_abort_handler(struct work_struct *work)
struct platform_device *pdev = pva->pdev;
int i;
/* Dump nvhost state to show the pending jobs */
nvhost_debug_dump_device(pdev);
/*wake up sync cmd waiters*/
for (i = 0; i < pva->version_config->irq_count; i++) {
if (pva->cmd_status[i] == PVA_CMD_STATUS_WFI) {

View File

@@ -1019,7 +1019,6 @@ err_device_busy:
err_alloc_queue:
nvpva_client_context_put(priv->client);
err_alloc_context:
nvhost_module_remove_client(pdev, priv);
kfree(priv);
err_alloc_priv:
return err;

View File

@@ -245,10 +245,6 @@ static inline int nvhost_module_add_client(struct platform_device *dev, void *pr
static inline void nvhost_module_remove_client(struct platform_device *dev, void *priv) { }
static inline void nvhost_debug_dump_device(struct platform_device *pdev)
{
}
static inline int nvhost_fence_create_fd(
struct platform_device *pdev,
struct nvhost_ctrl_sync_fence_info *pts,