From: Emily Deng <Emily.Deng-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Emily Deng <Emily.Deng-5C7GfCeVMHo@public.gmane.org>,
Monk Liu <Monk.Liu-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH] drm/amdgpu/sriov: reject kms open if TDR not finished or failed
Date: Wed, 25 Apr 2018 14:39:44 +0800 [thread overview]
Message-ID: <1524638384-31977-1-git-send-email-Emily.Deng@amd.com> (raw)
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
index 6d55cae..adeca71 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
@@ -847,6 +847,9 @@ int amdgpu_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv)
struct amdgpu_fpriv *fpriv;
int r, pasid;
+ if (adev->in_gpu_reset)
+ return -ECANCELED;
+
file_priv->driver_priv = NULL;
r = pm_runtime_get_sync(dev->dev);
--
2.7.4
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next reply other threads:[~2018-04-25 6:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-25 6:39 Emily Deng [this message]
[not found] ` <1524638384-31977-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org>
2018-04-25 7:47 ` [PATCH] drm/amdgpu/sriov: reject kms open if TDR not finished or failed Michel Dänzer
[not found] ` <5bede6f6-24b2-8a3a-d3d8-9a37ac6d13c8-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-04-26 2:03 ` Deng, Emily
[not found] ` <CY4PR12MB11254FFDBB4FCCF91CBDE9758F8E0-rpdhrqHFk07v2MZdTKcfDgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-04-26 7:33 ` Michel Dänzer
[not found] ` <e7756d73-aa65-b351-2b1a-81ceea1e013f-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-04-26 7:57 ` Deng, Emily
[not found] ` <CY4PR12MB112547536CD27B7FE2C330F38F8E0-rpdhrqHFk07v2MZdTKcfDgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-04-26 9:01 ` Michel Dänzer
[not found] ` <9d56b1c3-1e51-f3f1-17d6-c1615dea0a05-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-04-27 5:29 ` Deng, Emily
[not found] ` <CY4PR12MB1125653A73D8A22533FB3FBE8F8D0-rpdhrqHFk07v2MZdTKcfDgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-04-27 7:52 ` Michel Dänzer
[not found] ` <77a5af30-0371-4816-fcf5-0bbcffa4395c-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-04-27 8:15 ` Deng, Emily
[not found] ` <CY4PR12MB11253279D4404CF482FD7CF08F8D0-rpdhrqHFk07v2MZdTKcfDgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-04-27 8:22 ` Michel Dänzer
[not found] ` <fc3f05cd-ed48-c04e-cfcb-59ed5ab224e2-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-05-03 12:01 ` Christian König
2018-04-26 7:39 ` Liu, Monk
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=1524638384-31977-1-git-send-email-Emily.Deng@amd.com \
--to=emily.deng-5c7gfcevmho@public.gmane.org \
--cc=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