* [PATCH] drm/i915: Suppress warning for MTRR failure if PAT is enabled
@ 2012-02-20 19:20 Chris Wilson
2012-02-20 20:21 ` Eric Anholt
2012-02-20 23:53 ` Chris Wilson
0 siblings, 2 replies; 4+ messages in thread
From: Chris Wilson @ 2012-02-20 19:20 UTC (permalink / raw)
To: intel-gfx
Emitting a spurious warning about poor graphics performance when MTRR
are irrelevant leads to confused users and useless bug reports.
References: https://bugs.freedesktop.org/show_bug.cgi?id=41648
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
drivers/gpu/drm/i915/i915_dma.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 716ba80..7a99d0c 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -35,6 +35,7 @@
#include "i915_drv.h"
#include "i915_trace.h"
#include "../../../platform/x86/intel_ips.h"
+#include <asm/pat.h>
#include <linux/pci.h>
#include <linux/vgaarb.h>
#include <linux/acpi.h>
@@ -1998,10 +1999,9 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
dev_priv->mm.gtt_mtrr = mtrr_add(dev->agp->base,
agp_size,
MTRR_TYPE_WRCOMB, 1);
- if (dev_priv->mm.gtt_mtrr < 0) {
+ if (dev_priv->mm.gtt_mtrr < 0 && !pat_enabled)
DRM_INFO("MTRR allocation failed. Graphics "
"performance may suffer.\n");
- }
/* The i915 workqueue is primarily used for batched retirement of
* requests (and thus managing bo) once the task has been completed
--
1.7.9
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: Suppress warning for MTRR failure if PAT is enabled
2012-02-20 19:20 [PATCH] drm/i915: Suppress warning for MTRR failure if PAT is enabled Chris Wilson
@ 2012-02-20 20:21 ` Eric Anholt
2012-02-20 20:51 ` Chris Wilson
2012-02-20 23:53 ` Chris Wilson
1 sibling, 1 reply; 4+ messages in thread
From: Eric Anholt @ 2012-02-20 20:21 UTC (permalink / raw)
To: Chris Wilson, intel-gfx
[-- Attachment #1.1: Type: text/plain, Size: 512 bytes --]
On Mon, 20 Feb 2012 19:20:03 +0000, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> Emitting a spurious warning about poor graphics performance when MTRR
> are irrelevant leads to confused users and useless bug reports.
>
> References: https://bugs.freedesktop.org/show_bug.cgi?id=41648
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Now that PAT has been reliable without MTRRs in place for a while, I
agree with the patch (but not with removing the braces around the
multi-line printf).
[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: Suppress warning for MTRR failure if PAT is enabled
2012-02-20 20:21 ` Eric Anholt
@ 2012-02-20 20:51 ` Chris Wilson
0 siblings, 0 replies; 4+ messages in thread
From: Chris Wilson @ 2012-02-20 20:51 UTC (permalink / raw)
To: Eric Anholt, intel-gfx
On Mon, 20 Feb 2012 12:21:43 -0800, Eric Anholt <eric@anholt.net> wrote:
> Now that PAT has been reliable without MTRRs in place for a while, I
> agree with the patch (but not with removing the braces around the
> multi-line printf).
I thought the braces around the single line was a checkpatch violation.
Having run the revert through checkpatch.pl, turns out I was wrong.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: Suppress warning for MTRR failure if PAT is enabled
2012-02-20 19:20 [PATCH] drm/i915: Suppress warning for MTRR failure if PAT is enabled Chris Wilson
2012-02-20 20:21 ` Eric Anholt
@ 2012-02-20 23:53 ` Chris Wilson
1 sibling, 0 replies; 4+ messages in thread
From: Chris Wilson @ 2012-02-20 23:53 UTC (permalink / raw)
To: intel-gfx
On Mon, 20 Feb 2012 19:20:03 +0000, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> Emitting a spurious warning about poor graphics performance when MTRR
> are irrelevant leads to confused users and useless bug reports.
Darn, a bigger nail in the coffin of this patch is the lack of
EXPORT_SYMBOL for pat_enabled.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-20 23:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-20 19:20 [PATCH] drm/i915: Suppress warning for MTRR failure if PAT is enabled Chris Wilson
2012-02-20 20:21 ` Eric Anholt
2012-02-20 20:51 ` Chris Wilson
2012-02-20 23:53 ` Chris Wilson
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.