<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - AMD Xorg start failes with non-4K page sizes"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106258#c30">Comment # 30</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - AMD Xorg start failes with non-4K page sizes"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106258">bug 106258</a>
from <span class="vcard"><a class="email" href="mailto:michel@daenzer.net" title="Michel Dänzer <michel@daenzer.net>"> <span class="fn">Michel Dänzer</span></a>
</span></b>
<pre>I suspect there's an issue in amdgpu_vm_bo_split_mapping, e.g. this code looks
suspicious:
if (pages_addr) {
uint64_t count;
max_entries = min(max_entries, 16ull * 1024ull);
for (count = 1; count < max_entries; ++count) {
uint64_t idx = pfn + count;
if (pages_addr[idx] !=
(pages_addr[idx - 1] + PAGE_SIZE))
break;
}
count is compared to max_entries, which is a number of GPU pages, but is also
added to pfn, which is a number of CPU pages.</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>