From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: gen6_enable_rps() wants to be called after ring initialisation
Date: Wed, 2 May 2012 22:42:00 +0200 [thread overview]
Message-ID: <20120502204159.GA4101@phenom.ffwll.local> (raw)
In-Reply-To: <1335548197-2281-1-git-send-email-chris@chris-wilson.co.uk>
On Fri, Apr 27, 2012 at 06:36:37PM +0100, Chris Wilson wrote:
> Currently we call gen6_enable_rps() (which writes into the per-ring
> register mmio space) from intel_modeset_init_hw() which is called before
> we initialise the rings. If we defer intel_modeset_init_hw() until
> afterwards (in the intel_modeset_gem_init() phase) all is well.
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
One thing I've noticed that with this patch we still have conflicting
ordering of gem_init_hw vs. modeset_init_hw. With this patch we have
- gem before modeset init_hw for initial load and after gpu reset
- but gem _after_ modeset init_hw after resume.
Given that we already have another workaround that wants gem (and the
rings) fully running, I guess gem before modeset init_hw is the right
order. Care to amend the patch to fix the resume path?
-Daniel
> ---
> drivers/gpu/drm/i915/intel_display.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index be59e8f..27eda9a 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -6792,6 +6792,7 @@ void intel_modeset_init_hw(struct drm_device *dev)
>
> if (IS_IRONLAKE_M(dev)) {
> ironlake_enable_drps(dev);
> + ironlake_enable_rc6(dev);
> intel_init_emon(dev);
> }
>
> @@ -6849,8 +6850,6 @@ void intel_modeset_init(struct drm_device *dev)
> i915_disable_vga(dev);
> intel_setup_outputs(dev);
>
> - intel_modeset_init_hw(dev);
> -
> INIT_WORK(&dev_priv->idle_work, intel_idle_update);
> setup_timer(&dev_priv->idle_timer, intel_gpu_idle_timer,
> (unsigned long)dev);
> @@ -6861,8 +6860,7 @@ void intel_modeset_init(struct drm_device *dev)
>
> void intel_modeset_gem_init(struct drm_device *dev)
> {
> - if (IS_IRONLAKE_M(dev))
> - ironlake_enable_rc6(dev);
> + intel_modeset_init_hw(dev);
>
> intel_setup_overlay(dev);
> }
> --
> 1.7.10
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
next prev parent reply other threads:[~2012-05-02 20:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-27 17:36 [PATCH] drm/i915: gen6_enable_rps() wants to be called after ring initialisation Chris Wilson
2012-05-02 20:42 ` Daniel Vetter [this message]
2012-05-09 10:56 ` Chris Wilson
2012-05-09 19:59 ` 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=20120502204159.GA4101@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=chris@chris-wilson.co.uk \
--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