Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/rps: store struct dma_fence in struct wait_rps_boost

Prefer the more generic pointer rather than i915 specific data
type. Also use dma_fence_put() for symmetry with the dma_fence_get()

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/950948ae6d3d5fbc4af3401ea77e609945b73a77.1763370931.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+4 -4
+4 -4
drivers/gpu/drm/i915/display/intel_display_rps.c
··· 18 18 struct wait_queue_entry wait; 19 19 20 20 struct drm_crtc *crtc; 21 - struct i915_request *request; 21 + struct dma_fence *fence; 22 22 }; 23 23 24 24 static int do_rps_boost(struct wait_queue_entry *_wait, 25 25 unsigned mode, int sync, void *key) 26 26 { 27 27 struct wait_rps_boost *wait = container_of(_wait, typeof(*wait), wait); 28 - struct i915_request *rq = wait->request; 28 + struct i915_request *rq = to_request(wait->fence); 29 29 30 30 /* 31 31 * If we missed the vblank, but the request is already running it ··· 34 34 */ 35 35 if (!i915_request_started(rq)) 36 36 intel_rps_boost(rq); 37 - i915_request_put(rq); 37 + dma_fence_put(wait->fence); 38 38 39 39 drm_crtc_vblank_put(wait->crtc); 40 40 ··· 64 64 return; 65 65 } 66 66 67 - wait->request = to_request(dma_fence_get(fence)); 67 + wait->fence = dma_fence_get(fence); 68 68 wait->crtc = crtc; 69 69 70 70 wait->wait.func = do_rps_boost;