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: postpone i915 fence check to boost

Make the RPS boost code independent of i915 request code by moving the
dma_fence_is_i915() check to the RPS boost call.

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

+6 -5
-4
drivers/gpu/drm/i915/display/intel_display_rps.c
··· 9 9 #include <drm/drm_vblank.h> 10 10 11 11 #include "i915_reg.h" 12 - #include "i915_request.h" 13 12 #include "intel_display_core.h" 14 13 #include "intel_display_irq.h" 15 14 #include "intel_display_rps.h" ··· 51 52 struct wait_rps_boost *wait; 52 53 53 54 if (!intel_parent_rps_available(display)) 54 - return; 55 - 56 - if (!dma_fence_is_i915(fence)) 57 55 return; 58 56 59 57 if (DISPLAY_VER(display) < 6)
+6 -1
drivers/gpu/drm/i915/gt/intel_rps.c
··· 2917 2917 2918 2918 static void boost_if_not_started(struct dma_fence *fence) 2919 2919 { 2920 - struct i915_request *rq = to_request(fence); 2920 + struct i915_request *rq; 2921 + 2922 + if (!dma_fence_is_i915(fence)) 2923 + return; 2924 + 2925 + rq = to_request(fence); 2921 2926 2922 2927 if (!i915_request_started(rq)) 2923 2928 intel_rps_boost(rq);