All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michał Winiarski" <michal.winiarski@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: mesa-dev@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	Mika Kuoppala <mika.kuoppala@intel.com>
Subject: [PATCH 1/2] drm/i915/gtt: Allow adventurous users to select enable_ppgtt=3
Date: Wed, 9 Sep 2015 16:07:08 +0200	[thread overview]
Message-ID: <1441807630-20072-2-git-send-email-michal.winiarski@intel.com> (raw)
In-Reply-To: <1441807630-20072-1-git-send-email-michal.winiarski@intel.com>

While support for 48b ppgtt is here, parameter enabling it is not known
to the sanitize function. Let's update it to allow selecting
full_48bit_ppgtt using module parameter.

Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 8786281..f598d63 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -104,9 +104,11 @@ static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)
 {
 	bool has_aliasing_ppgtt;
 	bool has_full_ppgtt;
+	bool has_full_48bit_ppgtt;
 
 	has_aliasing_ppgtt = INTEL_INFO(dev)->gen >= 6;
 	has_full_ppgtt = INTEL_INFO(dev)->gen >= 7;
+	has_full_48bit_ppgtt = INTEL_INFO(dev)->gen >= 9 || IS_BROADWELL(dev);
 
 	if (intel_vgpu_active(dev))
 		has_full_ppgtt = false; /* emulation is too hard */
@@ -125,6 +127,9 @@ static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)
 	if (enable_ppgtt == 2 && has_full_ppgtt)
 		return 2;
 
+	if (enable_ppgtt == 3 && has_full_48bit_ppgtt)
+		return 3;
+
 #ifdef CONFIG_INTEL_IOMMU
 	/* Disable ppgtt on SNB if VT-d is on. */
 	if (INTEL_INFO(dev)->gen == 6 && intel_iommu_gfx_mapped) {
-- 
2.4.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2015-09-09 14:07 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09 14:07 [RFC libdrm] intel: Softpin support Michał Winiarski
2015-09-09 14:07 ` Michał Winiarski [this message]
2015-09-09 14:07 ` [PATCH v6 2/2] drm/i915: Add soft-pinning API for execbuffer Michał Winiarski
2015-09-09 14:25   ` Chris Wilson
2015-11-04 10:32     ` Yang, Rong R
2015-11-04 10:46       ` Daniel, Thomas
2015-09-09 14:07 ` [RFC libdrm] intel: Add support for softpin Michał Winiarski
2015-12-14  3:17   ` Song, Ruiling
2015-12-14  5:33     ` Kristian Høgsberg
2015-12-14  7:24       ` Song, Ruiling
2015-12-14  8:28         ` Daniel Vetter
2015-12-14  8:41           ` Song, Ruiling
2015-12-14  9:04             ` [Intel-gfx] " Daniel Vetter
2015-12-14 11:45               ` Emil Velikov
2015-12-14 18:25             ` [Intel-gfx] " Kristian Høgsberg
2015-12-14 18:36         ` Kristian Høgsberg
2015-12-14 20:09           ` Kristian Høgsberg
2015-12-16  3:29             ` [Intel-gfx] " Song, Ruiling
2016-01-25  9:30   ` Chris Wilson

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=1441807630-20072-2-git-send-email-michal.winiarski@intel.com \
    --to=michal.winiarski@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=mesa-dev@lists.freedesktop.org \
    --cc=mika.kuoppala@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.