ChanServ changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630)
<qzed> hmm, it doesn't even try to init the ucode/sqe yet... so gmu is initialized before ucode, is that correct?
<HdkR> ,,,,,,,,.
<HdkR> oops.
<robclark> qzed: so for newer a660+ fw, the afuc disasm actually needs to use emulation mode enough to run thru the bootstrap code (which loads the pm4 packet jumptables).. if it is stuck in a loop, it could be because the initial sqe register values are not correct, so I'd have to look at that.. but gmu is loaded first, it is what powers up the gpu, so you can ignore sqe for a bit
<robclark> zero length block might be zero-init (thinking in terms of elf binaries.. although that might not be exactly how they represent it embedded in the driver)
<qzed> thanks! I'll upload the files in a bit (after I'm done cleaning up some other patches...) so you can have a look if you want
<qzed> I'll also try to have another look at the windows driver gmu loader thing, I guess that could make sense with zero-init
<robclark> no hurry on the sqe, I won't really have time to look until at least the weekend (but I guess figuring out the couple bits of initial state needed to not get stuck in an infinite loop in the afuc bootstrap emulation isn't really necessary for bringing up the kernel driver)
derzahl has quit [Ping timeout: 480 seconds]
hexdump01 has joined #aarch64-laptops
hexdump0815 has quit [Ping timeout: 480 seconds]
<qzed> no worries, thought it might be an issue with afuc so I thought this might interest you
<qzed> I guess I'm busy with the gmu for the time being and if I'm lucky the sqe/ucode works out of the box
iivanov has joined #aarch64-laptops
derzahl has joined #aarch64-laptops
jhovold has joined #aarch64-laptops
minecrell has quit [Quit: Ping timeout (120 seconds)]
minecrell has joined #aarch64-laptops
derzahl has quit [Ping timeout: 480 seconds]
alpernebbi has quit [Remote host closed the connection]
alpernebbi has joined #aarch64-laptops
srinik has quit [Killed (NickServ (Too many failed password attempts.))]
srinik has joined #aarch64-laptops
djakov has quit [Remote host closed the connection]
djakov has joined #aarch64-laptops
djakov has quit [Read error: Connection reset by peer]
djakov has joined #aarch64-laptops
<qzed> CosmicPenguin: I hadn't, thanks!
<qzed> looks mostly similar to the a6xx_gmu_fw_load() as far as I can tell at a quick glance
<CosmicPenguin> That mgiht help you make a little bit more sense of what you are seeing
<qzed> yeah, so I think the zero-length entries are used in combination with another (memory map? table to allocate and map memory regions
<CosmicPenguin> Yeah. Its kind of elf like except its not elf
<qzed> the windows code looks actually quite a bit like the link you've posted
<CosmicPenguin> I'm not up to date on what the new post 5.10 world looks like on codelinaro after Qualcomm moved to GKI
<qzed> I'm now trying to validate that everything gets allocated that should be allocated
<qzed> after that I'll have to try and understand a bit better how the linux driver works and how everything fits together
<qzed> otherwise I'm flying a bit blind... which isn't really ideal
<CosmicPenguin> the downstream kernel driver is your best guide to how GMU is loaded at the price of wading through some truly bad code
<qzed> I guess, yeah. Thanks again for that link!
matthias_bgg has quit [Ping timeout: 480 seconds]
matthias_bgg has joined #aarch64-laptops
derzahl has joined #aarch64-laptops
fleebs has quit [Ping timeout: 480 seconds]
jhovold has quit [Ping timeout: 480 seconds]
srinik has quit [Killed (NickServ (Too many failed password attempts.))]
srinik has joined #aarch64-laptops
iivanov has quit []
derzahl has quit [Ping timeout: 480 seconds]
derzahl has joined #aarch64-laptops