* [PATCH] drm/i915: Disable read only ppgtt support for gen11
@ 2019-04-11 8:30 Mika Kuoppala
2019-04-11 8:33 ` Chris Wilson
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Mika Kuoppala @ 2019-04-11 8:30 UTC (permalink / raw)
To: intel-gfx
On gen11 writing to read only ppgtt page causes a gpu hang.
This behaviour is different than with previous gen where
read only ppgtt access is supported. On those, the write
is just dropped without visible side effects.
Disable ro ppgtt support on gen11 until a solution can
be found to bring it into line with its predecessors.
References: HSDES#1807136187
References: https://bugzilla.freedesktop.org/show_bug.cgi?id=108569
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
---
drivers/gpu/drm/i915/i915_gem_gtt.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 736c845eb77f..caae8cdafc1a 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -1548,8 +1548,13 @@ static struct i915_hw_ppgtt *gen8_ppgtt_create(struct drm_i915_private *i915)
ppgtt_init(i915, ppgtt);
- /* From bdw, there is support for read-only pages in the PPGTT. */
- ppgtt->vm.has_read_only = true;
+ /*
+ * From bdw, there is hw support for read-only pages in the PPGTT.
+ *
+ * Gen11 has HSDES#:1807136187 unresolved. Disable ro support
+ * for now.
+ */
+ ppgtt->vm.has_read_only = INTEL_GEN(i915) != 11;
/* There are only few exceptions for gen >=6. chv and bxt.
* And we are not sure about the latter so play safe for now.
--
2.17.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915: Disable read only ppgtt support for gen11
2019-04-11 8:30 [PATCH] drm/i915: Disable read only ppgtt support for gen11 Mika Kuoppala
@ 2019-04-11 8:33 ` Chris Wilson
2019-04-11 18:44 ` ✗ Fi.CI.BAT: failure for " Patchwork
2019-04-11 19:47 ` [PATCH] " Rodrigo Vivi
2 siblings, 0 replies; 5+ messages in thread
From: Chris Wilson @ 2019-04-11 8:33 UTC (permalink / raw)
To: Mika Kuoppala, intel-gfx
Quoting Mika Kuoppala (2019-04-11 09:30:34)
> On gen11 writing to read only ppgtt page causes a gpu hang.
> This behaviour is different than with previous gen where
> read only ppgtt access is supported. On those, the write
> is just dropped without visible side effects.
>
> Disable ro ppgtt support on gen11 until a solution can
> be found to bring it into line with its predecessors.
>
> References: HSDES#1807136187
> References: https://bugzilla.freedesktop.org/show_bug.cgi?id=108569
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Lets see if I remembered to stick those vm->has_read_only checks
everywhere we needed them (and remembered to exercise them -- a bit of a
catch 22, if I forgot the check, I probably forgot the test as well).
Thanks,
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* ✗ Fi.CI.BAT: failure for drm/i915: Disable read only ppgtt support for gen11
2019-04-11 8:30 [PATCH] drm/i915: Disable read only ppgtt support for gen11 Mika Kuoppala
2019-04-11 8:33 ` Chris Wilson
@ 2019-04-11 18:44 ` Patchwork
2019-04-11 19:47 ` [PATCH] " Rodrigo Vivi
2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2019-04-11 18:44 UTC (permalink / raw)
To: Mika Kuoppala; +Cc: intel-gfx
== Series Details ==
Series: drm/i915: Disable read only ppgtt support for gen11
URL : https://patchwork.freedesktop.org/series/59323/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_5912 -> Patchwork_12761
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_12761 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_12761, 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/59323/revisions/1/mbox/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_12761:
### IGT changes ###
#### Possible regressions ####
* igt@gem_render_tiled_blits@basic:
- fi-icl-y: NOTRUN -> INCOMPLETE
Known issues
------------
Here are the changes found in Patchwork_12761 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_basic@basic-bsd2:
- fi-icl-y: NOTRUN -> SKIP [fdo#109276] +7
* igt@gem_exec_parse@basic-rejected:
- fi-icl-y: NOTRUN -> SKIP [fdo#109289] +1
* igt@i915_selftest@live_hangcheck:
- fi-bxt-dsi: PASS -> INCOMPLETE [fdo#103927]
* igt@kms_busy@basic-flip-c:
- fi-byt-j1900: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]
* igt@kms_chamelium@hdmi-crc-fast:
- fi-byt-j1900: NOTRUN -> SKIP [fdo#109271] +52
* igt@kms_chamelium@hdmi-edid-read:
- fi-hsw-peppy: NOTRUN -> SKIP [fdo#109271] +46
* igt@kms_force_connector_basic@force-edid:
- fi-glk-dsi: NOTRUN -> SKIP [fdo#109271] +26
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: NOTRUN -> DMESG-FAIL [fdo#102614] / [fdo#107814]
- fi-glk-dsi: NOTRUN -> FAIL [fdo#103167]
* igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence:
- fi-byt-clapper: PASS -> FAIL [fdo#103191]
#### Possible fixes ####
* igt@gem_ctx_switch@basic-default:
- fi-icl-y: INCOMPLETE [fdo#108569] -> PASS
* igt@i915_selftest@live_hangcheck:
- fi-skl-iommu: INCOMPLETE [fdo#108602] / [fdo#108744] -> PASS
* igt@kms_cursor_legacy@basic-flip-before-cursor-varying-size:
- fi-glk-dsi: INCOMPLETE [fdo#103359] / [k.org#198133] -> PASS
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#107814]: https://bugs.freedesktop.org/show_bug.cgi?id=107814
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#108602]: https://bugs.freedesktop.org/show_bug.cgi?id=108602
[fdo#108744]: https://bugs.freedesktop.org/show_bug.cgi?id=108744
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133
Participating hosts (50 -> 43)
------------------------------
Additional (2): fi-byt-j1900 fi-hsw-peppy
Missing (9): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-icl-u2 fi-bsw-cyan fi-snb-2520m fi-ctg-p8600 fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_5912 -> Patchwork_12761
CI_DRM_5912: d7c1889b2e971f44d10c69ec204991f3264d2412 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4943: 5941f371b0fe25084d4b1c49882faa8d41d44c9f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_12761: 4df3122417ae11d385696ad010b40e2f16a38b14 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
4df3122417ae drm/i915: Disable read only ppgtt support for gen11
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_12761/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915: Disable read only ppgtt support for gen11
2019-04-11 8:30 [PATCH] drm/i915: Disable read only ppgtt support for gen11 Mika Kuoppala
2019-04-11 8:33 ` Chris Wilson
2019-04-11 18:44 ` ✗ Fi.CI.BAT: failure for " Patchwork
@ 2019-04-11 19:47 ` Rodrigo Vivi
2019-04-11 19:56 ` Chris Wilson
2 siblings, 1 reply; 5+ messages in thread
From: Rodrigo Vivi @ 2019-04-11 19:47 UTC (permalink / raw)
To: Mika Kuoppala; +Cc: intel-gfx
On Thu, Apr 11, 2019 at 11:30:34AM +0300, Mika Kuoppala wrote:
> On gen11 writing to read only ppgtt page causes a gpu hang.
> This behaviour is different than with previous gen where
> read only ppgtt access is supported. On those, the write
> is just dropped without visible side effects.
>
> Disable ro ppgtt support on gen11 until a solution can
> be found to bring it into line with its predecessors.
>
> References: HSDES#1807136187
> References: https://bugzilla.freedesktop.org/show_bug.cgi?id=108569
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/i915_gem_gtt.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
> index 736c845eb77f..caae8cdafc1a 100644
> --- a/drivers/gpu/drm/i915/i915_gem_gtt.c
> +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
> @@ -1548,8 +1548,13 @@ static struct i915_hw_ppgtt *gen8_ppgtt_create(struct drm_i915_private *i915)
>
> ppgtt_init(i915, ppgtt);
>
> - /* From bdw, there is support for read-only pages in the PPGTT. */
> - ppgtt->vm.has_read_only = true;
> + /*
> + * From bdw, there is hw support for read-only pages in the PPGTT.
> + *
> + * Gen11 has HSDES#:1807136187 unresolved. Disable ro support
> + * for now.
> + */
> + ppgtt->vm.has_read_only = INTEL_GEN(i915) != 11;
I believe it is safest to use < 11, no?!
>
> /* There are only few exceptions for gen >=6. chv and bxt.
> * And we are not sure about the latter so play safe for now.
> --
> 2.17.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915: Disable read only ppgtt support for gen11
2019-04-11 19:47 ` [PATCH] " Rodrigo Vivi
@ 2019-04-11 19:56 ` Chris Wilson
0 siblings, 0 replies; 5+ messages in thread
From: Chris Wilson @ 2019-04-11 19:56 UTC (permalink / raw)
To: Mika Kuoppala, Rodrigo Vivi; +Cc: intel-gfx
Quoting Rodrigo Vivi (2019-04-11 20:47:48)
> On Thu, Apr 11, 2019 at 11:30:34AM +0300, Mika Kuoppala wrote:
> > On gen11 writing to read only ppgtt page causes a gpu hang.
> > This behaviour is different than with previous gen where
> > read only ppgtt access is supported. On those, the write
> > is just dropped without visible side effects.
> >
> > Disable ro ppgtt support on gen11 until a solution can
> > be found to bring it into line with its predecessors.
> >
> > References: HSDES#1807136187
> > References: https://bugzilla.freedesktop.org/show_bug.cgi?id=108569
> > Cc: Chris Wilson <chris@chris-wilson.co.uk>
> > Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> > ---
> > drivers/gpu/drm/i915/i915_gem_gtt.c | 9 +++++++--
> > 1 file changed, 7 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
> > index 736c845eb77f..caae8cdafc1a 100644
> > --- a/drivers/gpu/drm/i915/i915_gem_gtt.c
> > +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
> > @@ -1548,8 +1548,13 @@ static struct i915_hw_ppgtt *gen8_ppgtt_create(struct drm_i915_private *i915)
> >
> > ppgtt_init(i915, ppgtt);
> >
> > - /* From bdw, there is support for read-only pages in the PPGTT. */
> > - ppgtt->vm.has_read_only = true;
> > + /*
> > + * From bdw, there is hw support for read-only pages in the PPGTT.
> > + *
> > + * Gen11 has HSDES#:1807136187 unresolved. Disable ro support
> > + * for now.
> > + */
> > + ppgtt->vm.has_read_only = INTEL_GEN(i915) != 11;
>
> I believe it is safest to use < 11, no?!
No. It's an issue in Icelake.
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-04-11 19:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-11 8:30 [PATCH] drm/i915: Disable read only ppgtt support for gen11 Mika Kuoppala
2019-04-11 8:33 ` Chris Wilson
2019-04-11 18:44 ` ✗ Fi.CI.BAT: failure for " Patchwork
2019-04-11 19:47 ` [PATCH] " Rodrigo Vivi
2019-04-11 19:56 ` Chris Wilson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.