Message ID | 20180420095933.16442-1-hdegoede@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi, On 04/20/2018 03:52 PM, Patchwork wrote: > == Series Details == > > Series: drm/i915: Do NOT skip the first 4k of stolen memory for pre-allocated buffers (rev3) > URL : https://patchwork.freedesktop.org/series/40929/ > State : failure > > == Summary == > > = CI Bug Log - changes from CI_DRM_4072_full -> Patchwork_8763_full = > > == Summary - FAILURE == > > Serious unknown changes coming with Patchwork_8763_full absolutely need to be > verified manually. > > If you think the reported changes have nothing to do with the changes > introduced in Patchwork_8763_full, please notify your bug team to allow them > to document this new failure mode, which will reduce false positives in CI. > > External URL: https://patchwork.freedesktop.org/api/1.0/series/40929/revisions/3/mbox/ > > == Possible new issues == > > Here are the unknown changes that may have been introduced in Patchwork_8763_full: > > === IGT changes === > > ==== Possible regressions ==== > > igt@kms_flip@flip-vs-absolute-wf_vblank-interruptible: > shard-apl: PASS -> FAIL This seems to be a false positive, so unless someone objects I plan to push this change soonish. Regards, Hans > ==== Warnings ==== > > igt@gem_exec_schedule@deep-blt: > shard-kbl: PASS -> SKIP +1 > > igt@gem_exec_schedule@deep-bsd1: > shard-kbl: SKIP -> PASS +1 > > igt@kms_plane_scaling@pipe-a-scaler-with-clipping-clamping: > shard-glk: PASS -> SKIP +95 > > igt@kms_vblank@pipe-b-wait-forked-busy-hang: > shard-glk: SKIP -> PASS +104 > > > == Known issues == > > Here are the changes found in Patchwork_8763_full that come from known issues: > > === IGT changes === > > ==== Issues hit ==== > > igt@kms_flip@2x-flip-vs-expired-vblank: > shard-hsw: PASS -> FAIL (fdo#102887) > > igt@kms_flip@2x-wf_vblank-ts-check: > shard-hsw: PASS -> FAIL (fdo#100368) > > igt@pm_rpm@drm-resources-equal: > shard-kbl: PASS -> DMESG-FAIL (fdo#103558, fdo#104767) > > ==== Possible fixes ==== > > igt@kms_flip@dpms-vs-vblank-race-interruptible: > shard-glk: FAIL (fdo#103060) -> PASS > > igt@kms_flip@plain-flip-fb-recreate: > shard-hsw: FAIL (fdo#100368) -> PASS > > igt@kms_flip@plain-flip-ts-check-interruptible: > shard-glk: FAIL (fdo#100368) -> PASS +1 > > igt@kms_setmode@basic: > shard-glk: FAIL (fdo#99912) -> PASS > shard-kbl: FAIL (fdo#99912) -> PASS > > igt@perf@blocking: > shard-hsw: FAIL (fdo#102252) -> PASS > > > fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368 > fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252 > fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887 > fdo#103060 https://bugs.freedesktop.org/show_bug.cgi?id=103060 > fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558 > fdo#104767 https://bugs.freedesktop.org/show_bug.cgi?id=104767 > fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912 > > > == Participating hosts (6 -> 5) == > > Missing (1): shard-glkb > > > == Build changes == > > * Linux: CI_DRM_4072 -> Patchwork_8763 > > CI_DRM_4072: b35e59e5c6a9cae11d5183d2bf9c5c99ceedbc7c @ git://anongit.freedesktop.org/gfx-ci/linux > IGT_4442: 8168bb65d5e64d4df4e5d847d448bab2d2825d73 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools > Patchwork_8763: 4aa49825b5adc90cab8a53d154aa779168348a6c @ git://anongit.freedesktop.org/gfx-ci/linux > piglit_4442: e60d247eb359f044caf0c09904da14e39d7adca1 @ git://anongit.freedesktop.org/piglit > > == Logs == > > For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8763/shards.html >
diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c index af915d041281..ad949cc30928 100644 --- a/drivers/gpu/drm/i915/i915_gem_stolen.c +++ b/drivers/gpu/drm/i915/i915_gem_stolen.c @@ -51,6 +51,10 @@ int i915_gem_stolen_insert_node_in_range(struct drm_i915_private *dev_priv, if (!drm_mm_initialized(&dev_priv->mm.stolen)) return -ENODEV; + /* WaSkipStolenMemoryFirstPage:bdw+ */ + if (INTEL_GEN(dev_priv) >= 8 && start < 4096) + start = 4096; + mutex_lock(&dev_priv->mm.stolen_lock); ret = drm_mm_insert_node_in_range(&dev_priv->mm.stolen, node, size, alignment, 0, @@ -343,7 +347,6 @@ int i915_gem_init_stolen(struct drm_i915_private *dev_priv) { resource_size_t reserved_base, stolen_top; resource_size_t reserved_total, reserved_size; - resource_size_t stolen_usable_start; mutex_init(&dev_priv->mm.stolen_lock); @@ -435,17 +438,11 @@ int i915_gem_init_stolen(struct drm_i915_private *dev_priv) (u64)resource_size(&dev_priv->dsm) >> 10, ((u64)resource_size(&dev_priv->dsm) - reserved_total) >> 10); - stolen_usable_start = 0; - /* WaSkipStolenMemoryFirstPage:bdw+ */ - if (INTEL_GEN(dev_priv) >= 8) - stolen_usable_start = 4096; - dev_priv->stolen_usable_size = - resource_size(&dev_priv->dsm) - reserved_total - stolen_usable_start; + resource_size(&dev_priv->dsm) - reserved_total; /* Basic memrange allocator for stolen space. */ - drm_mm_init(&dev_priv->mm.stolen, stolen_usable_start, - dev_priv->stolen_usable_size); + drm_mm_init(&dev_priv->mm.stolen, 0, dev_priv->stolen_usable_size); return 0; }