File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -770,25 +770,21 @@ bool xe_exec_queue_is_idle(struct xe_exec_queue *q)
770
770
void xe_exec_queue_update_run_ticks (struct xe_exec_queue * q )
771
771
{
772
772
struct xe_device * xe = gt_to_xe (q -> gt );
773
- struct xe_file * xef ;
774
773
struct xe_lrc * lrc ;
775
774
u32 old_ts , new_ts ;
776
775
int idx ;
777
776
778
777
/*
779
- * Jobs that are run during driver load may use an exec_queue, but are
780
- * not associated with a user xe file, so avoid accumulating busyness
781
- * for kernel specific work.
778
+ * Jobs that are executed by kernel doesn't have a corresponding xe_file
779
+ * and thus are not accounted.
782
780
*/
783
- if (!q -> vm || ! q -> vm -> xef )
781
+ if (!q -> xef )
784
782
return ;
785
783
786
784
/* Synchronize with unbind while holding the xe file open */
787
785
if (!drm_dev_enter (& xe -> drm , & idx ))
788
786
return ;
789
787
790
- xef = q -> vm -> xef ;
791
-
792
788
/*
793
789
* Only sample the first LRC. For parallel submission, all of them are
794
790
* scheduled together and we compensate that below by multiplying by
@@ -799,7 +795,7 @@ void xe_exec_queue_update_run_ticks(struct xe_exec_queue *q)
799
795
*/
800
796
lrc = q -> lrc [0 ];
801
797
new_ts = xe_lrc_update_timestamp (lrc , & old_ts );
802
- xef -> run_ticks [q -> class ] += (new_ts - old_ts ) * q -> width ;
798
+ q -> xef -> run_ticks [q -> class ] += (new_ts - old_ts ) * q -> width ;
803
799
804
800
drm_dev_exit (idx );
805
801
}
You can’t perform that action at this time.
0 commit comments