Files
linux/drivers
Lucas De Marchi b0ac4ef074 drm/xe/guc_pc: Use poll_timeout_us() for waiting
Convert wait_for_pc_state() and wait_for_act_freq_limit() to
poll_timeout_us(). This brings 2 changes in behavior: Drop the
exponential wait and fix a potential much longer sleep.

usleep_range() will wait anywhere between `wait` and `wait << 1`, so
it's not correct to assume `slept += wait`.  This code is not really
accurate. Pairing this with the exponential wait increase, it could be
waiting much longer than intended.

Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Link: https://lore.kernel.org/r/20250922-xe-iopoll-v4-2-06438311a63f@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
2025-09-24 21:23:19 -07:00
..
2025-09-15 17:51:07 +10:00
2025-09-02 11:29:43 +02:00
2025-09-15 17:51:07 +10:00
2025-09-02 12:21:42 -07:00
2025-09-15 17:51:07 +10:00
2025-07-01 12:29:29 +02:00
2025-08-20 16:37:27 +02:00
2025-09-12 13:41:55 +02:00