#
#asahi-dev · 2024-10-01 17:07
chaos_princesst7000-handheld/t7000-desktop :P
#asahi-dev · 2024-10-01 17:06
nickchanwell it does not really matter, t7000-iphone-ipad-ipod.dtsi it is then
#asahi-dev · 2024-10-01 17:06
nickchanfor each soc probably want a common dtsi for iphone ipad and ipod not sure what to name it though
#asahi-dev · 2024-10-01 17:03
nickchanespecially the framebuffer the power domains for the framebuffer on Apple TV is not going to be the same as the one on iPhone
#asahi-dev · 2024-10-01 17:03
nickchanbut namely framebuffer memory and reserved-memory does not go into the SoC dtsi
#asahi-dev · 2024-10-01 17:02
nickchanafter looking into a7-a11 devices some more I probably want to split the device trees in a different way, so a v6 is happening
#asahi-dev · 2024-09-30 23:11
Zollerboy1I just chose the asahi kernel as the baseline for my rust explorations, because it's still quite close to the t2-linux kernel that I need for my Intel mac and because it has a few more Rust bindings than the rust4linux kernel.
#asahi-dev · 2024-09-30 23:09
Zollerboy1chadmed_: I would love to contribute to asahi specifically, but I don't think that I can really be that useful, because I don't actually own an M1 mac ;)
#asahi-dev · 2024-09-30 22:59
chadmed_there are a couple of things in macsmc-hwmon that could probably be made a bit less rubbish by riir
#asahi-dev · 2024-09-30 22:59
chadmed_alternatively if you want to contribute to asahi specifically ill take hwmon bindings ;)
#asahi-dev · 2024-09-30 22:57
fl0_idZollerboy1 OTOH, maybe the current situation is exactly the right thing to start with a rust patch ;)
#asahi-dev · 2024-09-30 22:46
Zollerboy1jannau: thanks for the link. I'm still learning to navigate the jungle that is linux kernel patches :)
#asahi-dev · 2024-09-30 22:37
jannauand in https://rust-for-linux.zulipchat.com two people were asking for rust chardev implementions recently
#asahi-dev · 2024-09-30 22:35
jannauthere is currently a misc device patch on the mailing list https://lore.kernel.org/rust-for-linux/2024092708-rust-wrath-306d@gregkh/T/#t
#asahi-dev · 2024-09-30 22:33
Zollerboy1jannau: Yeah, I was just writing an abstraction for character device drivers in Rust (which afaics doesn't exist anywhere – but please prove me wrong^^) and was wondering if and how this could *eventually* get upstreamed. I have never submitted a patch to the linux kernel before, so I'm not quite sure on the process and also thought that in the current situation starting with a Rust patch specifically could be not such a
#asahi-dev · 2024-09-30 22:28
jannauZollerboy1: I think the best approach would be looking at upstream / rust4linux / zulip / rust-next. Before starting something new check if it already exists and if it does see into upstreaming that
#asahi-dev · 2024-09-30 22:25
jannauI don't think so. the problem is several layers before drm. I don't expect problems with drm specifically
#asahi-dev · 2024-09-30 22:17
chadmed_Zollerboy1: aiui the drm rust bindings in our fork are mostly blocked by bikeshedding
#asahi-dev · 2024-09-30 17:36
Zollerboy1opticron: huh? that's strange. the rest of the message was "main kernel? Thanks!" :)
#asahi-dev · 2024-09-30 17:17
opticronZollerboy1, your message cut off after "contribute to the Asahi fork or the" though we did get the next message about specific questions
#asahi-dev · 2024-09-30 16:12
svennot to remove it entirely
#asahi-dev · 2024-09-30 16:12
sventhe suggestion was to replace the _relaxed variant with the normal one
#asahi-dev · 2024-09-30 16:04
nickchanoh nice linux has the driver for the battery gauge on a10... just not on an uart bus
#asahi-dev · 2024-09-30 15:54
Zollerboy1Also, is there anyone who I could contact if I have specific questions about the Rust APIs?
#asahi-dev · 2024-09-30 15:52
Zollerboy1Hey everyone! During my journey to learn how to write kernel modules in Rust, I noticed that the Asahi fork has quite a bit more Rust APIs than what's in the main kernel rn. Is all that extra Rust API supposed to be merged into the main kernel eventually and just held back due to the current Rust for Linux issues? Suppose I wanted to contribute to the Rust wrappers, would it be better to contribute to the Asahi fork or the
#asahi-dev · 2024-09-30 12:19
nickchanI can check on t6000 a bit later
#asahi-dev · 2024-09-30 12:09
nickchanokay whatever I think the best course of action is to remove the readl_relaxed() from the wdt driver
#asahi-dev · 2024-09-30 12:03
nickchana7-a10 has wd0 and wd1
#asahi-dev · 2024-09-30 12:03
nickchanokay after a lot of testing wd2 exists a11 and above
#asahi-dev · 2024-09-30 11:57
nickchanugh so wd2 *does* exist at least on iphone x just not iphone 5s
#asahi-dev · 2024-09-30 11:40
nickchanhttps://paste.debian.net/hidden/055a3a42/
#asahi-dev · 2024-09-30 11:29
nickchanneeded
#asahi-dev · 2024-09-30 11:28
nickchanreading current time is not neede
#asahi-dev · 2024-09-30 11:26
nickchanthis sequence works
#asahi-dev · 2024-09-30 11:26
nickchan1. set APPLE_WDT_WD1_BITE_TIME to 0, 2. set APPLE_WDT_WD1_CTRL to 4 (bit 2), 3. set APPLE_WDT_WD1_CUR_TIME to 0
#asahi-dev · 2024-09-30 11:19
nickchanwait no
#asahi-dev · 2024-09-30 11:19
nickchan1. set APPLE_WDT_WD1_CUR_TIME to 1
#asahi-dev · 2024-09-30 11:19
nickchanand iphone x as well
#asahi-dev · 2024-09-30 11:15
nickchanOkay, this sequence correctly reset system on 5s
#asahi-dev · 2024-09-30 11:04
nickchanon wdt-version 1
#asahi-dev · 2024-09-30 11:04
nickchanwd2 doesn't seem to exist here
#asahi-dev · 2024-09-30 11:04
nickchanand wd1 does a normal system reset
#asahi-dev · 2024-09-30 11:04
nickchanI mean wd0 in linux not related to the wdt version above
#asahi-dev · 2024-09-30 11:03
nickchanthings like display stays on and are put in a weird state
#asahi-dev · 2024-09-30 11:03
nickchanwdt0 casues SoC and only SoC to reset
#asahi-dev · 2024-09-30 10:52
nickchanwdt1 is a7-a11; wdt2 is from a12z
#asahi-dev · 2024-09-30 10:46
nickchantime to check some more in m1n1
#asahi-dev · 2024-09-30 10:37
nickchanokay, it doesn't exactly work like that
#asahi-dev · 2024-09-30 10:30
nickchanand if it happens to be 0 right now it will become non-zero like immediately after anyways
#asahi-dev · 2024-09-30 10:30
nickchanit really doesn't matter what the current time is it is basically always going to be larger than 0

plus ›