Skip to contentSkip to conversation

drm/amdgpu: fix the lost duplicates checking

PATCH In review Chunming Zhou 3 participants 3 messages Dec 7, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: fix the lost duplicates checking

Change-Id I657039670b2c022ac461f14094cd909b10c1a2a8
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +8 -0
index e461357..07b1ddf 100644
@@ -535,6 +535,14 @@ static void amdgpu_gem_va_update_vm(struct amdgpu_device *adev,
 		if (domain == AMDGPU_GEM_DOMAIN_CPU)
 			goto error_unreserve;
 	}
+	list_for_each_entry(entry, &duplicates, head) {
+		domain = amdgpu_mem_type_to_domain(entry->bo->mem.mem_type);
+		/* if anything is swapped out don't swap it in here,
+		   just abort and wait for the next CS */
+		if (domain == AMDGPU_GEM_DOMAIN_CPU)
+			goto error_unreserve;
+	}
+
 	r = amdgpu_vm_update_page_directory(adev, bo_va->vm);
 	if (r)
 		goto error_unreserve;
Signature · 1 line
1.9.1
#1 lore raw
Quoted 1 line · Chunming Zhou

Change-Id: I657039670b2c022ac461f14094cd909b10c1a2a8

Why is this here?

Quoted 6 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 8 ++++++++
 1 file changed, 8 insertions(+)

<formletter>

This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.

</formletter>

maintainer
#2 lore raw
Quoted 7 lines · Greg KH

<formletter>

This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.

</formletter>

Sorry that's my fault. I noted that we need to add a Cc: [email protected] tag to the patch before pushing it upstream and the David obviously misunderstood that he should send it as a mail to [email protected].

Please ignore this mail and *DON'T* add it to the stable tree. This patch should make it's normal way though into the kernel through the subsystem maintainer.

Best regards,
Christian.