Skip to contentSkip to conversation

Patch "drm/amdgpu: return -ENOENT from uvd 6.0 early init for harvesting" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 2 messages Nov 5, 2017

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drm/amdgpu: return -ENOENT from uvd 6.0 early init for harvesting

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
drm-amdgpu-return-enoent-from-uvd-6.0-early-init-for-harvesting.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From cb4b02d7cac56a69d8137d8d843507cca9182aed Mon Sep 17 00:00:00 2001

From: Leo Liu <[email protected]>
Date: Tue, 31 Oct 2017 21:03:39 -0400
Subject: drm/amdgpu: return -ENOENT from uvd 6.0 early init for harvesting

From: Leo Liu <[email protected]>

commit cb4b02d7cac56a69d8137d8d843507cca9182aed upstream.

Fixes init failures on polaris cards with harvested UVD.

---
 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c +4 -0
@@ -83,6 +83,10 @@ static int uvd_v6_0_early_init(void *han
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 
+	if (!(adev->flags & AMD_IS_APU) &&
+	    (RREG32_SMC(ixCC_HARVEST_FUSES) & CC_HARVEST_FUSES__UVD_DISABLE_MASK))
+		return -ENOENT;
+
 	uvd_v6_0_set_ring_funcs(adev);
 	uvd_v6_0_set_irq_funcs(adev);
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/drm-amdgpu-return-enoent-from-uvd-6.0-early-init-for-harvesting.patch

author maintainer
#1 lore raw
Quoted 8 lines · On Sun, Nov 05, 2017 at 04:25:01PM +0100, [email protected] wrote:

This is a note to let you know that I've just added the patch titled

drm/amdgpu: return -ENOENT from uvd 6.0 early init for harvesting

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

Quoted 6 lines

The filename of the patch is:
drm-amdgpu-return-enoent-from-uvd-6.0-early-init-for-harvesting.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Nope, breaks the build, I've now dropped it.

greg k-h