<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#c36">Comment # 36</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:foxbat@ruin.net" title="foxbat@ruin.net">foxbat@ruin.net</a>
</span></b>
<pre>(In reply to Michel Dänzer from <a href="show_bug.cgi?id=106258#c35">comment #35</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=140257" name="attach_140257" title="drm/amdgpu: GPU vs CPU page size fixes in amdgpu_vm_bo_split_mapping">attachment 140257</a> <a href="attachment.cgi?id=140257&action=edit" title="drm/amdgpu: GPU vs CPU page size fixes in amdgpu_vm_bo_split_mapping">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=106258&attachment=140257'>[review]</a> [review]
> drm/amdgpu: GPU vs CPU page size fixes in amdgpu_vm_bo_split_mapping
>
> Does this patch help?</span >
It looks like the patch isn't fully applying (using tree 4.17):
patching file drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
Hunk #1 FAILED at 1577.
Hunk #2 succeeded at 1463 with fuzz 2 (offset -127 lines).
Hunk #3 succeeded at 1480 (offset -125 lines).
1 out of 3 hunks FAILED -- saving rejects to file
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c.rej
rejects:
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -1577,7 +1577,9 @@ static int amdgpu_vm_bo_split_mapping(struct
amdgpu_device *adev,
uint64_t count;
max_entries = min(max_entries, 16ull * 1024ull);
- for (count = 1; count < max_entries; ++count) {
+ for (count = 1;
+ count < max_entries / (PAGE_SIZE /
AMDGPU_GPU_PAGE_SIZE);
+ ++count) {
uint64_t idx = pfn + count;
if (pages_addr[idx] !=</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>