From: "Christian König" <deathsimple@vodafone.de>
To: "Jerome Glisse" <j.glisse@gmail.com>,
"Christian König" <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>,
Jerome Glisse <jglisse@redhat.com>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH 3/3] drm/radeon: uvd/vce properly pin/unpin firmware accross suspend/resume.
Date: Wed, 16 Mar 2016 13:42:51 +0100 [thread overview]
Message-ID: <56E954CB.3070007@vodafone.de> (raw)
In-Reply-To: <CAH3drwbyye5WGfHvF6bjj2L9iaz2pkKcZP52NKc5ZYLVcuLooQ@mail.gmail.com>
Am 16.03.2016 um 13:35 schrieb Jerome Glisse:
> On Wed, Mar 16, 2016 at 1:10 PM, Christian König
> <christian.koenig@amd.com> wrote:
>> Am 16.03.2016 um 12:56 schrieb jglisse@redhat.com:
>>> From: Jérome Glisse <jglisse@redhat.com>
>>>
>>> We need to unpin on suspend and pin on resume. This shuffle code around
>>> to do just that.
>>>
>>> Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
>>> Cc: Alex Deucher <alexander.deucher@amd.com>
>>> Cc: Christian König <christian.koenig@amd.com>
>>
>> NAK, that won't work correctly.
>>
>> When the firmware is loaded at one location once you can't move it without
>> power cycling the ASIC.
>>
>> That only works when you completely shut down the system, but not if you
>> just suspend to memory on an APU or do a test cycle without actually power
>> down.
>>
>> We already tried this approach and it took me month to figure out what's
>> going wrong when the firmware end up at a different location after the
>> driver started again.
>>
>> Regards,
>> Christian.
> Well that exactly what happens on hibernation. The firmware keycheck
> is failing and vce breaks. I have been trying to make it works but
> even putting it at same location is not enough. This is only an issue
> with hibernation, and module load/unload, suspend is fine as hw is
> powercycle. So this patch will not break anything that does already
> work. It only make code follow what other part of the code does.
Take a look at the history of the UVD code. We already had it this way
and changed it because that fixed suspend/resume for a lot of people.
Additional to that keeping the firmware at the same location is the
documented behavior how the hardware should be programmed.
For Amdgpu Leo even had it working that UVD sessions survive a
suspend/resume cycle, but we haven't dared to enable that for everything
again because of all the problems testing it.
Regards,
Christian.
>
> Cheers,
> Jérôme
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-03-16 12:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-16 11:56 [PATCH 1/3] drm/radeon: fix indentation jglisse
2016-03-16 11:56 ` [PATCH 2/3] drm/radeon: add driver option to disable uvd/vce block jglisse
2016-03-16 12:20 ` Christian König
2016-03-16 12:36 ` Jerome Glisse
2016-03-16 11:56 ` [PATCH 3/3] drm/radeon: uvd/vce properly pin/unpin firmware accross suspend/resume jglisse
2016-03-16 12:10 ` Christian König
2016-03-16 12:35 ` Jerome Glisse
2016-03-16 12:42 ` Christian König [this message]
2016-03-16 12:11 ` [PATCH 1/3] drm/radeon: fix indentation Christian König
2016-03-16 22:11 ` Alex Deucher
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=56E954CB.3070007@vodafone.de \
--to=deathsimple@vodafone.de \
--cc=alexander.deucher@amd.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=j.glisse@gmail.com \
--cc=jglisse@redhat.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.