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
swaggie has joined #asahi-dev
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
Major_Biscuit has quit [Ping timeout: 480 seconds]
<sven>
kettenis: I looked at the thunderbolt tunables again, and they also all seem to be 32bit masks. we can also just keep the current format then
<maz>
... and it just booted an L2 guest. something must be wrong.
<sven>
and the atcphy kext even fails if it sees any non-32bit tunable :D
cylm_ has quit [Quit: WeeChat 3.6]
cylm has joined #asahi-dev
<marcan>
maz: niiice!
<maz>
marcan: plenty of crap though. there is an issue with the GIC maintenance interrupt for which we need a handler, so I need to revisit this.
<maz>
but at least it doesn't take a couple of hours to get to a prompt, so there is some progress!
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
<marcan>
:)
Dcow has joined #asahi-dev
swaggie has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
swaggie has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
<ChaosPrincess>
wtb some help, i do not understand how rounding is supposed work in pwm drivers. here https://www.spinics.net/lists/linux-pwm/msg20140.html uwe claims that it should be rounded up, while the strings in pwm core.c claim that period/duty cycle is supposed to be rounded down.
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
swaggie has joined #asahi-dev
swaggie has quit [Ping timeout: 480 seconds]
Dcow has quit [Ping timeout: 480 seconds]
<jannau>
ChaosPrincess: I suppose if you round up in get_state you're closer at the values from set_state (on/off cycles were rounded down there)
<ChaosPrincess>
so, up in apply, down in set_state?
<ChaosPrincess>
actually, the other way around
<jannau>
down in apply, up in set_state if understand Uwe's comment correctly
<jannau>
it would make sense to reject really small duty_cycle/period values in apply
<ChaosPrincess>
the backlight driver does not set them, and if the user manually exports pwm and controls from there - thats on them to deal with
swaggie has joined #asahi-dev
swaggie has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
<sven>
urhg, so thunderbolt: there's acio and acio-dart, both need a special clock/power/whatever thing inside PMGR to be turned on to make their MMIO accessible and not SError.
<sven>
to turn that PMGR thing on atcphy has to be up and running. if atcphy is reset or powered off everything dies and some SoC-internal reset is triggered rather quickly
<sven>
how do we represent this? acio only (and its mbox) would be doable by just making sure the driver doesn't do anything before a tbt cable is connected and atcphy is up but acio-dart is going to be a bit more tricky
<sven>
right now the dart driver tries to access its MMIO inside probe to figure out some basic information about the dart (pagesize etc.)
<sven>
(the pmgr clock thing is also weird: apparently it can only be turned on and it needs a ~0.5s delay or so to actually work and there's no status register. it can only be turned off by resetting atcphy afaict)
<sven>
i can hack it for now by just making everything child nodes of atcphy and probing/unprobing them I guess but that feel wrong
<sven>
*feels
Dcow has quit [Ping timeout: 480 seconds]
gladiac has joined #asahi-dev
gladiac has quit []
gladiac has joined #asahi-dev
gladiac has quit []
gladiac has joined #asahi-dev
Dcow has joined #asahi-dev
swaggie has joined #asahi-dev
gladiac has quit []
Dcow has quit [Ping timeout: 480 seconds]
swaggie has quit [Ping timeout: 480 seconds]
swaggie has joined #asahi-dev
Dcow has joined #asahi-dev
swaggie has quit [Ping timeout: 480 seconds]
jbowen_ has quit []
jbowen_ has joined #asahi-dev
jbowen_ has quit []
jbowen has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
bcrumb has joined #asahi-dev
gladiac has joined #asahi-dev
jeffmiw has joined #asahi-dev
iaguis has quit [Quit: leaving]
jeffmiw has quit [Ping timeout: 480 seconds]
systwi has quit [Ping timeout: 480 seconds]
systwi has joined #asahi-dev
jeffmiw has joined #asahi-dev
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
jeffmiw has quit [Ping timeout: 480 seconds]
bcrumb has quit [Quit: WeeChat 3.7.1]
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
mac456 has joined #asahi-dev
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
Gues__________________________ has joined #asahi-dev
Gues__________________________ is now known as evtyz
dottedmag has quit [Quit: QUIT]
evtyz has quit []
Gues__________________________ has joined #asahi-dev
dottedmag has joined #asahi-dev
Gues__________________________ has quit []
minecrell has left #asahi-dev [ :( ]
minecrell has joined #asahi-dev
swaggie has joined #asahi-dev
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
mac456 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gues__________________________ has joined #asahi-dev
Gues__________________________ has quit []
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-dev
mac456 has joined #asahi-dev
c10l has quit [Quit: Bye o/]
Dcow has quit [Remote host closed the connection]
c10l has joined #asahi-dev
Dcow has joined #asahi-dev
c10l has quit []
c10l has joined #asahi-dev
cylm_ has joined #asahi-dev
cylm has quit [Ping timeout: 480 seconds]
jeffmiw has joined #asahi-dev
mac456 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mac456 has joined #asahi-dev
mkurz has joined #asahi-dev
Dcow has quit [Remote host closed the connection]
Dcow has joined #asahi-dev
Dcow has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi-dev
SSJ_GZ has quit [Ping timeout: 480 seconds]
Dcow has quit [Ping timeout: 480 seconds]
mac456 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]