#asahi-gpu · 2023-10-24 23:12
karolherbstnoice#asahi-gpu · 2023-09-08 17:38
karolherbstyeah..#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:32
karolherbstjust `MAP_HUGE_2MB` I guess...#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: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:29
karolherbstit's such a niche feature, just that SyCL/HIP require it :')#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
karolherbst*then#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
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
karolherbstiris can map arbitrary pointers, you just offset it#asahi-gpu · 2023-09-08 17:28
karolherbstnah, that's fine#asahi-gpu · 2023-09-08 17:27
karolherbstI have a prototype for that against iris, I just have to fix it#asahi-gpu · 2023-09-08 17:26
karolherbstand that's all you need for basic SVM#asahi-gpu · 2023-09-08 17:26
karolherbstbut anyway.. userspace needs a way to map arbitrary host memory into the GPU AS, which is generally called "userptr"#asahi-gpu · 2023-09-08 17:26
karolherbsthave a good rest!#asahi-gpu · 2023-09-08 17:26
karolherbstheh#asahi-gpu · 2023-09-08 17:26
karolherbstyeah.. me neither :D#asahi-gpu · 2023-09-08 17:25
karolherbstI don't have a solution for that, but luckly nothing yet requires it#asahi-gpu · 2023-09-08 17:25
karolherbstand then you'd have to careveout all invalid regions#asahi-gpu · 2023-09-08 17:25
karolherbstlina: yeah....#asahi-gpu · 2023-09-08 17:25
karolherbstyeah, the carveout needs to happen, but as long as you don't use mmu_notifiers to mirror arbitrary CPU memory, having the address spaces be a different size isn't a problem#asahi-gpu · 2023-09-08 17:24
karolherbstright...#asahi-gpu · 2023-09-08 16:19
karolherbstI still have to write a proper protototype for all of this, but I'm kinda having a plan#asahi-gpu · 2023-09-08 16:18
karolherbstmemory used for SVM needs to be allocated manually and you can just use mmap instead of malloc and restrict the area from where to allocate#asahi-gpu · 2023-09-08 16:18
karolherbstand anyway, as long as you don't do full system SVM the address space size doesn't matter#asahi-gpu · 2023-09-08 16:17
karolherbstare you managing the VM in userspace or kernel space?#asahi-gpu · 2023-09-03 14:09
karolherbstand at first I thought that was my fault :')#asahi-gpu · 2023-08-31 15:01
karolherbstrosefromthedead: if you want to do that timer stuff feel free, I have way too many other things to work on#asahi-gpu · 2023-08-31 12:02
karolherbstanyway.. what rusticl is kinda doing is to insert `PIPE_QUERY_TIMESTAMP` around gallium API calls, that happens in batches and at some point that all gets flushed out. And reading the result happens all on the CPU side. #asahi-gpu · 2023-08-31 11:53
karolherbst_but_ I guess `drm_asahi_result_compute` is good enough here, I just have to figure out how to pipe that all through#asahi-gpu · 2023-08-31 11:50
karolherbstI don't need anything inside the shader afaik#asahi-gpu · 2023-08-31 11:50
karolherbstanyway.. I need proper support for PIPE_QUERY_TIMESTAMP and pipe_screen::get_timestamp (which I guess should use the drm_asahi_get_time ioctl)#asahi-gpu · 2023-08-31 11:48
karolherbstlike I kinda need to know when the GPU reaches a certain point in the command stream#asahi-gpu · 2023-08-31 11:47
karolherbstyeah.. so I kinda need it as part of command submission and as a host query, so probably 1 and 2