#asahi · 2022-10-26 04:04
cadenIDENTIFY#asahi · 2022-10-26 04:03
cadenHello. Anyone in here? Sorry, first time using IRC.#asahi · 2022-10-26 00:52
sadams0978Not sure if this is the best place to post this, I'm trying to get Lina's M1 GPU driver to work on my M1 MBA. I have CONFIG_DRM_APPLE, enabled in my Kernel config and compiled and updated n1n1, DTB, and MESA. Will U-Boot work, or do I have to do a direct kernel payload from m1n1?#asahi · 2022-10-25 22:00
tpw_ruleshonestly you might be surprised how much of that is qemu#asahi · 2022-10-25 21:56
nicolas17maybe I should try a ramdisk on the lenovo#asahi · 2022-10-25 21:56
nicolas17lenovo: 42 minutes; MBP: 2m30s#asahi · 2022-10-25 21:52
nicolas17(I think the SSD is actually making the biggest difference)#asahi · 2022-10-25 21:52
nicolas17I have a Lenovo laptop with an Intel i5-8250U CPU (= need to use qemu) and a *mechanical* hard disk, and a MacBook Pro M2 with Apple's fast SSDs and Asahi... any guesses about the perf difference running these scripts? :P#asahi · 2022-10-25 21:50
nicolas17if you run it on Intel it has to do half the work under qemu-aarch64-user (it creates a base environment, then chroots into it and installs more stuff, and at that point it's running the ARM64 binaries inside the chroot)#asahi · 2022-10-25 21:49
nicolas17I was building a raspberry pi disk image with pi-gen (the same scripts they use for the official raspberry pi os images)#asahi · 2022-10-25 21:12
bcrumbis there any difference to battery charging when running arch / mac os?#asahi · 2022-10-25 18:46
ChaosPrincessstill kind of a hack tho#asahi · 2022-10-25 18:46
ChaosPrincessi guess thats also a solution#asahi · 2022-10-25 18:46
jannauChaosPrincess: wrong. it switches to gpu compositing#asahi · 2022-10-25 18:45
j`eyI seem to remember markan showing this on stream at one point, or something similar#asahi · 2022-10-25 18:45
jannauI don't remember exactly how the cursor get's distorted#asahi · 2022-10-25 18:44
ChaosPrincessand macos solves it by adjusting the contents of cursor plane if it gets too close to the edge?#asahi · 2022-10-25 18:43
jannauthe cursor gets distorted if it's more than half off-screen with an naive cursor plane. but that is not in the merged dcp driver#asahi · 2022-10-25 18:43
j`ey yeah that bit was a bit confusingm sounded like it scaled up the remaining pixels, which would make the cursor bigger if it was near the edge?#asahi · 2022-10-25 18:42
ChaosPrincessjannau: what exactly does dcp do if you move cursor offscreen? not sure i understood what you meant by 'scaling to 32'#asahi · 2022-10-25 18:40
j`eyso just dont move the mouse near the edge of the screen :P#asahi · 2022-10-25 18:39
jannauif there are less than 32x32 pixel of the overlay on screen dcp scaling the remaing data to 32 picxels or so#asahi · 2022-10-25 18:37
jannauno need to redraw the primary plane for mouse movements. the blending has an unfortunate limitation for this use case#asahi · 2022-10-25 18:37
j`eyok cool, so just me misunderstanding the current driver, got it!#asahi · 2022-10-25 18:35
jannauyes, dcp can blend at least 2 planes (the rpc interface has 4). it would be a good idea to use the second plane for the cursor#asahi · 2022-10-25 18:23
j`eyjannau: oh my bad. but DCP itself has planes and the current driver just doesnt use them or?#asahi · 2022-10-25 18:21
ChaosPrincessit looks like expected when stationary, but flickers and jumps when moved#asahi · 2022-10-25 18:21
jannaudcp has just the primary plane#asahi · 2022-10-25 18:20
jannauno, the dcp driver in asahi-wip doesn't have a cursor plane and the cursor looks as expected for me in plasma/wayland#asahi · 2022-10-25 18:11
j`eyyeah chadme_ & janna_ were talking about cursor planes this morning on -dev#asahi · 2022-10-25 18:09
j`eybut I guess it's a higher level that decides what goes in what planes#asahi · 2022-10-25 18:08
j`eyyes I believe so#asahi · 2022-10-25 18:03
ChaosPrincessis there a separate plane for the cursor in the dcp driver? the cursor looks really weird, and i do not see a separate plane from skimming the dcp driver code#asahi · 2022-10-25 17:50
ChaosPrincesstyvm, figured it out#asahi · 2022-10-25 17:29
jannauChaosPrincess: that doesn't look ventura related. the 1st stage m1n1 doesn't get DTBs, it needs variables to tell it from where to chainload and the partuuid of the ESP for this installation#asahi · 2022-10-25 17:13
ChaosPrincessi seem to have some problems installing m1n1 after a ventura update. i built it with RELEASE=1 and CHAINLOADING=1, did cat m1n1.bin /path/to/kernel/*.dtb and blessed the resulting object with kmutil. But instead of chainloading, it says 'devicetree found but no kernel'#asahi · 2022-10-25 15:41
boriskOverall, M1 Max has way, way better and faster memroy/cache subsystem and it's made on a better node, so I sort of expected it will at least match i9. Also, this is subjective (can't measure power draw), but i9 doesn't seem to run especially hot: the fan is not audible and the exhaust air is barely warm, about on par with Mac Studio. #asahi · 2022-10-25 15:36
boriskj`ey: both have 64GB. Specifically, DDR5-4400 with ECC in the i9 case and LPDDR5-6400 in the M1 Max case.#asahi · 2022-10-25 15:34
borisk_jannau_: this is native compilation on both. Yes, I realize I am not comparing the same workloads, especially if optimization is involved (since it's optimizing for different architectures). Though I see the same difference with debug builds.#asahi · 2022-10-25 15:32
boriskmarcan: ok, thanks for confirming this is not unexpected#asahi · 2022-10-25 15:07
j`eyand what about RAM sizes? on the 2 machines#asahi · 2022-10-25 15:06
marcan(much better OoO on Apple)#asahi · 2022-10-25 15:06
marcanj`ey: yeah (though that probably helps intel close the IPC gap with Apple more than anything else, since Apple are much better at that)#asahi · 2022-10-25 15:06
_jannau_also are you cross-compiling on either the intel or the m1 system? if not you're comparing different workloads#asahi · 2022-10-25 15:06
j`eyalso it seems the i9 has 24 threads too#asahi · 2022-10-25 15:05
marcanborisk: ^#asahi · 2022-10-25 15:05
marcanif anything the Max being only 30% slower is pretty awesome#asahi · 2022-10-25 15:05
marcanyou're comparing a 16 core processor that can turbo at 5.2 GHz and burn power vs. a 10 core processor that maxes out at 3 GHz multicore and uses 1/3 of the power#asahi · 2022-10-25 15:03
marcanso I really don't see what the problem is#asahi · 2022-10-25 15:03
marcan30% slower sounds completely expected for these CPUs