ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
zumi_ has joined #asahi-dev
mab_ has joined #asahi-dev
zumi has quit [Remote host closed the connection]
zumi_ is now known as zumi
mab_ has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
pb17 has joined #asahi-dev
tobhe has quit [Ping timeout: 480 seconds]
mab has joined #asahi-dev
mab is now known as Guest4943
Guest4943 has quit []
KxCORP5894000345 has quit [Quit: Bye!]
KxCORP5894000345 has joined #asahi-dev
kujeger- has joined #asahi-dev
kujeger has quit [Ping timeout: 480 seconds]
nullroute has joined #asahi-dev
gabuscus has quit []
pb17 has quit [Ping timeout: 480 seconds]
<nickchan>
some additional context: 1. ADP3,2 can be get up and running using only publicly release copyright material 2. these hardware comes from chinese scrapyard selling supposedly destroyed boards as scrap
<nickchan>
clearly some of them are not properly destroyed though
<nickchan>
personally id say it is fair game this is just equivalent of picking trash from the bin
pb17 has joined #asahi-dev
<chadmed_>
nickchan: IANAL but id be very careful about using "fell off the back of a truck" chinese scrapyard parts
<chadmed_>
they very rarely "fall" off the back of the truck
gabuscus has joined #asahi-dev
nora has joined #asahi-dev
nora_ has quit [Ping timeout: 480 seconds]
<nickchan>
chadmed_: in particular they did not fell off a truck
<nickchan>
these are scrap metal
<nickchan>
well they are *supposed* to be
<nickchan>
im quite sure that they are sent to china to get destoryed, and then after they are destoryed they got sold as scrap, but the catch it some isn't destoryed properly
<nickchan>
falling of a truck would be very illegal
<chadmed_>
tbf its probably also very illegal to take money to destroy something, then not destroy it, then sell it to reverse engineers
<chadmed_>
if some document destroyal mob were taking my money to shred my paperwork and i found out they were just selling it all to data brokers or something id be quite miffed
<nickchan>
chadmed_: in case you are wondering they are in fact damaged
<nickchan>
the thing to do here would have been drill right through the soc but some of them just got a small piece of the board where there doesn't seem to be much ripped off
<nickchan>
and the damage is all different so with some luck if is possible to cannibalize parts for fully working units
<nickchan>
s/if is/it is/
<nickchan>
anyways onto less shady stuff
<nickchan>
maybe I should resend the watchdog patch? it's been two weeks but then again the past two weeks is the merge window
<nickchan>
increase reset delay 50ms -> 150ms
<nickchan>
patches should start to get applied again now merge window is closed
<nickchan>
sven: I am not super familiar with the watchdog but from my understanding of it, to immediately reset the machine all that needs to happen is setting bit 2 in control reg, then set 0 in bite time reg
<nickchan>
so are the current time reg write and current time reg read even needed?
<nickchan>
it really doesn't matter what the current time is it is basically always going to be larger than 0
<nickchan>
and if it happens to be 0 right now it will become non-zero like immediately after anyways
<nickchan>
okay, it doesn't exactly work like that
pb17 has joined #asahi-dev
<nickchan>
time to check some more in m1n1
<nickchan>
wdt1 is a7-a11; wdt2 is from a12z
chrisl has joined #asahi-dev
<nickchan>
wdt0 casues SoC and only SoC to reset
<nickchan>
things like display stays on and are put in a weird state
<nickchan>
I mean wd0 in linux not related to the wdt version above
<nickchan>
and wd1 does a normal system reset
<nickchan>
wd2 doesn't seem to exist here
<nickchan>
on wdt-version 1
chrisl has quit [Ping timeout: 480 seconds]
johey has joined #asahi-dev
<nickchan>
Okay, this sequence correctly reset system on 5s
mab has joined #asahi-dev
mab is now known as Guest4993
<nickchan>
and iphone x as well
<nickchan>
1. set APPLE_WDT_WD1_CUR_TIME to 1
<nickchan>
wait no
tamar-away is now known as tamar
<nickchan>
1. 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
<nickchan>
ugh so wd2 *does* exist at least on iphone x just not iphone 5s
chrisl has joined #asahi-dev
Guest4993 has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
<nickchan>
okay after a lot of testing wd2 exists a11 and above
<nickchan>
a7-a10 has wd0 and wd1
zumi_ has joined #asahi-dev
zumi has quit [Remote host closed the connection]
mab_ has joined #asahi-dev
mab_ has quit []
chrisl has quit [Ping timeout: 480 seconds]
zumi_ is now known as zumi
<nickchan>
okay whatever I think the best course of action is to remove the readl_relaxed() from the wdt driver
mab_ has joined #asahi-dev
<nickchan>
I can check on t6000 a bit later
mab_ has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
sand4rt has quit [Ping timeout: 480 seconds]
sand4rt has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
sand4rt2 has joined #asahi-dev
sand4rt has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
nimprod3l has joined #asahi-dev
chrisl has quit [Ping timeout: 480 seconds]
sand4rt2 has quit [Ping timeout: 480 seconds]
sand4rt has joined #asahi-dev
pb17 has joined #asahi-dev
mab has joined #asahi-dev
chrisl has joined #asahi-dev
mab is now known as Guest5001
chrisl has quit [Ping timeout: 480 seconds]
Guest5001 has quit [Ping timeout: 480 seconds]
chrisl has joined #asahi-dev
opticron_ is now known as opticron
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
sand4rt has quit [Ping timeout: 480 seconds]
sand4rt has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
john-cabaj has joined #asahi-dev
manawyrm has joined #asahi-dev
mariogrip4 has joined #asahi-dev
pb17 has joined #asahi-dev
mariogrip has quit [Ping timeout: 480 seconds]
mariogrip4 is now known as mariogrip
Zollerboy1 has joined #asahi-dev
pr0vctr has joined #asahi-dev
<Zollerboy1>
Hey 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
<Zollerboy1>
Also, is there anyone who I could contact if I have specific questions about the Rust APIs?
Zollerboy1 has quit [Remote host closed the connection]
Zollerboy1 has joined #asahi-dev
<nickchan>
oh nice linux has the driver for the battery gauge on a10... just not on an uart bus
<sven>
the suggestion was to replace the _relaxed variant with the normal one
<opticron>
Zollerboy1, your message cut off after "contribute to the Asahi fork or the" though we did get the next message about specific questions
pb17 has joined #asahi-dev
<Zollerboy1>
opticron: huh? that's strange. the rest of the message was "main kernel? Thanks!" :)
zumi_ has joined #asahi-dev
zumi has quit [Remote host closed the connection]
zumi_ is now known as zumi
sand4rt has quit [Ping timeout: 480 seconds]
sand4rt has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
sand4rt has quit [Ping timeout: 480 seconds]
VinDuv has joined #asahi-dev
pb17 has joined #asahi-dev
sand4rt has joined #asahi-dev
linuxgemini has quit [Quit: getting (hopefully fresh) air o/]
phire_ has joined #asahi-dev
phire is now known as Guest5036
phire_ is now known as phire
Guest5036 has quit [Ping timeout: 480 seconds]
linuxgemini has joined #asahi-dev
mrosorensen has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
linuxgemini has quit [Quit: getting (hopefully fresh) air o/]
linuxgemini has joined #asahi-dev
sand4rt has quit [Ping timeout: 480 seconds]
<chadmed_>
Zollerboy1: aiui the drm rust bindings in our fork are mostly blocked by bikeshedding
<jannau>
I don't think so. the problem is several layers before drm. I don't expect problems with drm specifically
<jannau>
Zollerboy1: 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
<Zollerboy1>
jannau: 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
<Zollerboy1>
jannau: thanks for the link. I'm still learning to navigate the jungle that is linux kernel patches :)
<fl0_id>
Zollerboy1 OTOH, maybe the current situation is exactly the right thing to start with a rust patch ;)
<chadmed_>
alternatively if you want to contribute to asahi specifically ill take hwmon bindings ;)
<chadmed_>
there are a couple of things in macsmc-hwmon that could probably be made a bit less rubbish by riir
pb17 has quit [Ping timeout: 480 seconds]
<Zollerboy1>
chadmed_: 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 ;)
<Zollerboy1>
I 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.