From: Monk Liu <Monk.Liu-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Monk Liu <Monk.Liu-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH 4/6] drm/amdgpu:fix duplicated setting job's vram_lost
Date: Wed, 18 Oct 2017 16:48:23 +0800 [thread overview]
Message-ID: <1508316505-8506-4-git-send-email-Monk.Liu@amd.com> (raw)
In-Reply-To: <1508316505-8506-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
Change-Id: I7a29e1533fb3deb476bc0f3dba0f8b2e25baf8c1
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 1 -
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
index 52dd78e..32cf83e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@ -172,7 +172,6 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, void *data)
if (ret)
goto free_all_kdata;
- p->job->vram_lost_counter = atomic_read(&p->adev->vram_lost_counter);
if (p->ctx->vram_lost_counter != p->job->vram_lost_counter) {
ret = -ECANCELED;
goto free_all_kdata;
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
index a835788..0cfc68d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
@@ -61,11 +61,11 @@ int amdgpu_job_alloc(struct amdgpu_device *adev, unsigned num_ibs,
(*job)->vm = vm;
(*job)->ibs = (void *)&(*job)[1];
(*job)->num_ibs = num_ibs;
- (*job)->vram_lost_counter = atomic_read(&adev->vram_lost_counter);
amdgpu_sync_create(&(*job)->sync);
amdgpu_sync_create(&(*job)->dep_sync);
amdgpu_sync_create(&(*job)->sched_sync);
+ (*job)->vram_lost_counter = atomic_read(&adev->vram_lost_counter);
return 0;
}
--
2.7.4
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2017-10-18 8:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-18 8:48 [PATCH 1/6] drm/amdgpu:reduce wb to 512 slot Monk Liu
[not found] ` <1508316505-8506-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-10-18 8:48 ` [PATCH 2/6] drm/amdgpu:fix regression on KIQ enable Monk Liu
2017-10-18 8:48 ` [PATCH 3/6] drm/amdgpu/sriov:now must reinit psp Monk Liu
[not found] ` <1508316505-8506-3-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-10-19 2:53 ` Alex Deucher
2017-10-18 8:48 ` Monk Liu [this message]
[not found] ` <1508316505-8506-4-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-10-18 9:08 ` [PATCH 4/6] drm/amdgpu:fix duplicated setting job's vram_lost Christian König
2017-10-18 8:48 ` [PATCH 5/6] drm/amdgpu:fix vf_error_put Monk Liu
2017-10-18 8:48 ` [PATCH 6/6] drm/amdgpu:don't check soft_reset for sriov Monk Liu
[not found] ` <1508316505-8506-6-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-10-18 9:10 ` Christian König
2017-10-18 9:06 ` [PATCH 1/6] drm/amdgpu:reduce wb to 512 slot Christian König
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=1508316505-8506-4-git-send-email-Monk.Liu@amd.com \
--to=monk.liu-5c7gfcevmho@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox