mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
drm/i915: drop i915 param from i915_fence{, _context}_timeout()
The i915_fence_context_timeout() and i915_fence_timeout() functions both have the struct drm_i915_private parameter, which is unused. It's likely in preparation for something that just didn't end up happening. Remove them, dropping the last struct drm_i915_private usage for xe display build. Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patch.msgid.link/dce86cb031d523a95a96ed2bf9c93bb28e6b20ab.1767009044.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
5558192707
commit
aae766f5d3
|
|
@ -50,7 +50,6 @@
|
|||
#include "g4x_hdmi.h"
|
||||
#include "hsw_ips.h"
|
||||
#include "i915_config.h"
|
||||
#include "i915_drv.h"
|
||||
#include "i915_reg.h"
|
||||
#include "i9xx_plane.h"
|
||||
#include "i9xx_plane_regs.h"
|
||||
|
|
@ -7165,7 +7164,6 @@ static void skl_commit_modeset_enables(struct intel_atomic_state *state)
|
|||
|
||||
static void intel_atomic_commit_fence_wait(struct intel_atomic_state *intel_state)
|
||||
{
|
||||
struct drm_i915_private *i915 = to_i915(intel_state->base.dev);
|
||||
struct drm_plane *plane;
|
||||
struct drm_plane_state *new_plane_state;
|
||||
long ret;
|
||||
|
|
@ -7174,7 +7172,7 @@ static void intel_atomic_commit_fence_wait(struct intel_atomic_state *intel_stat
|
|||
for_each_new_plane_in_state(&intel_state->base, plane, new_plane_state, i) {
|
||||
if (new_plane_state->fence) {
|
||||
ret = dma_fence_wait_timeout(new_plane_state->fence, false,
|
||||
i915_fence_timeout(i915));
|
||||
i915_fence_timeout());
|
||||
if (ret <= 0)
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ bool i915_gem_clflush_object(struct drm_i915_gem_object *obj,
|
|||
if (clflush) {
|
||||
i915_sw_fence_await_reservation(&clflush->base.chain,
|
||||
obj->base.resv, true,
|
||||
i915_fence_timeout(i915),
|
||||
i915_fence_timeout(),
|
||||
I915_FENCE_GFP);
|
||||
dma_resv_add_fence(obj->base.resv, &clflush->base.dma,
|
||||
DMA_RESV_USAGE_KERNEL);
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@
|
|||
#include "i915_config.h"
|
||||
#include "i915_jiffies.h"
|
||||
|
||||
unsigned long
|
||||
i915_fence_context_timeout(const struct drm_i915_private *i915, u64 context)
|
||||
unsigned long i915_fence_context_timeout(u64 context)
|
||||
{
|
||||
if (CONFIG_DRM_I915_FENCE_TIMEOUT && context)
|
||||
return msecs_to_jiffies_timeout(CONFIG_DRM_I915_FENCE_TIMEOUT);
|
||||
|
|
|
|||
|
|
@ -9,15 +9,11 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/limits.h>
|
||||
|
||||
struct drm_i915_private;
|
||||
unsigned long i915_fence_context_timeout(u64 context);
|
||||
|
||||
unsigned long i915_fence_context_timeout(const struct drm_i915_private *i915,
|
||||
u64 context);
|
||||
|
||||
static inline unsigned long
|
||||
i915_fence_timeout(const struct drm_i915_private *i915)
|
||||
static inline unsigned long i915_fence_timeout(void)
|
||||
{
|
||||
return i915_fence_context_timeout(i915, U64_MAX);
|
||||
return i915_fence_context_timeout(U64_MAX);
|
||||
}
|
||||
|
||||
#endif /* __I915_CONFIG_H__ */
|
||||
|
|
|
|||
|
|
@ -1351,8 +1351,7 @@ __i915_request_await_external(struct i915_request *rq, struct dma_fence *fence)
|
|||
{
|
||||
mark_external(rq);
|
||||
return i915_sw_fence_await_dma_fence(&rq->submit, fence,
|
||||
i915_fence_context_timeout(rq->i915,
|
||||
fence->context),
|
||||
i915_fence_context_timeout(fence->context),
|
||||
I915_FENCE_GFP);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,10 +8,7 @@
|
|||
|
||||
#include <linux/sched.h>
|
||||
|
||||
struct drm_i915_private;
|
||||
|
||||
static inline unsigned long
|
||||
i915_fence_timeout(const struct drm_i915_private *i915)
|
||||
static inline unsigned long i915_fence_timeout(void)
|
||||
{
|
||||
return MAX_SCHEDULE_TIMEOUT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user