#
✕ nick:marcan
#asahi-dev · 2021-12-02 04:23
marcanok, yeah, the write doesn't stick; looks like we need a delay after starting up the port before touching the config regs (which might mean we weren't even applying the tunables properly either...)
#asahi-dev · 2021-12-02 04:11
marcan... looks like it wants a ~1ms delay before it. sigh. what's this about...
#asahi-dev · 2021-12-02 04:11
marcanthen I added some printfs around it and it worked.
#asahi-dev · 2021-12-02 04:11
marcanmaz: ahaha. so I tried setting PORT_LOGIC_SPEED_CHANGE in m1n1 and that didn't work.
#asahi-dev · 2021-12-01 15:02
marcanjust realized I didn't get CCed on the PERST series, heh
#asahi-dev · 2021-12-01 14:39
marcanwonders what email client the cool kids use these days
#asahi-dev · 2021-12-01 14:38
marcangrr, thunderbird is *really* trolling me... it seems to be breaking threading when I archive stuff, causing much confusion
#asahi-dev · 2021-12-01 14:28
marcanthose all qualify as fixes IMO
#asahi-dev · 2021-12-01 14:28
marcanarnd_: yeah, we hadsome bad compatibles, missing interrupt-ranges, and a bad node name
#asahi-dev · 2021-12-01 14:23
marcanI'll send you proper DT fixes for 5.16 and new stuff for 5.17 then
#asahi-dev · 2021-12-01 14:23
marcanack
#asahi-dev · 2021-12-01 14:22
marcanarnd_: do you want DT additions (new machines / instantiating drivers already in the tree) sent in as fixes for 5.16, or for 5.17?
#asahi-dev · 2021-11-28 18:22
marcansgtm, I imagine if I get to this point and you haven't gotten around to it yet, it shouldn't be a huge issue to take a crack at :)
#asahi-dev · 2021-11-28 18:20
marcanwe could make m1n1 fill some of that stuff in if needed
#asahi-dev · 2021-11-28 18:19
marcanhm, like where to load raw kernels and such?
#asahi-dev · 2021-11-28 18:18
marcanthat would be ideal
#asahi-dev · 2021-11-28 18:17
marcanaw, that's a shame
#asahi-dev · 2021-11-28 18:17
marcanoh, is that hardcoded?
#asahi-dev · 2021-11-28 18:16
marcanonce I catch up on getting decent versions of all these kernel bits and pieces merged, I want to finally put together a shippable boot stack, and I definitely want it to work on t6000 :)
#asahi-dev · 2021-11-28 18:15
marcanI imagine the DART/SART changes should be ~all it takes
#asahi-dev · 2021-11-28 18:15
marcankettenis: is there much to do for u-boot on t6000? does it even use IRQs?
#asahi-dev · 2021-11-28 18:11
marcanso it makes sense for a bootloader not to shut things down
#asahi-dev · 2021-11-28 18:11
marcanand in general the default state is/should be things powered up (which is why driver probe functions are called after domains are powered up)
#asahi-dev · 2021-11-28 18:11
marcanas long as you don't create dependency issues, linux will power down everything that needs powering down anyway
#asahi-dev · 2021-11-28 18:03
marcanthey all have the same compatible and I think this probably also dates to the dark ages of iPhones
#asahi-dev · 2021-11-28 18:02
marcanI would be very surprised if any of this changed on t6000
#asahi-dev · 2021-11-28 18:02
marcanthere will always be gaps, but it's important to get the core concepts right or else the thing will fall apart even if it appears to work at first
#asahi-dev · 2021-11-28 18:01
marcan(which is what I plan to do with WiFi btw)
#asahi-dev · 2021-11-28 18:01
marcan^^ good reason to use the BSD driver as a reference to write a new Linux one then :)
#asahi-dev · 2021-11-28 18:00
marcanthe rest of the IRQ complexity is in the kernel/driver side to handle things properly asynchronously, not in hardware understanding
#asahi-dev · 2021-11-28 18:00
marcanand yes, IRQ support should follow naturally from a polled implementation; the only thing that should need working out for IRQs to work is the flags/masks/whatever, everything else should come from an existing understanding of the hardware
#asahi-dev · 2021-11-28 17:58
marcanyou should be able to "single-step" through the hardware handling and observe the registers change and exactly what effect each action has (RegMonitor is your friend etc)
#asahi-dev · 2021-11-28 17:57
marcan(that entire thing is *designed* as a testing and understanding framework precisely for this purpose!)
#asahi-dev · 2021-11-28 17:56
marcan(this is also why getting a m1n1 driver up first is a very good idea)
#asahi-dev · 2021-11-28 17:55
marcanit's been evident throughout this entire thing that they have never sat down and actually poked at any of this hardware to understand how it works; they just read macOS drivers
#asahi-dev · 2021-11-28 17:54
marcanremember, Corellium do VMs that run *one* OS; they don't need to understand how the hardware works, they just need to make that OS happy. you can get away with a ton of nonsense/misunderstandings when you only need to make one piece of code work.
#asahi-dev · 2021-11-28 17:53
marcanI highly encourage everyone to work out how the hardware works first, over stumbling over drivers written by people who haven't done so :-)
#asahi-dev · 2021-11-28 16:26
marcanmakes sense
#asahi-dev · 2021-11-28 16:24
marcanooh, speaking of PMGR reviews... robh email spotted :)
#asahi-dev · 2021-11-28 16:15
marcanI'm tired enough after 4h of playing that I don't think that would happen today :p
#asahi-dev · 2021-11-28 16:15
marcanlol
#asahi-dev · 2021-11-28 16:15
marcan(at least in this context; in global context I just came back from band practice today, I promise I'm not *literally* wasting my time :p)
#asahi-dev · 2021-11-28 16:14
marcanand besides, I'm twiddling my thumbs waiting for the PMGR/DT stuff reviews anyway
#asahi-dev · 2021-11-28 16:13
marcanand it might give me an excuse to disassemble that second Mini if I need to pull out the scope
#asahi-dev · 2021-11-28 16:12
marcansure :)
#asahi-dev · 2021-11-28 16:12
marcanspi seems to fit the "so simple figuring it out from scratch is probably easier than figuring out what corellium did wrong" bill so...
#asahi-dev · 2021-11-28 16:09
marcanif I'm allowed to just rewrite everything... :>
#asahi-dev · 2021-11-26 12:20
marcanalso look at other ALSA/ASoC stuff because there's a good chance some other SoC does it similarly
#asahi-dev · 2021-11-26 12:20
marcanthough there's two ways, if you add a simple-mfd compatible it will probe the child nodes for you; if you don't it won't and the parent will be in charge of requesting that (which makes more sense if you have a common driver)
#asahi-dev · 2021-11-26 12:19
marcansee how pmgr does it

plus ›