<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>anyone to review those patches ?</p>
<p>they are for SRIOV case mainly, and they are prepare for later TDR feature (GPU-reset on SR-IOV)</p>
<p><br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>发件人:</b> Monk Liu <Monk.Liu@amd.com><br>
<b>发送时间:</b> 2017年2月4日 18:34:59<br>
<b>收件人:</b> amd-gfx@lists.freedesktop.org<br>
<b>抄送:</b> Liu, Monk<br>
<b>主题:</b> [PATCH 07/21] drm/amdgpu:fix gart table vram pin</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">if this call is from resume, shouldn't enter pin logic at all<br>
<br>
Change-Id: I40a5cdc2a716c4c20d2812fd74ece4ea284b6765<br>
Signed-off-by: Monk Liu <Monk.Liu@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 5 +++++<br>
1 file changed, 5 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c<br>
index 964d2a9..5e907f7 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c<br>
@@ -151,6 +151,11 @@ int amdgpu_gart_table_vram_pin(struct amdgpu_device *adev)<br>
uint64_t gpu_addr;<br>
int r;<br>
<br>
+ if (adev->gart.table_addr) {<br>
+ /* it's a resume call, gart already pin */<br>
+ return 0;<br>
+ }<br>
+<br>
r = amdgpu_bo_reserve(adev->gart.robj, false);<br>
if (unlikely(r != 0))<br>
return r;<br>
-- <br>
2.7.4<br>
<br>
</div>
</span></font>
</body>
</html>