#asahi-dev · 2026-01-21 13:40
JoshuaPeisach[mds]nevermind then! thanks for the sanity check though#asahi-dev · 2026-01-21 13:40
JoshuaPeisach[mds]oh macsmc_battery_get_property is supposed to return any error while trying to get the property right#asahi-dev · 2026-01-21 13:39
noopwafelso the intended logic is: if macsmc_battery_get_charge_behaviour returned an error, you return the error; otherwise, you return zero#asahi-dev · 2026-01-21 13:38
noopwafelyou return ret=0 on no error, and ret<0 on error, right#asahi-dev · 2026-01-21 13:35
JoshuaPeisach[mds]technically, wouldn't this evaluate to reporting `val->intval` when `val->intval` is **less than 0**, which should only occur in the case of an error?#asahi-dev · 2026-01-21 13:35
JoshuaPeisach[mds]`ret = val->intval < 0 ? val->intval : 0;`#asahi-dev · 2026-01-21 13:35
JoshuaPeisach[mds]question: while trying to look at the macsmc_power spam of failing to report charge_behaviour, before I knew about the PR that should fix that, I found in `macsmc_battery_get_property`, line 406 https://github.com/AsahiLinux/linux/blob/f1879b3d78dcf69a8ff9be3b504c1bd6d5f2f47/drivers/power/supply/macsmc-power.c#L406#asahi-dev · 2026-01-21 11:39
sklugjannau: That is great! Thank you.#asahi-dev · 2026-01-21 11:20
jannausklug: a fix (workaround) for suspend while HDMI on macbooks is plugged will be included in the next kernel#asahi-dev · 2026-01-21 09:23
sklugHi all, is there a way to reinit the display driver? I have a HDMI display connected to a M2 MBP and can't get it to work after sleep without rebooting. Replugging the display doesn't help. Dmesg output is here: https://paste.debian.net/hidden/ad3227dc#asahi-dev · 2026-01-21 06:34
yukaok, thx#asahi-dev · 2026-01-21 06:33
nickchanit's cpu0 in terms of functions like smp_processor_id()#asahi-dev · 2026-01-21 06:33
nickchanthat label doesnt' get compiled into the dtb anyway#asahi-dev · 2026-01-21 06:33
nickchanyuka: no, the naming convention in device tree doesn't matter#asahi-dev · 2026-01-21 06:32
yukaAs in when boot cpu is a pcore (cpu6 according to the adt) does that mean I have to use a different numbering in the linux device tree so that cpu0-3 are the pcores?#asahi-dev · 2026-01-21 06:30
yuka"note boot core is always considered cpu0" in device tree terms too?#asahi-dev · 2026-01-21 05:41
nickchanfor single core only compatible and reg is needed i think#asahi-dev · 2026-01-21 05:40
nickchannote boot core is always considered cpu0#asahi-dev · 2026-01-21 05:40
nickchanyuka: MPIDR_EL1 and reg value in dt#asahi-dev · 2026-01-21 05:17
yukaFor smp support in Linux, how does Linux know which core it is booted on?#asahi-dev · 2026-01-20 21:07
JoshuaPeisach[mds]chaos_princess: yeah, line 227, sorry https://github.com/AsahiLinux/linux/blob/f1879b3d78dcf69a8ff9be3b504c1bd6d5fa2f47/drivers/gpu/drm/asahi/mmu.rs#L207#asahi-dev · 2026-01-20 21:06
jannauyeah. we get to remove all the '.as_ref()' from the dev_* print macros again#asahi-dev · 2026-01-20 21:04
jannauI'm not sure but isn't the kernel VA range check more complicated as user space is free to place that where it likes#asahi-dev · 2026-01-20 21:02
jannauyou mean the ones in mmu.rs?#asahi-dev · 2026-01-20 21:02
chaos_princessmind linking the line?#asahi-dev · 2026-01-20 20:55
JoshuaPeisach[mds]kernel newbie here, question about the TODO in the “asahi” drm driver. I see it wants DMA address/range validation, is it basically just ensure address + range > kernel VA range global?#asahi-dev · 2026-01-20 19:35
jannaudone#asahi-dev · 2026-01-20 19:29
Bjarne[m]Oh, I missed that one!#asahi-dev · 2026-01-20 19:26
jannauyes, also the outdated help text. I'll do it#asahi-dev · 2026-01-20 19:23
Bjarne[m]Also the disclaimer could be removed now from the readme right?#asahi-dev · 2026-01-20 19:23
Bjarne[m]Ok!#asahi-dev · 2026-01-20 19:19
jannauBjarne[m]: maybe wait for #3 or at least ignore the multiple transports aspects of it for now#asahi-dev · 2026-01-20 19:18
Bjarne[m]I will continue with integrating macvdmtool then. #asahi-dev · 2026-01-20 19:18
Bjarne[m][jannau](https://matrix.to/#/@_oftc_jannau:matrix.org) Great!#asahi-dev · 2026-01-20 19:14
jannauBjarne[m]: manually merged. I already ran cargo fmt on each format. also fixed all clippy issues. thanks for this, I can now drop the horrible code from the downstream tipd driver#asahi-dev · 2026-01-20 19:04
Bjarne[m][jannau](https://matrix.to/#/@_oftc_jannau:matrix.org): I ran cargo fmt and added a commit to PR#4#asahi-dev · 2026-01-20 18:40
Bjarne[m]Might take a few days until I’ve time to finish macOS implementation#asahi-dev · 2026-01-20 18:39
Bjarne[m]I also have built a setup for merging macvdm and tuxvdm, I’m rather confident it will work but I’m trying to use as little C Code as possible.#asahi-dev · 2026-01-20 18:38
Bjarne[m][jannau](https://matrix.to/#/@_oftc_jannau:matrix.org): No I didn’t. I can run it now#asahi-dev · 2026-01-20 18:26
yukathis is all with cpuhp_setup_state() call in aic init commented out btw, since it hangs there otherwise#asahi-dev · 2026-01-20 18:25
yukaso I guess I should give it a rootfs#asahi-dev · 2026-01-20 18:25
yukait now complains about a missing rootfs#asahi-dev · 2026-01-20 18:20
fl0_idok, I should also try asahi-wip just in case#asahi-dev · 2026-01-20 18:20
yukabut possibly some other change I did at the same time was the cause#asahi-dev · 2026-01-20 18:20
yukaasahi-wip, but I was already based on that before#asahi-dev · 2026-01-20 18:19
fl0_idrebased on what? asahi branch?#asahi-dev · 2026-01-20 18:19
fl0_idlol nice#asahi-dev · 2026-01-20 18:19
fl0_idyuka thx#asahi-dev · 2026-01-20 18:16
jannauI think I'll merge #4 first so that the sysfs interface is gone