From: Flora Cui <flora.cui@amd.com>
To: <guchun.chen@amd.com>, <amd-gfx@lists.freedesktop.org>,
<Alexander.Deucher@amd.com>
Cc: Alex Deucher <aleander.deucher@amd.com>, Flora Cui <flora.cui@amd.com>
Subject: [PATCH 3/3] drm/amdgpu: check atomic flag to differeniate with legacy path
Date: Wed, 24 Nov 2021 10:43:02 +0800 [thread overview]
Message-ID: <20211124024302.1493100-3-flora.cui@amd.com> (raw)
In-Reply-To: <20211124024302.1493100-1-flora.cui@amd.com>
since vkms support atomic KMS interface
Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Acked-by: Alex Deucher <aleander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 7d4115d52523..8e9e50aa4a95 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -3830,7 +3830,7 @@ void amdgpu_device_fini_hw(struct amdgpu_device *adev)
/* disable all interrupts */
amdgpu_irq_disable_all(adev);
if (adev->mode_info.mode_config_initialized){
- if (!amdgpu_device_has_dc_support(adev))
+ if (!drm_drv_uses_atomic_modeset(adev_to_drm(adev)))
drm_helper_force_disable_all(adev_to_drm(adev));
else
drm_atomic_helper_shutdown(adev_to_drm(adev));
@@ -5124,7 +5124,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
drm_sched_start(&ring->sched, !tmp_adev->asic_reset_res);
}
- if (!amdgpu_device_has_dc_support(tmp_adev) && !job_signaled) {
+ if (!drm_drv_uses_atomic_modeset(adev_to_drm(tmp_adev)) && !job_signaled) {
drm_helper_resume_force_mode(adev_to_drm(tmp_adev));
}
--
2.25.1
next prev parent reply other threads:[~2021-11-24 2:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 2:43 [PATCH 1/3] drm/amdgpu: cancel the correct hrtimer on exit Flora Cui
2021-11-24 2:43 ` [PATCH 2/3] drm/amdgpu: fix vkms crtc settings Flora Cui
2021-11-24 2:43 ` Flora Cui [this message]
2021-11-24 14:26 ` [PATCH 3/3] drm/amdgpu: check atomic flag to differeniate with legacy path Deucher, Alexander
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=20211124024302.1493100-3-flora.cui@amd.com \
--to=flora.cui@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=aleander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=guchun.chen@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox