* [PATCH] drm/amdgpu: fix the lost duplicates checking
@ 2015-12-07 9:08 Chunming Zhou
2015-12-07 12:15 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Chunming Zhou @ 2015-12-07 9:08 UTC (permalink / raw)
To: stable; +Cc: christian.koenig, Chunming Zhou
Change-Id: I657039670b2c022ac461f14094cd909b10c1a2a8
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
index e461357..07b1ddf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
@@ -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;
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] drm/amdgpu: fix the lost duplicates checking
2015-12-07 9:08 [PATCH] drm/amdgpu: fix the lost duplicates checking Chunming Zhou
@ 2015-12-07 12:15 ` Greg KH
2015-12-07 13:40 ` Christian König
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2015-12-07 12:15 UTC (permalink / raw)
To: Chunming Zhou; +Cc: stable, christian.koenig
On Mon, Dec 07, 2015 at 05:08:13PM +0800, Chunming Zhou wrote:
> Change-Id: I657039670b2c022ac461f14094cd909b10c1a2a8
Why is this here?
> Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
> Reviewed-by: Christian K�nig <christian.koenig@amd.com>
> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
> ---
> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/amdgpu: fix the lost duplicates checking
2015-12-07 12:15 ` Greg KH
@ 2015-12-07 13:40 ` Christian König
0 siblings, 0 replies; 3+ messages in thread
From: Christian König @ 2015-12-07 13:40 UTC (permalink / raw)
To: Greg KH, Chunming Zhou; +Cc: stable
On 07.12.2015 13:15, Greg KH wrote:
> <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:
stable@vger.kernel.org tag to the patch before pushing it upstream and
the David obviously misunderstood that he should send it as a mail to
stable@vger.kernel.org.
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-07 14:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07 9:08 [PATCH] drm/amdgpu: fix the lost duplicates checking Chunming Zhou
2015-12-07 12:15 ` Greg KH
2015-12-07 13:40 ` Christian König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).