public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Ben Widawsky <ben@bwidawsk.net>
To: Eugeni Dodonov <eugeni@dodonov.net>
Cc: daniel.vetter@ffwll.ch, intel-gfx@lists.freedesktop.org,
	Eugeni Dodonov <eugeni.dodonov@intel.com>
Subject: Re: [PATCH 3/3] drm/i915: re-enable rc6 by default when GMAR is disabled
Date: Wed, 16 Nov 2011 17:13:58 -0800	[thread overview]
Message-ID: <20111117011358.GC27398@bolo_yeung.jf.intel.com> (raw)
In-Reply-To: <CAC7LmnvGqdX4NnquD+Yo075tvdG=VBDgcukK=dXRWDrMdJKYjw@mail.gmail.com>

On Wed, Nov 16, 2011 at 11:02:36PM -0200, Eugeni Dodonov wrote:
> On Wed, Nov 16, 2011 at 22:56, Ben Widawsky <ben@bwidawsk.net> wrote:
> 
> > This is not sufficient. You need to know that DMAR is compiled in, and
> > is actually being used.
> >
> > The variable you want is: !intel_iommu_gfx_mapped
> >
> > I think I saw Keith say he was sending this patch out on IRC.
> >
> 
> Thanks, makes sense!
> 
> I'll wait for Keith patch then to avoid duplicating work.
> 
> On a side note, would it make sense to add the .enable_rc6 bits to
> i915_drv.c, in a similar way I did for semaphores?

I'm pretty sure we used to have that. In general, I dislike the idea of
device specific parameters until we know exactly why something doesn't
work. It makes it too tempting to just something off instead of
debugging it.
In your patch series I would have changed the check to be
if (GEN7)
	do semaphore stuff
For the first patch, and then for the second patch
if (>= GEN6)
	do semaphore stuff

Instead of changing the module parameter.

But that's just me, and others tend to disagree with me more than most.

Only bikeshedding because you asked :-).

Ben

  reply	other threads:[~2011-11-17  1:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-17  0:17 [PATCH 1/3] drm/i915: support for per-device semaphores settings Eugeni Dodonov
2011-11-17  0:17 ` [PATCH 2/3] drm/i915: allow semaphores on SNB if DMAR is disabled Eugeni Dodonov
2011-11-17  0:56   ` Ben Widawsky
2011-11-17  0:17 ` [PATCH 3/3] drm/i915: re-enable rc6 by default when GMAR " Eugeni Dodonov
2011-11-17  0:56   ` Ben Widawsky
2011-11-17  1:02     ` Eugeni Dodonov
2011-11-17  1:13       ` Ben Widawsky [this message]
     [not found]     ` <yunty63l1mt.fsf@aiko.keithp.com>
2011-11-17  7:00       ` Ben Widawsky
2011-11-17  9:30 ` [PATCH 1/3] drm/i915: support for per-device semaphores settings Daniel Vetter

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=20111117011358.GC27398@bolo_yeung.jf.intel.com \
    --to=ben@bwidawsk.net \
    --cc=daniel.vetter@ffwll.ch \
    --cc=eugeni.dodonov@intel.com \
    --cc=eugeni@dodonov.net \
    --cc=intel-gfx@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