Commit 482bcc7
drm/i915/joiner: Make joiner "nomodeset" state copy independent of pipe order
Currently the joiner primary->secondary hw state copy still happens from
the main compute_config loop alongside the primary uapi->hw state copy.
The primary uapi->hw state copy must therefore happen first, or else
we'll end up copying stale junk into the secondary.
We have a WARN in intel_atomic_check_joiner() to make sure the CRTCs
will be walked in the correct order. The plan is to reoder the CRTCs,
which would mess up the order, unless we also adjust the iterators
to keep the pipe order. The actual plan is to do both, so technically
we should be able to just remove the WARN and call it a day.
But relying on the iteration order like this is fragile and confusing,
so let's move the "nomodeset" joiner state copy into the later loop
where the "modeset" state copy is also done. The first loop having
completely finished, we are guaranteed to have up to date hw state
on the primary when we do the copy to the secondary.
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patch.msgid.link/20260408155744.13326-2-ville.syrjala@linux.intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>1 parent 4516432 commit 482bcc7
1 file changed
Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5939 | 5939 | | |
5940 | 5940 | | |
5941 | 5941 | | |
5942 | | - | |
5943 | | - | |
5944 | | - | |
5945 | | - | |
5946 | | - | |
5947 | | - | |
5948 | | - | |
5949 | | - | |
5950 | | - | |
5951 | | - | |
5952 | | - | |
5953 | 5942 | | |
5954 | 5943 | | |
5955 | 5944 | | |
| |||
6327 | 6316 | | |
6328 | 6317 | | |
6329 | 6318 | | |
6330 | | - | |
6331 | | - | |
6332 | | - | |
| 6319 | + | |
6333 | 6320 | | |
6334 | 6321 | | |
6335 | 6322 | | |
| |||
6460 | 6447 | | |
6461 | 6448 | | |
6462 | 6449 | | |
6463 | | - | |
| 6450 | + | |
| 6451 | + | |
| 6452 | + | |
6464 | 6453 | | |
| 6454 | + | |
6465 | 6455 | | |
6466 | 6456 | | |
6467 | 6457 | | |
| |||
0 commit comments