Commit abd9d66
drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
Till DISPLAY12 the PIPE_MISC bits 5-7 are used to set the
Dithering BPC, with valid values of 6, 8, 10 BPC.
For ADLP+ these bits are used to set the PORT OUTPUT BPC, with valid
values of: 6, 8, 10, 12 BPC, and need to be programmed whether
dithering is enabled or not.
This patch:
-corrects the bits 5-7 for PIPE MISC register for 12 BPC.
-renames the bits and mask to have generic names for these bits for
dithering bpc and port output bpc.
v3: Added a note for MIPI DSI which uses the PIPE_MISC for readout
for pipe_bpp. (Uma Shankar)
v2: Added 'display' to the subject and fixes tag. (Uma Shankar)
Fixes: 756f85c ("drm/i915/bdw: Broadwell has PIPEMISC")
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com> (v1)
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v3.13+
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210811051857.109723-1-ankit.k.nautiyal@intel.com
(cherry picked from commit 70418a6)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>1 parent d927ae7 commit abd9d66
2 files changed
Lines changed: 35 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5746 | 5746 | | |
5747 | 5747 | | |
5748 | 5748 | | |
5749 | | - | |
| 5749 | + | |
5750 | 5750 | | |
5751 | 5751 | | |
5752 | | - | |
| 5752 | + | |
5753 | 5753 | | |
5754 | 5754 | | |
5755 | | - | |
| 5755 | + | |
5756 | 5756 | | |
5757 | 5757 | | |
5758 | | - | |
| 5758 | + | |
| 5759 | + | |
| 5760 | + | |
5759 | 5761 | | |
5760 | 5762 | | |
5761 | 5763 | | |
| |||
5808 | 5810 | | |
5809 | 5811 | | |
5810 | 5812 | | |
5811 | | - | |
5812 | | - | |
| 5813 | + | |
| 5814 | + | |
5813 | 5815 | | |
5814 | | - | |
| 5816 | + | |
5815 | 5817 | | |
5816 | | - | |
| 5818 | + | |
5817 | 5819 | | |
5818 | | - | |
5819 | | - | |
| 5820 | + | |
| 5821 | + | |
| 5822 | + | |
| 5823 | + | |
| 5824 | + | |
| 5825 | + | |
| 5826 | + | |
| 5827 | + | |
| 5828 | + | |
| 5829 | + | |
| 5830 | + | |
| 5831 | + | |
| 5832 | + | |
| 5833 | + | |
5820 | 5834 | | |
5821 | 5835 | | |
5822 | 5836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6163 | 6163 | | |
6164 | 6164 | | |
6165 | 6165 | | |
6166 | | - | |
6167 | | - | |
6168 | | - | |
6169 | | - | |
6170 | | - | |
| 6166 | + | |
| 6167 | + | |
| 6168 | + | |
| 6169 | + | |
| 6170 | + | |
| 6171 | + | |
| 6172 | + | |
| 6173 | + | |
| 6174 | + | |
| 6175 | + | |
| 6176 | + | |
6171 | 6177 | | |
6172 | 6178 | | |
6173 | 6179 | | |
| |||
0 commit comments