drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
PATCH v2 1/1 drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
From: Ankit Nautiyal <[email protected]>
Till DISPLAY12 the PIPE_MISC bits 5-7 are used to set the Dithering BPC, with valid values of 6, 8, 10 BPC, with Dithering bit enabled. Also, these bits are used in case of HW readout for pipe_bpp in case of DSI.
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.
v2: Addressed the comments and suggestions from Uma Shankar:
-Add 'display' in subject
-Add Fixes tag in the commit message.
-Take care of DSI case which uses the bits for getting pipe_bpp.
--- drivers/gpu/drm/i915/display/intel_display.c | 18 +++++++++--------- drivers/gpu/drm/i915/i915_reg.h | 15 ++++++++++----- 2 files changed, 19 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +9 -9
@@ -5760,16 +5760,16 @@ static void bdw_set_pipemisc(const struct intel_crtc_state *crtc_state)switch (crtc_state->pipe_bpp) {case 18 : - val |=PIPEMISC_DITHER_6_BPC ; + val |=PIPEMISC_6_BPC ;break ;case 24 : - val |=PIPEMISC_DITHER_8_BPC ; + val |=PIPEMISC_8_BPC ;break ;case 30 : - val |=PIPEMISC_DITHER_10_BPC ; + val |=PIPEMISC_10_BPC ;break ;case 36 : - val |=PIPEMISC_DITHER_12_BPC ; + val |=PIPEMISC_12_BPC ;break ;default :MISSING_CASE (crtc_state->pipe_bpp);
@@ -5822,14 +5822,14 @@ int bdw_get_pipemisc_bpp(struct intel_crtc *crtc) tmp =intel_de_read (dev_priv,PIPEMISC (crtc->pipe)); -switch (tmp &PIPEMISC_DITHER_BPC_MASK ) { -case PIPEMISC_DITHER_6_BPC : +switch (tmp &PIPEMISC_BPC_MASK ) { +case PIPEMISC_6_BPC :return 18 ; -case PIPEMISC_DITHER_8_BPC : +case PIPEMISC_8_BPC :return 24 ; -case PIPEMISC_DITHER_10_BPC : +case PIPEMISC_10_BPC :return 30 ; -case PIPEMISC_DITHER_12_BPC : +case PIPEMISC_12_BPC :return 36 ;default :MISSING_CASE (tmp);
drivers/gpu/drm/i915/i915_reg.h +10 -5
@@ -6166,11 +6166,16 @@ enum {#define PIPEMISC_HDR_MODE_PRECISION (1 << 23)/* icl+ */ #define PIPEMISC_OUTPUT_COLORSPACE_YUV (1 << 11)#define PIPEMISC_PIXEL_ROUNDING_TRUNC REG_BIT(8)/* tgl+ */ -#define PIPEMISC_DITHER_BPC_MASK (7 << 5) -#define PIPEMISC_DITHER_8_BPC (0 << 5) -#define PIPEMISC_DITHER_10_BPC (1 << 5) -#define PIPEMISC_DITHER_6_BPC (2 << 5) -#define PIPEMISC_DITHER_12_BPC (3 << 5) +/* +* For Display < 13, Bits 5-7 of PIPE MISC represent DITHER BPC. +* ADLP+, the bits 5-7 represent PORT OUTPUT BPC with valid values of: +* 6, 8, 10, 12 BPC. +*/ +#define PIPEMISC_BPC_MASK (7 << 5) +#define PIPEMISC_8_BPC (0 << 5) +#define PIPEMISC_10_BPC (1 << 5) +#define PIPEMISC_6_BPC (2 << 5) +#define PIPEMISC_12_BPC (4 << 5)/* adlp+ */ #define PIPEMISC_DITHER_ENABLE (1 << 4)#define PIPEMISC_DITHER_TYPE_MASK (3 << 2)#define PIPEMISC_DITHER_TYPE_SP (0 << 2)
Signature · 1 line
2.8.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
== Series Details ==
== Series Details ==
Series: drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
URL : https://patchwork.freedesktop.org/series/93306/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip fee101cc5424 drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg -:10: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #10: Dithering BPC, with valid values of 6, 8, 10 BPC, with Dithering bit enabled.
total: 0 errors, 1 warnings, 0 checks, 60 lines checked
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
In reply to Nautiyal, Ankit K== Series Details ==
== Series Details ==
Series: drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
URL : https://patchwork.freedesktop.org/series/93306/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10437 -> Patchwork_20759
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/index.html
Known issues
------------
Here are the changes found in Patchwork_20759 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_basic@semaphore:
- fi-bsw-nick: NOTRUN -> [SKIP][1] ([fdo#109271]) +17 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/fi-bsw-nick/igt@amdgpu/[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [PASS][2] -> [FAIL][3] ([i915#1372])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/fi-kbl-7500u/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/fi-kbl-7500u/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@execlists:
- fi-bsw-nick: [INCOMPLETE][4] ([i915#2782] / [i915#2940]) -> [PASS][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/fi-bsw-nick/igt@i915_selftest@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/fi-bsw-nick/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@hangcheck:
- {fi-hsw-gt1}: [DMESG-WARN][6] ([i915#3303]) -> [PASS][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/fi-hsw-gt1/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/fi-hsw-gt1/igt@i915_selftest@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1372]: https://gitlab.freedesktop.org/drm/intel/issues/1372
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
Participating hosts (37 -> 33)
------------------------------
Missing (4): fi-bdw-samus fi-bsw-cyan bat-jsl-1 fi-hsw-4200u
Build changes
-------------
* Linux: CI_DRM_10437 -> Patchwork_20759
CI-20190529: 20190529
CI_DRM_10437: fe234200649024b4fb5164d99eca74d62ae696d4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6159: 6135b9cc319ed965e3aafb5b2ae2abf4762a06b2 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_20759: fee101cc54244bb229d19fe4763546f0ec319242 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
fee101cc5424 drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
In reply to Nautiyal, Ankit K== Series Details ==
== Series Details ==
Series: drm/i915/display: Fix the 12 BPC bits for PIPE_MISC reg
URL : https://patchwork.freedesktop.org/series/93306/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10437_full -> Patchwork_20759_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_20759_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_create@create-clear:
- shard-glk: [PASS][1] -> [FAIL][2] ([i915#1888] / [i915#3160])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-glk5/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-glk5/igt@[email protected]
* igt@gem_ctx_persistence@legacy-engines-hang@render:
- shard-kbl: [PASS][3] -> [FAIL][4] ([i915#2410])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-kbl7/igt@gem_ctx_persistence@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-kbl4/igt@gem_ctx_persistence@[email protected]
- shard-tglb: [PASS][5] -> [FAIL][6] ([i915#2410]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-tglb3/igt@gem_ctx_persistence@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb6/igt@gem_ctx_persistence@[email protected]
* igt@gem_ctx_persistence@legacy-engines-mixed-process:
- shard-snb: NOTRUN -> [SKIP][7] ([fdo#109271] / [i915#1099]) +6 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-snb5/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-tglb: [PASS][8] -> [TIMEOUT][9] ([i915#2369] / [i915#3063] / [i915#3648])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-tglb8/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb5/igt@[email protected]
- shard-snb: NOTRUN -> [FAIL][10] ([i915#3354])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-snb6/igt@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-kbl: [PASS][11] -> [FAIL][12] ([i915#2842])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-kbl2/igt@gem_exec_fair@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-kbl6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@bcs0:
- shard-tglb: [PASS][13] -> [FAIL][14] ([i915#2842]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-tglb1/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: [PASS][15] -> [FAIL][16] ([i915#2842])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-glk7/igt@gem_exec_fair@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_flush@basic-batch-kernel-default-cmd:
- shard-snb: NOTRUN -> [SKIP][17] ([fdo#109271]) +461 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-snb6/igt@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-tglb: [PASS][18] -> [SKIP][19] ([i915#2190])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-tglb3/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb6/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][20] ([fdo#109271] / [i915#2190])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl7/igt@[email protected]
* igt@gem_pread@exhaustion:
- shard-snb: NOTRUN -> [WARN][21] ([i915#2658])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-snb6/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-unsync:
- shard-iclb: NOTRUN -> [SKIP][22] ([i915#3297])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb7/igt@[email protected]
* igt@gem_userptr_blits@input-checking:
- shard-apl: NOTRUN -> [DMESG-WARN][23] ([i915#3002])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl2/igt@[email protected]
- shard-snb: NOTRUN -> [DMESG-WARN][24] ([i915#3002])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-snb6/igt@[email protected]
* igt@gem_workarounds@suspend-resume-context:
- shard-kbl: NOTRUN -> [DMESG-WARN][25] ([i915#180])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-kbl4/igt@[email protected]
* igt@gem_workarounds@suspend-resume-fd:
- shard-apl: NOTRUN -> [DMESG-WARN][26] ([i915#180])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl2/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-iclb: NOTRUN -> [SKIP][27] ([i915#2856])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb7/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-skl: NOTRUN -> [SKIP][28] ([fdo#109271] / [i915#3777])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl4/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip:
- shard-apl: NOTRUN -> [SKIP][29] ([fdo#109271] / [i915#3777]) +3 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl2/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-kbl: NOTRUN -> [SKIP][30] ([fdo#109271]) +28 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-kbl3/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
* igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][31] ([i915#3689]) +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb7/igt@kms_ccs@pipe-b-crc-primary-rotation-180-y_tiled_gen12_mc_ccs.html
* igt@kms_chamelium@hdmi-hpd-with-enabled-mode:
- shard-kbl: NOTRUN -> [SKIP][32] ([fdo#109271] / [fdo#111827]) +3 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-kbl3/igt@[email protected]
* igt@kms_color@pipe-a-ctm-max:
- shard-skl: [PASS][33] -> [DMESG-WARN][34] ([i915#1982]) +3 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-skl3/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl5/igt@[email protected]
* igt@kms_color@pipe-d-ctm-0-5:
- shard-skl: NOTRUN -> [SKIP][35] ([fdo#109271]) +111 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl4/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-limited-range:
- shard-apl: NOTRUN -> [SKIP][36] ([fdo#109271] / [fdo#111827]) +21 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl8/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-max:
- shard-skl: NOTRUN -> [SKIP][37] ([fdo#109271] / [fdo#111827]) +10 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl5/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-negative:
- shard-snb: NOTRUN -> [SKIP][38] ([fdo#109271] / [fdo#111827]) +22 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-snb6/igt@[email protected]
* igt@kms_color_chamelium@pipe-c-gamma:
- shard-iclb: NOTRUN -> [SKIP][39] ([fdo#109284] / [fdo#111827])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb7/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][40] ([fdo#109284] / [fdo#111827])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb7/igt@[email protected]
* igt@kms_content_protection@legacy:
- shard-tglb: NOTRUN -> [SKIP][41] ([fdo#111828])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb1/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][42] ([i915#1319]) +1 similar issue
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl2/igt@[email protected]
* igt@kms_content_protection@uevent:
- shard-apl: NOTRUN -> [FAIL][43] ([i915#2105])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl7/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-kbl: [PASS][44] -> [DMESG-WARN][45] ([i915#180]) +6 similar issues
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-kbl4/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-kbl7/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-256x256-rapid-movement:
- shard-iclb: NOTRUN -> [SKIP][46] ([fdo#109278]) +3 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb7/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: NOTRUN -> [FAIL][47] ([i915#2346] / [i915#533])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_draw_crc@draw-method-rgb565-mmap-cpu-ytiled:
- shard-skl: [PASS][48] -> [FAIL][49] ([i915#3451])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-skl9/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl7/igt@[email protected]
* igt@kms_flip@2x-dpms-vs-vblank-race-interruptible:
- shard-iclb: NOTRUN -> [SKIP][50] ([fdo#109274])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb7/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@c-edp1:
- shard-skl: NOTRUN -> [FAIL][51] ([i915#79])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl4/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible@b-edp1:
- shard-skl: NOTRUN -> [FAIL][52] ([i915#2122]) +1 similar issue
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl3/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs:
- shard-skl: NOTRUN -> [INCOMPLETE][53] ([i915#3699])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl4/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-tglb: NOTRUN -> [SKIP][54] ([i915#2587])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-pgflip-blt:
- shard-tglb: NOTRUN -> [SKIP][55] ([fdo#111825]) +3 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb1/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-rte:
- shard-iclb: NOTRUN -> [SKIP][56] ([fdo#109280]) +2 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb7/igt@[email protected]
* igt@kms_pipe_crc_basic@read-crc-pipe-d:
- shard-apl: NOTRUN -> [SKIP][57] ([fdo#109271] / [i915#533]) +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][58] ([fdo#108145] / [i915#265]) +3 similar issues
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][59] ([i915#265])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl7/igt@[email protected]
- shard-skl: NOTRUN -> [FAIL][60] ([i915#265])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl4/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [PASS][61] -> [FAIL][62] ([fdo#108145] / [i915#265]) +1 similar issue
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-skl6/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl1/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-4:
- shard-apl: NOTRUN -> [SKIP][63] ([fdo#109271] / [i915#658]) +6 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl1/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4:
- shard-skl: NOTRUN -> [SKIP][64] ([fdo#109271] / [i915#658]) +1 similar issue
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl7/igt@[email protected]
- shard-kbl: NOTRUN -> [SKIP][65] ([fdo#109271] / [i915#658])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-kbl3/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_gtt:
- shard-iclb: [PASS][66] -> [SKIP][67] ([fdo#109441])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-iclb2/igt@kms_psr@psr2_primary_mmap_gtt.html
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb7/igt@kms_psr@psr2_primary_mmap_gtt.html
* igt@kms_vblank@pipe-d-ts-continuation-idle:
- shard-apl: NOTRUN -> [SKIP][68] ([fdo#109271]) +316 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl7/igt@[email protected]
* igt@kms_writeback@writeback-invalid-parameters:
- shard-apl: NOTRUN -> [SKIP][69] ([fdo#109271] / [i915#2437]) +1 similar issue
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl3/igt@[email protected]
* igt@nouveau_crc@pipe-a-ctx-flip-skip-current-frame:
- shard-tglb: NOTRUN -> [SKIP][70] ([i915#2530])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][71] ([i915#2530])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb7/igt@[email protected]
* igt@perf@polling-parameterized:
- shard-glk: [PASS][72] -> [FAIL][73] ([i915#1542])
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-glk7/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-glk5/igt@[email protected]
* igt@perf_pmu@rc6-suspend:
- shard-apl: [PASS][74] -> [DMESG-WARN][75] ([i915#180])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-apl8/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl6/igt@[email protected]
* igt@sysfs_clients@recycle-many:
- shard-apl: NOTRUN -> [SKIP][76] ([fdo#109271] / [i915#2994]) +3 similar issues
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl3/igt@[email protected]
* igt@sysfs_clients@split-10:
- shard-skl: NOTRUN -> [SKIP][77] ([fdo#109271] / [i915#2994])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl2/igt@[email protected]
#### Possible fixes ####
* igt@fbdev@write:
- {shard-rkl}: [SKIP][78] ([i915#2582]) -> [PASS][79]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-1/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@gem_ctx_isolation@preservation-s3@rcs0:
- shard-apl: [DMESG-WARN][80] ([i915#180]) -> [PASS][81] +2 similar issues
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-apl1/igt@gem_ctx_isolation@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-apl3/igt@gem_ctx_isolation@[email protected]
* igt@gem_ctx_persistence@legacy-engines-hang@render:
- shard-iclb: [FAIL][82] ([i915#2410]) -> [PASS][83]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-iclb6/igt@gem_ctx_persistence@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb5/igt@gem_ctx_persistence@[email protected]
* igt@gem_ctx_persistence@many-contexts:
- {shard-rkl}: [FAIL][84] ([i915#2410]) -> [PASS][85]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-5/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][86] ([i915#2842]) -> [PASS][87]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-glk5/igt@gem_exec_fair@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-glk7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace@rcs0:
- {shard-rkl}: [FAIL][88] ([i915#2842]) -> [PASS][89] +1 similar issue
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-1/igt@gem_exec_fair@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [FAIL][90] ([i915#2849]) -> [PASS][91]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-iclb4/igt@gem_exec_fair@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb2/igt@gem_exec_fair@[email protected]
* igt@gem_exec_whisper@basic-queues-forked:
- shard-iclb: [INCOMPLETE][92] ([i915#1895] / [i915#2405]) -> [PASS][93]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-iclb2/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb7/igt@[email protected]
* igt@gem_workarounds@suspend-resume:
- shard-skl: [INCOMPLETE][94] ([i915#146] / [i915#198]) -> [PASS][95]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-skl7/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl7/igt@[email protected]
* igt@kms_big_fb@linear-16bpp-rotate-180:
- {shard-rkl}: [SKIP][96] ([i915#3638]) -> [PASS][97] +5 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-1/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@x-tiled-32bpp-rotate-0:
- shard-glk: [DMESG-WARN][98] ([i915#118] / [i915#95]) -> [PASS][99]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-glk5/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-glk5/igt@[email protected]
* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-async-flip:
- {shard-rkl}: [SKIP][100] ([i915#3721]) -> [PASS][101] +3 similar issues
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-5/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
- {shard-rkl}: [FAIL][102] ([i915#3678]) -> [PASS][103] +7 similar issues
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-5/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_color@pipe-a-ctm-0-25:
- shard-skl: [DMESG-WARN][104] ([i915#1982]) -> [PASS][105]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-skl8/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl10/igt@[email protected]
* igt@kms_color@pipe-c-ctm-max:
- {shard-rkl}: [SKIP][106] ([i915#1149] / [i915#1849]) -> [PASS][107] +4 similar issues
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-1/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-256x256-rapid-movement:
- {shard-rkl}: [SKIP][108] ([fdo#112022]) -> [PASS][109] +14 similar issues
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-5/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipa-atomic:
- {shard-rkl}: [SKIP][110] ([fdo#111825]) -> [PASS][111] +4 similar issues
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-1/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb2101010-mmap-gtt-ytiled:
- {shard-rkl}: [SKIP][112] ([fdo#111314]) -> [PASS][113] +5 similar issues
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-5/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank-interruptible@bc-hdmi-a1-hdmi-a2:
- shard-glk: [FAIL][114] ([i915#79]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-glk6/igt@kms_flip@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-glk6/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-edp1:
- shard-tglb: [FAIL][116] ([i915#79]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-tglb1/igt@kms_flip@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-tglb1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
- shard-kbl: [DMESG-WARN][118] ([i915#180]) -> [PASS][119] +2 similar issues
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-kbl6/igt@kms_flip@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-kbl3/igt@kms_flip@[email protected]
* igt@kms_hdr@bpc-switch:
- shard-skl: [FAIL][120] ([i915#1188]) -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-skl10/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl8/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-b:
- {shard-rkl}: [SKIP][122] ([i915#1849]) -> [PASS][123] +43 similar issues
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-5/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@kms_plane@pixel-format@pipe-a-planes:
- {shard-rkl}: [SKIP][124] ([i915#3558]) -> [PASS][125] +1 similar issue
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-5/igt@kms_plane@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@kms_plane@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [FAIL][126] ([fdo#108145] / [i915#265]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-skl7/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl8/igt@[email protected]
* igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
- {shard-rkl}: [SKIP][128] ([i915#1849] / [i915#3558]) -> [PASS][129]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-5/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [SKIP][130] ([fdo#109642] / [fdo#111068] / [i915#658]) -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-iclb4/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb2/igt@[email protected]
* igt@kms_psr@cursor_mmap_gtt:
- {shard-rkl}: [SKIP][132] ([i915#1072]) -> [PASS][133] +4 similar issues
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-1/igt@kms_psr@cursor_mmap_gtt.html
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@kms_psr@cursor_mmap_gtt.html
* igt@kms_psr@psr2_sprite_blt:
- shard-iclb: [SKIP][134] ([fdo#109441]) -> [PASS][135]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-iclb7/igt@kms_psr@psr2_sprite_blt.html
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb2/igt@kms_psr@psr2_sprite_blt.html
* igt@kms_sequence@get-forked-busy:
- {shard-rkl}: [SKIP][136] ([i915#1845]) -> [PASS][137] +20 similar issues
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-rkl-5/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-rkl-6/igt@[email protected]
* igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend:
- shard-skl: [INCOMPLETE][138] ([i915#198]) -> [PASS][139]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-skl10/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl8/igt@[email protected]
* igt@perf_pmu@rc6-suspend:
- shard-skl: [INCOMPLETE][140] ([i915#146] / [i915#198] / [i915#2910]) -> [PASS][141]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-skl3/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-skl5/igt@[email protected]
#### Warnings ####
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][142] ([i915#2684]) -> [WARN][143] ([i915#1804] / [i915#2684])
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-iclb2/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb7/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][144] ([i915#1804] / [i915#2684]) -> [WARN][145] ([i915#2684])
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10437/shard-iclb7/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/shard-iclb2/igt@i915_pm_rc6_resid
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20759/index.html
Quoted 60 lines
-----Original Message-----
From: Nautiyal, Ankit K <[email protected]>
Sent: Monday, August 2, 2021 6:27 PM
To: [email protected]
Cc: Shankar, Uma <[email protected]>; Zanoni, Paulo R <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; Vivi, Rodrigo <[email protected]>; [email protected]
Subject: [PATCH v2] drm/i915/display: Fix the 12 BPC bits forPIPE_MISCregFrom: Ankit Nautiyal <[email protected]>
Till DISPLAY12 the
PIPE_MISCbits 5-7 are used to set the Dithering BPC, with valid values of 6, 8, 10 BPC, with Dithering bit enabled.
Also, these bits are used in case of HW readout forpipe_bppin case of DSI. 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:
(quoted diff) +0
-2-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 bpcand port output bpc.
v2: Addressed the comments and suggestions from Uma Shankar:
(quoted diff) +0
-3-Add 'display' in subject -Add Fixes tag in the commit message. -Take care of DSI case which uses the bits for getting pipe_bpp.Fixes 756f85cffef2 ("drm/i915/bdw: Broadwell has PIPEMISC")Cc Paulo Zanoni <[email protected]> (v1)Cc Ville Syrjälä <[email protected]>Cc Daniel Vetter <[email protected]>Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc <[email protected]> # v3.13+Signed-off-by Ankit Nautiyal <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 18 +++++++++--------- drivers/gpu/drm/i915/i915_reg.h | 15 ++++++++++----- 2 files changed, 19 insertions(+), 14 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -5760,16 +5760,16 @@ static void bdw_set_pipemisc(const struct intel_crtc_state *crtc_state)switch (crtc_state->pipe_bpp) {case 18 : - val |=PIPEMISC_DITHER_6_BPC ; + val |=PIPEMISC_6_BPC ;break ;case 24 :
drivers/gpu/drm/i915/display/intel_display.c static void bdw_set_pipemisc(const struct · line 5773
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +3
-3- val |=PIPEMISC_DITHER_8_BPC ; + val |=PIPEMISC_8_BPC ;break ;case 30 : - val |=PIPEMISC_DITHER_10_BPC ; + val |=PIPEMISC_10_BPC ;break ;case 36 : - val |=PIPEMISC_DITHER_12_BPC ; + val |=PIPEMISC_12_BPC ;
Isn't this bit not supported on prior to Gen13 platforms, so from that perspective it's an Invalid operation. Can you confirm.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_display.c +0
-0break ;default :drivers/gpu/drm/i915/display/intel_display.c +2
-2MISSING_CASE (crtc_state->pipe_bpp);@@ -5822,14 +5822,14 @@ int bdw_get_pipemisc_bpp(struct intel_crtc *crtc) tmp =intel_de_read (dev_priv,PIPEMISC (crtc->pipe)); -switch (tmp &PIPEMISC_DITHER_BPC_MASK ) { -case PIPEMISC_DITHER_6_BPC : +switch (tmp &PIPEMISC_BPC_MASK ) { +case PIPEMISC_6_BPC :
drivers/gpu/drm/i915/display/intel_display.c int bdw_get_pipemisc_bpp(struct intel_crtc *crtc) · line 5833
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +3
-3return 18 ; -case PIPEMISC_DITHER_8_BPC : +case PIPEMISC_8_BPC :return 24 ; -case PIPEMISC_DITHER_10_BPC : +case PIPEMISC_10_BPC :return 30 ; -case PIPEMISC_DITHER_12_BPC : +case PIPEMISC_12_BPC :return 36 ;
Same here.
Quoted 30 lines
drivers/gpu/drm/i915/display/intel_display.c +0
-0default :MISSING_CASE (tmp);drivers/gpu/drm/i915/i915_reg.h +10
-6@@ -6166,11 +6166,16 @@ enum {#define PIPEMISC_HDR_MODE_PRECISION (1 << 23)/* icl+ */ #define PIPEMISC_OUTPUT_COLORSPACE_YUV (1 << 11)#define PIPEMISC_PIXEL_ROUNDING_TRUNC REG_BIT(8)/* tgl+ */ -#define PIPEMISC_DITHER_BPC_MASK (7 << 5) -#define PIPEMISC_DITHER_8_BPC (0 << 5) -#define PIPEMISC_DITHER_10_BPC (1 << 5) -#define PIPEMISC_DITHER_6_BPC (2 << 5) -#define PIPEMISC_DITHER_12_BPC (3 << 5) +/* +* For Display < 13, Bits 5-7 of PIPE MISC represent DITHER BPC. +* ADLP+, the bits 5-7 represent PORT OUTPUT BPC with valid values of: +* 6, 8, 10, 12 BPC. +*/ +#define PIPEMISC_BPC_MASK (7 << 5) +#define PIPEMISC_8_BPC (0 << 5) +#define PIPEMISC_10_BPC (1 << 5) +#define PIPEMISC_6_BPC (2 << 5) +#define PIPEMISC_12_BPC (4 << 5)/* adlp+ */ #define PIPEMISC_DITHER_ENABLE (1 << 4)#define PIPEMISC_DITHER_TYPE_MASK (3 << 2)#define PIPEMISC_DITHER_TYPE_SP (0 << 2) --2.8.1