drm/i915: Populate pipe_offsets[] & co. accurately
Subsystems (2)
PATCH 1/1 drm/i915: Populate pipe_offsets[] & co. accurately
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
--- drivers/gpu/drm/i915/i915_pci.c | 146 +++++++++++++++++++++++--------- 1 file changed, 104 insertions(+), 42 deletions(-)
drivers/gpu/drm/i915/i915_pci.c +104 -42
@@ -35,7 +35,37 @@#define PLATFORM (x) .platform = (x), .platform_mask = BIT(x)#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1) -#define GEN_DEFAULT_PIPEOFFSETS \ +#define I845_PIPE_OFFSETS \ + .pipe_offsets = { \ + [TRANSCODER_A] = PIPE_A_OFFSET, \ + }, \ + .trans_offsets = { \ + [TRANSCODER_A] = TRANSCODER_A_OFFSET, \ + } + +#define I9XX_PIPE_OFFSETS \ + .pipe_offsets = { \ + [TRANSCODER_A] = PIPE_A_OFFSET, \ + [TRANSCODER_B] = PIPE_B_OFFSET, \ + }, \ + .trans_offsets = { \ + [TRANSCODER_A] = TRANSCODER_A_OFFSET, \ + [TRANSCODER_B] = TRANSCODER_B_OFFSET, \ + } + +#define IVB_PIPE_OFFSETS \ + .pipe_offsets = { \ + [TRANSCODER_A] = PIPE_A_OFFSET, \ + [TRANSCODER_B] = PIPE_B_OFFSET, \ + [TRANSCODER_C] = PIPE_C_OFFSET, \ + }, \ + .trans_offsets = { \ + [TRANSCODER_A] = TRANSCODER_A_OFFSET, \ + [TRANSCODER_B] = TRANSCODER_B_OFFSET, \ + [TRANSCODER_C] = TRANSCODER_C_OFFSET, \ + } + +#define HSW_PIPE_OFFSETS \ .pipe_offsets = { \ [TRANSCODER_A] = PIPE_A_OFFSET, \ [TRANSCODER_B] = PIPE_B_OFFSET, \
@@ -49,7 +79,7 @@ [TRANSCODER_EDP] = TRANSCODER_EDP_OFFSET, \ } -#define GEN_CHV_PIPEOFFSETS \ +#define CHV_PIPE_OFFSETS \ .pipe_offsets = { \ [TRANSCODER_A] = PIPE_A_OFFSET, \ [TRANSCODER_B] = PIPE_B_OFFSET, \
@@ -61,11 +91,30 @@ [TRANSCODER_C] = CHV_TRANSCODER_C_OFFSET, \ } -#define CURSOR_OFFSETS \ - .cursor_offsets = { CURSOR_A_OFFSET, CURSOR_B_OFFSET, CHV_CURSOR_C_OFFSET } +#define I845_CURSOR_OFFSETS \ + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + } + +#define I9XX_CURSOR_OFFSETS \ + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + [PIPE_B] = CURSOR_B_OFFSET, \ + } + +#define CHV_CURSOR_OFFSETS \ + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + [PIPE_B] = CURSOR_B_OFFSET, \ + [PIPE_C] = CHV_CURSOR_C_OFFSET, \ + }#define IVB_CURSOR_OFFSETS \ - .cursor_offsets = { CURSOR_A_OFFSET, IVB_CURSOR_B_OFFSET, IVB_CURSOR_C_OFFSET } + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + [PIPE_B] = IVB_CURSOR_B_OFFSET, \ + [PIPE_C] = IVB_CURSOR_C_OFFSET, \ + }#define BDW_COLORS \ .color = { .degamma_lut_size = 512, .gamma_lut_size = 512 }
@@ -85,7 +134,25 @@#define GEN_DEFAULT_PAGE_SIZES \ .page_sizes = I915_GTT_PAGE_SIZE_4K -#define GEN2_FEATURES \ +#define I830_FEATURES \ + GEN(2), \ + .is_mobile = 1, \ + .num_pipes = 2, \ + .display.has_overlay = 1, \ + .display.cursor_needs_physical = 1, \ + .display.overlay_needs_physical = 1, \ + .display.has_gmch = 1, \ + .gpu_reset_clobbers_display = true, \ + .hws_needs_physical = 1, \ + .unfenced_needs_alignment = 1, \ + .engine_mask = BIT(RCS0), \ + .has_snoop = true, \ + .has_coherent_ggtt = false, \ + I9XX_PIPE_OFFSETS, \ + I9XX_CURSOR_OFFSETS, \ + GEN_DEFAULT_PAGE_SIZES + +#define I845_FEATURES \ GEN(2), \ .num_pipes = 1, \ .display.has_overlay = 1, \
@@ -97,34 +164,28 @@ .engine_mask = BIT(RCS0), \ .has_snoop = true, \ .has_coherent_ggtt = false, \ - GEN_DEFAULT_PIPEOFFSETS, \ - GEN_DEFAULT_PAGE_SIZES, \ - CURSOR_OFFSETS + I845_PIPE_OFFSETS, \ + I845_CURSOR_OFFSETS, \ + GEN_DEFAULT_PAGE_SIZES static const struct intel_device_info intel_i830_info = { -GEN2_FEATURES , +I830_FEATURES ,PLATFORM (INTEL_I830 ), - .is_mobile =1 , - .display.cursor_needs_physical =1 , - .num_pipes =2 ,/* legal, last one wins */ };static const struct intel_device_info intel_i845g_info = { -GEN2_FEATURES , +I845_FEATURES ,PLATFORM (INTEL_I845G ), };static const struct intel_device_info intel_i85x_info = { -GEN2_FEATURES , +I830_FEATURES ,PLATFORM (INTEL_I85X ), - .is_mobile =1 , - .num_pipes =2 ,/* legal, last one wins */ - .display.cursor_needs_physical =1 , .display.has_fbc =1 , };static const struct intel_device_info intel_i865g_info = { -GEN2_FEATURES , +I845_FEATURES ,PLATFORM (INTEL_I865G ), };
@@ -136,9 +197,9 @@ static const struct intel_device_info intel_i865g_info = { .engine_mask = BIT(RCS0), \ .has_snoop = true, \ .has_coherent_ggtt = true, \ - GEN_DEFAULT_PIPEOFFSETS, \ - GEN_DEFAULT_PAGE_SIZES, \ - CURSOR_OFFSETS + I9XX_PIPE_OFFSETS, \ + I9XX_CURSOR_OFFSETS, \ + GEN_DEFAULT_PAGE_SIZES static const struct intel_device_info intel_i915g_info = {GEN3_FEATURES ,
@@ -213,9 +274,9 @@ static const struct intel_device_info intel_pineview_info = { .engine_mask = BIT(RCS0), \ .has_snoop = true, \ .has_coherent_ggtt = true, \ - GEN_DEFAULT_PIPEOFFSETS, \ - GEN_DEFAULT_PAGE_SIZES, \ - CURSOR_OFFSETS + I9XX_PIPE_OFFSETS, \ + I9XX_CURSOR_OFFSETS, \ + GEN_DEFAULT_PAGE_SIZES static const struct intel_device_info intel_i965g_info = {GEN4_FEATURES ,
@@ -262,9 +323,9 @@ static const struct intel_device_info intel_gm45_info = { .has_coherent_ggtt = true, \ /* ilk does support rc6, but we do not implement [power] contexts */ \ .has_rc6 = 0, \ - GEN_DEFAULT_PIPEOFFSETS, \ - GEN_DEFAULT_PAGE_SIZES, \ - CURSOR_OFFSETS + I9XX_PIPE_OFFSETS, \ + I9XX_CURSOR_OFFSETS, \ + GEN_DEFAULT_PAGE_SIZES static const struct intel_device_info intel_ironlake_d_info = {GEN5_FEATURES ,
@@ -289,9 +350,9 @@ static const struct intel_device_info intel_ironlake_m_info = { .has_rc6 = 1, \ .has_rc6p = 1, \ .ppgtt =INTEL_PPGTT_ALIASING , \ -GEN_DEFAULT_PIPEOFFSETS , \ -GEN_DEFAULT_PAGE_SIZES , \ - CURSOR_OFFSETS +I9XX_PIPE_OFFSETS , \ +I9XX_CURSOR_OFFSETS , \ + GEN_DEFAULT_PAGE_SIZES#define SNB_D_PLATFORM \ GEN6_FEATURES, \
@@ -334,9 +395,9 @@ static const struct intel_device_info intel_sandybridge_m_gt2_info = { .has_rc6 = 1, \ .has_rc6p = 1, \ .ppgtt =INTEL_PPGTT_FULL , \ -GEN_DEFAULT_PIPEOFFSETS , \ -GEN_DEFAULT_PAGE_SIZES , \ - IVB_CURSOR_OFFSETS +IVB_PIPE_OFFSETS , \ +IVB_CURSOR_OFFSETS , \ + GEN_DEFAULT_PAGE_SIZES#define IVB_D_PLATFORM \ GEN7_FEATURES, \
@@ -391,9 +452,9 @@ static const struct intel_device_info intel_valleyview_info = { .has_coherent_ggtt = false, .engine_mask = BIT(RCS0) | BIT(VCS0) | BIT(BCS0), .display_mmio_offset =VLV_DISPLAY_BASE , +I9XX_PIPE_OFFSETS , +I9XX_CURSOR_OFFSETS , GEN_DEFAULT_PAGE_SIZES, -GEN_DEFAULT_PIPEOFFSETS , - CURSOR_OFFSETS };#define G75_FEATURES \
@@ -404,6 +465,7 @@ static const struct intel_device_info intel_valleyview_info = { .display.has_psr = 1, \ .display.has_dp_mst = 1, \ .has_rc6p =0 /* RC6p removed-by HSW */ , \ +HSW_PIPE_OFFSETS , \ .has_runtime_pm = 1#define HSW_PLATFORM \
@@ -483,10 +545,10 @@ static const struct intel_device_info intel_cherryview_info = { .has_snoop = true, .has_coherent_ggtt = false, .display_mmio_offset =VLV_DISPLAY_BASE , -GEN_DEFAULT_PAGE_SIZES , -GEN_CHV_PIPEOFFSETS , -CURSOR_OFFSETS , +CHV_PIPE_OFFSETS , +CHV_CURSOR_OFFSETS ,CHV_COLORS , + GEN_DEFAULT_PAGE_SIZES, };#define GEN9_DEFAULT_PAGE_SIZES \
@@ -559,10 +621,10 @@ static const struct intel_device_info intel_skylake_gt4_info = { .has_snoop = true, \ .has_coherent_ggtt = false, \ .display.has_ipc = 1, \ -GEN9_DEFAULT_PAGE_SIZES , \ -GEN_DEFAULT_PIPEOFFSETS , \ + HSW_PIPE_OFFSETS, \ IVB_CURSOR_OFFSETS, \ - BDW_COLORS + BDW_COLORS, \ + GEN9_DEFAULT_PAGE_SIZES static const struct intel_device_info intel_broxton_info = {GEN9_LP_FEATURES ,
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Populate pipe_offsets[] & co. accurately
== Series Details ==
== Series Details ==
Series: drm/i915: Populate pipe_offsets[] & co. accurately
URL : https://patchwork.freedesktop.org/series/57600/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5708 -> Patchwork_12378
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/57600/revisions/1/mbox/
Known issues
------------
Here are the changes found in Patchwork_12378 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: PASS -> INCOMPLETE [fdo#107718]
* igt@i915_module_load@reload-with-fault-injection:
- fi-kbl-7567u: PASS -> DMESG-WARN [fdo#103558] / [fdo#105602] / [fdo#108529] +1
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-bsw-kefka: PASS -> SKIP [fdo#109271]
* igt@i915_pm_rpm@basic-rte:
- fi-bsw-kefka: PASS -> FAIL [fdo#108800]
* igt@i915_selftest@live_execlists:
- fi-apl-guc: PASS -> INCOMPLETE [fdo#103927] / [fdo#109720]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- fi-byt-clapper: PASS -> FAIL [fdo#103191] / [fdo#107362] +2
* igt@runner@aborted:
- fi-kbl-7567u: NOTRUN -> FAIL [fdo#105602]
- fi-apl-guc: NOTRUN -> FAIL [fdo#108622] / [fdo#109720]
#### Possible fixes ####
* igt@gem_mmap@basic-small-bo:
- {fi-icl-y}: DMESG-WARN -> PASS
* igt@i915_pm_rpm@module-reload:
- fi-kbl-7560u: CRASH -> PASS
* igt@kms_busy@basic-flip-a:
- fi-gdg-551: FAIL [fdo#103182] -> PASS
* igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence:
- fi-byt-clapper: FAIL [fdo#103191] / [fdo#107362] -> PASS
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103182]: https://bugs.freedesktop.org/show_bug.cgi?id=103182
[fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
[fdo#103558]: https://bugs.freedesktop.org/show_bug.cgi?id=103558
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#107362]: https://bugs.freedesktop.org/show_bug.cgi?id=107362
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#108529]: https://bugs.freedesktop.org/show_bug.cgi?id=108529
[fdo#108622]: https://bugs.freedesktop.org/show_bug.cgi?id=108622
[fdo#108800]: https://bugs.freedesktop.org/show_bug.cgi?id=108800
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109720]: https://bugs.freedesktop.org/show_bug.cgi?id=109720
Participating hosts (47 -> 42)
------------------------------
Missing (5): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_5708 -> Patchwork_12378
CI_DRM_5708: afd34c5dec857362de91fb3044f09d90e83ad6a5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4871: 8feb147562ba1b364615ddacd44c3846f0250d37 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12378: b9022656feb690e6c4765c4904ac7a1a73a95b20 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
b9022656feb6 drm/i915: Populate pipe_offsets[] & co. accurately
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12378/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: Populate pipe_offsets[] & co. accurately
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Populate pipe_offsets[] & co. accurately
URL : https://patchwork.freedesktop.org/series/57600/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5708_full -> Patchwork_12378_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_12378_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_param@invalid-size-set:
- shard-apl: PASS -> INCOMPLETE [fdo#103927]
* igt@i915_pm_rpm@pm-tiling:
- shard-skl: PASS -> INCOMPLETE [fdo#107807] +1
* igt@kms_atomic_transition@3x-modeset-transitions:
- shard-snb: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +6
* igt@kms_busy@extended-modeset-hang-oldfb-with-reset-render-d:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
* igt@kms_busy@extended-pageflip-hang-newfb-render-f:
- shard-skl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +2
* igt@kms_ccs@pipe-a-crc-sprite-planes-basic:
- shard-apl: PASS -> FAIL [fdo#106510] / [fdo#108145]
* igt@kms_color@pipe-c-degamma:
- shard-apl: PASS -> FAIL [fdo#104782]
* igt@kms_cursor_crc@cursor-256x85-onscreen:
- shard-skl: NOTRUN -> FAIL [fdo#103232]
* igt@kms_cursor_crc@cursor-256x85-random:
- shard-apl: PASS -> FAIL [fdo#103232] +3
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: PASS -> FAIL [fdo#102670]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-glk: PASS -> FAIL [fdo#105363]
* igt@kms_flip_tiling@flip-yf-tiled:
- shard-skl: PASS -> FAIL [fdo#108145]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-onoff:
- shard-apl: PASS -> FAIL [fdo#103167] +1
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-draw-render:
- shard-snb: NOTRUN -> SKIP [fdo#109271] +38
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-blt:
- shard-skl: NOTRUN -> SKIP [fdo#109271] +28
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-blt:
- shard-apl: NOTRUN -> SKIP [fdo#109271] +1
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-plflip-blt:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] +15
* igt@kms_panel_fitting@legacy:
- shard-skl: NOTRUN -> FAIL [fdo#105456]
* igt@kms_plane@pixel-format-pipe-b-planes-source-clamping:
- shard-skl: NOTRUN -> DMESG-WARN [fdo#106885]
* igt@kms_plane@plane-position-covered-pipe-c-planes:
- shard-glk: PASS -> FAIL [fdo#103166] +1
* igt@kms_plane_alpha_blend@pipe-b-alpha-7efc:
- shard-skl: NOTRUN -> FAIL [fdo#107815] / [fdo#108145]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: PASS -> FAIL [fdo#107815]
* igt@kms_plane_multiple@atomic-pipe-c-tiling-yf:
- shard-apl: PASS -> FAIL [fdo#103166] +1
* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-kbl: PASS -> FAIL [fdo#109016]
* igt@kms_rotation_crc@primary-rotation-270:
- shard-skl: PASS -> FAIL [fdo#103925] / [fdo#107815]
* igt@kms_setmode@basic:
- shard-kbl: PASS -> FAIL [fdo#99912]
* igt@kms_vblank@pipe-a-ts-continuation-modeset-rpm:
- shard-apl: NOTRUN -> FAIL [fdo#104894]
* igt@tools_test@tools_test:
- shard-glk: PASS -> SKIP [fdo#109271]
#### Possible fixes ####
* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-snb: SKIP [fdo#109271] -> PASS
* igt@i915_pm_rpm@gem-execbuf-stress-extra-wait:
- shard-skl: INCOMPLETE [fdo#107803] / [fdo#107807] -> PASS
* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-b:
- shard-hsw: DMESG-WARN [fdo#107956] -> PASS
* igt@kms_chv_cursor_fail@pipe-a-256x256-bottom-edge:
- shard-skl: FAIL [fdo#104671] -> PASS
* igt@kms_cursor_crc@cursor-256x85-offscreen:
- shard-skl: FAIL [fdo#103232] -> PASS
* igt@kms_cursor_crc@cursor-64x64-sliding:
- shard-apl: FAIL [fdo#103232] -> PASS +1
* igt@kms_flip@flip-vs-expired-vblank:
- shard-skl: FAIL [fdo#105363] -> PASS
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-pwrite:
- shard-apl: FAIL [fdo#103167] -> PASS
* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-mmap-cpu:
- shard-skl: FAIL [fdo#103167] -> PASS +1
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-skl: FAIL [fdo#105682] -> PASS
* igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-mmap-wc:
- shard-skl: FAIL [fdo#103167] / [fdo#105682] -> PASS
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: FAIL [fdo#107815] / [fdo#108145] -> PASS
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-max:
- shard-apl: FAIL [fdo#108145] -> PASS
* igt@kms_rotation_crc@multiplane-rotation:
- shard-kbl: INCOMPLETE [fdo#103665] -> PASS
* igt@kms_universal_plane@universal-plane-pipe-c-functional:
- shard-apl: FAIL [fdo#103166] -> PASS
#### Warnings ####
* igt@kms_plane@pixel-format-pipe-b-planes:
- shard-skl: DMESG-FAIL [fdo#103166] / [fdo#106885] -> FAIL [fdo#103166]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102670]: https://bugs.freedesktop.org/show_bug.cgi?id=102670
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103925]: https://bugs.freedesktop.org/show_bug.cgi?id=103925
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104671]: https://bugs.freedesktop.org/show_bug.cgi?id=104671
[fdo#104782]: https://bugs.freedesktop.org/show_bug.cgi?id=104782
[fdo#104894]: https://bugs.freedesktop.org/show_bug.cgi?id=104894
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105456]: https://bugs.freedesktop.org/show_bug.cgi?id=105456
[fdo#105682]: https://bugs.freedesktop.org/show_bug.cgi?id=105682
[fdo#106510]: https://bugs.freedesktop.org/show_bug.cgi?id=106510
[fdo#106885]: https://bugs.freedesktop.org/show_bug.cgi?id=106885
[fdo#107803]: https://bugs.freedesktop.org/show_bug.cgi?id=107803
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#107815]: https://bugs.freedesktop.org/show_bug.cgi?id=107815
[fdo#107956]: https://bugs.freedesktop.org/show_bug.cgi?id=107956
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109016]: https://bugs.freedesktop.org/show_bug.cgi?id=109016
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (6 -> 6)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_5708 -> Patchwork_12378
CI_DRM_5708: afd34c5dec857362de91fb3044f09d90e83ad6a5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4871: 8feb147562ba1b364615ddacd44c3846f0250d37 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12378: b9022656feb690e6c4765c4904ac7a1a73a95b20 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12378/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Any benefits of knock on effect?
Quoted 78 lines
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_pci.c | 146 +++++++++++++++++++++++--------- 1 file changed, 104 insertions(+), 42 deletions(-)drivers/gpu/drm/i915/i915_pci.c +47
-4@@ -35,7 +35,37 @@#define PLATFORM (x) .platform = (x), .platform_mask = BIT(x)#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1) -#define GEN_DEFAULT_PIPEOFFSETS \ +#define I845_PIPE_OFFSETS \ + .pipe_offsets = { \ + [TRANSCODER_A] = PIPE_A_OFFSET, \ + }, \ + .trans_offsets = { \ + [TRANSCODER_A] = TRANSCODER_A_OFFSET, \ + } + +#define I9XX_PIPE_OFFSETS \ + .pipe_offsets = { \ + [TRANSCODER_A] = PIPE_A_OFFSET, \ + [TRANSCODER_B] = PIPE_B_OFFSET, \ + }, \ + .trans_offsets = { \ + [TRANSCODER_A] = TRANSCODER_A_OFFSET, \ + [TRANSCODER_B] = TRANSCODER_B_OFFSET, \ + } + +#define IVB_PIPE_OFFSETS \ + .pipe_offsets = { \ + [TRANSCODER_A] = PIPE_A_OFFSET, \ + [TRANSCODER_B] = PIPE_B_OFFSET, \ + [TRANSCODER_C] = PIPE_C_OFFSET, \ + }, \ + .trans_offsets = { \ + [TRANSCODER_A] = TRANSCODER_A_OFFSET, \ + [TRANSCODER_B] = TRANSCODER_B_OFFSET, \ + [TRANSCODER_C] = TRANSCODER_C_OFFSET, \ + } + +#define HSW_PIPE_OFFSETS \ .pipe_offsets = { \ [TRANSCODER_A] = PIPE_A_OFFSET, \ [TRANSCODER_B] = PIPE_B_OFFSET, \@@ -49,7 +79,7 @@ [TRANSCODER_EDP] = TRANSCODER_EDP_OFFSET, \ } -#define GEN_CHV_PIPEOFFSETS \ +#define CHV_PIPE_OFFSETS \ .pipe_offsets = { \ [TRANSCODER_A] = PIPE_A_OFFSET, \ [TRANSCODER_B] = PIPE_B_OFFSET, \@@ -61,11 +91,30 @@ [TRANSCODER_C] = CHV_TRANSCODER_C_OFFSET, \ } -#define CURSOR_OFFSETS \ - .cursor_offsets = { CURSOR_A_OFFSET, CURSOR_B_OFFSET, CHV_CURSOR_C_OFFSET } +#define I845_CURSOR_OFFSETS \ + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + } + +#define I9XX_CURSOR_OFFSETS \ + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + [PIPE_B] = CURSOR_B_OFFSET, \ + } + +#define CHV_CURSOR_OFFSETS \ + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + [PIPE_B] = CURSOR_B_OFFSET, \
drivers/gpu/drm/i915/i915_pci.c line 117
Quoted 10 lines
drivers/gpu/drm/i915/i915_pci.c +7
-1+ [PIPE_C] = CHV_CURSOR_C_OFFSET, \ + }#define IVB_CURSOR_OFFSETS \ - .cursor_offsets = { CURSOR_A_OFFSET, IVB_CURSOR_B_OFFSET, IVB_CURSOR_C_OFFSET } + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + [PIPE_B] = IVB_CURSOR_B_OFFSET, \ + [PIPE_C] = IVB_CURSOR_C_OFFSET, \ + }
Ok, those tables all match up with my understanding and rummaging.
drivers/gpu/drm/i915/i915_pci.c line 188
Quoted 3 lines
drivers/gpu/drm/i915/i915_pci.c +1
-1static const struct intel_device_info intel_i865g_info = { -GEN2_FEATURES , +I845_FEATURES ,
Hmm, 865g had dvo in addition to vga (unlike 845g) so did it have a second pipe? Though memory says dual pipe was a luxury of mobile only.
drivers/gpu/drm/i915/i915_pci.c static const struct intel_device_info intel_valleyview_info = {
Quoted 4 lines
drivers/gpu/drm/i915/i915_pci.c +0
-0PLATFORM(INTEL_I865G),};
#defineG75_FEATURES\drivers/gpu/drm/i915/i915_pci.c +0
-0@@ -404,6 +465,7 @@ static const struct intel_device_info intel_valleyview_info = {
Grr.
drivers/gpu/drm/i915/i915_pci.c static const struct intel_device_info intel_valleyview_info = { · line 468
Quoted 4 lines
drivers/gpu/drm/i915/i915_pci.c +1
-0.display.has_psr = 1, \ .display.has_dp_mst = 1, \ .has_rc6p =0 /* RC6p removed-by HSW */ , \ + HSW_PIPE_OFFSETS, \
Was thinking vlv using HSW? but then realised that diff was misleading.
And the device tables look to be using the correct feature sets.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 9 lines · Chris Wilson
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Quoted 92 lines
Quoted 79 lines
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_pci.c | 146 +++++++++++++++++++++++--------- 1 file changed, 104 insertions(+), 42 deletions(-)drivers/gpu/drm/i915/i915_pci.c +47
-4@@ -35,7 +35,37 @@#define PLATFORM (x) .platform = (x), .platform_mask = BIT(x)#define GEN (x) .gen = (x), .gen_mask = BIT((x) - 1) -#define GEN_DEFAULT_PIPEOFFSETS \ +#define I845_PIPE_OFFSETS \ + .pipe_offsets = { \ + [TRANSCODER_A] = PIPE_A_OFFSET, \ + }, \ + .trans_offsets = { \ + [TRANSCODER_A] = TRANSCODER_A_OFFSET, \ + } + +#define I9XX_PIPE_OFFSETS \ + .pipe_offsets = { \ + [TRANSCODER_A] = PIPE_A_OFFSET, \ + [TRANSCODER_B] = PIPE_B_OFFSET, \ + }, \ + .trans_offsets = { \ + [TRANSCODER_A] = TRANSCODER_A_OFFSET, \ + [TRANSCODER_B] = TRANSCODER_B_OFFSET, \ + } + +#define IVB_PIPE_OFFSETS \ + .pipe_offsets = { \ + [TRANSCODER_A] = PIPE_A_OFFSET, \ + [TRANSCODER_B] = PIPE_B_OFFSET, \ + [TRANSCODER_C] = PIPE_C_OFFSET, \ + }, \ + .trans_offsets = { \ + [TRANSCODER_A] = TRANSCODER_A_OFFSET, \ + [TRANSCODER_B] = TRANSCODER_B_OFFSET, \ + [TRANSCODER_C] = TRANSCODER_C_OFFSET, \ + } + +#define HSW_PIPE_OFFSETS \ .pipe_offsets = { \ [TRANSCODER_A] = PIPE_A_OFFSET, \ [TRANSCODER_B] = PIPE_B_OFFSET, \@@ -49,7 +79,7 @@ [TRANSCODER_EDP] = TRANSCODER_EDP_OFFSET, \ } -#define GEN_CHV_PIPEOFFSETS \ +#define CHV_PIPE_OFFSETS \ .pipe_offsets = { \ [TRANSCODER_A] = PIPE_A_OFFSET, \ [TRANSCODER_B] = PIPE_B_OFFSET, \@@ -61,11 +91,30 @@ [TRANSCODER_C] = CHV_TRANSCODER_C_OFFSET, \ } -#define CURSOR_OFFSETS \ - .cursor_offsets = { CURSOR_A_OFFSET, CURSOR_B_OFFSET, CHV_CURSOR_C_OFFSET } +#define I845_CURSOR_OFFSETS \ + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + } + +#define I9XX_CURSOR_OFFSETS \ + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + [PIPE_B] = CURSOR_B_OFFSET, \ + } + +#define CHV_CURSOR_OFFSETS \ + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + [PIPE_B] = CURSOR_B_OFFSET, \drivers/gpu/drm/i915/i915_pci.c line 117
Quoted 10 lines
drivers/gpu/drm/i915/i915_pci.c +7
-1+ [PIPE_C] = CHV_CURSOR_C_OFFSET, \ + }#define IVB_CURSOR_OFFSETS \ - .cursor_offsets = { CURSOR_A_OFFSET, IVB_CURSOR_B_OFFSET, IVB_CURSOR_C_OFFSET } + .cursor_offsets = { \ + [PIPE_A] = CURSOR_A_OFFSET, \ + [PIPE_B] = IVB_CURSOR_B_OFFSET, \ + [PIPE_C] = IVB_CURSOR_C_OFFSET, \ + }Ok, those tables all match up with my understanding and rummaging.
Quoted 5 lines
drivers/gpu/drm/i915/i915_pci.c line 188
Quoted 3 lines
drivers/gpu/drm/i915/i915_pci.c +1
-1static const struct intel_device_info intel_i865g_info = { -GEN2_FEATURES , +I845_FEATURES ,Hmm, 865g had dvo in addition to vga (unlike 845g)
845g doesn't have dvo? The docs don't seem to quite agree with that. I should probably hunt one down just to complete my gen2 collection :)
Quoted 2 lines
so did it have a
second pipe? Though memory says dual pipe was a luxury of mobile only.
Yeah, single pipe only I'm afraid.
Quoted 8 lines
drivers/gpu/drm/i915/i915_pci.c static const struct intel_device_info intel_valleyview_info = {
Quoted 5 lines
drivers/gpu/drm/i915/i915_pci.c +0
-0PLATFORM(INTEL_I865G),};
#defineG75_FEATURES\drivers/gpu/drm/i915/i915_pci.c +0
-0@@ -404,6 +465,7 @@ static const struct intel_device_info intel_valleyview_info = {Grr.
Quoted 6 lines
drivers/gpu/drm/i915/i915_pci.c static const struct intel_device_info intel_valleyview_info = { · line 468
Quoted 4 lines
drivers/gpu/drm/i915/i915_pci.c +1
-0.display.has_psr = 1, \ .display.has_dp_mst = 1, \ .has_rc6p =0 /* RC6p removed-by HSW */ , \ + HSW_PIPE_OFFSETS, \Was thinking vlv using HSW? but then realised that diff was misleading.
I rather dislike these template macros for this exact reason.
Quoted 4 lines
And the device tables look to be using the correct feature sets.
Reviewed-by Chris Wilson <[email protected]>
Thanks.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Ville Syrjälä (2019-03-06 14:52:11)
Quoted 12 lines · Chris Wilson
Quoted 9 lines
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Just wondering why people are eager to make the assumption that non-existent pipes are not set. I presume its to make code neater.
i.e. why cater to their whims at all?
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Chris Wilson
Quoting Ville Syrjälä (2019-03-06 14:52:11)
Quoted 9 lines · Chris Wilson
Quoted 8 lines
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Just wondering why people are eager to make the assumption that non-existent pipes are not set. I presume its to make code neater.
i.e. why cater to their whims at all?
Yeah, I guess this was done just to avoid having convoluted platform checks all over. I've not checked the code to see if there are more places where we could simplify the existing code by adopting this approach.
However now that you forced me to think a bit I realize that this may break in the presence of fused off pipes. Not quite sure how the registers for such fused off blocks would behave. If we aren't allowed to touch those registers we'd need to move this stuff into the runtime info. That feels a bit wasteful, so as an alternative we could just add one or two bitmasks instead.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 25 lines · Ville Syrjälä
Quoted 10 lines · Chris Wilson
Quoting Ville Syrjälä (2019-03-06 14:52:11)
Quoted 9 lines · Chris Wilson
Quoted 8 lines
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Just wondering why people are eager to make the assumption that non-existent pipes are not set. I presume its to make code neater.
i.e. why cater to their whims at all?
Yeah, I guess this was done just to avoid having convoluted platform checks all over. I've not checked the code to see if there are more places where we could simplify the existing code by adopting this approach.
Quoted 8 lines
However now that you forced me to think a bit I realize that this may break in the presence of fused off pipes. Not quite sure how the registers for such fused off blocks would behave. If we aren't allowed to touch those registers we'd need to move this stuff into the runtime info. That feels a bit wasteful, so as an alternative we could just add one or two bitmasks instead.
Cc ing Lucas who seems to the main offender here...
humn.. is this about the EDP transcoder? Missing some context here. Did I miss any platform not setting trans_offsets for TRANSCODER_EDP, even if it has? glancing over the possible mistake.... chv? :-/
Lucas De Marchi
Quoted 4 lines
Signature · 3 lines
-- Ville Syrjälä Intel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 33 lines · Lucas De Marchi
Quoted 32 lines · Ville Syrjälä
Quoted 10 lines · Chris Wilson
Quoting Ville Syrjälä (2019-03-06 14:52:11)
Quoted 9 lines · Chris Wilson
Quoted 8 lines
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Just wondering why people are eager to make the assumption that non-existent pipes are not set. I presume its to make code neater.
i.e. why cater to their whims at all?
Yeah, I guess this was done just to avoid having convoluted platform checks all over. I've not checked the code to see if there are more places where we could simplify the existing code by adopting this approach.
However now that you forced me to think a bit I realize that this may break in the presence of fused off pipes. Not quite sure how the registers for such fused off blocks would behave. If we aren't allowed to touch those registers we'd need to move this stuff into the runtime info. That feels a bit wasteful, so as an alternative we could just add one or two bitmasks instead.
Quoted 5 lines
Quoted 1 line
Cc ing Lucas who seems to the main offender here...humn.. is this about the EDP transcoder? Missing some context here. Did I miss any platform not setting
trans_offsetsforTRANSCODER_EDP, even if it has? glancing over the possible mistake.... chv? :-/
Currently .trans_offsets[TRANSCODER_EDP] != 0 on _every_ platform. So using that to determine if a transcoder is present is not going to work.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 36 lines · Ville Syrjälä
Quoted 35 lines · Lucas De Marchi
Quoted 33 lines · Ville Syrjälä
Quoted 10 lines · Chris Wilson
Quoting Ville Syrjälä (2019-03-06 14:52:11)
Quoted 9 lines · Chris Wilson
Quoted 8 lines
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Just wondering why people are eager to make the assumption that non-existent pipes are not set. I presume its to make code neater.
i.e. why cater to their whims at all?
Yeah, I guess this was done just to avoid having convoluted platform checks all over. I've not checked the code to see if there are more places where we could simplify the existing code by adopting this approach.
However now that you forced me to think a bit I realize that this may break in the presence of fused off pipes. Not quite sure how the registers for such fused off blocks would behave. If we aren't allowed to touch those registers we'd need to move this stuff into the runtime info. That feels a bit wasteful, so as an alternative we could just add one or two bitmasks instead.
Cc ing Lucas who seems to the main offender here...
Quoted 7 lines
Quoted 3 lines
humn.. is this about the EDP transcoder? Missing some context here. Did I miss any platform not setting
trans_offsetsforTRANSCODER_EDP, even if it has? glancing over the possible mistake.... chv? :-/Currently .trans_offsets[TRANSCODER_EDP] != 0 on _every_ platform. So using that to determine if a transcoder is present is not going to work.
Make that "every platform excep chv".
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 36 lines · Ville Syrjälä
Quoted 35 lines · Lucas De Marchi
Quoted 33 lines · Ville Syrjälä
Quoted 10 lines · Chris Wilson
Quoting Ville Syrjälä (2019-03-06 14:52:11)
Quoted 9 lines · Chris Wilson
Quoted 8 lines
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Just wondering why people are eager to make the assumption that non-existent pipes are not set. I presume its to make code neater.
i.e. why cater to their whims at all?
Yeah, I guess this was done just to avoid having convoluted platform checks all over. I've not checked the code to see if there are more places where we could simplify the existing code by adopting this approach.
However now that you forced me to think a bit I realize that this may break in the presence of fused off pipes. Not quite sure how the registers for such fused off blocks would behave. If we aren't allowed to touch those registers we'd need to move this stuff into the runtime info. That feels a bit wasteful, so as an alternative we could just add one or two bitmasks instead.
Cc ing Lucas who seems to the main offender here...
Quoted 7 lines
Quoted 3 lines
humn.. is this about the EDP transcoder? Missing some context here. Did I miss any platform not setting
trans_offsetsforTRANSCODER_EDP, even if it has? glancing over the possible mistake.... chv? :-/Currently .trans_offsets[TRANSCODER_EDP] != 0 on _every_ platform. So using that to determine if a transcoder is present is not going to work.
So far the HAS_EDP_TRANSCODER() thing is not actually a problem as it's only called from the ddi code which guarantees that the transcoder is in fact present. But the error capture code is now very much wrong.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 41 lines · Ville Syrjälä
Quoted 40 lines · Ville Syrjälä
Quoted 38 lines · Lucas De Marchi
Quoted 25 lines · Ville Syrjälä
Quoted 10 lines · Chris Wilson
Quoting Ville Syrjälä (2019-03-06 14:52:11)
Quoted 9 lines · Chris Wilson
Quoted 8 lines
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Just wondering why people are eager to make the assumption that non-existent pipes are not set. I presume its to make code neater.
i.e. why cater to their whims at all?
Yeah, I guess this was done just to avoid having convoluted platform checks all over. I've not checked the code to see if there are more places where we could simplify the existing code by adopting this approach.
Quoted 8 lines
However now that you forced me to think a bit I realize that this may break in the presence of fused off pipes. Not quite sure how the registers for such fused off blocks would behave. If we aren't allowed to touch those registers we'd need to move this stuff into the runtime info. That feels a bit wasteful, so as an alternative we could just add one or two bitmasks instead.
Cc ing Lucas who seems to the main offender here...humn.. is this about the EDP transcoder? Missing some context here. Did I miss any platform not setting
trans_offsetsforTRANSCODER_EDP, even if it has? glancing over the possible mistake.... chv? :-/
Quoted 7 lines
Quoted 3 lines
Currently .trans_offsets[TRANSCODER_EDP] != 0 on _every_ platform. So using that to determine if a transcoder is present is not going to work.
So far the
HAS_EDP_TRANSCODER()thing is not actually a problem as it's only called from the ddi code which guarantees that the transcoder is in fact present. But the error capture code is now very much wrong.
Commit 062de72bc0c73f4b9fa8532e5a98bf609ebd08da was done in preparation for HAS_EDP_TRANSCODER to account for that.
Lucas De Marchi
Quoted 4 lines
Signature · 3 lines
-- Ville Syrjälä Intel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 34 lines · Ville Syrjälä
Quoted 33 lines · Lucas De Marchi
Quoted 32 lines · Ville Syrjälä
Quoted 10 lines · Chris Wilson
Quoting Ville Syrjälä (2019-03-06 14:52:11)
Quoted 9 lines · Chris Wilson
Quoted 8 lines
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Just wondering why people are eager to make the assumption that non-existent pipes are not set. I presume its to make code neater.
i.e. why cater to their whims at all?
Yeah, I guess this was done just to avoid having convoluted platform checks all over. I've not checked the code to see if there are more places where we could simplify the existing code by adopting this approach.
However now that you forced me to think a bit I realize that this may break in the presence of fused off pipes. Not quite sure how the registers for such fused off blocks would behave. If we aren't allowed to touch those registers we'd need to move this stuff into the runtime info. That feels a bit wasteful, so as an alternative we could just add one or two bitmasks instead.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Cc ing Lucas who seems to the main offender here...humn.. is this about the EDP transcoder? Missing some context here. Did I miss any platform not setting
trans_offsetsforTRANSCODER_EDP, even if it has? glancing over the possible mistake.... chv? :-/Currently .trans_offsets[TRANSCODER_EDP] != 0 on _every_ platform.
the commit was made to _allow_ platforms not to have the edp transcoder so we don't need to keep adding platform checks when the needs arrise.
checking now that that probably broke chv though.
Lucas De Marchi
Quoted 6 lines
So using that to determine if a transcoder is present is not going to work.
Signature · 2 lines
Ville Syrjälä Intel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 37 lines · Lucas De Marchi
Quoted 36 lines · Ville Syrjälä
Quoted 35 lines · Lucas De Marchi
Quoted 33 lines · Ville Syrjälä
Quoted 10 lines · Chris Wilson
Quoting Ville Syrjälä (2019-03-06 14:52:11)
Quoted 9 lines · Chris Wilson
Quoted 8 lines
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Just wondering why people are eager to make the assumption that non-existent pipes are not set. I presume its to make code neater.
i.e. why cater to their whims at all?
Yeah, I guess this was done just to avoid having convoluted platform checks all over. I've not checked the code to see if there are more places where we could simplify the existing code by adopting this approach.
However now that you forced me to think a bit I realize that this may break in the presence of fused off pipes. Not quite sure how the registers for such fused off blocks would behave. If we aren't allowed to touch those registers we'd need to move this stuff into the runtime info. That feels a bit wasteful, so as an alternative we could just add one or two bitmasks instead.
Cc ing Lucas who seems to the main offender here...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
humn.. is this about the EDP transcoder? Missing some context here. Did I miss any platform not setting
trans_offsetsforTRANSCODER_EDP, even if it has? glancing over the possible mistake.... chv? :-/Currently .trans_offsets[TRANSCODER_EDP] != 0 on _every_ platform.
the commit was made to _allow_ platforms not to have the edp transcoder so we don't need to keep adding platform checks when the needs arrise.
Most of the platforms don't have EDP transcoder.
Quoted 2 lines
checking now that that probably broke chv though.
No, chv is fine. All pre-hsw platforms are busted though.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 47 lines · Ville Syrjälä
Quoted 37 lines · Lucas De Marchi
Quoted 36 lines · Ville Syrjälä
Quoted 35 lines · Lucas De Marchi
Quoted 33 lines · Ville Syrjälä
Quoted 10 lines · Chris Wilson
Quoting Ville Syrjälä (2019-03-06 14:52:11)
Quoted 9 lines · Chris Wilson
Quoted 8 lines
Quoting Ville Syrjala (2019-03-05 19:29:05)
Quoted 6 lines
From: Ville Syrjälä <[email protected]>
At some point people have started to assume that pipe_offsets[] & co. are only populated for pipes and whatnot that actually exist. That is in fact not currently true, but we can easily make it so.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Any benefits of knock on effect?
What kind of knock on effect we're thinking?
Just wondering why people are eager to make the assumption that non-existent pipes are not set. I presume its to make code neater.
i.e. why cater to their whims at all?
Yeah, I guess this was done just to avoid having convoluted platform checks all over. I've not checked the code to see if there are more places where we could simplify the existing code by adopting this approach.
However now that you forced me to think a bit I realize that this may break in the presence of fused off pipes. Not quite sure how the registers for such fused off blocks would behave. If we aren't allowed to touch those registers we'd need to move this stuff into the runtime info. That feels a bit wasteful, so as an alternative we could just add one or two bitmasks instead.
Cc ing Lucas who seems to the main offender here...Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
humn.. is this about the EDP transcoder? Missing some context here. Did I miss any platform not setting
trans_offsetsforTRANSCODER_EDP, even if it has? glancing over the possible mistake.... chv? :-/Currently .trans_offsets[TRANSCODER_EDP] != 0 on _every_ platform.
the commit was made to _allow_ platforms not to have the edp transcoder so we don't need to keep adding platform checks when the needs arrise.
Quoted 6 lines
Most of the platforms don't have EDP transcoder.
Quoted 2 lines
checking now that that probably broke chv though.
No, chv is fine. All pre-hsw platforms are busted though.
I pushed the patch so at least we should be closer to the old state of things now.
Oh, and I just realized that BXT DSI is now also potentially broken. The error capture code is going to attempt to read registers which do not exist on those transcoders. Not sure if that's going to succeed or not.
In fact, wasn't there something about the clock having to be on before we can even access the DSI registers? Hmm, yes there was (look for for bxt_dsi_pll_is_enabled()), but I'm not sure if the transcoder registers were affected or not.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx