#asahi-gpu · 2023-09-08 23:16
alyssai509vcb: happy reviewing https://gitlab.freedesktop.org/asahi/mesa/-/merge_requests/190#asahi-gpu · 2023-09-08 23:13
i509vcb(trying to get blits to at least try to run)#asahi-gpu · 2023-09-08 23:13
i509vcbalyssa: any pointers for implementing load_layer_id on agxv? I noticed a few drivers involve creating an nir_variable but I suspect this might not be right for agxv#asahi-gpu · 2023-09-08 18:00
alyssa?#asahi-gpu · 2023-09-08 17:59
alyssalina: I assume the answer is yes, but 4K VMs on a 16K system are also affected (no SVM inside the VM?)#asahi-gpu · 2023-09-08 17:38
karolherbstyeah..#asahi-gpu · 2023-09-08 17:37
jannauit would allow using multi page folios for mmap but it's far off from being merged and might not be application controllable#asahi-gpu · 2023-09-08 17:36
karolherbstohh.. I can also generate links.. handy#asahi-gpu · 2023-09-08 17:33
karolherbstuhh.. I can access lwn via RH for free, but I might have to fix some VPN stuff for it.. let's see...#asahi-gpu · 2023-09-08 17:33
jannaudone#asahi-gpu · 2023-09-08 17:33
linajannau: I'll read it later but that would be nice ^^#asahi-gpu · 2023-09-08 17:33
linaAnyway really, nn ^^#asahi-gpu · 2023-09-08 17:33
jannauI can send an subscriber link#asahi-gpu · 2023-09-08 17:33
linaLike my broken shm hack to get order-2 allocs#asahi-gpu · 2023-09-08 17:32
karolherbstjust `MAP_HUGE_2MB` I guess...#asahi-gpu · 2023-09-08 17:32
jannauhttps://lwn.net/Articles/943758/ might help#asahi-gpu · 2023-09-08 17:32
linaThere are probably a bunch of weird specific solutions ^^#asahi-gpu · 2023-09-08 17:32
linaThere's no general solution to this problem#asahi-gpu · 2023-09-08 17:32
karolherbstI wonder if there is mmap magic userspace could do#asahi-gpu · 2023-09-08 17:32
karolherbstmhh#asahi-gpu · 2023-09-08 17:32
linaIt would work with hugepages w#asahi-gpu · 2023-09-08 17:31
lina(That's already how it works on 4K kernels if you try to give it unaligned BOs ^^)#asahi-gpu · 2023-09-08 17:30
karolherbstgood night#asahi-gpu · 2023-09-08 17:30
karolherbstbut yeah...#asahi-gpu · 2023-09-08 17:30
karolherbst:D#asahi-gpu · 2023-09-08 17:30
karolherbstuserspace could always try though and the kernel either accepts a mapping or not....#asahi-gpu · 2023-09-08 17:30
karolherbstheh#asahi-gpu · 2023-09-08 17:30
lina4K is just for gamers anyway ^^#asahi-gpu · 2023-09-08 17:29
karolherbstit's such a niche feature, just that SyCL/HIP require it :')#asahi-gpu · 2023-09-08 17:29
linaAnyway, nn Â^^#asahi-gpu · 2023-09-08 17:29
linaYeah, no SVM on 4K#asahi-gpu · 2023-09-08 17:29
karolherbstbut whatever#asahi-gpu · 2023-09-08 17:29
karolherbstin which case no SVM...#asahi-gpu · 2023-09-08 17:29
karolherbstwell..#asahi-gpu · 2023-09-08 17:29
karolherbstyeah...#asahi-gpu · 2023-09-08 17:29
linaSo yeah that's never going to work#asahi-gpu · 2023-09-08 17:29
karolherbst*then#asahi-gpu · 2023-09-08 17:29
linaAnd can't be made contiguous reliably even if you have weird migration stuff#asahi-gpu · 2023-09-08 17:29
karolherbstyeah if that's required that you are screwed :D#asahi-gpu · 2023-09-08 17:28
karolherbstohh#asahi-gpu · 2023-09-08 17:28
linaYeah, which won't be contiguous#asahi-gpu · 2023-09-08 17:28
karolherbstthough it _might_ just work anyway#asahi-gpu · 2023-09-08 17:28
karolherbstthat would be 4 pages...#asahi-gpu · 2023-09-08 17:28
karolherbstohh right...#asahi-gpu · 2023-09-08 17:28
karolherbstmhhh#asahi-gpu · 2023-09-08 17:28
karolherbstso you map the entire page, but the driver deals with the alignment#asahi-gpu · 2023-09-08 17:28
linaThe GPU pages are 16K so good luck mapping arbitrary CPU 4K pages...#asahi-gpu · 2023-09-08 17:28
linaI mean on AGX#asahi-gpu · 2023-09-08 17:28
karolherbstiris can map arbitrary pointers, you just offset it#asahi-gpu · 2023-09-08 17:28
karolherbstnah, that's fine