Commit 1937f3f
drm/i915: Treat SAGV block time 0 as SAGV disabled
For modern platforms the spec explicitly states that a
SAGV block time of zero means that SAGV is not supported.
Let's extend that to all platforms. Supposedly there should
be no systems where this isn't true, and it'll allow us to:
- use the same code regardless of older vs. newer platform
- wm latencies already treat 0 as disabled, so this fits well
with other related code
- make it a bit more clear when SAGV is used vs. not
- avoid overflows from adding U32_MAX with a u16 wm0 latency value
which could cause us to miscalculate the SAGV watermarks on tgl+
Cc: stable@vger.kernel.org
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220309164948.10671-2-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
(cherry picked from commit d8f5855)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>1 parent 9cddf03 commit 1937f3f
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3698 | 3698 | | |
3699 | 3699 | | |
3700 | 3700 | | |
3701 | | - | |
3702 | | - | |
| 3701 | + | |
3703 | 3702 | | |
3704 | 3703 | | |
3705 | 3704 | | |
| |||
5645 | 5644 | | |
5646 | 5645 | | |
5647 | 5646 | | |
5648 | | - | |
| 5647 | + | |
5649 | 5648 | | |
5650 | 5649 | | |
5651 | 5650 | | |
| |||
5678 | 5677 | | |
5679 | 5678 | | |
5680 | 5679 | | |
5681 | | - | |
| 5680 | + | |
| 5681 | + | |
| 5682 | + | |
| 5683 | + | |
5682 | 5684 | | |
5683 | 5685 | | |
5684 | 5686 | | |
| |||
0 commit comments