All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: Matthew Auld <matthew.auld@intel.com>
Subject: Re: [PATCH v4] drm/i915: Remove i915.enable_ppgtt override
Date: Tue, 25 Sep 2018 16:27:47 +0300	[thread overview]
Message-ID: <153788206744.4409.7544859834844366441@jlahtine-desk.ger.corp.intel.com> (raw)
In-Reply-To: <20180925114820.15987-1-chris@chris-wilson.co.uk>

Quoting Chris Wilson (2018-09-25 14:48:20)
> Now that we are confident in providing full-ppgtt where supported,
> remove the ability to override the context isolation.
> 
> v2: Remove faked aliasing-ppgtt for testing as it no longer is accepted.
> v3: s/USES/HAS/ to match usage and reject attempts to load the module on
> old GVT-g setups that do not provide support for full-ppgtt.
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Cc: Matthew Auld <matthew.auld@intel.com>

<SNIP>

> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -345,7 +345,7 @@ static int i915_getparam_ioctl(struct drm_device *dev, void *data,
>                 value = HAS_WT(dev_priv);
>                 break;
>         case I915_PARAM_HAS_ALIASING_PPGTT:
> -               value = USES_PPGTT(dev_priv);
> +               value = INTEL_PPGTT(dev_priv);
>                 break;

Luckily nobody has decided to renumber the modparam values for the sake
of our uAPI :P

Maybe best to have the values in uapi header and then add a translation
here to avoid such a problem in the future. I'd prefer to limit to just
relying the information of 0 (none), 1 (aliasing) or 2 (full) unless
somebody has slipped in code to userspace that relies on detecting the
48-bits from here instead the right place...

Regards, Joonas
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2018-09-25 13:27 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-25 11:48 [PATCH v4] drm/i915: Remove i915.enable_ppgtt override Chris Wilson
2018-09-25 12:06 ` ✗ Fi.CI.SPARSE: warning for " Patchwork
2018-09-25 12:28 ` ✗ Fi.CI.BAT: failure " Patchwork
2018-09-25 13:14 ` Patchwork
2018-09-25 13:22 ` [PATCH v4] " Joonas Lahtinen
2018-09-25 18:01   ` Zhi Wang
2018-09-26  1:06     ` He, Min
2018-09-26  8:02       ` Joonas Lahtinen
2018-09-26 12:29         ` Zhi Wang
2018-10-08  9:53         ` Zhenyu Wang
2018-10-08 13:58           ` Wang, Zhi A
2018-10-09  2:15             ` Zhenyu Wang
2018-10-09  6:55               ` Zhi Wang
2018-10-09  7:35                 ` Chris Wilson
2018-09-25 13:27 ` Joonas Lahtinen [this message]
2018-09-26 13:16   ` Joonas Lahtinen
2018-09-26 20:12 ` [PATCH v5] " Chris Wilson
2018-09-27  8:20   ` Joonas Lahtinen
2018-09-27  8:55     ` Chris Wilson
2018-09-27 10:57       ` Joonas Lahtinen
2018-09-27 11:07         ` Chris Wilson
2018-09-26 21:34 ` ✗ Fi.CI.SPARSE: warning for drm/i915: Remove i915.enable_ppgtt override (rev2) Patchwork
2018-09-26 21:55 ` ✓ Fi.CI.BAT: success " Patchwork
2018-09-27  3:00 ` ✓ 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=153788206744.4409.7544859834844366441@jlahtine-desk.ger.corp.intel.com \
    --to=joonas.lahtinen@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.auld@intel.com \
    /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 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.