From 64b7110c1d283bdc624849d5b06f94e83614d9b2 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Fri, 1 Apr 2022 17:00:47 +0100 Subject: [PATCH] gpu: host1x: Revert fix for BO caching A proper fix has been created for the BO caching for host1x that has been submitted upstream and so revert this change. Bug 3556250 Change-Id: Ic712befb2c5f987df348d5406446bcbad8e88a4d Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2693867 Reviewed-by: Mikko Perttunen Reviewed-by: svc_kernel_abi GVS: Gerrit_Virtual_Submit --- drivers/gpu/host1x/bus.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/host1x/bus.c b/drivers/gpu/host1x/bus.c index 72bac3fb..c02360cf 100644 --- a/drivers/gpu/host1x/bus.c +++ b/drivers/gpu/host1x/bus.c @@ -938,6 +938,9 @@ struct host1x_bo_mapping *host1x_bo_pin(struct device *dev, struct host1x_bo *bo mapping->cache = cache; list_add_tail(&mapping->entry, &cache->mappings); + + /* bump reference count to track the copy in the cache */ + kref_get(&mapping->ref); } unlock: