]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/radeon: Remove unused radeon_fence_wait_any
authorDr. David Alan Gilbert <linux@treblig.org>
Fri, 18 Apr 2025 00:21:16 +0000 (01:21 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Apr 2025 12:51:45 +0000 (08:51 -0400)
radeon_fence_wait_any() last use was removed in 2023's
commit 254986e324ad ("drm/radeon: Use the drm suballocation manager
implementation.")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_fence.c

index 8605c074d9f75681622b0bad4492f9ba3c4fbfbf..63c47585afbcf01ae006e553c904b5e7e18eb33c 100644 (file)
@@ -394,9 +394,6 @@ long radeon_fence_wait_timeout(struct radeon_fence *fence, bool interruptible, l
 int radeon_fence_wait(struct radeon_fence *fence, bool interruptible);
 int radeon_fence_wait_next(struct radeon_device *rdev, int ring);
 int radeon_fence_wait_empty(struct radeon_device *rdev, int ring);
-int radeon_fence_wait_any(struct radeon_device *rdev,
-                         struct radeon_fence **fences,
-                         bool intr);
 struct radeon_fence *radeon_fence_ref(struct radeon_fence *fence);
 void radeon_fence_unref(struct radeon_fence **fence);
 unsigned radeon_fence_count_emitted(struct radeon_device *rdev, int ring);
index 8ff4f18b51a944c9031705877b7f744915eb304e..5b5b54e876d4c29fbcc3c58d82d91d20ebd4231c 100644 (file)
@@ -574,48 +574,6 @@ int radeon_fence_wait(struct radeon_fence *fence, bool intr)
                return r;
 }
 
-/**
- * radeon_fence_wait_any - wait for a fence to signal on any ring
- *
- * @rdev: radeon device pointer
- * @fences: radeon fence object(s)
- * @intr: use interruptable sleep
- *
- * Wait for any requested fence to signal (all asics).  Fence
- * array is indexed by ring id.  @intr selects whether to use
- * interruptable (true) or non-interruptable (false) sleep when
- * waiting for the fences. Used by the suballocator.
- * Returns 0 if any fence has passed, error for all other cases.
- */
-int radeon_fence_wait_any(struct radeon_device *rdev,
-                         struct radeon_fence **fences,
-                         bool intr)
-{
-       uint64_t seq[RADEON_NUM_RINGS];
-       unsigned int i, num_rings = 0;
-       long r;
-
-       for (i = 0; i < RADEON_NUM_RINGS; ++i) {
-               seq[i] = 0;
-
-               if (!fences[i])
-                       continue;
-
-               seq[i] = fences[i]->seq;
-               ++num_rings;
-       }
-
-       /* nothing to wait for ? */
-       if (num_rings == 0)
-               return -ENOENT;
-
-       r = radeon_fence_wait_seq_timeout(rdev, seq, intr, MAX_SCHEDULE_TIMEOUT);
-       if (r < 0)
-               return r;
-
-       return 0;
-}
-
 /**
  * radeon_fence_wait_next - wait for the next fence to signal
  *