All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guchun Chen <guchun.chen@amd.com>
To: amd-gfx@lists.freedesktop.org, alexander.deucher@amd.com,
	Hawking.Zhang@amd.com, Dennis.Li@amd.com, Stanley.Yang@amd.com,
	Tao.Zhou1@amd.com, John.Clements@amd.com, lijo.lazar@amd.com
Cc: Guchun Chen <guchun.chen@amd.com>
Subject: [PATCH 8/9] drm/amdgpu: restore ras flags when user resets eeprom
Date: Thu, 23 Jul 2020 16:33:45 +0800	[thread overview]
Message-ID: <20200723083346.8743-9-guchun.chen@amd.com> (raw)
In-Reply-To: <20200723083346.8743-1-guchun.chen@amd.com>

RAS flags needs to be cleaned as well when user requires
one clean eeprom.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index acb8231f2052..003bbd023c23 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -371,6 +371,8 @@ static ssize_t amdgpu_ras_debugfs_eeprom_write(struct file *f, const char __user
 	struct amdgpu_device *adev = (struct amdgpu_device *)file_inode(f)->i_private;
 	int ret;
 
+	amdgpu_ras_get_context(adev)->flags = RAS_DEFAULT_FLAGS;
+
 	ret = amdgpu_ras_eeprom_reset_table(&adev->psp.ras.ras->eeprom_control);
 
 	return ret == 1 ? size : -EIO;
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2020-07-23  8:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-23  8:33 [PATCH 0/9] BAD GPU retirement policy by total bad pages Guchun Chen
2020-07-23  8:33 ` [PATCH 1/9] drm/amdgpu: add bad page count threshold in module parameter Guchun Chen
2020-07-23  8:33 ` [PATCH 2/9] drm/amdgpu: validate bad page threshold in ras Guchun Chen
2020-07-23  8:33 ` [PATCH 3/9] drm/amdgpu: add bad gpu tag definition Guchun Chen
2020-07-23  8:33 ` [PATCH 4/9] drm/amdgpu: break driver init process when it's bad GPU Guchun Chen
2020-07-23  8:33 ` [PATCH 5/9] drm/amdgpu: skip bad page reservation once issuing from eeprom write Guchun Chen
2020-07-23  8:33 ` [PATCH 6/9] drm/amdgpu: schedule ras recovery when reaching bad page threshold Guchun Chen
2020-07-23  8:33 ` [PATCH 7/9] drm/amdgpu: break GPU recovery once it's bad Guchun Chen
2020-07-23  8:33 ` Guchun Chen [this message]
2020-07-23  8:33 ` [PATCH 9/9] drm/amdgpu: calculate actual size instead of hardcode size Guchun Chen

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=20200723083346.8743-9-guchun.chen@amd.com \
    --to=guchun.chen@amd.com \
    --cc=Dennis.Li@amd.com \
    --cc=Hawking.Zhang@amd.com \
    --cc=John.Clements@amd.com \
    --cc=Stanley.Yang@amd.com \
    --cc=Tao.Zhou1@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=lijo.lazar@amd.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.