drm/i915/icl: Prepare for more rings
Subsystems (2)
From: Tvrtko Ursulin <[email protected]>
Gen11 will add more VCS and VECS rings so prepare the infrastructure to support that.
Bspec: 7021
v2: Rebase.
v3: Rebase.
v4: Rebase.
v5: Rebase.
v6:
- Update for POR changes. (Daniele Ceraolo Spurio)
- Add provisional guc engine ids - to be checked and confirmed.
v7:
- Rebased.
- Added the new ring masks.
- Added the new HW ids.
v8:
- Introduce I915_MAX_VCS/VECS to avoid magic numbers (Michal)
v9: increase MAX_ENGINE_INSTANCE to 3
--- drivers/gpu/drm/i915/i915_drv.h | 3 +++ drivers/gpu/drm/i915/i915_gem.h | 2 +- drivers/gpu/drm/i915/i915_reg.h | 5 ++++- drivers/gpu/drm/i915/intel_device_info.c | 3 +++ drivers/gpu/drm/i915/intel_device_info.h | 4 +++- drivers/gpu/drm/i915/intel_ringbuffer.h | 9 ++++++++- 6 files changed, 22 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +3 -0
@@ -2732,6 +2732,9 @@ intel_info(const struct drm_i915_private *dev_priv)#define BLT_RING ENGINE_MASK(BCS)#define VEBOX_RING ENGINE_MASK(VECS)#define BSD2_RING ENGINE_MASK(VCS2) +#define BSD3_RING ENGINE_MASK(VCS3) +#define BSD4_RING ENGINE_MASK(VCS4) +#define VEBOX2_RING ENGINE_MASK(VECS2)#define ALL_ENGINES (~0)#define HAS_ENGINE (dev_priv, id) \
drivers/gpu/drm/i915/i915_gem.h +1 -1
@@ -54,6 +54,6 @@#define GEM_TRACE (...) do { } while (0)#endif -#define I915_NUM_ENGINES 5 +#define I915_NUM_ENGINES 8#endif /* __I915_GEM_H__ */
drivers/gpu/drm/i915/i915_reg.h +4 -1
@@ -178,6 +178,9 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)#define BCS_HW 2#define VECS_HW 3#define VCS2_HW 4 +#define VCS3_HW 6 +#define VCS4_HW 7 +#define VECS2_HW 12/* Engine class */
@@ -188,7 +191,7 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)#define OTHER_CLASS 4#define MAX_ENGINE_CLASS 4 -#define MAX_ENGINE_INSTANCE 1 +#define MAX_ENGINE_INSTANCE 3/* PCI config space */
drivers/gpu/drm/i915/intel_device_info.c +3 -0
@@ -489,6 +489,9 @@ void intel_device_info_runtime_init(struct intel_device_info *info) info->num_scalers[PIPE_C ] =1 ; } +BUILD_BUG_ON (I915_NUM_ENGINES > +sizeof (intel_ring_mask_t) *BITS_PER_BYTE ); +/* * Skylake and Broxton currently don't expose the topmost plane as its * use is exclusive with the legacy cursor and we only want to expose
drivers/gpu/drm/i915/intel_device_info.h +3 -1
@@ -125,6 +125,8 @@ struct sseu_dev_info { u8 has_eu_pg:1; }; +typedef u8 intel_ring_mask_t ; +struct intel_device_info {u16 device_id;u16 gen_mask;
@@ -132,7 +134,7 @@ struct intel_device_info {u8 gen;u8 gt;/* GT number, 0 if undefined */ u8 num_rings; -u8 ring_mask;/* Rings supported by the HW */ +intel_ring_mask_t ring_mask;/* Rings supported by the HW */ enum intel_platform platform;u32 platform_mask;
drivers/gpu/drm/i915/intel_ringbuffer.h +8 -1
@@ -158,6 +158,9 @@ struct i915_ctx_workarounds {struct drm_i915_gem_request ; +#define I915_MAX_VCS 4 +#define I915_MAX_VECS 2 +/* * Engine IDs definitions. * Keep instances of the same type engine together.
@@ -167,8 +170,12 @@ enum intel_engine_id {BCS ,VCS ,VCS2 , +VCS3 , +VCS4 , #define _VCS(n) (VCS + (n)) -VECS +VECS , + VECS2 +#define _VECS (n) (VECS + (n)) };struct i915_priolist {
Signature · 6 lines
2.14.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/icl: Prepare for more rings
== Series Details ==
== Series Details ==
Series: drm/i915/icl: Prepare for more rings
URL : https://patchwork.freedesktop.org/series/38150/
State : success
== Summary ==
Series 38150v1 drm/i915/icl: Prepare for more rings
https://patchwork.freedesktop.org/api/1.0/series/38150/revisions/1/mbox/
Test gem_exec_reloc:
Subgroup basic-cpu:
incomplete -> PASS (fi-byt-j1900) fdo#102657
Test gem_mmap_gtt:
Subgroup basic-small-bo-tiledx:
pass -> FAIL (fi-gdg-551) fdo#102575
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-a:
dmesg-warn -> PASS (fi-cnl-y3) fdo#105058
Subgroup suspend-read-crc-pipe-b:
pass -> INCOMPLETE (fi-snb-2520m) fdo#103713
Subgroup suspend-read-crc-pipe-c:
dmesg-warn -> PASS (fi-cnl-y3) fdo#104951
Test prime_vgem:
Subgroup basic-fence-flip:
pass -> FAIL (fi-ilk-650) fdo#104008
Test drv_module_reload:
Subgroup basic-no-display:
incomplete -> PASS (fi-elk-e7500) fdo#105074fdo#102657 https://bugs.freedesktop.org/show_bug.cgi?id=102657
fdo#102575 https://bugs.freedesktop.org/show_bug.cgi?id=102575
fdo#105058 https://bugs.freedesktop.org/show_bug.cgi?id=105058
fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#104951 https://bugs.freedesktop.org/show_bug.cgi?id=104951
fdo#104008 https://bugs.freedesktop.org/show_bug.cgi?id=104008
fdo#105074 https://bugs.freedesktop.org/show_bug.cgi?id=105074
fi-bdw-5557u total:288 pass:265 dwarn:0 dfail:0 fail:2 skip:21 time:442s fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:421s fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:375s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:484s fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:286s fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:481s fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:490s fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:470s fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:455s fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:573s fi-cnl-y3 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:577s fi-elk-e7500 total:288 pass:229 dwarn:0 dfail:0 fail:0 skip:59 time:419s fi-gdg-551 total:288 pass:179 dwarn:0 dfail:0 fail:1 skip:108 time:283s fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:510s fi-hsw-4770 total:288 pass:259 dwarn:0 dfail:0 fail:2 skip:27 time:410s fi-ilk-650 total:288 pass:227 dwarn:0 dfail:0 fail:1 skip:60 time:409s fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:452s fi-ivb-3770 total:288 pass:255 dwarn:0 dfail:0 fail:0 skip:33 time:414s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:459s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:496s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:503s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:589s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:433s fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:507s fi-skl-6700hq total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:527s fi-skl-6700k2 total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:496s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:488s fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:420s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:433s fi-snb-2520m total:245 pass:211 dwarn:0 dfail:0 fail:0 skip:33 fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:401s
Blacklisted hosts:
fi-glk-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:471s
63698887f4211b1ea1183cf410d9043da7620067 drm-tip: 2018y-02m-13d-11h-20m-16s UTC integration manifest c8df83c682cf drm/i915/icl: Prepare for more rings
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7994/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915/icl: Prepare for more rings
In reply to Mika Kuoppala== Series Details ==
== Series Details ==
Series: drm/i915/icl: Prepare for more rings
URL : https://patchwork.freedesktop.org/series/38150/
State : success
== Summary ==
Test kms_frontbuffer_tracking:
Subgroup fbc-1p-primscrn-pri-shrfb-draw-pwrite:
fail -> PASS (shard-apl) fdo#101623
Test perf:
Subgroup buffer-fill:
fail -> PASS (shard-apl) fdo#103755
Test kms_flip:
Subgroup modeset-vs-vblank-race-interruptible:
fail -> PASS (shard-hsw) fdo#103060
Subgroup 2x-flip-vs-expired-vblank-interruptible:
fail -> PASS (shard-hsw) fdo#102887
Subgroup flip-vs-modeset-vs-hang-interruptible:
dmesg-warn -> PASS (shard-snb) fdo#104311
Subgroup plain-flip-ts-check-interruptible:
pass -> FAIL (shard-hsw) fdo#100368
Test kms_cursor_crc:
Subgroup cursor-64x64-suspend:
pass -> SKIP (shard-snb) fdo#102365
Test kms_plane_multiple:
Subgroup atomic-pipe-c-tiling-x:
fail -> PASS (shard-apl) fdo#103831
Test perf_pmu:
Subgroup semaphore-wait-rcs0:
fail -> PASS (shard-apl) fdo#105011
Test pm_rpm:
Subgroup modeset-non-lpsp:
fail -> PASS (shard-hsw) fdo#105069 +2
Test kms_mmap_write_crc:
skip -> PASS (shard-apl)
Test gem_eio:
Subgroup in-flight:
pass -> FAIL (shard-hsw) fdo#104676
Subgroup in-flight-contexts:
dmesg-warn -> PASS (shard-snb) fdo#104058
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
skip -> PASS (shard-snb) fdo#103375
Test pm_rc6_residency:
Subgroup rc6-accuracy:
skip -> PASS (shard-snb)fdo#101623 https://bugs.freedesktop.org/show_bug.cgi?id=101623
fdo#103755 https://bugs.freedesktop.org/show_bug.cgi?id=103755
fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#104311 https://bugs.freedesktop.org/show_bug.cgi?id=104311
fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102365 https://bugs.freedesktop.org/show_bug.cgi?id=102365
fdo#103831 https://bugs.freedesktop.org/show_bug.cgi?id=103831
fdo#105011 https://bugs.freedesktop.org/show_bug.cgi?id=105011
fdo#105069 https://bugs.freedesktop.org/show_bug.cgi?id=105069
fdo#104676 https://bugs.freedesktop.org/show_bug.cgi?id=104676
fdo#104058 https://bugs.freedesktop.org/show_bug.cgi?id=104058
fdo#103375 https://bugs.freedesktop.org/show_bug.cgi?id=103375
shard-apl total:3394 pass:1770 dwarn:1 dfail:0 fail:21 skip:1600 time:13661s shard-hsw total:3427 pass:1718 dwarn:1 dfail:0 fail:53 skip:1654 time:14692s shard-snb total:3427 pass:1349 dwarn:1 dfail:0 fail:10 skip:2067 time:7597s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7994/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx