<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c, branch v4.4.64</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v4.4.64</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v4.4.64'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2016-08-20T16:09:22+00:00</updated>
<entry>
<title>drm/amdgpu: Disable RPM helpers while reprobing connectors on resume</title>
<updated>2016-08-20T16:09:22+00:00</updated>
<author>
<name>Lyude</name>
<email>cpaul@redhat.com</email>
</author>
<published>2016-07-18T15:41:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3281d1055ca82a240e6f38c5b011bc1f3f28d4b6'/>
<id>urn:sha1:3281d1055ca82a240e6f38c5b011bc1f3f28d4b6</id>
<content type='text'>
commit 23a1a9e54e71593fe5657e883662995d181d2d6b upstream.

Just about all of amdgpu's connector probing functions try to acquire
runtime PM refs. If we try to do this in the context of
amdgpu_resume_kms by calling drm_helper_hpd_irq_event(), we end up
deadlocking the system.

Since we're guaranteed to be holding the spinlock for RPM in
amdgpu_resume_kms, and we already know the GPU is in working order, we
need to prevent the RPM helpers from trying to run during the initial
connector reprobe on resume.

There's a couple of solutions I've explored for fixing this, but this
one by far seems to be the simplest and most reliable (plus I'm pretty
sure that's what disable_depth is there for anyway).

Reproduction recipe:
  - Get any laptop dual GPUs using PRIME
  - Make sure runtime PM is enabled for amdgpu
  - Boot the machine
  - If the machine managed to boot without hanging, switch out of X to
    another VT. This should definitely cause X to hang infinitely.

Changes since v1:
  - add appropriate #ifdef checks for CONFIG_PM. This is not very
    useful, but it appears some kernel test suites test compiling amdgpu
    with CONFIG_PM disabled, which results in this patch breaking the builds
    if we don't include this #ifdef

Cc: Alex Deucher &lt;alexdeucher@gmail.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Lyude &lt;cpaul@redhat.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>Revert "drm/amdgpu: disable runtime pm on PX laptops without dGPU power control"</title>
<updated>2016-05-04T21:48:43+00:00</updated>
<author>
<name>Alex Deucher</name>
<email>alexander.deucher@amd.com</email>
</author>
<published>2016-04-25T17:12:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=54aeb5854ec03315a721268b8c207fcdcd7f298f'/>
<id>urn:sha1:54aeb5854ec03315a721268b8c207fcdcd7f298f</id>
<content type='text'>
commit e9bef455af8eb0e837e179aab8988ae2649fd8d3 upstream.

This reverts commit bedf2a65c1aa8fb29ba8527fd00c0f68ec1f55f1.

See the radeon revert for an extended description.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>drm/amdgpu: disable runtime pm on PX laptops without dGPU power control</title>
<updated>2016-04-12T16:08:59+00:00</updated>
<author>
<name>Alex Deucher</name>
<email>alexander.deucher@amd.com</email>
</author>
<published>2016-03-02T17:10:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5b5abb9b85e97630e07b2b6d33f4739a2eb4e872'/>
<id>urn:sha1:5b5abb9b85e97630e07b2b6d33f4739a2eb4e872</id>
<content type='text'>
commit bedf2a65c1aa8fb29ba8527fd00c0f68ec1f55f1 upstream.

Some PX laptops don't provide an ACPI method to control dGPU power.  On
those systems, the driver is responsible for handling the dGPU power
state.  Disable runtime PM on them until support for this is implemented.

Reviewed-by: Michel Dänzer &lt;michel.daenzer@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>drm/amdgpu: fix s4 resume</title>
<updated>2016-03-03T23:07:19+00:00</updated>
<author>
<name>Flora Cui</name>
<email>Flora.Cui@amd.com</email>
</author>
<published>2016-02-04T07:10:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=94703402213a01ce0fb0aa4e646cdfc2610f17b5'/>
<id>urn:sha1:94703402213a01ce0fb0aa4e646cdfc2610f17b5</id>
<content type='text'>
commit ca19852884c8937eed89560f924f5a34cfcc22af upstream.

No need to re-init asic if it's already been initialized.
Skip IB tests since kernel processes are frozen in thaw.

Signed-off-by: Flora Cui &lt;Flora.Cui@amd.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>drm/amdgpu: call hpd_irq_event on resume</title>
<updated>2016-03-03T23:07:18+00:00</updated>
<author>
<name>Alex Deucher</name>
<email>alexander.deucher@amd.com</email>
</author>
<published>2015-11-24T19:30:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d1ad20f15b1d545642474860cc17a7dd6b051d50'/>
<id>urn:sha1:d1ad20f15b1d545642474860cc17a7dd6b051d50</id>
<content type='text'>
commit 54fb2a5cd0baf8e97d743de411e2f832d1afa68d upstream.

Need to call this on resume if displays changes during
suspend in order to properly be notified of changes.

Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>drm/amdgpu: update the core VI support for Stoney</title>
<updated>2015-10-21T16:21:31+00:00</updated>
<author>
<name>Samuel Li</name>
<email>samuel.li@amd.com</email>
</author>
<published>2015-10-08T20:31:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=39bb0c92829ad9d7525fa809aa89fc411c85a2c2'/>
<id>urn:sha1:39bb0c92829ad9d7525fa809aa89fc411c85a2c2</id>
<content type='text'>
Add core VI enablement for Stoney.

Signed-off-by: Samuel Li &lt;samuel.li@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: add Stoney chip family</title>
<updated>2015-10-21T16:19:12+00:00</updated>
<author>
<name>Samuel Li</name>
<email>samuel.li@amd.com</email>
</author>
<published>2015-10-08T18:50:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=139f491799c303c5269cf6d5600cec9bbf9853e6'/>
<id>urn:sha1:139f491799c303c5269cf6d5600cec9bbf9853e6</id>
<content type='text'>
Stoney is based on Carrizo with some IP upgrades.

Signed-off-by: Samuel Li &lt;samuel.li@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: remove the exclusive lock</title>
<updated>2015-10-21T15:35:12+00:00</updated>
<author>
<name>Christian König</name>
<email>christian.koenig@amd.com</email>
</author>
<published>2015-09-01T13:13:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0c418f10104d4aa1d6b83698790898dc9ef1c12d'/>
<id>urn:sha1:0c418f10104d4aa1d6b83698790898dc9ef1c12d</id>
<content type='text'>
Finally getting rid of it.

Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: remove old lockup detection infrastructure</title>
<updated>2015-10-21T15:35:12+00:00</updated>
<author>
<name>Christian König</name>
<email>christian.koenig@amd.com</email>
</author>
<published>2015-09-01T08:50:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b7e4dad3e1fc5d3909737fb72e57aedeb0072c7f'/>
<id>urn:sha1:b7e4dad3e1fc5d3909737fb72e57aedeb0072c7f</id>
<content type='text'>
It didn't worked to well anyway.

Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Chunming Zhou &lt;david1.zhou@amd.com&gt;
Reviewed-by: Junwei Zhang &lt;Jerry.Zhang@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: unpin cursor BOs on suspend and pin them again on resume</title>
<updated>2015-10-14T20:16:35+00:00</updated>
<author>
<name>Alex Deucher</name>
<email>alexander.deucher@amd.com</email>
</author>
<published>2015-10-08T04:03:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=756e6880c51376d2e4d53050582d66d88fc281c7'/>
<id>urn:sha1:756e6880c51376d2e4d53050582d66d88fc281c7</id>
<content type='text'>
Everything is evicted from VRAM before suspend, so we need to make
sure all BOs are unpinned and re-pinned after resume. Fixes broken
mouse cursor after resume introduced by commit b9729b17.

Port of radeon commit:
f3cbb17bcf676a2fc6aedebe9fbebd59e550c51a

Reviewed-by: Michel Dänzer &lt;michel.daenzer@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
</feed>
