All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher@gmail.com>
To: Jerome Glisse <j.glisse@gmail.com>
Cc: "Maling list - DRI developers" <dri-devel@lists.freedesktop.org>,
	"Jérôme Glisse" <jglisse@redhat.com>,
	"for 3.8" <stable@vger.kernel.org>
Subject: Re: [PATCH 2/2] drm/radeon: SDMA fix hibernation (CI GPU family).
Date: Thu, 25 Jun 2015 10:56:06 -0400	[thread overview]
Message-ID: <CADnq5_Nw-K8d96HUYDvPkwYUDMo8Cwk57Qi8qjJnhzS+qGVBVA@mail.gmail.com> (raw)
In-Reply-To: <1434724336-15761-2-git-send-email-j.glisse@gmail.com>

On Fri, Jun 19, 2015 at 10:32 AM,  <j.glisse@gmail.com> wrote:
> From: Jérôme Glisse <jglisse@redhat.com>
>
> In order for hibernation to reliably work we need to properly turn
> off the SDMA block, sadly after numerous attemps i haven't not found
> proper sequence for clean and full shutdown. So simply reset both
> SDMA block, this makes hibernation works reliably on sea island GPU
> family (CI)
>
> Hibernation and suspend to ram were tested (several times) on :
> Bonaire
> Hawaii
> Mullins
> Kaveri
> Kabini
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
> Reviewed-by: Christian König <christian.koenig@amd.com>

Applied the series.  thanks!

Alex

> ---
>  drivers/gpu/drm/radeon/cik_sdma.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon/cik_sdma.c
> index f86eb54..d16f2ee 100644
> --- a/drivers/gpu/drm/radeon/cik_sdma.c
> +++ b/drivers/gpu/drm/radeon/cik_sdma.c
> @@ -268,6 +268,17 @@ static void cik_sdma_gfx_stop(struct radeon_device *rdev)
>         }
>         rdev->ring[R600_RING_TYPE_DMA_INDEX].ready = false;
>         rdev->ring[CAYMAN_RING_TYPE_DMA1_INDEX].ready = false;
> +
> +       /* FIXME use something else than big hammer but after few days can not
> +        * seem to find good combination so reset SDMA blocks as it seems we
> +        * do not shut them down properly. This fix hibernation and does not
> +        * affect suspend to ram.
> +        */
> +       WREG32(SRBM_SOFT_RESET, SOFT_RESET_SDMA | SOFT_RESET_SDMA1);
> +       (void)RREG32(SRBM_SOFT_RESET);
> +       udelay(50);
> +       WREG32(SRBM_SOFT_RESET, 0);
> +       (void)RREG32(SRBM_SOFT_RESET);
>  }
>
>  /**
> --
> 2.1.0
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2015-06-25 14:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-19 14:32 [PATCH 1/2] drm/radeon: compute ring fix hibernation (CI GPU family) v2 j.glisse
2015-06-19 14:32 ` j.glisse
2015-06-19 14:32 ` [PATCH 2/2] drm/radeon: SDMA fix hibernation (CI GPU family) j.glisse
2015-06-19 14:32   ` j.glisse
2015-06-25 14:56   ` Alex Deucher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-06-18 22:31 [PATCH 1/2] drm/radeon: compute ring " j.glisse
2015-06-18 22:31 ` [PATCH 2/2] drm/radeon: SDMA " j.glisse

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=CADnq5_Nw-K8d96HUYDvPkwYUDMo8Cwk57Qi8qjJnhzS+qGVBVA@mail.gmail.com \
    --to=alexdeucher@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=j.glisse@gmail.com \
    --cc=jglisse@redhat.com \
    --cc=stable@vger.kernel.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 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.