Re: [Intel-gfx] [PATCH] drm/i915/gt: Limit VFE threads based on GT

2020-11-09 Thread rwright
On Fri, Oct 16, 2020 at 06:54:11PM +0100, Chris Wilson wrote: > MEDIA_STATE_VFE only accepts the 'maximum number of threads' in the > range [0, n-1] where n is #EU * (#threads/EU) with the number of threads > based on plaform and the number of EU based on the number of slices and > subslices. This

Re: [Intel-gfx] [PATCH v3 0/3] Reduce context clear batch size to avoid gpu hang

2020-11-07 Thread rwright
On Mon, Nov 02, 2020 at 12:57:10PM -0700, rwri...@hpe.com wrote: > On Mon, Nov 02, 2020 at 10:48:54AM +0100, Hans de Goede wrote: > > Hi, > > > ... > That said, if the i915 maintainers respond in favor of the simpler > unconditional reduction of the batch size, I will be glad to > propose a much s

Re: [Intel-gfx] [PATCH v3 0/3] Reduce context clear batch size to avoid gpu hang

2020-11-02 Thread rwright
On Mon, Nov 02, 2020 at 10:48:54AM +0100, Hans de Goede wrote: > Hi, > > On 11/1/20 6:41 PM, rwri...@hpe.com wrote: > > From: Randy Wright > > > > For several months, I've been experiencing GPU hangs when starting > > Cinnamon on an HP Pavilion Mini 300-020 if I try to run an upstream > > kerne

[Intel-gfx] [PATCH v3 3/3] drm/i915/gt: Force reduced batch size if new QUIRK_RENDERCLEAR_REDUCED is set.

2020-11-01 Thread rwright
From: Randy Wright In function batch_get_defaults, the smaller batch size will be selected if QUIRK_RENDERCLEAR_REDUCED is set. Signed-off-by: Randy Wright --- drivers/gpu/drm/i915/gt/gen7_renderclear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt

[Intel-gfx] [PATCH v3 1/3] drm/i915: Introduce quirk QUIRK_RENDERCLEAR_REDUCED

2020-11-01 Thread rwright
From: Randy Wright Introduce quirk QUIRK_RENDERCLEAR_REDUCED, which will be used to force a limited batch buffer size for clearing residual contexts in gen7_renderclear.c. Signed-off-by: Randy Wright --- drivers/gpu/drm/i915/i915_drv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/driver

[Intel-gfx] [PATCH v3 2/3] drm/i915/display: Add function quirk_renderclear_reduced

2020-11-01 Thread rwright
From: Randy Wright Added function quirk_renderclear_reduced to set QUIRK_RENDERCLEAR_REDUCED for designated platforms. Applying QUIRK_RENDERCLEAR_REDUCED for the HP Pavilion Mini 300-020 prevents a GPU hang. Signed-off-by: Randy Wright --- drivers/gpu/drm/i915/display/intel_quirks.c | 13

[Intel-gfx] [PATCH v3 0/3] Reduce context clear batch size to avoid gpu hang

2020-11-01 Thread rwright
From: Randy Wright For several months, I've been experiencing GPU hangs when starting Cinnamon on an HP Pavilion Mini 300-020 if I try to run an upstream kernel. I reported this recently in https://gitlab.freedesktop.org/drm/intel/-/issues/2413 where I have attached the requested evidence inclu

[Intel-gfx] [PATCH v3 2/3] drm/i915/display: Add function quirk_renderclear_reduced

2020-11-01 Thread rwright
From: Randy Wright Added function quirk_renderclear_reduced to set QUIRK_RENDERCLEAR_REDUCED for designated platforms. Applying QUIRK_RENDERCLEAR_REDUCED for the HP Pavilion Mini 300-020 prevents a GPU hang. Signed-off-by: Randy Wright --- drivers/gpu/drm/i915/display/intel_quirks.c | 13

[Intel-gfx] [PATCH v3 0/3] Reduce context clear batch size to avoid gpu hang

2020-11-01 Thread rwright
From: Randy Wright For several months, I've been experiencing GPU hangs when starting Cinnamon on an HP Pavilion Mini 300-020 if I try to run an upstream kernel. I reported this recently in https://gitlab.freedesktop.org/drm/intel/-/issues/2413 where I have attached the requested evidence inclu

[Intel-gfx] [PATCH v3 1/3] drm/i915: Introduce quirk QUIRK_RENDERCLEAR_REDUCED

2020-11-01 Thread rwright
From: Randy Wright Introduce quirk QUIRK_RENDERCLEAR_REDUCED, which will be used to force a limited batch buffer size for clearing residual contexts in gen7_renderclear.c. Signed-off-by: Randy Wright --- drivers/gpu/drm/i915/i915_drv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/driver

[Intel-gfx] [RFC] drm/i915/gt: reduce context clear batch size to avoid gpu hang (rev2)

2020-10-12 Thread rwright
The first version of this RFC patch caused a build error when - to my suprise - it was automatically built. I had presumed an RFC message would be for comment only, and so I had pasted part of the patch, thereby breaking whitespace. In this version, I have directly included the patch without past

[Intel-gfx] [RFC] drm/i915/gt: reduce context clear batch size to avoid gpu hang

2020-10-05 Thread rwright
Hello, For several months, I've been experiencing GPU hangs when starting Cinnamon on an HP Pavilion Mini 300-020 if I try to run an upstream kernel. I reported this recently in https://gitlab.freedesktop.org/drm/intel/-/issues/2413 where I have attached the requested evidence including the stat