public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/igt_fb: Avoid hitting assertion on non-intel HW
@ 2020-02-18  8:29 Tomeu Vizoso
  2020-02-18  9:29 ` Petri Latvala
  2020-02-18 16:52 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 4+ messages in thread
From: Tomeu Vizoso @ 2020-02-18  8:29 UTC (permalink / raw)
  To: Development mailing list for IGT GPU Tools

Recently a call to intel_get_drm_devid was added in a code path that
gets run on all hardware.

Restore the previous behavior by bailing out before we reach the assert.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Fixes: 8b90eefce9b4 ("lib/igt_fb: Use render copy/blit on platforms w/o HW detiling")
---
 lib/igt_fb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 49a032f65c06..0c4fdc5d4889 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -1992,6 +1992,9 @@ static bool fast_blit_ok(const struct igt_fb *fb)
 
 static bool blitter_ok(const struct igt_fb *fb)
 {
+	if (!is_i915_device(fb->fd))
+		return false;
+
 	if (is_ccs_modifier(fb->modifier))
 		return false;
 
-- 
2.21.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [igt-dev] [PATCH i-g-t] lib/igt_fb: Avoid hitting assertion on non-intel HW
  2020-02-18  8:29 [igt-dev] [PATCH i-g-t] lib/igt_fb: Avoid hitting assertion on non-intel HW Tomeu Vizoso
@ 2020-02-18  9:29 ` Petri Latvala
  2020-02-18  9:36   ` Tomeu Vizoso
  2020-02-18 16:52 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  1 sibling, 1 reply; 4+ messages in thread
From: Petri Latvala @ 2020-02-18  9:29 UTC (permalink / raw)
  To: Tomeu Vizoso; +Cc: Development mailing list for IGT GPU Tools

On Tue, Feb 18, 2020 at 09:29:04AM +0100, Tomeu Vizoso wrote:
> Recently a call to intel_get_drm_devid was added in a code path that
> gets run on all hardware.
> 
> Restore the previous behavior by bailing out before we reach the assert.
> 
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
> Fixes: 8b90eefce9b4 ("lib/igt_fb: Use render copy/blit on platforms w/o HW detiling")

The path is from use_blitter() to blitter_ok() to fast_blit_ok() where
the intel_get_drm_devid call is, right? And the change that broke this
was using blitter_ok() unconditionally instead of almost-accidentally
avoiding the blitter_ok call by checking for I915_FORMAT_MOD_*
modifiers...


Reviewed-by: Petri Latvala <petri.latvala@intel.com>


> ---
>  lib/igt_fb.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index 49a032f65c06..0c4fdc5d4889 100644
> --- a/lib/igt_fb.c
> +++ b/lib/igt_fb.c
> @@ -1992,6 +1992,9 @@ static bool fast_blit_ok(const struct igt_fb *fb)
>  
>  static bool blitter_ok(const struct igt_fb *fb)
>  {
> +	if (!is_i915_device(fb->fd))
> +		return false;
> +
>  	if (is_ccs_modifier(fb->modifier))
>  		return false;
>  
> -- 
> 2.21.0
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [igt-dev] [PATCH i-g-t] lib/igt_fb: Avoid hitting assertion on non-intel HW
  2020-02-18  9:29 ` Petri Latvala
@ 2020-02-18  9:36   ` Tomeu Vizoso
  0 siblings, 0 replies; 4+ messages in thread
From: Tomeu Vizoso @ 2020-02-18  9:36 UTC (permalink / raw)
  To: Petri Latvala; +Cc: Development mailing list for IGT GPU Tools

On 2/18/20 10:29 AM, Petri Latvala wrote:
> On Tue, Feb 18, 2020 at 09:29:04AM +0100, Tomeu Vizoso wrote:
>> Recently a call to intel_get_drm_devid was added in a code path that
>> gets run on all hardware.
>>
>> Restore the previous behavior by bailing out before we reach the assert.
>>
>> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
>> Fixes: 8b90eefce9b4 ("lib/igt_fb: Use render copy/blit on platforms w/o HW detiling")
> 
> The path is from use_blitter() to blitter_ok() to fast_blit_ok() where
> the intel_get_drm_devid call is, right? And the change that broke this
> was using blitter_ok() unconditionally instead of almost-accidentally
> avoiding the blitter_ok call by checking for I915_FORMAT_MOD_*
> modifiers...

Yep, that's right, this patch makes a little bit more explicit.

> 
> Reviewed-by: Petri Latvala <petri.latvala@intel.com>

Thanks,

Tomeu

> 
>> ---
>>   lib/igt_fb.c | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
>> index 49a032f65c06..0c4fdc5d4889 100644
>> --- a/lib/igt_fb.c
>> +++ b/lib/igt_fb.c
>> @@ -1992,6 +1992,9 @@ static bool fast_blit_ok(const struct igt_fb *fb)
>>   
>>   static bool blitter_ok(const struct igt_fb *fb)
>>   {
>> +	if (!is_i915_device(fb->fd))
>> +		return false;
>> +
>>   	if (is_ccs_modifier(fb->modifier))
>>   		return false;
>>   
>> -- 
>> 2.21.0
>>
>> _______________________________________________
>> igt-dev mailing list
>> igt-dev@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [igt-dev] ✗ Fi.CI.BAT: failure for lib/igt_fb: Avoid hitting assertion on non-intel HW
  2020-02-18  8:29 [igt-dev] [PATCH i-g-t] lib/igt_fb: Avoid hitting assertion on non-intel HW Tomeu Vizoso
  2020-02-18  9:29 ` Petri Latvala
@ 2020-02-18 16:52 ` Patchwork
  1 sibling, 0 replies; 4+ messages in thread
From: Patchwork @ 2020-02-18 16:52 UTC (permalink / raw)
  To: Tomeu Vizoso; +Cc: igt-dev

== Series Details ==

Series: lib/igt_fb: Avoid hitting assertion on non-intel HW
URL   : https://patchwork.freedesktop.org/series/73559/
State : failure

== Summary ==

Series 73559 revision 1 was fully merged or fully failed: no git log

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-18 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-18  8:29 [igt-dev] [PATCH i-g-t] lib/igt_fb: Avoid hitting assertion on non-intel HW Tomeu Vizoso
2020-02-18  9:29 ` Petri Latvala
2020-02-18  9:36   ` Tomeu Vizoso
2020-02-18 16:52 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox