Commit 4f0b435
drm/i915: Extract cdclk requirements checking to separate function
In Gen11+ whenever we might exceed DBuf bandwidth we might need to
recalculate CDCLK which DBuf bandwidth is scaled with.
Total Dbuf bw used might change based on particular plane needs.
Thus to calculate if cdclk needs to be changed it is not enough
anymore to check plane configuration and plane min cdclk, per DBuf
bw can be calculated only after wm/ddb calculation is done and
all required planes are added into the state. In order to keep
all min_cdclk related checks in one place let's extract it into
separate function, checking and modifying any_ms.
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200519131117.17190-3-stanislav.lisovskiy@intel.com1 parent c93b9b2 commit 4f0b435
1 file changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14646 | 14646 | | |
14647 | 14647 | | |
14648 | 14648 | | |
14649 | | - | |
14650 | | - | |
| 14649 | + | |
14651 | 14650 | | |
14652 | 14651 | | |
14653 | 14652 | | |
| |||
14697 | 14696 | | |
14698 | 14697 | | |
14699 | 14698 | | |
| 14699 | + | |
| 14700 | + | |
| 14701 | + | |
| 14702 | + | |
| 14703 | + | |
| 14704 | + | |
| 14705 | + | |
| 14706 | + | |
| 14707 | + | |
| 14708 | + | |
| 14709 | + | |
| 14710 | + | |
| 14711 | + | |
| 14712 | + | |
| 14713 | + | |
| 14714 | + | |
14700 | 14715 | | |
14701 | 14716 | | |
14702 | 14717 | | |
| |||
14759 | 14774 | | |
14760 | 14775 | | |
14761 | 14776 | | |
14762 | | - | |
14763 | 14777 | | |
14764 | 14778 | | |
14765 | 14779 | | |
| |||
14870 | 14884 | | |
14871 | 14885 | | |
14872 | 14886 | | |
14873 | | - | |
| 14887 | + | |
14874 | 14888 | | |
14875 | 14889 | | |
14876 | 14890 | | |
14877 | | - | |
14878 | | - | |
14879 | | - | |
14880 | | - | |
14881 | 14891 | | |
14882 | 14892 | | |
14883 | 14893 | | |
| |||
14907 | 14917 | | |
14908 | 14918 | | |
14909 | 14919 | | |
| 14920 | + | |
| 14921 | + | |
| 14922 | + | |
| 14923 | + | |
14910 | 14924 | | |
14911 | 14925 | | |
14912 | 14926 | | |
| |||
0 commit comments