<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Typo Correction bellow <br>
</p>
<div class="moz-cite-prefix">On 1/7/21 11:26 AM, Andrey Grodzovsky
wrote:<br>
</div>
<blockquote type="cite" cite="mid:75c8a6f3-1e71-3242-6576-c0e661d6a62f@amd.com">
<blockquote type="cite" style="color: #000000;">
<br>
Or is the idea to save the struct page * pointer? That feels a
bit like
<br>
over-optimizing stuff. Better to have a simple implementation
first and
<br>
then tune it if (and only if) any part of it becomes a problem
for normal
<br>
usage.
<br>
</blockquote>
<br>
<br>
Exactly - the idea is to avoid adding extra pointer to
drm_gem_object,
<br>
Christian suggested to instead keep a linked list of dummy pages
to be
<br>
allocated on demand once we hit a vm_fault. I will then also
prefault the entire
<br>
VA range from vma->vm_end - vma->vm_start to vma->vm_end
and map them
<br>
to that single dummy page.
<br>
</blockquote>
<p><br>
</p>
<p>Obviously the range is from vma->vm_start to vma->vm_end</p>
<p>Andrey</p>
<p><br>
</p>
<blockquote type="cite" cite="mid:75c8a6f3-1e71-3242-6576-c0e661d6a62f@amd.com">
<br>
Andrey
</blockquote>
</body>
</html>