mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
video: tegra: nvmap: Remove warning from nvmap_pin
The framebuffer driver needs to be able to arbitrarily pin whatever gets handed to it. Regardless of the interface used, functions need to unpin as soon as they finish using the gart anyway. Change-Id: Ida8aea2fb6eaca8bcbf3ae72f8dfa849dc198542 Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
This commit is contained in:
@@ -543,14 +543,6 @@ unsigned long nvmap_pin(struct nvmap_client *client,
|
||||
|
||||
atomic_inc(&ref->pin);
|
||||
|
||||
#ifdef CONFIG_NVMAP_RECLAIM_UNPINNED_VM
|
||||
/* if IOVMM reclaiming is enabled, IOVMM-backed allocations should
|
||||
* only be pinned through the nvmap_pin_array mechanism, since that
|
||||
* interface guarantees that handles are unpinned when the pinning
|
||||
* command buffers have completed. */
|
||||
WARN_ON(h->heap_pgalloc && !h->pgalloc.contig);
|
||||
#endif
|
||||
|
||||
if (WARN_ON(mutex_lock_interruptible(&client->share->pin_lock))) {
|
||||
ret = -EINTR;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user