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
cylm has joined #asahi-dev
<chadmed> urgh forgot how loathsome C can be sometimes
<chadmed> im looking at this hwmon mess and i really dont like how the "info" channels work... its a nightmare to try and populate from the devicetree
<chadmed> no of refcount errors on the first try though so thats nice :)
maria has quit [Ping timeout: 480 seconds]
cylm has quit [Ping timeout: 480 seconds]
gabuscus has quit []
chadmed has quit [Remote host closed the connection]
jeisom has quit [Ping timeout: 480 seconds]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gabuscus has joined #asahi-dev
ourdumbfuture has joined #asahi-dev
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-dev
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristan2 has joined #asahi-dev
tristan2_ has quit [Ping timeout: 480 seconds]
crabbedhaloablut has joined #asahi-dev
amarioguy has quit [Ping timeout: 480 seconds]
amarioguy has joined #asahi-dev
amarioguy has quit [Remote host closed the connection]
roxfan2 has joined #asahi-dev
roxfan has quit [Ping timeout: 480 seconds]
roxfan has joined #asahi-dev
roxfan2 has quit [Ping timeout: 480 seconds]
roxfan has quit [Ping timeout: 480 seconds]
maria has joined #asahi-dev
maria has quit [Remote host closed the connection]
maria has joined #asahi-dev
maria has quit [Remote host closed the connection]
maria has joined #asahi-dev
gladiac has joined #asahi-dev
chadmed has joined #asahi-dev
<chadmed> ok this works but i dont think it will be upstreamable
<chadmed> lots of evil pointers
<chadmed> it doesnt seem to be fragile at all its just gross to look at
c10l1 has quit []
c10l has joined #asahi-dev
<marcan> eiln: t6000 worked for me without any of those pointers. I suspect the dsid thing is for t8xxx only, since those addresses make no sense for t6xxx. But I think that whole thing is a memory controller optimization and we can just skip it (as long as there is some valid way to do that, e.g. all 0).
Guest8963 has quit [Ping timeout: 480 seconds]
tobhe has quit [Ping timeout: 480 seconds]
tobhe has joined #asahi-dev
cylm has joined #asahi-dev
tobhe has quit [Ping timeout: 480 seconds]
zane has joined #asahi-dev
tobhe has joined #asahi-dev
jeisom has joined #asahi-dev
ourdumbfuture has joined #asahi-dev
ourdumbfuture has quit []
zane has quit [Quit: WeeChat 4.0.4]
SalimTer- has quit [Quit: ZNC - https://znc.in]
SalimTerryLi has joined #asahi-dev
ourdumbfuture has joined #asahi-dev
jeisom has quit [Ping timeout: 480 seconds]
gladiac has quit [Quit: k thx bye]
cylm has quit [Ping timeout: 480 seconds]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-dev
phire has quit [Ping timeout: 480 seconds]
hightower2 has quit [Ping timeout: 480 seconds]
phire has joined #asahi-dev
jeisom has joined #asahi-dev
rpirea has joined #asahi-dev
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-dev
rpirea has quit []
rpirea has joined #asahi-dev
<j`ey> dcp_is_initialized seems like it's in the wrong place being in drivers/gpu/drm/apple/iomfb.c?
<j`ey> (somehow missed there's a lot of dcp_* functions in that file, just saw the iofmb_* functions either side of it)
rpirea has quit [Remote host closed the connection]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-dev
phire_ has joined #asahi-dev
phire is now known as Guest2739
phire_ is now known as phire
Guest2739 has quit [Ping timeout: 480 seconds]
<eric_engestrom> marcan (or anyone): can I (non-destructively, it's also my work machine) get a serial console on my macbook air (m2, 2022)?
<eric_engestrom> I have a screwdriver for the srcews at the bottom, but I haven't tried opening it yet (kinda scared of breaking something)
<eric_engestrom> this is so that I can run CI on it, to make sure our infra is ready to support asahi testing
<_jannau__> eric_engestrom: there is a serial console on the USB-C port next to the magsafe port
<eric_engestrom> nice, that's about as non-destructive as it can be xD
<eric_engestrom> I take it I need some usb-c serial adapter?
* eric_engestrom looks that up
<eric_engestrom> _jannau__: thanks!
<_jannau__> yes, has to be enabled via USB PD, 1.2V
<sven> or just another m1/m2 machines :p
<_jannau__> we still have to implement that on Linux
<sven> or you can run Linux inside m1n1‘s thin hv which will steal a usb port to expose a serial console
<sven> (as a regular cdc acm device)
<_jannau__> I suppose for CI the hard reset over USB PD is useful
<eric_engestrom> so the purpose is to be able to run any arbitrary kernel + mesa to test that it works before merging changes
<eric_engestrom> would running that in m1n1 work?
<_jannau__> I should get a few populated cs-hw boards tomorrow
<sven> I do all my development inside that hv fwiw
<sven> it just passed through most hw and doesn’t try to virtualization anything
<sven> but the hard reset over pd might be very useful for CI
<_jannau__> yes, kernel can be booted over usb (either barebone or with m1n1's HV which virtualizes mostly the serial port)
<sven> *passes
<eric_engestrom> does this need 2 AS devices though?
<eric_engestrom> or can the hv be run from any machine
<j`ey> any machine
<sven> hv can be run from anywhere
<_jannau__> the hw reset needs some usb pd hardware
<eric_engestrom> ok, nice
<eric_engestrom> what should I read up on for these two setups (bare or through m1n1)? I'm assuming you've written blogs/wiki/etc about it :P
<eric_engestrom> I'l read the README on https://github.com/asahilinux/m1n1 for starters
jeisom has quit [Remote host closed the connection]
jeisom has joined #asahi-dev
<eric_engestrom> thanks
<_jannau__> I find it useful to have a separate proxy only install on CI / test devices. that avoid the "Enabling the backdoor proxy mode" step
m5zs7k has joined #asahi-dev
<eric_engestrom> there's also the issue that sometimes the default boot option gets reset to macos, and I have to go in the "keep power pressed for 8 sec" menu to re-select my main linux install
<eric_engestrom> I'm guessing this is when the linux boot doesn't reach some specific point, which is something that might happen a lot in CI
<_jannau__> m1n1 can take care of that and it's taken care of automatically when using the HV
<_jannau__> see tools/reset_panic_counter.py
jeisom has quit [Remote host closed the connection]
jeisom has joined #asahi-dev
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-dev
lawrence has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
lawrence has joined #asahi-dev
<eric_engestrom> I see, thanks!
<marcan> yes, CI would definitely all run in the HV, among other things because we want to use that to validate GPU initialization and stuff like that
<marcan> still need to buy my CI rack machines but that's pretty much the next project after the Fedora GA release :)
<eric_engestrom> marcan: talk to me (or mupuf, not on this channel but on this server) when you do :)
<marcan> yup, will do! :)
<eric_engestrom> I have to go, but I'll read any more messages tomorrow, and I'm hoping I can get around to working on this in a week or two 🤞
<marcan> awesome :D
<marcan> (also if anyone's bored: one thing we need to be able to do for CI is switch boot volumes to select different firmware, and ideally we'd do that from m1n1, so a m1n1/python implementation of nvram writes would be useful)
<marcan> (also fine to implement in the C side and call from python, since nvram writes *could* be a useful thing to have in m1n1 proper)
jeisom_ has joined #asahi-dev
jeisom has quit [Read error: No route to host]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-dev
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rpirea has joined #asahi-dev
crabbedhaloablut has quit []
ellyq has joined #asahi-dev
blazra has quit [Ping timeout: 480 seconds]
<maz> _jannau__: out of curiosity, which version did you build? I'm keeping tabs on who builds what...
cylm_ has joined #asahi-dev
<jannau> maz: 3.2-dev (4a3fe788e441)
<maz> right, real close to the tagged version.
blazra has joined #asahi-dev
cylm_ has quit [Quit: WeeChat 3.6]
le_petit_segfault has joined #asahi-dev
cylm has joined #asahi-dev
le_petit_segfault has quit [Ping timeout: 480 seconds]
balrog has quit [Quit: Bye]
sam_ has quit [Quit: ZNC - http://znc.in]
balrog has joined #asahi-dev
sam_ has joined #asahi-dev