<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div>Reviewed-by Andrey Grodzovsky<andrey.grodzovsky@amd.com></div>
<div><br>
</div>
<div>Andrey</div>
<div><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Emily.Deng <Emily.Deng@amd.com><br>
<b>Sent:</b> 07 October 2020 21:35<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Deng, Emily <Emily.Deng@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu: Remove warning for virtual_display</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Remove the virtual_display warning in drm_crtc_vblank_off when<br>
dev->num_crtcs is null.<br>
<br>
Signed-off-by: Emily.Deng <Emily.Deng@amd.com><br>
Change-Id: I755150a32478d8c128eed7ed98a71175d2b3aefc<br>
---<br>
drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 4 +++-<br>
1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c<br>
index 52d40b5e14db..fcf61d94fbc8 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c<br>
@@ -189,8 +189,10 @@ static void dce_virtual_crtc_commit(struct drm_crtc *crtc)<br>
static void dce_virtual_crtc_disable(struct drm_crtc *crtc)<br>
{<br>
struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc);<br>
+ struct drm_device *dev = crtc->dev;<br>
<br>
- drm_crtc_vblank_off(crtc);<br>
+ if (!dev->num_crtcs)<br>
+ drm_crtc_vblank_off(crtc);<br>
<br>
amdgpu_crtc->enabled = false;<br>
amdgpu_crtc->pll_id = ATOM_PPLL_INVALID;<br>
-- <br>
2.25.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Candrey.grodzovsky%40amd.com%7Cfd5676290dcd40dc951b08d86b2a6ea1%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637377177905980484&sdata=7k9NLDRoiOFoLTxL%2BS2gHaIs5cQ7nNmch5onjEm9nnU%3D&reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Candrey.grodzovsky%40amd.com%7Cfd5676290dcd40dc951b08d86b2a6ea1%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637377177905980484&sdata=7k9NLDRoiOFoLTxL%2BS2gHaIs5cQ7nNmch5onjEm9nnU%3D&reserved=0</a><br>
</div>
</span></font></div>
</body>
</html>