public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, igt-dev@lists.freedesktop.org
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Subject: Re: [igt-dev] [PATCH i-g-t] lib/i915: Assume unknown hardware just works
Date: Wed, 20 May 2020 12:12:55 +0300	[thread overview]
Message-ID: <87h7wb55rc.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <20200519210924.2277459-1-chris@chris-wilson.co.uk>

Chris Wilson <chris@chris-wilson.co.uk> writes:

> If we don't recognise the hardware, then it can't be any of the known
> broken HW where MI_STORE_DWORD_IMM either uses physical addressing or
> simply fails catastrophic. As it's not known to be broken, assume it
> works.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>

> ---
>  lib/igt_gt.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/lib/igt_gt.c b/lib/igt_gt.c
> index 101627973..3e5eb47db 100644
> --- a/lib/igt_gt.c
> +++ b/lib/igt_gt.c
> @@ -565,6 +565,9 @@ bool gem_class_can_store_dword(int fd, int class)
>  	const struct intel_device_info *info = intel_get_device_info(devid);
>  	const int gen = ffs(info->gen);
>  
> +	if (info->gen == 0) /* unknown, assume it just works */
> +		return true;
> +
>  	if (gen <= 2) /* requires physical addresses */
>  		return false;
>  
> @@ -572,7 +575,7 @@ bool gem_class_can_store_dword(int fd, int class)
>  		return false; /* only supports physical addresses */
>  
>  	if (gen == 6 && class == I915_ENGINE_CLASS_VIDEO)
> -		return false;
> +		return false; /* broken, unbelievably broken */
>  
>  	if (info->is_broadwater)
>  		return false; /* Not sure yet... */
> -- 
> 2.27.0.rc0
>
> _______________________________________________
> 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

  parent reply	other threads:[~2020-05-20  9:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 21:09 [igt-dev] [PATCH i-g-t] lib/i915: Assume unknown hardware just works Chris Wilson
2020-05-19 21:41 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-05-20  9:12 ` Mika Kuoppala [this message]
2020-05-20  9:18 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7wb55rc.fsf@gaia.fi.intel.com \
    --to=mika.kuoppala@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox