Matthew Brost fe05cee4d9 drm/xe: Don't short circuit TDR on jobs not started
Short circuiting TDR on jobs not started is an optimization which is not
required. On LNL we are facing an issue where jobs do not get scheduled
by the GuC if it misses a GGTT page update. When this occurs let the TDR
fire, toggle the scheduling which may get the job unstuck, and print a
warning message. If the TDR fires twice on job that hasn't started,
timeout the job.

v2:
 - Add warning message (Paulo)
 - Add fixes tag (Paulo)
 - Timeout job which hasn't started after TDR firing twice
v3:
 - Include local change
v4:
 - Short circuit check_timeout on job not started
 - use warn level rather than notice (Paulo)

Fixes: 7ddb9403dd74 ("drm/xe: Sample ctx timestamp to determine if jobs have timed out")
Cc: stable@vger.kernel.org
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241025214330.2010521-2-matthew.brost@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
(cherry picked from commit 35d25a4a0012e690ef0cc4c5440231176db595cc)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
2024-10-31 07:03:14 -07:00
..
2024-06-18 12:40:38 -07:00
2024-06-12 11:31:42 -04:00
2024-05-09 21:28:25 +02:00
2024-08-01 11:00:14 -07:00
2024-04-02 10:33:57 -07:00
2024-08-27 14:09:45 +02:00
2024-05-31 00:02:04 +02:00
2024-08-30 10:51:09 +02:00
2024-09-01 20:43:33 -07:00
2024-05-13 21:36:50 +02:00
2024-04-02 10:33:57 -07:00
2024-10-11 09:03:30 +10:00
2024-05-22 12:03:55 +02:00
2024-07-17 09:47:15 -07:00
2024-06-26 18:25:22 -04:00
2024-07-22 12:53:04 +02:00
2024-06-18 12:40:38 -07:00
2024-04-02 10:33:57 -07:00
2024-08-27 14:09:45 +02:00
2024-05-07 12:03:49 +02:00
2024-10-03 01:13:54 -05:00
2024-08-27 14:09:45 +02:00
2024-05-13 21:36:52 +02:00
2024-06-18 12:03:29 -07:00
2024-07-04 11:54:35 +02:00
2024-07-03 22:28:06 -07:00
2024-08-27 14:09:45 +02:00
2024-07-18 10:25:33 -04:00
2024-07-18 10:25:33 -04:00
2024-05-07 12:45:39 -04:00
2024-07-24 09:05:37 -07:00