[Intel-gfx] [PATCH igt] lib/kms: Force a full reprobe if we find a bad link

Chris Wilson chris at chris-wilson.co.uk
Wed Jun 7 11:33:13 UTC 2017


Quoting Martin Peres (2017-06-07 12:13:24)
> How about this: When the modeset call fails, check if the link-status is 
> BAD. If not, return a FAIL. If so, force a full re-probe, pick the 
> highest available mode and try again. Do this until a mode applies. If 
> no modes are left, just SKIP the test altogether.
> 
> Does this sound reasonable?

The problem here is that we need to loop back to the test for it to
decide on the next mode. In most cases we don't care, but igt_kms.c
doesn't know this. But if e.g. we have a CRC computed for one size, it
needs to be swapped out for the new mode.
-Chris


More information about the Intel-gfx mailing list