<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - "BUG: unable to handle kernel paging request at 0000000000002000" in amdgpu_vm_cpu_set_ptes at amdgpu_vm.c:921"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107065#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - "BUG: unable to handle kernel paging request at 0000000000002000" in amdgpu_vm_cpu_set_ptes at amdgpu_vm.c:921"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107065">bug 107065</a>
from <span class="vcard"><a class="email" href="mailto:ckoenig.leichtzumerken@gmail.com" title="Christian König <ckoenig.leichtzumerken@gmail.com>"> <span class="fn">Christian König</span></a>
</span></b>
<pre>(In reply to Andrey Grodzovsky from <a href="show_bug.cgi?id=107065#c10">comment #10</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=140418" name="attach_140418" title="drm/amdgpu: Verify root PD is mapped into kernel address space.">attachment 140418</a> <a href="attachment.cgi?id=140418&action=edit" title="drm/amdgpu: Verify root PD is mapped into kernel address space.">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=107065&attachment=140418'>[review]</a> [review]
> drm/amdgpu: Verify root PD is mapped into kernel address space.
>
> dwagner, please try this patch. Fixes the issue for me and I observed no
> suspend/resume issues.
>
> Christian, please take a look at the patch, problem was that in
> amdgpu_vm_update_directories the parent BO didn't have a kernel mapping and
> so later inside amdgpu_vm_cpu_set_ptes
> pe += (unsigned long)amdgpu_bo_kptr(bo); would equal to 0000000000002000
> since
> parent amdgpu_bo_kptr woudld return NULL. The parent was the root PD.
>
> This was still working in 67b8d5c Linus Torvalds 7 weeks ago Linux
> 4.17-rc5 (tag: v4.17-rc5) but I wasn't able to exactly pinpoint which
> change broke it. I am not sure my fix is the right one so please advise.</span >
No idea when that broke either, CPU based updates is not something we usually
test.
Anyway it's a good catch, but I would rather add that to
amdgpu_vm_bo_base_init() (with the appropriate checks).
That would also allow us to remove the duplicated code from
amdgpu_vm_alloc_levels().</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>